PowerPC64 call lacks nop error
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f1f58506
DE
12014-08-28 Doug Evans <dje@google.com>
2
3 * symtab.c (in_prologue): Move definition to better spot.
4 (skip_prologue_using_sal): Ditto.
5
aab2f208
DE
62014-08-28 Doug Evans <dje@google.com>
7
8 * symtab.c (find_function_start_sal): Move definition to better spot.
9
6b65d1b6
YQ
102014-08-28 Yao Qi <yao@codesourcery.com>
11
12 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
13 found_stack_adjust in forward scan. Remove condition check
14 on found_stack_adjust which is always true. Indent the code.
15
a1b34d15
YQ
162014-08-28 Yao Qi <yao@codesourcery.com>
17
18 * dwarf2read.c (dwarf_decode_lines): Update declaration.
19 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
20 (dwarf_decode_lines): Remove argument
21 want_line_info. Remove condition check on want_line_info.
22 Callers update.
23
d5962de5
DE
242014-08-27 Doug Evans <dje@google.com>
25
26 * dwarf2read.c (dwarf_record_line): Fix typo.
27
9b139002
SDJ
282014-08-27 Patrick Palka <patrick@parcs.ath.cx>
29
30 * target.h (struct target_ops::to_terminal_save_ours): Remove
31 declaration.
32 (target_terminal_save_ours): Remove macro.
33 * target-delegates.c: Regenerate.
34 * inf-child.c (inf_child_target): Don't set the nonexistent
35 field to_terminal_save_ours.
36 * inferior.h (child_terminal_save_ours): Remove declaration.
37 * terminal.h (gdb_save_tty_state): New declaration.
38 * inflow.c (child_terminal_save_ours): Rename to ...
39 (gdb_save_tty_state): ... this.
40 * tui/tui.c: Include terminal.h.
41 (tui_enable): Use gdb_save_tty_state instead of
42 target_terminal_save_ours.
43 (tui_disable): Likewise.
44
9debeba0
DE
452014-08-25 Doug Evans <dje@google.com>
46
47 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
48 Pass NULL instead of 0 for context pointer.
49
428fc5fc
YQ
502014-08-25 Yao Qi <yao@codesourcery.com>
51
52 * dwarf2read.c: Fix grammatical error.
53
cdc07690
YQ
542014-08-24 Yao Qi <yao@codesourcery.com>
55
56 * dwarf2read.c (scan_partial_symbols): Update comments.
57 Rename argument 'need_pc' with 'set_addrmap'.
58 (add_partial_namespace): Rename argument 'need_pc' with
59 'set_addrmap'.
60 (add_partial_module): Likewise.
61 (add_partial_subprogram): Likewise. Update comments.
62 (dwarf2_name): Fix typo.
63
a05a36a5
DE
642014-08-22 Doug Evans <dje@google.com>
65
66 PR 17276
67 * dwarf2read.c (dwarf_record_line_p): New function.
68 (dwarf_decode_lines_1): Ignore subsequent line number entries
69 for the same line if any entry had a non-zero discriminator.
70
252a6764
DE
712014-08-22 Doug Evans <dje@google.com>
72
73 * buildsym.h (record_line_ftype): New typedef.
74 (record_line): Use it.
75 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
76 (dwarf_decode_lines_1): Call them.
77
510db052
YQ
782014-08-22 Yao Qi <yao@codesourcery.com>
79
80 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
81 (ctf_end): Remove code.
82
22fd09ae
JK
832014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
84
85 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
86 (linux_make_corefile_notes): call update_thread_list, protected against
87 exceptions.
88
656e8868
PA
892014-08-21 Pedro Alves <palves@redhat.com>
90
91 * infcmd.c (attach_command): Remove comment.
92
de589d04
WN
932014-08-21 Bin Cheng <bin.cheng@arm.com>
94
95 * aarch64-linux-nat.c (dr_changed_t): Change the type from
96 unsigned LONGEST to ULONGEST.
97
2a31c623
PA
982014-08-20 Pedro Alves <palves@redhat.com>
99
100 * Makefile.in (check-read1): New rule.
101
d36430db
JB
1022014-08-20 Joel Brobecker <brobecker@adacore.com>
103
104 * value.c (value_from_contents_and_address): Strip resolved_type's
105 typedef layers before checking its TYPE_DATA_LOCATION.
106
000339af
PA
1072014-08-20 Pedro Alves <palves@redhat.com>
108
109 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
110
5f52445b
YQ
1112014-08-20 Yao Qi <yao@codesourcery.com>
112
113 * amd64-tdep.c (amd64_classify): Add a blank line after the
114 example. Move "*/" to a new line.
115 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
116 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
117 * dwarf2read.c (psymtab_include_file_name): Likewise.
118
9a0dc9e3
PA
1192014-08-19 Andrew Burgess <aburgess@broadcom.com>
120 Pedro Alves <palves@redhat.com>
121
122 PR symtab/14604
123 PR symtab/14605
124 * ada-lang.c (coerce_unspec_val_to_type): Use
125 value_contents_copy_raw.
126 * ada-valprint.c (val_print_packed_array_elements): Adjust.
127 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
128 * cp-valprint.c (cp_print_value_fields): Let the common printing
129 code handle optimized out values.
130 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
131 * d-valprint.c (dynamic_array_type): Use
132 value_bits_any_optimized_out.
133 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
134 check_any_valid fields.
135 (check_pieced_value_bits): Delete and inline ...
136 (check_pieced_synthetic_pointer): ... here.
137 (check_pieced_value_validity): Delete.
138 (check_pieced_value_invalid): Delete.
139 (pieced_value_funcs): Remove check_validity and check_any_valid
140 fields.
141 (read_pieced_value): Use mark_value_bits_optimized_out.
142 (write_pieced_value): Switch to use
143 mark_value_bytes_optimized_out.
144 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
145 of assuming the whole value is optimized out.
146 * findvar.c (read_frame_register_value): Remove special handling
147 of optimized out registers.
148 (value_from_register): Use mark_value_bytes_optimized_out.
149 * frame-unwind.c (frame_unwind_got_optimized): Use
150 mark_value_bytes_optimized_out.
151 * jv-valprint.c (java_value_print): Adjust.
152 (java_print_value_fields): Let the common printing code handle
153 optimized out values.
154 * mips-tdep.c (mips_print_register): Remove special handling of
155 optimized out registers.
156 * opencl-lang.c (lval_func_check_validity): Delete.
157 (lval_func_check_any_valid): Delete.
158 (opencl_value_funcs): Remove check_validity and check_any_valid
159 fields.
160 * p-valprint.c (pascal_object_print_value_fields): Let the common
161 printing code handle optimized out values.
162 * stack.c (read_frame_arg): Remove special handling of optimized
163 out values. Fetch both VAL and ENTRYVAL before comparing
164 contents. Adjust to value_available_contents_eq rename.
165 * valprint.c (valprint_check_validity)
166 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
167 (val_print_array_elements): Adjust.
168 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
169 (value_bits_any_optimized_out): New function.
170 (value_entirely_covered_by_range_vector): New function, factored
171 out from value_entirely_unavailable.
172 (value_entirely_unavailable): Reimplement.
173 (value_entirely_optimized_out): New function.
174 (insert_into_bit_range_vector): New function, factored out from
175 mark_value_bits_unavailable.
176 (mark_value_bits_unavailable): Reimplement.
177 (struct ranges_and_idx): New struct.
178 (find_first_range_overlap_and_match): New function, factored out
179 from value_available_contents_bits_eq.
180 (value_available_contents_bits_eq): Rename to ...
181 (value_contents_bits_eq): ... this. Check both unavailable
182 contents and optimized out contents.
183 (value_available_contents_eq): Rename to ...
184 (value_contents_eq): ... this.
185 (allocate_value_lazy): Remove reference to the old optimized_out
186 boolean.
187 (allocate_optimized_out_value): Use
188 mark_value_bytes_optimized_out.
189 (require_not_optimized_out): Adjust to check whether the
190 optimized_out vec is empty.
191 (ranges_copy_adjusted): New function, factored out from
192 value_contents_copy_raw.
193 (value_contents_copy_raw): Also copy the optimized out ranges.
194 Assert the destination ranges aren't optimized out.
195 (value_contents_copy): Update comment, remove call to
196 require_not_optimized_out.
197 (value_contents_equal): Adjust to check whether the optimized_out
198 vec is empty.
199 (set_value_optimized_out, value_optimized_out_const): Delete.
200 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
201 New functions.
202 (value_entirely_optimized_out, value_bits_valid): Delete.
203 (value_copy): Take a VEC copy of the 'optimized_out' field.
204 (value_primitive_field): Remove special handling of optimized out.
205 (value_fetch_lazy): Assert that lazy values have no unavailable
206 regions. Use value_bits_any_optimized_out. Remove some special
207 handling for optimized out values.
208 * value.h: Add intro comment about <optimized out> and
209 <unavailable>.
210 (struct lval_funcs): Remove check_validity and check_any_valid
211 fields.
212 (set_value_optimized_out, value_optimized_out_const): Remove.
213 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
214 New declarations.
215 (value_bits_any_optimized_out): New declaration.
216 (value_bits_valid): Delete declaration.
217 (value_available_contents_eq): Rename to ...
218 (value_contents_eq): ... this, and extend comments.
219
6694c411
JK
2202014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
221
222 Fix -fsanitize=address on unreadable inferior strings.
223 * valprint.c (val_print_string): Fix access before BUFFER.
224
89a1c21a
SM
2252014-08-19 Simon Marchi <simon.marchi@ericsson.com>
226
227 * target.c (target_struct_size): Remove.
228 (target_struct_allocsize): Remove.
229 (DEFAULT_ALLOCSIZE): Remove.
230 (target_ops_p): New typedef.
231 (DEF_VEC_P (target_ops_p)): New vector type.
232 (target_structs): Change type to VEC (target_ops_p).
233 (add_target_with_completer): Replace "push" code by VEC_safe_push.
234 (find_default_run_target): Rewrite for loop following changes to
235 target_structs.
236
cb417230
JB
2372014-08-19 Joel Brobecker <brobecker@adacore.com>
238
239 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
240 Adjust code accordingly. Adjust function description comment.
241
817e0957
YQ
2422014-08-19 Yao Qi <yao@codesourcery.com>
243
244 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
245 types.
246
2974be62
AM
2472014-08-19 Alan Modra <amodra@gmail.com>
248
249 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
250 * config.in: Regenerate.
251 * configure: Regenerate.
252
34abf635
GB
2532014-08-19 Tom Tromey <tromey@redhat.com>
254 Gary Benson <gbenson@redhat.com>
255
256 * common/common-debug.h: New file.
257 * common/common-debug.c: Likewise.
258 * debug.c: Likewise.
259 * Makefile.in (SFILES): Add common/common-debug.c.
260 (HFILES_NO_SRCDIR): Add common/common-debug.h.
261 (COMMON_OBS): Add common-debug.o and debug.o.
262 (common-debug.o): New rule.
263 * common/common-defs.h: Include common-debug.h.
264 * common/agent.c (debug_agent_printf): New function.
265 (DEBUG_AGENT): Redefine.
266 * nat/i386-dregs.c (debug_printf): Undefine.
267
f6e94d78
GB
2682014-08-19 Gary Benson <gbenson@redhat.com>
269
270 * common/common-defs.h: Include print-utils.h.
271 * utils.h: Do not include print-utils.h.
272
9239eeab
GB
2732014-08-19 Tom Tromey <tromey@redhat.com>
274 Gary Benson <gbenson@redhat.com>
275
276 * common/common-types.h: New file.
277 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
278 * common/common-defs.h: Include common-types.h.
279 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
280 (ULONGEST): Remove.
281
ef87c8bb
GB
2822014-08-19 Tom Tromey <tromey@redhat.com>
283 Gary Benson <gbenson@redhat.com>
284
285 * common/errors.h: New file.
286 * common/errors.c: Likewise.
287 * Makefile.in (SFILES): Add common/errors.c.
288 (HFILES_NO_SRCDIR): Add common/errors.h.
289 (COMMON_OBS): Add errors.o.
290 (errors.o): New rule.
291 * common/common-defs.h: Include errors.h.
292 * utils.h (perror_with_name, error, verror, warning, vwarning):
293 Don't declare.
294 * common/common-utils.h: (malloc_failure, internal_error):
295 Likewise.
296
196a707b
GB
2972014-08-19 Gary Benson <gbenson@redhat.com>
298
299 * utils.c (internal_vproblem): Always print the message.
300
ded4fc8f
DE
3012014-08-18 Doug Evans <dje@google.com>
302
303 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
304
950c97d8
JB
3052014-08-18 Joel Brobecker <brobecker@adacore.com>
306
307 * ada-typeprint.c (type_is_full_subrange_of_target_type):
308 Return 0 if TYPE is dynamic.
309 (print_range): Add handling of dynamic ranges.
310
3cdcd0ce
JB
3112014-08-18 Keven Boell <keven.boell@intel.com>
312 Joel Brobecker <brobecker@adacore.com>
313
314 * gdbtypes.h (struct main_type): Add field "data_location".
315 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
316 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
317 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
318 a dynamic data location.
319 (resolve_dynamic_type): Add DW_AT_data_location handling.
320 (copy_recursive, copy_type): Copy the data_location information
321 when present.
322 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
323 * value.c (value_from_contents_and_address): Add
324 DW_AT_data_location handling.
325
08412b07
JB
3262014-08-18 Keven Boell <keven.boell@intel.com>
327 Joel Brobecker <brobecker@adacore.com>
328
329 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
330 field "get_object_address".
331 * dwarf2expr.c (execute_stack_op): Add handling for
332 DW_OP_push_object_address.
333 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
334 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
335 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
336 (dwarf_expr_get_obj_addr): New function.
337 (dwarf_expr_ctx_funcs): Add get_object_address field.
338 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
339 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
340 (dwarf2_evaluate_property): Add parameter "address". Use it.
341 (needs_get_obj_addr): New function.
342 (needs_frame_ctx_funcs): Add get_object_address field.
343 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
344 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
345 (resolve_dynamic_array): Likewise.
346
84754697
JB
3472014-08-18 Joel Brobecker <brobecker@adacore.com>
348
349 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
350 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
351 fixed value for records and unions for which some GNAT encodings
352 are present.
353
da5c522f
JB
3542014-08-18 Joel Brobecker <brobecker@adacore.com>
355
356 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
357 rewrite to avoid "else if" and "else" constructs. Should be
358 a no-op in practice.
359
0d72a7c3
JB
3602014-08-18 Joel Brobecker <brobecker@adacore.com>
361
362 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
363 of lexical block.
364
e66d4446
SC
3652014-08-15 Siva Chandra Reddy <sivachandra@google.com>
366
367 PR c++/17132
368 * eval.c: Update all calls to find_overload_match.
369 * valarith.c: Likewise.
370 (value_user_defined_cpp_op, value_user_defined_op): New
371 argument NOSIDE. Update all callers.
372 * valops.c (find_overload_match): New argument NOSIDE.
373 * value.h (find_overload_match): Update signature.
374
940df408
SC
3752014-08-15 Siva Chandra Reddy <sivachandra@google.com>
376
377 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
378 'items' methods instead of 'iteritems' method on dictionaries.
379
699ca60a
DE
3802014-08-15 Doug Evans <dje@google.com>
381
382 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
383 closer to use.
384
37780ee5
DE
3852014-08-15 Doug Evans <dje@google.com>
386
387 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
388
0ad93d4f
DE
3892014-08-15 Doug Evans <dje@google.com>
390
391 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
392
20d8c372
DE
3932014-08-15 Doug Evans <dje@google.com>
394
395 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
396 unused.
397
cb039ba4
EZ
3982014-08-15 Eli Zaretskii <eliz@gnu.org>
399
400 * dcache.h: Include target.h, to avoid compile time warnings.
401
eb7a547a
JB
4022014-08-15 Joel Brobecker <brobecker@adacore.com>
403
404 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
405 frame_info" partial declaration.
406 * gdbarch.h: Regenerate.
407
783cecc8
YQ
4082014-08-15 Yao Qi <yao@codesourcery.com>
409
410 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
411 Add parameter 'decode_for_pst_p'. Callers update.
412
65c749e7
YQ
4132014-08-13 Yao Qi <yao@codesourcery.com>
414
415 PR build/17104
416 * configure.ac: Use local variable 'pos'.
417 * configure: Regenerated.
418
d769e349
DE
4192014-08-11 Doug Evans <dje@google.com>
420
421 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
422 message, it is redundant with "Reading symbols from ..." message.
423
24f1235e
DE
4242014-08-10 Doug Evans <xdje42@gmail.com>
425
426 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
427
dcd2e6ef
YQ
4282014-08-09 Yao Qi <yao@codesourcery.com>
429
430 PR remote/9053
431 * remote.c (remote_xfer_partial): Remove dead code.
432
070bdf0b
AA
4332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
434
435 * ia64-linux-tdep.c: Include "regset.h".
436 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
437 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
438 (ia64_linux_supply_fpregset): New function.
439 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
440 (ia64_linux_regset_from_core_section): New function.
441 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
442 method.
443
08f9f542
AA
4442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
445
446 * m68klinux-tdep.c: Include "regset.h".
447 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
448 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
449 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
450 (m68k_linux_regset_from_core_section): New function.
451 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
452 method.
453
8f1cee41
AA
4542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
455
456 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
457 function. Move logic to...
458 (tilegx_linux_regmap): ... this new register map.
459 (tilegx_linux_regset): Refer to register map, replace supply
460 method by regcache_supply_regset, and add collect method.
461 * tilegx-tdep.h (enum tilegx_regnum): New enum value
462 TILEGX_FIRST_EASY_REGNUM.
463
c5741217
AA
4642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
465
466 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
467 that calls regcache_supply_regset and handles the EPC register
468 separately. Move main logic to...
469 (score7_linux_gregmap): ... this new register map.
470 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
471 (score7_linux_gregset): Refer to register map. Add collect method.
472 (score7_linux_regset_from_core_section): Replace
473 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
474 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
475 (struct regset): Delete unused forward declaraction.
476 (struct pt_regs): Delete structure definition.
477 (elf_gregset_t): Delete typedef.
478
81580573
AA
4792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
480
481 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
482 (nios2_core_regset): Add collect method.
483
ba199d7d
AA
4842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
485
486 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
487 platform-independent and don't write to read-only input buffer.
488 (m32r_linux_collect_gregset): New function.
489 (m32r_linux_gregset): Add collect method.
490
0006a9da
AA
4912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
492
493 * hppa-linux-tdep.c (greg_map): Rename to...
494 (hppa_linux_gregmap): ... this. Also convert to
495 regcache_map_entry format.
496 (hppa_linux_supply_regset): Delete function.
497 (hppa_linux_supply_fpregset): Delete function. Move logic to...
498 (hppa_linux_fpregmap): ... this new register map.
499 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
500 register map, replace supply method by regcache_supply_regset, and
501 add collect method regcache_collect_regset.
502
901e1b23
AA
5032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
504
505 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
506 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
507 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
508 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
509 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
510 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
511 (frv_linux_supply_gregset): Replace main logic by call to
512 regcache_supply_regset, but keep clearing gr32-gr63.
513 (frv_linux_supply_fpregset): Delete function.
514 (frv_linux_gregset): Refer to appropriate register map and add
515 regcache_collect_regset as the collect method.
516 (frv_linux_fpregset): Likewise. Also exchange the supply method
517 by regcache_supply_regset.
518
1d6e7555
AA
5192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
520
521 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
522 by call to alpha_supply_int_regs.
523 (alpha_linux_collect_gregset): New function.
524 (alpha_linux_supply_fpregset): Replace logic by call to
525 alpha_supply_fp_regs.
526 (alpha_linux_collect_fpregset): New function.
527 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
528
d4d793bf
AA
5292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
530
531 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
532 by call to regcache_collect_regset.
533 (supply_gregset, supply_fpregset): Call regcache_supply_regset
534 instead of aarch64_linux_supply_gregset/_fpregset.
535 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
536 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
537 header file instead.
538 (aarch64_linux_supply_gregset, supply_gregset_from_core)
539 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
540 functions. Move logic to ...
541 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
542 register maps.
543 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
544 refer to new register maps, replace *_regset_from_core by
545 regcache_supply_regset, and also use regcache_collect_regset.
546 * aarch64-linux-tdep.h: Include "regset.h".
547 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
548 Delete prototypes.
549 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
550 macros, moved from C source file.
551 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
552 variable declarations.
553
99b7da5d
AA
5542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
555
556 * s390-linux-nat.c: Include "regset.h".
557 (regmap_gregset): Delete macro.
558 (s390_64_regmap_gregset): New register map for
559 regcache_supply/_collect_regset.
560 (s390_64_gregset): New regset.
561 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
562 (regmap_fpregset): Delete macro.
563 (s390_native_supply, s390_native_collect): Delete functions.
564 (supply_gregset, fill_gregset): Replace s390-specific regmap
565 handling by a call to regcache_supply/_collect_regset.
566 (supply_fpregset, fill_fpregset): Call regcache_supply/
567 _collect_regset instead of s390_native_supply/_collect.
568 (fetch_regset, store_regset): Likewise. Also change the last
569 parameter to a regset instead of a regmap.
570 (s390_linux_fetch_inferior_registers)
571 (390_linux_store_inferior_registers): Adjust last parameter in
572 calls to fetch_regset and store_regset.
573 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
574 (s390_gregmap): ... this. Also make static const and convert to
575 regcache_map_entry format.
576 (s390x_regmap_gregset): Delete.
577 (s390_regmap_fpregset): Rename to...
578 (s390_fpregmap): ... this. Make static const and convert to
579 regcache_map_entry format.
580 (s390_regmap_upper, s390_regmap_last_break)
581 (s390x_regmap_last_break, s390_regmap_system_call)
582 (s390_regmap_tdb): Likewise.
583 (s390_supply_regset, s390_collect_regset): Remove functions.
584 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
585 s390_supply_regset.
586 (s390_gregset, s390_fpregset, s390_upper_regset)
587 (s390_last_break_regset, s390x_last_break_regset)
588 (s390_system_call_regset, s390_tdb_regset): Make global and
589 replace s390_supply/_collect_regset by regcache_supply/
590 _collect_regset.
591 (s390x_gregset): Delete.
592 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
593 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
594 (s390_regmap_fpregset, s390_regmap_last_break)
595 (s390x_regmap_last_break, s390_regmap_system_call)
596 (s390_regmap_tdb): Delete global variable declarations.
597 (s390_gregset, s390_fpregset, s390_last_break_regset)
598 (s390x_last_break_regset, s390_system_call_regset)
599 (s390_tdb_regset): New global variable declarations.
600
0b309272
AA
6012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
602
603 * regcache.c: Include "regset.h".
604 (regcache_transfer_regset): New local function.
605 (regcache_supply_regset, regcache_collect_regset): New functions.
606 * regcache.h (struct regcache_map_entry): New structure.
607 (REGCACHE_MAP_SKIP): New enum value.
608 (regcache_supply_regset, regcache_collect_regset): New prototypes.
609
7fefa8d7
AA
6102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
611
612 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
613 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
614 (ppc_linux_collect_gregset ): Likewise.
615 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
616 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
617 (ppc_collect_vrregset): Likewise.
618 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
619 Likewise.
620
96c4f946
YQ
6212014-08-07 Yao Qi <yao@codesourcery.com>
622
623 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
624 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
625 * remote.c (remote_read_bytes): Likewise.
626
fffbe6a8
YQ
6272014-08-07 Yao Qi <yao@codesourcery.com>
628
629 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
630
5ee8a82c
YQ
6312014-08-07 Yao Qi <yao@codesourcery.com>
632
633 PR remote/17230
634 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
635 TARGET_XFER_OK instead of 0.
636
bb974a24
GB
6372014-08-07 Gary Benson <gbenson@redhat.com>
638
639 * common/common-defs.h: Include errno.h.
640 * defs.h: Do not include errno.h.
641 * ada-typeprint.c: Likewise.
642 * c-typeprint.c: Likewise.
643 * core-regset.c: Likewise.
644 * corefile.c: Likewise.
645 * corelow.c: Likewise.
646 * event-loop.c: Likewise.
647 * f-typeprint.c: Likewise.
648 * gnu-nat.c: Likewise.
649 * go32-nat.c: Likewise.
650 * i386gnu-nat.c: Likewise.
651 * m2-typeprint.c: Likewise.
652 * nat/linux-btrace.c: Likewise.
653 * p-typeprint.c: Likewise.
654 * procfs.c: Likewise.
655 * remote-sim.c: Likewise.
656 * rs6000-nat.c: Likewise.
657 * target.c: Likewise.
658 * typeprint.c: Likewise.
659 * ui-file.c: Likewise.
660 * valops.c: Likewise.
661 * valprint.c: Likewise.
662
6d3d12eb
GB
6632014-08-07 Gary Benson <gbenson@redhat.com>
664
665 * common/common-defs.h: Include string.h.
666 * aarch64-tdep.c: Do not include string.h.
667 * ada-exp.y: Likewise.
668 * ada-lang.c: Likewise.
669 * ada-lex.l: Likewise.
670 * ada-typeprint.c: Likewise.
671 * ada-valprint.c: Likewise.
672 * aix-thread.c: Likewise.
673 * alpha-linux-tdep.c: Likewise.
674 * alpha-mdebug-tdep.c: Likewise.
675 * alpha-nat.c: Likewise.
676 * alpha-osf1-tdep.c: Likewise.
677 * alpha-tdep.c: Likewise.
678 * alphanbsd-tdep.c: Likewise.
679 * amd64-dicos-tdep.c: Likewise.
680 * amd64-linux-tdep.c: Likewise.
681 * amd64-nat.c: Likewise.
682 * amd64-sol2-tdep.c: Likewise.
683 * amd64fbsd-tdep.c: Likewise.
684 * amd64obsd-tdep.c: Likewise.
685 * arch-utils.c: Likewise.
686 * arm-linux-nat.c: Likewise.
687 * arm-linux-tdep.c: Likewise.
688 * arm-tdep.c: Likewise.
689 * arm-wince-tdep.c: Likewise.
690 * armbsd-tdep.c: Likewise.
691 * armnbsd-nat.c: Likewise.
692 * armnbsd-tdep.c: Likewise.
693 * armobsd-tdep.c: Likewise.
694 * avr-tdep.c: Likewise.
695 * ax-gdb.c: Likewise.
696 * ax-general.c: Likewise.
697 * bcache.c: Likewise.
698 * bfin-tdep.c: Likewise.
699 * breakpoint.c: Likewise.
700 * build-id.c: Likewise.
701 * buildsym.c: Likewise.
702 * c-exp.y: Likewise.
703 * c-lang.c: Likewise.
704 * c-typeprint.c: Likewise.
705 * c-valprint.c: Likewise.
706 * charset.c: Likewise.
707 * cli-out.c: Likewise.
708 * cli/cli-cmds.c: Likewise.
709 * cli/cli-decode.c: Likewise.
710 * cli/cli-dump.c: Likewise.
711 * cli/cli-interp.c: Likewise.
712 * cli/cli-logging.c: Likewise.
713 * cli/cli-script.c: Likewise.
714 * cli/cli-setshow.c: Likewise.
715 * cli/cli-utils.c: Likewise.
716 * coffread.c: Likewise.
717 * common/agent.c: Likewise.
718 * common/buffer.c: Likewise.
719 * common/buffer.h: Likewise.
720 * common/common-utils.c: Likewise.
721 * common/filestuff.c: Likewise.
722 * common/filestuff.c: Likewise.
723 * common/format.c: Likewise.
724 * common/print-utils.c: Likewise.
725 * common/rsp-low.c: Likewise.
726 * common/signals.c: Likewise.
727 * common/vec.h: Likewise.
728 * common/xml-utils.c: Likewise.
729 * core-regset.c: Likewise.
730 * corefile.c: Likewise.
731 * corelow.c: Likewise.
732 * cp-abi.c: Likewise.
733 * cp-name-parser.y: Likewise.
734 * cp-support.c: Likewise.
735 * cp-valprint.c: Likewise.
736 * cris-tdep.c: Likewise.
737 * d-exp.y: Likewise.
738 * darwin-nat.c: Likewise.
739 * dbxread.c: Likewise.
740 * dcache.c: Likewise.
741 * demangle.c: Likewise.
742 * dicos-tdep.c: Likewise.
743 * disasm.c: Likewise.
744 * doublest.c: Likewise.
745 * dsrec.c: Likewise.
746 * dummy-frame.c: Likewise.
747 * dwarf2-frame.c: Likewise.
748 * dwarf2loc.c: Likewise.
749 * dwarf2read.c: Likewise.
750 * elfread.c: Likewise.
751 * environ.c: Likewise.
752 * eval.c: Likewise.
753 * event-loop.c: Likewise.
754 * exceptions.c: Likewise.
755 * exec.c: Likewise.
756 * expprint.c: Likewise.
757 * f-exp.y: Likewise.
758 * f-lang.c: Likewise.
759 * f-typeprint.c: Likewise.
760 * f-valprint.c: Likewise.
761 * fbsd-nat.c: Likewise.
762 * findcmd.c: Likewise.
763 * findvar.c: Likewise.
764 * fork-child.c: Likewise.
765 * frame.c: Likewise.
766 * frv-linux-tdep.c: Likewise.
767 * frv-tdep.c: Likewise.
768 * gdb.c: Likewise.
769 * gdb_bfd.c: Likewise.
770 * gdbarch.c: Likewise.
771 * gdbarch.sh: Likewise.
772 * gdbtypes.c: Likewise.
773 * gnu-nat.c: Likewise.
774 * gnu-v2-abi.c: Likewise.
775 * gnu-v3-abi.c: Likewise.
776 * go-exp.y: Likewise.
777 * go-lang.c: Likewise.
778 * go32-nat.c: Likewise.
779 * guile/guile.c: Likewise.
780 * guile/scm-auto-load.c: Likewise.
781 * hppa-hpux-tdep.c: Likewise.
782 * hppa-linux-nat.c: Likewise.
783 * hppanbsd-tdep.c: Likewise.
784 * hppaobsd-tdep.c: Likewise.
785 * i386-cygwin-tdep.c: Likewise.
786 * i386-dicos-tdep.c: Likewise.
787 * i386-linux-tdep.c: Likewise.
788 * i386-nto-tdep.c: Likewise.
789 * i386-sol2-tdep.c: Likewise.
790 * i386-tdep.c: Likewise.
791 * i386bsd-tdep.c: Likewise.
792 * i386gnu-nat.c: Likewise.
793 * i386nbsd-tdep.c: Likewise.
794 * i386obsd-tdep.c: Likewise.
795 * i387-tdep.c: Likewise.
796 * ia64-libunwind-tdep.c: Likewise.
797 * ia64-linux-nat.c: Likewise.
798 * inf-child.c: Likewise.
799 * inf-ptrace.c: Likewise.
800 * inf-ttrace.c: Likewise.
801 * infcall.c: Likewise.
802 * infcmd.c: Likewise.
803 * inflow.c: Likewise.
804 * infrun.c: Likewise.
805 * interps.c: Likewise.
806 * iq2000-tdep.c: Likewise.
807 * irix5-nat.c: Likewise.
808 * jv-exp.y: Likewise.
809 * jv-lang.c: Likewise.
810 * jv-typeprint.c: Likewise.
811 * jv-valprint.c: Likewise.
812 * language.c: Likewise.
813 * linux-fork.c: Likewise.
814 * linux-nat.c: Likewise.
815 * lm32-tdep.c: Likewise.
816 * m2-exp.y: Likewise.
817 * m2-typeprint.c: Likewise.
818 * m32c-tdep.c: Likewise.
819 * m32r-linux-nat.c: Likewise.
820 * m32r-linux-tdep.c: Likewise.
821 * m32r-rom.c: Likewise.
822 * m32r-tdep.c: Likewise.
823 * m68hc11-tdep.c: Likewise.
824 * m68k-tdep.c: Likewise.
825 * m68kbsd-tdep.c: Likewise.
826 * m68klinux-nat.c: Likewise.
827 * m68klinux-tdep.c: Likewise.
828 * m88k-tdep.c: Likewise.
829 * machoread.c: Likewise.
830 * macrocmd.c: Likewise.
831 * main.c: Likewise.
832 * mdebugread.c: Likewise.
833 * mem-break.c: Likewise.
834 * memattr.c: Likewise.
835 * memory-map.c: Likewise.
836 * mep-tdep.c: Likewise.
837 * mi/mi-cmd-break.c: Likewise.
838 * mi/mi-cmd-disas.c: Likewise.
839 * mi/mi-cmd-env.c: Likewise.
840 * mi/mi-cmd-stack.c: Likewise.
841 * mi/mi-cmd-var.c: Likewise.
842 * mi/mi-cmds.c: Likewise.
843 * mi/mi-console.c: Likewise.
844 * mi/mi-getopt.c: Likewise.
845 * mi/mi-interp.c: Likewise.
846 * mi/mi-main.c: Likewise.
847 * mi/mi-parse.c: Likewise.
848 * microblaze-rom.c: Likewise.
849 * microblaze-tdep.c: Likewise.
850 * mingw-hdep.c: Likewise.
851 * minidebug.c: Likewise.
852 * minsyms.c: Likewise.
853 * mips-irix-tdep.c: Likewise.
854 * mips-linux-tdep.c: Likewise.
855 * mips-tdep.c: Likewise.
856 * mips64obsd-tdep.c: Likewise.
857 * mipsnbsd-tdep.c: Likewise.
858 * mipsread.c: Likewise.
859 * mn10300-linux-tdep.c: Likewise.
860 * mn10300-tdep.c: Likewise.
861 * monitor.c: Likewise.
862 * moxie-tdep.c: Likewise.
863 * mt-tdep.c: Likewise.
864 * nat/linux-btrace.c: Likewise.
865 * nat/linux-osdata.c: Likewise.
866 * nat/linux-procfs.c: Likewise.
867 * nat/linux-ptrace.c: Likewise.
868 * nat/linux-waitpid.c: Likewise.
869 * nbsd-tdep.c: Likewise.
870 * nios2-linux-tdep.c: Likewise.
871 * nto-procfs.c: Likewise.
872 * nto-tdep.c: Likewise.
873 * objc-lang.c: Likewise.
874 * objfiles.c: Likewise.
875 * opencl-lang.c: Likewise.
876 * osabi.c: Likewise.
877 * osdata.c: Likewise.
878 * p-exp.y: Likewise.
879 * p-lang.c: Likewise.
880 * p-typeprint.c: Likewise.
881 * parse.c: Likewise.
882 * posix-hdep.c: Likewise.
883 * ppc-linux-nat.c: Likewise.
884 * ppc-sysv-tdep.c: Likewise.
885 * ppcfbsd-tdep.c: Likewise.
886 * ppcnbsd-tdep.c: Likewise.
887 * ppcobsd-tdep.c: Likewise.
888 * printcmd.c: Likewise.
889 * procfs.c: Likewise.
890 * prologue-value.c: Likewise.
891 * python/py-auto-load.c: Likewise.
892 * python/py-gdb-readline.c: Likewise.
893 * ravenscar-thread.c: Likewise.
894 * regcache.c: Likewise.
895 * registry.c: Likewise.
896 * remote-fileio.c: Likewise.
897 * remote-m32r-sdi.c: Likewise.
898 * remote-mips.c: Likewise.
899 * remote-notif.c: Likewise.
900 * remote-sim.c: Likewise.
901 * remote.c: Likewise.
902 * reverse.c: Likewise.
903 * rs6000-aix-tdep.c: Likewise.
904 * ser-base.c: Likewise.
905 * ser-go32.c: Likewise.
906 * ser-mingw.c: Likewise.
907 * ser-pipe.c: Likewise.
908 * ser-tcp.c: Likewise.
909 * ser-unix.c: Likewise.
910 * serial.c: Likewise.
911 * sh-tdep.c: Likewise.
912 * sh64-tdep.c: Likewise.
913 * shnbsd-tdep.c: Likewise.
914 * skip.c: Likewise.
915 * sol-thread.c: Likewise.
916 * solib-dsbt.c: Likewise.
917 * solib-frv.c: Likewise.
918 * solib-osf.c: Likewise.
919 * solib-som.c: Likewise.
920 * solib-spu.c: Likewise.
921 * solib-target.c: Likewise.
922 * solib.c: Likewise.
923 * somread.c: Likewise.
924 * source.c: Likewise.
925 * sparc-nat.c: Likewise.
926 * sparc-sol2-tdep.c: Likewise.
927 * sparc-tdep.c: Likewise.
928 * sparc64-tdep.c: Likewise.
929 * sparc64fbsd-tdep.c: Likewise.
930 * sparc64nbsd-tdep.c: Likewise.
931 * sparcnbsd-tdep.c: Likewise.
932 * spu-linux-nat.c: Likewise.
933 * spu-multiarch.c: Likewise.
934 * spu-tdep.c: Likewise.
935 * stabsread.c: Likewise.
936 * stack.c: Likewise.
937 * std-regs.c: Likewise.
938 * symfile.c: Likewise.
939 * symmisc.c: Likewise.
940 * symtab.c: Likewise.
941 * target.c: Likewise.
942 * thread.c: Likewise.
943 * tilegx-linux-nat.c: Likewise.
944 * tilegx-tdep.c: Likewise.
945 * top.c: Likewise.
946 * tracepoint.c: Likewise.
947 * tui/tui-command.c: Likewise.
948 * tui/tui-data.c: Likewise.
949 * tui/tui-disasm.c: Likewise.
950 * tui/tui-file.c: Likewise.
951 * tui/tui-layout.c: Likewise.
952 * tui/tui-out.c: Likewise.
953 * tui/tui-regs.c: Likewise.
954 * tui/tui-source.c: Likewise.
955 * tui/tui-stack.c: Likewise.
956 * tui/tui-win.c: Likewise.
957 * tui/tui-windata.c: Likewise.
958 * tui/tui-winsource.c: Likewise.
959 * typeprint.c: Likewise.
960 * ui-file.c: Likewise.
961 * ui-out.c: Likewise.
962 * user-regs.c: Likewise.
963 * utils.c: Likewise.
964 * v850-tdep.c: Likewise.
965 * valarith.c: Likewise.
966 * valops.c: Likewise.
967 * valprint.c: Likewise.
968 * value.c: Likewise.
969 * varobj.c: Likewise.
970 * vax-tdep.c: Likewise.
971 * vaxnbsd-tdep.c: Likewise.
972 * vaxobsd-tdep.c: Likewise.
973 * windows-nat.c: Likewise.
974 * xcoffread.c: Likewise.
975 * xml-support.c: Likewise.
976 * xstormy16-tdep.c: Likewise.
977 * xtensa-linux-nat.c: Likewise.
978
dccbb609
GB
9792014-08-07 Gary Benson <gbenson@redhat.com>
980
981 * common/common-defs.h: Include gdb_assert.h.
982 * aarch64-tdep.c: Do not include gdb_assert.h.
983 * addrmap.c: Likewise.
984 * aix-thread.c: Likewise.
985 * alpha-linux-tdep.c: Likewise.
986 * alpha-mdebug-tdep.c: Likewise.
987 * alphanbsd-tdep.c: Likewise.
988 * amd64-nat.c: Likewise.
989 * amd64-tdep.c: Likewise.
990 * amd64bsd-nat.c: Likewise.
991 * amd64fbsd-nat.c: Likewise.
992 * amd64fbsd-tdep.c: Likewise.
993 * amd64nbsd-nat.c: Likewise.
994 * amd64nbsd-tdep.c: Likewise.
995 * amd64obsd-nat.c: Likewise.
996 * amd64obsd-tdep.c: Likewise.
997 * arch-utils.c: Likewise.
998 * arm-tdep.c: Likewise.
999 * armbsd-tdep.c: Likewise.
1000 * auxv.c: Likewise.
1001 * bcache.c: Likewise.
1002 * bfin-tdep.c: Likewise.
1003 * blockframe.c: Likewise.
1004 * breakpoint.c: Likewise.
1005 * bsd-kvm.c: Likewise.
1006 * bsd-uthread.c: Likewise.
1007 * buildsym.c: Likewise.
1008 * c-exp.y: Likewise.
1009 * c-lang.c: Likewise.
1010 * charset.c: Likewise.
1011 * cleanups.c: Likewise.
1012 * cli-out.c: Likewise.
1013 * cli/cli-decode.c: Likewise.
1014 * cli/cli-dump.c: Likewise.
1015 * cli/cli-logging.c: Likewise.
1016 * cli/cli-script.c: Likewise.
1017 * cli/cli-utils.c: Likewise.
1018 * coffread.c: Likewise.
1019 * common/common-utils.c: Likewise.
1020 * common/queue.h: Likewise.
1021 * common/signals.c: Likewise.
1022 * common/vec.h: Likewise.
1023 * complaints.c: Likewise.
1024 * completer.c: Likewise.
1025 * corelow.c: Likewise.
1026 * cp-abi.c: Likewise.
1027 * cp-name-parser.y: Likewise.
1028 * cp-namespace.c: Likewise.
1029 * cp-support.c: Likewise.
1030 * cris-tdep.c: Likewise.
1031 * dbxread.c: Likewise.
1032 * dictionary.c: Likewise.
1033 * doublest.c: Likewise.
1034 * dsrec.c: Likewise.
1035 * dummy-frame.c: Likewise.
1036 * dwarf2-frame-tailcall.c: Likewise.
1037 * dwarf2-frame.c: Likewise.
1038 * dwarf2expr.c: Likewise.
1039 * dwarf2loc.c: Likewise.
1040 * dwarf2read.c: Likewise.
1041 * eval.c: Likewise.
1042 * event-loop.c: Likewise.
1043 * exceptions.c: Likewise.
1044 * expprint.c: Likewise.
1045 * f-valprint.c: Likewise.
1046 * fbsd-nat.c: Likewise.
1047 * findvar.c: Likewise.
1048 * frame-unwind.c: Likewise.
1049 * frame.c: Likewise.
1050 * frv-tdep.c: Likewise.
1051 * gcore.c: Likewise.
1052 * gdb-dlfcn.c: Likewise.
1053 * gdb_bfd.c: Likewise.
1054 * gdbarch.c: Likewise.
1055 * gdbarch.sh: Likewise.
1056 * gdbtypes.c: Likewise.
1057 * gnu-nat.c: Likewise.
1058 * gnu-v3-abi.c: Likewise.
1059 * go-lang.c: Likewise.
1060 * guile/scm-exception.c: Likewise.
1061 * guile/scm-gsmob.c: Likewise.
1062 * guile/scm-lazy-string.c: Likewise.
1063 * guile/scm-math.c: Likewise.
1064 * guile/scm-pretty-print.c: Likewise.
1065 * guile/scm-safe-call.c: Likewise.
1066 * guile/scm-utils.c: Likewise.
1067 * guile/scm-value.c: Likewise.
1068 * h8300-tdep.c: Likewise.
1069 * hppa-hpux-nat.c: Likewise.
1070 * hppa-tdep.c: Likewise.
1071 * hppanbsd-tdep.c: Likewise.
1072 * hppaobsd-tdep.c: Likewise.
1073 * i386-darwin-nat.c: Likewise.
1074 * i386-darwin-tdep.c: Likewise.
1075 * i386-nto-tdep.c: Likewise.
1076 * i386-tdep.c: Likewise.
1077 * i386bsd-nat.c: Likewise.
1078 * i386fbsd-tdep.c: Likewise.
1079 * i386gnu-nat.c: Likewise.
1080 * i386nbsd-tdep.c: Likewise.
1081 * i386obsd-tdep.c: Likewise.
1082 * i387-tdep.c: Likewise.
1083 * ia64-libunwind-tdep.c: Likewise.
1084 * ia64-tdep.c: Likewise.
1085 * inf-ptrace.c: Likewise.
1086 * inf-ttrace.c: Likewise.
1087 * infcall.c: Likewise.
1088 * infcmd.c: Likewise.
1089 * infrun.c: Likewise.
1090 * inline-frame.c: Likewise.
1091 * interps.c: Likewise.
1092 * jv-lang.c: Likewise.
1093 * jv-typeprint.c: Likewise.
1094 * linux-fork.c: Likewise.
1095 * linux-nat.c: Likewise.
1096 * linux-thread-db.c: Likewise.
1097 * m32c-tdep.c: Likewise.
1098 * m32r-linux-nat.c: Likewise.
1099 * m32r-tdep.c: Likewise.
1100 * m68k-tdep.c: Likewise.
1101 * m68kbsd-nat.c: Likewise.
1102 * m68kbsd-tdep.c: Likewise.
1103 * m88k-tdep.c: Likewise.
1104 * machoread.c: Likewise.
1105 * macroexp.c: Likewise.
1106 * macrotab.c: Likewise.
1107 * maint.c: Likewise.
1108 * mdebugread.c: Likewise.
1109 * memory-map.c: Likewise.
1110 * mep-tdep.c: Likewise.
1111 * mi/mi-common.c: Likewise.
1112 * microblaze-tdep.c: Likewise.
1113 * mingw-hdep.c: Likewise.
1114 * mips-linux-nat.c: Likewise.
1115 * mips-linux-tdep.c: Likewise.
1116 * mips-tdep.c: Likewise.
1117 * mips64obsd-tdep.c: Likewise.
1118 * mipsnbsd-tdep.c: Likewise.
1119 * mn10300-linux-tdep.c: Likewise.
1120 * mn10300-tdep.c: Likewise.
1121 * moxie-tdep.c: Likewise.
1122 * mt-tdep.c: Likewise.
1123 * nat/linux-btrace.c: Likewise.
1124 * nat/linux-osdata.c: Likewise.
1125 * nat/linux-ptrace.c: Likewise.
1126 * nat/mips-linux-watch.c: Likewise.
1127 * nios2-linux-tdep.c: Likewise.
1128 * nios2-tdep.c: Likewise.
1129 * objc-lang.c: Likewise.
1130 * objfiles.c: Likewise.
1131 * obsd-nat.c: Likewise.
1132 * opencl-lang.c: Likewise.
1133 * osabi.c: Likewise.
1134 * parse.c: Likewise.
1135 * ppc-linux-nat.c: Likewise.
1136 * ppc-sysv-tdep.c: Likewise.
1137 * ppcfbsd-nat.c: Likewise.
1138 * ppcfbsd-tdep.c: Likewise.
1139 * ppcnbsd-nat.c: Likewise.
1140 * ppcnbsd-tdep.c: Likewise.
1141 * ppcobsd-nat.c: Likewise.
1142 * ppcobsd-tdep.c: Likewise.
1143 * printcmd.c: Likewise.
1144 * procfs.c: Likewise.
1145 * prologue-value.c: Likewise.
1146 * psymtab.c: Likewise.
1147 * python/py-lazy-string.c: Likewise.
1148 * python/py-value.c: Likewise.
1149 * regcache.c: Likewise.
1150 * reggroups.c: Likewise.
1151 * registry.c: Likewise.
1152 * remote-sim.c: Likewise.
1153 * remote.c: Likewise.
1154 * rs6000-aix-tdep.c: Likewise.
1155 * rs6000-tdep.c: Likewise.
1156 * s390-linux-tdep.c: Likewise.
1157 * score-tdep.c: Likewise.
1158 * ser-base.c: Likewise.
1159 * ser-mingw.c: Likewise.
1160 * sh-tdep.c: Likewise.
1161 * sh64-tdep.c: Likewise.
1162 * solib-darwin.c: Likewise.
1163 * solib-spu.c: Likewise.
1164 * solib-svr4.c: Likewise.
1165 * source.c: Likewise.
1166 * sparc-nat.c: Likewise.
1167 * sparc-sol2-tdep.c: Likewise.
1168 * sparc-tdep.c: Likewise.
1169 * sparc64-sol2-tdep.c: Likewise.
1170 * sparc64-tdep.c: Likewise.
1171 * sparc64fbsd-tdep.c: Likewise.
1172 * sparc64nbsd-tdep.c: Likewise.
1173 * sparc64obsd-tdep.c: Likewise.
1174 * sparcnbsd-tdep.c: Likewise.
1175 * sparcobsd-tdep.c: Likewise.
1176 * spu-multiarch.c: Likewise.
1177 * spu-tdep.c: Likewise.
1178 * stabsread.c: Likewise.
1179 * stack.c: Likewise.
1180 * symfile.c: Likewise.
1181 * symtab.c: Likewise.
1182 * target-descriptions.c: Likewise.
1183 * target-memory.c: Likewise.
1184 * target.c: Likewise.
1185 * tic6x-linux-tdep.c: Likewise.
1186 * tic6x-tdep.c: Likewise.
1187 * tilegx-linux-nat.c: Likewise.
1188 * tilegx-tdep.c: Likewise.
1189 * top.c: Likewise.
1190 * tramp-frame.c: Likewise.
1191 * tui/tui-out.c: Likewise.
1192 * tui/tui-winsource.c: Likewise.
1193 * ui-out.c: Likewise.
1194 * user-regs.c: Likewise.
1195 * utils.c: Likewise.
1196 * v850-tdep.c: Likewise.
1197 * valops.c: Likewise.
1198 * value.c: Likewise.
1199 * varobj.c: Likewise.
1200 * vax-nat.c: Likewise.
1201 * xml-syscall.c: Likewise.
1202 * xml-tdesc.c: Likewise.
1203 * xstormy16-tdep.c: Likewise.
1204 * xtensa-linux-nat.c: Likewise.
1205 * xtensa-tdep.c: Likewise.
1206
e76df0d0
GB
12072014-08-07 Gary Benson <gbenson@redhat.com>
1208
1209 * common/common-defs.h: Include common-utils.h.
1210 * defs.h: Do not include common-utils.h.
1211 * common/gdb_assert.h: Likewise.
1212 * darwin-nat.h: Likewise.
1213 * nat/linux-btrace.c: Likewise.
1214 * target/waitstatus.h: Likewise.
1215
4cb9c816
GB
12162014-08-07 Gary Benson <gbenson@redhat.com>
1217
1218 * common/common-defs.h: Include ptid.h.
1219 * defs.h: Do not include ptid.h.
1220 * inferior.h: Likewise.
1221 * infrun.h: Likewise.
1222 * nat/linux-btrace.h: Likewise.
1223 * nat/linux-osdata.h: Likewise.
1224 * target/waitstatus.h: Likewise.
1225
3995eeee
GB
12262014-08-07 Gary Benson <gbenson@redhat.com>
1227
1228 * common/common-defs.h: Include gdb_locale.h.
1229 * defs.h: Do not include gdb_locale.h.
1230
cb9f1a9b
GB
12312014-08-07 Gary Benson <gbenson@redhat.com>
1232
1233 * common/common-defs.h: Include gdb/signals.h.
1234 * defs.h: Do not include gdb/signals.h.
1235
a5fceff8
GB
12362014-08-07 Gary Benson <gbenson@redhat.com>
1237
1238 * common/common-defs.h: Include pathmax.h.
1239 * defs.h: Do not include pathmax.h.
1240
b9391142
GB
12412014-08-07 Gary Benson <gbenson@redhat.com>
1242
1243 * common/common-defs.h: Include libiberty.h.
1244 * defs.h: Do not include libiberty.h.
1245 * common/queue.h: Likewise.
1246 * cp-name-parser.y: Likewise.
1247 * mi/mi-cmd-catch.c: Likewise.
1248 * python/python.c: Likewise.
1249
0e443c87
GB
12502014-08-07 Gary Benson <gbenson@redhat.com>
1251
1252 * common/common-defs.h: Include ansidecl.h.
1253 * defs.h: Do not include ansidecl.h.
1254 * common/buffer.h: Likewise.
1255 * common/common-utils.h: Likewise.
1256
8ebb3f56
GB
12572014-08-07 Gary Benson <gbenson@redhat.com>
1258
1259 * common/common-defs.h: Include stddef.h.
1260 * defs.h: Do not include stddef.h.
1261 * common/common-utils.h: Likewise.
1262 * amd64fbsd-nat.c: Likewise.
1263 * bcache.c: Likewise.
1264 * charset.c: Likewise.
1265 * common/buffer.h: Likewise.
1266 * common/vec.h: Likewise.
1267 * i386bsd-nat.c: Likewise.
1268 * nat/linux-btrace.h: Likewise.
1269 * ppcfbsd-nat.c: Likewise.
1270 * ppcnbsd-tdep.h: Likewise.
1271 * ppcobsd-nat.c: Likewise.
1272 * ppcobsd-tdep.h: Likewise.
1273 * python/py-gdb-readline.c: Likewise.
1274
8980bdf6
GB
12752014-08-07 Gary Benson <gbenson@redhat.com>
1276
1277 * common/common-defs.h: Include stdarg.h.
1278 * defs.h: Do not include stdarg.h.
1279 * ada-lang.c: Likewise.
1280 * common/common-utils.h: Likewise.
1281 * guile/scm-string.c: Likewise.
1282 * guile/scm-utils.c: Likewise.
1283 * m32c-tdep.c: Likewise.
1284
d7096f71
GB
12852014-08-07 Gary Benson <gbenson@redhat.com>
1286
1287 * common/common-defs.h: Include stdlib.h.
1288 * defs.h: Do not include stdlib.h.
1289 * addrmap.c: Likewise.
1290 * bcache.c: Likewise.
1291 * common/buffer.c: Likewise.
1292 * common/common-utils.c: Likewise.
1293 * cp-name-parser.y: Likewise.
1294 * go32-nat.c: Likewise.
1295 * mn10300-linux-tdep.c: Likewise.
1296 * nat/linux-osdata.c: Likewise.
1297 * tui/tui.c: Likewise.
1298 * windows-nat.c: Likewise.
1299
d02f550d
GB
13002014-08-07 Gary Benson <gbenson@redhat.com>
1301
1302 * common/common-defs.h: Include stdio.h.
1303 * defs.h: Do not include stdio.h.
1304 * ada-lang.c: Likewise.
1305 * common/buffer.c: Likewise.
1306 * common/common-utils.c: Likewise.
1307 * cp-name-parser.y: Likewise.
1308 * gnu-nat.c: Likewise.
1309 * go32-nat.c: Likewise.
1310 * i386gnu-nat.c: Likewise.
1311 * proc-api.c: Likewise.
1312 * proc-events.c: Likewise.
1313 * proc-flags.c: Likewise.
1314 * proc-why.c: Likewise.
1315 * python/python-internal.h: Likewise.
1316 * target-memory.c: Likewise.
1317 * tui/tui-io.c: Likewise.
1318 * tui/tui.c: Likewise.
1319
b6d7a4bf
SM
13202014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1321
1322 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1323 (scan_dyntag_auxv): Same.
1324
af19829b
YQ
13252014-08-06 Yao Qi <yao@codesourcery.com>
1326
1327 * amd64-linux-nat.c: Remove duplicated include
1328 "x86-linux-nat.h".
1329 * i386-linux-nat.c: Likewise.
1330
8e07a239
YQ
13312014-08-06 Yao Qi <yao@codesourcery.com>
1332
1333 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1334 operand" with "Special opcode" in comments.
1335
7bfe8241
GB
13362014-08-05 Gary Benson <gbenson@redhat.com>
1337
1338 * interps.c (initialize_interps): Remove prototype.
1339 (interpreter_initialized): Remove static global.
1340 (interp_add): Do not call initialize_interps.
1341 (initialize_interps): Remove function.
1342
d6c95504
GB
13432014-08-05 Gary Benson <gbenson@redhat.com>
1344
1345 * utils.c (vwarning): Remove spurious va_end.
1346
241fd515
AM
13472014-08-05 Alan Modra <amodra@gmail.com>
1348
1349 * charset.c (convert_between_encodings): Cast result of obstack_base.
1350 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1351 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1352 (read_unwind_info): Use size_t for some locals.
1353 * jit.c (finalize_symtab): Likewise.
1354 * utils.c (hashtab_obstack_allocate): Likewise.
1355 * symmisc.c (print_objfile_statistics): Update format strings.
1356
dc304a94
JK
13572014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1360 (Changes in GDB 7.8): ... here.
1361
3cecbbbe
TT
13622014-08-04 Tom Tromey <tromey@redhat.com>
1363
1364 * target.c (set_targetdebug): New function.
1365 (initialize_targets): Pass set_targetdebug when creating "set
1366 debug target".
1367
6908c509
JB
13682014-08-01 Joel Brobecker <brobecker@adacore.com>
1369
1370 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1371 if detecting a variable-sized field that is not the last field.
1372 Fix struct type length computation.
1373
53e8f97d
JB
13742014-08-01 Joel Brobecker <brobecker@adacore.com>
1375
1376 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1377 Add debug trace.
1378
e068c55d
JB
13792014-08-01 Joel Brobecker <brobecker@adacore.com>
1380
1381 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1382 Remove "+ 8" offset in computation of CHAIN_VMA.
1383
4d4ca2a1
DE
13842014-07-31 Doug Evans <dje@google.com>
1385
1386 * inflow.c (child_terminal_inferior): Add comment.
1387 (child_terminal_ours_for_output): Add comment.
1388 (child_terminal_ours): Add comment.
1389 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1390 (linux_nat_terminal_ours): Add comment.
1391
462f517e
GB
13922014-07-31 Gary Benson <gbenson@redhat.com>
1393
1394 * common/btrace-common.h: Do not include defs.h or server.h.
1395 * nat/mips-linux-watch.h: Likewise.
1396 * gdb-dlfcn.h: Do not include defs.h.
1397 * tracefile.h: Likewise.
1398
74228e77
RM
13992014-07-30 Roland McGrath <mcgrathr@google.com>
1400
1401 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1402
014f9477
TT
14032014-07-30 Tom Tromey <tromey@redhat.com>
1404
1405 * bsd-kvm.c (bsd_kvm_open): Constify.
1406 * corelow.c (core_open): Constify.
1407 * ctf.c (ctf_open): Constify.
1408 * dbug-rom.c (dbug_open): Constify.
1409 * exec.c (exec_open): Constify.
1410 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1411 * microblaze-rom.c (picobug_open): Constify.
1412 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1413 Constify.
1414 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1415 * record-btrace.c (record_btrace_open): Constify.
1416 * record-full.c (record_full_core_open_1, record_full_open_1)
1417 (record_full_open): Constify.
1418 * remote-m32r-sdi.c (m32r_open): Constify.
1419 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1420 (rockhopper_open, lsi_open): Constify.
1421 * remote-sim.c (gdbsim_open): Constify.
1422 * remote.c (remote_open, extended_remote_open, remote_open_1):
1423 Constify.
1424 * target.h (struct target_ops) <to_open>: Make "arg" const.
1425 * tracefile-tfile.c (tfile_open): Constify.
1426
e799154c
TT
14272014-07-30 Tom Tromey <tromey@redhat.com>
1428
1429 * breakpoint.c (map_breakpoint_numbers): Update.
1430 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1431 (get_number_const): New function.
1432 (get_number): Rewrite using get_number_const.
1433 (init_number_or_range): Make "string" const.
1434 (number_is_in_list): Make "list" const.
1435 * cli/cli-utils.h (get_number_const): Declare.
1436 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1437 (init_number_or_range, number_is_in_list): Update.
1438 * printcmd.c (map_display_numbers): Update.
1439 * value.c (value_from_history_ref): Constify.
1440 * value.h (value_from_history_ref): Update.
1441
5f08566b
TT
14422014-07-30 Tom Tromey <tromey@redhat.com>
1443
1444 * corefile.c (hook_type, call_extra_exec_file_hooks)
1445 (specify_exec_file_hook): Constify.
1446 * exec.c (exec_file_attach): Make "filename" const.
1447 * gdbcore.h (deprecated_exec_file_display_hook)
1448 (specify_exec_file_hook, exec_file_attach): Constify.
1449 * main.c (captured_main): Use catch_command_errors_const.
1450
8981c758
TT
14512014-07-30 Tom Tromey <tromey@redhat.com>
1452
1453 * target.c (open_target): New function.
1454 (add_target_with_completer, add_deprecated_target_alias): Use
1455 set_cmd_sfunc, set_cmd_context.
1456 (debug_to_open): Remove.
1457 (setup_target_debug): Update.
1458
a1c7835a
YQ
14592014-07-30 Yao Qi <yao@codesourcery.com>
1460
1461 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1462 comments.
1463 * parse.c (exp_iterate): Update comments.
1464
976411d6
GB
14652014-07-30 Gary Benson <gbenson@redhat.com>
1466
1467 * common/common-defs.h: New file.
1468 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1469 * defs.h: Include common-defs.h.
1470 Do not include config.h or build-gnulib/config.h.
1471
5d4848a4
GB
14722014-07-30 Gary Benson <gbenson@redhat.com>
1473
1474 * common/common-utils.h: Do not include config.h.
1475 * nat/linux-btrace.h: Likewise.
1476
d41f6d8e
GB
14772014-07-30 Gary Benson <gbenson@redhat.com>
1478
1479 * btrace.c: Include defs.h.
1480 * common/ptid.c: Include defs.h or server.h as appropriate.
1481 * nat/mips-linux-watch.c: Likewise.
1482
84202f9c
TT
14832014-07-29 Tom Tromey <tromey@redhat.com>
1484
1485 * target.c (target_is_pushed): Simplify.
1486
2530441c
JB
14872014-07-29 Joel Brobecker <brobecker@adacore.com>
1488
1489 GDB 7.8 released.
1490
7e09a223
YQ
14912014-07-29 Yao Qi <yao@codesourcery.com>
1492
1493 PR gdb/17206
1494 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1495
7ebdbe92
DE
14962014-07-28 Doug Evans <xdje42@gmail.com>
1497
1498 PR guile/17203
1499 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1500 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1501 parameters.
1502
f347ffc9
WN
15032014-07-28 Will Newton <will.newton@linaro.org>
1504
1505 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1506 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1507 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1508 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1509 (THUMB2_EABI_SYSCALL): Likewise.
1510 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1511 struct tramp_frame.
1512 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1513 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1514
37c5f1f7
DE
15152014-07-27 Doug Evans <xdje42@gmail.com>
1516
1517 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1518
0c3abbc7
DE
15192014-07-27 Doug Evans <xdje42@gmail.com>
1520
1521 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1522
e76c5d17
DE
15232014-07-26 Ludovic Courtès <ludo@gnu.org>
1524 Doug Evans <xdje42@gmail.com>
1525
1526 PR guile/17146
1527 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1528 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1529 * configure.ac: Try to use guild to compile an scm file, if it fails
1530 then disable guile support.
1531 * configure: Regenerate.
1532 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1533 GUILE_FILE_LIST.
1534 (GUILE_COMPILED_FILES): New variable.
1535 (GUILE_FILES) Update.
1536 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1537 (stamp-guile): Compile scm files.
1538 * guile/guile.c (boot_guile_support): New function.
1539 (standard_throw_args_p): New function.
1540 (print_standard_throw_error, print_throw_error): New functions.
1541 (handle_boot_error): New function.
1542 (initialize_scheme_side): Rewrite to call boot_guile_support.
1543 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1544 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1545
186fcde0
DE
15462014-07-26 Ludovic Courtès <ludo@gnu.org>
1547 Doug Evans <xdje42@gmail.com>
1548
1549 PR guile/17146
1550 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1551 * guile/lib/gdb/support.scm: New file.
1552 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1553 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1554 All uses updated.
1555 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1556 All uses updated.
1557 (%assert-type): Ditto, and renamed to assert-type.
1558 (%exception-print-style): Delete.
1559
4df42755
DE
15602014-07-26 Doug Evans <xdje42@gmail.com>
1561
1562 PR build/17105
1563 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1564 * configure: Regenerate.
1565 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1566 PYTHON_FILES.
1567 (PYTHON_FILES): New variable.
1568 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1569 (GUILE_FILES): New variable.
1570 (stamp-python, install-python, uninstall-python): Handle empty
1571 file list.
1572 (stamp-guile, install-guile, uninstall-guile): Ditto.
1573
ee7333ae
DE
15742014-07-26 Doug Evans <xdje42@gmail.com>
1575
1576 PR guile/17177
1577 * guile/lib/gdb.scm (pretty-printers): Export.
1578 (set-pretty-printers!): Export.
1579 * guile/lib/gdb/printing.scm (gdb module): Update.
1580 (prepend-pretty-printer!, append-pretty-printer!): Update.
1581 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1582 (pretty_printer_list_var): Delete.
1583 (pretty_printer_list): New static global.
1584 (gdbscm_pretty_printers): New function.
1585 (gdbscm_set_pretty_printers_x): New function.
1586 (ppscm_find_pretty_printer_from_gdb): Update.
1587 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1588 (gdbscm_initialize_pretty_printers): Update.
1589
74edf516
DE
15902014-07-26 Doug Evans <xdje42@gmail.com>
1591
1592 PR 17185
1593 * configure.ac: Add check for header gc/gc.h.
1594 Add check for function setenv.
1595 * configure: Regenerate.
1596 * config.in: Regenerate.
1597 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1598
d54398a7
MR
15992014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1600
1601 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1602 variation in gdbarch matching.
1603
ab16fce8
TT
16042014-07-25 Tom Tromey <tromey@redhat.com>
1605
1606 * exec.c (using_exec_ops): Remove.
1607 (exec_close_1): Update. Remove extraneous block, reindent.
1608 (add_target_sections): Use target_is_pushed.
1609
88056fbb
PA
16102014-07-25 Pedro Alves <palves@redhat.com>
1611
1612 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1613 * monitor.c (monitor_create_inferior): Likewise.
1614 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1615 * remote-sim.c (gdbsim_create_inferior): Likewise.
1616 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1617 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1618 * windows-nat.c (do_initial_windows_stuff): Likewise.
1619
70509625
PA
16202014-07-25 Pedro Alves <palves@redhat.com>
1621
1622 * NEWS: Mention signal passing and "signal" command changes.
1623 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1624 comment.
1625 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1626 call.
1627 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1628 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1629 (jump_command): Adjust clear_proceed_status call.
1630 (signal_command): Warn if other thread that are resumed have
1631 signals that will be delivered. Adjust clear_proceed_status call.
1632 (until_next_command, finish_command)
1633 (proceed_after_attach_callback, attach_command_post_wait)
1634 (attach_command): Adjust clear_proceed_status call.
1635 * infrun.c (proceed_after_vfork_done): Likewise.
1636 (proceed_after_attach_callback): Adjust comment.
1637 (clear_proceed_status_thread): Clear stop_signal if not in pass
1638 state.
1639 (clear_proceed_status_callback): Delete.
1640 (clear_proceed_status): New 'step' parameter. Only clear the
1641 proceed status of threads the command being prepared is about to
1642 resume.
1643 (proceed): If passed in an explicit signal, override stop_signal
1644 with it. Don't pass the last stop signal to the thread we're
1645 resuming.
1646 (init_wait_for_inferior): Adjust clear_proceed_status call.
1647 (switch_back_to_stepped_thread): Clear the signal if it should not
1648 be passed.
1649 * infrun.h (clear_proceed_status): New 'step' parameter.
1650 (user_visible_resume_ptid): Add comment.
1651 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1652 signal is in pass state.
1653 * remote.c (append_pending_thread_resumptions): Likewise.
1654 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1655
d8be2939
TT
16562014-07-25 Tom Tromey <tromey@redhat.com>
1657
1658 * target.h (target_stopped_data_address)
1659 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1660 parentheses.
1661
7d0d9d2b
PL
16622014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1663
1664 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1665 comments.
1666 (avr_pointer_to_address): Likewise.
1667
e9e7f724
TT
16682014-07-24 Tom Tromey <tromey@redhat.com>
1669
1670 * monitor.c (compile_pattern): Update.
1671 * target.h (struct target_ops) <to_shortname, to_longname,
1672 to_doc>: Now const.
1673
1947513d
TT
16742014-07-24 Tom Tromey <tromey@redhat.com>
1675
1676 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1677 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1678 (add_info_alias, add_com): Make "doc" const.
1679 (print_doc_line): Make "str" const.
1680 (delete_cmd): Update.
1681 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1682 (print_doc_line): Update.
1683 * cli/cli-script.c (document_command): Update.
1684 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1685 (add_com, add_info, add_info_alias): Update.
1686 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1687 * python/py-cmd.c (cmdpy_destroyer): Update.
1688
64e61d29
TT
16892014-07-24 Tom Tromey <tromey@redhat.com>
1690
1691 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1692 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1693 (help_cmd_list): Constify.
1694 (lookup_cmd): Update.
1695 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1696 const.
1697 (help_cmd_list, apropos_cmd): Update.
1698 * cli/cli-script.c (show_user): Update.
1699 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1700 * cli/cli-setshow.h (cmd_show_list): Update.
1701 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1702 (cmd_show_list): Update.
1703 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1704 * python/py-cmd.c (cmdpy_destroyer): Update.
1705
429e55ea
TT
17062014-07-24 Tom Tromey <tromey@redhat.com>
1707
1708 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1709 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1710 const.
1711 * command.h (deprecate_cmd): Update.
1712 * maint.c (maintenance_do_deprecate): Add casts.
1713
64669f3b
TT
17142014-07-24 Tom Tromey <tromey@redhat.com>
1715
1716 * cli/cli-decode.c (help_cmd): Make parameter "const".
1717 * cli/cli-decode.h (help_cmd): Update.
1718
d3d3328b
TT
17192014-07-24 Tom Tromey <tromey@redhat.com>
1720
1721 * stack.c (up_silently_base, down_silently_base): Make argument
1722 const.
1723
414842dc
TT
17242014-07-24 Tom Tromey <tromey@redhat.com>
1725
1726 * solib.c (solib_add): Make "pattern" const.
1727 * solib.h (solib_add): Update.
1728
baa336ce
TT
17292014-07-24 Tom Tromey <tromey@redhat.com>
1730
1731 * remote.c (remote_serial_open, print_packet, putpkt)
1732 (putpkt_binary): Constify.
1733 * remote.h (putpkt): Update.
1734
5a19e2d0
TT
17352014-07-24 Tom Tromey <tromey@redhat.com>
1736
1737 * monitor.c (monitor_open): Make "args" const.
1738 * monitor.h (monitor_open): Update.
1739
fc4baa5e
TT
17402014-07-24 Tom Tromey <tromey@redhat.com>
1741
1742 * maint.c (match_bfd_flags): Make "string" const.
1743 (print_bfd_section_info): Remove casts.
1744 (print_objfile_section_info): Make "string" const.
1745
0d5f0dbe
TT
17462014-07-24 Tom Tromey <tromey@redhat.com>
1747
1748 * inf-child.c (inf_child_open_target): Make "arg" const.
1749 * inf-child.h (inf_child_open_target): Update.
1750
41c77899
TT
17512014-07-24 Tom Tromey <tromey@redhat.com>
1752
1753 * environ.c (unset_in_environ): Make "var" const.
1754 * environ.h (unset_in_environ): Update.
1755
93db0d79
TT
17562014-07-24 Tom Tromey <tromey@redhat.com>
1757
1758 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1759 Make "cmd" const.
1760 (scan_filename_with_cleanup): Likewise.
1761 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1762 Make arguments const.
1763 (restore_command): Update.
1764
36d6eb95
PA
17652014-07-24 Pedro Alves <palves@redhat.com>
1766
1767 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1768
8009206a
TT
17692014-07-24 Tom Tromey <tromey@redhat.com>
1770 Gary Benson <gbenson@redhat.com>
1771
1772 * nat/linux-ptrace.c (additional_flags): New global.
1773 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1774 additional_flags; don't check GDBSERVER.
1775 (linux_ptrace_set_additional_flags): New function.
1776 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1777 Declare.
1778 * linux-nat.c (_initialize_linux_nat): Call
1779 linux_ptrace_set_additional_flags.
1780
a7068b60
TT
17812014-07-24 Tom Tromey <tromey@redhat.com>
1782
1783 * make-target-delegates (munge_type, write_debugmethod): New
1784 functions.
1785 (debug_names): New global.
1786 ($TARGET_DEBUG_PRINTER): New global.
1787 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1788 name.
1789 Write debug methods. Generate init_debug_target.
1790 * target-debug.h: New file.
1791 * target-delegates.c: Rebuild.
1792 * target.c: Include target-debug.h.
1793 (debug_target): Hoist definition.
1794 (target_kill, target_get_section_table, target_memory_map)
1795 (target_flash_erase, target_flash_done, target_detach)
1796 (target_disconnect, target_wait, target_resume)
1797 (target_pass_signals, target_program_signals, target_follow_fork)
1798 (target_mourn_inferior, target_search_memory)
1799 (target_thread_address_space, target_close)
1800 (target_find_new_threads, target_core_of_thread)
1801 (target_verify_memory, target_insert_mask_watchpoint)
1802 (target_remove_mask_watchpoint): Remove targetdebug code.
1803 (debug_to_post_attach, debug_to_prepare_to_store)
1804 (debug_to_files_info, debug_to_insert_breakpoint)
1805 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1806 (debug_to_region_ok_for_hw_watchpoint)
1807 (debug_to_can_accel_watchpoint_condition)
1808 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1809 (debug_to_watchpoint_addr_within_range)
1810 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1811 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1812 (debug_to_terminal_init, debug_to_terminal_inferior)
1813 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1814 (debug_to_terminal_save_ours, debug_to_terminal_info)
1815 (debug_to_load, debug_to_post_startup_inferior)
1816 (debug_to_insert_fork_catchpoint)
1817 (debug_to_remove_fork_catchpoint)
1818 (debug_to_insert_vfork_catchpoint)
1819 (debug_to_remove_vfork_catchpoint)
1820 (debug_to_insert_exec_catchpoint)
1821 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1822 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1823 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1824 (setup_target_debug): Call init_debug_target.
1825 * target.h (TARGET_DEBUG_PRINTER): New macro.
1826 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1827 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1828
2c51604d
GB
18292014-07-24 Gary Benson <gbenson@redhat.com>
1830
1831 * exceptions.h (throw_vfatal): Renamed to...
1832 (throw_vquit): New declaration.
1833 (throw_quit): Likewise.
1834 * exceptions.c (throw_vfatal): Renamed to...
1835 (throw_vquit): New function.
1836 (throw_quit): Likewise.
1837 (throw_error): Call throw_verror rather than throw_it.
1838 * utils.h (vfatal): Removed.
1839 (fatal): Likewise.
1840 * utils.c (vfatal): Removed.
1841 (fatal): Likewise.
1842 (internal_verror): Replaced call to fatal with call to throw_quit.
1843 (quit): Replaced calls to fatal with calls to throw_quit.
1844
34211963
ME
18452014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1846
1847 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1848 target_read_code.
1849
a52b4d3e
ME
18502014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1851
1852 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1853 less than zero in conditional expression.
1854
a8bdc56b
TT
18552014-07-23 Tom Tromey <tromey@redhat.com>
1856
1857 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1858 ($INTRO_PART): Don't match whitespace.
1859 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1860 argument matching.
1861 ($METHOD): Add $METHOD_TRAILER.
1862 (trim): Rewrite.
1863 (scan_target_h): New sub.
1864 Change main loop not to collect state.
1865 * target-delegates.c: Rebuild.
1866
91b52240
GB
18672014-07-23 Gary Benson <gbenson@redhat.com>
1868
1869 * cp-support.c (gdb_demangle): Fix build on systems without
1870 sigaltstack.
1871
45326f6f
JK
18722014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1875 for reference entry value target data value.
1876
e214cf6c
JK
18772014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1880 value_available_contents_eq.
1881
bddbbedd
PA
18822014-07-22 Pedro Alves <palves@redhat.com>
1883
1884 * value.c (allocate_optimized_out_value): Don't mark value as
1885 non-lazy.
1886
45c71484
JW
18872014-07-22 Jiong Wang <jiong.wang@arm.com>
1888
1889 * MAINTAINERS (Write After Approval): Update my email address.
1890
9597b22a
DE
18912014-07-20 Doug Evans <dje@google.com>
1892
1893 PR server/17147
1894 * remote.c (putpkt_binary): Add text to error message.
1895
91101fe5
YQ
18962014-07-20 Yao Qi <yao@codesourcery.com>
1897
1898 * eval.c: Remove "Chill" from comments.
1899 * gdbtypes.h: Likewise.
1900 * symtab.h: Likewise.
1901
c9402c95
YQ
19022014-07-20 Yao Qi <yao@codesourcery.com>
1903
1904 * std-operator.def: Update comments to TERNOP_SLICE.
1905
ae8fddda
YQ
19062014-07-20 Yao Qi <yao@codesourcery.com>
1907
1908 * std-operator.def: Remove BINOP_RANGE.
1909 * breakpoint.c (watchpoint_exp_is_const): Update.
1910 * expprint.c (dump_subexp_body_standard): Likewise.
1911 * eval.c (init_array_element): Remove dead code.
1912 (evaluate_subexp_standard): Likewise.
1913
9c816640
YQ
19142014-07-20 Yao Qi <yao@codesourcery.com>
1915
1916 * std-operator.def: Remove BINOP_IN.
1917 * breakpoint.c (watchpoint_exp_is_const): Update.
1918 * eval.c (evaluate_subexp_standard): Likewise.
1919 * expprint.c (dump_subexp_body_standard): Likewise.
1920
164224e9
ME
19212014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1922
1923 * microblaze-tdep.c (microblaze_register_names): Add
1924 the rshr and rslr register names.
1925 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1926 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1927 Use of tdesc_numbered_register. Use of
1928 microblaze_register_g_packet_guesses. Use of
1929 tdesc_use_registers. Use of set_gdbarch_register_type.
1930 (microblaze_register_g_packet_guesses): New.
1931 * microblaze-tdep.h (microblaze_reg_num): Add
1932 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1933 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1934 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1935 * features/microblaze-core.xml: New file.
1936 * features/microblaze-stack-protect.xml: New file.
1937 * features/microblaze-with-stack-protect.c: New file.
1938 * features/microblaze-with-stack-protect.xml: New file.
1939 * features/microblaze.xml: New file.
1940 * features/microblaze.c: New file.
1941 * features/Makefile (microblaze-with-stack-protect): Add
1942 microblaze-with-stack-protect microblaze and microblaze-expedite.
1943 * regformats/microblaze-with-stack-protect.dat: New file.
1944 * regformats/microblaze.dat: New file.
1945 * doc/gdb.texinfo (MicroBlaze Features): Added.
1946
e8b2341c
TT
19472014-07-18 Tom Tromey <tromey@redhat.com>
1948
1949 * exec.c (exec_ops): Now static.
1950 * exec.h (exec_ops): Don't declare.
1951
44e89118
TT
19522014-07-18 Tom Tromey <tromey@redhat.com>
1953
1954 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1955 to find_target_beneath.
1956 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1957 find_target_beneath.
1958 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1959
b0ed115f
TT
19602014-07-18 Tom Tromey <tromey@redhat.com>
1961
1962 PR gdb/17130:
1963 * utils.c (quit): Use target_supports_terminal_ours.
1964 * target.h (target_supports_terminal_ours): Declare.
1965 * target.c (target_supports_delete_record): Don't check
1966 to_delete_record against NULL.
1967 (target_supports_terminal_ours): New function.
1968
e75fdfca
TT
19692014-07-18 Tom Tromey <tromey@redhat.com>
1970
1971 PR gdb/17130:
1972 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1973 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1974 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1975 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1976 * windows-nat.c (windows_xfer_partial): Always delegate.
1977 * record-btrace.c (record_btrace_xfer_partial): Simplify
1978 delegation.
1979 (record_btrace_fetch_registers, record_btrace_store_registers)
1980 (record_btrace_prepare_to_store, record_btrace_resume)
1981 (record_btrace_wait, record_btrace_find_new_threads)
1982 (record_btrace_thread_alive): Likewise.
1983 * procfs.c (procfs_xfer_partial): Always delegate.
1984 * corelow.c (core_xfer_partial): Always delegate.
1985 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1986
83814951
TT
19872014-07-18 Tom Tromey <tromey@redhat.com>
1988
1989 * exec.c (exec_make_note_section): Move earlier.
1990
b8b8facf
DE
19912014-07-17 Doug Evans <dje@google.com>
1992
74b49205 1993 PR gdb/17170
b8b8facf
DE
1994 * maint.c (count_symtabs_and_blocks): Handle NULL
1995 current_program_space.
1996 (report_command_stats): Check global enabled flag in addition to
1997 recorded enabled flag.
1998 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1999
69ff6be5
PA
20002014-07-16 Pedro Alves <palves@redhat.com>
2001
2002 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2003
252db1b5
TT
20042014-07-16 Tom Tromey <tromey@redhat.com>
2005
2006 * target.h (struct target_ops) <to_delete_record>: Reformat
2007 comment.
2008
a432721e
TT
20092014-07-16 Tom Tromey <tromey@redhat.com>
2010
2011 * target-delegates.c: Rebuild.
2012
487d9753
PL
20132014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2014
2015 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2016 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2017 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2018 (avr_pointer_to_address): Likewise.
2019 (avr_address_class_type_flags): New function.
2020 (avr_address_class_type_flags_to_name): Likewise.
2021 (avr_address_class_name_to_type_flags): Likewise.
2022 (avr_gdbarch_init): Set address_class_type_flags,
2023 address_class_type_flags_to_name and
2024 address_class_name_to_type_flags.
2025
57745c90
PA
20262014-07-15 Pedro Alves <palves@redhat.com>
2027
2028 * linux-nat.c (kill_callback): Save errno and work with saved
2029 copy.
2030
2d40be18
SM
20312014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2032
2033 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2034
572f6555
EBM
20352014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2036
2037 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2038 breakpoint support correctly.
2039
cc1c52ad
PA
20402014-07-14 Pedro Alves <palves@redhat.com>
2041
2042 * utils.c (prompt_for_continue): Call target_terminal_ours.
2043
1e973570
PA
20442014-07-14 Pedro Alves <palves@redhat.com>
2045
2046 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2047 catch_errors. Don't re-enable stdin or notify observers where,
2048 and rethrow error.
2049 (fetch_inferior_event_wrapper): Delete.
2050
93d6eb10
PA
20512014-07-14 Pedro Alves <palves@redhat.com>
2052
2053 PR gdb/17072
2054 * top.c: Include "inf-loop.h".
2055 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2056 field.
2057 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2058 was async before.
2059 (gdb_readline_wrapper): Store whether the target is async, and
2060 make it sync.
2061
0017922d
PA
20622014-07-14 Pedro Alves <palves@redhat.com>
2063
2064 PR gdb/17072
2065 * top.c (gdb_readline_wrapper_line): Tweak comment.
2066 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2067 the input handler callback.
2068
94696ad3
PA
20692014-07-14 Pedro Alves <palves@redhat.com>
2070
2071 PR gdb/17072
2072 * main.c: Include event-top.h.
2073 (handle_command_errors): New function.
2074 (catch_command_errors, catch_command_errors_const): Use it.
2075
9d1e69a2
PA
20762014-07-14 Pedro Alves <palves@redhat.com>
2077
2078 * exceptions.c (catch_command_errors, catch_command_errors_const):
2079 Moved to main.c.
2080 * exceptions.h (catch_command_errors_ftype)
2081 (catch_command_errors_const_ftype): Moved to main.c.
2082 (catch_command_errors, catch_command_errors_const): Delete
2083 declarations.
2084 * main.c (catch_command_errors_ftype)
2085 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2086 (catch_command_errors, catch_command_errors_const)): Moved here
2087 from exceptions.c and make static.
2088
feefc97b
PA
20892014-07-14 Pedro Alves <palves@redhat.com>
2090
2091 * exceptions.c (print_any_exception): Delete.
2092 (catch_exceptions_with_msg): Use exception_print instead of
2093 print_any_exception.
2094 (catch_errors): Use exception_fprintf instead of
2095 print_any_exception.
2096 (catch_command_errors, catch_command_errors_const): Use
2097 exception_print instead of print_any_exception.
2098
c933f875
PA
20992014-07-14 Pedro Alves <palves@redhat.com>
2100
2101 * infcall.c (run_inferior_call): Set 'sync_execution' while
2102 running the inferior call.
2103
feb6f816
PA
21042014-07-14 Pedro Alves <palves@redhat.com>
2105
2106 * value.c (value_contents_equal): Delete function.
2107 * value.h (value_contents_equal): Delete declaration.
2108
d98b7a16
TT
21092014-07-14 Tom Tromey <tromey@redhat.com>
2110
2111 PR exp/17106:
2112 * gdbtypes.c (is_dynamic_type_internal): New function, from
2113 is_dynamic_type.
2114 (is_dynamic_type): Rewrite.
2115 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2116 (resolve_dynamic_struct): Likewise.
2117 (resolve_dynamic_type_internal): New function, from
2118 resolve_dynamic_type.
2119 (resolve_dynamic_type): Rewrite.
2120
548740d6
TT
21212014-07-14 Tom Tromey <tromey@redhat.com>
2122
2123 * target.c (target_require_runnable): Also check record_stratum.
2124 Update comment.
2125
808f7ab1
YQ
21262014-07-11 Yao Qi <yao@codesourcery.com>
2127
2128 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2129 thumb_instruction_restores_sp return true.
2130
540314bd
YQ
21312014-07-11 Yao Qi <yao@codesourcery.com>
2132
2133 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2134 (thumb_in_function_epilogue_p): Call
2135 thumb_instruction_restores_sp.
2136
1db01f22
YQ
21372014-07-11 Yao Qi <yao@codesourcery.com>
2138
2139 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2140 'add sp, #imm'.
2141 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2142
3116063b
GB
21432014-07-11 Gary Benson <gbenson@redhat.com>
2144
2145 * amd64-linux-nat.c (gdbcore.h): Remove include.
2146 (regset.h): Likewise.
2147 (nat/linux-btrace.h): Likewise.
2148 (btrace.h): Likewise.
2149 (gdb_assert.h): Likewise.
2150 (string.h): Likewise.
2151 (sys/uio.h): Likewise.
2152 (sys/debugreg.h): Likewise.
2153 (sys/syscall.h): Likewise.
2154 (sys/procfs.h): Likewise.
2155 (sys/user.h): Likewise.
2156 (asm/ptrace.h): Likewise.
2157 (i386-nat.h): Likewise.
2158 * i386-linux-nat.c (i386-nat.h): Likewise.
2159 (regset.h): Likewise.
2160 (target.h): Likewise.
2161 (linux-nat.h): Likewise.
2162 (nat/linux-btrace.h): Likewise.
2163 (btrace.h): Likewise.
2164 (gdb_assert.h): Likewise.
2165 (string.h): Likewise.
2166 (sys/uio.h): Likewise.
2167 (sys/user.h): Likewise.
2168 (sys/procfs.h): Likewise.
2169 (sys/reg.h): Likewise.
2170 (sys/debugreg.h): Likewise.
2171 (ORIG_EAX): Remove definition.
2172
040baaf6
GB
21732014-07-11 Gary Benson <gbenson@redhat.com>
2174
2175 * i386-linux-nat.h: New file.
2176 * x86-linux-nat.h: Likewise.
2177 * x86-linux-nat.c: Likewise.
2178 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2179 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2180 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2181 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2182 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2183 (PTRACE_SETREGSET): Likewise.
2184 (arch_lwp_info): Now in x86-linux-nat.c.
2185 (have_ptrace_getregset): Now in x86-linux-nat.h.
2186 (x86_linux_dr_get): Now in x86-linux-nat.c.
2187 (x86_linux_dr_set): Likewise.
2188 (x86_linux_dr_get_addr): Likewise.
2189 (x86_linux_dr_get_control): Likewise.
2190 (x86_linux_dr_get_status): Likewise.
2191 (update_debug_registers_callback): Likewise.
2192 (x86_linux_dr_set_control): Likewise.
2193 (x86_linux_dr_set_addr): Likewise.
2194 (x86_linux_prepare_to_resume): Likewise.
2195 (x86_linux_new_thread): Likewise.
2196 (x86_linux_new_fork): Likewise.
2197 (x86_linux_get_thread_area): Likewise.
2198 (super_post_startup_inferior): Likewise.
2199 (x86_linux_child_post_startup_inferior): Likewise.
2200 (AMD64_LINUX_USER64_CS): Likewise.
2201 (AMD64_LINUX_X32_DS): Likewise.
2202 (x86_linux_read_description): Likewise.
2203 (x86_linux_enable_btrace): Likewise.
2204 (x86_linux_disable_btrace): Likewise.
2205 (x86_linux_teardown_btrace): Likewise.
2206 (x86_linux_read_btrace): Likewise.
2207 (x86_linux_create_target): Likewise.
2208 (x86_linux_add_target): Likewise.
2209 * i386-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
1aa7e42c
GB
22382014-07-11 Gary Benson <gbenson@redhat.com>
2239
2240 * amd64-linux-nat.c: Comment and whitespace changes.
2241 * i386-linux-nat.c: Comment and whitespace changes.
2242
c1e246a0
GB
22432014-07-11 Gary Benson <gbenson@redhat.com>
2244
2245 * amd64-linux-nat.c (x86_linux_create_target): New function.
2246 (x86_linux_add_target): Likewise.
2247 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2248 * i386-linux-nat.c (x86_linux_create_target): New function.
2249 (x86_linux_add_target): Likewise.
2250 (_initialize_i386_linux_nat): Delegate to the above new functions.
2251
8c420b8d
GB
22522014-07-11 Gary Benson <gbenson@redhat.com>
2253
2254 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2255 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2256 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2257 (ps_get_thread_area): Delegate to the above.
2258
cb1da100
GB
22592014-07-11 Gary Benson <gbenson@redhat.com>
2260
2261 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2262 x86_linux_read_description. All uses updated. amd64-specific
2263 code conditionalized. Conditionalized i386-specific code added.
2264 Redundant cast removed.
2265 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2266 x86_linux_read_description. All uses updated. i386-specific
2267 code conditionalized. Conditionalized amd64-specific code added.
2268 One sizeof replaced with the actual type it is describing.
2269
2acf3cd0
GB
22702014-07-11 Gary Benson <gbenson@redhat.com>
2271
2272 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2273 x86_linux_dr_get. All uses updated.
2274 (amd64_linux_dr_set): Renamed to
2275 x86_linux_dr_set. All uses updated.
2276 (amd64_linux_dr_get_addr): Renamed to
2277 x86_linux_dr_get_addr. All uses updated.
2278 (amd64_linux_dr_get_control): Renamed to
2279 x86_linux_dr_get_control. All uses updated.
2280 (amd64_linux_dr_get_status): Renamed to
2281 x86_linux_dr_get_status. All uses updated.
2282 (amd64_linux_dr_set_control): Renamed to
2283 x86_linux_dr_set_control. All uses updated.
2284 (amd64_linux_dr_set_addr): Renamed to
2285 x86_linux_dr_set_addr. All uses updated.
2286 (amd64_linux_prepare_to_resume): Renamed to
2287 x86_linux_prepare_to_resume. All uses updated.
2288 (amd64_linux_new_thread): Renamed to
2289 x86_linux_new_thread. All uses updated.
2290 (amd64_linux_new_fork): Renamed to
2291 x86_linux_new_fork. All uses updated.
2292 (amd64_linux_child_post_startup_inferior): Renamed to
2293 x86_linux_child_post_startup_inferior. All uses updated.
2294 (amd64_linux_enable_btrace): Renamed to
2295 x86_linux_enable_btrace. All uses updated.
2296 (amd64_linux_disable_btrace): Renamed to
2297 x86_linux_disable_btrace. All uses updated.
2298 (amd64_linux_teardown_btrace): Renamed to
2299 x86_linux_teardown_btrace. All uses updated.
2300 (amd64_linux_read_btrace): Renamed to
2301 x86_linux_read_btrace. All uses updated.
2302 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2303 x86_linux_dr_get. All uses updated.
2304 (i386_linux_dr_set): Renamed to
2305 x86_linux_dr_set. All uses updated.
2306 (i386_linux_dr_get_addr): Renamed to
2307 x86_linux_dr_get_addr. All uses updated.
2308 (i386_linux_dr_get_control): Renamed to
2309 x86_linux_dr_get_control. All uses updated.
2310 (i386_linux_dr_get_status): Renamed to
2311 x86_linux_dr_get_status. All uses updated.
2312 (i386_linux_dr_set_control): Renamed to
2313 x86_linux_dr_set_control. All uses updated.
2314 (i386_linux_dr_set_addr): Renamed to
2315 x86_linux_dr_set_addr. All uses updated.
2316 (i386_linux_prepare_to_resume): Renamed to
2317 x86_linux_prepare_to_resume. All uses updated.
2318 (i386_linux_new_thread): Renamed to
2319 x86_linux_new_thread. All uses updated.
2320 (i386_linux_new_fork): Renamed to
2321 x86_linux_new_fork. All uses updated.
2322 (i386_linux_child_post_startup_inferior): Renamed to
2323 x86_linux_child_post_startup_inferior. All uses updated.
2324 (i386_linux_enable_btrace): Renamed to
2325 x86_linux_enable_btrace. All uses updated.
2326 (i386_linux_disable_btrace): Renamed to
2327 x86_linux_disable_btrace. All uses updated.
2328 (i386_linux_teardown_btrace): Renamed to
2329 x86_linux_teardown_btrace. All uses updated.
2330 (i386_linux_read_btrace): Renamed to
2331 x86_linux_read_btrace. All uses updated.
2332
b9c1d481
AS
23332014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2334
2335 * remote.c (extended_remote_post_attach): New function.
2336 (init_extended_remote_ops): Install it as to_post_attach method.
2337
7180e04a
PA
23382014-07-09 Pedro Alves <palves@redhat.com>
2339
2340 * infcmd.c (attach_command_post_wait): Don't call
2341 target_terminal_inferior here.
2342 (attach_command): Call it here instead.
2343
9a9a7608
AB
23442014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2347 field.
2348 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2349 from varobj.c, with additional checks.
2350 (c_varobj_ops): Fill in is_path_expr_parent field.
2351 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2352 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2353 field.
2354 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2355 ops method.
2356 (varobj_default_is_path_expr_parent): New function.
2357 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2358 (varobj_default_is_path_expr_parent): Declare new function.
2359
1f267ae3
MM
23602014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2361
2362 * infcmd.c (finish_backward): Turn internal error into normal error.
2363
b2ee242b
PA
23642014-07-07 Pedro Alves <palves@redhat.com>
2365
8a869bca 2366 PR gdb/17096
b2ee242b
PA
2367 * remote.c (async_handle_remote_sigint)
2368 (async_handle_remote_sigint_twice): Call
2369 gdb_call_async_signal_handler instead of
2370 mark_async_signal_handler.
2371
38e229b2
TT
23722014-07-07 Tom Tromey <tromey@redhat.com>
2373
2374 * target-delegates.c: Rebuild.
2375 * target.c (target_info_record): Remove.
2376 * record.c (info_record_command): Unconditionally call
2377 to_info_record.
2378 * target.h (struct target_ops) <to_info_record>: Use
2379 TARGET_DEFAULT_IGNORE.
2380 (target_info_record): Remove.
2381
f0f9ff95
TT
23822014-07-07 Tom Tromey <tromey@redhat.com>
2383
2384 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2385 TARGET_DEFAULT_NORETURN.
2386 * target.c (generic_tls_error): New function.
2387 (target_translate_tls_address): Don't search target stack.
2388 * target-delegates.c: Rebuild.
2389 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2390 stack.
2391 * linux-thread-db.c (thread_db_get_thread_local_address):
2392 Unconditionally call beneath target.
2393
4a5be5ee
MK
23942014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2395
2396 * cli/cli-logging.c (pop_output_files): Assign targerr to
2397 gdb_stdtargerr.
2398
92c3b204
AB
23992014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * MAINTAINERS (Write After Approval): Update my email address.
2402
9b11e3a7
GB
24032014-07-02 Gary Benson <gbenson@redhat.com>
2404
2405 * proc-service.c (ps_xfer_memory): Update comment.
2406 (ps_pstop): Remove unused function.
2407 (ps_pcontinue): Likewise.
2408 (ps_lstop): Likewise.
2409 (ps_lcontinue): Likewise.
2410 (ps_lgetxregsize): Likewise.
2411 (ps_lgetxregs): Likewise.
2412 (ps_lsetxregs): Likewise.
2413 (ps_plog): Likewise.
2414 (ps_ptread): Likewise.
2415 (ps_ptwrite): Likewise.
2416
cf363f18
MW
24172014-07-01 Mark Wielaard <mjw@redhat.com>
2418
2419 * dwarf2read.c (add_array_cv_type): New function.
2420 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2421 (read_tag_volatile_type): Likewise.
2422
82ae6c8d
TT
24232014-07-01 Tom Tromey <tromey@redhat.com>
2424
2425 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2426 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2427 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2428 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2429 * command.h (cmd_cfunc_ftype): Move earlier.
2430 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2431 (add_com, add_info): Use cmd_cfunc_ftype.
2432
96142726
TT
24332014-06-30 Tom Tromey <tromey@redhat.com>
2434
2435 * symtab.c (operator_chars): Make parameters and return type
2436 const.
2437 (file_matches): Make "files" const.
2438 (struct search_symbols_data) <files>: Now const.
2439 (search_symbols): Make "regexp" and "files" parameters const.
2440 Update.
2441 (symtab_symbol_info): Remove cast.
2442 (rbreak_command): Update.
2443 * symtab.h (search_symbols): Update.
2444
b67a2c6f
YQ
24452014-06-27 Yao Qi <yao@codesourcery.com>
2446
2447 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2448 Change parameter type to 'struct thread_info *'. Caller
2449 updated.
2450 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2451 Update declaration.
2452 * dummy-frame.c (struct dummy_frame_id): New.
2453 (dummy_frame_id_eq): New function.
2454 (struct dummy_frame) <id>: Change its type to 'struct
2455 dummy_frame_id'.
2456 (dummy_frame_push): Add parameter ptid and save it in
2457 dummy_frame_id.
2458 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2459 inferior_ptid.
2460 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2461 to inferior_ptid.
2462 (lookup_dummy_frame): Change parameter type to 'struct
2463 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2464 instead of frame_id_eq.
2465 (dummy_frame_pop): Add parameter ptid. Callers updated.
2466 Update comments. Compose dummy_frame_id and pass it to
2467 lookup_dummy_frame.
2468 (dummy_frame_discard): Add parameter ptid.
2469 (dummy_frame_sniffer): Compose dummy_frame_id and call
2470 dummy_frame_id_eq instead of frame_id_eq.
2471 (fprint_dummy_frames): Print ptid.
2472 * dummy-frame.h: Remove comments.
2473 (dummy_frame_push): Add ptid in declaration.
2474 (dummy_frame_pop, dummy_frame_discard): Likewise.
2475
5b10184c
TT
24762014-06-26 Tom Tromey <tromey@redhat.com>
2477
2478 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2479 * command.h (error_no_arg): Update.
2480
06900326
TT
24812014-06-26 Tom Tromey <tromey@redhat.com>
2482
2483 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2484 (do_show_command): Make "arg" const.
2485 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2486
c2bcbb1d
TT
24872014-06-26 Tom Tromey <tromey@redhat.com>
2488
2489 * record-full.c (record_full_get_bookmark): Make "args" const.
2490 (record_full_goto_bookmark): Make "raw_bookmark" const.
2491 * record.c (record_goto): New function.
2492 (cmd_record_goto): Use it. Now static.
2493 * record.h (record_goto): Declare.
2494 (cmd_record_goto): Remove declaration.
2495 * target-delegates.c: Rebuild.
2496 * target.h (struct target_ops) <to_get_bookmark,
2497 to_goto_bookmark>: Make parameter const.
2498
9cbe5fff
TT
24992014-06-26 Tom Tromey <tromey@redhat.com>
2500
2501 * defs.h (generic_load): Update.
2502 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2503 * monitor.c (monitor_load): Make "args" const.
2504 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2505 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2506 const.
2507 (mips_load): Make "file" const.
2508 * remote-sim.c (gdbsim_load): Make "args" const.
2509 * remote.c (remote_load): Make "name" const.
2510 * symfile.c (generic_load): Make "args" const.
2511 * target-delegates.c: Rebuild.
2512 * target.c (target_load): Make "arg" const.
2513 (debug_to_load): Make "args" const.
2514 * target.h (struct target_ops) <to_load>: Make parameter const.
2515 (target_load): Update.
2516
34a68019
TT
25172014-06-26 Tom Tromey <tromey@redhat.com>
2518
2519 PR symtab/16902:
2520 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2521 (dwarf2_physname, read_partial_die)
2522 (guess_partial_die_structure_name, fixup_partial_die)
2523 (guess_full_die_structure_name, anonymous_struct_prefix)
2524 (dwarf2_name): Use per-BFD obstack.
2525
efc889c1
YQ
25262014-06-26 Yao Qi <yao@codesourcery.com>
2527
2528 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2529 dummyframe and this_id into inner block below.
2530
4395285e
YQ
25312014-06-26 Yao Qi <yao@codesourcery.com>
2532
2533 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2534 with "signal_pass[0]" in the initialization of signal_pass.
2535
aef92902
MM
25362014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2537
2538 * record-btrace.c (record_btrace_generating_corefile)
2539 (record_btrace_prepare_to_generate_core)
2540 (record_btrace_done_generating_core): New.
2541 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2542 (record_btrace_store_registers, record_btrace_prepare_to_store):
2543 Forward request when generating a core file.
2544 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2545 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2546 to_done_generating_core.
2547
5fff78c4
MM
25482014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2549
2550 * target.h (target_ops) <to_prepare_to_generate_core>
2551 <to_done_generating_core>: New.
2552 (target_prepare_to_generate_core, target_done_generating_core): New.
2553 * target.c (target_prepare_to_generate_core)
2554 (target_done_generating_core): New.
2555 * target-delegates.c: Regenerate.
2556 * gcore.c: (write_gcore_file): Rename to ...
2557 (write_gcore_file_1): ...this.
2558 (write_gcore_file): Call target_prepare_to_generate_core
2559 and target_done_generating_core.
2560
1d1f1ccb
MM
25612014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2562
2563 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2564 * gcore.c (write_gcore_file): Free memory returned from
2565 make_corefile_notes.
2566 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2567 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2568
3343ef86
YQ
25692014-06-24 Yao Qi <yao@codesourcery.com>
2570
2571 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2572 (arm_linux_init_abi): Set skip_trampoline_code with
2573 gdbarch_skip_trampoline_code instead of
2574 find_solib_trampoline_target.
2575
18d18ac8
YQ
25762014-06-24 Yao Qi <yao@codesourcery.com>
2577
2578 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2579 arm_skip_bx_reg returns non-zero.
2580
80d8d390
YQ
25812014-06-24 Yao Qi <yao@codesourcery.com>
2582
2583 * arm-tdep.c (arm_skip_bx_reg): New function.
2584 (arm_skip_stub): Call arm_skip_bx_reg.
2585
6a18a01c
DB
25862014-06-23 Don Breazeal <donb@codesourcery.com>
2587
2588 * MAINTAINERS: Add myself as write-after-approval maintainer.
2589
8e9db26e
PA
25902014-06-23 Pedro Alves <palves@redhat.com>
2591
2592 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2593 DR_CONTROL before setting DR0..DR3.
2594 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2595 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2596 bits of DR_CONTROL related to the debug register slot being
2597 disabled. If all slots are vacant, clear local slowdown as well,
2598 and assert DR_CONTROL is 0.
2599
70afc5b7
SC
26002014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2601
2602 * python/lib/gdb/command/xmethods.py
2603 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2604 current progspace only if the string "progspace" matches LOCUS_RE.
2605
840ed64d
JK
26062014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2607
2608 Fix --with-system-readline with readline-6.3 patch 5.
2609 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2610 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2611 types.
2612
26f2dc30
TT
26132014-06-20 Tom Tromey <tromey@redhat.com>
2614
2615 * dwarf2read.c (dw2_get_real_path): Use correct type in
2616 OBSTACK_CALLOC.
2617 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2618
125f8a3d
GB
26192014-06-20 Gary Benson <gbenson@redhat.com>
2620
2621 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2622 * common/glibc_thread_db.h: Likewise.
2623 * common/i386-cpuid.h: Likewise.
2624 * common/i386-gcc-cpuid.h: Likewise.
2625 * common/linux-btrace.h: Likewise.
2626 * common/linux-osdata.h: Likewise.
2627 * common/linux-procfs.h: Likewise.
2628 * common/linux-ptrace.h: Likewise.
2629 * common/mips-linux-watch.h: Likewise.
2630 * common/linux-btrace.c: Moved to nat.
2631 * common/linux-osdata.c: Likewise.
2632 * common/linux-procfs.c: Likewise.
2633 * common/linux-ptrace.c: Likewise.
2634 * common/mips-linux-watch.c: Likewise.
2635 * nat/gdb_thread_db.h: Moved from common.
2636 * nat/glibc_thread_db.h: Likewise.
2637 * nat/i386-cpuid.h: Likewise.
2638 * nat/i386-gcc-cpuid.h: Likewise.
2639 * nat/linux-btrace.c: Likewise.
2640 * nat/linux-btrace.h: Likewise.
2641 * nat/linux-osdata.c: Likewise.
2642 * nat/linux-osdata.h: Likewise.
2643 * nat/linux-procfs.c: Likewise.
2644 * nat/linux-procfs.h: Likewise.
2645 * nat/linux-ptrace.c: Likewise.
2646 * nat/linux-ptrace.h: Likewise.
2647 * nat/mips-linux-watch.c: Likewise.
2648 * nat/mips-linux-watch.h: Likewise.
2649 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2650 (object file files): Reordered.
2651 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2652 of glibc_thread_db.h.
2653
42995dbd
GB
26542014-06-20 Gary Benson <gbenson@redhat.com>
2655
2656 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2657 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2658 (i386_dr_low): Likewise.
2659 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2660 (i386_dr_low_set_addr): Likewise.
2661 (i386_dr_low_get_addr): Likewise.
2662 (i386_dr_low_can_set_control): Likewise.
2663 (i386_dr_low_set_control): Likewise.
2664 (i386_dr_low_get_control): Likewise.
2665 (i386_dr_low_get_status): Likewise.
2666 (i386_get_debug_register_length): Likewise.
2667 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2668 (i386_dr_low): Likewise.
2669 * nat/i386-dregs.c (i386-low.h): Remove include.
2670 (i386-nat.h): Likewise.
2671 (nat/i386-dregs.h): New include.
2672 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2673 (i386_dr_low_set_addr): Likewise.
2674 (i386_dr_low_get_addr): Likewise.
2675 (i386_dr_low_can_set_control): Likewise.
2676 (i386_dr_low_set_control): Likewise.
2677 (i386_dr_low_get_control): Likewise.
2678 (i386_dr_low_get_status): Likewise.
2679 (i386_get_debug_register_length): Likewise.
2680 (debug_hw_points): Likewise.
2681
3ed9baed
IB
26822014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2683
2684 * Makefile.in (SFILES): Add d-exp.y.
2685 (YYFILES): Add d-exp.c.
2686 (YYOBJ): Add d-exp.o.
2687 (local-maintainer-clean): Delete d-exp.c.
2688 * d-exp.y: New file.
2689 * d-lang.h (d_parse): New declaration.
2690 (d_error): New declaration.
2691 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2692 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2693 PREC_ORDER operators.
2694 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2695
78c164b0
YQ
26962014-06-19 Yao Qi <yao@codesourcery.com>
2697
2698 * gdbthread.h (any_running): Remove the declaration.
2699 * thread.c (any_running): Remove.
2700
f6e29b6e
YQ
27012014-06-19 Yao Qi <yao@codesourcery.com>
2702
2703 * gdbthread.h (struct thread_info) <state>: Change its type to
2704 'enum thread_state'. Update comments.
2705
034f788c
PA
27062014-06-19 Pedro Alves <palves@redhat.com>
2707
2708 * gdbthread.h (ALL_THREADS): Delete.
2709 (ALL_NON_EXITED_THREADS): New macro.
2710 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2711 instead of ALL_THREADS.
2712 * infrun.c (find_thread_needs_step_over)
2713 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2714 instead of ALL_THREADS.
2715 * record-btrace.c (record_btrace_open)
2716 (record_btrace_stop_recording, record_btrace_close)
2717 (record_btrace_is_replaying, record_btrace_resume)
2718 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2719 * remote.c (append_pending_thread_resumptions): Likewise.
2720 * thread.c (thread_apply_all_command): Likewise.
2721
46e33252
GB
27222014-06-19 Gary Benson <gbenson@redhat.com>
2723
2724 * i386-nat.c (i386_stopped_by_watchpoint):
2725 Use i386_dr_stopped_by_watchpoint.
2726 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2727 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2728
3a8ee006
GB
27292014-06-19 Gary Benson <gbenson@redhat.com>
2730
2731 * nat/i386-dregs.c: New file.
2732 * Makefile.in (i386-dregs.o): New rule.
2733 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2734 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2735 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2736 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2737 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2738 * config/i386/go32.mh (NATDEPFILES): Likewise.
2739 * config/i386/linux.mh (NATDEPFILES): Likewise.
2740 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2741 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2742 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2743 * i386-nat.h (debug_hw_points): New declaration.
2744 * i386-nat.c (breakpoint.h): Remove include.
2745 (command.h): Likewise.
2746 (target.h): Likewise.
2747 (gdb_assert.h): Likewise.
2748 (debug_hw_points): Made nonstatic.
2749 (debug_printf): Now in i386-dregs.c.
2750 (TARGET_HAS_DR_LEN_8): Likewise.
2751 (DR_CONTROL_SHIFT): Likewise.
2752 (DR_CONTROL_SIZE): Likewise.
2753 (DR_RW_EXECUTE): Likewise.
2754 (DR_RW_WRITE): Likewise.
2755 (DR_RW_READ): Likewise.
2756 (DR_RW_IORW): Likewise.
2757 (DR_LEN_1): Likewise.
2758 (DR_LEN_2): Likewise.
2759 (DR_LEN_4): Likewise.
2760 (DR_LEN_8): Likewise.
2761 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2762 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2763 (DR_ENABLE_SIZE): Likewise.
2764 (DR_LOCAL_SLOWDOWN): Likewise.
2765 (DR_GLOBAL_SLOWDOWN): Likewise.
2766 (DR_CONTROL_RESERVED): Likewise.
2767 (I386_DR_CONTROL_MASK): Likewise.
2768 (I386_DR_VACANT): Likewise.
2769 (I386_DR_LOCAL_ENABLE): Likewise.
2770 (I386_DR_GLOBAL_ENABLE): Likewise.
2771 (I386_DR_DISABLE): Likewise.
2772 (I386_DR_SET_RW_LEN): Likewise.
2773 (I386_DR_GET_RW_LEN): Likewise.
2774 (I386_DR_WATCH_HIT): Likewise.
2775 (i386_wp_op_t): Likewise.
2776 (i386_show_dr): Likewise.
2777 (i386_length_and_rw_bits): Likewise.
2778 (i386_insert_aligned_watchpoint): Likewise.
2779 (i386_remove_aligned_watchpoint): Likewise.
2780 (i386_handle_nonaligned_watchpoint): Likewise.
2781 (i386_update_inferior_debug_regs): Likewise.
2782 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2783 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2784 (i386_region_ok_for_watchpoint):
2785 Use i386_dr_region_ok_for_watchpoint.
2786 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2787
322a8e06
GB
27882014-06-19 Gary Benson <gbenson@redhat.com>
2789
2790 * i386-nat.c (i386_insert_hw_breakpoint): Use
2791 i386_insert_watchpoint.
2792 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2793
8f26655c
GB
27942014-06-19 Gary Benson <gbenson@redhat.com>
2795
2796 * i386-nat.c (i386_dr_show): Renamed to
2797 i386_show_dr and made static. All uses updated.
2798 (i386_dr_length_and_rw_bits): Renamed to
2799 i386_length_and_rw_bits and made static.
2800 All uses updated.
2801 (i386_dr_insert_aligned_watchpoint): Renamed to
2802 i386_insert_aligned_watchpoint and made static.
2803 All uses updated.
2804 (i386_dr_remove_aligned_watchpoint): Renamed to
2805 i386_remove_aligned_watchpoint and made static.
2806 All uses updated.
2807 (i386_dr_update_inferior_debug_regs): Renamed to
2808 i386_update_inferior_debug_regs and made static.
2809 All uses updated.
2810 * nat/i386-dregs.h (i386_dr_show): Removed.
2811 (i386_dr_length_and_rw_bits): Likewise.
2812 (i386_dr_insert_aligned_watchpoint): Likewise.
2813 (i386_dr_remove_aligned_watchpoint): Likewise.
2814 (i386_dr_update_inferior_debug_regs): Likewise.
2815
992c7d70
GB
28162014-06-19 Gary Benson <gbenson@redhat.com>
2817
2818 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2819 * configure: Regenerate.
2820 * config.in: Likewise.
2821 * main.c (signal.h): New include.
2822 (setup_alternate_signal_stack): New function.
2823 (captured_main): Call the above.
2824 * cp-support.c (signal.h): New include.
2825 (catch_demangler_crashes): New flag.
2826 (SIGJMP_BUF): New define.
2827 (SIGSETJMP): Likewise.
2828 (SIGLONGJMP): Likewise.
2829 (gdb_demangle_jmp_buf): New static global.
2830 (gdb_demangle_attempt_core_dump): Likewise.
2831 (gdb_demangle_signal_handler): New function.
2832 (gdb_demangle): If catch_demangler_crashes is set, install the
2833 above signal handler before calling bfd_demangle, and restore
2834 the original signal handler afterwards. Display the offending
2835 symbol and call demangler_warning the first time a segmentation
2836 fault is caught.
2837 (_initialize_cp_support): New maint set/show command.
2838
eae7090b
GB
28392014-06-19 Gary Benson <gbenson@redhat.com>
2840
2841 * utils.h (resource_limit_kind): New enum.
2842 (can_dump_core): New declaration.
2843 (warn_cant_dump_core): Likewise.
2844 (dump_core): Likewise.
2845 * utils.c (dump_core): Made nonstatic. Added new
2846 parameter "limit_kind".
2847 (can_dump_core): Made nonstatic. Moved printing code to...
2848 (warn_cant_dump_core): New function.
2849 (can_dump_core_warn): Likewise.
2850 (internal_vproblem): Replace calls to can_dump_core with
2851 calls to can_dump_core_warn. Supply new argument to each.
2852
57fcfb1b
GB
28532014-06-19 Gary Benson <gbenson@redhat.com>
2854
2855 * utils.h (demangler_vwarning): New declaration.
2856 (demangler_warning): Likewise.
2857 * utils.c (struct internal_problem)
2858 <user_settable_should_quit>: New field.
2859 <user_settable_should_dump_core>: Likewise
2860 (internal_error_problem): Add values for above new fields.
2861 (internal_warning_problem): Likewise.
2862 (demangler_warning_problem): New static global.
2863 (demangler_vwarning): New function.
2864 (demangler_warning): Likewise.
2865 (add_internal_problem_command): Selectively add commands.
2866 (_initialize_utils): New internal problem command.
2867 * maint.c (maintenance_demangler_warning): New function.
2868 (_initialize_maint_cmds): New command.
2869
17a40b44
TT
28702014-06-18 Tom Tromey <tromey@redhat.com>
2871
2872 * f-valprint.c (info_common_command_for_block): Update.
2873 * symtab.h (struct general_symbol_info) <common_block>: Now
2874 const.
2875
346d1dfe
TT
28762014-06-18 Tom Tromey <tromey@redhat.com>
2877
2878 * symtab.h (struct symtab) <blockvector>: Now const.
2879 * ada-lang.c (ada_add_global_exceptions): Update.
2880 * buildsym.c (augment_type_symtab): Update.
2881 * dwarf2read.c (dw2_lookup_symbol): Update.
2882 * jit.c (finalize_symtab): Update.
2883 * jv-lang.c (add_class_symtab_symbol): Update.
2884 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2885 Update.
2886 * objfiles.c (objfile_relocate1): Update.
2887 * psymtab.c (lookup_symbol_aux_psymtabs)
2888 (maintenance_check_psymtabs): Update.
2889 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2890 Update.
2891 * spu-tdep.c (spu_catch_start): Update.
2892 * symmisc.c (dump_symtab_1): Update.
2893 * symtab.c (lookup_global_symbol_from_objfile)
2894 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2895 (basic_lookup_transparent_type_quick)
2896 (basic_lookup_transparent_type, find_pc_sect_symtab)
2897 (find_pc_sect_line, search_symbols): Update.
2898 * block.c (find_block_in_blockvector): Make "bl" const.
2899 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2900 const.
2901 (blockvector_contains_pc): Make "bv" const.
2902 (block_for_pc_sect): Update.
2903 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2904 (blockvector_contains_pc): Update.
2905 * breakpoint.c (resolve_sal_pc): Update.
2906 * inline-frame.c (block_starting_point_at): Update.
2907
1834676b
TT
29082014-06-18 Tom Tromey <tromey@redhat.com>
2909
2910 * completer.c (complete_line): Make "line_buffer" const.
2911 * completer.h (complete_line): Update.
2912
ac1a991b
TT
29132014-06-18 Tom Tromey <tromey@redhat.com>
2914
2915 * symtab.c (add_macro_name): Remove unneeded cast.
2916
5bc98e52
TT
29172014-06-18 Tom Tromey <tromey@redhat.com>
2918
2919 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2920 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2921
8236def8
TT
29222014-06-18 Tom Tromey <tromey@redhat.com>
2923
2924 * probe.c (info_probes_for_ops): Make "arg" const.
2925 * probe.h (info_probes_for_ops): Update.
2926
3977b71f
TT
29272014-06-18 Tom Tromey <tromey@redhat.com>
2928
2929 * varobj.c (varobj_create): Update.
2930 * valops.c (value_of_this): Update.
2931 * tracepoint.c (add_local_symbols, scope_info): Update.
2932 * symtab.h (struct general_symbol_info) <block>: Now const.
2933 * symtab.c (skip_prologue_sal)
2934 (default_make_symbol_completion_list_break_on)
2935 (skip_prologue_using_sal): Update.
2936 * stack.h (iterate_over_block_locals)
2937 (iterate_over_block_local_vars): Update.
2938 * stack.c (print_frame_args): Update.
2939 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2940 parameter const.
2941 (get_selected_block): Make return type const.
2942 * python/py-frame.c (frapy_block): Update.
2943 * python/py-block.c (gdbpy_block_for_pc): Update.
2944 * p-exp.y (%union) <bval>: Now const.
2945 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2946 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2947 * m2-exp.y (%union) <bval>: Now const.
2948 * linespec.c (get_current_search_block): Make return type const.
2949 (create_sals_line_offset, find_label_symbols): Update.
2950 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2951 Update.
2952 (block_starting_point_at): Make "block" const.
2953 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2954 (check_exception_resume): Update.
2955 * guile/scm-frame.c (gdbscm_frame_block): Update.
2956 * guile/scm-block.c (gdbscm_lookup_block): Update.
2957 * frame.h (get_frame_block): Update.
2958 (get_selected_block): Make return type const.
2959 * frame.c (frame_id_inner): Update.
2960 * f-valprint.c (info_common_command_for_block)
2961 (info_common_command): Update.
2962 * dwarf2loc.c (dwarf2_find_location_expression)
2963 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2964 (locexpr_describe_location_piece): Update.
2965 * c-exp.y (%union) <bval>: Now const.
2966 * breakpoint.c (resolve_sal_pc): Update.
2967 * blockframe.c (get_frame_block):Make return type const.
2968 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2969 (block_innermost_frame): Update.
2970 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2971 (block_for_pc, block_for_pc_sect): Update.
2972 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2973 'pblock' const.
2974 (block_for_pc_sect, block_for_pc): Make return type const.
2975 * ax-gdb.c (gen_expr): Update.
2976 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2977 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2978 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2979 (ada_read_var_value): Update.
2980 * ada-exp.y (struct name_info) <block>: Now const.
2981 (%union): Likewise.
2982 (block_lookup): Constify.
2983
b9228891
GB
29842014-06-18 Gary Benson <gbenson@redhat.com>
2985
2986 * nat/i386-dregs.h: New file.
2987 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2988 * i386-nat.h (i386-dregs.h): New include.
2989 (DR_FIRSTADDR): Now in i386-dregs.h.
2990 (DR_LASTADDR): Likewise.
2991 (DR_NADDR): Likewise.
2992 (DR_STATUS): Likewise.
2993 (DR_CONTROL): Likewise.
2994 (i386_debug_reg_state): Likewise.
2995 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2996
a1aa2221
LM
29972014-06-18 Don Breazeal <donb@codesourcery.com>
2998
2999 * breakpoint.c (set_longjmp_breakpoint): Call
3000 momentary_breakpoint_from_master with additional argument.
3001 (set_longjmp_breakpoint_for_call_dummy): Call
3002 momentary_breakpoint_from_master with additional argument.
3003 (set_std_terminate_breakpoint): Call
3004 momentary_breakpoint_from_master with additional argument.
3005 (momentary_breakpoint_from_master): Add argument to function
3006 definition and use it to initialize structure member flag.
74228e77 3007 (clone_momentary_breakpoint): Call
a1aa2221
LM
3008 momentary_breakpoint_from_master with additional argument.
3009 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3010 member flags set in momentary_breakpoint_from_master.
3011
4be83cc2
GB
30122014-06-18 Gary Benson <gbenson@redhat.com>
3013
3014 * i386-nat.c (i386_show_dr): Renamed to
3015 i386_dr_show and made nonstatic. All uses updated.
3016 (i386_length_and_rw_bits): Renamed to
3017 i386_dr_length_and_rw_bits and made nonstatic.
3018 All uses updated.
3019 (i386_insert_aligned_watchpoint): Renamed to
3020 i386_dr_insert_aligned_watchpoint and made nonstatic.
3021 All uses updated.
3022 (i386_remove_aligned_watchpoint): Renamed to
3023 i386_dr_remove_aligned_watchpoint and made nonstatic.
3024 All uses updated.
3025 (i386_update_inferior_debug_regs): Renamed to
3026 i386_dr_update_inferior_debug_regs and made nonstatic.
3027 All uses updated.
3028
131aa0d4
GB
30292014-06-18 Gary Benson <gbenson@redhat.com>
3030
3031 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3032 (i386_dr_low_can_set_control): Likewise.
3033 (i386_dr_low_set_addr): Likewise.
3034 (i386_dr_low_set_control): Likewise.
3035 (i386_dr_low_get_addr): Likewise.
3036 (i386_dr_low_get_status): Likewise.
3037 (i386_dr_low_get_control): Likewise.
3038 (i386_insert_aligned_watchpoint): Use new macros.
3039 (i386_update_inferior_debug_regs): Likewise.
3040 (i386_stopped_data_address): Likewise.
3041
d9305f7f
GB
30422014-06-18 Gary Benson <gbenson@redhat.com>
3043
3044 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3045 New parameter. All uses updated.
3046
ea008da4
GB
30472014-06-18 Gary Benson <gbenson@redhat.com>
3048
3049 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3050 All uses updated.
3051
1b6d4134
GB
30522014-06-18 Gary Benson <gbenson@redhat.com>
3053
3054 * i386-nat.c (debug_printf): New macro.
3055 (i386_get_debug_register_length): Likewise.
3056 (TARGET_HAS_DR_LEN_8): Use above macro.
3057 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3058 and printf_unfiltered. Use phex to format values.
3059
9b4550ef
GB
30602014-06-18 Gary Benson <gbenson@redhat.com>
3061
3062 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3063 Make const.
3064
6e62758f
GB
30652014-06-18 Gary Benson <gbenson@redhat.com>
3066
3067 * i386-nat.c: Comment changes.
3068
51c79e94
GB
30692014-06-18 Gary Benson <gbenson@redhat.com>
3070
3071 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3072
3e11889a
GB
30732014-06-18 Gary Benson <gbenson@redhat.com>
3074
3075 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3076 (i386_insert_aligned_watchpoint): Likewise.
3077 (i386_remove_aligned_watchpoint): Likewise.
3078 (i386_handle_nonaligned_watchpoint): Likewise.
3079
fc6e2f03
GB
30802014-06-18 Gary Benson <gbenson@redhat.com>
3081
3082 * i386-nat.c: Whitespace changes.
3083
2afe7d50
SB
30842014-06-17 Samuel Bronson <naesten@gmail.com>
3085
3086 * MAINTAINERS: Update Roland McGrath's email address.
3087 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3088 Red Hat a while ago, and giving me a current address.
2afe7d50 3089
3bca49ee
TT
30902014-06-17 Tom Tromey <tromey@redhat.com>
3091
3092 * utils.h (savestring): Remove declaration.
3093
6e366df1
TT
30942014-06-17 Tom Tromey <tromey@redhat.com>
3095
3096 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3097
6be47f0c
KS
30982014-06-16 Keith Seitz <keiths@redhat.com>
3099
3100 PR mi/15863
3101 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3102 to update the varobj if inferior_ptid is null_ptid.
3103
7bc112c1
TT
31042014-06-16 Tom Tromey <tromey@redhat.com>
3105
3106 * target.h (struct target_ops) <to_info_proc>: Make parameter
3107 const.
3108 (target_info_proc): Update.
3109 * target.c (target_info_proc): Make "args" const.
3110 * procfs.c (procfs_info_proc): Update.
3111 * linux-tdep.c (linux_info_proc): Update.
3112 (linux_core_info_proc_mappings): Make "args" const.
3113 (linux_core_info_proc): Update.
3114 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3115 * gdbarch.c: Rebuild.
3116 * gdbarch.h: Rebuild.
3117 * corelow.c (core_info_proc): Update.
3118
fee354ee
TT
31192014-06-16 Tom Tromey <tromey@redhat.com>
3120
3121 * target.h (struct target_ops) <to_disconnect>: Make parameter
3122 const.
3123 (target_disconnect): Update.
3124 * target.c (target_disconnect): Make "args" const.
3125 * target-delegates.c: Rebuild.
3126 * remote.c (remote_disconnect): Update.
3127 * record.h (record_disconnect): Update.
3128 * record.c (record_disconnect): Update.
3129 * inf-child.c (inf_child_disconnect): Update.
3130
a30bf1f1
TT
31312014-06-16 Tom Tromey <tromey@redhat.com>
3132
3133 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3134 * target.c (debug_to_rcmd, default_rcmd): Update.
3135 * target-delegates.c: Rebuild.
3136 * remote.c (remote_rcmd): Update.
3137 * monitor.c (monitor_rcmd): Update.
3138
d03de421
PA
31392014-06-16 Pedro Alves <palves@redhat.com>
3140
3141 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3142 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3143 have OBJF_SHARED set.
3144 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3145 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3146 instead of OBJF_USERLOADED.
3147 * objfiles.h (OBJF_SHARED): Update comment.
3148 (userloaded_objfile_contains_address_p): Rename to ...
3149 (shared_objfile_contains_address_p): ... this, and update
3150 comments.
3151 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3152 new objfile.
3153 (remove_symbol_file_command): Skip objfiles that don't have
3154 OBJF_SHARED set.
3155
99f4262f
TT
31562014-06-16 Tom Tromey <tromey@redhat.com>
3157
3158 * minsyms.h (prim_record_minimal_symbol)
3159 (prim_record_minimal_symbol_and_info): Update comments.
3160
97d66cc6
EZ
31612014-06-14 Eli Zaretskii <eliz@gnu.org>
3162
3163 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3164 or --without-guile, according to how GDB was built.
3165
635c7e8a
TT
31662014-06-13 Tom Tromey <tromey@redhat.com>
3167
3168 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3169 to help_list.
3170 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3171 to help_list.
3172 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3173 help_list.
3174 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3175 help_list.Pass all_commands, not -1, to help_list.
3176 * cli/cli-dump.c (dump_command, append_command)
3177 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3178 (binary_dump_command, binary_append_command): Pass all_commands,
3179 not -1, to help_list.
3180 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3181 -1, to help_list.
3182 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3183 -1, to help_list.
3184 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3185 help_list.
3186 * top.c (set_history): Pass all_commands, not -1, to help_list.
3187 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3188 all_commands, not -1, to help_list.
3189 * symfile.c (overlay_command): Pass all_commands, not -1, to
3190 help_list.
3191 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3192 help_list.
3193 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3194 help_list.
3195 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3196 -1, to help_list.
3197 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3198 not -1, to help_list.
3199 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3200 not -1, to help_list.
3201 * maint.c (maintenance_command, maintenance_info_command)
3202 (maintenance_print_command, maintenance_set_cmd): Pass
3203 all_commands, not -1, to help_list.
3204 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3205 help_list.
3206 * language.c (set_check): Pass all_commands, not -1, to help_list.
3207 * infcmd.c (unset_command): Pass all_commands, not -1, to
3208 help_list.
3209 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3210 help_list.
3211 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3212 help_list.
3213 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3214 help_list.
3215 * breakpoint.c (save_command): Pass all_commands, not -1, to
3216 help_list.
3217 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3218 all_commands, not -1, to help_list.
3219
b94ade42
PL
32202014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3221
3222 * regcache.c (struct register_to_invalidate): New structure.
3223 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3224 functions.
3225 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3226
31f628ae
YQ
32272014-06-12 Yao Qi <yao@codesourcery.com>
3228
3229 * varobj.c (varobj_get_num_children): Call
3230 varobj_is_dynamic_p.
3231 (varobj_list_children): Likewise.
3232 (varobj_update): Likewise. Update comments.
3233
cde5ef40
YQ
32342014-06-12 Yao Qi <yao@codesourcery.com>
3235
3236 * varobj.c (varobj_pretty_printed_p): Rename to ...
3237 (varobj_is_dynamic_p): ... this. New function.
3238 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3239 (varobj_is_dynamic_p): Declare.
3240 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3241 (mi_print_value_p, varobj_update_one): Likewise.
3242
576ea091
YQ
32432014-06-12 Pedro Alves <pedro@codesourcery.com>
3244 Yao Qi <yao@codesourcery.com>
3245
3246 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3247 (varobj_get_iterator): Wrap up code for pretty-printer by
3248 "#if HAVE_PYTHON" and "#endif".
3249 (update_dynamic_varobj_children): Likewise.
3250
827f100c
YQ
32512014-06-12 Pedro Alves <pedro@codesourcery.com>
3252 Yao Qi <yao@codesourcery.com>
3253
3254 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3255 gdb_python_initialized is false. Move some code from varobj.c.
3256 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3257 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3258 (struct varobj_item): Moved to varobj-iter.h".
3259 (varobj_clear_saved_item): New function.
3260 (update_dynamic_varobj_children): Move python-related code to
3261 py-varobj.c.
3262 (free_variable): Call varobj_clear_saved_item and
3263 varobj_iter_delete.
3264
e5250216
YQ
32652014-06-12 Pedro Alves <pedro@codesourcery.com>
3266 Yao Qi <yao@codesourcery.com>
3267
3268 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3269 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3270 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3271 (py-varobj.o): New rule.
3272 * python/py-varobj.c: New file.
3273 * python/python-internal.h (py_varobj_get_iterator): Declare.
3274 * varobj-iter.h: New file.
3275 * varobj.c: Include "varobj-iter.h"
3276 (struct varobj) <child_iter>: Change its type from "PyObject *"
3277 to "struct varobj_iter *".
3278 <saved_item>: Likewise.
3279 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3280 [HAVE_PYTHON] (varobj_get_iterator): New function.
3281 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3282 python-specific code to python/py-varobj.c.
3283 (install_visualizer): Call varobj_iter_delete instead of
3284 Py_XDECREF.
3285 * varobj.h (varobj_ensure_python_env): Declare.
3286
5a2e0d6e
YQ
32872014-06-12 Yao Qi <yao@codesourcery.com>
3288
3289 * varobj.c (struct varobj_item): New structure.
3290 (create_child_with_value): Update declaration.
3291 (varobj_add_child): Replace arguments 'name' and 'value' with
3292 'item'. All callers updated.
3293 (install_dynamic_child): Likewise.
3294 (update_dynamic_varobj_children): Likewise.
3295 (varobj_add_child): Likewise.
3296 (create_child_with_value): Likewise.
3297
919b9a93
JB
32982014-06-11 Joel Brobecker <brobecker@adacore.com>
3299
3300 * NEWS: Create a new section for the next release branch.
3301 Rename the section of the current branch, now that it has
3302 been cut.
3303
71a55bdf
JB
33042014-06-11 Joel Brobecker <brobecker@adacore.com>
3305
3306 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3307 * version.in: Bump version to 7.8.50.DATE-cvs.
3308
364fe1f7
PA
33092014-06-11 Pedro Alves <palves@redhat.com>
3310
3311 PR remote/17028
3312 * ser-mingw.c (net_windows_socket_check_pending): New function.
3313 (net_windows_select_thread): Ignore spurious wakeups. Use
3314 net_windows_socket_check_pending.
3315 (net_windows_wait_handle): Check for pending events with
3316 ioctlsocket, through net_windows_socket_check_pending, instead of
3317 checking the socket's event.
3318
5a6c7709
SC
33192014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3320
3321 * python/python-internal.h (gdb_PyObject_GetAttrString)
3322 (gdb_PyObject_HasAttrString): New inline function definitions.
3323 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3324 char * of the second argument to PyObject_GetAttrString.
74228e77 3325
0e58ee40
JB
33262014-06-10 Joel Brobecker <brobecker@adacore.com>
3327
3328 * serial.c (serial_write): Fix index of character to be printed
3329 in call to serial_logchar when serial debug traces are enabled.
3330
d190df30
JB
33312014-06-10 Joel Brobecker <brobecker@adacore.com>
3332
3333 * gdbtypes (resolve_dynamic_range): Add function description.
3334
b4b01d36
PA
33352014-06-09 Pedro Alves <palves@redhat.com>
3336
3337 * linux-nat.c (linux_child_follow_fork): Initialize status with
3338 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3339 inner block. Only pass the signal to PTRACE_DETACH if in pass
3340 state.
3341
3657956b
GB
33422014-06-09 Gary Benson <gbenson@redhat.com>
3343
3344 * common/signals.c (gdb_signal_from_host): Reorder to separate
3345 the always-available ANSI-standard signals from the signals that
3346 require checking.
3347 (do_gdb_signal_to_host): Likewise.
3348 * proc-events.c (signal_table): Likewise.
3349
c077881a
HZ
33502014-06-08 Hui Zhu <hui@codesourcery.com>
3351
3352 * common/linux-ptrace.c (linux_disable_event_reporting): New
3353 function.
3354 * common/linux-ptrace.h (linux_disable_event_reporting): New
3355 declaration.
3356 * linux-nat.c (linux_child_follow_fork): Do a single step before
3357 detach.
3358
4186eb54
KS
33592014-06-07 Keith Seitz <keiths@redhat.com>
3360
3361 Revert:
3362 PR c++/16253
3363 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3364 from symbol_matches_domain in symtab.c. All local callers
3365 of symbol_matches_domain updated.
3366 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3367 search STRUCT_DOMAIN.
3368 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3369 independently. standard_lookup will do that automatically.
3370 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3371 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3372 (cp_lookup_symbol_in_namespace): Likewise.
3373 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3374 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3375 may return a STRUCT_DOMAIN match.
3376 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3377 * cp-support.c: Include language.h.
3378 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3379 VAR_DOMAIN.
3380 * psymtab.c (match_partial_symbol): Compare the requested
3381 domain with the symbol's domain directly.
3382 (lookup_partial_symbol): Likewise.
3383 * symtab.c (lookup_symbol_in_language): Explain when/why
3384 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3385 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3386 appropriate languages.
3387 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3388 and moved to ada-lang.c
3389 (lookup_block_symbol): Explain that this function only returns
3390 symbol matching the requested DOMAIN.
3391 Compare the requested domain with the symbol's domain directly.
3392 (iterate_over_symbols): Compare the requested domain with the
3393 symbol's domain directly.
3394 * symtab.h (symbol_matches_domain): Remove.
3395
25326a28 33962014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3397
3398 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3399 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3400 (gdbscm_guile_version_is_at_least): Declare.
3401 (gdbscm_scm_string_to_int): Declare.
3402 * guile/guile.c (gdbscm_guile_major_version): New global.
3403 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3404 (guile_datadir): New static global.
3405 (gdbscm_guile_data_directory): New function.
3406 (initialize_scheme_side): Update.
3407 (misc_guile_functions): Add guile-data-directory.
3408 (initialize_gdb_module): Fetch guile version number.
3409 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3410 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3411 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3412 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3413 comments.
3414 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3415 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3416 * guile/scm-value.c (gdbscm_value_to_string): Only call
3417 scm_port_conversion_strategy if Guile version >= 2.0.6.
3418
0a770bb2 34192014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3420
3421 * main.c (print_gdb_help): Add -q and --silent.
3422
73ba372c
GB
34232014-06-06 Gary Benson <gbenson@redhat.com>
3424
3425 * common/signals.c: Remove preprocessor conditionals for
3426 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3427 SIGSEGV and SIGTERM.
3428 * proc-events.c: Likewise.
3429
c33b2f12
MM
34302014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3431
3432 * symfile.c (symfile_free_objfile): Remove restriction to
3433 OBJF_USERLOADED.
3434 * symfile-mem.c (symbol_file_add_from_memory): Call
3435 add_target_sections_of_objfile.
3436
fb934770
LC
34372014-06-05 Ludovic Courtès <ludo@gnu.org>
3438
3439 * guile/scm-value.c (gdbscm_history_append_x): Use
3440 'vlscm_get_value_smob_arg_unsafe' instead of
3441 'vlscm_scm_to_value'.
3442
6ef284bd
SM
34432014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3444
3445 PR mi/15806
3446 * utils.c (printchar): Don't escape at all if quoter is NUL.
3447 Update function documentation to clarify effect of parameter
3448 QUOTER.
3449 * remote.c (escape_buffer): Pass '\\' as the quoter to
3450 fputstrn_unfiltered.
3451 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3452 generate the output.
3453 (mi_solib_unloaded): Same.
3454
270c9937
JB
34552014-06-05 Joel Brobecker <brobecker@adacore.com>
3456
3457 * development.sh: Delete.
3458 * Makefile.in (config.status): Adjust dependency on development.sh.
3459 * configure.ac: Adjust development.sh source call.
3460 * configure: Regenerate.
3461
16f691fb
DE
34622014-06-04 Doug Evans <xdje42@gmail.com>
3463
3464 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3465 is_scheme_bkpt, spec.
3466 (bpscm_make_breakpoint_smob): Initialize new members.
3467 (gdbscm_create_breakpoint_x): Split into two ...
3468 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3469 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3470 (scheme_function breakpoint_functions): Update.
3471 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3472 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3473 register-breakpoint!.
3474
ef7cab6b
JB
34752014-06-04 Joel Brobecker <brobecker@adacorer.com>
3476
3477 PR server/17023
3478 * mem-break.c (z_type_supported): Return zero if
3479 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3480
012370f6
TT
34812014-06-04 Tom Tromey <tromey@redhat.com>
3482
3483 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3484 value_from_contents_and_address_unresolved.
3485 (ada_template_to_fixed_record_type_1): Likewise.
3486 (ada_which_variant_applies): Likewise.
3487 * value.h (value_from_contents_and_address_unresolved): Declare.
3488 * value.c (value_from_contents_and_address_unresolved): New
3489 function.
3490 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3491 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3492 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3493
92e2a17f
TT
34942014-06-04 Tom Tromey <tromey@redhat.com>
3495
3496 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3497
c0939df1
TT
34982014-06-04 Tom Tromey <tromey@redhat.com>
3499
3500 * procfs.c (procfs_attach): Make "args" const.
3501 * windows-nat.c (windows_attach): Make "args" const.
3502 * nto-procfs.c (procfs_attach): Make "args" const.
3503 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3504 * go32-nat.c (go32_attach): Make "args" const.
3505 * gnu-nat.c (gnu_attach): Make "args" const.
3506 * darwin-nat.c (darwin_attach): Make "args" const.
3507 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3508 * linux-nat.c (linux_nat_attach): Make "args" const.
3509 * remote.c (extended_remote_attach_1, extended_remote_attach):
3510 Make "args" const.
3511 * target.h (struct target_ops) <to_attach>: Make "args" const.
3512 (find_default_attach): Likewise.
3513 * utils.c (parse_pid_to_attach): Make "args" const.
3514 * utils.h (parse_pid_to_attach): Update.
3515
8eaff7cd
TT
35162014-06-04 Tom Tromey <tromey@redhat.com>
3517
3518 * target-delegates.c: Rebuild.
3519 * target.c (default_thread_address_space): New function.
3520 (target_thread_address_space): Simplify.
3521 * target.h (struct target_ops) <to_thread_address_space>: Add
3522 TARGET_DEFAULT_FUNC.
3523
1913f160
DE
35242014-06-04 Doug Evans <xdje42@gmail.com>
3525
3526 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3527
70ad5bff
MM
35282014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3529
3530 * record-btrace.c: Include event-loop.h and inf-loop.h.
3531 (record_btrace_resume_exec_dir)
3532 (record_btrace_async_inferior_event_handler)
3533 (record_btrace_handle_async_inferior_event): New.
3534 (record_btrace_open): Create async event handler.
3535 (record_btrace_close): Delete async event handler.
3536 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3537 Mark async event handler.
3538 (record_btrace_execution_direction): New.
3539 (init_record_btrace_ops): Initialize to_execution_direction.
3540
b6210538
DE
35412014-06-03 Doug Evans <xdje42@gmail.com>
3542
3543 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3544 (gdbscm_make_parameter): Ditto.
3545
a5b1fd27
DE
35462014-06-03 Doug Evans <dje@google.com>
3547
3548 * exec.c (exec_close_1): Call clear_section_table instead of
3549 resize_section_table.
3550 (clear_section_table): New function.
3551 (resize_section_table): Make static. Rename arg num_added to
3552 adjustment.
3553 * exec.h (clear_section_table): Declare.
3554 (resize_section_table): Delete.
3555 * progspace.c (release_program_space): Call clear_section_table
3556 instead of resize_section_table.
3557
0c6e92a5
SC
35582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3559
3560 * NEWS (Python Scripting): Add entry about the new xmethods
3561 feature.
3562
883964a7
SC
35632014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3564
3565 * python/py-xmethods.c: New file.
3566 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3567 (objfpy_dealloc): XDECREF on the new xmethods field.
3568 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3569 field.
3570 (objfpy_get_xmethods): New function.
3571 (objfile_getset): New entry 'xmethods'.
3572 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3573 (pspy_dealloc): XDECREF on the new xmethods field.
3574 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3575 field.
3576 (pspy_get_xmethods): New function.
3577 (pspace_getset): New entry 'xmethods'.
3578 * python/python-internal.h: Add declarations for new functions.
3579 * python/python.c (_initialize_python): Invoke
3580 gdbpy_initialize_xmethods.
3581 * python/lib/gdb/__init__.py (xmethods): New
3582 attribute.
3583 * python/lib/gdb/xmethod.py: New file.
3584 * python/lib/gdb/command/xmethods.py: New file.
3585
58992dc5
SC
35862014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3587
3588 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3589 best match method returned by find_overload_match is an xmethod.
3590 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3591 the best matching operator returned by find_overload_match is an
3592 xmethod.
3593 * valops.c: #include "extension.h".
3594 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3595 Return void. The list of matching source methods is returned in
3596 "fn_list" and a vector of matching debug method workers is
3597 returned in "xm_worker_vec". Update all callers.
3598 (value_find_oload_method_list): Likewise.
3599 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3600 non-NULL, then the index of the best matching method in this
3601 vector is returned. Update all callers.
3602 (find_overload_match): Include xmethods while performing overload
3603 resolution.
3604
e81e7f5e
SC
36052014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3606
3607 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3608 * extension-priv.h (struct extension_language_ops): Add the
3609 xmethod interface.
3610 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3611 get_matching_xmethod_workers, get_xmethod_argtypes,
3612 invoke_xmethod, free_xmethod_worker,
3613 free_xmethod_worker_vec): New functions.
3614 * extension.h: #include "common/vec.h".
3615 New function declarations.
3616 (struct xmethod_worker): New struct.
3617 (VEC (xmethod_worker_ptr)): New vector type.
3618 (xmethod_worker_ptr): New typedef.
3619 (xmethod_worker_vec): Likewise.
3620 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3621 builtin_type.
3622 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3623 (struct builtin_type): New field "xmethod".
3624 * valarith.c (value_ptradd): Assert that the value argument is not
3625 lval_xcallable.
3626 * valops.c (value_must_coerce_to_target): Return 0 for
3627 lval_xcallable values.
3628 * value.c (struct value): New field XM_WORKER in the field
3629 LOCATION.
3630 (value_address, value_raw_address): Return 0 for lval_xcallable
3631 values.
3632 (set_value_address): Assert that the value is not an
3633 lval_xcallable.
3634 (value_free): Free the associated xmethod worker when freeing
3635 lval_xcallable values.
3636 (set_value_component_location): Assert that the WHOLE value is not
3637 lval_xcallable.
3638 (value_of_xmethod, call_xmethod): New functions.
3639 * value.h: Declare "struct xmethod_worker".
3640 Declare new functions value_of_xmethod, call_xmethod.
3641
ef370185
JB
36422014-06-03 Joel Brobecker <brobecker@adacore.com>
3643 Pedro Alves <palves@redhat.com>
3644
3645 PR breakpoints/17000
3646 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3647 New function, extracted from software_breakpoint_inserted_here_p.
3648 (software_breakpoint_inserted_here_p): Replace factored out code
3649 by call to find_non_raw_software_breakpoint_inserted_here.
3650 (bp_target_info_copy_insertion_state): New function.
3651 (bkpt_insert_location): Handle the case of a single-step
3652 breakpoint already inserted at the same address.
3653 (bkpt_remove_location): Handle the case of a single-step
3654 breakpoint still inserted at the same address.
3655 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3656 breakpoint already inserted at the same address.
3657 (deprecated_remove_raw_breakpoint): Handle the case of a
3658 non-raw breakpoint still inserted at the same address.
3659 (find_single_step_breakpoint): New function, extracted from
3660 single_step_breakpoint_inserted_here_p.
3661 (find_single_step_breakpoint): New function,
3662 factored out from single_step_breakpoint_inserted_here_p.
3663 (single_step_breakpoint_inserted_here_p): Reimplement.
3664
1e2ccb61
BM
36652014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3666
3667 Pushed by Joel Brobecker <brobecker@adacore.com>
3668 * source.c (show_substitute_path_command): Fix display of matching
3669 substitution rules.
3670
d3448d85
GB
36712014-06-03 Gary Benson <gbenson@redhat.com>
3672
3673 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3674
06eb1586
DE
36752014-06-02 Doug Evans <xdje42@gmail.com>
3676
3677 Add parameter support for Guile.
3678 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3679 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3680 (scm-param.o): New rule.
3681 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3682 (gdbscm_misc_error): Declare.
3683 (gdbscm_canonicalize_command_name): Declare.
3684 (gdbscm_scm_to_host_string): Declare.
3685 (gdbscm_scm_from_host_string): Declare.
3686 (gdbscm_initialize_parameters): Declare.
3687 * guile/guile.c (initialize_gdb_module): Call
3688 gdbscm_initialize_parameters.
3689 * guile/lib/gdb.scm: Export parameter symbols.
3690 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3691 cmdscm_canonicalize_name and made public. All callers updated.
3692 * guile/scm-exception.c (gdbscm_misc_error): New function.
3693 * guile/scm-param.c: New file.
3694 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3695 (gdbscm_scm_to_host_string): New function.
3696 (gdbscm_scm_from_host_string): New function.
3697 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3698
e698b8c4
DE
36992014-06-02 Doug Evans <xdje42@gmail.com>
3700
3701 Add command support for Guile.
3702 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3703 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3704 (scm-cmd.o): New rule.
3705 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3706 (gdbscm_user_error_p): Declare.
3707 (gdbscm_parse_command_name): Declare.
3708 (gdbscm_valid_command_class_p): Declare.
3709 (gdbscm_initialize_commands): Declare.
3710 * guile/guile.c (initialize_gdb_module): Call
3711 gdbscm_initialize_commands.
3712 * guile/lib/gdb.scm: Export command symbols.
3713 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3714 (throw-user-error): New function.
3715 * guile/scm-cmd.c: New file.
3716 * guile/scm-exception.c (user_error_symbol): New static global.
3717 (gdbscm_user_error_p): New function.
3718 (gdbscm_initialize_exceptions): Set user_error_symbol.
3719 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3720
fb1f94b0
PM
37212014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3722
3723 * top.c (command_loop): Handle comments here...
3724 (command_line_input): ... not here.
3725
ded03782
DE
37262014-06-02 Doug Evans <xdje42@gmail.com>
3727
3728 Add progspace support for Guile.
3729 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3730 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3731 (scm-progspace.o): New rule.
3732 * guile/guile-internal.h (pspace_smob): New typedef.
3733 (psscm_pspace_smob_pretty_printers): Declare.
3734 (psscm_pspace_smob_from_pspace): Declare.
3735 (psscm_scm_from_pspace): Declare.
3736 * guile/guile.c (initialize_gdb_module): Call
3737 gdbscm_initialize_pspaces.
3738 * guile/lib/gdb.scm: Export progspace symbols.
3739 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3740 support.
3741 (append-pretty-printer!): Ditto.
3742 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3743 Implement.
3744 * guile/scm-progspace.c: New file.
3745
397998fc
AM
37462014-06-03 Alan Modra <amodra@gmail.com>
3747
3748 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3749 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3750
6aa5f3a6
DE
37512014-06-02 Doug Evans <dje@google.com>
3752
3753 Add support for skeletonless type units.
3754 * dwarf2read.c (struct dwarf2_per_objfile): New member
3755 n_allocated_type_units.
3756 (struct dwarf2_per_objfile) <tu_stats>: New member
3757 nr_all_type_units_reallocs.
3758 (create_signatured_type_table_from_index): Initialize
3759 n_allocated_type_units
3760 (create_all_type_units): Ditto.
3761 (add_type_unit): Move up in file. New arg slot.
3762 All callers updated. Increase space for all_type_units more
3763 efficiently.
3764 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3765 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3766 (lookup_dwp_signatured_type): Ditto.
3767 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3768 All callers updated.
3769 (build_type_psymtabs_1): Leave type_unit_groups as
3770 NULL if no TUs present.
3771 (print_tu_stats): New function.
3772 (process_skeletonless_type_unit): New function.
3773 (process_dwo_file_for_skeletonless_type_units): New
3774 function.
3775 (process_skeletonless_type_units): New function.
3776 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3777 Call print tu_stats if debugging enabled.
3778
41fac0cf
PA
37792014-06-02 Pedro Alves <palves@redhat.com>
3780
3781 * breakpoint.c (build_target_command_list): Don't build a command
3782 list if we have any duplicate location that isn't a dprintf.
3783
cd1608cc
PA
37842014-06-02 Pedro Alves <palves@redhat.com>
3785
3786 * breakpoint.c (dprintf_breakpoint_hit): New function.
3787 (initialize_breakpoint_ops): Install it as dprintf's
3788 breakpoint_hit method.
3789
486ef3b9
JB
37902014-06-02 Joel Brobecker <brobecker@adacore.com>
3791
3792 * source.c (substitute_path_rule_matches): Simplify using
3793 filename_ncmp instead of FILENAME_CMP.
3794
230cd560
JB
37952014-06-02 Joel Brobecker <brobecker@adacore.com>
3796
3797 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3798
16954d5d
LC
37992014-06-01 Ludovic Courtès <ludo@gnu.org>
3800
3801 * configure.ac: When Guile is available, check for the
3802 availability of 'scm_new_smob'.
3803 * configure, config.h.in: Regenerate.
3804 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3805 function.
3806
53e8a631
AB
38072014-05-30 Andrew Burgess <aburgess@broadcom.com>
3808
3809 * frame.c (struct frame_info): Add stop_string field.
3810 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3811 (get_prev_frame_always): Old content moved into
3812 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3813 TRY_CATCH, handle MEMORY_ERROR exceptions.
3814 (frame_stop_reason_string): New function definition.
3815 * frame.h (unwind_stop_reason_to_string): Extend comment to
3816 mention frame_stop_reason_string.
3817 (frame_stop_reason_string): New function declaration.
3818 * stack.c (frame_info): Switch to frame_stop_reason_string.
3819 (backtrace_command_1): Switch to frame_stop_reason_string.
3820 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3821 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3822 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3823
70e38b8e
AB
38242014-05-30 Andrew Burgess <aburgess@broadcom.com>
3825
3826 * frame.c (frame_stop_reason_string): Rename to ...
3827 (unwind_stop_reason_to_string): this.
3828 * frame.h (frame_stop_reason_string): Rename to ...
3829 (unwind_stop_reason_to_string): this.
3830 * stack.c (frame_info): Update call to frame_stop_reason_string.
3831 (backtrace_command_1): Likewise.
3832 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3833 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3834
938f0e2f
AB
38352014-05-30 Andrew Burgess <aburgess@broadcom.com>
3836
3837 * frame.c (remove_prev_frame): New function.
3838 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3839 remove_prev_frame.
3840
a09dd441
PA
38412014-05-29 Pedro Alves <palves@redhat.com>
3842
3843 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3844 and make it const. When a single-step decays to a continue,
3845 clear 'step', not 'hw_step'. Pass whether the caller wanted
3846 to step to user_visible_resume_ptid, not what we ask the
3847 target to do.
3848
bdc36728
PA
38492014-05-29 Pedro Alves <palves@redhat.com>
3850
3851 * infrun.c (process_event_stop_test, handle_step_into_function)
3852 (handle_step_into_function_backward): Adjust.
3853 Don't set the even thread's stop_step and call stop_waiting before
3854 calling end_stepping_range. Instead do that ...
3855 (end_stepping_range): ... here. Take an ecs pointer parameter.
3856
22bcd14b
PA
38572014-05-29 Pedro Alves <palves@redhat.com>
3858
3859 * infrun.c (stop_stepping): Rename to ...
3860 (stop_waiting): ... this.
3861 (proceed): Update comment.
3862 (process_event_stop_test, handle_inferior_event)
3863 (handle_signal_stop, handle_step_into_function)
3864 (handle_step_into_function_backward): Update.
3865
4ae57c05
PA
38662014-05-29 Pedro Alves <palves@redhat.com>
3867
3868 * infcall.c (run_inferior_call): Don't check whether the current
3869 thread is running after the proceed call.
3870
329ea579
PA
38712014-05-29 Pedro Alves <palves@redhat.com>
3872 Tom Tromey <tromey@redhat.com>
3873
3874 * NEWS: Mention "maint set target-async", "set mi-async", and that
3875 background execution commands are now always available.
3876 * target.h (target_async_permitted): Update comment.
3877 * target.c (target_async_permitted, target_async_permitted_1):
3878 Default to 1.
3879 (set_target_async_command): Rename to ...
3880 (maint_set_target_async_command): ... this.
3881 (show_target_async_command): Rename to ...
3882 (maint_show_target_async_command): ... this.
3883 (_initialize_target): Adjust.
3884 * infcmd.c (prepare_execution_command): Make extern.
3885 * inferior.h (prepare_execution_command): Declare.
3886 * infrun.c (set_observer_mode): Leave target async alone.
3887 * mi/mi-interp.c (mi_interpreter_init): Install
3888 mi_on_sync_execution_done as sync_execution_done observer.
3889 (mi_on_sync_execution_done): New function.
3890 (mi_execute_command_input_handler): Don't print the prompt if we
3891 just started a synchronous command with an async target.
3892 (mi_on_resume): Check sync_execution before printing prompt.
3893 * mi/mi-main.h (mi_async_p): Declare.
3894 * mi/mi-main.c: Include gdbcmd.h.
3895 (mi_async_p): New function.
3896 (mi_async, mi_async_1): New globals.
3897 (set_mi_async_command, show_mi_async_command, mi_async): New
3898 functions.
3899 (exec_continue): Call prepare_execution_command.
3900 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3901 (mi_execute_async_cli_command): Use mi_async_p.
3902 (_initialize_mi_main): Install "set mi-async". Make
3903 "target-async" a deprecated alias.
3904
92bcb5f9
PA
39052014-05-29 Pedro Alves <palves@redhat.com>
3906
3907 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3908 (_initialize_cli_interp): Adjust.
3909 * event-loop.c: Include "observer.h".
3910 (start_event_loop): Notify 'command_error' observers instead of
3911 calling display_gdb_prompt. Remove FIXME comment.
3912 * event-top.c (display_gdb_prompt): Remove call into the
3913 interpreters.
3914 * inf-loop.c: Include "observer.h".
3915 (inferior_event_handler): Notify 'command_error' observers instead
3916 of calling display_gdb_prompt.
3917 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3918 observers instead of calling display_gdb_prompt.
3919 * interps.c (interp_set): Don't call display_gdb_prompt.
3920 (current_interp_display_prompt_p): Delete.
3921 * interps.h (interp_prompt_p): Delete declaration.
3922 (interp_prompt_p_ftype): Delete.
3923 (struct interp_procs) <prompt_proc_p>: Delete field.
3924 (current_interp_display_prompt_p): Delete declaration.
3925 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3926 (_initialize_mi_interp): Adjust.
3927 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3928 'command_error' observers.
3929 (tui_on_sync_execution_done, tui_on_command_error): New
3930 functions.
3931 (tui_display_prompt_p): Delete.
3932 (_initialize_tui_interp): Adjust.
3933
fd664c91
PA
39342014-05-29 Pedro Alves <palves@redhat.com>
3935
3936 PR gdb/13860
3937 * cli/cli-interp.c: Include infrun.h and observer.h.
3938 (cli_uiout, cli_interp): New globals.
3939 (cli_on_signal_received, cli_on_end_stepping_range)
3940 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3941 functions.
3942 (cli_interpreter_init): Install them as 'end_stepping_range',
3943 'signal_received' 'signal_exited', 'exited' and 'no_history'
3944 observers.
3945 (_initialize_cli_interp): Remove cli_interp local.
3946 * infrun.c (handle_inferior_event): Call the several stop reason
3947 observers instead of printing the stop reason directly.
3948 (end_stepping_range): New function.
3949 (print_end_stepping_range_reason, print_signal_exited_reason)
3950 (print_exited_reason, print_signal_received_reason)
3951 (print_no_history_reason): Make static, and add an uiout
3952 parameter. Print to that instead of to CURRENT_UIOUT.
3953 * infrun.h (print_end_stepping_range_reason)
3954 (print_signal_exited_reason, print_exited_reason)
3955 (print_signal_received_reason print_no_history_reason): New
3956 declarations.
3957 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3958 'mi_uiout'.
3959 <cli_uiout>: New field.
3960 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3961 uiout for CLI output. Install 'signal_received',
3962 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3963 observers.
3964 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3965 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3966 (mi_on_no_history): New functions.
3967 (ui_out_free_cleanup): Delete function.
3968 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3969 instead use the one already stored in the MI interpreter data.
3970 (mi_ui_out): Adjust.
3971 * tui/tui-interp.c: Include infrun.h and observer.h.
3972 (tui_interp): New global.
3973 (tui_on_signal_received, tui_on_end_stepping_range)
3974 (tui_on_signal_exited, tui_on_exited)
3975 (tui_on_no_history): New functions.
3976 (tui_init): Install them as 'end_stepping_range',
3977 'signal_received' 'signal_exited', 'exited' and 'no_history'
3978 observers.
3979 (_initialize_tui_interp): Delete tui_interp local.
3980
8817a6f2
PA
39812014-05-29 Pedro Alves <palves@redhat.com>
3982
3983 PR gdb/15713
3984 * linux-nat.c (linux_nat_resume_callback): Rename the second
3985 parameter to 'except'. Skip LP if it points to EXCEPT.
3986 (linux_nat_resume): Don't mark the event lwp as not stopped
3987 before resuming sibling lwps. Instead ask
3988 linux_nat_resume_callback to skip the event lwp. Mark it as not
3989 stopped after actually resuming it.
3990 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3991 resuming it.
3992 (wait_lwp): Mark the lwp as stopped here.
3993 (stop_wait_callback): Mark the lwp as not stopped right after
3994 resuming it. Don't mark lwps as stopped here.
3995 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3996 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3997
251bde03
PA
39982014-05-29 Pedro Alves <palves@redhat.com>
3999
4000 PR PR15693
4001 * infrun.c (resume): Determine how much to resume depending on
4002 whether the caller wanted a step, not whether we can hardware step
4003 the target. Mark all threads that we intend to run as running,
4004 unless we're calling an inferior function.
4005 (normal_stop): If the thread is running an infcall, don't finish
4006 thread state.
4007 * target.c (target_resume): Don't mark threads as running here.
4008
7f3c0343
JB
40092014-05-28 Joel Brobecker <brobecker@adacore.com>
4010
4011 * serial.c (_initialize_serial): Remove support for
4012 the "set remotebaud" and "show remotebaud" commands.
4013 * NEWS: Add entry documenting the removal of that command.
4014
ee34b3f9
YQ
40152014-05-28 Yao Qi <yao@codesourcery.com>
4016
4017 * charset.c: Fix typo in comments.
4018
add6c04d
GB
40192014-05-27 Gary Benson <gbenson@redhat.com>
4020
4021 * utils.c (internal_vproblem): Prompt for a bug report.
4022
92c48fc5
AW
40232014-05-26 Andy Wingo <wingo@igalia.com>
4024
4025 * guile/scm-arch.c (arscm_mark_arch_smob):
4026 * guile/scm-block.c (bkscm_mark_block_smob)
4027 (bkscm_mark_block_syms_progress_smob):
4028 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4029 * guile/scm-exception.c (exscm_mark_exception_smob):
4030 * guile/scm-frame.c (frscm_mark_frame_smob):
4031 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4032 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4033 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4034 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4035 (ppscm_mark_pretty_printer_worker_smob):
4036 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4037 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4038 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4039 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4040 mark functions.
4041 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4042 function.
4043
b2715b27
AW
40442014-05-26 Andy Wingo <wingo@igalia.com>
4045 Doug Evans <xdje42@gmail.com>
4046
4047 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4048 empty_base_class. All uses updated.
4049 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4050 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4051 Adapt all callers.
4052 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4053 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4054 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4055 (gdbscm_gsmob_has_property_p, add_property_name)
4056 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4057 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4058 (gdb-object-has-property?, gdb-object-properties): Remove.
4059 (gdb-object-kind): Renamed from gsmob-kind.
4060
214ab2da
AW
40612014-05-26 Andy Wingo <wingo@igalia.com>
4062
4063 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4064 * configure: Regenerate.
4065
589fdceb
MM
40662014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4067
4068 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4069
67b5c0c1
MM
40702014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4071
4072 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4073 (replay_memory_access_read_only, replay_memory_access_read_write)
4074 (replay_memory_access_types, replay_memory_access)
4075 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4076 (cmd_set_record_btrace, cmd_show_record_btrace)
4077 (cmd_show_replay_memory_access): New.
4078 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4079 (record_btrace_remove_breakpoint): Replace
4080 record_btrace_allow_memory_access with replay_memory_access.
4081 (_initialize_record_btrace): Add commands.
4082 * NEWS: Announce it.
4083
036cd381
RR
40842014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4085
4086 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4087
c77c1e42
RR
40882014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4089
4090 * MAINTAINERS (Write After Approval): Move self back from
4091 paper trail.
4092
45741a9c
PA
40932014-05-22 Pedro Alves <palves@redhat.com>
4094
4095 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4096 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4097 (disable_randomization, enum exec_direction_kind)
4098 (execution_direction, stop_registers, start_remote)
4099 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4100 (wait_for_inferior, normal_stop, get_last_target_status)
4101 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4102 (insert_step_resume_breakpoint_at_sal)
4103 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4104 (set_step_info, print_stop_event, signal_stop_state)
4105 (signal_print_state, signal_pass_state, signal_stop_update)
4106 (signal_print_update, signal_pass_update)
4107 (update_signals_program_target, clear_exit_convenience_vars)
4108 (displaced_step_dump_bytes, update_observer_mode)
4109 (signal_catch_update, gdb_signal_from_command): Move
4110 declarations ...
4111 * infrun.h: ... to this new file.
4112 * amd64-tdep.c: Include infrun.h.
4113 * annotate.c: Include infrun.h.
4114 * arch-utils.c: Include infrun.h.
4115 * arm-linux-tdep.c: Include infrun.h.
4116 * arm-tdep.c: Include infrun.h.
4117 * break-catch-sig.c: Include infrun.h.
4118 * breakpoint.c: Include infrun.h.
4119 * common/agent.c: Include infrun.h instead of inferior.h.
4120 * corelow.c: Include infrun.h.
4121 * event-top.c: Include infrun.h.
4122 * go32-nat.c: Include infrun.h.
4123 * i386-tdep.c: Include infrun.h.
4124 * inf-loop.c: Include infrun.h.
4125 * infcall.c: Include infrun.h.
4126 * infcmd.c: Include infrun.h.
4127 * infrun.c: Include infrun.h.
4128 * linux-fork.c: Include infrun.h.
4129 * linux-nat.c: Include infrun.h.
4130 * linux-thread-db.c: Include infrun.h.
4131 * monitor.c: Include infrun.h.
4132 * nto-tdep.c: Include infrun.h.
4133 * procfs.c: Include infrun.h.
4134 * record-btrace.c: Include infrun.h.
4135 * record-full.c: Include infrun.h.
4136 * remote-m32r-sdi.c: Include infrun.h.
4137 * remote-mips.c: Include infrun.h.
4138 * remote-notif.c: Include infrun.h.
4139 * remote-sim.c: Include infrun.h.
4140 * remote.c: Include infrun.h.
4141 * reverse.c: Include infrun.h.
4142 * rs6000-tdep.c: Include infrun.h.
4143 * s390-linux-tdep.c: Include infrun.h.
4144 * solib-irix.c: Include infrun.h.
4145 * solib-osf.c: Include infrun.h.
4146 * solib-svr4.c: Include infrun.h.
4147 * target.c: Include infrun.h.
4148 * top.c: Include infrun.h.
4149 * windows-nat.c: Include infrun.h.
4150 * mi/mi-interp.c: Include infrun.h.
4151 * mi/mi-main.c: Include infrun.h.
4152 * python/py-threadevent.c: Include infrun.h.
4153
98eb56a4
PA
41542014-05-22 Pedro Alves <palves@redhat.com>
4155
4156 * infrun.c (handle_inferior_event): Store the exit code for
4157 --return-child-result here, instead of ...
4158 (print_exited_reason): ... here.
4159
17b2616c
PA
41602014-05-21 Pedro Alves <palves@redhat.com>
4161
4162 PR gdb/13860
4163 * gdbthread.h (struct thread_control_state): New field
4164 `command_interp'.
4165 * infrun.c (follow_fork): Copy the new thread control field to the
4166 child fork thread.
4167 (clear_proceed_status_thread): Clear the new thread control field.
4168 (proceed): Set the new thread control field.
4169 * interps.h (command_interp): Declare.
4170 * interps.c (command_interpreter): New global.
4171 (command_interp): New function.
4172 (interp_exec): Set `command_interpreter' while here.
4173 * cli-out.c (cli_uiout_dtor): New function.
4174 (cli_ui_out_impl): Install it.
4175 * mi/mi-interp.c: Include cli-out.h.
4176 (mi_cmd_interpreter_exec): Add comment.
4177 (restore_current_uiout_cleanup): New function.
4178 (ui_out_free_cleanup): New function.
4179 (mi_on_normal_stop): If finishing an execution command started by
4180 a CLI command, or any kind of breakpoint-like event triggered,
4181 print the stop event to the output (CLI) stream.
4182 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4183
5166082f
PA
41842014-05-21 Pedro Alves <palves@redhat.com>
4185
4186 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4187 current source line having changed.
4188 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4189 * infrun.c (normal_stop): Adjust call to
4190 set_current_sal_from_frame.
4191 * source.c (clear_lines_listed_range): New function.
4192 (set_current_source_symtab_and_line, identify_source_line): Clear
4193 the lines listed range.
4194 (line_info): Handle the first "info line" after the current source
4195 line having changed.
4196 * stack.c (print_stack_frame): Remove center handling.
4197 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4198 center sal.line.
4199
c1ee2fb3
PA
42002014-05-21 Pedro Alves <palves@redhat.com>
4201
4202 * inf-child.c (inf_child_mourn_inferior): New function.
4203 * inf-child.h (inf_child_mourn_inferior): New declaration.
4204 * darwin-nat.c (darwin_mourn_inferior): Use
4205 inf_child_mourn_inferior.
4206 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4207 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4208 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4209 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4210 * windows-nat.c (windows_mourn_inferior): Likewise.
4211
5c6d4fb2
DE
42122014-05-21 Doug Evans <xdje42@gmail.com>
4213
250748cb 4214 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4215
4a2722c5
DE
42162014-05-21 Doug Evans <xdje42@gmail.com>
4217
17292b30 4218 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4219 (gdbscm_out_of_range_error): Ditto.
4220 (gdbscm_memory_error): Ditto.
250748cb
DE
4221 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4222 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4223 (gdbscm_out_of_range_error): Update.
4224 (gdbscm_memory_error): Update.
4225 (gdbscm_scm_to_target_string_unsafe): Delete.
4226
6a3cb8e8
PA
42272014-05-21 Pedro Alves <palves@redhat.com>
4228
4229 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4230 globals.
4231 (inf_child_open_target): New function.
4232 (inf_child_open): Use inf_child_open_target to push the target
4233 instead of erroring out.
4234 (inf_child_disconnect, inf_child_close)
4235 (inf_child_maybe_unpush_target): New functions.
4236 (inf_child_target): Install inf_child_disconnect and
4237 inf_child_close. Store a pointer to the returned object.
4238 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4239 declarations.
4240 * target.c (auto_connect_native_target): New global.
4241 (show_default_run_target): New function.
4242 (find_default_run_target): Return NULL if automatically connecting
4243 to the native target is disabled.
4244 (_initialize_target): Install set/show auto-connect-native-target.
4245 * NEWS: Mention "set auto-connect-native-target", and "target
4246 native".
4247 * linux-nat.c (super_close): New global.
4248 (linux_nat_close): Call super_close.
4249 (linux_nat_add_target): Store a pointer to the base class's
4250 to_close method.
4251 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4252 inf_child_maybe_unpush.
4253 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4254 already pushed.
4255 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4256 the inferior. Use inf_child_maybe_unpush_target.
4257 (inf_ttrace_attach): Don't push the target if it is already
4258 pushed.
4259 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4260 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4261 after mourning the inferior. Use inf_child_maybe_unpush_target.
4262 (darwin_attach_pid): Don't push the target if it is already
4263 pushed.
4264 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4265 mourning the inferior. Use inf_child_maybe_unpush_target.
4266 (gnu_detach): Use inf_child_maybe_unpush_target.
4267 * go32-nat.c (go32_create_inferior): Don't push the target if it
4268 is already pushed.
4269 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4270 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4271 (procfs_open): Rename to ...
4272 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4273 comments. Can target_preopen before changing node. Call
4274 inf_child_open_target to push the target explicitly.
4275 (procfs_attach): Don't push the target if it is already pushed.
4276 (procfs_detach): Use inf_child_maybe_unpush_target.
4277 (procfs_create_inferior): Don't push the target if it is already
4278 pushed.
4279 (nto_native_ops): New global.
4280 (procfs_open): Reimplement.
4281 (procfs_native_open): New function.
4282 (init_procfs_targets): Install procfs_native_open as to_open of
4283 "target native". Store a pointer to the "native" target in
4284 nto_native_ops.
4285 * procfs.c (procfs_attach): Don't push the target if it is already
4286 pushed.
4287 (procfs_detach): Use inf_child_maybe_unpush_target.
4288 (procfs_mourn_inferior): Only unpush the target after mourning the
4289 inferior. Use inf_child_maybe_unpush_target.
4290 (procfs_init_inferior): Don't push the target if it is already
4291 pushed.
4292 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4293 if it is already pushed.
4294
930ee1b1
PA
42952014-05-21 Pedro Alves <palves@redhat.com>
4296
4297 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4298 and "procfs" targets are now called "native" instead.
4299
1f5d1b13
PA
43002014-05-21 Pedro Alves <palves@redhat.com>
4301
4302 * go32-nat.c (go32_open): Delete.
4303 (go32_target): Don't override the to_open method.
4304
132f8e03
PA
43052014-05-21 Pedro Alves <palves@redhat.com>
4306
4307 * nto-procfs.c (procfs_can_run): New function.
4308 (nto_procfs_ops): New global.
4309 (init_procfs_targets): New, based on procfs_target. Install
4310 "target native" in addition to "target procfs".
4311 (_initialize_procfs): Call init_procfs_targets instead of adding
4312 the target here.
4313
03c136c3
PA
43142014-05-21 Pedro Alves <palves@redhat.com>
4315
4316 * windows-nat.c (windows_target): Don't override to_shortname,
4317 to_longname or to_doc.
4318
a635d0f3
PA
43192014-05-21 Pedro Alves <palves@redhat.com>
4320
4321 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4322 to_doc.
4323
4f9b5133
PA
43242014-05-21 Pedro Alves <palves@redhat.com>
4325
4326 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4327 to_shortname, to_longname or to_doc.
4328
bc85afde
PA
43292014-05-21 Pedro Alves <palves@redhat.com>
4330
4331 * go32-nat.c (go32_target): Don't override to_shortname,
4332 to_longname or to_doc.
4333
4ebfc96e
PA
43342014-05-21 Pedro Alves <palves@redhat.com>
4335
4336 * inf-child.c (inf_child_open): Remove mention of "child".
4337 (inf_child_target): Rename target to "native" instead of "child".
4338
2648dfed
AA
43392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4340
4341 * Makefile.in (SFILES): Delete "regset.c".
4342 (COMMON_OBS): Delete "regset.o".
4343 * regset.c: Remove.
4344 * regset.h (regset_alloc): Delete prototype.
4345
b13feb94
AA
43462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4347
4348 * sparc-linux-tdep.c (sparc32_linux_gregset)
4349 (sparc32_linux_fpregset): New static regset structures.
4350 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4351 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4352 'fpregset' fields.
4353 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4354 (sparc64_linux_fpregset): New static regset structures.
4355 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4356 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4357 New static regset structures.
4358 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4359 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4360 New static regset structures.
4361 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4362 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4363 New static regset structures.
4364 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4365 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4366 New static regset structures.
4367 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4368
b4fd25c9
AA
43692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4370
4371 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4372 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4373 register maps ("regmaps") from "*regset" to "*regmap". Do this
4374 for all regmap types and variables.
4375 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4376 (sparc32_linux_supply_core_gregset)
4377 (sparc32_linux_collect_core_gregset)
4378 (sparc32_linux_supply_core_fpregset)
4379 (sparc32_linux_collect_core_fpregset): Likewise.
4380 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4381 (sparc_gregmap, sparc_fpregmap): ... these.
4382 (sparc_supply_gregset, sparc_collect_gregset)
4383 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4384 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4385 (_initialize_sparc_nat): Rename regmaps.
4386 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4387 (sparc_gregmap, sparc_fpregmap): ... these.
4388 (sparc_supply_gregset, sparc_collect_gregset)
4389 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4390 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4391 Rename macros to...
4392 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4393 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4394 Likewise.
4395 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4396 Rename to...
4397 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4398 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4399 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4400 regmaps.
4401 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4402 (sparc32_bsd_fpregset): Rename to...
4403 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4404 (sparc32_bsd_fpregmap): ... these.
4405 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4406 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4407 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4408 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4409 (struct sparc_gregmap, struct sparc_fpregmap)
4410 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4411 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4412 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4413 (sparc32_supply_regset, sparc32_collect_gregset)
4414 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4415 prototypes.
4416 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4417 (sparc64_linux_ptrace_gregmap): ... this.
4418 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4419 (_initialize_sparc64_linux_nat): Rename regmaps.
4420 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4421 (sparc64_linux_core_gregmap): ... this.
4422 (sparc64_linux_supply_core_gregset)
4423 (sparc64_linux_collect_core_gregset)
4424 (sparc64_linux_supply_core_fpregset)
4425 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4426 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4427 (sparc64_sol2_fpregset): Rename to...
4428 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4429 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4430 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4431 regmaps.
4432 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4433 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4434 (sparc64_bsd_fpregset): Rename to...
4435 (struct sparc_gregmap, sparc64_sol2_gregmap)
4436 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4437 (sparc64_bsd_fpregmap): ... these.
4438 (sparc64_supply_gregset, sparc64_collect_gregset)
4439 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4440 prototypes.
4441 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4442 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4443 (sparc64fbsd_gregmap): ... this.
4444 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4445 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4446 Rename regmaps.
4447 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4448 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4449 (sparc64nbsd_collect_fpregset): Likewise.
4450 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4451 (sparc64nbsd_gregmap): ... this.
4452 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4453 regmaps.
4454 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4455 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4456 (sparc64obsd_gregmap): ... this.
4457 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4458 regmaps.
4459 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4460 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4461 (sparc32nbsd_gregmap): ... this.
4462 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4463 regmaps.
4464
8fea3224
AA
44652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4466
4467 * score-tdep.c (score7_linux_gregset): New static regset
4468 structure.
4469 (score7_linux_regset_from_core_section): Remove dynamic regset
4470 allocation.
4471 (score_gdbarch_init): Drop allocation of tdep structure.
4472 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4473
24534243
AA
44742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4475
4476 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4477 regset structures.
4478 (am33_regset_from_core_section): Remove dynamic regset
4479 allocations.
4480
b7195f27
AA
44812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4482
4483 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4484 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4485 structures.
4486 (mips_linux_regset_from_core_section): Remove dynamic regset
4487 allocations.
4488 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4489 'gregset64', 'fpregset', and 'fpregset64'.
4490 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4491 deleted tdep fields.
4492
ecc37a5a
AA
44932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4494
4495 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4496 regset structures.
4497 (amd64_regset_from_core_section): Remove dynamic regset
4498 allocations.
4499 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4500 structure.
4501 (amd64obsd_regset_from_core_section): Remove dynamic regset
4502 allocation.
4503 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4504 Likewise.
4505 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4506 x86-common regset supply function.
4507 * i386-tdep.c (i386_collect_gregset): Make static.
4508 (i386_gregset): New global regset structure.
4509 (i386_fpregset, i386_xstateregset): New static regset structures.
4510 (i386_regset_from_core_section): Remove dynamic regset
4511 allocations.
4512 (i386_gdbarch_init): Remove initialization of tdep fields
4513 'gregset', 'fpregset', and 'xstateregset'.
4514 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4515 'fpregset', and 'xstateregset'.
4516 (i386_collect_gregset): Remove prototype.
4517 (i386_gregset): New declaration.
4518 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4519 structure.
4520 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4521 allocation.
4522
b7611c43
AA
45232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4524
4525 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4526 (arm_linux_vfpregset): New static regset structures.
4527 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4528 regset structures.
4529 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4530 and 'vfpregset' fields.
4531
a069a2bd
AA
45322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4533
4534 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4535 (aarch64_linux_fpregset): New static regset structures.
4536 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4537 of regset structures.
4538 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4539 'fpregset' fields.
4540
09424cff
AA
45412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4542
4543 * regset.h (struct regset): Remove gdbarch field.
4544 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4545 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4546 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4547 Likewise.
4548 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4549 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4550 (ppc32_linux_vsxregset): Likewise.
4551 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4552 via the regcache instead of the regset.
4553 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4554 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4555 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4556 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4557 Likewise.
4558
3ca7dae4
AA
45592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4560
4561 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4562 Constify structures.
4563 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4564 (alphanbsd_aout_gregset): Likewise.
4565 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4566 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4567 Likewise.
4568 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4569 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4570 Likewise.
4571 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4572 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4573 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4574 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4575 * m88k-tdep.c (m88k_gregset): Likewise.
4576 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4577 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4578 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4579 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4580 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4581 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4582 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4583 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4584 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4585 Likewise.
4586 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4587 * sh-tdep.h (sh_corefile_gregset): Likewise.
4588 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4589 * vax-tdep.c (vax_gregset): Likewise.
4590
5876f503
JK
45912014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4592
4593 Fix TLS access for -static -pthread.
4594 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4595 (try_thread_db_load_1): Initialize it.
4596 (thread_db_get_thread_local_address): Call it if LM is zero.
4597 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4598 * target.h (struct target_ops) (to_get_thread_local_address): Add
4599 load_module_addr comment.
4600
0256a6ac
PA
46012014-05-21 Pedro Alves <palves@redhat.com>
4602
4603 * dcache.c (dcache_read_memory_partial): If reading the cache line
4604 fails, fallback to reading just the memory the caller wanted.
4605
227533ac
DE
46062014-05-20 Doug Evans <dje@google.com>
4607
4608 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4609 instead of get_current_arch.
4610
936d2992
PA
46112014-05-20 Pedro Alves <palves@redhat.com>
4612
4613 * NEWS: Mention that compare-sections now works with all targets.
4614
4615 * remote.c (PACKET_qCRC): New enum value.
4616 (remote_verify_memory): Don't send qCRC if the target has no
4617 execution. Use packet_support/packet_ok. If the target doesn't
4618 support the qCRC packet, fallback to a deep memory copy.
4619 (compare_sections_command): Say "target image" instead of "remote
4620 executable".
4621 (_initialize_remote): Add PACKET_qCRC to the list of config
4622 packets that have no associated command. Extend comment.
4623 * target.c (simple_verify_memory, default_verify_memory): New
4624 function.
4625 * target.h (struct target_ops) <to_verify_memory>: Default to
4626 default_verify_memory.
4627 (simple_verify_memory): New declaration.
4628 * target-delegates.c: Regenerate.
4629
e59fa00f
MM
46302014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4631
4632 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4633
f2205de0
HZ
46342014-05-20 Hui Zhu <hui@codesourcery.com>
4635 Yao Qi <yao@codesourcery.com>
4636
4637 PR backtrace/16558
4638 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4639 and change address of sp and pc.
4640
c4e54771
TT
46412014-05-19 Tom Tromey <tromey@redhat.com>
4642
4643 * gdbtypes.c (rank_function): Use XNEWVEC.
4644 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4645
73051182
DE
46462014-05-19 Doug Evans <dje@google.com>
4647
4648 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4649 build_type_unit_groups and moved closer to only caller. Remove
4650 arguments. All references updated. Remove outdated .gdb_index
4651 comment.
4652 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4653 build_type_psymtabs_1.
4654
8832e7e3
DE
46552014-05-19 Doug Evans <dje@google.com>
4656
4657 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4658 n_type_unit_groups, all_type_unit_groups. All uses removed.
4659 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4660 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4661 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4662 (add_type_unit_group_to_table): Delete.
4663
cd8ae15e
DE
46642014-05-19 Doug Evans <dje@google.com>
4665
4666 * eval.c (evaluate_subexp_standard): Add some comments.
4667
08f4850b
DE
46682014-05-17 Doug Evans <xdje42@gmail.com>
4669
4670 * progspace.c (remove_program_space): Delete, unused.
4671 * progspace.h (remove_program_space): Ditto.
4672
bed8455c
DE
46732014-05-17 Doug Evans <xdje42@gmail.com>
4674
4675 * inferior.c (prune_inferiors): Fix comment.
4676 (remove_inferior_command): Call prune_program_spaces.
4677
8d551b02
DE
46782014-05-16 Doug Evans <dje@google.com>
4679
4680 New command line option -D.
4681 * NEWS: Mention it.
4682 * main.c (set_gdb_data_directory): New function.
4683 (captured_main): Recognize -D. Flag error for --data-directory "".
4684 Call set_gdb_data_directory.
4685 (print_gdb_help): Print --data-directory, -D.
4686 * main.h (set_gdb_data_directory): Declare.
4687 * top.c (staged_gdb_datadir): New static global.
4688 (set_gdb_datadir): Call set_gdb_data_directory
4689 (show_gdb_datadir): New function.
4690 (init_main): Update init of data-directory parameter.
4691
18848e28
GF
46922014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4693
4694 Import the "dirfd" gnulib module.
4695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4696 * gnulib/aclocal.m4: Update.
4697 * gnulib/config.in: Update.
4698 * gnulib/configure: Update.
4699 * gnulib/import/Makefile.am: Update.
4700 * gnulib/import/Makefile.in: Update.
4701 * gnulib/import/dirfd.c: New.
4702 * gnulib/import/m4/dirfd.m4: New.
4703 * gnulib/import/m4/gnulib-cache.m4: Update.
4704 * gnulib/import/m4/gnulib-comp.m4: Update.
4705
95c64f92
YQ
47062014-05-16 Pierre Muller <muller@sourceware.org>
4707 Yao Qi <yao@codesourcery.com>
4708
4709 * valprint.c (print_wchar): Move the code on checking whether
4710 W is a printable wide char to the default branch of switch
4711 statement below. Call wchar_printable instead of gdb_iswprint.
4712
cac395ea
TM
47132014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4714
19679eca 4715 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4716 ldr.w and ldrd instructions.
4717
83655187
DE
47182014-05-15 Doug Evans <dje@google.com>
4719
4720 * dwarf2read.c (read_structure_type): Delete outdated comments.
4721
dd756689
TT
47222014-05-14 Tom Tromey <tromey@redhat.com>
4723
4724 * macrocmd.c (print_macro_definition): Reindent.
4725
75ddda77
DE
47262014-05-13 Doug Evans <xdje42@gmail.com>
4727
4728 * python/py-cmd.c (cmdpy_completer): Add comment.
4729 (completers): Make const.
4730
b0f16a3e
SM
47312014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4732
4733 * infrun.c (resume): Remove should_resume (unused). Move up
4734 declaration of resume_ptid.
4735
033c3379
TT
47362014-05-13 Tom Tromey <tromey@redhat.com>
4737
4738 * language.h (unop_type_check): Remove.
4739 (binop_type_check): Don't declare.
4740
9b44a3a5
AA
47412014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4742
4743 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4744 call to regcache_raw_collect.
4745
303a33fa
SM
47462014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4747
4748 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4749 mi_console->quote as the quoting character.
4750
196100a0
SM
47512014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4752
4753 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4754
f989a1c8
TT
47552014-04-29 Tom Tromey <tromey@redhat.com>
4756
4757 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4758 "show debug varobj".
4759
9404b58f
KM
47602014-05-07 Kyle McMartin <kyle@redhat.com>
4761
4762 Pushed by Joel Brobecker <brobecker@adacore.com>.
4763 * aarch64-tdep.c (aarch64_software_single_step): New function.
4764 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4765 with aarch64_software_single_step.
4766
5e49ba57
JB
47672014-05-05 Joel Brobecker <brobecker@adacore.com>
4768
4769 GDB 7.7.1 released.
4770
c888a17d
KS
47712014-05-05 Keith Seitz <keiths@redhat.com>
4772
4773 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4774 variable or history value is successfully parsed.
4775
290a839c
YQ
47762014-05-05 Yao Qi <yao@codesourcery.com>
4777 Pedro Alves <palves@redhat.com>
4778
4779 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4780 address of blocks that intersects the requested range. Trim
4781 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4782 sections.
4783 * ctf.c (ctf_xfer_partial): Likewise.
4784
91256dc2
YQ
47852014-05-05 Yao Qi <yao@codesourcery.com>
4786
4787 * printcmd.c (display_command): Remove the check to
4788 target_has_execution.
4789
07284463
MK
47902014-05-03 Mark Kettenis <kettenis@gnu.org>
4791
4792 * ppcobsd-nat.c: Include "obsd-nat.h".
4793 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4794 add_target.
4795 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4796
30a1e6cc
SDJ
47972014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4798
4799 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4800 and 16-bit signed and unsigned arguments. Update comment.
4801 (stap_parse_probe_arguments): Extend code to handle such
4802 arguments. Use warning instead of complaint to notify about
4803 unrecognized bitness.
4804
f33da99a
SDJ
48052014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4806
4807 PR breakpoints/16889
4808 * stap-probe.c (stap_parse_probe_arguments): Simplify
4809 check for non-prefixed probes (i.e., probes whose
4810 arguments do not start with "N@"). Always set the
4811 argument type to a sane value.
4812
95cf3b38
DT
48132014-05-01 David Taylor <dtaylor@emc.com>
4814
4815 * remote.c (compare_sections_command): Add -r option to compare
4816 all loadable read-only sections.
4817
1cfdf534
SC
48182014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4819
4820 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4821 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4822 Update all callers.
4823 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4824 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4825 Remove unused CORE_ADDR argument. Update all callers.
4826
ca4f7f8b
PA
48272014-04-29 Pedro Alves <palves@redhat.com>
4828
4829 * remote.c (struct packet_config) <detect>: Extend comment.
4830 (add_packet_config_cmd): Don't set the config's detect or support
4831 fields here.
4832 (init_all_packet_configs): Also initialize the config's 'detect'
4833 field.
4834 (reset_all_packet_configs_support): New function.
4835 (remote_open_1): Call reset_all_packet_configs_support instead of
4836 init_all_packet_configs.
4837 (_initialize_remote): Initialize all packet configs. Assert that
4838 all packets have an associated command, except a few known
4839 outliers.
4840
11c1ba78
JB
48412014-04-28 Joel Brobecker <brobecker@adacore.com>
4842
4843 * dwarf2read.c (read_subrange_type): Handle dynamic
4844 DW_AT_lower_bound attributes.
4845
8739bc53
JB
48462014-04-28 Joel Brobecker <brobecker@adacore.com>
4847
4848 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4849 dynamic bounds before computing its upper bound.
4850 (ada_discrete_type_low_bound): Same as above with the lower bound.
4851
6f8a3220
JB
48522014-04-28 Joel Brobecker <brobecker@adacore.com>
4853
4854 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4855 range types. Adjust the array handling implementation to
4856 take advantage of this change.
4857 (resolve_dynamic_range): New function, mostly extracted from
4858 resolve_dynamic_bounds.
4859 (resolve_dynamic_array): New function, mostly extracted from
4860 resolve_dynamic_bounds.
4861 (resolve_dynamic_bounds): Delete.
4862 (resolve_dynamic_type): Reimplement. Add handling of
4863 TYPE_CODE_RANGE types.
4864
4d072ce4
JB
48652014-04-28 Joel Brobecker <brobecker@adacore.com>
4866
4867 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4868 handling of parallel ___XA types.
4869
52865325
JB
48702014-04-28 Joel Brobecker <brobecker@adacore.com>
4871
4872 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4873 unnecessary second call to static_unwrap_type.
4874
433e77fa
HZ
48752014-04-27 Hui Zhu <hui@codesourcery.com>
4876
4877 * stack.c (print_frame_info): Call do_gdb_disassembly with
4878 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4879
b51a69ee
DE
48802014-04-26 Doug Evans <xdje42@gmail.com>
4881
4882 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4883
7ae1a6a6
PA
48842014-04-25 Pedro Alves <palves@redhat.com>
4885
4886 PR server/16255
4887 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4888 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4889 and newline from built string.
4890 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4891 (linux_ptrace_attach_fail_reason): ... this.
4892 * linux-nat.c (linux_nat_attach): Adjust to use
4893 linux_ptrace_attach_fail_reason.
4894
4082afcc
PA
48952014-04-25 Pedro Alves <palves@redhat.com>
4896
4897 * remote.c (struct remote_state): Remove multi_process_aware,
4898 non_stop_aware, cond_tracepoints, cond_breakpoints,
4899 breakpoint_commands, fast_tracepoints, static_tracepoints,
4900 install_in_trace, disconnected_tracing,
4901 enable_disable_tracepoints, string_tracing, and
4902 augmented_libraries_svr4_read fields.
4903 (remote_multi_process_p): Move further below in the file.
4904 (struct packet_config): Add comments.
4905 (update_packet_config): Delete function.
4906 (show_packet_config_cmd): Use packet_config_support.
4907 (add_packet_config_cmd): Use NULL as set callback.
4908 (packet_ok): "set remote foo-packet"-style commands no longer
4909 change config->supported -- adjust.
4910 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4911 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4912 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4913 (PACKET_QNonStop, PACKET_multiprocess_feature)
4914 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4915 (PACKET_DisconnectedTracing_feature)
4916 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4917 (set_remote_protocol_packet_cmd): Delete function.
4918 (packet_config_support, packet_support): New functions.
4919 (set_remote_protocol_Z_packet_cmd): Don't call
4920 update_packet_config.
4921 (remote_query_attached, remote_pass_signals)
4922 (remote_program_signals, remote_threads_info)
4923 (remote_threads_extra_info, remote_start_remote): Use
4924 packet_support.
4925 (remote_start_remote): Use packet_config_support and
4926 packet_support.
4927 (init_all_packet_configs): Set all packets to unknown support,
4928 instead of calling update_packet_config.
4929 (remote_check_symbols): Use packet_support.
4930 (remote_supported_packet): Unconditionally set the packet config's
4931 support status.
4932 (remote_multi_process_feature, remote_non_stop_feature)
4933 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4934 (remote_breakpoint_commands_feature)
4935 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4936 (remote_install_in_trace_feature)
4937 (remote_disconnected_tracing_feature)
4938 (remote_enable_disable_tracepoint_feature)
4939 (remote_string_tracing_feature)
4940 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4941 (remote_protocol_features): Adjust to use remote_supported_packet
4942 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4943 "ConditionalTracepoints", "ConditionalBreakpoints",
4944 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4945 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4946 "EnableDisableTracepoints", and "tracenz".
4947 (remote_query_supported): Use packet_support.
4948 (remote_open_1): Adjust.
4949 (extended_remote_attach_1): Use packet_support. Switch on the
4950 result of packet_ok instead of checking whether the packet ended
4951 up disabled.
4952 (remote_vcont_resume): Use packet_support.
4953 (remote_resume, remote_stop_ns, fetch_register_using_p)
4954 (remote_prepare_to_store, store_register_using_P)
4955 (check_binary_download, remote_write_bytes): Use packet_support.
4956 (remote_vkill): Use packet_support. Switch on the result of
4957 packet_ok instead of checking whether the packet ended up
4958 disabled.
4959 (extended_remote_supports_disable_randomization): Use
4960 packet_support.
4961 (extended_remote_run): Switch on the result of packet_ok instead
4962 of checking whether the packet ended up disabled.
4963 (remote_insert_breakpoint, remote_remove_breakpoint)
4964 (remote_insert_watchpoint, remote_remove_watchpoint)
4965 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4966 packet_support.
4967 (remote_search_memory): Use packet_config_support.
4968 (remote_get_thread_local_address, remote_get_tib_address)
4969 (remote_hostio_send_command, remote_can_execute_reverse): Use
4970 packet_support.
4971 (remote_supports_cond_tracepoints)
4972 (remote_supports_cond_breakpoints)
4973 (remote_supports_fast_tracepoints)
4974 (remote_supports_static_tracepoints)
4975 (remote_supports_install_in_trace)
4976 (remote_supports_enable_disable_tracepoint)
4977 (remote_supports_string_tracing)
4978 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4979 the packet config says the feature is enabled or disabled.
4980 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4981 (remote_get_trace_status): Use packet_support.
4982 (remote_set_disconnected_tracing): Adjust to check whether the
4983 feature is enabled with packet_support.
4984 (remote_set_trace_buffer_size, remote_use_agent)
4985 (remote_can_use_agent, remote_supports_btrace): Use
4986 packet_support.
4987 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4988 Use packet_config_support.
4989 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4990 the packet config says the feature is enabled or disabled.
4991 (set_range_stepping): Use packet_support.
4992
bdb52a22
TT
49932014-04-25 Tom Tromey <tromey@redhat.com>
4994
4995 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4996 argument.
4997
e9475ead
SA
49982014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4999
5000 * NEWS: Mention support for C99 variable length arrays.
5001
82eacd52
JB
50022014-04-24 Joel Brobecker <brobecker@adacore.com>
5003
5004 * ada-lang.c (standard_exc): Expand introductory comment.
5005
01f9f808
MS
50062014-04-24 Michael Sturm <michael.sturm@mintel.com>
5007 Walfred Tedeschi <walfred.tedeschi@intel.com>
5008
5009 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5010 AVX512 registers.
5011 (amd64_linux_read_description): Add code to handle AVX512 xstate
5012 mask and return respective tdesc.
5013 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5014 and features/i386/x32-avx512-linux.c.
5015 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5016 (amd64_linux_core_read_description): Add code to handle AVX512
5017 xstate mask and return respective tdesc.
5018 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5019 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5020 calculation.
5021 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5022 (tdesc_amd64_avx512_linux): New prototype.
5023 (tdesc_x32_avx512_linux): Likewise.
5024 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5025 features/i386/x32-avx512.c.
5026 (amd64_ymm_avx512_names): New register names for pseudo
5027 registers YMM16-31.
5028 (amd64_ymmh_avx512_names): New register names for raw registers
5029 YMMH16-31.
5030 (amd64_k_names): New register names for K registers.
5031 (amd64_zmmh_names): New register names for ZMM raw registers.
5032 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5033 (amd64_xmm_avx512_names): New register names for XMM16-31
5034 registers.
5035 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5036 registers.
5037 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5038 if feature is present.
5039 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5040 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5041 (AMD64_NUM_REGS): Adjust to new number of registers.
5042 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5043 registers supplied via XSTATE by AVX512 registers.
5044 (i386_linux_read_description): Add case for AVX512.
5045 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5046 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5047 (i386_linux_core_read_description): Add case for AVX512.
5048 (i386_linux_init_abi): Install supported register note section
5049 for AVX512.
5050 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5051 AVX512.
5052 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5053 registers to be number of zmm7h + 1.
5054 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5055 * i386-tdep.c: Include features/i386/i386-avx512.c.
5056 (i386_zmm_names): Add ZMM pseudo register names array.
5057 (i386_zmmh_names): Add ZMM raw register names array.
5058 (i386_k_names): Add K raw register names array.
5059 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5060 registers. AVX512 has 16 more ZMM registers than there are YMM
5061 registers.
5062 (i386_zmmh_regnum_p): Add function to look up register number of
5063 ZMM raw registers.
5064 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5065 (i386_k_regnum_p): Likewise for K raw registers.
5066 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5067 registers added by AVX512.
5068 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5069 registers added by AVX512.
5070 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5071 added by AVX512.
5072 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5073 (i386_pseudo_register_name): Add ZMM pseudo registers.
5074 (i386_zmm_type): Construct and return vector registers type for ZMM
5075 registers.
5076 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5077 ZMM0-31 pseudo registers and K registers.
5078 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5079 and YMM16-31 registers from register cache.
5080 (i386_pseudo_register_write): Add code to write K, ZMM and
5081 YMM16-31 registers.
5082 (i386_register_reggroup_p): Add code to include/exclude AVX512
5083 registers in/from respective register groups.
5084 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5085 registers if feature is present in xcr0.
5086 (i386_gdbarch_init): Add code to initialize AVX512 feature
5087 variables in tdep structure, wire in pseudo registers and call
5088 initialize_tdesc_i386_avx512.
5089 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5090 variables.
5091 (i386_regnum): Add AVX512 registers.
5092 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5093 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5094 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5095 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5096 512 bits wide.
5097 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5098 (i386_ymm_avx512_regnum_p): Likewise.
5099 (i386_k_regnum_p): Likewise.
5100 (i386_zmm_regnum_p): Likewise.
5101 (i386_zmmh_regnum_p): Likewise.
5102 * i387-tdep.c : Update year in copyright notice.
5103 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5104 XSAVE buffer.
5105 (XSAVE_YMM_AVX512_ADDR): New macro.
5106 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5107 XSAVE buffer.
5108 (XSAVE_XMM_AVX512_ADDR): New macro.
5109 (xsave_avx512_k_offset): New table for K register offsets in
5110 XSAVE buffer.
5111 (XSAVE_AVX512_K_ADDR): New macro.
5112 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5113 in XSAVE buffer.
5114 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5115 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5116 buffer.
5117 (i387_collect_xsave): Add code to collect AVX512 registers from
5118 XSAVE buffer.
5119 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5120 of XMM16-31 registers.
5121 (I387_NUM_K_REGS): New define for number of K registers.
5122 (I387_K0_REGNUM): New define for K0 register number.
5123 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5124 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5125 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5126 registers.
5127 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5128 (I387_XMM16_REGNUM): New define for XMM16 register number.
5129 (I387_YMM0_REGNUM): New define for YMM0 register number.
5130 (I387_KEND_REGNUM): New define for last K register number.
5131 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5132 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5133 number.
5134 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5135 number.
5136 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5137 size.
5138 * features/Makefile: Add AVX512 related files.
5139 * features/i386/32bit-avx512.xml: New file.
5140 * features/i386/64bit-avx512.xml: Likewise.
5141 * features/i386/amd64-avx512-linux.c: Likewise.
5142 * features/i386/amd64-avx512-linux.xml: Likewise.
5143 * features/i386/amd64-avx512.c: Likewise.
5144 * features/i386/amd64-avx512.xml: Likewise.
5145 * features/i386/i386-avx512-linux.c: Likewise.
5146 * features/i386/i386-avx512-linux.xml: Likewise.
5147 * features/i386/i386-avx512.c: Likewise.
5148 * features/i386/i386-avx512.xml: Likewise.
5149 * features/i386/x32-avx512-linux.c: Likewise.
5150 * features/i386/x32-avx512-linux.xml: Likewise.
5151 * features/i386/x32-avx512.c: Likewise.
5152 * features/i386/x32-avx512.xml: Likewise.
5153 * regformats/i386/amd64-avx512-linux.dat: New file.
5154 * regformats/i386/amd64-avx512.dat: Likewise.
5155 * regformats/i386/i386-avx512-linux.dat: Likewise.
5156 * regformats/i386/i386-avx512.dat: Likewise.
5157 * regformats/i386/x32-avx512-linux.dat: Likewise.
5158 * regformats/i386/x32-avx512.dat: Likewise.
5159 * NEWS: Add note about new support for AVX512.
5160
5161
08351840
PA
51622014-04-23 Pedro Alves <palves@redhat.com>
5163
5164 * breakpoint.c (insert_bp_location): Tolerate errors if the
5165 breakpoint is set in a user-loaded objfile.
5166 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5167 location is marked shlib_disabled. If the breakpoint is set in a
5168 user-loaded objfile is a GDB-side memory breakpoint, validate it
5169 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5170 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5171 flag.
5172 * mem-break.c (memory_validate_breakpoint): New function.
5173 * objfiles.c (userloaded_objfile_contains_address_p): New
5174 function.
5175 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5176 * target.h (memory_validate_breakpoint): New declaration.
5177
076855f9
PA
51782014-04-23 Pedro Alves <palves@redhat.com>
5179
5180 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5181 the breakpoint is set in a shared library, only suppress
5182 errors for software breakpoints, not hardware breakpoints.
5183
483805cf
PA
51842014-04-22 Pedro Alves <palves@redhat.com>
5185
5186 * infrun.c (schedlock_applies): New function, factored out from
5187 find_thread_needs_step_over.
5188 (find_thread_needs_step_over): Use it.
5189 (switch_back_to_stepped_thread): Always clear trap_expected if the
5190 step over is finished. Return early if scheduler locking applies.
5191 Look for the stepping thread and a potential step-over thread with
5192 a single loop.
5193 (currently_stepping_or_nexting_callback): Delete.
5194
a75fef0e
NC
51952014-04-22 Nick Clifton <nickc@redhat.com>
5196
5197 * NEWS: Mention that ARM sim now supports tracing.
5198
48b6e87e
YQ
51992014-04-22 Yao Qi <yao@codesourcery.com>
5200
5201 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5202 to ...
5203 * tracefile.c (tracefile_fetch_registers): ... it. New
5204 function.
5205 * tracefile.h (tracefile_fetch_registers): Declare.
5206 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5207 tracefile_fetch_registers.
5208
17617f2d
EZ
52092014-04-19 Eli Zaretskii <eliz@gnu.org>
5210
5211 PR gdb/14018
5212 * windows-nat.c (thread_rec): Don't display a warning when
5213 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5214 fails for any reason, set th->suspended to -1, so that we don't
5215 try to resume such a thread. Also, don't return NULL in these
5216 cases, to avoid completely ruin the session due to "PC register is
5217 not available" error.
5218 (do_windows_fetch_inferior_registers): Check errors in
5219 GetThreadContext call.
5220 (windows_continue): Accept an additional argument KILLED; if not
5221 zero, ignore errors in the SetThreadContext call, since the
5222 inferior was killed and is shutting down.
5223 (windows_resume, get_windows_debug_event)
5224 (windows_create_inferior, windows_mourn_inferior)
5225 (windows_kill_inferior): All callers of windows_continue changed
5226 to adjust to its new calling sequence.
5227
5723a6fd
YQ
52282014-04-19 Yao Qi <yao@codesourcery.com>
5229
5230 * ctf.c (ctf_open): Call post_create_inferior.
5231
614d5099
YQ
52322014-04-19 Yao Qi <yao@codesourcery.com>
5233
5234 * ctf.c (handle_id): New static variable.
5235 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5236 value. Get the declaration of event "register" and get length
5237 of field "contents".
5238
dac3e710
YQ
52392014-04-19 Yao Qi <yao@codesourcery.com>
5240
5241 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5242
2bca57ba
SC
52432014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5244
5245 * valops.c (oload_method_static): Remove unnecessary argument
5246 METHOD. Update all callers.
5247
51d48146
PA
52482014-04-18 Pedro alves <palves@redhat.com>
5249 Tom Tromey <tromey@redhat.com>
5250
5251 PR backtrace/15558
5252 * frame.c (get_prev_frame_1): Rename to ...
5253 (get_prev_frame_always): ... this, and make extern. Adjust.
5254 (skip_artificial_frames): Use get_prev_frame_always.
5255 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5256 (get_frame_unwind_stop_reason): Adjust to rename.
5257 * frame.h (get_prev_frame_always): Declare.
5258 * inline-frame.c: Include frame.h.
5259 (inline_frame_this_id): Use get_prev_frame_always.
5260
1bdad2e0
TG
52612014-04-18 Tristan Gingold <gingold@adacore.com>
5262
5263 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5264 code by using bfd_mach_o_get_base_address.
5265
7ce16bd4
UW
52662014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5267
5268 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5269 (spu_ax_pseudo_register_collect): New function.
5270 (spu_ax_pseudo_register_push_stack): Likewise.
5271 (spu_dwarf_reg_to_regnum): Likewise.
5272 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5273
2ed3c037
UW
52742014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5275
5276 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5277 Replace FRAME argument with FRAME_ID.
5278 * gdbarch.c, gdbarch.h: Regenerate.
5279 * findvar.c (default_value_from_register): Add GDBARCH argument;
5280 replace FRAME by FRAME_ID. No longer call get_frame_id.
5281 (value_from_register): Update call to gdbarch_value_from_register.
5282 * value.h (default_value_from_register): Update prototype.
5283 * s390-linux-tdep.c (s390_value_from_register): Update interface
5284 and call to default_value_from_register.
5285 * spu-tdep.c (spu_value_from_register): Likewise.
5286
5287 * findvar.c (address_from_register): Remove TYPE argument.
5288 Do not call value_from_register; use gdbarch_value_from_register
5289 with null_frame_id instead.
5290 * value.h (address_from_register): Update prototype.
5291 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5292 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5293 address_from_register interface change.
5294
71e50e83
YQ
52952014-04-17 Yao Qi <yao@codesourcery.com>
5296
5297 * gdbtypes.h: Update comments to link to types and macros'
5298 definitions.
5299
7a23c549
SC
53002014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5301
5302 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5303
22869d73
KS
53042014-04-16 Keith Seitz <keiths@redhat.com>
5305
5306 PR gdb/15827
5307 * dwarf2read.c (skip_one_die): Check that all relative-offset
5308 sibling DIEs fall within range of the current reader's buffer.
5309 (read_partial_die): Likewise.
5310
c4f87ca6
KS
53112014-04-16 Keith Seitz <keiths@redhat.com>
5312
5313 PR c++/16597
5314 * cp-namespace.c (lookup_symbol_file): If the type name of
5315 `this' is NULL, return immediately.
5316
b50c8614
KS
53172014-04-14 Keith Seitz <keiths@redhat.com>
5318
5319 PR c++/16253
5320 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5321 from symbol_matches_domain in symtab.c. All local callers
5322 of symbol_matches_domain updated.
5323 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5324 search STRUCT_DOMAIN.
5325 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5326 independently. standard_lookup will do that automatically.
5327 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5328 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5329 (cp_lookup_symbol_in_namespace): Likewise.
5330 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5331 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5332 may return a STRUCT_DOMAIN match.
5333 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5334 * cp-support.c: Include language.h.
5335 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5336 VAR_DOMAIN.
5337 * psymtab.c (match_partial_symbol): Compare the requested
5338 domain with the symbol's domain directly.
5339 (lookup_partial_symbol): Likewise.
5340 * symtab.c (lookup_symbol_in_language): Explain when/why
5341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5343 appropriate languages.
5344 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5345 and moved to ada-lang.c
5346 (lookup_block_symbol): Explain that this function only returns
5347 symbol matching the requested DOMAIN.
5348 Compare the requested domain with the symbol's domain directly.
5349 (iterate_over_symbols): Compare the requested domain with the
5350 symbol's domain directly.
5351 * symtab.h (symbol_matches_domain): Remove.
5352
3d567982
TT
53532014-04-14 Tom Tromey <tromey@redhat.com>
5354
5355 PR c++/15246:
5356 * c-exp.y (type_aggregate_p): New function.
5357 (qualified_name, classify_inner_name): Use it.
5358 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5359 and TYPE_TARGET_TYPE of an enum type.
5360 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5361 an enum type.
5362 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5363 handle TYPE_DECLARED_CLASS.
5364 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5365 types.
5366 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5367 * valops.c (enum_constant_from_type): New function.
5368 (value_aggregate_elt): Use it.
5369 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5370 TYPE_CODE_ENUM.
5371
c848d642
TT
53722014-04-14 Tom Tromey <tromey@redhat.com>
5373
5374 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5375 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5376 const.
5377 * value.h (value_aggregate_elt): Update.
5378
0626fc76
TT
53792014-04-14 Tom Tromey <tromey@redhat.com>
5380
5381 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5382
5ecaaa66
SA
53832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5384
5385 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5386 (evaluate_subexp_standard): Pass noside argument.
5387 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5388 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5389 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5390 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5391 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5392
1612e0c0
SA
53932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5394
5395 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5396 points to a constant blob.
5397
c451ebe5
SA
53982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5399
5400 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5401 property and store it as the high bound and flag the range accordingly.
5402 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5403 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5404 * gdbtypes.h (enum range_flags): New enum.
5405 (struct range_bounds): Add flags member.
5406
1d42e4c4
SA
54072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5408
5409 * c-typeprint.c (c_type_print_varspec_suffix): Added
5410 check for not yet resolved high bound. If unresolved, print
5411 "variable length" string to the console instead of random
5412 length.
5413
9f1f738a
SA
54142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5415
5416 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5417 value.
5418 (ada_template_to_fixed_record_type_1): Likewise.
5419 (ada_to_fixed_type_1): Likewise.
5420 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5421 (cp_print_value): Likewise.
5422 * d-valprint.c (dynamic_array_type): Likewise.
5423 * findvar.c (address_of_variable): Likewise.
5424 * jv-valprint.c (java_value_print): Likewise.
5425 * valops.c (value_ind): Likewise.
5426 * value.c (coerce_ref): Likewise.
5427
3c8452d4
SA
54282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5429
5430 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5431 value and retrieve the dynamic type size.
5432
4ad88275
SA
54332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5434
5435 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5436 passed to sizeof is dynamic evaluate the argument to compute the length.
5437
80180f79
SA
54382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5439 Joel Brobecker <brobecker@adacore.com>
5440
5441 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5442 (dwarf2_evaluate_property): New function.
5443 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5444 * dwarf2read.c (attr_to_dynamic_prop): New function.
5445 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5446 attribute.
5447 * gdbtypes.c: Include dwarf2loc.h.
5448 (is_dynamic_type): New function.
5449 (resolve_dynamic_type): New function.
5450 (resolve_dynamic_bounds): New function.
5451 (get_type_length): New function.
5452 (check_typedef): Use get_type_length to compute type length.
5453 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5454 (TYPE_LOW_BOUND_KIND): New macro.
5455 (is_dynamic_type): New function prototype.
5456 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5457 to resolve dynamic properties of the type. Update comment.
5458 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5459
a1556843
RH
54602014-04-14 Richard Henderson <rth@redhat.com>
5461
5462 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5463
0be03e84
DE
54642014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5465 Doug Evans <xdje42@gmail.com>
5466
5467 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5468 dereference TYPE_CODE_REF values.
5469
6b662e19
JB
54702014-04-11 Joel Brobecker <brobecker@adacore.com>
5471
5472 Revert the following changes due to regressions:
5473
5474 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5475 (dwarf2_evaluate_property): New function.
5476 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5477 * dwarf2read.c (attr_to_dynamic_prop): New function.
5478 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5479 attribute.
5480 * gdbtypes.c: Include dwarf2loc.h.
5481 (is_dynamic_type): New function.
5482 (resolve_dynamic_type): New function.
5483 (resolve_dynamic_bounds): New function.
5484 (get_type_length): New function.
5485 (check_typedef): Use get_type_length to compute type length.
5486 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5487 (TYPE_LOW_BOUND_KIND): New macro.
5488 (is_dynamic_type): New function prototype.
5489 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5490 to resolve dynamic properties of the type. Update comment.
5491 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5492
5493 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5494 passed to sizeof is dynamic evaluate the argument to compute the length.
5495
5496 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5497 value and retrieve the dynamic type size.
5498
5499 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5500 (ada_template_to_fixed_record_type_1): Likewise.
5501 (ada_to_fixed_type_1): Likewise.
5502 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5503 (cp_print_value): Likewise.
5504 * d-valprint.c (dynamic_array_type): Likewise.
5505 * eval.c (evaluate_subexp_with_coercion): Likewise.
5506 * findvar.c (address_of_variable): Likewise.
5507 * jv-valprint.c (java_value_print): Likewise.
5508 * valops.c (value_ind): Likewise.
5509 * value.c (coerce_ref): Likewise.
5510
5511 * c-typeprint.c (c_type_print_varspec_suffix): Added
5512 check for not yet resolved high bound. If unresolved, print
5513 "variable length" string to the console instead of random
5514 length.
5515
5516 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5517 property and store it as the high bound and flag the range accordingly.
5518 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5519 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5520 * gdbtypes.h (enum range_flags): New enum.
5521 (struct range_bounds): Add flags member.
5522
5523 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5524 points to a constant blob.
5525
5526 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5527 (evaluate_subexp_standard): Pass noside argument.
5528 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5529 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5530 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5531 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5532 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5533
245a5f0b
KS
55342014-04-11 Keith Seitz <keiths@redhat.com>
5535
5536 PR c++/16675
5537 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5538 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5539 reference types.
5540
3bce8237
SA
55412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5542
5543 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5544 (evaluate_subexp_standard): Pass noside argument.
5545 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5546 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5547 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5548 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5549 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5550
92b09522
SA
55512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5552
5553 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5554 points to a constant blob.
5555
e1969afb
SA
55562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5557
5558 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5559 property and store it as the high bound and flag the range accordingly.
5560 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5561 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5562 * gdbtypes.h (enum range_flags): New enum.
5563 (struct range_bounds): Add flags member.
5564
b86138fb
SA
55652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5566
5567 * c-typeprint.c (c_type_print_varspec_suffix): Added
5568 check for not yet resolved high bound. If unresolved, print
5569 "variable length" string to the console instead of random
5570 length.
5571
bcd629a4
SA
55722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5573
5574 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5575 (ada_template_to_fixed_record_type_1): Likewise.
5576 (ada_to_fixed_type_1): Likewise.
5577 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5578 (cp_print_value): Likewise.
5579 * d-valprint.c (dynamic_array_type): Likewise.
5580 * eval.c (evaluate_subexp_with_coercion): Likewise.
5581 * findvar.c (address_of_variable): Likewise.
5582 * jv-valprint.c (java_value_print): Likewise.
5583 * valops.c (value_ind): Likewise.
5584 * value.c (coerce_ref): Likewise.
5585
04b19544
SA
55862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5587
5588 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5589 value and retrieve the dynamic type size.
5590
26cb189f
SA
55912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5592
5593 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5594 passed to sizeof is dynamic evaluate the argument to compute the length.
5595
37c1ab67
SA
55962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5597
5598 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5599 (dwarf2_evaluate_property): New function.
5600 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5601 * dwarf2read.c (attr_to_dynamic_prop): New function.
5602 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5603 attribute.
5604 * gdbtypes.c: Include dwarf2loc.h.
5605 (is_dynamic_type): New function.
5606 (resolve_dynamic_type): New function.
5607 (resolve_dynamic_bounds): New function.
5608 (get_type_length): New function.
5609 (check_typedef): Use get_type_length to compute type length.
5610 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5611 (TYPE_LOW_BOUND_KIND): New macro.
5612 (is_dynamic_type): New function prototype.
5613 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5614 to resolve dynamic properties of the type. Update comment.
5615 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5616
729efb13
SA
56172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5618
5619 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5620 declaring high/low bounds and change uses accordingly. Call
5621 create_range_type instead of create_static_range_type.
5622 * gdbtypes.c (create_range_type): New function.
5623 (create_range_type): Convert bounds into struct bound_prop and pass
5624 them to create_range_type.
5625 * gdbtypes.h (struct bound_prop): New struct.
5626 (create_range_type): New function prototype.
5627 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5628 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5629 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5630 part of the bound.
5631 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5632
0c9c3474
SA
56332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5634
5635 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5636 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5637 * ada-lang.c: All uses of create_range_type updated.
5638 * coffread.c: All uses of create_range_type updated.
5639 * dwarf2read.c: All uses of create_range_type updated.
5640 * f-exp.y: All uses of create_range_type updated.
5641 * m2-valprint.c: All uses of create_range_type updated.
5642 * mdebugread.c: All uses of create_range_type updated.
5643 * stabsread.c: All uses of create_range_type updated.
5644 * valops.c: All uses of create_range_type updated.
5645 * valprint.c: All uses of create_range_type updated.
5646
9d497a19
PA
56472014-04-10 Pedro Alves <palves@redhat.com>
5648
5649 * breakpoint.c (single_step_breakpoints)
5650 (single_step_gdbarch): Move up in the file.
5651 (one_breakpoint_xfer_memory): New function, factored out from ...
5652 (breakpoint_xfer_memory): ... here. Also process single-step
5653 breakpoints.
5654
15a9128a
TG
56552014-04-09 Tristan Gingold <gingold@adacore.com>
5656
5657 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5658 comments.
5659 (darwin_decode_exception_message): Free port only after use.
5660
9c97a070
PL
56612014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5662
5663 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5664 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5665 when setting the size of call_length.
5666
7af389b8
SC
56672014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5668
5669 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5670 dereference TYPE_CODE_REF values.
5671
86ad98c3
JB
56722014-04-07 Joel Brobecker <brobecker@adacore.com>
5673
5674 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5675 end of warning message.
5676
b0aeadb3
DE
56772014-04-03 Doug Evans <dje@google.com>
5678
5679 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5680 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5681
5979d6b6
AM
56822014-04-02 Alan Modra <amodra@gmail.com>
5683
5684 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5685 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5686 (struct symbol_file_add_from_memory_args): Add size field.
5687 (find_vdso_size): New function.
5688 (add_vsyscall_page): Attempt to find vdso size.
5689
0d60c288
DE
56902014-04-01 Doug Evans <dje@google.com>
5691
5692 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5693
a41f2563
TG
56942014-04-01 Tristan Gingold <gingold@adacore.com>
5695
5696 * darwin-nat.c (darwin_encode_reply): Add prototype.
5697 (darwin_decode_exception_message): Reply to unknown inferiors.
5698 (darwin_decode_message): Handle message by id. Ignore message
5699 to unknown inferior.
5700 (darwin_wait): Discard unknown messages, add debug trace.
5701
11a865c8
DE
57022014-03-31 Doug Evans <dje@google.com>
5703
5704 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5705 comp_dir_string.
5706
770e7fc7
DE
57072014-03-31 Doug Evans <dje@google.com>
5708
5709 New option "set print symbol-loading".
5710 * NEWS: Mention it.
5711 * solib.c (solib_read_symbols): Only print symbol loading messages
5712 if requested.
5713 (solib_add): If symbol loading is in "brief" mode, notify user
5714 symbols are being loaded.
5715 (reload_shared_libraries_1): Ditto.
5716 * symfile.c (print_symbol_loading_off): New static global.
5717 (print_symbol_loading_brief): New static global.
5718 (print_symbol_loading_full): New static global.
5719 (print_symbol_loading_enums): New static global.
5720 (print_symbol_loading): New static global.
5721 (print_symbol_loading_p): New function.
5722 (symbol_file_add_with_addrs): Only print symbol loading messages
5723 if requested.
5724 (_initialize_symfile): Register "print symbol-loading" set/show
5725 command.
5726 * symfile.h (print_symbol_loading_p): Declare.
5727
c32c64b7
DE
57282014-03-30 Doug Evans <xdje42@gmail.com>
5729
5730 * infrun.c (set_last_target_status): New function.
5731 (handle_inferior_event): Call it.
5732
7c0bc051
DE
57332014-03-30 Doug Evans <xdje42@gmail.com>
5734
5735 * inferior.h (enum stop_kind): Improve comment.
5736
8776cfe9
JB
57372014-03-28 Joel Brobecker <brobecker@adacore.com>
5738
5739 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5740 a reference, strip the reference layer before calling
5741 the lang_ops value_has_mutated callback.
5742
410a0ff2
SDJ
57432014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5744
5745 Remove some globals from our parser.
5746 * language.c (unk_lang_parser): Add "struct parser_state"
5747 argument.
5748 * language.h (struct language_defn) <la_parser>: Likewise.
5749 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5750 (initialize_expout): Add "struct parser_state" argument.
5751 Rewrite function to use the parser state.
5752 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5753 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5754 write_exp_elt_longcst, write_exp_elt_dblcst,
5755 write_exp_elt_decfloatcst, write_exp_elt_type,
5756 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5757 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5758 write_dollar_variable): Likewise.
5759 (parse_exp_in_context_1): Use parser state.
5760 (insert_type_address_space): Add "struct parser_state" argument.
5761 Use parser state.
5762 (increase_expout_size): New function.
5763 * parser-defs.h: Forward declare "struct language_defn" and
5764 "struct parser_state".
5765 (expout, expout_size, expout_ptr): Remove extern declarations.
5766 (parse_gdbarch, parse_language): Rewrite macro declarations to
5767 accept the parser state.
5768 (struct parser_state): New struct.
5769 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5770 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5771 write_exp_elt_decfloatcst, write_exp_elt_type,
5772 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5773 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5774 write_exp_msymbol, write_dollar_variable,
5775 mark_struct_expression, insert_type_address_space): Add "struct
5776 parser_state" argument.
5777 (increase_expout_size): New function.
5778 * utils.c (do_clear_parser_state): New function.
5779 (make_cleanup_clear_parser_state): Likewise.
5780 * utils.h (make_cleanup_clear_parser_state): New function
5781 prototype.
5782 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5783 Update calls to write_exp* in order to pass the parser state.
5784 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5785 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5786 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5787 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5788 * stap-probe.c (stap_parse_register_operand): Likewise.
5789 (stap_parse_single_operand): Likewise.
5790 (stap_parse_argument_1): Likewise.
5791 (stap_parse_argument): Use parser state.
5792 * stap-probe.h: Include "parser-defs.h".
5793 (struct stap_parse_info) <pstate>: New field.
5794 * c-exp.y (parse_type): Rewrite to use parser state.
5795 (yyparse): Redefine to c_parse_internal.
5796 (pstate): New global variable.
5797 (parse_number): Add "struct parser_state" argument.
5798 (write_destructor_name): Likewise.
5799 (type_exp): Update calls to write_exp* and similars in order to
5800 use parser state.
5801 (exp1, exp, variable, qualified_name, space_identifier,
5802 typename, typebase): Likewise.
5803 (write_destructor_name, parse_number, lex_one_token,
5804 classify_name, classify_inner_name, c_parse): Add "struct
5805 parser_state" argument. Update function to use parser state.
5806 * c-lang.h: Forward declare "struct parser_state".
5807 (c_parse): Add "struct parser_state" argument.
5808 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5809 (yyparse): Redefine macro to ada_parse_internal.
5810 (pstate): New variable.
5811 (write_int, write_object_renaming, write_var_or_type,
5812 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5813 type_int, type_long, type_long_long, type_float, type_double,
5814 type_long_double, type_char, type_boolean, type_system_address):
5815 Add "struct parser_state" argument.
5816 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5817 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5818 var_or_type, aggregate, aggregate_component_list,
5819 positional_list, others, component_group,
5820 component_associations): Update calls to write_exp* and similar
5821 functions in order to use parser state.
5822 (ada_parse, write_var_from_sym, write_int,
5823 write_exp_op_with_string, write_object_renaming,
5824 find_primitive_type, write_selectors, write_ambiguous_var,
5825 write_var_or_type, write_name_assoc, type_int, type_long,
5826 type_long_long, type_float, type_double, type_long_double,
5827 type_char, type_boolean, type_system_address): Add "struct
5828 parser_state" argument. Adjust function to use parser state.
5829 * ada-lang.c (parse): Likewise.
5830 * ada-lang.h: Forward declare "struct parser_state".
5831 (ada_parse): Add "struct parser_state" argument.
5832 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5833 calls to both functions.
5834 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5835 parser state.
5836 (yyparse): Redefine macro to f_parse_internal.
5837 (pstate): New variable.
5838 (parse_number): Add "struct parser_state" argument.
5839 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5840 and similars in order to use parser state.
5841 (parse_number): Adjust code to use parser state.
5842 (yylex): Likewise.
5843 (f_parse): New function.
5844 * f-lang.h: Forward declare "struct parser_state".
5845 (f_parse): Add "struct parser_state" argument.
5846 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5847 parser state.
5848 (yyparse): Redefine macro for java_parse_internal.
5849 (pstate): New variable.
5850 (push_expression_name, push_expression_name, insert_exp): Add
5851 "struct parser_state" argument.
5852 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5853 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5854 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5855 PostIncrementExpression, PostDecrementExpression,
5856 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5857 UnaryExpressionNotPlusMinus, CastExpression,
5858 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5859 RelationalExpression, EqualityExpression, AndExpression,
5860 ExclusiveOrExpression, InclusiveOrExpression,
5861 ConditionalAndExpression, ConditionalOrExpression,
5862 ConditionalExpression, Assignment, LeftHandSide): Update
5863 calls to write_exp* and similars in order to use parser state.
5864 (parse_number): Ajust code to use parser state.
5865 (yylex): Likewise.
5866 (java_parse): New function.
5867 (push_variable): Add "struct parser_state" argument. Adjust
5868 code to user parser state.
5869 (push_fieldnames, push_qualified_expression_name,
5870 push_expression_name, insert_exp): Likewise.
5871 * jv-lang.h: Forward declare "struct parser_state".
5872 (java_parse): Add "struct parser_state" argument.
5873 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5874 parser state.
5875 (yyparse): Redefine macro to m2_parse_internal.
5876 (pstate): New variable.
5877 (type_exp, exp, fblock, variable, type): Update calls to
5878 write_exp* and similars to use parser state.
5879 (yylex): Likewise.
5880 (m2_parse): New function.
5881 * m2-lang.h: Forward declare "struct parser_state".
5882 (m2_parse): Add "struct parser_state" argument.
5883 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5884 * objc-lang.h: Forward declare "struct parser_state".
5885 (end_msglist): Add "struct parser_state" argument.
5886 * p-exp.y (parse_type): Rewrite macro to use parser state.
5887 (yyparse): Redefine macro to pascal_parse_internal.
5888 (pstate): New variable.
5889 (parse_number): Add "struct parser_state" argument.
5890 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5891 write_exp* and similars in order to use parser state.
5892 (parse_number, yylex): Adjust code to use parser state.
5893 (pascal_parse): New function.
5894 * p-lang.h: Forward declare "struct parser_state".
5895 (pascal_parse): Add "struct parser_state" argument.
5896 * go-exp.y (parse_type): Rewrite macro to use parser state.
5897 (yyparse): Redefine macro to go_parse_internal.
5898 (pstate): New variable.
5899 (parse_number): Add "struct parser_state" argument.
5900 (type_exp, exp1, exp, variable, type): Update calls to
5901 write_exp* and similars in order to use parser state.
5902 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5903 to use parser state.
5904 (go_parse): Likewise.
5905 * go-lang.h: Forward declare "struct parser_state".
5906 (go_parse): Add "struct parser_state" argument.
5907
342587c4
DE
59082014-03-27 Doug Evans <dje@google.com>
5909
5910 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5911
33e80786
DE
59122014-03-27 Doug Evans <dje@google.com>
5913
5914 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5915 Remove argument abbrev_section. All callers updated.
5916
1dbab08b
DE
59172014-03-27 Doug Evans <dje@google.com>
5918
5919 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5920 addr_base, ranges_base.
5921
318d3177
KS
59222014-03-26 Keith Seitz <keiths@redhat.com>
5923
5924 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5925 types, not VAR_DOMAIN.
5926
1e54db15
SL
59272014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5928
5929 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5930 "ra" registers.
5931 * features/nios2-linux.c: Regenerated.
5932 * features/nios2.c: Regenerated.
5933
d3839ede
PA
59342014-03-25 Pedro Alves <palves@redhat.com>
5935
5936 * cli/cli-script.c (script_from_file): Force the interpreter to
5937 sync mode.
5938
7588d2ec
PL
59392014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5940
5941 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5942 small stack allocation.
5943
a6290449
TG
59442014-03-24 Tristan Gingold <gingold@adacore.com>
5945
5946 * darwin-nat.c (exc_server): Remove unused prototype.
5947 (darwin_dump_message): Correctly display data on x86_64.
5948 (darwin_encode_reply): Fix style.
5949 Add comments and fix indentation.
5950
31ae9d24 59512014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5952
5953 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5954
6339bfc4
DE
59552014-03-22 Doug Evans <xdje42@gmail.com>
5956
5957 * infcmd.c: Whitespace fixes.
5958 (interrupt_command): Merge two function comments into one.
5959
0a07590b
DE
59602014-03-22 Doug Evans <xdje42@gmail.com>
5961
5962 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5963 All uses updated.
5964
b55fbac4
YQ
59652014-03-22 Yao Qi <yao@codesourcery.com>
5966
5967 * remote.c (target_read_live_memory): Remove.
5968 (memory_xfer_live_readonly_partial): Rename it to
5969 remote_xfer_live_readonly_partial. Remove argument 'object'.
5970 All callers updated. Call remote_read_bytes_1
5971 instead of target_read_live_memory.
5972 * tracepoint.c (set_traceframe_number): Remove.
5973 (make_cleanup_restore_traceframe_number): Likewise .
5974 * tracepoint.h (set_traceframe_number): Remove declaration.
5975 (make_cleanup_restore_traceframe_number): Likewise.
5976
9217e74e
YQ
59772014-03-22 Yao Qi <yao@codesourcery.com>
5978
5979 * remote.c (remote_read_bytes): Move code on reading from the
5980 remote stub to ...
5981 (remote_read_bytes_1): ... here. New function.
5982
8acf9577
YQ
59832014-03-22 Yao Qi <yao@codesourcery.com>
5984
5985 * ctf.c (ctf_xfer_partial): Check the return value of
5986 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5987 return TARGET_XFER_UNAVAILABLE.
5988 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5989 * target.c (target_read_live_memory): Move it to remote.c.
5990 (memory_xfer_live_readonly_partial): Likewise.
5991 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5992 * remote.c (target_read_live_memory): Moved from target.c.
5993 (memory_xfer_live_readonly_partial): Likewise.
5994 (remote_read_bytes): Factored out from
5995 memory_xfer_partial_1.
5996
feef67ab
DE
59972014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5998
5999 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6000 NULL pointer.
6001
b65dc60b
PA
60022014-03-21 Pedro Alves <palves@redhat.com>
6003
6004 * infrun.c (normal_stop): Extend comment.
6005
b4ab256d
HZ
60062014-03-21 Hui Zhu <hui@codesourcery.com>
6007 Pedro Alves <palves@redhat.com>
6008
6009 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6010 static buffer.
6011 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6012 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6013 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6014
deba7593
MR
60152014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6016
6017 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6018 `z' formatted output modifier.
6019
1bff71c3
SDJ
60202014-03-20 Tom Tromey <tromey@redhat.com>
6021 Sergio Durigan Junior <sergiodj@redhat.com>
6022
6023 * probe.c (parse_probes): Turn assert into an ordinary error.
6024 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6025 exceptions when parsing probes. Rearrange the code for clarity.
6026
90e28950
TT
60272014-03-20 Tom Tromey <tromey@redhat.com>
6028
6029 PR gdb/14135
6030 * top.c (execute_command): Only dispatch events if the command
6031 started the target.
6032
beb460e8
PA
60332014-03-20 Tom Tromey <tromey@redhat.com>
6034
6035 PR cli/15718
6036 * infcall.c: Include event-top.h.
6037 (run_inferior_call): Call async_disable_stdin if needed.
6038
99619bea
PA
60392014-03-20 Pedro Alves <palves@redhat.com>
6040
6041 * infrun.c (prepare_to_proceed): Delete.
6042 (thread_still_needs_step_over): New function.
6043 (find_thread_needs_step_over): New function.
6044 (proceed): If the current thread needs a step-over, set its
6045 steping_over_breakpoint flag. Adjust to use
6046 find_thread_needs_step_over instead of prepare_to_proceed.
6047 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6048 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6049 breakpoint.
6050 (switch_back_to_stepped_thread): Step over breakpoints of all
6051 threads not the stepping thread, before switching back to the
6052 stepping thread.
6053
2adfaa28
PA
60542014-03-20 Pedro Alves <palves@redhat.com>
6055
6056 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6057 extern.
6058 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6059 * infrun.c (saved_singlestep_ptid)
6060 (stepping_past_singlestep_breakpoint): Delete.
6061 (resume): Remove stepping_past_singlestep_breakpoint handling.
6062 (proceed): Store the prev_pc of the stepping thread too.
6063 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6064 singlestep_pc.
6065 (enum infwait_states): Delete infwait_thread_hop_state.
6066 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6067 field.
6068 (handle_inferior_event): Adjust.
6069 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6070 handling and the thread-hop code. Before removing single-step
6071 breakpoints, check whether the thread hit a single-step breakpoint
6072 of another thread. If it did, the trap is not a random signal.
6073 (switch_back_to_stepped_thread): If the event thread hit a
6074 single-step breakpoint, unblock it before switching to the
6075 stepping thread. Handle the case of the stepped thread having
6076 advanced already.
6077 (keep_going): Handle the case of the current thread moving past a
6078 single-step breakpoint.
6079
31e77af2
PA
60802014-03-20 Pedro Alves <palves@redhat.com>
6081
6082 PR breakpoints/7143
6083 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6084 are being stepped over.
6085 (breakpoint_address_match): Make extern.
6086 * breakpoint.h (breakpoint_address_match): New declaration.
6087 * inferior.h (stepping_past_instruction_at): New declaration.
6088 * infrun.c (struct step_over_info): New type.
6089 (step_over_info): New global.
6090 (set_step_over_info, clear_step_over_info)
6091 (stepping_past_instruction_at): New functions.
6092 (handle_inferior_event): Clear the step-over info when
6093 trap_expected is cleared.
6094 (resume): Remove now stale comment.
6095 (clear_proceed_status): Clear step-over info.
6096 (proceed): Adjust step-over handling to set or clear the step-over
6097 info instead of removing all breakpoints.
6098 (handle_signal_stop): When setting up a thread-hop, don't remove
6099 breakpoints here.
6100 (stop_stepping): Clear step-over info.
6101 (keep_going): Adjust step-over handling to set or clear step-over
6102 info and then always inserting breakpoints, instead of removing
6103 all breakpoints when stepping over one.
6104
b9f437de
PA
61052014-03-20 Pedro Alves <palves@redhat.com>
6106
6107 * infrun.c (previous_inferior_ptid): Adjust comment.
6108 (deferred_step_ptid): Delete.
6109 (infrun_thread_ptid_changed, prepare_to_proceed)
6110 (init_wait_for_inferior): Adjust.
6111 (handle_signal_stop): Delete deferred_step_ptid handling.
6112
06c868a8
JK
61132014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6114
6115 PR gdb/15358
6116 * defs.h (sync_quit_force_run): New declaration.
6117 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6118 * event-top.c (async_sigterm_handler): New declaration.
6119 (async_sigterm_token): New variable.
6120 (async_init_signals): Create also async_sigterm_token.
6121 (async_sigterm_handler): New function.
6122 (sync_quit_force_run): New variable.
6123 (handle_sigterm): Replace quit_force call by other calls.
6124 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6125
dea80df0
MR
61262014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6127
6128 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6129 offset into SPE pseudo registers.
6130
0c7e1a46
PA
61312014-03-18 Pedro Alves <palves@redhat.com>
6132
6133 PR gdb/13860
6134 * inferior.h (print_stop_event): Declare.
6135 * infrun.c (print_stop_event): New, factored out from ...
6136 (normal_stop): ... this.
6137 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6138 of bpstat_print/print_stack_frame.
6139
9c1fcd01
TT
61402014-03-17 Tom Tromey <tromey@redhat.com>
6141
6142 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6143
11aa919a
PMR
61442014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6145
6146 * ada-lang.c (decode_constrained_packed_array): Perform a
6147 minimal coercion for reference with coerce_ref instead of
6148 ada_coerce_ref.
6149
d4ccb5e0
TG
61502014-03-17 Tristan Gingold <gingold@adacore.com>
6151
6152 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6153 (darwin_solib_create_inferior_hook): Emit a warning if version
6154 is unhandled.
6155
49840f2a
UW
61562014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6157
6158 * python/py-value.c (get_field_flag): Cast flag_name argument to
6159 PyObject_GetAttrString to support Python 2.4.
6160
ed4123e5
JK
61612014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6162
6163 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6164 (Global Maintainers): Remove Jan Kratochvil.
6165
d6b64346
PA
61662014-03-14 Pedro Alves <palves@redhat.com>
6167
6168 * inferior.h (terminal_ours_for_output): Rename to ...
6169 (child_terminal_ours_for_output): ... this.
6170 (terminal_save_ours): Rename to ...
6171 (child_terminal_save_ours): ... this.
6172 (terminal_ours): Rename to ...
6173 (child_terminal_ours): ... this.
6174 (terminal_inferior): Rename to ...
6175 (child_terminal_inferior): ... this.
6176 (terminal_init_inferior): Rename to ...
6177 (child_terminal_init_inferior): ... this.
6178 (terminal_init_inferior_with_pgrp): Rename to ...
6179 (child_terminal_init_inferior_with_pgrp): ... this.
6180 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6181 (child_terminal_init_with_pgrp): ... this.
6182 (terminal_save_ours): Rename to ...
6183 (child_terminal_save_ours): ... this.
6184 (terminal_init_inferior): Rename to ...
6185 (child_terminal_init): ... this. Adjust.
6186 (terminal_inferior): Rename to ...
6187 (child_terminal_inferior): ... this.
6188 (terminal_ours_for_output): Rename to ...
6189 (child_terminal_ours_for_output): ... this. Adjust.
6190 (terminal_ours): Rename to ...
6191 (child_terminal_ours): ... this.
6192 (terminal_ours_1): Rename to ...
6193 (child_terminal_ours_1): ... this. Adjust.
6194 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6195 * windows-nat.c (do_initial_windows_stuff): Adjust.
6196 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6197 (gnu_terminal_init): ... this. Adjust.
6198 (gnu_target): Adjust.
6199 * inf-child.c (inf_child_target): Adjust.
6200
5a1e8c7a
DE
62012014-03-13 Doug Evans <xdje42@gmail.com>
6202
6203 PR guile/16612
6204 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6205 new eq?-hashtab.
6206
350e1a76
DE
62072014-03-13 Doug Evans <xdje42@gmail.com>
6208
6209 * value.c (record_latest_value): Call release_value_or_incref
6210 instead of release_value.
6211
a69900ae
PA
62122014-03-13 Pedro Alves <palves@redhat.com>
6213
6214 * procfs.c (procfs_target): Don't override to_shortname,
6215 to_longname or to_doc.
6216
5db9f0bd
PA
62172014-03-13 Pedro Alves <palves@redhat.com>
6218
6219 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6220 Unix in user visible strings.
6221
5e3a2c38
SS
62222014-03-12 Stan Shebs <stan@codesourcery.com>
6223
6224 * gdbtypes.h: Annotate comments for Doxygen, add a page
6225 block comment with some general info.
6226
8bc2fe48
PA
62272014-03-12 Pedro Alves <palves@redhat.com>
6228
6229 * infcmd.c (prepare_execution_command): New function, factored out
6230 from several execution commands.
6231 (run_command_1, continue_command, step_1, jump_command)
6232 (signal_command, until_command, advance_command, finish_command)
6233 (attach_command): Use prepare_execution_command.
6234
638c5f49
OJ
62352014-03-12 Omair Javaid <omair.javaid@linaro.org>
6236
6237 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6238 (MAX_BPTS): Define.
6239 (MAX_WPTS): Define.
6240 (struct arm_linux_thread_points): Removed.
6241 (struct arm_linux_process_info): New.
6242 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6243 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6244 (arm_linux_find_breakpoints_by_tid): Removed.
6245 (struct arch_lwp_info): New.
6246 (arm_linux_find_process_pid): New functions.
6247 (arm_linux_add_process): New functions.
6248 (arm_linux_process_info_get): New functions.
6249 (arm_linux_forget_process): New function.
6250 (arm_linux_get_debug_reg_state): New function.
6251 (struct update_registers_data): New.
6252 (update_registers_callback): New function.
6253 (arm_linux_insert_hw_breakpoint1): Updated.
6254 (arm_linux_remove_hw_breakpoint1): Updated.
6255 (arm_linux_insert_hw_breakpoint): Updated.
6256 (arm_linux_remove_hw_breakpoint): Updated.
6257 (arm_linux_insert_watchpoint): Updated.
6258 (arm_linux_remove_watchpoint): Updated.
6259 (arm_linux_new_thread): Updated.
6260 (arm_linux_prepare_to_resume): New function.
6261 (arm_linux_new_fork): New function.
6262 (_initialize_arm_linux_nat): Updated.
6263
6d03af93
PA
62642014-03-12 Pedro Alves <palves@redhat.com>
6265
6266 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6267
b3ccfe11
TT
62682014-03-12 Tom Tromey <tromey@redhat.com>
6269
6270 * inf-child.c (return_zero): New function.
6271 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6272 * aix-thread.c (aix_thread_inferior_created): New function.
6273 (aix_thread_attach): Remove.
6274 (init_aix_thread_ops): Don't set to_attach.
6275 (_initialize_aix_thread): Register inferior_created observer.
6276 * corelow.c (init_core_ops): Don't set to_attach or
6277 to_create_inferior.
6278 * exec.c (init_exec_ops): Don't set to_attach or
6279 to_create_inferior.
6280 * infcmd.c (run_command_1): Use find_run_target. Make direct
6281 target calls.
6282 (attach_command): Use find_attach_target. Make direct target
6283 calls.
6284 * record-btrace.c (init_record_btrace_ops): Don't set
6285 to_create_inferior.
6286 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6287 Remove.
6288 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6289 set to_create_inferior.
6290 * target.c (complete_target_initialization): Add assertion.
6291 (target_create_inferior): Remove.
6292 (find_default_attach, find_default_create_inferior): Remove.
6293 (find_attach_target, find_run_target): New functions.
6294 (find_default_is_async_p, find_default_can_async_p)
6295 (target_supports_non_stop, target_attach): Remove.
6296 (init_dummy_target): Don't set to_create_inferior or
6297 to_supports_non_stop.
6298 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6299 TARGET_DEFAULT_FUNC.
6300 <to_create_inferior>: Add comment.
6301 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6302 TARGET_DEFAULT_RETURN.
6303 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6304 (find_attach_target, find_run_target): Declare.
6305 (target_create_inferior): Remove.
6306 (target_has_execution_1): Update comment.
6307 (target_supports_non_stop): Remove.
6308 * target-delegates.c: Rebuild.
6309
91f83b02
PA
63102014-03-12 Pedro Alves <palves@redhat.com>
6311
6312 * inf-child.h: Update comment to not mention Unix.
6313
f1aea813
PA
63142014-03-12 Pedro Alves <palves@redhat.com>
6315
6316 * inf-child.c: Update top comment to not mention Unix. Add
6317 generic comment describing how this target is meant to be used.
6318 (inf_child_post_attach, inf_child_post_startup_inferior)
6319 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6320 Unix in comment.
6321
ee8e9165
PA
63222014-03-12 Pedro Alves <palves@redhat.com>
6323
6324 * nto-procfs.c: Include inf-child.h.
6325 (procfs_ops): Delete global.
6326 (procfs_can_run): Delete method.
6327 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6328 target pointer instead of referencing procfs_ops.
6329 (procfs_prepare_to_store): Delete.
6330 (init_procfs_ops): Delete function.
6331 (procfs_target): New function, based on init_procfs_ops, but
6332 inherit inf_child_target.
6333 (_initialize_procfs): Use procfs_target.
6334
51a9c8c5
PA
63352014-03-12 Pedro Alves <palves@redhat.com>
6336
6337 * windows-nat.c: Include inf-child.h.
6338 (windows_ops): Delete global.
6339 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6340 methods.
6341 (init_windows_ops): Delete function.
6342 (windows_target): New function, based on init_windows_ops, but
6343 inherit inf_child_target.
6344 (_initialize_windows_nat): Use windows_target. Install x86
6345 specific target methods here.
6346
c1966e26
DE
63472014-03-10 Doug Evans <xdje42@gmail.com>
6348
6349 * guile/guile.c (call_initialize_gdb_module): New function.
6350 (initialize_guile): Replace call to scm_init_guile with call to
6351 scm_with_guile.
6352
023db19c
JB
63532014-03-10 Joel Brobecker <brobecker@adacore.com>
6354
6355 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6356 in call to TYPE_CODE macro.
6357
5ec18f2b
JG
63582014-03-10 Jerome Guitton <guitton@adacore.com>
6359
8668be63
JB
6360 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6361 Resolve tagged types to full view.
5ec18f2b 6362
7d03f2eb
HZ
63632014-03-10 Hui Zhu <hui@codesourcery.com>
6364
6365 * target.h (target_insert_breakpoint): Remove "hardware" from its
6366 comments.
6367
c5164cbc
DE
63682014-03-07 Doug Evans <dje@google.com>
6369
6370 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6371
c4a3fee2
DE
63722014-03-07 Doug Evans <dje@google.com>
6373
6374 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6375 Remove unused local comp_dir_attr. Assert exactly one of
6376 stub_comp_unit_die, stub_comp_dir is non-NULL.
6377
3156469c
JB
63782014-03-07 Joel Brobecker <brobecker@adacore.com>
6379
6380 * target.h (complete_target_initialization, add_target):
6381 Add comment.
6382
c1a7b7c6
PA
63832014-03-07 Pedro Alves <palves@redhat.com>
6384
6385 * go32-nat.c: Include inf-child.h.
6386 (go32_ops): Delete global.
6387 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6388 Delete methods.
6389 (go32_create_inferior): Push the passed in target pointer instead
6390 of referencing go32_ops.
6391 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6392 (go32_target): New function, based on init_go32_ops, but inherit
6393 inf_child_target.
6394 (_initialize_go32_nat): Use go32_target. Move parts of
6395 init_go32_ops here.
6396
d3c1a85f
JB
63972014-03-06 Joel Brobecker <brobecker@adacore.com>
6398
6399 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6400 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6401 SYMBOL_VALUE_ADDRESS.
6402 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6403
5fa1d40e
YQ
64042014-03-06 Yao Qi <yao@codesourcery.com>
6405
6406 * breakpoint.c (get_tracepoint_by_number): Remove argument
6407 optional_p. All callers updated. Adjust comments. Update
6408 output message.
6409 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6410
0c13193f
YQ
64112014-03-06 Yao Qi <yao@codesourcery.com>
6412
6413 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6414 early if get_number returns zero. Use 'p' instead of 'args'.
6415
2217da06
YQ
64162014-03-06 Yao Qi <yao@codesourcery.com>
6417
6418 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6419 message.
6420
cc3da688
YQ
64212014-03-06 Yao Qi <yao@codesourcery.com>
6422
6423 PR breakpoints/16508
6424 * tracepoint.c (check_trace_running): New function.
6425 (trace_find_command): Move code to check_trace_running and
6426 call check_trace_running.
6427 (trace_find_pc_command): Likewise.
6428 (trace_find_tracepoint_command): Likewise.
6429 (trace_find_line_command): Likewise.
6430 (trace_find_range_command): Likewise.
6431 * tracepoint.h (check_trace_running): Likewise.
6432 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6433
6a5f844b
YQ
64342014-03-06 Yao Qi <yao@codesourcery.com>
6435
6436 * target.h (struct target_ops) <to_traceframe_info>: Use
6437 TARGET_DEFAULT_NORETURN (tcomplain ()).
6438 * target-delegates.c: Regenerated.
6439
0f26cec1
PA
64402014-03-05 Pedro Alves <palves@redhat.com>
6441
6442 PR gdb/16575
6443 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6444 void. Update comment.
6445 (dcache_xfer_memory): Delete.
6446 (dcache_read_memory_partial): New, based on the read bits of
6447 dcache_xfer_memory.
6448 (dcache_update): Add status parameter. Use ULONGEST for len, and
6449 adjust. Discard cache lines if the reason for the update was
6450 error.
6451 * dcache.h (dcache_xfer_memory): Delete declaration.
6452 (dcache_read_memory_partial): New declaration.
6453 (dcache_update): Update prototype.
6454 * target.c (raw_memory_xfer_partial): Update the dcache here.
6455 (memory_xfer_partial_1): Don't handle dcache writes here.
6456
b2b255bd
MF
64572014-03-05 Mike Frysinger <vapier@gentoo.org>
6458
6459 * remote-sim.c (gdbsim_load): Add const to prog.
6460
5d9cf8a4
TT
64612014-03-03 Tom Tromey <tromey@redhat.com>
6462
6463 * elfread.c (probe_key): Change to bfd_data.
6464 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6465 now per-BFD, not per-objfile.
6466 * stap-probe.c (stap_probe_destroy): Update comment.
6467 (handle_stap_probe): Allocate on the per-BFD obstack.
6468
729662a5
TT
64692014-03-03 Tom Tromey <tromey@redhat.com>
6470
6471 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6472 * breakpoint.c (create_longjmp_master_breakpoint): Use
6473 get_probe_address.
6474 (add_location_to_breakpoint, bkpt_probe_insert_location)
6475 (bkpt_probe_remove_location): Update.
6476 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6477 * elfread.c (elf_symfile_relocate_probe): Remove.
6478 (elf_probe_fns): Update.
6479 (insert_exception_resume_breakpoint): Change type of "probe"
6480 parameter to bound_probe.
6481 (check_exception_resume): Update.
6482 * objfiles.c (objfile_relocate1): Don't relocate probes.
6483 * probe.c (bound_probe_s): New typedef.
6484 (parse_probes): Use get_probe_address. Set sal's objfile.
6485 (find_probe_by_pc): Return a bound_probe.
6486 (collect_probes): Return a VEC(bound_probe_s).
6487 (compare_probes): Update.
6488 (gen_ui_out_table_header_info): Change type of "probes"
6489 parameter. Update.
6490 (info_probes_for_ops): Update.
6491 (get_probe_address): New function.
6492 (probe_safe_evaluate_at_pc): Update.
6493 * probe.h (struct probe_ops) <get_probe_address>: New field.
6494 <set_semaphore, clear_semaphore>: Add objfile parameter.
6495 (struct probe) <objfile>: Remove field.
6496 <arch>: New field.
6497 <address>: Update comment.
6498 (struct bound_probe): New.
6499 (find_probe_by_pc): Return a bound_probe.
6500 (get_probe_address): Declare.
6501 * solib-svr4.c (struct probe_and_action) <address>: New field.
6502 (hash_probe_and_action, equal_probe_and_action): Update.
6503 (register_solib_event_probe): Add address parameter.
6504 (solib_event_probe_at): Update.
6505 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6506 get_probe_address.
6507 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6508 (stap_get_probe_address): New function.
6509 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6510 (compile_probe_arg): Update.
6511 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6512 address.
6513 (handle_stap_probe): Don't relocate the probe.
6514 (stap_relocate): Remove.
6515 (stap_gen_info_probes_table_values): Update.
6516 (stap_probe_ops): Remove stap_relocate.
6517 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6518 (debug_sym_probe_fns): Update.
6519 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6520 * symtab.c (init_sal): Use memset.
6521 * symtab.h (struct symtab_and_line) <objfile>: New field.
6522 * tracepoint.c (start_tracing, stop_tracing): Update.
6523
ff887920
TT
65242014-03-03 Tom Tromey <tromey@redhat.com>
6525
6526 * probe.h (parse_probes, find_probe_by_pc)
6527 (find_probes_in_objfile): Fix comments.
6528
f0407826
DE
65292014-03-02 Doug Evans <xdje42@gmail.com>
6530
6531 * infrun.c (handle_signal_stop): Replace test for
6532 TARGET_WAITKIND_STOPPED with an assert.
6533
35e6a711
DE
65342014-03-02 Doug Evans <xdje42@gmail.com>
6535
6536 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6537
667f9d0b
DE
65382014-03-02 Doug Evans <xdje42@gmail.com>
6539
6540 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6541
dc92ace0
MK
65422014-03-01 Mark Kettenis <kettenis@gnu.org>
6543
6544 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6545
a900370f
MK
65462014-03-01 Mark Kettenis <kettenis@gnu.org>
6547
6548 * i386obsd-nat.c: Include "obsd-nat.h".
6549 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6550 add_target.
6551 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6552
b72a7981
MK
65532014-03-01 Mark Kettenis <kettenis@gnu.org>
6554
6555 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6556
96c70aba
MK
65572014-03-01 Mark Kettenis <kettenis@gnu.org>
6558
6559 * mips64obsd-nat.c: Include "obsd-nath".
6560 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6561 add_target
6562 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6563
874a80af
MK
65642014-03-01 Mark Kettenis <kettenis@gnu.org>
6565
8fd408f1
MK
6566 * amd64obsd-nat.c: Include "obsd-nat,h.
6567 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6568 add_target.
874a80af
MK
6569 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6570
9cf95373
SC
65712014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6572
6573 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6574 (find_overload_match): Update call to find_oload_champ.
6575 (find_oload_champ_namespace_loop): Likewise
6576
863e4da4
MK
65772014-02-28 Mark Kettenis <kettenis@gnu.org>
6578
025cac40
MK
6579 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6580
1ed586ce
MK
6581 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6582 * config/sparc/obsd64.mh: New file.
6583 * sparc64obsd-nat.c: New file.
6584
863e4da4
MK
6585 * obsd-nat.h: New file.
6586 * obsd-nat.c: New file.
6587 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6588 (ALLDEPFILES): Add obsd-nat.c.
6589
89de4da4
TT
65902014-02-28 Tom Tromey <tromey@redhat.com>
6591
6592 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6593 * cli-out.h (cli_ui_out_impl): Now const.
6594 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6595 * ui-out.c (struct ui_out) <impl>: Now const.
6596 (default_ui_out_impl): Now const.
6597 (ui_out_new): Make 'impl' parameter const.
6598 * ui-out.h (ui_out_new): Update.
6599
c725e7b6
MK
66002014-02-27 Mark Kettenis <kettenis@gnu.org>
6601
6602 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6603
670b46b3
MK
66042014-02-27 Mark Kettenis <kettenis@gnu.org>
6605
6606 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6607
c91550fc
JK
66082014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6609
6610 Additional PR 8882 fix.
6611 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6612
2fa0369e
PA
66132014-02-27 Pedro Alves <palves@redhat.com>
6614
6615 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6616 isn't set.
6617
d632a097
PA
66182014-02-27 Pedro Alves <palves@redhat.com>
6619
6620 PR 12702
6621 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6622 * nat/linux-waitpid.c: Include string.h.
6623 (status_to_str): Moved here and made extern.
6624 * nat/linux-waitpid.h (status_to_str): New declaration.
6625
2ebd5a35
HZ
66262014-02-27 Hui Zhu <hui@codesourcery.com>
6627
6628 PR 12702
6629 * infrun.c (ptid_match): Move ...
6630 * common/ptid.c (ptid_match): ... here.
6631 * inferior.h (ptid_match): Move ...
6632 * common/ptid.h (ptid_match): ... here.
6633
3cdd631f
MK
66342014-02-27 Mark Kettenis <kettenis@gnu.org>
6635
6636 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6637 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6638 gdb_target_obs.
6639
bee30a64
MK
66402014-02-27 Mark Kettenis <kettenis@gnu.org>
6641
6642 * obsd-tdep.c (obsd_auxv_parse): New function.
6643 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6644
6645 * gdbarch.sh (auxv_parse): New.
6646 * gdbarch.h: Regenerated.
6647 * gdbarch.c: Regenerated.
6648 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6649
7a5a839f
LC
66502014-02-26 Ludovic Courtès <ludo@gnu.org>
6651
6652 * guile/scm-value.c (gdbscm_history_append_x): New function.
6653 (value_functions): Add it.
6654
31aa7e4e
JB
66552014-02-27 Joel Brobecker <brobecker@adacore.com>
6656
6657 * dwarf2read.c (attr_value_as_address): New function.
6658 (dwarf2_find_base_address, read_call_site_scope): Use
6659 attr_value_as_address in place of DW_ADDR.
6660 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6661 the low and high addresses. Slight rework of the handling
6662 of the high pc being a constant form, and limit it to
6663 DWARF verson 4 or higher.
6664 (dwarf2_record_block_ranges): Likewise.
6665 (read_partial_die): Likewise.
6666 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6667
9b333ba3
TT
66682014-02-26 Tom Tromey <tromey@redhat.com>
6669
6670 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6671
5f6cac40
TT
66722014-02-26 Tom Tromey <tromey@redhat.com>
6673
6674 * elfread.c (elf_read_minimal_symbols): Return early if
6675 minimal symbols have already been read. Add "ei" parameter.
6676 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6677 * minsyms.c (prim_record_minimal_symbol_full): Update.
6678 * objfiles.h (struct objstats) <n_minsyms>: Move...
6679 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6680 * symmisc.c (print_objfile_statistics): Update.
6681
2750ef27
TT
66822014-02-26 Tom Tromey <tromey@redhat.com>
6683
6684 * elfread.c (elf_read_minimal_symbols): New function, from
6685 elf_symfile_read.
6686 (elf_symfile_read): Call it.
6687
34643a32
TT
66882014-02-26 Tom Tromey <tromey@redhat.com>
6689
6690 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6691 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6692 (lookup_minimal_symbol_solib_trampoline)
6693 (lookup_minimal_symbol_by_pc_section_1)
6694 (lookup_minimal_symbol_and_objfile): Update.
6695 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6696 Don't allocate a minimal symbol if minsyms have already been read.
6697 (build_minimal_symbol_hash_tables): Update.
6698 (install_minimal_symbols): Do nothing if minsyms already read.
6699 Use the per-BFD obstack.
6700 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6701 * objfiles.c (allocate_objfile): Call
6702 terminate_minimal_symbol_table later.
6703 (have_minimal_symbols): Update.
6704 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6705 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6706 Move from struct objfile.
6707 <minsyms_read>: New field.
6708 (struct objfile) <msymbols, minimal_symbol_count,
6709 msymbol_hash, msymbol_demangled_hash>: Move.
6710 (ALL_OBJFILE_MSYMBOLS): Update.
6711 * symfile.c (read_symbols): Set minsyms_read.
6712 (reread_symbols): Update.
6713 * symmisc.c (dump_objfile, dump_msymbols): Update.
6714
2273f0ac
TT
67152014-02-26 Tom Tromey <tromey@redhat.com>
6716
6717 * minsyms.c (msymbols_sort): Remove.
6718 * minsyms.h (msymbols_sort): Remove.
6719 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6720 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6721 * elfread.c (elf_symtab_read): Don't add section offsets.
6722 * xcoffread.c (record_minimal_symbol): Don't add section offset
6723 to minimal symbol address.
6724 * somread.c (text_offset, data_offset): Remove.
6725 (som_symtab_read): Don't add section offsets to minimal symbol
6726 addresses.
6727 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6728 Don't add section offsets to minimal symbols.
6729 * coffread.c (coff_symtab_read): Don't add section offsets
6730 to minimal symbol addresses.
6731 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6732 to minimal symbol addresses.
6733 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6734 section offset to minimal symbol addresses.
6735 * mdebugread.c (parse_partial_symbols): Don't add section
6736 offset to minimal symbol addresses.
6737 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6738 offset to minimal symbol addresses.
6739
77e371c0
TT
67402014-02-26 Tom Tromey <tromey@redhat.com>
6741
6742 * ada-lang.c (ada_main_name): Update.
6743 (ada_add_standard_exceptions): Update.
6744 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6745 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6746 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6747 * auxv.c (ld_so_xfer_auxv): Update.
6748 * avr-tdep.c (avr_scan_prologue): Update.
6749 * ax-gdb.c (gen_var_ref): Update.
6750 * blockframe.c (get_pc_function_start)
6751 (find_pc_partial_function_gnu_ifunc): Update.
6752 * breakpoint.c (create_overlay_event_breakpoint)
6753 (create_longjmp_master_breakpoint)
6754 (create_std_terminate_master_breakpoint)
6755 (create_exception_master_breakpoint): Update.
6756 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6757 * c-valprint.c (c_val_print): Update.
6758 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6759 * common/agent.c (agent_look_up_symbols): Update.
6760 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6761 * dwarf2loc.c (call_site_to_target_addr): Update.
6762 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6763 * elfread.c (elf_gnu_ifunc_record_cache)
6764 (elf_gnu_ifunc_resolve_by_got): Update.
6765 * findvar.c (default_read_var_value): Update.
6766 * frame.c (inside_main_func): Update.
6767 * frv-tdep.c (frv_frame_this_id): Update.
6768 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6769 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6770 Update.
6771 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6772 (hppa_hpux_find_dummy_bpaddr): Update.
6773 * hppa-tdep.c (hppa_symbol_address): Update.
6774 * infcmd.c (until_next_command): Update.
6775 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6776 Update.
6777 * linespec.c (minsym_found, add_minsym): Update.
6778 * linux-nat.c (get_signo): Update.
6779 * linux-thread-db.c (inferior_has_bug): Update.
6780 * m32c-tdep.c (m32c_return_value)
6781 (m32c_m16c_address_to_pointer): Update.
6782 * m32r-tdep.c (m32r_frame_this_id): Update.
6783 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6784 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6785 * maint.c (maintenance_translate_address): Update.
6786 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6787 (frob_address): New function.
6788 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6789 frob_address. Rename parameter to "pc_in".
6790 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6791 addresses.
6792 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6793 Update.
6794 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6795 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6796 * objc-lang.c (find_objc_msgsend): Update.
6797 * objfiles.c (objfile_relocate1): Update.
6798 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6799 * p-valprint.c (pascal_val_print): Update.
6800 * parse.c (write_exp_msymbol): Update.
6801 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6802 (ppc_elfv2_skip_entrypoint): Update.
6803 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6804 * printcmd.c (build_address_symbolic, msym_info)
6805 (address_info): Update.
6806 * proc-service.c (ps_pglobal_lookup): Update.
6807 * psymtab.c (find_pc_sect_psymtab_closer)
6808 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6809 Change msymbol parameter to bound_minimal_symbol.
6810 * ravenscar-thread.c (get_running_thread_id): Update.
6811 * remote.c (remote_check_symbols): Update.
6812 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6813 address.
6814 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6815 * solib-dsbt.c (lm_base): Update.
6816 * solib-frv.c (lm_base, main_got): Update.
6817 * solib-irix.c (locate_base): Update.
6818 * solib-som.c (som_solib_create_inferior_hook)
6819 (link_map_start): Update.
6820 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6821 * solib-svr4.c (elf_locate_base, enable_break): Update.
6822 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6823 (flush_ea_cache): Update.
6824 * stabsread.c (define_symbol, scan_file_globals): Update.
6825 * stack.c (find_frame_funname): Update.
6826 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6827 (debug_qf_find_pc_sect_symtab): Update.
6828 * symfile.c (simple_read_overlay_table)
6829 (simple_overlay_update): Update.
6830 * symfile.h (struct quick_symbol_functions)
6831 <find_pc_sect_symtab>: Change type of msymbol to
6832 bound_minimal_symbol.
6833 * symmisc.c (dump_msymbols): Update.
6834 * symtab.c (find_pc_sect_symtab_via_partial)
6835 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6836 (search_symbols, print_msymbol_info): Update.
6837 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6838 (MSYMBOL_VALUE_ADDRESS): Redefine.
6839 (BMSYMBOL_VALUE_ADDRESS): New macro.
6840 * tracepoint.c (scope_info): Update.
6841 * tui/tui-disasm.c (tui_find_disassembly_address)
6842 (tui_get_begin_asm_address): Update.
6843 * valops.c (find_function_in_inferior): Update.
6844 * value.c (value_static_field, value_fn_field): Update.
6845
3b7344d5
TT
68462014-02-26 Tom Tromey <tromey@redhat.com>
6847
6848 * ada-lang.c (ada_update_initial_language): Update.
6849 (ada_main_name, ada_has_this_exception_support): Update.
6850 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6851 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6852 * arm-tdep.c (arm_skip_stub): Update.
6853 * auxv.c (ld_so_xfer_auxv): Update.
6854 * avr-tdep.c (avr_scan_prologue): Update.
6855 * ax-gdb.c (gen_var_ref): Update.
6856 * breakpoint.c (struct breakpoint_objfile_data)
6857 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6858 type to bound_minimal_symbol.
6859 (create_overlay_event_breakpoint)
6860 (create_longjmp_master_breakpoint)
6861 (create_std_terminate_master_breakpoint)
6862 (create_exception_master_breakpoint): Update.
6863 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6864 * c-exp.y (classify_name): Update.
6865 * coffread.c (coff_symfile_read): Update.
6866 * common/agent.c (agent_look_up_symbols): Update.
6867 * d-lang.c (d_main_name): Update.
6868 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6869 * dec-thread.c (enable_dec_thread): Update.
6870 * dwarf2loc.c (call_site_to_target_addr): Update.
6871 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6872 * eval.c (evaluate_subexp_standard): Update.
6873 * findvar.c (struct minsym_lookup_data) <result>: Change type
6874 to bound_minimal_symbol.
6875 <objfile>: Remove.
6876 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6877 * frame.c (inside_main_func): Update.
6878 * frv-tdep.c (frv_frame_this_id): Update.
6879 * gcore.c (call_target_sbrk): Update.
6880 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6881 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6882 Update.
6883 * go-lang.c (go_main_name): Update.
6884 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6885 (hppa_hpux_find_import_stub_for_addr): Update.
6886 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6887 Update. Change return type.
6888 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6889 type.
6890 * jit.c (jit_breakpoint_re_set_internal): Update.
6891 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6892 Update.
6893 * linux-nat.c (get_signo): Update.
6894 * linux-thread-db.c (inferior_has_bug): Update
6895 * m32c-tdep.c (m32c_return_value)
6896 (m32c_m16c_address_to_pointer): Update.
6897 * m32r-tdep.c (m32r_frame_this_id): Update.
6898 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6899 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6900 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6901 lookup_minimal_symbol. Change return type.
6902 (lookup_minimal_symbol): Remove.
6903 (lookup_bound_minimal_symbol): Update.
6904 (lookup_minimal_symbol_text): Change return type.
6905 (lookup_minimal_symbol_solib_trampoline): Change return type.
6906 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6907 (lookup_minimal_symbol_solib_trampoline): Change return type.
6908 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6909 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6910 (value_nsstring, find_imps): Update.
6911 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6912 * p-lang.c (pascal_main_name): Update.
6913 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6914 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6915 * proc-service.c (ps_pglobal_lookup): Update.
6916 * ravenscar-thread.c (get_running_thread_msymbol): Change
6917 return type.
6918 (has_ravenscar_runtime, get_running_thread_id): Update.
6919 * remote.c (remote_check_symbols): Update.
6920 * sol-thread.c (ps_pglobal_lookup): Update.
6921 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6922 * solib-dsbt.c (lm_base): Update.
6923 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6924 Update.
6925 * solib-irix.c (locate_base): Update.
6926 * solib-som.c (som_solib_create_inferior_hook)
6927 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6928 Update.
6929 * solib-spu.c (spu_enable_break): Update.
6930 * solib-svr4.c (elf_locate_base, enable_break): Update.
6931 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6932 (flush_ea_cache): Update.
6933 * stabsread.c (define_symbol): Update.
6934 * symfile.c (simple_read_overlay_table): Update.
6935 * symtab.c (find_pc_sect_line): Update.
6936 * tracepoint.c (scope_info): Update.
6937 * tui-disasm.c (tui_get_begin_asm_address): Update.
6938 * value.c (value_static_field): Update.
6939
40c1a007
TT
69402014-02-26 Tom Tromey <tromey@redhat.com>
6941
6942 * minsyms.c (prim_record_minimal_symbol_full): Use
6943 SET_MSYMBOL_VALUE_ADDRESS.
6944 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6945 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6946 SET_MSYMBOL_VALUE_ADDRESS.
6947 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6948 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6949
efd66ac6
TT
69502014-02-26 Tom Tromey <tromey@redhat.com>
6951
6952 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6953 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6954 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6955 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6956 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6957 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6958 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6959 * ada-lang.c (ada_main_name): Update.
6960 (ada_lookup_simple_minsym): Update.
6961 (ada_make_symbol_completion_list): Update.
6962 (ada_add_standard_exceptions): Update.
6963 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6964 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6965 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6966 * arm-tdep.c (skip_prologue_function): Update.
6967 (arm_skip_stack_protector, arm_skip_stub): Update.
6968 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6969 (arm_wince_skip_main_prologue): Update.
6970 * auxv.c (ld_so_xfer_auxv): Update.
6971 * avr-tdep.c (avr_scan_prologue): Update.
6972 * ax-gdb.c (gen_var_ref): Update.
6973 * block.c (call_site_for_pc): Update.
6974 * blockframe.c (get_pc_function_start): Update.
6975 (find_pc_partial_function_gnu_ifunc): Update.
6976 * breakpoint.c (create_overlay_event_breakpoint): Update.
6977 (create_longjmp_master_breakpoint): Update.
6978 (create_std_terminate_master_breakpoint): Update.
6979 (create_exception_master_breakpoint): Update.
6980 (resolve_sal_pc): Update.
6981 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6982 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6983 Update.
6984 * c-valprint.c (c_val_print): Update.
6985 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6986 * coffread.c (coff_symfile_read): Update.
6987 * common/agent.c (agent_look_up_symbols): Update.
6988 * dbxread.c (find_stab_function_addr): Update.
6989 (end_psymtab): Update.
6990 * dwarf2loc.c (call_site_to_target_addr): Update.
6991 (func_verify_no_selftailcall): Update.
6992 (tailcall_dump): Update.
6993 (call_site_find_chain_1): Update.
6994 (dwarf_expr_reg_to_entry_parameter): Update.
6995 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6996 (elf_gnu_ifunc_resolve_by_got): Update.
6997 * f-valprint.c (info_common_command): Update.
6998 * findvar.c (read_var_value): Update.
6999 * frame.c (get_prev_frame_1): Update.
7000 (inside_main_func): Update.
7001 * frv-tdep.c (frv_skip_main_prologue): Update.
7002 (frv_frame_this_id): Update.
7003 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7004 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7005 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7006 (gnuv3_skip_trampoline): Update.
7007 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7008 (hppa64_hpux_in_solib_call_trampoline): Update.
7009 (hppa_hpux_skip_trampoline_code): Update.
7010 (hppa64_hpux_search_dummy_call_sequence): Update.
7011 (hppa_hpux_find_import_stub_for_addr): Update.
7012 (hppa_hpux_find_dummy_bpaddr): Update.
7013 * hppa-tdep.c (hppa_symbol_address)
7014 (hppa_lookup_stub_minimal_symbol): Update.
7015 * i386-tdep.c (i386_skip_main_prologue): Update.
7016 (i386_pe_skip_trampoline_code): Update.
7017 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7018 * infcall.c (get_function_name): Update.
7019 * infcmd.c (until_next_command): Update.
7020 * jit.c (jit_breakpoint_re_set_internal): Update.
7021 (jit_inferior_init): Update.
7022 * linespec.c (minsym_found): Update.
7023 (add_minsym): Update.
7024 * linux-fork.c (info_checkpoints_command): Update.
7025 * linux-nat.c (get_signo): Update.
7026 * linux-thread-db.c (inferior_has_bug): Update.
7027 * m32c-tdep.c (m32c_return_value): Update.
7028 (m32c_m16c_address_to_pointer): Update.
7029 (m32c_m16c_pointer_to_address): Update.
7030 * m32r-tdep.c (m32r_frame_this_id): Update.
7031 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7032 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7033 * maint.c (maintenance_translate_address): Update.
7034 * minsyms.c (add_minsym_to_hash_table): Update.
7035 (add_minsym_to_demangled_hash_table): Update.
7036 (msymbol_objfile): Update.
7037 (lookup_minimal_symbol): Update.
7038 (iterate_over_minimal_symbols): Update.
7039 (lookup_minimal_symbol_text): Update.
7040 (lookup_minimal_symbol_by_pc_name): Update.
7041 (lookup_minimal_symbol_solib_trampoline): Update.
7042 (lookup_minimal_symbol_by_pc_section_1): Update.
7043 (lookup_minimal_symbol_and_objfile): Update.
7044 (prim_record_minimal_symbol_full): Update.
7045 (compare_minimal_symbols): Update.
7046 (compact_minimal_symbols): Update.
7047 (build_minimal_symbol_hash_tables): Update.
7048 (install_minimal_symbols): Update.
7049 (terminate_minimal_symbol_table): Update.
7050 (find_solib_trampoline_target): Update.
7051 (minimal_symbol_upper_bound): Update.
7052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7053 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7054 (mips_skip_pic_trampoline_code): Update.
7055 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7056 * objc-lang.c (selectors_info): Update.
7057 (classes_info): Update.
7058 (find_methods): Update.
7059 (find_imps): Update.
7060 (find_objc_msgsend): Update.
7061 * objfiles.c (objfile_relocate1): Update.
7062 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7063 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7064 * p-valprint.c (pascal_val_print): Update.
7065 * parse.c (write_exp_msymbol): Update.
7066 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7067 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7068 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7069 * printcmd.c (build_address_symbolic): Update.
7070 (sym_info): Update.
7071 (address_info): Update.
7072 * proc-service.c (ps_pglobal_lookup): Update.
7073 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7074 (find_pc_sect_psymtab): Update.
7075 * python/py-framefilter.c (py_print_frame): Update.
7076 * ravenscar-thread.c (get_running_thread_id): Update.
7077 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7078 Update.
7079 * remote.c (remote_check_symbols): Update.
7080 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7081 (rs6000_skip_trampoline_code): Update.
7082 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7083 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7084 * solib-dsbt.c (lm_base): Update.
7085 * solib-frv.c (lm_base): Update.
7086 (main_got): Update.
7087 * solib-irix.c (locate_base): Update.
7088 * solib-som.c (som_solib_create_inferior_hook): Update.
7089 (som_solib_desire_dynamic_linker_symbols): Update.
7090 (link_map_start): Update.
7091 * solib-spu.c (spu_enable_break): Update.
7092 (ocl_enable_break): Update.
7093 * solib-svr4.c (elf_locate_base): Update.
7094 (enable_break): Update.
7095 * spu-tdep.c (spu_get_overlay_table): Update.
7096 (spu_catch_start): Update.
7097 (flush_ea_cache): Update.
7098 * stabsread.c (define_symbol): Update.
7099 (scan_file_globals): Update.
7100 * stack.c (find_frame_funname): Update.
7101 (frame_info): Update.
7102 * symfile.c (simple_read_overlay_table): Update.
7103 (simple_overlay_update): Update.
7104 * symmisc.c (dump_msymbols): Update.
7105 * symtab.c (fixup_section): Update.
7106 (find_pc_sect_line): Update.
7107 (skip_prologue_sal): Update.
7108 (search_symbols): Update.
7109 (print_msymbol_info): Update.
7110 (rbreak_command): Update.
7111 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7112 (completion_list_objc_symbol): Update.
7113 (default_make_symbol_completion_list_break_on): Update.
7114 * tracepoint.c (scope_info): Update.
7115 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7116 (tui_get_begin_asm_address): Update.
7117 * valops.c (find_function_in_inferior): Update.
7118 * value.c (value_static_field): Update.
7119 (value_fn_field): Update.
7120
50e65b17
TT
71212014-02-26 Tom Tromey <tromey@redhat.com>
7122
7123 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7124 bound minimal symbols. Move code that knows about minsym
7125 table layout...
7126 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7127 function.
7128 * minsyms.h (minimal_symbol_upper_bound): Declare.
7129 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7130 minimal_symbol_upper_bound.
7131
1b588015
JB
71322014-02-27 Joel Brobecker <brobecker@adacore.com>
7133
7134 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7135 Use the type's name if its basic type does not have a tag.
7136
dbb9c2b1
JB
71372014-02-27 Joel Brobecker <brobecker@adacore.com>
7138
7139 * dwarf2read.c (read_subrange_type): Add comment.
7140
55426c9d
JB
71412014-02-27 Joel Brobecker <brobecker@adacore.com>
7142
7143 * dwarf2read.c (update_enumeration_type_from_children): New
7144 function, mostly extracted from process_structure_scope.
7145 (read_enumeration_type): Call update_enumeration_type_from_children.
7146 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7147 and flag_flag_enum fields.
7148
f2fce0ca
PA
71492014-02-26 Pedro Alves <palves@redhat.com>
7150
7151 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7152 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7153 to_xfer_partial method.
7154
7a44e40e
PA
71552014-02-26 Pedro Alves <palves@redhat.com>
7156
7157 * target.c (complete_target_initialization): Don't install
7158 default_xfer_partial as to_xfer_partial hook.
7159 (nomemory): Delete.
7160 (update_current_target): Don't INHERIT nor de_fault
7161 deprecated_xfer_memory. Delete de_fault macro.
7162 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7163 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7164 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7165 field.
7166
bd265cd0
PA
71672014-02-26 Pedro Alves <palves@redhat.com>
7168
7169 * go32-nat.c (my_write_child): New function.
7170 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7171 (go32_xfer_partial): New function.
7172 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7173 Instead install a to_xfer_partial hook.
7174
9d46c4e5
PA
71752014-02-26 Pedro Alves <palves@redhat.com>
7176
7177 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7178 to_xfer_partial helper. Rewrite.
7179 (procfs_xfer_partial): New function.
7180 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7181 Install a to_xfer_partial hook.
7182
a1583b1f
PA
71832014-02-26 Pedro Alves <palves@redhat.com>
7184
7185 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7186 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7187 (m32r_xfer_partial): New function.
7188 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7189 Install a to_xfer_partial hook.
7190
6df1b29f
PA
71912014-02-26 Pedro Alves <palves@redhat.com>
7192
7193 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7194 helper.
7195 (mips_xfer_partial): New function.
7196 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7197 hook. Install a to_xfer_partial hook.
7198
dc53a7ad
JB
71992014-02-26 Joel Brobecker <brobecker@adacore.com>
7200
7201 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7202 * gdbtypes.c (create_array_type_with_stride): New function,
7203 renaming create_array_type, but with an added parameter
7204 called "bit_stride".
7205 (create_array_type): Re-implement using
7206 create_array_type_with_stride.
7207 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7208 and DW_AT_bit_stride attributes.
7209
12ab52e9
PA
72102014-02-26 Pedro Alves <palves@redhat.com>
7211
7212 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7213 task-specific breakpoints.
7214
d16461ae
PA
72152014-02-25 Pedro Alves <palves@redhat.com>
7216
7217 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7218 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7219
a8b16220
SS
72202014-02-25 Stan Shebs <stan@codesourcery.com>
7221
7222 * defs.h: Annotate comments for Doxygen.
7223
b9e795ee
TT
72242014-02-25 Tom Tromey <tromey@redhat.com>
7225
7226 * target.h (target_ignore): Don't declare.
7227 * target.c (target_ignore): Remove.
7228
849c862e
JK
72292014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7230
7231 PR gdb/16626
7232 * auto-load.c (auto_load_objfile_script_1): Change filename to
7233 debugfile.
7234
475109d8
JB
72352014-02-25 Joel Brobecker <brobecker@adacore.com>
7236
7237 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7238 documentation. Adjust prototype to match the target_ops
7239 to_xfer_partial method. Adjust implementation accordingly.
7240
e186c3bd
HZ
72412014-02-25 Hui Zhu <hui@codesourcery.com>
7242
7243 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7244 to_traceframe_info.
7245
6d451942
KB
72462014-02-25 Kevin Buettner <kevinb@redhat.com>
7247
041ab8b4 7248 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7249 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7250 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7251 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7252 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7253 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7254 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7255 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7256 New constants.
7257 (rl78_register_type): Use a data pointer type for SP and
7258 new pseudo registers mentioned above. Use a 16 bit integer
7259 type for all other register pairs.
7260 (rl78_register_name, rl78_g10_register_name): Update for
7261 new pseudo registers.
7262 (rl78_pseudo_register_read): Likewise.
7263 (rl78_pseudo_register_write): Likewise.
7264 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7265 to the newly added pseudo registers.
7266
eddf0bae
DE
72672014-02-24 Doug Evans <dje@google.com>
7268
7269 * value.c (record_latest_value): Fix comment.
7270 * printcmd.c (print_command_1): Remove code to handle -1 return from
7271 record_latest_value.
7272
e96027e0
PA
72732014-02-24 Pedro Alves <palves@redhat.com>
7274
7275 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7276 deprecated_xfer_memory hook.
7277 (procfs_xfer_partial): Call procfs_xfer_memory instead
7278 of the deprecated_xfer_memory target hook.
7279 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7280 helper.
7281
0837c976
YZ
72822014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7283
7284 * windows-nat.c (windows_xfer_shared_libraries): Return
7285 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7286 requested object is TARGET_OBJECT_LIBRARIES.
7287
bc113b4e
YQ
72882014-02-24 Yao Qi <yao@codesourcery.com>
7289
7290 * target.h (enum target_xfer_status)
7291 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7292 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7293 explicitly. New.
7294 * corefile.c (memory_error_message): User updated.
7295 * exec.c (section_table_read_available_memory): Likewise.
7296 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7297 * target.c (target_xfer_status_to_string): Likewise.
7298 (raw_memory_xfer_partial): Likewise.
7299 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7300 * valops.c (read_value_memory): Likewise.
7301 * exec.h: Update comments.
7302
01cb8804
YQ
73032014-02-24 Yao Qi <yao@codesourcery.com>
7304
7305 * target.c (target_xfer_status_to_string): Rename argument err
7306 to status.
7307 * target.h (target_xfer_status_to_string): Update declaration.
7308 Replace target_xfer_error_to_string with
7309 target_xfer_status_to_string in comment.
7310
93063aa6
YQ
73112014-02-24 Yao Qi <yao@codesourcery.com>
7312
7313 * mips-linux-nat.c (super_close): Update its type.
7314 (mips_linux_close): Pass 'self' to super_close.
7315
5c328c05
YQ
73162014-02-24 Yao Qi <yao@codesourcery.com>
7317
7318 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7319 * corefile.c (read_memory): Adjusted.
7320 * target.c (target_write_with_progress): Adjusted.
7321
f73023dd
YQ
73222014-02-23 Yao Qi <yao@codesourcery.com>
7323
7324 Revert two patches:
7325
7326 2013-10-25 Yao Qi <yao@codesourcery.com>
7327
7328 * remote.c (remote_traceframe_info): Return early if
7329 traceframe is not selected.
7330
7331 2013-07-19 Yao Qi <yao@codesourcery.com>
7332
7333 * target.c (update_current_target): Change the default action
7334 of 'to_traceframe_info' from tcomplain to return_zero.
7335 * target.h (struct target_ops) <to_traceframe_info>: Add more
7336 comments.
7337
5a2eb0ef
YQ
73382014-02-23 Yao Qi <yao@codesourcery.com>
7339
7340 * valops.c (read_value_memory): Rewrite it. Call
7341 target_xfer_partial in a loop.
7342 * exec.h (section_table_available_memory): Remove declaration.
7343 Move comments to ...
7344 * exec.c (section_table_available_memory): ... here. Make it
7345 static.
7346
1ee79381
YQ
73472014-02-23 Yao Qi <yao@codesourcery.com>
7348
7349 * exec.c (section_table_read_available_memory): New function.
7350 * exec.h (section_table_read_available_memory): Declare.
7351 * ctf.c (ctf_xfer_partial): Call
7352 section_table_read_available_memory.
7353 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7354
1ca49d37
YQ
73552014-02-23 Yao Qi <yao@codesourcery.com>
7356
7357 * ctf.c (ctf_xfer_partial): Move code to ...
7358 * exec.c (exec_read_partial_read_only): ... it. New function.
7359 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7360 * tracefile.c: Include "exec.h".
7361 * exec.h (exec_read_partial_read_only): Declare.
7362
a283690e
YQ
73632014-02-23 Yao Qi <yao@codesourcery.com>
7364
7365 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7366 (tfile_has_memory): Remove.
7367 (init_tfile_ops): Don't set fields to_has_all_memory and
7368 to_has_memory of tfile_ops.
7369 * tracefile.c (tracefile_has_all_memory): New function.
7370 (tracefile_has_memory): New function.
7371 (init_tracefile_ops): Initialize fields to_has_all_memory and
7372 to_has_memory of 'ops'.
7373
12e03cd0
YQ
73742014-02-23 Yao Qi <yao@codesourcery.com>
7375
7376 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7377 (ctf_thread_alive, ctf_get_trace_status): Remove.
7378 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7379 init_tracefile_ops.
7380 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7381 (tfile_has_stack, tfile_has_registers): Remove.
7382 (tfile_thread_alive): Remove.
7383 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7384 init_tracefile_ops.
7385 * tracefile.c (tracefile_has_stack): New function.
7386 (tracefile_has_registers): New function.
7387 (tracefile_thread_alive): New function.
7388 (tracefile_get_trace_status): New function.
7389 (init_tracefile_ops): New function.
7390 * tracefile.h (init_tracefile_ops): Declare.
7391
11395323
YQ
73922014-02-23 Yao Qi <yao@codesourcery.com>
7393
7394 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7395 (O_LARGEFILE): Likewise.
7396 (tfile_ops): Likewise.
7397 (TRACE_HEADER_SIZE): Likewise.
7398 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7399 (cur_data_size): Likewise.
7400 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7401 (tfile_close, tfile_files_info): Likewise.
7402 (tfile_get_trace_status): Likewise.
7403 (tfile_get_tracepoint_status): Likewise.
7404 (tfile_get_traceframe_address): Likewise.
7405 (tfile_trace_find, match_blocktype): Likewise.
7406 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7407 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7408 (tfile_get_trace_state_variable_value): Likewise.
7409 (tfile_has_all_memory, tfile_has_memory): Likewise.
7410 (tfile_has_stack, tfile_has_registers): Likewise.
7411 (tfile_thread_alive, build_traceframe_info): Likewise.
7412 (tfile_traceframe_info, init_tfile_ops): Likewise.
7413 (_initialize_tracepoint): Don't call init_tfile_ops
7414 and add_target_with_completer.
7415 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7416 exec.h, completer.h and filenames.h.
7417 (_initialize_tracefile_tfile): New function.
7418
7951c4eb
YQ
74192014-02-23 Yao Qi <yao@codesourcery.com>
7420
7421 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7422 tracefile-tfile.o.
7423 (HFILES_NO_SRCDIR): Add tracefile.h.
7424 * ctf.c: Include "tracefile.h".
7425 * tracefile.h: New file.
7426 * tracefile.c: New file
7427 * tracefile-tfile.c: New file.
7428 * tracepoint.c: Include "tracefile.h".
7429 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7430 (stop_reason_names): Add const.
7431 (trace_file_writer_xfree): Move it to tracefile.c.
7432 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7433 (trace_save_ctf): Likewise.
7434 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7435 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7436 (tfile_write_header, tfile_write_regblock_type): Likewise.
7437 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7438 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7439 (tfile_write_raw_data, tfile_end): Likewise.
7440 (tfile_trace_file_writer_new): Likewise.
7441 (free_uploaded_tp): Make it extern.
7442 (free_uploaded_tsv): Make it extern.
7443 (_initialize_tracepoint): Move code to register command 'tsave'
7444 to tracefile.c.
7445 * tracepoint.h (stop_reason_names): Declare.
7446 (struct trace_frame_write_ops): Move it to tracefile.h.
7447 (struct trace_file_write_ops): Likewise.
7448 (struct trace_file_writer): Likewise.
7449 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7450
184cd072
JK
74512014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7452
7453 PR gdb/16594
7454 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7455 process name.
7456 (get_cores_used_by_process): New parameter num_cores, use it.
7457 (linux_xfer_osdata_processes): Pass num_cores to it.
7458 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7459 process name.
7460
c63528fc
AK
74612014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7462
7463 * target.c (memory_xfer_partial): Fix length arg in call to
7464 breakpoint_xfer_memory.
7465
d7b30f67
SDJ
74662014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7467
7468 PR tdep/16397
7469 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7470 number comes after the + or - signs. Adjust length of register
7471 name to be extracted.
7472
8838afaf
TT
74732014-02-20 Tom Tromey <tromey@redhat.com>
7474
7475 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7476 (ada_varobj_ops): Mark "extern".
7477
05227d14
TT
74782014-02-20 Tom Tromey <tromey@redhat.com>
7479
7480 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7481
1254eefc
DE
74822014-02-20 Doug Evans <xdje42@gmail.com>
7483
7484 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7485 All callers updated.
7486 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7487 All callers updated.
7488 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7489 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7490
adde2bff
DE
74912014-02-20 lin zuojian <manjian2006@gmail.com>
7492 Joel Brobecker <brobecker@adacore.com>
7493 Doug Evans <xdje42@gmail.com>
7494
7495 PR symtab/16581
7496 * dwarf2read.c (struct die_info): New member in_process.
7497 (reset_die_in_process): New function.
7498 (process_die): Set it at the start, reset when returning.
7499 (inherit_abstract_dies): Only call process_die if origin_child_die
7500 not already being processed.
7501
3be75f87
JB
75022014-02-20 Joel Brobecker <brobecker@adacore.com>
7503
7504 * windows-nat.c (handle_unload_dll): Add function documentation.
7505 (do_initial_windows_stuff): Add comment explaining why we wait
7506 until after inferior initialization has finished before
7507 processing all DLLs.
7508
47f7ffdb
JB
75092014-02-20 Joel Brobecker <brobecker@adacore.com>
7510
7511 * windows-nat.c (get_module_name): Delete.
7512 (windows_get_exec_module_filename): New function, mostly
7513 inspired from get_module_name.
7514 (windows_pid_to_exec_file): Replace call to get_module_name
7515 by call to windows_get_exec_module_filename.
7516
1cd9feab
JB
75172014-02-20 Joel Brobecker <brobecker@adacore.com>
7518
7519 * windows-nat.c (handle_load_dll): Rewrite this function's
7520 introductory comment. Remove code using get_module_name
7521 to get the DLL's name.
7522
ea39ad35
JB
75232014-02-20 Joel Brobecker <brobecker@adacore.com>
7524
7525 * windows-nat.c (get_windows_debug_event): Ignore
7526 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7527 if windows_initialization_done == 0.
7528 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7529 Adjust implementation to always load all DLLs.
7530 (do_initial_windows_stuff): Replace call to
7531 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7532
95060284
JB
75332014-02-20 Joel Brobecker <brobecker@adacore.com>
7534
7535 * windows-nat.c (_initialize_windows_nat): Deprecate the
7536 "dll-symbols" command. Turn the "add-shared-symbol-files"
7537 and "assf" aliases into commands, and deprecate them as well.
7538 * NEWS: Add entry explaining that "dll-symbols" and its two
7539 aliases are now deprecated.
7540
8d4fdb12
JB
75412014-02-20 Joel Brobecker <brobecker@adacore.com>
7542
7543 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7544 new-line in debug string. Remove trailing spaces.
7545
1b281443
SS
75462014-02-19 Stan Shebs <stan@codesourcery.com>
7547
7548 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7549
f7bd0f78
SC
75502014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7551
7552 * NEWS: Add entry for the new feature
7553 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7554 and class values.
7555
399ebc3d
SS
75562014-02-19 Stan Shebs <stan@codesourcery.com>
7557
7558 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7559
c658158d
PA
75602014-02-19 Pedro Alves <palves@redhat.com>
7561
7562 * common/ptid.h (struct ptid): Mention that process_stratum
7563 targets should prefer ptid.lwp.
7564
ba348170
PA
75652014-02-19 Pedro Alves <palves@redhat.com>
7566
7567 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7568 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7569 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7570 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7571 store remote thread ids rather than ptid.tid.
7572 (_initialize_remote): Adjust.
7573
ac01945b
TT
75742014-02-19 Tom Tromey <tromey@redhat.com>
7575
7576 * target.c (target_get_unwinder): Rewrite.
7577 (target_get_tailcall_unwinder): Rewrite.
7578 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7579 (record_btrace_to_get_tailcall_unwinder): New function.
7580 (init_record_btrace_ops): Update.
7581 * target.h (struct target_ops) <to_get_unwinder,
7582 to_get_tailcall_unwinder>: Now function pointers. Use
7583 TARGET_DEFAULT_RETURN.
7584
8476dc92
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7588 argument.
7589 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7590
c0eca49f
TT
75912014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7594 directly.
7595 * target-delegates.c: Rebuild.
7596 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7597 TARGET_DEFAULT_FUNC.
7598 * target.c (default_target_decr_pc_after_break): Rename from
7599 forward_target_decr_pc_after_break. Simplify.
7600 (target_decr_pc_after_break): Rely on delegation.
7601
596b6b39
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * target.c (update_current_target): Do not INHERIT to_doc or
7605 to_magic. Do not de_fault to_open or to_close.
7606
b427c1bc
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * gcore.h (objfile_find_memory_regions): Declare.
7610 * gcore.c (objfile_find_memory_regions): No longer static. Add
7611 "self" argument.
7612 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7613 * exec.c: Include gcore.h.
7614 (exec_set_find_memory_regions): Remove.
7615 (exec_find_memory_regions): Remove.
7616 (exec_do_find_memory_regions): Remove.
7617 (init_exec_ops): Update.
7618 * defs.h (exec_set_find_memory_regions): Remove.
7619
9b144037
TT
76202014-02-19 Tom Tromey <tromey@redhat.com>
7621
7622 * target-delegates.c: Rebuild.
7623 * target.h (struct target_ops) <to_extra_thread_info,
7624 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7625 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7626 not 0, in TARGET_DEFAULT_RETURN.
7627
555bbdeb
TT
76282014-02-19 Tom Tromey <tromey@redhat.com>
7629
7630 * target.c (complete_target_initialization): Remove casts. Use
7631 return_zero_has_execution.
7632 (return_zero): Add "ignore" argument.
7633 (return_zero_has_execution): New function.
7634 (init_dummy_target): Remove casts. Use
7635 return_zero_has_execution.
7636
be4ddd36
TT
76372014-02-19 Tom Tromey <tromey@redhat.com>
7638
7639 * target.c (update_current_target): Update comments. Do not
7640 INHERIT to_stratum.
7641
2117c711
TT
76422014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7645 needed.
7646 * corelow.c (core_read_description): Delegate when needed.
7647 * remote.c (remote_read_description): Delegate when needed.
7648 * target-delegates.c: Rebuild.
7649 * target.c (target_read_description): Rewrite.
7650 * target.h (struct target_ops) <to_read_description>: Update
7651 comment. Use TARGET_DEFAULT_RETURN.
7652
e88ef65c
TT
76532014-02-19 Tom Tromey <tromey@redhat.com>
7654
7655 * target-delegates.c: Rebuild.
7656 * target.c (update_current_target): Don't inherit or default
7657 to_can_run.
7658 (find_default_run_target): Check against delegate_can_run.
7659 * target.h (struct target_ops) <to_can_run>: Use
7660 TARGET_DEFAULT_RETURN.
7661
86a0854a
TT
76622014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target-delegates.c: Rebuild.
7665 * target.c (target_disconnect): Unconditionally delegate.
7666 * target.h (struct target_ops) <to_disconnect>: Use
7667 TARGET_DEFAULT_NORETURN.
7668
ee97f592
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * record.c (record_stop): Unconditionally delegate.
7672 * target-delegates.c: Rebuild.
7673 * target.c (target_stop_recording): Unconditionally delegate.
7674 * target.h (struct target_ops) <to_stop_recording>: Use
7675 TARGET_DEFAULT_IGNORE.
7676
6dc7fcf4
TT
76772014-02-19 Tom Tromey <tromey@redhat.com>
7678
7679 * target-delegates.c: Rebuild.
7680 * target.c (target_enable_btrace): Unconditionally delegate.
7681 * target.h (struct target_ops) <to_enable_btrace>: Use
7682 TARGET_DEFAULT_NORETURN.
7683
eb5b20d4
TT
76842014-02-19 Tom Tromey <tromey@redhat.com>
7685
7686 * target-delegates.c: Rebuild.
7687 * target.c (target_read_btrace): Unconditionally delegate.
7688 * target.h (struct target_ops) <to_read_btrace>: Use
7689 TARGET_DEFAULT_NORETURN.
7690
9ace480d
TT
76912014-02-19 Tom Tromey <tromey@redhat.com>
7692
7693 * target-delegates.c: Rebuild.
7694 * target.c (target_teardown_btrace): Unconditionally delegate.
7695 * target.h (struct target_ops) <to_teardown_btrace>: Use
7696 TARGET_DEFAULT_NORETURN.
7697
8dc292d3
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (target_disable_btrace): Unconditionally delegate.
7702 * target.h (struct target_ops) <to_disable_btrace>: Use
7703 TARGET_DEFAULT_NORETURN.
7704
58a5184e
TT
77052014-02-19 Tom Tromey <tromey@redhat.com>
7706
7707 * target-delegates.c: Rebuild.
7708 * target.c (default_search_memory): New function.
7709 (simple_search_memory): Update comment.
7710 (target_search_memory): Unconditionally delegate.
7711 * target.h (struct target_ops) <to_search_memory>: Use
7712 TARGET_DEFAULT_FUNC.
7713
8de71aab
TT
77142014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * auxv.c (default_auxv_parse): No longer static.
7717 (target_auxv_parse): Unconditionally delegate.
7718 * auxv.h (default_auxv_parse): Declare.
7719 * target-delegates.c: Rebuild.
7720 * target.c: Include auxv.h.
7721 * target.h (struct target_ops) <to_auxv_parse>: Use
7722 TARGET_DEFAULT_FUNC.
7723
6b2c5a57
TT
77242014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target-delegates.c: Rebuild.
7727 * target.c (target_memory_map): Unconditionally delegate.
7728 * target.h (struct target_ops) <to_memory_map>: Use
7729 TARGET_DEFAULT_RETURN.
7730
cbffc065
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target-delegates.c: Rebuild.
7734 * target.c (target_thread_alive): Unconditionally delegate.
7735 * target.h (struct target_ops) <to_thread_alive>: Use
7736 TARGET_DEFAULT_RETURN.
7737
f09e2107
TT
77382014-02-19 Tom Tromey <tromey@redhat.com>
7739
7740 * target-delegates.c: Rebuild.
7741 * target.c (target_save_record): Unconditionally delegate.
7742 * target.h (struct target_ops) <to_save_record>: Use
7743 TARGET_DEFAULT_NORETURN.
7744
07366925
TT
77452014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (target_delete_record): Unconditionally delegate.
7749 * target.h (struct target_ops) <to_delete_record>: Use
7750 TARGET_DEFAULT_NORETURN.
7751
dd2e9d25
TT
77522014-02-19 Tom Tromey <tromey@redhat.com>
7753
7754 * target-delegates.c: Rebuild.
7755 * target.c (target_record_is_replaying): Unconditionally
7756 delegate.
7757 * target.h (struct target_ops) <to_record_is_replaying>: Use
7758 TARGET_DEFAULT_RETURN.
7759
671e76cc
TT
77602014-02-19 Tom Tromey <tromey@redhat.com>
7761
7762 * target-delegates.c: Rebuild.
7763 * target.c (target_goto_record_begin): Unconditionally delegate.
7764 * target.h (struct target_ops) <to_goto_record_begin>: Use
7765 TARGET_DEFAULT_NORETURN.
7766
e9179bb3
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (target_goto_record_end): Unconditionally delegate.
7771 * target.h (struct target_ops) <to_goto_record_end>: Use
7772 TARGET_DEFAULT_NORETURN.
7773
05969c84
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target-delegates.c: Rebuild.
7777 * target.c (target_goto_record): Unconditionally delegate.
7778 * target.h (struct target_ops) <to_goto_record>: Use
7779 TARGET_DEFAULT_NORETURN.
7780
3679abfa
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target-delegates.c: Rebuild.
7784 * target.c (target_insn_history): Unconditionally delegate.
7785 * target.h (struct target_ops) <to_insn_history>: Use
7786 TARGET_DEFAULT_NORETURN.
7787
8444ab58
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target-delegates.c: Rebuild.
7791 * target.c (target_insn_history_from): Unconditionally delegate.
7792 * target.h (struct target_ops) <to_insn_history_from>: Use
7793 TARGET_DEFAULT_NORETURN.
7794
c29302cc
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target-delegates.c: Rebuild.
7798 * target.c (target_insn_history_range): Unconditionally delegate.
7799 * target.h (struct target_ops) <to_insn_history_range>: Use
7800 TARGET_DEFAULT_NORETURN.
7801
170049d4
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_call_history): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_call_history>: Use
7807 TARGET_DEFAULT_NORETURN.
7808
16fc27d6
TT
78092014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_call_history_from): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_call_history_from>: Use
7814 TARGET_DEFAULT_NORETURN.
7815
115d9817
TT
78162014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_call_history_range): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_call_history_range>: Use
7821 TARGET_DEFAULT_NORETURN.
7822
eb276a6b
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_verify_memory): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_verify_memory>: Use
7828 TARGET_DEFAULT_NORETURN.
7829
9e538d0d
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_core_of_thread): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_core_of_thread>: Use
7835 TARGET_DEFAULT_RETURN.
7836
f6fb2925
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_flash_done): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_flash_done>: Use
7842 TARGET_DEFAULT_NORETURN.
7843
e8a6c6ac
TT
78442014-02-19 Tom Tromey <tromey@redhat.com>
7845
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_flash_erase): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_flash_erase>: Use
7849 TARGET_DEFAULT_NORETURN.
7850
7e35c012
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_get_section_table): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_get_section_table>: Use
7856 TARGET_DEFAULT_RETURN.
7857
770234d3
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_pid_to_str): Unconditionally delegate.
7862 (init_dummy_target): Don't initialize to_pid_to_str.
7863 (default_pid_to_str): Rename from dummy_pid_to_str.
7864 * target.h (struct target_ops) <to_pid_to_str>: Use
7865 TARGET_DEFAULT_FUNC.
7866
09b0dc2b
TT
78672014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_find_new_threads): Unconditionally delegate.
7871 * target.h (struct target_ops) <to_find_new_threads>: Use
7872 TARGET_DEFAULT_RETURN.
7873
7d4f8efa
TT
78742014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target-delegates.c: Rebuild.
7877 * target.c (target_program_signals): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_program_signals>: Use
7879 TARGET_DEFAULT_IGNORE.
7880
035cad7f
TT
78812014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (target_pass_signals): Unconditionally delegate.
7885 * target.h (struct target_ops) <to_pass_signals>: Use
7886 TARGET_DEFAULT_IGNORE.
7887
8d657035
TT
78882014-02-19 Tom Tromey <tromey@redhat.com>
7889
7890 * target-delegates.c: Rebuild.
7891 * target.c (default_mourn_inferior): New function.
7892 (target_mourn_inferior): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_mourn_inferior>: Use
7894 TARGET_DEFAULT_FUNC.
7895
098dba18
TT
78962014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (default_follow_fork): New function.
7900 (target_follow_fork): Unconditionally delegate.
7901 * target.h (struct target_ops) <to_follow_fork>: Use
7902 TARGET_DEFAULT_FUNC.
7903
423a4807
TT
79042014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_kill): Unconditionally delegate.
7908 * target.h (struct target_ops) <to_kill>: Use
7909 TARGET_DEFAULT_NORETURN.
7910
6c7e5e5c
TT
79112014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (target_masked_watch_num_registers): Unconditionally
7915 delegate.
7916 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7917 Use TARGET_DEFAULT_RETURN.
7918
8b1c364c
TT
79192014-02-19 Tom Tromey <tromey@redhat.com>
7920
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_remove_mask_watchpoint): Unconditionally
7923 delegate.
7924 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7925 TARGET_DEFAULT_RETURN.
7926
cd4ae029
TT
79272014-02-19 Tom Tromey <tromey@redhat.com>
7928
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_insert_mask_watchpoint): Unconditionally
7931 delegate.
7932 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7933 TARGET_DEFAULT_RETURN.
7934
a134316b
TT
79352014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target-delegates.c: Rebuild.
7938 * target.c (target_ranged_break_num_registers): Unconditionally
7939 delegate.
7940 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7941 Use TARGET_DEFAULT_RETURN.
7942
ad5989bd
TT
79432014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target-delegates.c: Rebuild.
7946 * target.c (target_fetch_registers): Unconditionally delegate.
7947 * target.h (struct target_ops) <to_fetch_registers>: Use
7948 TARGET_DEFAULT_NORETURN.
7949
46ee7e8d
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target-delegates.c: Rebuild.
7953 * target.c (update_current_target): Don't inherit or default
7954 to_stop.
7955 * target.h (struct target_ops) <to_stop>: Use
7956 TARGET_DEFAULT_IGNORE.
7957
843f59ed
TT
79582014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target-delegates.c: Rebuild.
7961 * target.c (update_current_target): Don't inherit or default
7962 to_can_run_breakpoint_commands.
7963 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7964 Use TARGET_DEFAULT_RETURN.
7965
ccfde2a0
TT
79662014-02-19 Tom Tromey <tromey@redhat.com>
7967
7968 * target-delegates.c: Rebuild.
7969 * target.c (update_current_target): Don't inherit or default
7970 to_supports_evaluation_of_breakpoint_conditions.
7971 * target.h (struct target_ops)
7972 <to_supports_evaluation_of_breakpoint_conditions>: Use
7973 TARGET_DEFAULT_RETURN.
7974
0de91722
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_augmented_libraries_svr4_read.
7980 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7981 Use TARGET_DEFAULT_RETURN.
7982
9a7d8b48
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_can_use_agent.
7988 * target.h (struct target_ops) <to_can_use_agent>: Use
7989 TARGET_DEFAULT_RETURN.
7990
d9db5b21
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_use_agent.
7996 * target.h (struct target_ops) <to_use_agent>: Use
7997 TARGET_DEFAULT_NORETURN.
7998
92155eeb
TT
79992014-02-19 Tom Tromey <tromey@redhat.com>
8000
8001 * target-delegates.c: Rebuild.
8002 * target.c (update_current_target): Don't inherit or default
8003 to_traceframe_info.
8004 (return_null): Remove.
8005 * target.h (struct target_ops) <to_traceframe_info>: Use
8006 TARGET_DEFAULT_RETURN.
8007
d6522a22
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_static_tracepoint_markers_by_strid.
8013 * target.h (struct target_ops)
8014 <to_static_tracepoint_markers_by_strid>: Use
8015 TARGET_DEFAULT_NORETURN.
8016
4c3e4425
TT
80172014-02-19 Tom Tromey <tromey@redhat.com>
8018
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_static_tracepoint_marker_at.
8022 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8023 Use TARGET_DEFAULT_RETURN.
8024
dcd6917f
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8029 to_set_permissions.
8030 * target.h (struct target_ops) <to_set_permissions>: Use
8031 TARGET_DEFAULT_IGNORE.
8032
22bcceee
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_get_tib_address.
8038 * target.h (struct target_ops) <to_get_tib_address>: Use
8039 TARGET_DEFAULT_NORETURN.
8040
8586ccaa
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_set_trace_notes.
8046 * target.h (struct target_ops) <to_set_trace_notes>: Use
8047 TARGET_DEFAULT_RETURN.
8048
91df8d1d
TT
80492014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't initialize
8053 to_set_trace_buffer_size.
8054 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8055 TARGET_DEFAULT_IGNORE.
8056
8d526939
TT
80572014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_set_circular_trace_buffer.
8062 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8063 TARGET_DEFAULT_IGNORE.
8064
0bcfeddf
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_set_disconnected_tracing.
8070 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8071 TARGET_DEFAULT_IGNORE.
8072
9249843f
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_get_min_fast_tracepoint_insn_len.
8078 (return_minus_one): Remove.
8079 * target.h (struct target_ops)
8080 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8081
ace92e7d
TT
80822014-02-19 Tom Tromey <tromey@redhat.com>
8083
8084 * target-delegates.c: Rebuild.
8085 * target.c (update_current_target): Don't inherit or default
8086 to_get_raw_trace_data.
8087 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8088 TARGET_DEFAULT_NORETURN.
8089
08120467
TT
80902014-02-19 Tom Tromey <tromey@redhat.com>
8091
8092 * target-delegates.c: Rebuild.
8093 * target.c (update_current_target): Don't inherit or default
8094 to_upload_trace_state_variables.
8095 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8096 Use TARGET_DEFAULT_RETURN.
8097
1e949b00
TT
80982014-02-19 Tom Tromey <tromey@redhat.com>
8099
8100 * target-delegates.c: Rebuild.
8101 * target.c (update_current_target): Don't inherit or default
8102 to_upload_tracepoints.
8103 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8104 TARGET_DEFAULT_RETURN.
8105
a2e6c147
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target-delegates.c: Rebuild.
8109 * target.c (update_current_target): Don't inherit or default
8110 to_save_trace_data.
8111 * target.h (struct target_ops) <to_save_trace_data>: Use
8112 TARGET_DEFAULT_NORETURN.
8113
959bcd0b
TT
81142014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target-delegates.c: Rebuild.
8117 * target.c (update_current_target): Don't inherit or default
8118 to_get_trace_state_variable_value.
8119 * target.h (struct target_ops)
8120 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8121
afc94e66
TT
81222014-02-19 Tom Tromey <tromey@redhat.com>
8123
8124 * target-delegates.c: Rebuild.
8125 * target.c (update_current_target): Don't inherit or default
8126 to_trace_find.
8127 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8128
e51c07ea
TT
81292014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8133 to_trace_stop.
8134 * target.h (struct target_ops) <to_trace_stop>: Use
8135 TARGET_DEFAULT_NORETURN.
8136
6fea14cd
TT
81372014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_get_tracepoint_status.
8142 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8143 TARGET_DEFAULT_NORETURN.
8144
4072d4ff
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target-delegates.c: Rebuild.
8148 * target.c (update_current_target): Don't inherit or default
8149 to_get_trace_status.
8150 * target.h (struct target_ops) <to_get_trace_status>: Use
8151 TARGET_DEFAULT_RETURN.
8152
25da2e80
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (update_current_target): Don't inherit or default
8157 to_trace_start.
8158 * target.h (struct target_ops) <to_trace_start>: Use
8159 TARGET_DEFAULT_NORETURN.
8160
86dd181d
TT
81612014-02-19 Tom Tromey <tromey@redhat.com>
8162
8163 * target-delegates.c: Rebuild.
8164 * target.c (update_current_target): Don't inherit or default
8165 to_trace_set_readonly_regions.
8166 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8167 Use TARGET_DEFAULT_NORETURN.
8168
05c41993
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (update_current_target): Don't inherit or default
8173 to_disable_tracepoint.
8174 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8175 TARGET_DEFAULT_NORETURN.
8176
151f70f1
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (update_current_target): Don't inherit or default
8181 to_enable_tracepoint.
8182 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8183 TARGET_DEFAULT_NORETURN.
8184
94eb98b9
TT
81852014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target-delegates.c: Rebuild.
8188 * target.c (update_current_target): Don't inherit or default
8189 to_download_trace_state_variable.
8190 * target.h (struct target_ops) <to_download_trace_state_variable>:
8191 Use TARGET_DEFAULT_NORETURN.
8192
719acc4a
TT
81932014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8197 to_can_download_tracepoint.
8198 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8199 TARGET_DEFAULT_RETURN.
8200
9a980a22
TT
82012014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target-delegates.c: Rebuild.
8204 * target.c (update_current_target): Don't inherit or default
8205 to_download_tracepoint.
8206 * target.h (struct target_ops) <to_download_tracepoint>: Use
8207 TARGET_DEFAULT_NORETURN.
8208
5536135b
TT
82092014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target-delegates.c: Rebuild.
8212 * target.c (update_current_target): Don't inherit or default
8213 to_trace_init.
8214 * target.h (struct target_ops) <to_trace_init>: Use
8215 TARGET_DEFAULT_RETURN.
8216
9409d39e
TT
82172014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target-delegates.c: Rebuild.
8220 * target.c (update_current_target): Don't inherit or default
8221 to_supports_string_tracing.
8222 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8223 TARGET_DEFAULT_RETURN.
8224
aab1b22d
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_supports_enable_disable_tracepoint.
8230 * target.h (struct target_ops)
8231 <to_supports_enable_disable_tracepoint>: Use
8232 TARGET_DEFAULT_RETURN.
8233
a7304748
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target-delegates.c: Rebuild.
8237 * target.c (update_current_target): Don't inherit or default
8238 to_supports_multi_process.
8239 * target.h (struct target_ops) <to_supports_multi_process>: Use
8240 TARGET_DEFAULT_RETURN.
8241
4229b31d
TT
82422014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target-delegates.c: Rebuild.
8245 * target.c (update_current_target): Don't inherit or default
8246 to_get_ada_task_ptid.
8247 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8248 TARGET_DEFAULT_FUNC.
8249
43eba180
TT
82502014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8254 to_thread_architecture.
8255 * target.h (struct target_ops) <to_thread_architecture>: Use
8256 TARGET_DEFAULT_FUNC.
8257
fe31bf5b
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8262 to_execution_direction.
8263 * target.h (struct target_ops) <to_execution_direction>: Use
8264 TARGET_DEFAULT_FUNC.
8265
53e1cfc7
TT
82662014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_can_execute_reverse.
8271 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8272 TARGET_DEFAULT_RETURN.
8273 (target_can_execute_reverse): Unconditionally delegate.
8274
9bb9d61d
TT
82752014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (update_current_target): Don't inherit or default
8279 to_goto_bookmark.
8280 (dummy_goto_bookmark): Remove.
8281 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8282 * target.h (struct target_ops) <to_goto_bookmark>: Use
8283 TARGET_DEFAULT_NORETURN.
8284
3dbafbbb
TT
82852014-02-19 Tom Tromey <tromey@redhat.com>
8286
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8289 to_get_bookmark.
8290 (dummy_get_bookmark): Remove.
8291 (init_dummy_target): Don't inherit or default to_get_bookmark.
8292 * target.h (struct target_ops) <to_get_bookmark>: Use
8293 TARGET_DEFAULT_NORETURN
8294
16f796b1
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target-delegates.c: Rebuild.
8298 * target.c (update_current_target): Don't inherit or default
8299 to_make_corefile_notes.
8300 (init_dummy_target): Don't initialize to_make_corefile_notes.
8301 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8302 TARGET_DEFAULT_FUNC.
8303
0b5a2719
TT
83042014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8308 to_find_memory_regions.
8309 (init_dummy_target): Don't initialize to_find_memory_regions.
8310 * target.h (struct target_ops) <to_find_memory_regions>: Use
8311 TARGET_DEFAULT_FUNC.
8312
d9cb0195
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_log_command.
8318 * target.h (struct target_ops) <to_log_command>: Use
8319 TARGET_DEFAULT_IGNORE.
8320 (target_log_command): Unconditionally delegate.
8321
830ca330
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_pid_to_exec_file.
8327 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8328 TARGET_DEFAULT_RETURN.
8329
825828fc
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_thread_name.
8335 (target_thread_name): Unconditionally delegate.
8336 * target.h (struct target_ops) <to_thread_name>: Use
8337 TARGET_DEFAULT_RETURN.
8338
4a7e6dda
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_extra_thread_info.
8344 * target.h (struct target_ops) <to_extra_thread_info>: Use
8345 TARGET_DEFAULT_RETURN.
8346
0db88c1d
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_has_exited.
8352 * target.h (struct target_ops) <to_has_exited>: Use
8353 TARGET_DEFAULT_RETURN..
8354
6a9fa051
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_set_syscall_catchpoint.
8360 (return_one): Remove.
8361 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8362 TARGET_DEFAULT_RETURN.
8363
62f64d7a
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_insert_exec_catchpoint.
8369 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8370 TARGET_DEFAULT_RETURN.
8371
cda0f38c
TT
83722014-01-08 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_insert_exec_catchpoint.
8377 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8378 TARGET_DEFAULT_RETURN.
8379
95c3375e
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_remove_vfork_catchpoint.
8385 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8386 TARGET_DEFAULT_RETURN.
8387
7e18a8dc
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_insert_vfork_catchpoint.
8393 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8394 TARGET_DEFAULT_RETURN.
8395
e1a21fb7
TT
83962014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_remove_fork_catchpoint.
8401 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8402 TARGET_DEFAULT_RETURN.
8403
5958ebeb
TT
84042014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_insert_fork_catchpoint.
8409 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8410 TARGET_DEFAULT_RETURN.
8411
340ba4bf
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_post_startup_inferior.
8417 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8418 TARGET_DEFAULT_IGNORE.
8419
7634da87
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_load.
8425 * target.h (struct target_ops) <to_load>: Use
8426 TARGET_DEFAULT_NORETURN.
8427
e19e919f
TT
84282014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't inherit or default
8432 to_terminal_info.
8433 * target.h (struct target_ops) <to_terminal_info>: Use
8434 TARGET_DEFAULT_FUNC.
8435
c6ea8f79
TT
84362014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_terminal_save_ours.
8441 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8442 TARGET_DEFAULT_IGNORE.
8443
e4a733f1
TT
84442014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_terminal_ours.
8449 * target.h (struct target_ops) <to_terminal_ours>: Use
8450 TARGET_DEFAULT_IGNORE.
8451
74fcbef9
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_terminal_ours_for_output.
8457 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8458 TARGET_DEFAULT_IGNORE.
8459
ddeaacc9
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_terminal_inferior.
8465 * target.h (struct target_ops) <to_terminal_inferior>: Use
8466 TARGET_DEFAULT_IGNORE.
8467
0343661d
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_terminal_init.
8473 * target.h (struct target_ops) <to_terminal_init>: Use
8474 TARGET_DEFAULT_IGNORE.
8475
77cdffe9
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_can_accel_watchpoint_condition.
8481 * target.h (struct target_ops)
8482 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8483
d03655e4
TT
84842014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8488 to_region_ok_for_hw_watchpoint.
8489 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8490 Use TARGET_DEFAULT_FUNC.
8491
65f160a9
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_watchpoint_addr_within_range.
8497 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8498 Use TARGET_DEFAULT_FUNC.
8499
61dd109f
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_remove_watchpoint.
8505 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8506 TARGET_DEFAULT_NORETURN.
8507
016facd4
TT
85082014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_insert_watchpoint.
8513 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8514 TARGET_DEFAULT_RETURN.
8515
418dabac
TT
85162014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_remove_hw_breakpoint.
8521 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8522 TARGET_DEFAULT_RETURN.
8523
61b371f9
TT
85242014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_insert_hw_breakpoint.
8529 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8530 TARGET_DEFAULT_RETURN.
8531
52b51d06
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_can_use_hw_breakpoint.
8537 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8538 TARGET_DEFAULT_RETURN.
8539
f86e59b2
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_files_info.
8545 * target.h (struct target_ops) <to_files_info>: Use
8546 TARGET_DEFAULT_IGNORE.
8547
6c628163
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_store.
8553 * target.h (struct target_ops) <to_store>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
bebd3233
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_post_attach.
8561 * target.h (struct target_ops) <to_post_attach>: Use
8562 TARGET_DEFAULT_IGNORE.
8563
a53f3625
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_rcmd.
8569 (default_rcmd): New function.
8570 (do_monitor_command): Unconditionally delegate.
8571 * target.h (struct target_ops) <to_rmcd>: Use
8572 TARGET_DEFAULT_FUNC.
8573
e9a29200
TT
85742014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target-delegates.c: Rebuild.
8577 * target.c (init_dummy_target): Don't initialize to_attach.
8578 (target_attach): Unconditionally delegate.
8579 * target.h (struct target_ops) <to_attach>: Use
8580 TARGET_DEFAULT_FUNC.
8581
09da0d0a
TT
85822014-02-19 Tom Tromey <tromey@redhat.com>
8583
8584 * target-delegates.c: Rebuild.
8585 * target.c (target_detach): Unconditionally delegate.
8586 (init_dummy_target): Don't initialize to_detach.
8587 * target.h (struct target_ops) <to_detach>: Use
8588 TARGET_DEFAULT_IGNORE.
8589
5436ff03
TT
85902014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8593 Add argument.
8594 (target_augmented_libraries_svr4_read): Add argument.
8595 * target.c (update_current_target): Update.
8596 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8597 argument.
8598
f0d960ea
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * target.h (struct target_ops) <to_call_history_range>: Add
8602 argument.
8603 * target.c (target_call_history_range): Add argument.
8604 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8605 argument.
8606 (record_btrace_call_history_from): Update.
8607
ec0aea04
TT
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target.h (struct target_ops) <to_call_history_from>: Add
8611 argument.
8612 * target.c (target_call_history_from): Add argument.
8613 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8614 argument.
8615
5df2fcba
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target.h (struct target_ops) <to_call_history>: Add argument.
8619 * target.c (target_call_history): Add argument.
8620 * record-btrace.c (record_btrace_call_history): Add 'self'
8621 argument.
8622
4e99c6b7
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target.h (struct target_ops) <to_insn_history_range>: Add
8626 argument.
8627 * target.c (target_insn_history_range): Add argument.
8628 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8629 argument.
8630 (record_btrace_insn_history_from): Update.
8631
9abc3ff3
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target.h (struct target_ops) <to_insn_history_from>: Add
8635 argument.
8636 * target.c (target_insn_history_from): Add argument.
8637 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8638 argument.
8639
7a6c5609
TT
86402014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target.h (struct target_ops) <to_insn_history>: Add argument.
8643 * target.c (target_insn_history): Add argument.
8644 * record-btrace.c (record_btrace_insn_history): Add 'self'
8645 argument.
8646
606183ac
TT
86472014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target.h (struct target_ops) <to_goto_record>: Add argument.
8650 * target.c (target_goto_record): Add argument.
8651 * record-full.c (record_full_goto): Add 'self' argument.
8652 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8653
307a1b91
TT
86542014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8657 * target.c (target_goto_record_end): Add argument.
8658 * record-full.c (record_full_goto_end): Add 'self' argument.
8659 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8660
08475817
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.h (struct target_ops) <to_goto_record_begin>: Add
8664 argument.
8665 * target.c (target_goto_record_begin): Add argument.
8666 * record-full.c (record_full_goto_begin): Add 'self' argument.
8667 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8668 argument.
8669
1c63c994
TT
86702014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_record_is_replaying>: Add
8673 argument.
8674 * target.c (target_record_is_replaying): Add argument.
8675 * record-full.c (record_full_is_replaying): Add 'self' argument.
8676 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8677 argument.
8678 (record_btrace_xfer_partial, record_btrace_store_registers)
8679 (record_btrace_prepare_to_store, record_btrace_resume)
8680 (record_btrace_wait, record_btrace_decr_pc_after_break)
8681 (record_btrace_find_new_threads, record_btrace_thread_alive):
8682 Update.
8683
d1b55219
TT
86842014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target.h (struct target_ops) <to_delete_record>: Add argument.
8687 * target.c (target_delete_record): Add argument.
8688 * record-full.c (record_full_delete): Add 'self' argument.
8689
1390f529
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops) <to_save_record>: Add argument.
8693 * target.c (target_save_record): Add argument.
8694 * record-full.c (record_full_save): Add 'self' argument.
8695 (record_full_save): Add 'self' argument.
8696
630d6a4a
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target.h (struct target_ops) <to_info_record>: Add argument.
8700 * target.c (target_info_record): Add argument.
8701 * record.c (info_record_command): Add argument.
8702 * record-full.c (record_full_info): Add 'self' argument.
8703 * record-btrace.c (record_btrace_info): Add 'self' argument.
8704
c6cd7c02
TT
87052014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8708 * target.c (target_stop_recording): Add argument.
8709 * record.c (record_stop): Add argument.
8710 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8711 argument.
8712
39c49f83
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8716 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8717 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8718 argument.
8719 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8720 (_initialize_amd64_linux_nat): Use it.
8721 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8722 (_initialize_i386_linux_nat): Use it.
8723
1777056d
TT
87242014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8727 * target.c (target_teardown_btrace): Add argument.
8728 * remote.c (remote_teardown_btrace): Add 'self' argument.
8729 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8730 argument.
8731 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8732 argument.
8733
25e95349
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8737 * target.c (target_disable_btrace): Add argument.
8738 * remote.c (remote_disable_btrace): Add 'self' argument.
8739 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8740 argument.
8741 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8742 argument.
8743
e3c49f88
TT
87442014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8747 * target.c (target_enable_btrace): Add argument.
8748 * remote.c (remote_enable_btrace): Add 'self' argument.
8749 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8750 argument.
8751 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8752 argument.
8753
fe38f897
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8757 (target_can_use_agent): Add argument.
8758 * target.c (update_current_target): Update.
8759 * remote.c (remote_can_use_agent): Add 'self' argument.
8760 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8761
2c152180
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target.h (struct target_ops) <to_use_agent>: Add argument.
8765 (target_use_agent): Add argument.
8766 * target.c (update_current_target): Update.
8767 * remote.c (remote_use_agent): Add 'self' argument.
8768 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8769
a893e81f
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8773 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8774 (target_traceframe_info): Add argument.
8775 * target.c (update_current_target): Update.
8776 * remote.c (remote_traceframe_info): Add 'self' argument.
8777 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8778
c686c57f
TT
87792014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target.h (target_static_tracepoint_markers_by_strid): Add
8782 argument.
8783 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8784 'self' argument.
8785 * target.c (update_current_target): Update.
8786 * remote.c (struct target_ops)
8787 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8788 * linux-nat.c (struct target_ops)
8789 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8790
61fc905d
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8794 Add argument.
8795 (target_static_tracepoint_marker_at): Add argument.
8796 * target.c (update_current_target): Update.
8797 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8798 argument.
8799
c378d69d
TT
88002014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8803 (target_set_permissions): Add argument.
8804 * target.c (update_current_target): Update.
8805 * remote.c (remote_set_permissions): Add 'self' argument.
8806 (remote_start_remote): Update.
8807
bd7ae0f5
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8811 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8812 (target_get_tib_address): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_get_tib_address): Add 'self' argument.
8815
d9e68a2c
TT
88162014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8819 (target_set_trace_notes): Add argument.
8820 * target.c (update_current_target): Update.
8821 * remote.c (remote_set_trace_notes): Add 'self' argument.
8822
4da384be
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8826 argument.
8827 (target_set_trace_buffer_size): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8830
736d5b1f
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8834 argument.
8835 (target_set_circular_trace_buffer): Add argument.
8836 * target.c (update_current_target): Update.
8837 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8838 argument.
8839
37b25738
TT
88402014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8843 argument.
8844 (target_set_disconnected_tracing): Add argument.
8845 * target.c (update_current_target): Update.
8846 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8847
0e67620a
TT
88482014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target.h (struct target_ops)
8851 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8852 (target_get_min_fast_tracepoint_insn_len): Add argument.
8853 * target.c (update_current_target): Update.
8854 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8855 argument.
8856
88ee6f45
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8860 argument.
8861 (target_get_raw_trace_data): Add argument.
8862 * target.c (update_current_target): Update.
8863 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8864
181e3713
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8868 Add argument.
8869 (target_upload_trace_state_variables): Add argument.
8870 * target.c (update_current_target): Update.
8871 * remote.c (remote_upload_trace_state_variables): Add 'self'
8872 argument.
8873 (remote_start_remote): Update.
8874
ab6617cc
TT
88752014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8878 argument.
8879 (target_upload_tracepoints): Add argument.
8880 * target.c (update_current_target): Update.
8881 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8882 (remote_start_remote): Update.
8883
dc3decaf
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8887 (target_save_trace_data): Add argument.
8888 * target.c (update_current_target): Update.
8889 * remote.c (remote_save_trace_data): Add 'self' argument.
8890
4011015b
TT
88912014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8894 argument.
8895 * target.h (struct target_ops)
8896 <to_get_trace_state_variable_value>: Add argument.
8897 (target_get_trace_state_variable_value): Add argument.
8898 * target.c (update_current_target): Update.
8899 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8900 argument.
8901 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8902
bd4c6793
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8906 * target.h (struct target_ops) <to_trace_find>: Add argument.
8907 (target_trace_find): Add argument.
8908 * target.c (update_current_target): Update.
8909 * remote.c (remote_trace_find): Add 'self' argument.
8910 * ctf.c (ctf_trace_find): Add 'self' argument.
8911
74499f1b
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8915 (target_trace_stop): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_trace_stop): Add 'self' argument.
8918
db90e85c
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8922 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8923 argument.
8924 (target_get_tracepoint_status): Add argument.
8925 * target.c (update_current_target): Update.
8926 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8927
8bd200f1
TT
89282014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8931 * target.h (struct target_ops) <to_get_trace_status>: Add
8932 argument.
8933 (target_get_trace_status): Add argument.
8934 * target.c (update_current_target): Update.
8935 * remote.c (remote_get_trace_status): Add 'self' argument.
8936 (remote_start_remote, remote_can_download_tracepoint): Update.
8937 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8938
e2d1aae3
TT
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target.h (struct target_ops) <to_trace_start>: Add argument.
8942 (target_trace_start): Add argument.
8943 * target.c (update_current_target): Update.
8944 * remote.c (remote_trace_start): Add 'self' argument.
8945
583f9a86
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8949 Add argument.
8950 (target_trace_set_readonly_regions): Add argument.
8951 * target.c (update_current_target): Update.
8952 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8953 argument.
8954
780b049c
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8958 argument.
8959 (target_disable_tracepoint): Add argument.
8960 * target.c (update_current_target): Update.
8961 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8962
46670d57
TT
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8966 argument.
8967 (target_enable_tracepoint): Add argument.
8968 * target.c (update_current_target): Update.
8969 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8970
559d2b81
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_download_trace_state_variable>:
8974 Add argument.
8975 (target_download_trace_state_variable): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_download_trace_state_variable): Add 'self'
8978 argument.
8979
a52a8357
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8983 argument.
8984 (target_can_download_tracepoint): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8987
548f7808
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_download_tracepoint>: Add
8991 argument.
8992 (target_download_tracepoint): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_download_tracepoint): Add 'self' argument.
8995
ecae04e1
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops) <to_trace_init>: Add argument.
8999 (target_trace_init): Add argument.
9000 * target.c (update_current_target): Update.
9001 * remote.c (remote_trace_init): Add 'self' argument.
9002
fab5aa7c
TT
90032014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9006 * target.c (target_fileio_readlink): Add argument.
9007 * remote.c (remote_hostio_readlink): Add 'self' argument.
9008 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9009
dbbca37d
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9013 * target.c (target_fileio_unlink): Add argument.
9014 * remote.c (remote_hostio_unlink): Add 'self' argument.
9015 (remote_file_delete): Update.
9016 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9017
df39ea25
TT
90182014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9021 * target.c (target_fileio_close): Add argument.
9022 * remote.c (remote_hostio_close): Add 'self' argument.
9023 (remote_hostio_close_cleanup): Update.
9024 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9025 Update.
9026 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9027
a3be983c
TT
90282014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9031 * target.c (target_fileio_pread): Add argument.
9032 * remote.c (remote_hostio_pread): Add 'self' argument.
9033 (remote_bfd_iovec_pread, remote_file_get): Update.
9034 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9035
0d866f62
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9039 * target.c (target_fileio_pwrite): Add argument.
9040 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9041 (remote_file_put): Update.
9042 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9043
cd897586
TT
90442014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9047 * target.c (target_fileio_open): Add argument.
9048 * remote.c (remote_hostio_open): Add 'self' argument.
9049 (remote_bfd_iovec_open): Add 'self' argument.
9050 (remote_file_put): Add 'self' argument.
9051 (remote_file_get): Add 'self' argument.
9052 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9053
78eff0ec
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9057 Add argument.
9058 (target_can_run_breakpoint_commands): Add argument.
9059 * target.c (update_current_target): Update.
9060 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9061 argument.
9062 (remote_insert_breakpoint): Add 'self' argument.
9063 (remote_insert_hw_breakpoint): Add 'self' argument.
9064 (remote_can_run_breakpoint_commands): Add 'self' argument.
9065
efcc2da7
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target.h (struct target_ops)
9069 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9070 (target_supports_evaluation_of_breakpoint_conditions): Add
9071 argument.
9072 * target.c (update_current_target): Update.
9073 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9074 argument.
9075 (remote_insert_breakpoint): Add 'self' argument.
9076 (remote_insert_hw_breakpoint): Add 'self' argument.
9077 (remote_supports_cond_breakpoints): Add 'self' argument.
9078
6de37a3a
TT
90792014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9082 argument.
9083 (target_supports_string_tracing): Add argument.
9084 * target.c (update_current_target): Update.
9085 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9086
2bfc0540
TT
90872014-02-19 Tom Tromey <tromey@redhat.com>
9088
9089 * target.h (struct target_ops)
9090 <to_supports_disable_randomization>: Add argument.
9091 * target.c (find_default_supports_disable_randomization): Add
9092 argument.
9093 (target_supports_disable_randomization): Add argument.
9094 (find_default_supports_disable_randomization): Add 'self'
9095 argument.
9096 * remote.c (extended_remote_supports_disable_randomization): Add
9097 'self' argument.
9098 (remote_supports_disable_randomization): Add 'self' argument.
9099 (extended_remote_create_inferior): Update.
9100 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9101 'self' argument.
9102
7d178d6a
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops)
9106 <to_supports_enable_disable_tracepoint>: Add argument.
9107 (target_supports_enable_disable_tracepoint): Add argument.
9108 * target.c (update_current_target): Update.
9109 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9110 argument.
9111
86ce2668
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.h (struct target_ops) <to_supports_multi_process>: Add
9115 argument.
9116 (target_supports_multi_process): Add argument.
9117 * target.c (update_current_target): Update.
9118 * remote.c (remote_supports_multi_process): Add 'self' argument.
9119 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9120 argument.
9121 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9122 argument.
9123
4c612759
TT
91242014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target.h (struct target_ops) <to_execution_direction>: Add
9127 argument.
9128 (target_execution_direction): Add argument.
9129 * target.c (default_execution_direction): Add 'self' argument.
9130 * record-full.c (record_full_execution_direction): Add 'self'
9131 argument.
9132
19db3e69
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9136 argument.
9137 (target_can_execute_reverse): Add argument.
9138 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9139 * record-full.c (record_full_can_execute_reverse): Add 'self'
9140 argument.
9141 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9142 argument.
9143
1e6b91a4
TT
91442014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9147 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9148 argument.
9149 (target_get_ada_task_ptid): Add argument.
9150 * target.c (update_current_target): Update.
9151 (default_get_ada_task_ptid): Add 'self' argument.
9152 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9153 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9154 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9155 argument.
9156 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9157 argument.
9158 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9159 argument.
9160 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9161 argument.
9162 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9163 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9164 argument.
9165
3c80fb48
TT
91662014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9169 (target_goto_bookmark): Add argument.
9170 * target.c (dummy_goto_bookmark): Add 'self' argument.
9171 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9172
dd0e2830
TT
91732014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9176 (target_get_bookmark): Add argument.
9177 * target.c (dummy_get_bookmark): Add 'self' argument.
9178 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9179
fc6691b2
TT
91802014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9183 argument.
9184 (target_make_corefile_notes): Add argument.
9185 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9186 * procfs.c (procfs_make_note_section): Add 'self' argument.
9187 (procfs_make_note_section): Add 'self' argument.
9188 (procfs_make_note_section): Add 'self' argument.
9189 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9190 argument.
9191 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9192 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9193 * exec.c (exec_make_note_section): Add 'self' argument.
9194 (exec_make_note_section): Add 'self' argument.
9195
2e73927c
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_find_memory_regions>: Add
9199 argument.
9200 (target_find_memory_regions): Add argument.
9201 * target.c (dummy_find_memory_regions): Add 'self' argument.
9202 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9203 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9204 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9205 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9206 * exec. (exec_do_find_memory_regions): New global.
9207 (exec_set_find_memory_regions): Rewrite.
9208 (exec_find_memory_regions): New function.
9209 (init_exec_ops): Use exec_find_memory_regions.
9210
2a9a2795
TT
92112014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target.h (struct target_ops) <to_supports_non_stop>: Add
9214 argument.
9215 * target.c (find_default_supports_non_stop): Add argument.
9216 (target_supports_non_stop): Add argument.
9217 (find_default_supports_non_stop): Add 'self' argument.
9218 * remote.c (remote_supports_non_stop): Add 'self' argument.
9219 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9220
4ab76ea3
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_log_command>: Add argument.
9224 (target_log_command): Add argument.
9225 * serial.h (serial_log_command): Add 'self' argument.
9226 * serial.c (serial_log_command): Add 'self' argument.
9227
8dd27370
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9231 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9232 argument.
9233 (target_pid_to_exec_file): Add argument.
9234 * target.c (debug_to_pid_to_exec_file): Add argument.
9235 (update_current_target): Update.
9236 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9237 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9238 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9239 (linux_handle_extended_wait): Update.
9240 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9241 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9242 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9243 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9244
1aac633b
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_rcmd>: Add argument.
9248 (target_rcmd): Add argument.
9249 * target.c (debug_to_rcmd): Add argument.
9250 (update_current_target, do_monitor_command): Update.
9251 * remote.c (remote_rcmd): Add 'self' argument.
9252 * monitor.c (monitor_rcmd): Add 'self' argument.
9253
1eab8a48
TT
92542014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * windows-nat.c (windows_stop): Add 'self' argument.
9257 * target.h (struct target_ops) <to_stop>: Add argument.
9258 * target.c (target_stop): Add argument.
9259 (debug_to_stop): Add argument.
9260 (update_current_target): Update.
9261 * remote.c (remote_stop): Add 'self' argument.
9262 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9263 (gdbsim_cntrl_c): Update.
9264 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9265 * procfs.c (procfs_stop): Add 'self' argument.
9266 * nto-procfs.c (procfs_stop): Add 'self' argument.
9267 * monitor.c (monitor_stop): Add 'self' argument.
9268 (monitor_open): Update.
9269 * linux-nat.c (linux_nat_stop): Add argument.
9270 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9271 * gnu-nat.c (gnu_stop): Add 'self' argument.
9272 * darwin-nat.c (darwin_stop): Add 'self' argument.
9273
503a628d
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target.h (struct target_ops) <to_thread_name>: Add argument.
9277 * target.c (target_thread_name): Add argument.
9278 (update_current_target): Update.
9279 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9280
c15906d8
TT
92812014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * target.h (struct target_ops) <to_extra_thread_info>: Add
9284 argument.
9285 (target_extra_thread_info): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_threads_extra_info): Add 'self' argument.
9288 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9289 argument.
9290 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9291 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9292 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9293 argument.
9294 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9295 argument.
9296 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9297 argument.
9298 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9299 argument.
9300
daf5e9b6
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_program_signals>: Add argument.
9304 * target.c (target_program_signals): Add argument.
9305 * remote.c (remote_program_signals): Add 'self' argument.
9306
94bedb42
TT
93072014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9310 * target.c (target_pass_signals): Add argument.
9311 * remote.c (remote_pass_signals): Add 'self' argument.
9312 (remote_start_remote): Update.
9313 * procfs.c (procfs_pass_signals): Add 'self' argument.
9314 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9315 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9316 (linux_nat_create_inferior, linux_nat_attach): Update.
9317
da82bd6b
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * windows-nat.c (windows_can_run): Add 'self' argument.
9321 * target.h (struct target_ops) <to_can_run>: Add argument.
9322 (target_can_run): Add argument.
9323 * target.c (debug_to_can_run): Add argument.
9324 (update_current_target): Update.
9325 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9326 * inf-child.c (inf_child_can_run): Add 'self' argument.
9327 * go32-nat.c (go32_can_run): Add 'self' argument.
9328
d796e1d6
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_has_exited>: Add argument.
9332 (target_has_exited): Add argument.
9333 * target.c (debug_to_has_exited): Add argument.
9334 (update_current_target): Update.
9335
ff214e67
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9339 argument.
9340 (target_set_syscall_catchpoint): Add argument.
9341 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9342 argument.
9343 * target.c (update_current_target): Update.
9344
758e29d2
TT
93452014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9348 argument.
9349 (target_remove_exec_catchpoint): Add argument.
9350 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9351 (update_current_target): Update.
9352 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9353 argument.
9354
ba025e51
TT
93552014-02-19 Tom Tromey <tromey@redhat.com>
9356
9357 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9358 argument.
9359 (target_insert_exec_catchpoint): Add argument.
9360 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9361 (update_current_target): Update.
9362 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9363 argument.
9364
e98cf0cd
TT
93652014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9368 argument.
9369 (target_remove_vfork_catchpoint): Add argument.
9370 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9371 (update_current_target): Update.
9372 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9373 argument.
9374
3ecc7da0
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9378 argument.
9379 (target_insert_vfork_catchpoint): Add argument.
9380 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9381 (update_current_target): Update.
9382 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9383 argument.
9384
973fc227
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9388 argument.
9389 (target_remove_fork_catchpoint): Add argument.
9390 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9391 (update_current_target): Update.
9392 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9393 argument.
9394
a863b201
TT
93952014-02-19 Tom Tromey <tromey@redhat.com>
9396
9397 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9398 argument.
9399 (target_insert_fork_catchpoint): Add argument.
9400 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9401 (update_current_target): Update.
9402 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9403 argument.
9404
2e97a79e
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9408 argument.
9409 (target_post_startup_inferior): Add argument.
9410 * target.c (debug_to_post_startup_inferior): Add argument.
9411 (update_current_target): Update.
9412 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9413 argument.
9414 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9415 argument.
9416 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9417 argument.
9418 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9419 argument.
9420 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9421 'self' argument.
9422 (super_post_startup_inferior): Likewise.
9423 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9424 'self' argument.
9425 (super_post_startup_inferior): Likewise.
9426 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9427 Add 'self' argument.
9428 (super_post_startup_inferior): Likewise.
9429
71a9f134
TT
94302014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops) <to_load>: Add argument.
9433 * target.c (target_load): Add argument.
9434 (debug_to_load): Add argument.
9435 (update_current_target): Update.
9436 * remote.c (remote_load): Add 'self' argument.
9437 * remote-sim.c (gdbsim_load): Add 'self' argument.
9438 * remote-mips.c (mips_load): Add 'self' argument.
9439 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9440 * monitor.c (monitor_load): Add 'self' argument.
9441 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9442
0a4f40a2
TT
94432014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9446 (target_terminal_info): Add argument.
9447 * target.c (debug_to_terminal_info): Add argument.
9448 (default_terminal_info): Likewise.
9449 * inflow.c (child_terminal_info): Add 'self' argument.
9450 * inferior.h (child_terminal_info): Add 'self' argument.
9451 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9452
ae3bd431
TT
94532014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9456 argument.
9457 (target_terminal_save_ours): Add argument.
9458 * target.c (debug_to_terminal_save_ours): Add argument.
9459 (update_current_target): Update.
9460 * inflow.c (terminal_save_ours): Add 'self' argument.
9461 * inferior.h (terminal_save_ours): Add 'self' argument.
9462
e3594fd1
TT
94632014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9466 (target_terminal_ours): Add argument.
9467 * target.c (debug_to_terminal_ours): Add argument.
9468 (update_current_target): Update.
9469 * remote.c (remote_terminal_ours): Add 'self' argument.
9470 (remote_close): Update.
9471 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9472 * inflow.c (terminal_ours): Add 'self' argument.
9473 * inferior.h (terminal_ours): Add 'self' argument.
9474 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9475
2e1e1a19
TT
94762014-02-19 Pedro Alves <palves@redhat.com>
9477 Tom Tromey <tromey@redhat.com>
9478
9479 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9480 argument.
9481 (target_terminal_ours_for_output): Add argument.
9482 * target.c (debug_to_terminal_ours_for_output): Add argument.
9483 (update_current_target): Update.
9484 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9485 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9486 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9487
d2f640d4
TT
94882014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target.h (struct target_ops) <to_terminal_inferior>: Add
9491 argument.
9492 * target.c (target_terminal_inferior): Add argument.
9493 (update_current_target): Update.
9494 * remote.c (remote_terminal_inferior): Add 'self' argument.
9495 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9496 * inflow.c (terminal_inferior): Add 'self' argument.
9497 * inferior.h (terminal_inferior): Add 'self' argument.
9498 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9499 (go32_terminal_inferior): Add 'self' argument.
9500
c42bf286
TT
95012014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9504 (target_terminal_init): Add argument.
9505 * target.c (debug_to_terminal_init): Add argument.
9506 (update_current_target): Update.
9507 * inflow.c (terminal_init_inferior): Add 'self' argument.
9508 * inferior.h (terminal_init_inferior): Add 'self' argument.
9509 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9510 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9511
c3a5ff89
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops)
9515 <to_can_accel_watchpoint_condition>: Add argument.
9516 (target_can_accel_watchpoint_condition): Add argument.
9517 * target.c (debug_to_can_accel_watchpoint_condition): Add
9518 argument.
9519 (update_current_target): Update.
9520 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9521 'self' argument.
9522
31568a15
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9526 Add argument.
9527 (target_region_ok_for_hw_watchpoint): Add argument.
9528 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9529 (default_region_ok_for_hw_watchpoint): Add argument.
9530 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9531 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9532 argument.
9533 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9534 argument.
9535 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9536 argument.
9537 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9538 'self' argument.
9539 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9540 'self' argument.
9541 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9542 'self' argument.
9543 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9544 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9545 'self' argument.
9546 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9547 Add 'self' argument.
9548
7bb99c53
TT
95492014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9552 argument.
9553 (target_insert_watchpoint): Add argument.
9554 * target.c (debug_to_insert_watchpoint): Add argument.
9555 (update_current_target): Update.
9556 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9557 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9558 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9559 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9560 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9561 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9562 argument.
9563 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9564 (procfs_insert_hw_watchpoint): Add 'self' argument.
9565 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9566 argument.
9567 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9568 argument.
9569 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9570 argument.
9571 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9572 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9573 argument.
9574 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9575 'self' argument.
9576
11b5219a
TT
95772014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9580 argument.
9581 (target_remove_watchpoint): Add argument.
9582 * target.c (debug_to_remove_watchpoint): Add argument.
9583 (update_current_target): Update.
9584 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9585 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9586 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9587 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9588 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9589 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9590 argument.
9591 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9592 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9593 argument.
9594 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9595 argument.
9596 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9597 argument.
9598 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9599 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9600 argument.
9601 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9602 'self' argument.
9603
a64dc96c
TT
96042014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9607 argument.
9608 (target_remove_hw_breakpoint): Add argument.
9609 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9610 (update_current_target): Update.
9611 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9612 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9613 argument.
9614 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9615 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9616 argument.
9617 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9618 'self' argument.
9619
23a26771
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9623 argument.
9624 (target_insert_hw_breakpoint): Add argument.
9625 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9626 (update_current_target): Update.
9627 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9628 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9629 argument.
9630 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9631 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9632 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9633 argument.
9634 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9635 'self' argument.
9636
5461485a
TT
96372014-02-19 Tom Tromey <tromey@redhat.com>
9638
9639 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9640 argument.
9641 (target_can_use_hardware_watchpoint): Add argument.
9642 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9643 (update_current_target): Update.
9644 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9645 argument.
9646 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9647 argument.
9648 * remote.c (remote_check_watch_resources): Add 'self' argument.
9649 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9650 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9651 argument.
9652 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9653 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9654 argument.
9655 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9656 argument.
9657 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9658 argument.
9659 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9660 argument.
9661 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9662 argument.
9663 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9664 argument.
9665 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9666 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9667 argument.
9668 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9669 'self' argument.
9670
f045800c
TT
96712014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * target.h (struct target_ops) <to_post_attach>: Add argument.
9674 (target_post_attach): Add argument.
9675 * target.c (debug_to_post_attach): Add argument.
9676 (update_current_target): Update.
9677 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9678 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9679 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9680 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9681 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9682
de90e03d
TT
96832014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * windows-nat.c (windows_close): Add 'self' argument.
9686 * tracepoint.c (tfile_close): Add 'self' argument.
9687 * target.h (struct target_ops) <to_close>: Add argument.
9688 * target.c (target_close): Add argument.
9689 (update_current_target): Update.
9690 * remote.c (remote_close): Add 'self' argument.
9691 * remote-sim.c (gdbsim_close): Add 'self' argument.
9692 * remote-mips.c (mips_close): Add 'self' argument.
9693 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9694 * record-full.c (record_full_close): Add 'self' argument.
9695 * record-btrace.c (record_btrace_close): Add 'self' argument.
9696 * monitor.h (monitor_close): Add 'self' argument.
9697 * monitor.c (monitor_close): Add 'self' argument.
9698 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9699 * linux-nat.c (linux_nat_close): Add argument.
9700 * go32-nat.c (go32_close): Add 'self' argument.
9701 * exec.c (exec_close_1): Add 'self' argument.
9702 * ctf.c (ctf_close): Add 'self' argument.
9703 * corelow.c (core_close): Add 'self' argument.
9704 (core_close_cleanup): Update.
9705 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9706 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9707
9dd130a0
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * remote.c (remote_load): New function.
9711 (init_remote_ops): Use it.
9712
46917d26
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9716 argument.
9717 * common/linux-btrace.h (linux_supports_btrace): Update.
9718 * remote.c (remote_supports_btrace): Add "self" argument.
9719 * target-delegates.c: Rebuild.
9720 * target.c (target_supports_btrace): Remove.
9721 * target.h (struct target_ops) <to_supports_btrace>: Add
9722 target_ops argument.
9723 (target_supports_btrace): New define.
9724
6b84065d
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * record-full.c (record_full_beneath_to_resume_ops)
9728 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9729 (record_full_beneath_to_wait)
9730 (record_full_beneath_to_store_registers_ops)
9731 (record_full_beneath_to_store_registers)
9732 (record_full_beneath_to_xfer_partial_ops)
9733 (record_full_beneath_to_xfer_partial)
9734 (record_full_beneath_to_insert_breakpoint_ops)
9735 (record_full_beneath_to_insert_breakpoint)
9736 (record_full_beneath_to_remove_breakpoint_ops)
9737 (record_full_beneath_to_remove_breakpoint)
9738 (record_full_beneath_to_stopped_by_watchpoint)
9739 (record_full_beneath_to_stopped_data_address)
9740 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9741 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9742 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9743 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9744 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9745 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9746 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9747 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9748 (record_full_resume, record_full_wait_1)
9749 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9750 (record_full_store_registers, record_full_xfer_partial)
9751 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9752 (record_full_async, record_full_core_xfer_partial): Use target
9753 delegation.
9754 * target-delegates.c: Rebuild.
9755 * target.c (current_xfer_partial): Remove.
9756 (update_current_target): Do not INHERIT or de_fault
9757 to_insert_breakpoint, to_remove_breakpoint,
9758 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9759 to_is_async_p, to_async. Do not set to_xfer_partial field.
9760 (default_xfer_partial): Simplify.
9761 (current_xfer_partial): Remove.
9762 (target_wait, target_resume): Simplify.
9763 (find_default_can_async_p, find_default_is_async_p): Update.
9764 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9765 to_xfer_partial, to_stopped_by_watchpoint,
9766 to_stopped_data_address.
9767 (target_store_registers): Simplify.
9768 (forward_target_remove_breakpoint)
9769 (forward_target_insert_breakpoint): Remove.
9770 (target_remove_breakpoint, target_insert_breakpoint)
9771 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9772 * target.h (struct target_ops) <to_resume, to_wait,
9773 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9774 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9775 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9776 markup.
9777 (forward_target_remove_breakpoint)
9778 (forward_target_insert_breakpoint): Remove.
9779 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9780 directly.
9781 (record_btrace_insert_breakpoint): Delegate directly.
9782
1101cb7b
TT
97832014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 PR build/7701:
9786 * target-delegates.c: New file.
9787 * target.c: Include target-delegates.c.
9788 (init_dummy_target): Call install_dummy_methods.
9789 (complete_target_initialization): Call install_delegators.
9790 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9791 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9792 * make-target-delegates: New file.
9793
8b06beed
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * record.c (find_record_target): Use find_target_at.
9797 * target.c (find_target_at): New function.
9798 * target.h (find_target_at): Declare.
9799
6a109b6b
TT
98002014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9803 Add 'ops' argument.
9804 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9805 'ops' argument.
9806 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9807 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9808 'ops' argument.
9809 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9810 argument.
9811 * linux-nat.c (save_sigtrap): Update.
9812 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9813 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9814 (linux_nat_close): Update.
9815 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9816 argument.
9817 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9818 argument.
9819 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9820 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9821 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9822 (tmp_to_async): Add 'ops' argument.
9823 (record_full_stopped_by_watchpoint, record_full_async)
9824 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9825 argument.
9826 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9827 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9828 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9829 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9830 (remote_is_async_p, remote_async): Add 'ops' argument.
9831 (remote_stopped_data_address): Update.
9832 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9833 * target.c (update_current_target)
9834 (find_default_can_async_p, find_default_is_async_p): Update.
9835 (init_dummy_target): Update.
9836 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9837 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9838 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9839 (target_can_async_p, target_is_async_p, target_async)
9840 (target_stopped_by_watchpoint): Update.
9841
e095146b
YQ
98422014-02-19 Yao Qi <yao@codesourcery.com>
9843
9844 PR gdb/16220
9845 * gdbarch.sh: Remove startup_gdbarch.
9846 * gdbarch.c: Regenerated.
9847 * gdbarch.h: Likewise.
9848
bc3c6b36
KB
98492014-02-17 Kevin Buettner <kevinb@redhat.com>
9850
9851 * rl78-tdep.c (rl78_g10_register_name): New function.
9852 (rl78_return_value): Add g10 support.
9853 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9854 g10.
9855
98dc0167 98562014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9857
9858 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9859 (SUBDIR_GUILE_SRCS): Ditto.
9860 (scm-gsmob.o): Ditto.
9861
842c05cd
YQ
98622014-02-17 Yao Qi <yao@codesourcery.com>
9863
9864 * gnu-nat.c (ILL_RPC): Declare defined function.
9865
25c0bd04
YQ
98662014-02-17 Yao Qi <yao@codesourcery.com>
9867
9868 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9869 mach_msg_type_number_t.
9870 (gnu_write_inferior): Likewise.
9871
a9a758e3
YQ
98722014-02-17 Yao Qi <yao@codesourcery.com>
9873
9874 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9875 in format string.
9876 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9877 (inf_validate_procs, inf_signal): Likewise.
9878 (S_exception_raise_request): Likewise.
9879 (do_mach_notify_dead_name): Likewise.
9880 (steal_exc_port): Likewise.
9881 (gnu_read_inferior): Change 'copy_count''s type to
9882 mach_msg_type_number_t.
9883 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9884 format string.
9885
bae8023e
TS
98862014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9887
c82f56d9
TS
9888 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9889 flag. Adjust all users; in particular...
9890 (gnu_wait): ..., don't decrement its value in here...
9891 (gnu_create_inferior): ..., and instead set the flag in here,
9892 around the startup_inferior call, and call that one with
9893 START_INFERIOR_TRAPS_EXPECTED.
9894
3398af6a
TS
9895 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9896 (ILL_RPC): ... new macro.
9897 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9898 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9899 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9900 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9901 functions with ILL_RPC macro.
9902 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9903 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9904 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9905 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9906 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9907 (S_proc_getlogin_reply, S_proc_getsid_reply)
9908 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9909 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9910 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9911 (S_proc_getnports_reply, S_proc_is_important_reply)
9912 (S_proc_get_code_reply): New stub functions, generated with
9913 ILL_RPC macro.
9914
d47642c9
TS
9915 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9916 collected the type check structures.
9917
bae8023e
TS
9918 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9919
8a55ffb0
DE
99202014-02-14 Doug Evans <dje@google.com>
9921
9922 * target.c (target_write_partial): Fix result type.
9923
c2853f3d
JM
99242014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9925
9926 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9927 the proper offsets to access fpregset_t.
9928
ac61d2db
SA
99292014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9930
9931 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9932 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9933 * h8300-tdep.c (setmachinelist): Remove global.
9934 * hppa-tdep.c (hppa_sigtramp): Remove global.
9935 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9936 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9937 * ravenscar-thread.c (update_target_observer): Remove global.
9938 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9939
9d2d0b8b
TT
99402014-02-12 Tom Tromey <tromey@redhat.com>
9941
9942 * common/rsp-low.c: Update comments.
9943 * common/rsp-low.h: Update comments.
9944
a7191e8b
TT
99452014-02-12 Tom Tromey <tromey@redhat.com>
9946
9947 * common/rsp-low.c (convert_ascii_to_int): Remove.
9948 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9949
ff0e980e
TT
99502014-02-12 Tom Tromey <tromey@redhat.com>
9951
9952 * common/rsp-low.h (unhexify): Don't declare.
9953 * common/rsp-low.c (unhexify): Remove.
9954
e9371aff
TT
99552014-02-12 Tom Tromey <tromey@redhat.com>
9956
9957 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9958 * common/rsp-low.c (convert_int_to_ascii): Remove.
9959
971dc0b8
TT
99602014-02-12 Tom Tromey <tromey@redhat.com>
9961
9962 * common/rsp-low.h (hexify): Don't declare.
9963 * common/rsp-low.c (hexify): Remove.
9964
0a822afb
TT
99652014-02-12 Tom Tromey <tromey@redhat.com>
9966
9967 * common/rsp-low.c (hexify): Never take strlen of argument.
9968
9f1b45b0
TT
99692014-02-12 Tom Tromey <tromey@redhat.com>
9970
9971 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9972 * remote.c (extended_remote_run, remote_rcmd)
9973 (remote_download_trace_state_variable, remote_save_trace_data)
9974 (remote_set_trace_notes): Update.
9975 * tracepoint.c (encode_source_string, tfile_write_status)
9976 (tfile_write_uploaded_tsv): Update.
9977
9c3d6531
TT
99782014-02-12 Tom Tromey <tromey@redhat.com>
9979
9980 * tracepoint.c: Include rsp-low.h.
9981 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9982 * remote.c: Include rsp-low.h.
9983 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9984 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9985 (remote_unescape_input): Move to common/rsp-low.c.
9986 * common/rsp-low.h: New file.
9987 * common/rsp-low.c: New file.
9988 * Makefile.in (SFILES): Add common/rsp-low.c.
9989 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9990 (COMMON_OBS): Add rsp-low.o.
9991 (rsp-low.o): New target.
9992
01fd3ea5
TT
99932014-02-12 Tom Tromey <tromey@redhat.com>
9994
9995 * utils.h: Include print-utils.h.
9996 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9997 (int_string, core_addr_to_string, core_addr_to_string_nz)
9998 (hex_string, hex_string_custom): Don't declare.
9999 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10000 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10001 (hex_string_custom, int_string, core_addr_to_string)
10002 (core_addr_to_string_nz, host_address_to_string): Move to
10003 common/print-utils.c.
10004 * common/print-utils.h: New file.
10005 * common/print-utils.c: New file
10006 * Makefile.in (SFILES): Add common/print-utils.c.
10007 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10008 (COMMON_OBS): Add print-utils.o.
10009 (print-utils.o): New target.
10010
9fb50108
TT
100112014-02-12 Tom Tromey <tromey@redhat.com>
10012
10013 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10014
0548b5db
MK
100152014-02-12 Mark Kettenis <kettenis@gnu.org>
10016
10017 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10018
493443a4
MK
100192014-02-12 Mark Kettenis <kettenis@gnu.org>
10020
10021 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10022 if a PT_IO ptrace request returns sucessfully but indicates that 0
10023 bytes were transferred.
10024
706d0883
PA
100252014-02-12 Pedro Alves <palves@redhat.com>
10026 Kevin Buettner <kevinb@redhat.com>
10027
10028 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10029 TYPE_INSTANCE_FLAG_CODE_SPACE.
10030
5caa2f0b
PA
100312014-02-12 Pedro Alves <palves@redhat.com>
10032
10033 * h8300-tdep.c (pseudo_from_raw_register)
10034 (raw_from_pseudo_register): New functions.
10035 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10036 them.
10037
76fd5f74
PA
100382014-02-12 Pedro Alves <palves@redhat.com>
10039
10040 * h8300-tdep.c (h8300_register_sim_regno): New function.
10041 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10042 gdbarch_register_sim_regno hook.
10043
8f008406
SA
100442014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10045
10046 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10047
195abc10
SA
100482014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10049
10050 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10051
93ffa5b9
MK
100522014-02-12 Mark Kettenis <kettenis@gnu.org>
10053
10054 * obsd-tdep.h (obsd_init_abi): New prototype.
10055 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10056 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10057 (obsd_init_abi): New functions.
10058 * i386obsd-tdep.c: Include "obsd-tdep.h".
10059 (i386obsd_init_abi): Call obsd_init_abi.
10060 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10061 (amd64obsd_init_abi): Call obsd_init_abi.
10062 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10063 obsd-tdep.c to gdb_target_obs.
10064
49caec94
JM
100652014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10066
10067 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10068 double float arguments to 16-byte in the argument slots.
10069
e1402065
DE
100702014-02-11 Doug Evans <xdje42@gmail.com>
10071
10072 * configure.ac: Don't crash if pkg-config is not found and guile
10073 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10074 in guile checks.
10075 * configure: Regenerate.
10076
edcc890f
YQ
100772014-02-11 Yao Qi <yao@codesourcery.com>
10078
10079 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10080 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10081 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10082 * gnu-nat.c (gnu_xfer_memory): Likewise.
10083 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10084 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10085 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10086 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10087
9b409511
YQ
100882014-02-11 Yao Qi <yao@codesourcery.com>
10089
10090 * target.h (enum target_xfer_error): Rename to ...
10091 (enum target_xfer_status): ... it. New. All users updated.
10092 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10093 New.
10094 (TARGET_XFER_STATUS_ERROR_P): New macro.
10095 (target_xfer_error_to_string): Remove declaration.
10096 (target_xfer_status_to_string): Declare.
10097 (target_xfer_partial_ftype): Adjust it.
10098 (struct target_ops) <to_xfer_partial>: Return
10099 target_xfer_status. Add argument xfered_len. Update
10100 comments.
10101 * target.c (target_xfer_error_to_string): Rename to ...
10102 (target_xfer_status_to_string): ... it. New. All callers
10103 updated.
10104 (target_read_live_memory): Likewise. Call target_xfer_partial
10105 instead of target_read.
10106 (memory_xfer_live_readonly_partial): Return
10107 target_xfer_status. Add argument xfered_len.
10108 (raw_memory_xfer_partial): Likewise.
10109 (memory_xfer_partial_1): Likewise.
10110 (memory_xfer_partial): Likewise.
10111 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10112 properly. Update debug message.
10113 (default_xfer_partial, current_xfer_partial): Likewise.
10114 (target_write_partial): Likewise.
10115 (target_read_partial): Likewise. All callers updated.
10116 (read_whatever_is_readable): Likewise.
10117 (target_write_with_progress): Likewise.
10118 (target_read_alloc_1): Likewise.
10119
10120 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10121 * auxv.c (procfs_xfer_auxv): Likewise.
10122 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10123 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10124 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10125 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10126 * corefile.c (read_memory): Adjust.
10127 * corelow.c (core_xfer_partial): Likewise.
10128 * ctf.c (ctf_xfer_partial): Likewise.
10129 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10130 updated.
10131 (darwin_xfer_partial): Likewise.
10132 * exec.c (section_table_xfer_memory_partial): Likewise. All
10133 callers updated.
10134 (exec_xfer_partial): Likewise.
10135 * exec.h (section_table_xfer_memory_partial): Update
10136 declaration.
10137 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10138 negative.
10139 (gnu_xfer_partial): Likewise.
10140 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10141 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10142 (ia64_hpux_xfer_solib_got): Likewise.
10143 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10144 type of 'partial_len' to ULONGEST.
10145 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10146 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10147 (linux_nat_xfer_partial): Likewise.
10148 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10149 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10150 * monitor.c (monitor_xfer_memory): Likewise.
10151 (monitor_xfer_partial): Likewise.
10152 * procfs.c (procfs_xfer_partial): Likewise.
10153 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10154 * record-full.c (record_full_xfer_partial): Likewise.
10155 (record_full_core_xfer_partial): Likewise.
10156 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10157 (gdbsim_xfer_partial): Likewise.
10158 * remote.c (remote_write_bytes_aux): Likewise. All callers
10159 updated.
10160 (remote_write_bytes, remote_read_bytes): Likewise. All
10161 callers updated.
10162 (remote_flash_erase): Likewise. All callers updated.
10163 (remote_write_qxfer): Likewise. All callers updated.
10164 (remote_read_qxfer): Likewise. All callers updated.
10165 (remote_xfer_partial): Likewise.
10166 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10167 (rs6000_xfer_shared_libraries): Likewise.
10168 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10169 (sol_thread_xfer_partial): Likewise.
10170 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10171 (sparc_xfer_partial): Likewise.
10172 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10173 updated.
10174 (spu_xfer_partial): Likewise.
10175 * spu-multiarch.c (spu_xfer_partial): Likewise.
10176 * tracepoint.c (tfile_xfer_partial): Likewise.
10177 * windows-nat.c (windows_xfer_memory): Likewise.
10178 (windows_xfer_shared_libraries): Likewise.
10179 (windows_xfer_partial): Likewise.
10180 * valprint.c: Replace 'target_xfer_error' with
10181 'target_xfer_status' in comments.
10182
a8e63083
JB
101832014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10184
10185 Checked in by Joel Brobecker <brobecker@adacore.com>.
10186 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10187
e86b67d3
JB
101882014-02-11 Joel Brobecker <brobecker@adacore.com>
10189
10190 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10191 function parameters.
10192
4b7d1f7f
WN
101932014-02-10 Will Newton <will.newton@linaro.org>
10194
10195 * elfread.c (elf_rel_plt_read): Look for a .got section if
10196 looking up .got.plt fails.
10197 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10198 on address passed to elf_gnu_ifunc_record_cache.
10199 (elf_gnu_ifunc_resolve_addr): Likewise.
10200 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10201
961842b2
JM
102022014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10203
10204 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10205 (X_RETTURN): New macro.
10206 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10207
10208 * sparc64-tdep.c (sparc64_init_abi): Hook
10209 sparc_in_function_epilogue_p.
10210
3f03e7b1
GB
102112014-02-10 Gary Benson <gbenson@redhat.com>
10212
10213 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10214 Rename name_matcher to symbol_matcher.
10215
96f861ef
GB
102162014-02-10 Gary Benson <gbenson@redhat.com>
10217
10218 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10219 Use expand_symtabs_file_matcher_ftype and
10220 expand_symtabs_symbol_matcher_ftype.
10221
ee01b665
JB
102222014-02-10 Joel Brobecker <brobecker@adacore.com>
10223
10224 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10225 (struct ada_symbol_cache): New.
10226 (ada_free_symbol_cache): Forward declare.
10227 (struct ada_pspace_data): New.
10228 (ada_pspace_data_handle): New static global.
10229 (get_ada_pspace_data, ada_pspace_data_cleanup)
10230 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10231 (cache_space, cache): Delete, now folded inside struct
10232 ada_pspace_data.
10233 (ada_get_symbol_cache): New function.
10234 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10235 implementation.
10236 (_initialize_ada_language): Remove initialization of cache_space.
10237 Move call to observer_attach_inferior_exit up, grouping it
10238 with the other observer registrations inside this function.
10239 Rename command to be more general. Add call to
10240 register_program_space_data_with_cleanup.
10241
143adbbf
JB
102422014-02-10 Joel Brobecker <brobecker@adacore.com>
10243
10244 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10245 ada_new_objfile_observer.
10246 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10247 (_initialize_tasks): Update uses of ada_new_objfile_observer
10248 and ada_tasks_normal_stop_observer.
10249
aa4fb036
JB
102502014-02-10 Joel Brobecker <brobecker@adacore.com>
10251
10252 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10253 returned by the 'Length attribute to integer.
10254
9dee8cc6
JB
102552014-02-10 Joel Brobecker <brobecker@adacore.com>
10256
10257 * ada-lang.c (_initialize_ada_language): Initialize
10258 cache_space obstack.
10259
3d9434b5
JB
102602014-02-10 Joel Brobecker <brobecker@adacore.com>
10261
10262 * ada-lang.c (HASH_SIZE): New macro.
10263 (struct cache_entry): New type.
10264 (cache_space, cache): New static globals.
10265 (ada_clear_symbol_cache, find_entry): New functions.
10266 (lookup_cached_symbol, cache_symbol): Implement.
10267 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10268 (_initialize_ada_language): Attach ada_new_objfile_observer
10269 and ada_free_objfile_observer.
10270
f0c5f9b2
JB
102712014-02-10 Joel Brobecker <brobecker@adacore.com>
10272
10273 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10274 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10275 struct block * parameter.
10276 (ada_lookup_symbol_list_worker): Constify local variable "block".
10277 Remove cast which is no longer necessary.
10278
ed3ef339
DE
102792014-02-10 Doug Evans <xdje42@gmail.com>
10280
10281 Add Guile as an extension language.
10282 * NEWS: Mention Guile scripting.
10283 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10284 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10285 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10286 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10287 (CLIBS): Add GUILE_LIBS.
10288 (install-guile): New rule.
10289 (guile.o): New rule.
10290 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10291 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10292 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10293 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10294 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10295 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10296 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10297 * configure.ac: New option --with-guile.
10298 * configure: Regenerate.
10299 * config.in: Regenerate.
10300 * auto-load.c: Remove #include "python/python.h". Add #include
10301 "gdb/section-scripts.h".
10302 (source_section_scripts): Handle Guile scripts.
10303 (_initialize_auto_load): Add name of Guile objfile script to
10304 scripts-directory help text.
10305 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10306 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10307 (struct breakpoint): New member scm_bp_object.
10308 * defs.h (enum command_control_type): New value guile_control.
10309 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10310 "extension.h".
10311 (show_user): Update comment.
10312 (_initialize_cli_cmds): Update help text for "show user". Update help
10313 text for max-user-call-depth.
10314 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10315 "extension.h".
10316 (multi_line_command_p): Add guile_control.
10317 (print_command_lines): Handle guile_control.
10318 (execute_control_command, recurse_read_control_structure): Ditto.
10319 (process_next_line): Recognize "guile" commands.
10320 * disasm.c (gdb_disassemble_info): Make non-static.
10321 * disasm.h: #include "dis-asm.h".
10322 (struct gdbarch): Add forward decl.
10323 (gdb_disassemble_info): Declare.
10324 * extension.c: #include "guile/guile.h".
10325 (extension_languages): Add guile.
10326 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10327 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10328 * gdbtypes.c (get_unsigned_type_max): New function.
10329 (get_signed_type_minmax): New function.
10330 * gdbtypes.h (get_unsigned_type_max): Declare.
10331 (get_signed_type_minmax): Declare.
10332 * guile/README: New file.
10333 * guile/guile-internal.h: New file.
10334 * guile/guile.c: New file.
10335 * guile/guile.h: New file.
10336 * guile/scm-arch.c: New file.
10337 * guile/scm-auto-load.c: New file.
10338 * guile/scm-block.c: New file.
10339 * guile/scm-breakpoint.c: New file.
10340 * guile/scm-disasm.c: New file.
10341 * guile/scm-exception.c: New file.
10342 * guile/scm-frame.c: New file.
10343 * guile/scm-gsmob.c: New file.
10344 * guile/scm-iterator.c: New file.
10345 * guile/scm-lazy-string.c: New file.
10346 * guile/scm-math.c: New file.
10347 * guile/scm-objfile.c: New file.
10348 * guile/scm-ports.c: New file.
10349 * guile/scm-pretty-print.c: New file.
10350 * guile/scm-safe-call.c: New file.
10351 * guile/scm-string.c: New file.
10352 * guile/scm-symbol.c: New file.
10353 * guile/scm-symtab.c: New file.
10354 * guile/scm-type.c: New file.
10355 * guile/scm-utils.c: New file.
10356 * guile/scm-value.c: New file.
10357 * guile/lib/gdb.scm: New file.
10358 * guile/lib/gdb/boot.scm: New file.
10359 * guile/lib/gdb/experimental.scm: New file.
10360 * guile/lib/gdb/init.scm: New file.
10361 * guile/lib/gdb/iterator.scm: New file.
10362 * guile/lib/gdb/printing.scm: New file.
10363 * guile/lib/gdb/types.scm: New file.
10364 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10365 (VPATH): Add $(GUILE_SRCDIR).
10366 (GUILE_DIR): New variable.
10367 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10368 (all): Add stamp-guile dependency.
10369 (stamp-guile): New rule.
10370 (clean-guile, install-guile, uninstall-guile): New rules.
10371 (install-only): Add install-guile dependency.
10372 (uninstall): Add uninstall-guile dependency.
10373 (clean): Add clean-guile dependency.
10374
ac020ec5
DE
103752014-02-09 Doug Evans <xdje42@gmail.com>
10376
10377 Revert this patch (which I approved, mea culpa).
10378
10379 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10380
10381 * Makefile.in (all-lib): Remove.
10382 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10383
2a081c59
JK
103842014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10385
10386 Fix Python stack corruption.
10387 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10388 gdb_py_longest.
10389
0a6bd22d
MK
103902014-02-08 Mark Kettenis <kettenis@gnu.org>
10391
10392 * Makefile.in (all-lib): Remove.
10393 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10394
1a860409
DE
103952014-02-07 Doug Evans <dje@google.com>
10396
10397 * extension-priv.h (extension_language_script_ops): Add comment.
10398 (extension_language_ops): Add comment.
caf5a491 10399 (active_ext_lang_state): Fix typo in comment.
1a860409 10400
d137e6dc
PA
104012014-02-07 Pedro Alves <palves@redhat.com>
10402
0dcb32c3 10403 PR breakpoints/16292
d137e6dc
PA
10404 * infrun.c (handle_signal_stop) <signal arrives while stepping
10405 over a breakpoint>: Switch back to the stepping thread.
10406
ce6d0892
YQ
104072014-02-07 Yao Qi <yao@codesourcery.com>
10408
10409 * target.c (target_xfer_partial): Return zero if LEN is zero.
10410
2ed4b548
YQ
104112014-02-07 Yao Qi <yao@codesourcery.com>
10412
10413 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10414 (ld_so_xfer_auxv): Likewise.
10415 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10416 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10417 * corelow.c (core_xfer_partial): Likewise.
10418 * ctf.c (ctf_xfer_partial): Likewise.
10419 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10420 (darwin_xfer_partial): Likewise.
10421 * exec.c (exec_xfer_partial): Likewise.
10422 * gnu-nat.c (gnu_xfer_partial): Likewise.
10423 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10424 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10425 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10426 * linux-nat.c (linux_xfer_siginfo): Likewise.
10427 (linux_proc_xfer_spu): Likewise.
10428 * procfs.c (procfs_xfer_partial): Likewise.
10429 * record-full.c (record_full_xfer_partial): Likewise.
10430 (record_full_core_xfer_partial): Likewise.
10431 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10432 * remote.c (remote_write_qxfer): Likewise.
10433 (remote_write_qxfer, remote_read_qxfer): Likewise.
10434 (remote_xfer_partial): Likewise.
10435 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10436 (rs6000_xfer_shared_libraries): Likewise.
10437 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10438 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10439 (spu_xfer_partial): Likewise.
10440 * target.c (memory_xfer_partial_1): Likewise.
10441 * tracepoint.c (tfile_xfer_partial): Likewise.
10442 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10443 (windows_xfer_partial): Likewise.
10444
c09f20e4
YQ
104452014-02-07 Yao Qi <yao@codesourcery.com>
10446
10447 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10448 comments.
10449 (core_xfer_shared_libraries_aix): Likewise.
10450 * gdbarch.c, gdbarch.h: Regenerated.
10451 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10452 ULONGEST. Change 'len_avail' type to ULONGEST.
10453 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10454 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10455 declaration.
10456 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10457
8635b3bf
YQ
104582014-02-07 Yao Qi <yao@codesourcery.com>
10459
10460 * corefile.c (memory_error): Get 'exception' from ERR and pass
10461 'exception' to throw_error.
10462
6dddc817
DE
104632014-02-06 Doug Evans <xdje42@gmail.com>
10464
10465 * configure.ac (libpython checking): Remove all but python.o from
10466 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10467 * configure: Regenerate.
10468
10469 * Makefile.in (SFILES): Add extension.c.
10470 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10471 (COMMON_OBS): Add extension.o.
10472 * extension.h: New file.
10473 * extension-priv.h: New file.
10474 * extension.c: New file.
10475
10476 * python/python-internal.h: #include "extension.h".
10477 (gdbpy_auto_load_enabled): Declare.
10478 (gdbpy_apply_val_pretty_printer): Declare.
10479 (gdbpy_apply_frame_filter): Declare.
10480 (gdbpy_preserve_values): Declare.
10481 (gdbpy_breakpoint_cond_says_stop): Declare.
10482 (gdbpy_breakpoint_has_cond): Declare.
10483 (void source_python_script_for_objfile): Delete.
10484 * python/python.c: #include "extension-priv.h".
10485 Delete inclusion of "observer.h".
10486 (extension_language_python): Moved here and renamed from
10487 script_language_python in py-auto-load.c.
10488 Redefined to be of type extension_language_defn.
10489 (python_extension_script_ops): New global.
10490 (python_extension_ops): New global.
10491 (struct python_env): New member previous_active.
10492 (restore_python_env): Call restore_active_ext_lang.
10493 (ensure_python_env): Call set_active_ext_lang.
10494 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10495 New arg extlang.
10496 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10497 New arg extlang.
10498 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10499 New arg extlang.
10500 (gdbpy_eval_from_control_command): Renamed from
10501 eval_python_from_control_command, made static. New arg extlang.
10502 (gdbpy_source_script) Renamed from source_python_script, made static.
10503 New arg extlang.
10504 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10505 result to int. New arg extlang.
10506 (gdbpy_source_objfile_script): Renamed from
10507 source_python_script_for_objfile, made static. New arg extlang.
10508 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10509 static. New args extlang, extlang_printers. Change result type to
10510 "void".
10511 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10512 static. New arg extlang. Rename arg printers to extlang_printers
10513 and change type to ext_lang_type_printers *.
10514 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10515 static. Replace argument arg with extlang, extlang_printers.
10516 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10517 (!HAVE_PYTHON, source_python_script): Delete.
10518 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10519 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10520 (!HAVE_PYTHON, start_type_printers): Delete.
10521 (!HAVE_PYTHON, apply_type_printers): Delete.
10522 (!HAVE_PYTHON, free_type_printers): Delete.
10523 (_initialize_python): Delete call to observer_attach_before_prompt.
10524 (finalize_python): Set/restore active extension language.
10525 (gdbpy_finish_initialization) Renamed from
10526 finish_python_initialization, made static. New arg extlang.
10527 (gdbpy_initialized): New function.
10528 * python/python.h: #include "extension.h". Delete #include
10529 "value.h", "mi/mi-cmds.h".
10530 (extension_language_python): Declare.
10531 (GDBPY_AUTO_FILE_NAME): Delete.
10532 (enum py_bt_status): Moved to extension.h and renamed to
10533 ext_lang_bt_status.
10534 (enum frame_filter_flags): Moved to extension.h.
10535 (enum py_frame_args): Moved to extension.h and renamed to
10536 ext_lang_frame_args.
10537 (finish_python_initialization): Delete.
10538 (eval_python_from_control_command): Delete.
10539 (source_python_script): Delete.
10540 (apply_val_pretty_printer): Delete.
10541 (apply_frame_filter): Delete.
10542 (preserve_python_values): Delete.
10543 (gdbpy_script_language_defn): Delete.
10544 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10545 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10546
10547 * auto-load.c: #include "extension.h".
10548 (GDB_AUTO_FILE_NAME): Delete.
10549 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10550 (script_language_gdb): Delete, moved to extension.c and renamed to
10551 extension_language_gdb.
10552 (source_gdb_script_for_objfile): Delete.
10553 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10554 (loaded_script): Change type of language member to
10555 struct extension_language_defn *.
10556 (init_loaded_scripts_info): Initialize
10557 unsupported_script_warning_printed.
10558 (maybe_add_script): Make static. Change type of language arg to
10559 struct extension_language_defn *.
10560 (clear_section_scripts): Reset unsupported_script_warning_printed.
10561 (auto_load_objfile_script_1): Rewrite to use extension language API.
10562 (auto_load_objfile_script): Make public. Remove support-compiled-in
10563 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10564 (source_section_scripts): Rewrite to use extension language API.
10565 (load_auto_scripts_for_objfile): Rewrite to use
10566 auto_load_scripts_for_objfile.
10567 (collect_matching_scripts_data): Change type of language member to
10568 struct extension_language_defn *.
10569 (auto_load_info_scripts): Change type of language arg to
10570 struct extension_language_defn *.
10571 (unsupported_script_warning_print): New function.
10572 (script_not_found_warning_print): Make static.
10573 (_initialize_auto_load): Rewrite construction of scripts-directory
10574 help.
10575 * auto-load.h (struct objfile): Add forward decl.
10576 (struct script_language): Delete.
10577 (struct auto_load_pspace_info): Add forward decl.
10578 (struct extension_language_defn): Add forward decl.
10579 (maybe_add_script): Delete.
10580 (auto_load_objfile_script): Declare.
10581 (script_not_found_warning_print): Delete.
10582 (auto_load_info_scripts): Update prototype.
10583 (auto_load_gdb_scripts_enabled): Declare.
10584 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10585 auto_load_python_scripts_enabled and made public.
10586 (script_language_python): Delete, moved to python.c.
10587 (gdbpy_script_language_defn): Delete.
10588 (info_auto_load_python_scripts): Update to use
10589 extension_language_python.
10590
10591 * breakpoint.c (condition_command): Replace call to
10592 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10593 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10594 with call to breakpoint_ext_lang_cond_says_stop.
10595 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10596 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10597 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10598 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10599 New arg slang.
10600 (local_setattro): Print name of extension language with existing
10601 stop condition.
10602
10603 * valprint.c (val_print, value_print): Update to call
10604 apply_ext_lang_val_pretty_printer.
10605 * cp-valprint.c (cp_print_value): Update call to
10606 apply_ext_lang_val_pretty_printer.
10607 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10608 (gdbpy_apply_val_pretty_printer): Renamed from
10609 apply_val_pretty_printer. New arg extlang.
10610 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10611
10612 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10613 extension language API.
10614 * cli/cli-script.c (execute_control_command): Update to call
10615 eval_ext_lang_from_control_command.
10616
10617 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10618 enum ext_lang_bt_status values. Update call to
10619 apply_ext_lang_frame_filter.
10620 (mi_cmd_stack_list_locals): Ditto.
10621 (mi_cmd_stack_list_args): Ditto.
10622 (mi_cmd_stack_list_variables): Ditto.
10623 * mi/mi-main.c: Delete #include "python/python-internal.h".
10624 Add #include "extension.h".
10625 (mi_cmd_list_features): Replace reference to python internal variable
10626 gdb_python_initialized with call to ext_lang_initialized_p.
10627
10628 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10629 Update to use enum ext_lang_frame_args. Update to call
10630 apply_ext_lang_frame_filter.
10631 * python/py-framefilter.c (extract_sym): Update to use enum
10632 ext_lang_bt_status.
10633 (extract_value, py_print_type, py_print_value): Ditto.
10634 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10635 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10636 (py_print_frame): Ditto.
10637 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10638 New arg extlang. Update to use enum ext_lang_bt_status.
10639
10640 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10641 finish_python_initialization. Replace with call to
10642 finish_ext_lang_initialization.
10643
10644 * typeprint.c (do_free_global_table): Update to call
10645 free_ext_lang_type_printers.
10646 (create_global_typedef_table): Update to call
10647 start_ext_lang_type_printers.
10648 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10649 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10650 (type_print_options): Change type of global_printers from "void *"
10651 to "struct ext_lang_type_printers *".
10652
10653 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10654 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10655 (gdbpy_preserve_values): Renamed from preserve_python_values.
10656 New arg extlang.
10657 (!HAVE_PYTHON, preserve_python_values): Delete.
10658
10659 * utils.c (quit_flag): Delete, moved to extension.c.
10660 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10661 extension.c.
10662
10663 * eval.c: Delete #include "python/python.h".
10664 * main.c: Delete #include "python/python.h".
10665
10666 * defs.h: Update comment.
10667
6af79985
JB
106682014-02-06 Joel Brobecker <brobecker@adacore.com>
10669
10670 GDB 7.7 released.
10671
12c5175d
MK
106722014-02-05 Mark Kettenis <kettenis@gnu.org>
10673
10674 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10675 defined.
10676
8dc5b319
YQ
106772014-02-05 Yao Qi <yao@codesourcery.com>
10678
10679 * remote.c (remote_pass_signals): Remove local 'buf' and use
10680 rs->buf.
10681 (remote_program_signals): Likewise.
10682
de7b2893
YQ
106832014-02-05 Yao Qi <yao@codesourcery.com>
10684
10685 * ctf.c: Include "inferior.h" and "gdbthread.h".
10686 (CTF_PID): A new macro.
10687 (ctf_open): Call inferior_appeared and add_thread_silent.
10688 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10689 (ctf_thread_alive): New function.
10690 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10691
66d032ac
YQ
106922014-02-05 Yao Qi <yao@codesourcery.com>
10693
10694 Revert this patch:
10695
10696 2013-05-24 Yao Qi <yao@codesourcery.com>
10697
10698 * tracepoint.c (TFILE_PID): Remove.
10699 (tfile_open): Don't add thread and inferior.
10700 (tfile_close): Don't set 'inferior_ptid'. Don't call
10701 exit_inferior_silent.
10702 (tfile_thread_alive): Remove.
10703 (init_tfile_ops): Don't set field 'to_thread_alive' of
10704 tfile_ops.
10705
f4ccffad
CE
107062014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10707
10708 * remote.c (remote_start_remote): Call remote_check_symbols even
10709 if only symbol-file (not file) has been given.
10710
591a12a1
UW
107112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10712
10713 * gdbarch.sh (skip_entrypoint): New callback.
10714 * gdbarch.c, gdbarch.h: Regenerate.
10715 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10716 * infrun.c (fill_in_stop_func): Likewise.
10717 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10718 (ppc_elfv2_elf_make_msymbol_special): New function.
10719 (ppc_elfv2_skip_entrypoint): Likewise.
10720 (ppc_linux_init_abi): Install them for ELFv2.
10721
cc0e89c5
UW
107222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10723
10724 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10725 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10726 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10727 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10728 structures returned in GPRs.
10729
52f548e4
UW
107302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10731
10732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10733 offset to the stack parameter list for the ELFv2 ABI.
10734
d4094b6a
UW
107352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10736
10737 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10738 set_gdbarch_convert_from_func_ptr_addr and
10739 set_gdbarch_elf_make_msymbol_special for ELFv1.
10740 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10741 function descriptors on ELFv1.
10742 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10743 set up r12 at function entry.
10744
cd453cd0
UW
107452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10746
10747 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10748 (struct gdbarch_tdep): New member elf_abi.
10749
10750 * rs6000-tdep.c: Include "elf/ppc64.h".
10751 (rs6000_gdbarch_init): Detect ELF ABI version.
10752
0ff3e01f
UW
107532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10754
10755 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10756 within a register pair holding a DFP 128-bit value on little-endian.
10757 (ppc64_sysv_abi_return_value_base): Likewise.
10758 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10759 (dfp_pseudo_register_write): Likewise.
10760
5b757e5d
UW
107612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10762
10763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10764 offset on little-endian when passing _Decimal32.
10765 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10766
084ee545
UW
107672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10768
10769 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10770 of the overlapped FP register within the VSX register on little-
10771 endian platforms.
10772 (efpr_pseudo_register_write): Likewise.
10773
d63167af
UW
107742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10775
10776 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10777 offset on little-endian when passing small structures.
10778
e765b44c
UW
107792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10780
10781 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10782 (struct ppc64_sysv_argpos): New data structure.
10783 (ppc64_sysv_abi_push_float): Remove.
10784 (ppc64_sysv_abi_push_val): New function.
10785 (ppc64_sysv_abi_push_integer): Likewise.
10786 (ppc64_sysv_abi_push_freg): Likewise.
10787 (ppc64_sysv_abi_push_vreg): Likewise.
10788 (ppc64_sysv_abi_push_param): Likewise.
10789 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10790 (ppc64_sysv_abi_return_value_base): New function.
10791 (ppc64_sysv_abi_return_value): Refactor to use it.
10792
36c24d95
UW
107932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10794
10795 * NEWS: Document new target powerpc64le-*-linux*.
10796
26fd9228
MK
107972014-02-04 Mark Kettenis <kettenis@gnu.org>
10798
10799 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10800 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10801 core dumps.
10802 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10803 register set used in ELF core dumps. Add floating-point register set.
10804
c5bb7362
KB
108052014-02-03 Kevin Buettner <kevinb@redhat.com>
10806
74228e77 10807 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10808 dwarf2_to_gdb[] table using symbolic constants. Adjust
10809 penultimate entry from number representing the PC register
10810 to symbolic constant representing the MDR register. Add
10811 constant for the PC register to the end of the table.
10812
af09351e
MK
108132014-02-03 Mark Kettenis <kettenis@gnu.org>
10814
10815 * bsd-kvm.c: Include <sys/param.h>
10816
8507e05d
MK
108172014-02-03 Mark Kettenis <kettenis@gnu.org>
10818
10819 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10820
ae56bfb8
JB
108212014-01-31 Joel Brobecker <brobecker@adacore.com>
10822
10823 * ada-lang.h (clear_ada_sym_cache): Delete.
10824
718ee4dc
UW
108252014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10826
10827 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10828
401e27fd
JM
108292014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10830
10831 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10832 the sigreturn register save area only if the syscall is
10833 sigreturn.
10834
a7c88acd
JB
108352014-01-29 Joel Brobecker <brobecker@adacore.com>
10836
10837 * valops.c (value_slice): Minor reformatting.
10838
fa0079ea
UW
108392014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10840
10841 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10842
c6044dd1
JB
108432014-01-28 Joel Brobecker <brobecker@adacore.com>
10844
10845 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10846 New static globals.
10847 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10848 (ada_ignore_descriptive_types_p): New static global.
10849 (find_parallel_type_by_descriptive_type): Return immediately
10850 if ada_ignore_descriptive_types_p is set.
10851 (_initialize_ada_language): Register new commands "maintenance
10852 set ada", "maintenance show ada", "maintenance set ada
10853 ignore-descriptive-types" and "maintenance show ada
10854 ignore-descriptive-types".
10855 * NEWS: Add entry for new "maint ada set/show
10856 ignore-descriptive-types" commands.
10857
568e808b
MM
108582014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * record-btrace.c (record_btrace_close): Call btrace_teardown
10861 for all threads.
10862
467d141b
JB
108632014-01-27 Joel Brobecker <brobecker@adacore.com>
10864
10865 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10866 "ui-out.h".
10867
fb151210
JB
108682014-01-27 Joel Brobecker <brobecker@adacore.com>
10869
10870 * ada-typeprint (type_is_full_subrange_of_target_type):
10871 New function.
10872 (print_range): Add parameter bounds_prefered_p. If not set,
10873 try printing range types using the name of their base type.
10874 (print_range_type): Add parameter bounds_prefered_p.
10875 Use it in call to print_range.
10876 (print_array_type, ada_print_type): Update calls to print_range
10877 and print_range_type.
10878
aba02109
JB
108792014-01-27 Joel Brobecker <brobecker@adacore.com>
10880
10881 * ada-typeprint.c (print_array_type, print_choices, print_range)
10882 (print_range_bound, print_dynamic_range_bound, print_range_type):
10883 Remove declaration.
10884
e62e21fd
JB
108852014-01-27 Joel Brobecker <brobecker@adacore.com>
10886
10887 * ada-typeprint.c (print_range): Add missing empty line
10888 after local declaration.
10889
859cf5d1
JB
108902014-01-27 Joel Brobecker <brobecker@adacore.com>
10891
10892 * ada-valprint.c (print_optional_low_bound): Get index_type's
10893 target type for as long as it is a TYPE_CODE_RANGE.
10894
25790f6f
JB
108952014-01-27 Joel Brobecker <brobecker@adacore.com>
10896
10897 * procfs.c (procfs_make_note_section): Remove assertion and
10898 associated comment.
10899
6b6aa828
YQ
109002014-01-24 Yao Qi <yao@codesourcery.com>
10901
10902 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10903 * corelow.c (get_core_siginfo): Likewise.
10904
5d6df423
YQ
109052014-01-24 Yao Qi <yao@codesourcery.com>
10906
10907 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10908 ULONGEST. Don't check 'len' is negative.
10909 (remote_write_bytes): Change type of 'len' to ULONGEST.
10910
83b645b8
TT
109112014-01-23 Tom Tromey <tromey@redhat.com>
10912
10913 PR python/16485:
10914 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10915 Handle exception from frame.block.
10916 (FrameVars.fetch_frame_locals): Likewise.
10917
0740f8d8
TT
109182014-01-23 Tom Tromey <tromey@redhat.com>
10919
10920 PR python/16487:
10921 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10922 on a NULL pointer. Move "goto error" to correct place.
10923
21909fa1
TT
109242014-01-23 Tom Tromey <tromey@redhat.com>
10925
10926 PR python/16491:
10927 * python/py-framefilter.c (apply_frame_filter): Call
10928 ensure_python_env after computing gdbarch.
10929
17fde6d0
YQ
109302014-01-23 Yao Qi <yao@codesourcery.com>
10931
10932 * target.c (raw_memory_xfer_partial): Change argument type
10933 from void * to gdb_byte *.
10934 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10935
87ce2a04
DE
109362014-01-22 Doug Evans <dje@google.com>
10937
10938 New gdbserver option --debug-format=timestamp.
10939 * NEWS: Mention it.
10940
237b092b
AA
109412014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10942
10943 * syscalls/s390x-linux.xml: New file.
10944 * syscalls/s390-linux.xml: New file.
10945 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10946 (XML_SYSCALL_FILENAME_S390X): Likewise.
10947 (op_svc): New enum value for SVC opcode.
10948 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10949 (s390_linux_get_syscall_number): New function.
10950 (s390_gdbarch_init): Register '*get_syscall_number' and the
10951 syscall xml file name.
10952 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10953 "s390-linux.xml" and "s390x-linux.xml".
10954 * NEWS: Announce new feature.
10955
54bff650
BS
109562014-01-22 Baruch Siach <baruch@tkos.co.il>
10957
10958 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10959
14e361d7
PA
109602014-01-22 Pedro Alves <palves@redhat.com>
10961
10962 * xtensa-config.c: Include defs.h.
10963
46bbb3ed
JB
109642014-01-22 Joel Brobecker <brobecker@adacore.com>
10965
10966 * common/common-utils.h: Add "ARI:" comment beside __func__
10967 reference.
10968
3a80edfc
JB
109692014-01-22 Joel Brobecker <brobecker@adacore.com>
10970
10971 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10972 documentation a bit.
10973
4869db5e
RM
109742014-01-21 Roland McGrath <mcgrathr@google.com>
10975
10976 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10977 * configure: Regenerate.
10978 * aclocal.m4: Regenerate.
10979 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10980 New substituted variables.
10981 (install-strip): New target.
10982 (INSTALL_SCRIPT): New substituted variable.
10983 (FLAGS_TO_PASS): Add it.
10984 (install-only): Use $(INSTALL_SCRIPT) rather than
10985 $(INSTALL_PROGRAM) for gcore.
10986
9ea4267d
TT
109872014-01-20 Tom Tromey <tromey@redhat.com>
10988
10989 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10990 together.
10991
1f2bdf09
TT
109922014-01-20 Tom Tromey <tromey@redhat.com>
10993
10994 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10995 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10996 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10997 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10998 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10999 (struct cmd_list_element) <flags>: Remove.
11000 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11001 doc_allocated>: New fields.
11002 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11003 bitfields.
11004 * maint.c (maintenance_do_deprecate): Update.
11005 * top.c (execute_command): Update.
11006
e671835b
BS
110072014-01-20 Baruch Siach <baruch@tkos.co.il>
11008
11009 * xtensa-linux-nat.c: Include asm/ptrace.h.
11010
50367cd2
IB
110112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11012
11013 * Makefile.in (SFILES): Add d-support.c.
11014 (COMMON_OBS): Add d-support.o.
11015 * d-lang.h (d_parse_symbol): Add comment, now defined in
11016 d-support.c.
11017 * d-lang.c (parse_call_convention)
11018 (parse_attributes, parse_function_types)
11019 (parse_function_args, parse_type, parse_identifier)
11020 (call_convention_p, d_parse_symbol): Move functions to ...
11021 * d-support.c: ... New file.
11022
ec9f644a
IB
110232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11024
11025 * d-lang.h (d_parse_symbol): Add declaration.
11026 * d-lang.c (extract_identifiers)
11027 (extract_type_info): Remove functions.
11028 (parse_call_convention, parse_attributes)
11029 (parse_function_types, parse_function_args)
11030 (parse_type, parse_identifier, call_convention_p)
11031 (d_parse_symbol): New functions.
11032 (d_demangle): Use d_parse_symbol to demangle D symbols.
11033
94b1b47e
IB
110342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11035
11036 * d-lang.h (struct builtin_d_type): New data type.
11037 (builtin_d_type): Add declaration.
11038 * d-lang.c (d_language_arch_info, build_d_types)
11039 (builtin_d_type): New functions.
11040 (enum d_primitive_types): New data type.
11041 (d_language_defn): Change c_language_arch_info to
11042 d_language_arch_info.
11043 (d_type_data): New static variable.
11044 (_initialize_d_language): Initialize d_type_data.
11045
63778547
IB
110462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11047
11048 * d-lang.h (d_main_name): Add declaration.
11049 * d-lang.c (d_main_name): New function.
11050 * symtab.c (find_main_name): Add call to d_main_name.
11051
3271ba66
IB
110522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11053
11054 * d-lang.c (d_language_defn): Change macro_expansion_c to
11055 macro_expansion_no.
11056
d36b3012
IB
110572014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11058
11059 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11060
c90a6fb7
SDJ
110612014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11062
11063 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11064 gdb_exception" declaration.
11065 * remote.c (getpkt_or_notif_sane): Likewise.
11066
749234e5
DE
110672014-01-17 Doug Evans <dje@google.com>
11068
11069 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11070 function, contents of dirnames_to_char_ptr_vec_append moved here.
11071 (delim_string_to_char_ptr_vec): New function.
11072 (dirnames_to_char_ptr_vec_append): Rewrite.
11073 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11074
df049a58
DE
110752014-01-17 Doug Evans <dje@google.com>
11076
11077 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11078 and moved here ...
11079 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11080 #include "common-utils.h".
11081 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11082 * common/vec.h (VEC_ASSERT_PASS): Update.
11083 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11084 (MACH_CHECK_ERROR): Update.
11085
69f97648
SM
110862014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11087
11088 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11089 comments.
11090 * gdbarch.h: Regenerate.
11091
98b1cfdc
TT
110922014-01-16 Tom Tromey <tromey@redhat.com>
11093
11094 * value.c (struct value) <regnum>: Move earlier.
11095
77a19445
TT
110962014-01-16 Tom Tromey <tromey@redhat.com>
11097
11098 * remote.c (extended_remote_create_inferior): Rename from
11099 extended_remote_create_inferior_1. Add "ops" argument. Remove
11100 old implementation.
11101
62261490
PA
111022014-01-16 Pedro Alves <palves@redhat.com>
11103
11104 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11105 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11106 the backchain.
11107
4d65956b
DE
111082014-01-16 Doug Evans <dje@google.com>
11109
11110 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11111
52834460
MM
111122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11113
11114 * btrace.h (btrace_thread_flag): New.
11115 (struct btrace_thread_info) <flags>: New.
11116 * record-btrace.c (record_btrace_resume_thread)
11117 (record_btrace_find_thread_to_move, btrace_step_no_history)
11118 (btrace_step_stopped, record_btrace_start_replaying)
11119 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11120 (record_btrace_find_resume_thread): New.
11121 (record_btrace_resume, record_btrace_wait): Extend.
11122 (record_btrace_can_execute_reverse): New.
11123 (record_btrace_open): Fail in non-stop mode.
11124 (record_btrace_set_replay): Split into this, ...
11125 (record_btrace_stop_replaying): ... this, ...
11126 (record_btrace_clear_histories): ... and this.
11127 (init_record_btrace_ops): Init to_can_execute_reverse.
11128 * NEWS: Announce it.
11129
118e6252
MM
111302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11131
11132 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11133 (forward_target_decr_pc_after_break)
11134 (target_decr_pc_after_break): New.
11135 * target.c (forward_target_decr_pc_after_break)
11136 (target_decr_pc_after_break): New.
11137 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11138 instead of gdbarch_decr_pc_after_break.
11139 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11140 instead of gdbarch_decr_pc_after_break.
11141 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11142 instead of gdbarch_decr_pc_after_break.
11143 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11144 instead of gdbarch_decr_pc_after_break.
11145 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11146 instead of gdbarch_decr_pc_after_break.
11147 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11148 instead of gdbarch_decr_pc_after_break.
11149
6e07b1d2
MM
111502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11151
11152 * btrace.c: Include regcache.h.
11153 (btrace_add_pc): New.
11154 (btrace_enable): Call btrace_add_pc.
11155 (btrace_is_empty): New.
11156 * btrace.h (btrace_is_empty): New.
11157 * record-btrace.c (require_btrace, record_btrace_info): Call
11158 btrace_is_empty.
11159
969c39fb
MM
111602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11161
11162 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11163 Support delta reads.
11164 (linux_disable_btrace): Change return type.
11165 * common/linux-btrace.h (linux_read_btrace): Change parameters
11166 and return type to allow error reporting. Update users.
11167 (linux_disable_btrace): Change return type. Update users.
11168 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11169 New.
11170 (btrace_error): New.
11171 (btrace_block) <begin>: Comment on BEGIN == 0.
11172 * btrace.c (btrace_compute_ftrace): Start from the end of
11173 the current trace.
11174 (btrace_stitch_trace, btrace_clear_history): New.
11175 (btrace_fetch): Read delta trace, return if replaying.
11176 (btrace_clear): Move clear history code to btrace_clear_history.
11177 (parse_xml_btrace): Throw an error if parsing failed.
11178 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11179 and return type to allow error reporting.
11180 (target_read_btrace): Change parameters and return type to allow
11181 error reporting.
11182 * target.c (target_read_btrace): Update.
11183 * remote.c (remote_read_btrace): Support delta reads. Pass
11184 errors on.
11185 * NEWS: Announce it.
11186
0b722aec
MM
111872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11188
11189 * record.h (record_btrace_frame_unwind)
11190 (record_btrace_tailcall_frame_unwind): New declarations.
11191 * dwarf2-frame: Include record.h
11192 (dwarf2_frame_cfa): Throw an error for btrace frames.
11193 * record-btrace.c: Include hashtab.h.
11194 (btrace_get_bfun_name): New.
11195 (btrace_call_history): Call btrace_get_bfun_name.
11196 (struct btrace_frame_cache): New.
11197 (bfcache): New.
11198 (bfcache_hash, bfcache_eq, bfcache_new): New.
11199 (btrace_get_frame_function): New.
11200 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11201 (record_btrace_frame_this_id): Compute own id.
11202 (record_btrace_frame_prev_register): Provide PC, throw_error
11203 for all other registers.
11204 (record_btrace_frame_sniffer): Detect btrace frames.
11205 (record_btrace_tailcall_frame_sniffer): New.
11206 (record_btrace_frame_dealloc_cache): New.
11207 (record_btrace_frame_unwind): Add new functions.
11208 (record_btrace_tailcall_frame_unwind): New.
11209 (_initialize_record_btrace): Allocate cache.
11210 * btrace.c (btrace_clear): Call reinit_frame_cache.
11211 * NEWS: Announce it.
11212
066ce621
MM
112132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11214
11215 * record-btrace.c (record_btrace_set_replay)
11216 (record_btrace_goto_begin, record_btrace_goto_end)
11217 (record_btrace_goto): New.
11218 (init_record_btrace_ops): Initialize them.
11219 * NEWS: Announce it.
11220
e2887aa3
MM
112212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11222
11223 * record-btrace.c (record_btrace_find_new_threads)
11224 (record_btrace_thread_alive): New.
11225 (init_record_btrace_ops): Initialize to_find_new_threads and
11226 to_thread_alive.
11227
b2f4cfde
MM
112282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * record-btrace.c (record_btrace_resume): New.
11231 (record_btrace_wait): New.
11232 (init_record_btrace_ops): Initialize to_wait and to_resume.
11233
633785ff
MM
112342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11235
11236 * record-btrace.c (record_btrace_xfer_partial)
11237 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11238 (record_btrace_allow_memory_access): New.
11239 (init_record_btrace_ops): Initialize new methods.
11240 * target.c (raw_memory_xfer_partial): Bail out if target reports
11241 that this memory is not available.
11242
3db08215
MM
112432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11244
11245 * target.h (target_ops) <to_insert_breakpoint>
11246 <to_remove_breakpoint>: Add target_ops parameter.
11247 (forward_target_insert_breakpoint): New.
11248 (forward_target_remove_breakpoint): New.
11249 (memory_remove_breakpoint, memory_insert_breakpoint):
11250 Add target_ops parameter.
11251 * target.c (target_insert_breakpoint): Split into this and ...
11252 (forward_target_insert_breakpoint): ... this.
11253 (target_remove_breakpoint): Split into this and ...
11254 (forward_target_remove_breakpoint): ... this.
11255 (debug_to_insert_breakpoint): Add target_ops parameter.
11256 Call forward_target_insert_breakpoint.
11257 (debug_to_remove_breakpoint): Add target_ops parameter.
11258 Call forward_target_remove_breakpoint.
11259 (update_current_target): Do not inherit or default to_insert_breakpoint
11260 and to_remove_breakpoint.
11261 * corelow.c (ignore): Add target_ops parameter.
11262 * exec.c (ignore): Add target_ops parameter.
11263 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11264 Add target_ops parameter.
11265 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11266 Add target_ops parameter.
11267 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11268 Add target_ops parameter.
11269 * record-full.c (record_full_beneath_to_insert_breakpoint)
11270 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11271 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11272 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11273 (record_full_core_remove_breakpoint): Add target_ops parameter.
11274 Update users.
11275 (record_full_beneath_to_insert_breakpoint_ops)
11276 (record_full_beneath_to_remove_breakpoint_ops)
11277 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11278 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11279 tmp_to_remove_breakpoint_ops,
11280 record_full_beneath_to_insert_breakpoint_ops, and
11281 record_full_beneath_to_remove_breakpoint_ops.
11282 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11283 (m32r_remove_breakpoint): Add target_ops parameter.
11284 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11285 Add target_ops parameter.
11286 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11287 Add target_ops parameter.
11288
cecac1ab
MM
112892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11290 Markus Metzger <markus.t.metzger@intel.com>
11291
11292 * record-btrace.c: Include frame-unwind.h.
11293 (record_btrace_frame_unwind_stop_reason)
11294 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11295 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11296 New.
11297 (init_record_btrace_ops): Install it.
11298
824344ca
MM
112992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11300
11301 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11302 get_prev_frame_1.
11303
32261e52
MM
113042014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11307 earlier.
11308
ea001bdc
MM
113092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11310
11311 * frame-unwind.c: Include target.h.
11312 (frame_unwind_try_unwinder): New function with code from ...
11313 (frame_unwind_find_by_frame): ... here. New variable
11314 unwinder_from_target, call also target_get_unwinder)
11315 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11316 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11317 * target.h (struct target_ops): New fields to_get_unwinder and
11318 to_get_tailcall_unwinder.
11319 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11320
1f3ef581
MM
113212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11322
11323 * record-btrace.c (record_btrace_fetch_registers)
11324 (record_btrace_store_registers)
11325 (record_btrace_to_prepare_to_store): New.
11326 (init_record_btrace_ops): Add the above.
11327
f32dbf8c
MM
113282014-01-16 Tom Tromey <tromey@redhat.com>
11329
11330 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11331 * target.h (struct target_ops) <to_prepare_to_store>: Add
11332 argument.
11333 (target_prepare_to_store): Add argument.
11334 * target.c (debug_to_prepare_to_store): Add argument.
11335 (update_current_target): Update.
11336 * remote.c (remote_prepare_to_store): Add 'self' argument.
11337 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11338 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11339 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11340 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11341 argument.
11342 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11343 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11344 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11345 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11346 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11347
07bbe694
MM
113482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11349
11350 * btrace.h (replay) <replay>: New.
11351 (btrace_is_replaying): New.
11352 * btrace.c (btrace_clear): Free replay iterator.
11353 (btrace_is_replaying): New.
11354 * record-btrace.c (record_btrace_is_replaying): New.
11355 (record_btrace_info): Print insn number if replaying.
11356 (record_btrace_insn_history): Start at replay position.
11357 (record_btrace_call_history): Start at replay position.
11358 (init_record_btrace_ops): Init to_record_is_replaying.
11359
0688d04e
MM
113602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11361
11362 * record-btrace.c (record_btrace_insn_history_range): Include
11363 end.
11364 (record_btrace_insn_history_from): Adjust range.
11365 (record_btrace_call_history_range): Include
11366 end.
11367 (record_btrace_call_history_from): Adjust range.
11368 * NEWS: Announce changes.
11369
8710b709
MM
113702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371
11372 * record.h (enum record_print_flag)
11373 <record_print_indent_calls>: New.
11374 * record.c (get_call_history_modifiers): Recognize /c modifier.
11375 (_initialize_record): Document /c modifier.
11376 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11377 Reorder fields. Optionally indent the function name. Update
11378 all users.
11379 * NEWS: Announce changes.
11380
d0fa7535
MM
113812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11382
11383 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11384
5de9129b
MM
113852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11386
11387 * btrace.c (ftrace_new_function): Start counting at one.
11388 * record-btrace.c (record_btrace_info): Adjust number of calls
11389 and insns.
11390 * NEWS: Announce it.
11391
7acbe133
MM
113922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11393
11394 * record-btrace.c (btrace_call_history_insn_range): Print
11395 insn range as [begin, end].
11396
23a7fe75
MM
113972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11398
11399 * btrace.h (struct btrace_func_link): New.
11400 (enum btrace_function_flag): New.
11401 (struct btrace_inst): Rename to ...
11402 (struct btrace_insn): ...this. Update all users.
11403 (struct btrace_func) <ibegin, iend>: Remove.
11404 (struct btrace_func_link): New.
11405 (struct btrace_func): Rename to ...
11406 (struct btrace_function): ...this. Update all users.
11407 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11408 (number, level, flags>: New.
11409 (struct btrace_insn_iterator): Rename to ...
11410 (struct btrace_insn_history): ...this.
11411 Update all users.
11412 (struct btrace_insn_iterator, btrace_call_iterator): New.
11413 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11414 (struct btrace_target_info) <begin, end, level>
11415 <insn_history, call_history>: New.
11416 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11417 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11418 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11419 (btrace_call_number, btrace_call_begin, btrace_call_end)
11420 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11421 (btrace_find_function_by_number, btrace_set_insn_history)
11422 (btrace_set_call_history): New.
11423 * btrace.c (btrace_init_insn_iterator)
11424 (btrace_init_func_iterator, compute_itrace): Remove.
11425 (ftrace_print_function_name, ftrace_print_filename)
11426 (ftrace_skip_file): Change
11427 parameter to const.
11428 (ftrace_init_func): Remove.
11429 (ftrace_debug): Use new btrace_function fields.
11430 (ftrace_function_switched): Also consider gaining and
11431 losing symbol information).
11432 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11433 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11434 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11435 New.
11436 (ftrace_new_function): Move. Remove debug print.
11437 (ftrace_update_lines, ftrace_update_insns): New.
11438 (ftrace_update_function): Check for call, ret, and jump.
11439 (compute_ftrace): Renamed to ...
11440 (btrace_compute_ftrace): ...this. Rewritten to compute call
11441 stack.
11442 (btrace_fetch, btrace_clear): Updated.
11443 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11444 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11445 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11446 (btrace_call_number, btrace_call_begin, btrace_call_end)
11447 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11448 (btrace_find_function_by_number, btrace_set_insn_history)
11449 (btrace_set_call_history): New.
11450 * record-btrace.c (require_btrace): Use new btrace thread
11451 info fields.
11452 (record_btrace_info, btrace_insn_history)
11453 (record_btrace_insn_history, record_btrace_insn_history_range):
11454 Use new btrace thread info fields and new iterator.
11455 (btrace_func_history_src_line): Rename to ...
11456 (btrace_call_history_src_line): ...this. Use new btrace
11457 thread info fields.
11458 (btrace_func_history): Rename to ...
11459 (btrace_call_history): ...this. Use new btrace thread info
11460 fields and new iterator.
11461 (record_btrace_call_history, record_btrace_call_history_range):
11462 Use new btrace thread info fields and new iterator.
11463
8372a7cb
MM
114642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11465
11466 * frame.h (frame_id_build_unavailable_stack_special): New.
11467 * frame.c (frame_id_build_unavailable_stack_special): New.
11468
c2170eef
MM
114692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11470
11471 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11472 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11473 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11474 to gdbarch.
11475 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11476 (i386_insn_is_jump, i386_jmp_p): New.
11477 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11478 insn_is_jump to gdbarch.
11479 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11480 * gdbarch.h: Regenerated.
11481 * gdbarch.c: Regenerated.
11482 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11483 (default_insn_is_jump): New.
11484 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11485 (default_insn_is_jump): New.
11486
864089d2
MM
114872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11488
11489 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11490 Change to ...
11491 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11492 (btrace_read_type) <btrace_read_new>: Change to ...
11493 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11494
ed9edfb5
MM
114952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11496
11497 * common/linux-btrace.c (linux_read_btrace): Free trace from
11498 previous iteration.
11499
fbcbc3fd
DE
115002014-01-15 Doug Evans <dje@google.com>
11501
11502 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11503 uint32_t.
11504
3d548a53
TT
115052014-01-15 Tom Tromey <tromey@redhat.com>
11506
11507 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11508 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11509 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11510 (set_objfile_main_name): New function.
11511 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11512 language_of_main>: New fields.
11513 (set_objfile_main_name): Declare.
11514 * symtab.c (find_main_name): Loop over objfiles to find the main
11515 name and language.
11516 (set_main_name): Now static.
11517 (get_main_info): Add comment.
11518 * symtab.h (set_main_name): Don't declare.
11519
32ac0d11
TT
115202014-01-15 Tom Tromey <tromey@redhat.com>
11521
11522 * symtab.c (main_progspace_key): New global.
11523 (struct main_info): New.
11524 (name_of_main, language_of_main): Remove.
11525 (get_main_info, main_info_cleanup): New function.
11526 (set_main_name, main_name, main_language): Use get_main_info.
11527 (_initialize_symtab): Initialize main_progspace_key.
11528
9e6c82ad
TT
115292014-01-15 Tom Tromey <tromey@redhat.com>
11530
11531 * dbxread.c (process_one_symbol): Update.
11532 * dwarf2read.c (read_partial_die): Update.
11533 * symfile.c (set_initial_language): Call main_language.
11534 * symtab.c (language_of_main): Now static.
11535 (set_main_name): Add 'lang' parameter.
11536 (find_main_name): Update.
11537 (main_language): New function.
11538 (symtab_observer_executable_changed): Update.
11539 * symtab.h (set_main_name): Update.
11540 (language_of_main): Remove.
11541 (main_language): Declare.
11542
6ef55de7
TT
115432014-01-15 Tom Tromey <tromey@redhat.com>
11544
11545 * symfile.c (init_entry_point_info): Use new "initialized" field.
11546 Update.
11547 * objfiles.h (struct entry_point) <initialized>: New field.
11548 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11549 (struct objfile) <ei>: ...here. Remove.
11550 * objfiles.c (entry_point_address_query): Update.
11551
53eddfa6
TT
115522014-01-15 Tom Tromey <tromey@redhat.com>
11553
11554 * objfiles.c (entry_point_address_query): Relocate entry point
11555 address.
11556 (objfile_relocate1): Do not relocate entry point address.
11557 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11558 <the_bfd_section_index>: New field.
11559 * symfile.c (init_entry_point_info): Find the entry point's
11560 section.
11561
d56e56aa
TT
115622014-01-15 Tom Tromey <tromey@redhat.com>
11563
11564 * solib-frv.c (enable_break): Use entry_point_address_query.
11565
33a97bbe
OJ
115662014-01-15 Omair Javaid <omair.javaid@linaro.org>
11567
11568 * NEWS: Add note on improved process record-replay on
11569 arm*-linux* targets.
11570
c6ec2b30
OJ
115712014-01-15 Omair Javaid <omair.javaid@linaro.org>
11572
11573 * arm-tdep.c (enum arm_record_result): New enum.
11574 (arm_record_unsupported_insn): New function.
11575 (arm_record_coproc_data_proc): Removed.
11576 (thumb2_record_ld_st_multiple): New function.
11577 (thumb2_record_ld_st_dual_ex_tbb): New function.
11578 (thumb2_record_data_proc_sreg_mimm): New function.
11579 (thumb2_record_ps_dest_generic): New function.
11580 (thumb2_record_branch_misc_cntrl): New function.
11581 (thumb2_record_str_single_data): New function.
11582 (thumb2_record_ld_mem_hints): New function.
11583 (thumb2_record_ld_word): New function.
11584 (thumb2_record_lmul_lmla_div): New function.
11585 (thumb2_record_decode_insn_handler): New function.
11586 (decode_insn): Add thumb32 instruction handlers.
11587
97dfe206
OJ
115882014-01-15 Omair Javaid <omair.javaid@linaro.org>
11589
11590 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11591 (struct arm_linux_record_tdep): Declare.
11592 (arm_canonicalize_syscall): New function.
11593 (arm_all_but_pc_registers_record): New function.
11594 (arm_linux_syscall_record): New function.
11595 (arm_linux_init_abi): Add syscall recording constructs.
11596 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11597 decoding. (arm_record_coproc_data_proc): Update arm syscall
11598 decoding.
11599 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11600 <arm_syscall_record>: New field.
11601 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11602 gdb_target_obs.
11603
9904a494
OJ
116042014-01-15 Omair Javaid <omair.javaid@linaro.org>
11605
11606 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11607 register for push instruction recording.
11608
f969241e
OJ
116092014-01-15 Omair Javaid <omair.javaid@linaro.org>
11610
11611 * arm-tdep.c (thumb_record_misc): Update to correct logical
11612 error while recording ldm, ldmia and pop instructions.
11613
bfbbec00
OJ
116142014-01-15 Omair Javaid <omair.javaid@linaro.org>
11615
11616 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11617
e40adcc9
PA
116182014-01-15 Pedro Alves <palves@redhat.com>
11619
11620 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11621 (go32_resume, go32_fetch_registers, store_register)
11622 (go32_store_registers, go32_prepare_to_store)
11623 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11624 (go32_create_inferior, go32_can_run, go32_terminal_init)
11625 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11626 declarations.
11627
b0a16e66
TT
116282014-01-15 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (async_callback_ftype): New typedef.
11631 (struct target_ops) <to_async>: Use it.
11632
bf7105a4
JB
116332014-01-15 Joel Brobecker <brobecker@adacore.com>
11634
11635 * python/py-value.c (get_field_type): Remove unnecessary curly
11636 braces for single-statement if block.
11637
a8f35c2e
JB
116382014-01-15 Joel Brobecker <brobecker@adacore.com>
11639
11640 * python/py-type.c (convert_field): Add missing empty line
11641 after declarations.
11642
bb4142cf
DE
116432014-01-14 Doug Evans <dje@google.com>
11644
11645 * symfile.h (expand_symtabs_matching): Renamed from
11646 expand_partial_symbol_names. Update prototype.
11647 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11648 * symfile.c (expand_symtabs_matching): Renamed from
11649 expand_partial_symbol_names. New args file_matcher, kind.
11650 Rename arg fun to symbol_matcher.
11651 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11652 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11653 ada_expand_partial_symbol_name.
11654 (ada_make_symbol_completion_list): Update to call
11655 expand_symtabs_matching.
11656 (ada_add_global_exceptions): Call expand_symtabs_matching.
11657 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11658 call map_symbol_filenames.
11659 * symtab.c (sources_info): Update to call map_symbol_filenames.
11660 (search_symbols): Call expand_symtabs_matching.
11661 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11662 (default_make_symbol_completion_list_break_on): Update to call
11663 expand_symtabs_matching.
11664 (make_source_files_completion_list): Update to call
11665 map_symbol_filenames.
11666
206f2a57
DE
116672014-01-14 Doug Evans <dje@google.com>
11668
11669 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11670 (expand_symtabs_symbol_matcher_ftype): New typedef.
11671 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11672 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11673 * symfile.c (expand_partial_symbol_names): Update to use
11674 expand_symtabs_symbol_matcher_ftype.
11675 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11676 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11677 Arg name_matcher renamed to symbol_matcher.
11678 * psymtab.c (recursively_search_psymtabs): Update to use
11679 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11680 sym_matcher.
11681 (expand_symtabs_matching_via_partial): Update to use
11682 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11683 Arg name_matcher renamed to symbol_matcher.
11684
540c2971
DE
116852014-01-14 Doug Evans <dje@google.com>
11686
11687 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11688 (map_partial_symbol_filenames): Ditto.
11689 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11690 (map_partial_symbol_filenames): Ditto.
11691 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11692 (map_partial_symbol_filenames): Ditto.
11693 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11694 (map_partial_symbol_filenames): Ditto.
11695 * symtab.c: Delete #include "psymtab.h".
11696
8213266a
PA
116972014-01-14 Pedro Alves <palves@redhat.com>
11698 Tom Tromey <tromey@redhat.com>
11699
11700 * infrun.c (use_displaced_stepping): Use find_record_target
11701 instead of RECORD_IS_USED.
11702 (adjust_pc_after_break): Use record_full_is_used instead of
11703 RECORD_IS_USED.
11704 * record-btrace.c (record_btrace_open): Call record_preopen
11705 instead of checking RECORD_IS_USED.
11706 * record-full.c (record_full_shortname)
11707 (record_full_core_shortname): New globals.
11708 (record_full_is_used): New function.
11709 (find_full_open): Call record_preopen instead of checking
11710 RECORD_IS_USED.
11711 (init_record_full_ops): Set the target's shortname to
11712 record_full_shortname.
11713 (init_record_full_core_ops): Set the target's shortname to
11714 record_full_core_shortname.
11715 * record-full.h (record_full_is_used): Declare.
11716 * record.c (find_record_target): Make extern.
11717 (record_preopen): New function.
11718 * record.h (RECORD_IS_USED): Delete macro.
11719 (find_record_target, record_preopen): Declare functions.
11720
7ec1862d
YQ
117212014-01-14 Yao Qi <yao@codesourcery.com>
11722
11723 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11724 'len''s type to ULONGEST.
11725 (core_xfer_shared_libraries_aix): Likewise.
11726 * gdbarch.c, gdbarch.h: Regenerated.
11727 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11728 Change type of 'len' to ULONGEST.
11729 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11730 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11731
dea80a27
YQ
117322014-01-14 Yao Qi <yao@codesourcery.com>
11733
11734 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11735 type of 'len' to ULONGEST.
11736 (linux_xfer_osdata_processgroups): Likewise.
11737 (linux_xfer_osdata_threads): Likewise.
11738 (linux_xfer_osdata_fds): Likewise.
11739 (linux_xfer_osdata_isockets): Likewise.
11740 (linux_xfer_osdata_shm): Likewise.
11741 (linux_xfer_osdata_sem): Likewise.
11742 (linux_xfer_osdata_msg): Likewise.
11743 (linux_common_xfer_osdata): Likewise.
11744 (struct osdata_type) <getter>: Likewise.
11745 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11746 the declaration.
11747
b55e14c7
YQ
117482014-01-14 Yao Qi <yao@codesourcery.com>
11749
11750 * target.h (target_xfer_partial_ftype): Update.
11751 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11752 ULONGEST.
11753 * aix-thread.c (aix_thread_xfer_partial): Change type of
11754 argument 'len' to ULONGEST.
11755 * auxv.c (procfs_xfer_auxv): Likewise.
11756 (ld_so_xfer_auxv): Likewise.
11757 (memory_xfer_auxv): Likewise.
11758 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11759 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11760 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11761 * corelow.c (core_xfer_partial): Likewise.
11762 * ctf.c (ctf_xfer_partial): Likewise.
11763 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11764 '%u'.
11765 (darwin_read_dyld_info): Likewise.
11766 (darwin_xfer_partial): Likewise.
11767 * exec.c (section_table_xfer_memory_partial): Likewise.
11768 (exec_xfer_partial): Likewise.
11769 * exec.h (section_table_xfer_memory_partial): Update
11770 declaration.
11771 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11772 instead of plongest.
11773 (gnu_xfer_partial): Likewise.
11774 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11775 (ia64_hpux_xfer_solib_got): Likewise.
11776 (ia64_hpux_xfer_partial): Likewise.
11777 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11778 * inf-ptrace.c (inf_ptrace_xfer_partial):
11779 * inf-ttrace.c (inf_ttrace_xfer_partial):
11780 * linux-nat.c (linux_xfer_siginfo): Likewise.
11781 (linux_nat_xfer_partial): Likewise.
11782 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11783 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11784 * monitor.c (monitor_xfer_memory): Likewise.
11785 (monitor_xfer_partial): Likewise.
11786 * procfs.c (procfs_xfer_partial): Likewise.
11787 * record-full.c (record_full_xfer_partial): Likewise.
11788 (record_full_core_xfer_partial): Likewise.
11789 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11790 instead of plongest.
11791 (gdbsim_xfer_partial): Likewise.
11792 * remote.c (remote_xfer_partial): Likewise.
11793 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11794 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11795 declaration.
11796 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11797 (rs6000_xfer_shared_libraries): Likewise.
11798 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11799 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11800 (sparc_xfer_partial): Likewise.
11801 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11802 (spu_xfer_partial): Likewise.
11803 * spu-multiarch.c (spu_xfer_partial): Likewise.
11804 * target.c (target_read_live_memory): Likewise.
11805 (memory_xfer_live_readonly_partial): Likewise.
11806 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11807 (target_xfer_partial, default_xfer_partial): Likewise.
11808 (current_xfer_partial): Likewise.
11809 * tracepoint.c (tfile_xfer_partial): Likewise.
11810 * windows-nat.c (windows_xfer_memory): Likewise. Call
11811 pulongest instead of plongest.
11812 (windows_xfer_partial): Likewise.
11813 (windows_xfer_shared_libraries): Likewise.
11814
05804640
YQ
118152014-01-14 Yao Qi <yao@codesourcery.com>
11816
11817 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11818 target_xfer_partial_ftype.
11819
b5b08fb4
SC
118202014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11821
11822 PR python/15464
11823 PR python/16113
11824 * valops.c (value_struct_elt_bitpos): New function
11825 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11826 object to 'None' if the field name is an empty string ("").
11827 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11828 attribute to look for a field when 'name' is 'None'.
11829 (get_field_type): New function
11830
13aaf454
DE
118312014-01-13 Doug Evans <dje@google.com>
11832
11833 PR symtab/16426
11834 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11835 (try_open_dwop_file): Ditto.
11836 * gdb_bfd.c: #include "vec.h".
11837 (bfdp): New typedef.
11838 (struct gdb_bfd_data): New member included_bfds.
11839 (gdb_bfd_unref): Unref all included bfds.
11840 (gdb_bfd_record_inclusion): New function.
11841 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11842
c2cec97c
TT
118432014-01-13 Tom Tromey <tromey@redhat.com>
11844
11845 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11846
78e5999d
TT
118472014-01-13 Tom Tromey <tromey@redhat.com>
11848
11849 * defs.h (use_windows): Remove.
11850 * gdb.c (main): Update.
11851 * main.c (captured_main, gdb_main): Update.
11852 * main.h (struct captured_main_args) <use_windows>: Remove.
11853 * top.c (use_windows): Remove.
11854
f2052bbe
TT
118552014-01-13 Tom Tromey <tromey@redhat.com>
11856
11857 * defs.h (deprecated_flush_hook): Remove.
11858
fde4f8ed
JK
118592014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11860
11861 PR threads/16216
11862 * linux-thread-db.c (try_thread_db_load): Add parameter
11863 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11864 (try_thread_db_load_from_pdir_1): Move it there from here.
11865 (try_thread_db_load_from_sdir): Update caller.
11866 (try_thread_db_load_from_dir): Move it there from here.
11867
bdf61915
PP
118682014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11869
11870 * regformats/regdat.sh: Always rewrite the register file.
11871
f71e1a8d
PA
118722014-01-13 Pedro Alves <palves@redhat.com>
11873
11874 * Makefile.in (CHECK_HEADERS): New variable.
11875 (check-headers:): New rule.
11876
42c85435
TT
118772014-01-13 Tom Tromey <tromey@redhat.com>
11878
11879 * cli/cli-setshow.c (do_set_command): Update.
11880 * defs.h (deprecated_set_hook): Remove.
11881 * top.c (deprecated_set_hook): Remove.
11882
f8de5129
PA
118832014-01-13 Pedro Alves <palves@redhat.com>
11884
11885 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11886 the tracepoint if the PC is a pseudo-register.
11887
fc270c35
TT
118882014-01-13 Tom Tromey <tromey@redhat.com>
11889
11890 * defs.h (XCALLOC): Remove.
11891 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11892 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11893 * dwarf2loc.c (allocate_piece_closure): Likewise.
11894 * elfread.c (elf_symfile_segments): Likewise.
11895 (elf_symfile_segments): Likewise.
11896 * gdbtypes.c (copy_type_recursive): Likewise.
11897 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11898 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11899 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11900 XCALLOC.
11901 * mt-tdep.c (mt_gdbarch_init): Likewise.
11902 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11903 XCALLOC.
11904 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11905 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11906 * registry.c (registry_alloc_data): Likewise.
11907 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11908 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11909 * serial.c (serial_fdopen_ops): Likewise.
11910 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11911 XCALLOC.
11912 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11913 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11914 not XCALLOC.
11915
70ba0933
TT
119162014-01-13 Tom Tromey <tromey@redhat.com>
11917
11918 * defs.h (XMALLOC): Remove.
11919 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11920 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11921 * cli-out.c (struct ui_out *): Likewise.
11922 * cli/cli-dump.c (add_dump_command): Likewise.
11923 (add_dump_command): Likewise.
11924 * complaints.c (get_complaints): Likewise.
11925 (find_complaint): Likewise.
11926 * dwarf2-frame.c (execute_cfa_program): Likewise.
11927 * dwarf2read.c (abbrev_table_read_table): Likewise.
11928 * gdbarch.sh: Likewise.
11929 * gdbarch.c: Rebuild.
11930 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11931 * interps.c (interp_new): Likewise.
11932 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11933 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11934 * mi/mi-console.c (mi_console_file_new): Likewise.
11935 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11936 * mi/mi-out.c (mi_out_new): Likewise.
11937 * mi/mi-parse.c (mi_parse): Likewise.
11938 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11939 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11940 * observer.c (xalloc_observer_list_node): Likewise.
11941 * regcache.c (regcache_xmalloc_1): Likewise.
11942 * reggroups.c (reggroup_new): Likewise.
11943 (_initialize_reggroup): Likewise.
11944 * registry.c (register_data_with_cleanup): Likewise.
11945 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11946 * ser-base.c (serial_ttystate): Likewise.
11947 * ser-mingw.c (make_pipe_state): Likewise.
11948 * ser-pipe.c (pipe_open): Likewise.
11949 * serial.c (serial_open): Likewise.
11950 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11951 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11952 (tui_alloc_win_info): Likewise.
11953 (tui_add_content_elements): Likewise.
11954 * tui/tui-file.c (tui_file_new): Likewise.
11955 * tui/tui-out.c (tui_out_new): Likewise.
11956 * ui-file.c (mem_file_new): Likewise.
11957 * ui-out.c (push_level): Likewise.
11958 (make_cleanup_ui_out_end): Likewise.
11959 (append_header_to_list): Likewise.
11960 (ui_out_new): Likewise.
11961 * user-regs.c (user_reg_add_builtin): Likewise.
11962
41bf6aca
TT
119632014-01-13 Tom Tromey <tromey@redhat.com>
11964
11965 * defs.h (XZALLOC): Remove.
11966 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11967 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11968 (get_ada_tasks_inferior_data): Likewise.
11969 * auto-load.c (get_auto_load_pspace_data): Likewise.
11970 * auxv.c (get_auxv_inferior_data): Likewise.
11971 * bfd-target.c (target_bfd_reopen): Likewise.
11972 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11973 (deprecated_insert_raw_breakpoint): Likewise.
11974 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11975 * corelow.c (core_open): Likewise.
11976 * darwin-nat.c (darwin_check_new_threads): Likewise.
11977 (darwin_attach_pid): Likewise.
11978 * dummy-frame.c (dummy_frame_push): Likewise.
11979 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11980 * dwarf2loc.c (allocate_piece_closure): Likewise.
11981 * elfread.c (elf_symfile_segments): Likewise.
11982 * eval.c (ptrmath_type_p): Likewise.
11983 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11984 * gdbtypes.c (alloc_type_arch): Likewise.
11985 (alloc_type_instance): Likewise.
11986 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11987 * inf-child.c (inf_child_can_use_agent): Likewise.
11988 * inflow.c (get_inflow_inferior_data): Likewise.
11989 * infrun.c (save_infcall_suspend_state): Likewise.
11990 * jit.c (jit_reader_load): Likewise.
11991 (get_jit_objfile_data): Likewise.
11992 (get_jit_program_space_data): Likewise.
11993 (jit_object_open_impl): Likewise.
11994 (jit_symtab_open_impl): Likewise.
11995 (jit_block_open_impl): Likewise.
11996 (jit_frame_sniffer): Likewise.
11997 * linux-fork.c (add_fork): Likewise.
11998 * maint.c (make_command_stats_cleanup): Likewise.
11999 * objfiles.c (get_objfile_pspace_data): Likewise.
12000 * opencl-lang.c (struct lval_closure): Likewise.
12001 * osdata.c (osdata_start_osdata): Likewise.
12002 * progspace.c (new_address_space): Likewise.
12003 (add_program_space): Likewise.
12004 * remote-sim.c (get_sim_inferior_data): Likewise.
12005 * sh-tdep.c (sh_gdbarch_init): Likewise.
12006 * skip.c (Ignore): Likewise.
12007 (skip_delete_command): Likewise.
12008 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12009 (library_list_start_library): Likewise.
12010 (solib_aix_current_sos): Likewise.
12011 * solib-darwin.c (get_darwin_info): Likewise.
12012 (darwin_current_sos): Likewise.
12013 * solib-dsbt.c (get_dsbt_info): Likewise.
12014 * solib-ia64-hpux.c (new_so_list): Likewise.
12015 (ia64_hpux_get_solib_linkage_addr): Likewise.
12016 * solib-spu.c (append_ocl_sos): Likewise.
12017 (spu_current_sos): Likewise.
12018 * solib-svr4.c (get_svr4_info): Likewise.
12019 (svr4_keep_data_in_core): Likewise.
12020 (library_list_start_library): Likewise.
12021 (svr4_default_sos): Likewise.
12022 (svr4_read_so_list): Likewise.
12023 * solib-target.c (library_list_start_library): Likewise.
12024 (solib_target_current_sos): Likewise.
12025 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12026 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12027 * symfile.c (default_symfile_segments): Likewise.
12028 * target-descriptions.c (tdesc_data_init): Likewise.
12029 (tdesc_create_reg): Likewise.
12030 (struct tdesc_type *): Likewise.
12031 (tdesc_create_vector): Likewise.
12032 (tdesc_set_struct_size): Likewise.
12033 (struct tdesc_type *): Likewise.
12034 (tdesc_free_feature): Likewise.
12035 (tdesc_create_feature): Likewise.
12036 * windows-nat.c (windows_add_thread): Likewise.
12037 (windows_make_so): Likewise.
12038 * xml-support.c (gdb_xml_body_text): Likewise.
12039 (gdb_xml_create_parser_and_cleanup): Likewise.
12040 (xml_process_xincludes): Likewise.
12041 * xml-syscall.c (allocate_syscalls_info): Likewise.
12042 (syscall_create_syscall_desc): Likewise.
12043
5acfdbae
SDJ
120442014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12045
12046 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12047 function, with code from i386_stap_parse_special_token.
12048 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12049 (i386_stap_parse_special_token): Move code to the two functions
12050 above; simplify it.
12051
0000e5cc
PA
120522014-01-09 Pedro Alves <palves@redhat.com>
12053 Hui Zhu <hui@codesourcery.com>
12054
12055 PR gdb/16101
12056 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12057 bp_err_string. Don't mark the location shlib_disabled if the
12058 error thrown wasn't a generic or memory error. Catch errors
12059 thrown while inserting breakpoints in overlayed code. Output
12060 error message of software breakpoints.
12061 * remote.c (remote_insert_breakpoint): If this breakpoint has
12062 target-side commands but this stub doesn't support Z0 packets,
12063 throw NOT_SUPPORTED_ERROR error.
12064 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12065 * target.h (target_insert_breakpoint): Extend comment.
12066 (target_insert_hw_breakpoint): Add comment.
12067
b7ea362b
PA
120682014-01-08 Pedro Alves <palves@redhat.com>
12069
12070 * remote.c (remote_add_thread): Add threads silently if starting
12071 up.
12072 (remote_notice_new_inferior): If in all-stop, and starting up,
12073 don't call notice_new_inferior.
12074 (get_current_thread): New function, factored out from ...
12075 (add_current_inferior_and_thread): ... this. Adjust.
12076 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12077 found any thread, then select the remote's current thread as GDB's
12078 current thread too.
12079
b7bba001
JB
120802014-01-08 Joel Brobecker <brobecker@adacore.com>
12081
12082 * NEWS: Create a new section for the next release branch.
12083 Rename the section of the current branch, now that it has
12084 been cut.
12085
16dfbded
JB
120862014-01-08 Joel Brobecker <brobecker@adacore.com>
12087
12088 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12089 * version.in: Bump version to 7.7.50.DATE-cvs.
12090
22c90ac1
YQ
120912014-01-08 Yao Qi <yao@codesourcery.com>
12092
12093 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12094 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12095 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12096
d64ad97c
YQ
120972014-01-08 Yao Qi <yao@codesourcery.com>
12098
12099 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12100 return value of bfd_get_filename to symbol_file_add_from_bfd.
12101
f93ba80c
PM
121022014-01-08 Pierre Muller <muller@sourceware.org>
12103
12104 Fix PR16201.
12105 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12106 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12107 to prim_record_mininal_symbol_and_info.
12108 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12109 in call to prim_record_minimal_symbol_and_info.
12110 (read_pe_exported_syms): Set index field of section_data.
12111
a4d9ba85
AP
121122014-01-07 Andrew Pinski <apinski@cavium.com>
12113
12114 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12115 * features/aarch64.c: Regenerate.
12116
1b67eb02
AS
121172014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12118
12119 * target.c (return_null): Define.
12120 (update_current_target): Use it instead of return_zero for
12121 functions that return a pointer.
12122
5e3f4fab
EBM
121232014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12124
12125 * source.c (add_path): Fix check for duplicated paths in the previously
12126 included paths.
12127
e2616788
HK
121282014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12129
12130 * ada-lang.c: Remove duplicated include statements.
12131 * alphabsd-nat.c: Ditto.
12132 * amd64-darwin-tdep.c: Ditto.
12133 * amd64fbsd-nat.c: Ditto.
12134 * auto-load.c: Ditto.
12135 * ax-gdb.c: Ditto.
12136 * breakpoint.c: Ditto.
12137 * dbxread.c: Ditto.
12138 * fork-child.c: Ditto.
12139 * gdb_usleep.c: Ditto.
12140 * i386-darwin-tdep.c: Ditto.
12141 * i386fbsd-nat.c: Ditto.
12142 * infcmd.c: Ditto.
12143 * inferior.c: Ditto.
12144 * jv-lang.c: Ditto.
12145 * linux-nat.c: Ditto.
12146 * linux-tdep.c: Ditto.
12147 * m68kbsd-nat.c: Ditto.
12148 * m68klinux-nat.c: Ditto.
12149 * microblaze-tdep.c: Ditto.
12150 * mips-linux-tdep.c: Ditto.
12151 * mn10300-tdep.c: Ditto.
12152 * nto-tdep.c: Ditto.
12153 * opencl-lang.c: Ditto.
12154 * osdata.c: Ditto.
12155 * printcmd.c: Ditto.
12156 * regcache.c: Ditto.
12157 * remote-m32r-sdi.c: Ditto.
12158 * remote.c: Ditto.
12159 * symfile.c: Ditto.
12160 * symtab.c: Ditto.
12161 * tilegx-linux-nat.c: Ditto.
12162 * tilegx-tdep.c: Ditto.
12163 * tracepoint.c: Ditto.
12164 * valops.c: Ditto.
12165 * vaxbsd-nat.c: Ditto.
12166 * windows-nat.c: Ditto.
12167 * xtensa-tdep.c: Ditto.
12168
bd1f7788
YQ
121692014-01-07 Yao Qi <yao@codesourcery.com>
12170
12171 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12172
79301218
JB
121732014-01-07 Yao Qi <yao@codesourcery.com>
12174 Joel Brobecker <brobecker@adacore.com>
12175
12176 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12177 (pdc_write_regs): Likewise.
12178 (fetch_regs_kernel_thread): Likewise.
12179 (store_regs_kernel_thread): Likewise.
12180
121812014-01-07 Joel Brobecker <brobecker@adacore.com>
12182
12183 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12184 tagged type objects to their actual type.
12185
8e355c5d
JB
121862014-01-07 Joel Brobecker <brobecker@adacore.com>
12187
12188 * ada-valprint.c (print_field_values): Add "language" parameter.
12189 Update calls to print_field_values and print_variant_part.
12190 Pass new parameter "language" in call to val_print instead
12191 of "current_language". Replace call to ada_val_print by call
12192 to val_print.
12193 (print_variant_part): Add "language" parameter.
12194 (ada_val_print_struct_union): Update call to print_field_values.
12195
4fbf5aa5
JB
121962014-01-07 Joel Brobecker <brobecker@adacore.com>
12197
12198 * ada-valprint.c (ui_memcpy): Delete.
12199 (ada_print_floating): Update documentation. Add empty line
12200 between between function documentation and implementation.
12201 Delete variable "buffer". Use ui_file_xstrdup in place of
12202 ui_file_put. Minor adjustments following this change.
12203
71855601
JB
122042014-01-07 Joel Brobecker <brobecker@adacore.com>
12205
12206 * ada-valprint.c (ada_val_print_string): New function,
12207 extracted from ada_val_print_array.
12208 (ada_val_print_array): Replace extracted code by call
12209 to ada_val_print_string followed by a return. Move
12210 "else" branch to the function's top block.
12211
4eb27a30
JB
122122014-01-07 Joel Brobecker <brobecker@adacore.com>
12213
12214 * ada-valprint.c (ada_val_print_array): Move implementation
12215 down. Rename parameter "offset" and "val" into "offset_aligned"
12216 and "original_value" respectively. Add parameter "offset".
12217
34b27950
JB
122182014-01-07 Joel Brobecker <brobecker@adacore.com>
12219
12220 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12221 re-organizing the code. Change the "???" message printed
12222 when target type is a TYPE_CODE_UNDEF into
12223 "<ref to undefined type>".
12224
079e4591
JB
122252014-01-07 Joel Brobecker <brobecker@adacore.com>
12226
12227 * ada-valprint.c (print_record): Delete, implementation inlined...
12228 (ada_val_print_struct_union): ... here. Remove call to
12229 ada_check_typedef in inlined implementation.
12230
8004dfd1
JB
122312014-01-07 Joel Brobecker <brobecker@adacore.com>
12232
12233 * ada-valprint.c (ada_val_print_gnat_array): New function,
12234 extracted from ada_val_print_1;
12235 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12236 (ada_val_print_flt, ada_val_print_struct_union)
12237 (ada_val_print_ref): Likewise.
12238 (ada_val_print_1): Delete variables i and elttype.
12239 Replace extracted-out code by call to corresponding
12240 new functions.
12241
760a2db0
JB
122422014-01-07 Joel Brobecker <brobecker@adacore.com>
12243
12244 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12245
3a92c861
JB
122462014-01-07 Joel Brobecker <brobecker@adacore.com>
12247
12248 * ada-valprint.c (ada_val_print_1): Replace calls to
12249 ada_val_print_1 by calls to val_print.
12250
cd1630f9
JB
122512014-01-07 Joel Brobecker <brobecker@adacore.com>
12252
12253 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12254 Update calls to self accordingly. Replace calls to c_val_print
12255 by calls to val_print.
12256
bdf779a0
JB
122572014-01-07 Joel Brobecker <brobecker@adacore.com>
12258
12259 * ada-valprint.c (print_record): Delete declaration.
12260 (adjust_type_signedness, ada_val_print_1): Likewise.
12261 (ada_val_print): Move function implementation down.
12262 (print_variant_part, print_field_values, print_record):
12263 Move function implementation up.
12264
c0d48811
JB
122652014-01-07 Joel Brobecker <brobecker@adacore.com>
12266
12267 * python/py-type.c (typy_get_name): New function.
12268 (type_object_getset): Add entry for attribute "name".
12269 * NEWS: Add entry mentioning this new attribute.
12270
c26e9cbb
YQ
122712014-01-07 Yao Qi <yao@codesourcery.com>
12272
12273 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12274 statement.
12275
0cc6f43d
YQ
122762014-01-07 Yao Qi <yao@codesourcery.com>
12277
12278 * gnu-nat.c (info_port_rights): Add qualifier const to
12279 argument args.
12280
eec03155
YQ
122812014-01-07 Yao Qi <yao@codesourcery.com>
12282
12283 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12284
f04a82ef
YQ
122852014-01-07 Yao Qi <yao@codesourcery.com>
12286
12287 * gnu-nat.c (make_inf) Update declaration.
12288 (make_inf): Make it static.
12289 (inf_set_traced): Likewise.
12290 (inf_port_to_thread, inf_task_died_status): Likewise.
12291
d57dda0a
YQ
122922014-01-07 Yao Qi <yao@codesourcery.com>
12293
12294 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12295
3aa8c969
YQ
122962014-01-07 Yao Qi <yao@codesourcery.com>
12297
12298 * gnu-nat.c (_initialize_gnu_nat): Declare.
12299
94123b4f
YQ
123002014-01-07 Yao Qi <yao@codesourcery.com>
12301
12302 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12303 'enum bfd_endian'.
12304 (struct gdbarch_info) <byte_order>: Change type to
12305 'enum bfd_endian'.
12306 <byte_order_for_code>: Likewise.
12307 * gdbarch.c, gdbarch.h: Regenerated.
12308
dc81d70a
TT
123092014-01-06 Sasha Smundak <asmundak@google.com>
12310
12311 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12312
cc2f3c35
TT
123132014-01-06 Tom Tromey <tromey@redhat.com>
12314
12315 * doublest.c (convert_doublest_to_floatformat): Use const, not
12316 CONST.
12317 * somread.c (som_symtab_read): Likewise.
12318
adcf2eed
HZ
123192014-01-07 Hui Zhu <hui@codesourcery.com>
12320
12321 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12322 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12323 (gdb_bfd_fopen): Ditto.
12324 (gdb_bfd_openr): Ditto.
12325 (gdb_bfd_openw): Ditto.
12326 (gdb_bfd_openr_iovec): Ditto.
12327 (gdb_bfd_fdopenr): Ditto.
12328 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12329 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12330 with xstrdup.
12331 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12332 with xstrdup.
12333 * symfile-mem.c (symbol_file_add_from_memory): Removed
12334 gdb_bfd_stash_filename.
12335
50722198
DE
123362014-01-03 Doug Evans <dje@google.com>
12337
12338 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12339 output.
12340
2fa4b862
JB
123412014-01-01 Joel Brobecker <brobecker@adacore.com>
12342
12343 Update year range in copyright notice of all files.
12344
28498c42
JB
123452014-01-01 Joel Brobecker <brobecker@adacore.com>
12346
12347 * top.c (print_gdb_version): Set copyright year to 2014.
12348
7b6e1046
JB
123492014-01-01 Joel Brobecker <brobecker@adacore.com>
12350
12351 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12352
df96af55 12353For older changes see ChangeLog-2013.
c906108c
SS
12354\f
12355Local Variables:
12356mode: change-log
12357left-margin: 8
12358fill-column: 74
12359version-control: never
57da7796 12360coding: utf-8
c906108c 12361End:
This page took 2.611855 seconds and 4 git commands to generate.