Remove dwarf_decode_lines argumewant_line_info
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-08-28 Yao Qi <yao@codesourcery.com>
2
3 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
5 (dwarf_decode_lines): Remove argument
6 want_line_info. Remove condition check on want_line_info.
7 Callers update.
8
9 2014-08-27 Doug Evans <dje@google.com>
10
11 * dwarf2read.c (dwarf_record_line): Fix typo.
12
13 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
14
15 * target.h (struct target_ops::to_terminal_save_ours): Remove
16 declaration.
17 (target_terminal_save_ours): Remove macro.
18 * target-delegates.c: Regenerate.
19 * inf-child.c (inf_child_target): Don't set the nonexistent
20 field to_terminal_save_ours.
21 * inferior.h (child_terminal_save_ours): Remove declaration.
22 * terminal.h (gdb_save_tty_state): New declaration.
23 * inflow.c (child_terminal_save_ours): Rename to ...
24 (gdb_save_tty_state): ... this.
25 * tui/tui.c: Include terminal.h.
26 (tui_enable): Use gdb_save_tty_state instead of
27 target_terminal_save_ours.
28 (tui_disable): Likewise.
29
30 2014-08-25 Doug Evans <dje@google.com>
31
32 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
33 Pass NULL instead of 0 for context pointer.
34
35 2014-08-25 Yao Qi <yao@codesourcery.com>
36
37 * dwarf2read.c: Fix grammatical error.
38
39 2014-08-24 Yao Qi <yao@codesourcery.com>
40
41 * dwarf2read.c (scan_partial_symbols): Update comments.
42 Rename argument 'need_pc' with 'set_addrmap'.
43 (add_partial_namespace): Rename argument 'need_pc' with
44 'set_addrmap'.
45 (add_partial_module): Likewise.
46 (add_partial_subprogram): Likewise. Update comments.
47 (dwarf2_name): Fix typo.
48
49 2014-08-22 Doug Evans <dje@google.com>
50
51 PR 17276
52 * dwarf2read.c (dwarf_record_line_p): New function.
53 (dwarf_decode_lines_1): Ignore subsequent line number entries
54 for the same line if any entry had a non-zero discriminator.
55
56 2014-08-22 Doug Evans <dje@google.com>
57
58 * buildsym.h (record_line_ftype): New typedef.
59 (record_line): Use it.
60 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
61 (dwarf_decode_lines_1): Call them.
62
63 2014-08-22 Yao Qi <yao@codesourcery.com>
64
65 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
66 (ctf_end): Remove code.
67
68 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
71 (linux_make_corefile_notes): call update_thread_list, protected against
72 exceptions.
73
74 2014-08-21 Pedro Alves <palves@redhat.com>
75
76 * infcmd.c (attach_command): Remove comment.
77
78 2014-08-21 Bin Cheng <bin.cheng@arm.com>
79
80 * aarch64-linux-nat.c (dr_changed_t): Change the type from
81 unsigned LONGEST to ULONGEST.
82
83 2014-08-20 Pedro Alves <palves@redhat.com>
84
85 * Makefile.in (check-read1): New rule.
86
87 2014-08-20 Joel Brobecker <brobecker@adacore.com>
88
89 * value.c (value_from_contents_and_address): Strip resolved_type's
90 typedef layers before checking its TYPE_DATA_LOCATION.
91
92 2014-08-20 Pedro Alves <palves@redhat.com>
93
94 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
95
96 2014-08-20 Yao Qi <yao@codesourcery.com>
97
98 * amd64-tdep.c (amd64_classify): Add a blank line after the
99 example. Move "*/" to a new line.
100 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
101 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
102 * dwarf2read.c (psymtab_include_file_name): Likewise.
103
104 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
105 Pedro Alves <palves@redhat.com>
106
107 PR symtab/14604
108 PR symtab/14605
109 * ada-lang.c (coerce_unspec_val_to_type): Use
110 value_contents_copy_raw.
111 * ada-valprint.c (val_print_packed_array_elements): Adjust.
112 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
113 * cp-valprint.c (cp_print_value_fields): Let the common printing
114 code handle optimized out values.
115 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
116 * d-valprint.c (dynamic_array_type): Use
117 value_bits_any_optimized_out.
118 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
119 check_any_valid fields.
120 (check_pieced_value_bits): Delete and inline ...
121 (check_pieced_synthetic_pointer): ... here.
122 (check_pieced_value_validity): Delete.
123 (check_pieced_value_invalid): Delete.
124 (pieced_value_funcs): Remove check_validity and check_any_valid
125 fields.
126 (read_pieced_value): Use mark_value_bits_optimized_out.
127 (write_pieced_value): Switch to use
128 mark_value_bytes_optimized_out.
129 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
130 of assuming the whole value is optimized out.
131 * findvar.c (read_frame_register_value): Remove special handling
132 of optimized out registers.
133 (value_from_register): Use mark_value_bytes_optimized_out.
134 * frame-unwind.c (frame_unwind_got_optimized): Use
135 mark_value_bytes_optimized_out.
136 * jv-valprint.c (java_value_print): Adjust.
137 (java_print_value_fields): Let the common printing code handle
138 optimized out values.
139 * mips-tdep.c (mips_print_register): Remove special handling of
140 optimized out registers.
141 * opencl-lang.c (lval_func_check_validity): Delete.
142 (lval_func_check_any_valid): Delete.
143 (opencl_value_funcs): Remove check_validity and check_any_valid
144 fields.
145 * p-valprint.c (pascal_object_print_value_fields): Let the common
146 printing code handle optimized out values.
147 * stack.c (read_frame_arg): Remove special handling of optimized
148 out values. Fetch both VAL and ENTRYVAL before comparing
149 contents. Adjust to value_available_contents_eq rename.
150 * valprint.c (valprint_check_validity)
151 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
152 (val_print_array_elements): Adjust.
153 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
154 (value_bits_any_optimized_out): New function.
155 (value_entirely_covered_by_range_vector): New function, factored
156 out from value_entirely_unavailable.
157 (value_entirely_unavailable): Reimplement.
158 (value_entirely_optimized_out): New function.
159 (insert_into_bit_range_vector): New function, factored out from
160 mark_value_bits_unavailable.
161 (mark_value_bits_unavailable): Reimplement.
162 (struct ranges_and_idx): New struct.
163 (find_first_range_overlap_and_match): New function, factored out
164 from value_available_contents_bits_eq.
165 (value_available_contents_bits_eq): Rename to ...
166 (value_contents_bits_eq): ... this. Check both unavailable
167 contents and optimized out contents.
168 (value_available_contents_eq): Rename to ...
169 (value_contents_eq): ... this.
170 (allocate_value_lazy): Remove reference to the old optimized_out
171 boolean.
172 (allocate_optimized_out_value): Use
173 mark_value_bytes_optimized_out.
174 (require_not_optimized_out): Adjust to check whether the
175 optimized_out vec is empty.
176 (ranges_copy_adjusted): New function, factored out from
177 value_contents_copy_raw.
178 (value_contents_copy_raw): Also copy the optimized out ranges.
179 Assert the destination ranges aren't optimized out.
180 (value_contents_copy): Update comment, remove call to
181 require_not_optimized_out.
182 (value_contents_equal): Adjust to check whether the optimized_out
183 vec is empty.
184 (set_value_optimized_out, value_optimized_out_const): Delete.
185 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
186 New functions.
187 (value_entirely_optimized_out, value_bits_valid): Delete.
188 (value_copy): Take a VEC copy of the 'optimized_out' field.
189 (value_primitive_field): Remove special handling of optimized out.
190 (value_fetch_lazy): Assert that lazy values have no unavailable
191 regions. Use value_bits_any_optimized_out. Remove some special
192 handling for optimized out values.
193 * value.h: Add intro comment about <optimized out> and
194 <unavailable>.
195 (struct lval_funcs): Remove check_validity and check_any_valid
196 fields.
197 (set_value_optimized_out, value_optimized_out_const): Remove.
198 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
199 New declarations.
200 (value_bits_any_optimized_out): New declaration.
201 (value_bits_valid): Delete declaration.
202 (value_available_contents_eq): Rename to ...
203 (value_contents_eq): ... this, and extend comments.
204
205 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
206
207 Fix -fsanitize=address on unreadable inferior strings.
208 * valprint.c (val_print_string): Fix access before BUFFER.
209
210 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
211
212 * target.c (target_struct_size): Remove.
213 (target_struct_allocsize): Remove.
214 (DEFAULT_ALLOCSIZE): Remove.
215 (target_ops_p): New typedef.
216 (DEF_VEC_P (target_ops_p)): New vector type.
217 (target_structs): Change type to VEC (target_ops_p).
218 (add_target_with_completer): Replace "push" code by VEC_safe_push.
219 (find_default_run_target): Rewrite for loop following changes to
220 target_structs.
221
222 2014-08-19 Joel Brobecker <brobecker@adacore.com>
223
224 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
225 Adjust code accordingly. Adjust function description comment.
226
227 2014-08-19 Yao Qi <yao@codesourcery.com>
228
229 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
230 types.
231
232 2014-08-19 Alan Modra <amodra@gmail.com>
233
234 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
235 * config.in: Regenerate.
236 * configure: Regenerate.
237
238 2014-08-19 Tom Tromey <tromey@redhat.com>
239 Gary Benson <gbenson@redhat.com>
240
241 * common/common-debug.h: New file.
242 * common/common-debug.c: Likewise.
243 * debug.c: Likewise.
244 * Makefile.in (SFILES): Add common/common-debug.c.
245 (HFILES_NO_SRCDIR): Add common/common-debug.h.
246 (COMMON_OBS): Add common-debug.o and debug.o.
247 (common-debug.o): New rule.
248 * common/common-defs.h: Include common-debug.h.
249 * common/agent.c (debug_agent_printf): New function.
250 (DEBUG_AGENT): Redefine.
251 * nat/i386-dregs.c (debug_printf): Undefine.
252
253 2014-08-19 Gary Benson <gbenson@redhat.com>
254
255 * common/common-defs.h: Include print-utils.h.
256 * utils.h: Do not include print-utils.h.
257
258 2014-08-19 Tom Tromey <tromey@redhat.com>
259 Gary Benson <gbenson@redhat.com>
260
261 * common/common-types.h: New file.
262 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
263 * common/common-defs.h: Include common-types.h.
264 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
265 (ULONGEST): Remove.
266
267 2014-08-19 Tom Tromey <tromey@redhat.com>
268 Gary Benson <gbenson@redhat.com>
269
270 * common/errors.h: New file.
271 * common/errors.c: Likewise.
272 * Makefile.in (SFILES): Add common/errors.c.
273 (HFILES_NO_SRCDIR): Add common/errors.h.
274 (COMMON_OBS): Add errors.o.
275 (errors.o): New rule.
276 * common/common-defs.h: Include errors.h.
277 * utils.h (perror_with_name, error, verror, warning, vwarning):
278 Don't declare.
279 * common/common-utils.h: (malloc_failure, internal_error):
280 Likewise.
281
282 2014-08-19 Gary Benson <gbenson@redhat.com>
283
284 * utils.c (internal_vproblem): Always print the message.
285
286 2014-08-18 Doug Evans <dje@google.com>
287
288 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
289
290 2014-08-18 Joel Brobecker <brobecker@adacore.com>
291
292 * ada-typeprint.c (type_is_full_subrange_of_target_type):
293 Return 0 if TYPE is dynamic.
294 (print_range): Add handling of dynamic ranges.
295
296 2014-08-18 Keven Boell <keven.boell@intel.com>
297 Joel Brobecker <brobecker@adacore.com>
298
299 * gdbtypes.h (struct main_type): Add field "data_location".
300 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
301 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
302 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
303 a dynamic data location.
304 (resolve_dynamic_type): Add DW_AT_data_location handling.
305 (copy_recursive, copy_type): Copy the data_location information
306 when present.
307 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
308 * value.c (value_from_contents_and_address): Add
309 DW_AT_data_location handling.
310
311 2014-08-18 Keven Boell <keven.boell@intel.com>
312 Joel Brobecker <brobecker@adacore.com>
313
314 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
315 field "get_object_address".
316 * dwarf2expr.c (execute_stack_op): Add handling for
317 DW_OP_push_object_address.
318 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
319 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
320 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
321 (dwarf_expr_get_obj_addr): New function.
322 (dwarf_expr_ctx_funcs): Add get_object_address field.
323 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
324 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
325 (dwarf2_evaluate_property): Add parameter "address". Use it.
326 (needs_get_obj_addr): New function.
327 (needs_frame_ctx_funcs): Add get_object_address field.
328 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
329 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
330 (resolve_dynamic_array): Likewise.
331
332 2014-08-18 Joel Brobecker <brobecker@adacore.com>
333
334 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
335 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
336 fixed value for records and unions for which some GNAT encodings
337 are present.
338
339 2014-08-18 Joel Brobecker <brobecker@adacore.com>
340
341 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
342 rewrite to avoid "else if" and "else" constructs. Should be
343 a no-op in practice.
344
345 2014-08-18 Joel Brobecker <brobecker@adacore.com>
346
347 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
348 of lexical block.
349
350 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
351
352 PR c++/17132
353 * eval.c: Update all calls to find_overload_match.
354 * valarith.c: Likewise.
355 (value_user_defined_cpp_op, value_user_defined_op): New
356 argument NOSIDE. Update all callers.
357 * valops.c (find_overload_match): New argument NOSIDE.
358 * value.h (find_overload_match): Update signature.
359
360 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
361
362 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
363 'items' methods instead of 'iteritems' method on dictionaries.
364
365 2014-08-15 Doug Evans <dje@google.com>
366
367 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
368 closer to use.
369
370 2014-08-15 Doug Evans <dje@google.com>
371
372 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
373
374 2014-08-15 Doug Evans <dje@google.com>
375
376 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
377
378 2014-08-15 Doug Evans <dje@google.com>
379
380 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
381 unused.
382
383 2014-08-15 Eli Zaretskii <eliz@gnu.org>
384
385 * dcache.h: Include target.h, to avoid compile time warnings.
386
387 2014-08-15 Joel Brobecker <brobecker@adacore.com>
388
389 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
390 frame_info" partial declaration.
391 * gdbarch.h: Regenerate.
392
393 2014-08-15 Yao Qi <yao@codesourcery.com>
394
395 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
396 Add parameter 'decode_for_pst_p'. Callers update.
397
398 2014-08-13 Yao Qi <yao@codesourcery.com>
399
400 PR build/17104
401 * configure.ac: Use local variable 'pos'.
402 * configure: Regenerated.
403
404 2014-08-11 Doug Evans <dje@google.com>
405
406 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
407 message, it is redundant with "Reading symbols from ..." message.
408
409 2014-08-10 Doug Evans <xdje42@gmail.com>
410
411 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
412
413 2014-08-09 Yao Qi <yao@codesourcery.com>
414
415 PR remote/9053
416 * remote.c (remote_xfer_partial): Remove dead code.
417
418 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
419
420 * ia64-linux-tdep.c: Include "regset.h".
421 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
422 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
423 (ia64_linux_supply_fpregset): New function.
424 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
425 (ia64_linux_regset_from_core_section): New function.
426 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
427 method.
428
429 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
430
431 * m68klinux-tdep.c: Include "regset.h".
432 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
433 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
434 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
435 (m68k_linux_regset_from_core_section): New function.
436 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
437 method.
438
439 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
440
441 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
442 function. Move logic to...
443 (tilegx_linux_regmap): ... this new register map.
444 (tilegx_linux_regset): Refer to register map, replace supply
445 method by regcache_supply_regset, and add collect method.
446 * tilegx-tdep.h (enum tilegx_regnum): New enum value
447 TILEGX_FIRST_EASY_REGNUM.
448
449 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
450
451 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
452 that calls regcache_supply_regset and handles the EPC register
453 separately. Move main logic to...
454 (score7_linux_gregmap): ... this new register map.
455 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
456 (score7_linux_gregset): Refer to register map. Add collect method.
457 (score7_linux_regset_from_core_section): Replace
458 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
459 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
460 (struct regset): Delete unused forward declaraction.
461 (struct pt_regs): Delete structure definition.
462 (elf_gregset_t): Delete typedef.
463
464 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
465
466 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
467 (nios2_core_regset): Add collect method.
468
469 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
470
471 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
472 platform-independent and don't write to read-only input buffer.
473 (m32r_linux_collect_gregset): New function.
474 (m32r_linux_gregset): Add collect method.
475
476 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
477
478 * hppa-linux-tdep.c (greg_map): Rename to...
479 (hppa_linux_gregmap): ... this. Also convert to
480 regcache_map_entry format.
481 (hppa_linux_supply_regset): Delete function.
482 (hppa_linux_supply_fpregset): Delete function. Move logic to...
483 (hppa_linux_fpregmap): ... this new register map.
484 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
485 register map, replace supply method by regcache_supply_regset, and
486 add collect method regcache_collect_regset.
487
488 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
489
490 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
491 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
492 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
493 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
494 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
495 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
496 (frv_linux_supply_gregset): Replace main logic by call to
497 regcache_supply_regset, but keep clearing gr32-gr63.
498 (frv_linux_supply_fpregset): Delete function.
499 (frv_linux_gregset): Refer to appropriate register map and add
500 regcache_collect_regset as the collect method.
501 (frv_linux_fpregset): Likewise. Also exchange the supply method
502 by regcache_supply_regset.
503
504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
505
506 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
507 by call to alpha_supply_int_regs.
508 (alpha_linux_collect_gregset): New function.
509 (alpha_linux_supply_fpregset): Replace logic by call to
510 alpha_supply_fp_regs.
511 (alpha_linux_collect_fpregset): New function.
512 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
513
514 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
517 by call to regcache_collect_regset.
518 (supply_gregset, supply_fpregset): Call regcache_supply_regset
519 instead of aarch64_linux_supply_gregset/_fpregset.
520 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
521 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
522 header file instead.
523 (aarch64_linux_supply_gregset, supply_gregset_from_core)
524 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
525 functions. Move logic to ...
526 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
527 register maps.
528 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
529 refer to new register maps, replace *_regset_from_core by
530 regcache_supply_regset, and also use regcache_collect_regset.
531 * aarch64-linux-tdep.h: Include "regset.h".
532 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
533 Delete prototypes.
534 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
535 macros, moved from C source file.
536 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
537 variable declarations.
538
539 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
540
541 * s390-linux-nat.c: Include "regset.h".
542 (regmap_gregset): Delete macro.
543 (s390_64_regmap_gregset): New register map for
544 regcache_supply/_collect_regset.
545 (s390_64_gregset): New regset.
546 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
547 (regmap_fpregset): Delete macro.
548 (s390_native_supply, s390_native_collect): Delete functions.
549 (supply_gregset, fill_gregset): Replace s390-specific regmap
550 handling by a call to regcache_supply/_collect_regset.
551 (supply_fpregset, fill_fpregset): Call regcache_supply/
552 _collect_regset instead of s390_native_supply/_collect.
553 (fetch_regset, store_regset): Likewise. Also change the last
554 parameter to a regset instead of a regmap.
555 (s390_linux_fetch_inferior_registers)
556 (390_linux_store_inferior_registers): Adjust last parameter in
557 calls to fetch_regset and store_regset.
558 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
559 (s390_gregmap): ... this. Also make static const and convert to
560 regcache_map_entry format.
561 (s390x_regmap_gregset): Delete.
562 (s390_regmap_fpregset): Rename to...
563 (s390_fpregmap): ... this. Make static const and convert to
564 regcache_map_entry format.
565 (s390_regmap_upper, s390_regmap_last_break)
566 (s390x_regmap_last_break, s390_regmap_system_call)
567 (s390_regmap_tdb): Likewise.
568 (s390_supply_regset, s390_collect_regset): Remove functions.
569 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
570 s390_supply_regset.
571 (s390_gregset, s390_fpregset, s390_upper_regset)
572 (s390_last_break_regset, s390x_last_break_regset)
573 (s390_system_call_regset, s390_tdb_regset): Make global and
574 replace s390_supply/_collect_regset by regcache_supply/
575 _collect_regset.
576 (s390x_gregset): Delete.
577 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
578 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
579 (s390_regmap_fpregset, s390_regmap_last_break)
580 (s390x_regmap_last_break, s390_regmap_system_call)
581 (s390_regmap_tdb): Delete global variable declarations.
582 (s390_gregset, s390_fpregset, s390_last_break_regset)
583 (s390x_last_break_regset, s390_system_call_regset)
584 (s390_tdb_regset): New global variable declarations.
585
586 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
587
588 * regcache.c: Include "regset.h".
589 (regcache_transfer_regset): New local function.
590 (regcache_supply_regset, regcache_collect_regset): New functions.
591 * regcache.h (struct regcache_map_entry): New structure.
592 (REGCACHE_MAP_SKIP): New enum value.
593 (regcache_supply_regset, regcache_collect_regset): New prototypes.
594
595 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
596
597 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
598 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
599 (ppc_linux_collect_gregset ): Likewise.
600 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
601 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
602 (ppc_collect_vrregset): Likewise.
603 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
604 Likewise.
605
606 2014-08-07 Yao Qi <yao@codesourcery.com>
607
608 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
609 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
610 * remote.c (remote_read_bytes): Likewise.
611
612 2014-08-07 Yao Qi <yao@codesourcery.com>
613
614 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
615
616 2014-08-07 Yao Qi <yao@codesourcery.com>
617
618 PR remote/17230
619 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
620 TARGET_XFER_OK instead of 0.
621
622 2014-08-07 Gary Benson <gbenson@redhat.com>
623
624 * common/common-defs.h: Include errno.h.
625 * defs.h: Do not include errno.h.
626 * ada-typeprint.c: Likewise.
627 * c-typeprint.c: Likewise.
628 * core-regset.c: Likewise.
629 * corefile.c: Likewise.
630 * corelow.c: Likewise.
631 * event-loop.c: Likewise.
632 * f-typeprint.c: Likewise.
633 * gnu-nat.c: Likewise.
634 * go32-nat.c: Likewise.
635 * i386gnu-nat.c: Likewise.
636 * m2-typeprint.c: Likewise.
637 * nat/linux-btrace.c: Likewise.
638 * p-typeprint.c: Likewise.
639 * procfs.c: Likewise.
640 * remote-sim.c: Likewise.
641 * rs6000-nat.c: Likewise.
642 * target.c: Likewise.
643 * typeprint.c: Likewise.
644 * ui-file.c: Likewise.
645 * valops.c: Likewise.
646 * valprint.c: Likewise.
647
648 2014-08-07 Gary Benson <gbenson@redhat.com>
649
650 * common/common-defs.h: Include string.h.
651 * aarch64-tdep.c: Do not include string.h.
652 * ada-exp.y: Likewise.
653 * ada-lang.c: Likewise.
654 * ada-lex.l: Likewise.
655 * ada-typeprint.c: Likewise.
656 * ada-valprint.c: Likewise.
657 * aix-thread.c: Likewise.
658 * alpha-linux-tdep.c: Likewise.
659 * alpha-mdebug-tdep.c: Likewise.
660 * alpha-nat.c: Likewise.
661 * alpha-osf1-tdep.c: Likewise.
662 * alpha-tdep.c: Likewise.
663 * alphanbsd-tdep.c: Likewise.
664 * amd64-dicos-tdep.c: Likewise.
665 * amd64-linux-tdep.c: Likewise.
666 * amd64-nat.c: Likewise.
667 * amd64-sol2-tdep.c: Likewise.
668 * amd64fbsd-tdep.c: Likewise.
669 * amd64obsd-tdep.c: Likewise.
670 * arch-utils.c: Likewise.
671 * arm-linux-nat.c: Likewise.
672 * arm-linux-tdep.c: Likewise.
673 * arm-tdep.c: Likewise.
674 * arm-wince-tdep.c: Likewise.
675 * armbsd-tdep.c: Likewise.
676 * armnbsd-nat.c: Likewise.
677 * armnbsd-tdep.c: Likewise.
678 * armobsd-tdep.c: Likewise.
679 * avr-tdep.c: Likewise.
680 * ax-gdb.c: Likewise.
681 * ax-general.c: Likewise.
682 * bcache.c: Likewise.
683 * bfin-tdep.c: Likewise.
684 * breakpoint.c: Likewise.
685 * build-id.c: Likewise.
686 * buildsym.c: Likewise.
687 * c-exp.y: Likewise.
688 * c-lang.c: Likewise.
689 * c-typeprint.c: Likewise.
690 * c-valprint.c: Likewise.
691 * charset.c: Likewise.
692 * cli-out.c: Likewise.
693 * cli/cli-cmds.c: Likewise.
694 * cli/cli-decode.c: Likewise.
695 * cli/cli-dump.c: Likewise.
696 * cli/cli-interp.c: Likewise.
697 * cli/cli-logging.c: Likewise.
698 * cli/cli-script.c: Likewise.
699 * cli/cli-setshow.c: Likewise.
700 * cli/cli-utils.c: Likewise.
701 * coffread.c: Likewise.
702 * common/agent.c: Likewise.
703 * common/buffer.c: Likewise.
704 * common/buffer.h: Likewise.
705 * common/common-utils.c: Likewise.
706 * common/filestuff.c: Likewise.
707 * common/filestuff.c: Likewise.
708 * common/format.c: Likewise.
709 * common/print-utils.c: Likewise.
710 * common/rsp-low.c: Likewise.
711 * common/signals.c: Likewise.
712 * common/vec.h: Likewise.
713 * common/xml-utils.c: Likewise.
714 * core-regset.c: Likewise.
715 * corefile.c: Likewise.
716 * corelow.c: Likewise.
717 * cp-abi.c: Likewise.
718 * cp-name-parser.y: Likewise.
719 * cp-support.c: Likewise.
720 * cp-valprint.c: Likewise.
721 * cris-tdep.c: Likewise.
722 * d-exp.y: Likewise.
723 * darwin-nat.c: Likewise.
724 * dbxread.c: Likewise.
725 * dcache.c: Likewise.
726 * demangle.c: Likewise.
727 * dicos-tdep.c: Likewise.
728 * disasm.c: Likewise.
729 * doublest.c: Likewise.
730 * dsrec.c: Likewise.
731 * dummy-frame.c: Likewise.
732 * dwarf2-frame.c: Likewise.
733 * dwarf2loc.c: Likewise.
734 * dwarf2read.c: Likewise.
735 * elfread.c: Likewise.
736 * environ.c: Likewise.
737 * eval.c: Likewise.
738 * event-loop.c: Likewise.
739 * exceptions.c: Likewise.
740 * exec.c: Likewise.
741 * expprint.c: Likewise.
742 * f-exp.y: Likewise.
743 * f-lang.c: Likewise.
744 * f-typeprint.c: Likewise.
745 * f-valprint.c: Likewise.
746 * fbsd-nat.c: Likewise.
747 * findcmd.c: Likewise.
748 * findvar.c: Likewise.
749 * fork-child.c: Likewise.
750 * frame.c: Likewise.
751 * frv-linux-tdep.c: Likewise.
752 * frv-tdep.c: Likewise.
753 * gdb.c: Likewise.
754 * gdb_bfd.c: Likewise.
755 * gdbarch.c: Likewise.
756 * gdbarch.sh: Likewise.
757 * gdbtypes.c: Likewise.
758 * gnu-nat.c: Likewise.
759 * gnu-v2-abi.c: Likewise.
760 * gnu-v3-abi.c: Likewise.
761 * go-exp.y: Likewise.
762 * go-lang.c: Likewise.
763 * go32-nat.c: Likewise.
764 * guile/guile.c: Likewise.
765 * guile/scm-auto-load.c: Likewise.
766 * hppa-hpux-tdep.c: Likewise.
767 * hppa-linux-nat.c: Likewise.
768 * hppanbsd-tdep.c: Likewise.
769 * hppaobsd-tdep.c: Likewise.
770 * i386-cygwin-tdep.c: Likewise.
771 * i386-dicos-tdep.c: Likewise.
772 * i386-linux-tdep.c: Likewise.
773 * i386-nto-tdep.c: Likewise.
774 * i386-sol2-tdep.c: Likewise.
775 * i386-tdep.c: Likewise.
776 * i386bsd-tdep.c: Likewise.
777 * i386gnu-nat.c: Likewise.
778 * i386nbsd-tdep.c: Likewise.
779 * i386obsd-tdep.c: Likewise.
780 * i387-tdep.c: Likewise.
781 * ia64-libunwind-tdep.c: Likewise.
782 * ia64-linux-nat.c: Likewise.
783 * inf-child.c: Likewise.
784 * inf-ptrace.c: Likewise.
785 * inf-ttrace.c: Likewise.
786 * infcall.c: Likewise.
787 * infcmd.c: Likewise.
788 * inflow.c: Likewise.
789 * infrun.c: Likewise.
790 * interps.c: Likewise.
791 * iq2000-tdep.c: Likewise.
792 * irix5-nat.c: Likewise.
793 * jv-exp.y: Likewise.
794 * jv-lang.c: Likewise.
795 * jv-typeprint.c: Likewise.
796 * jv-valprint.c: Likewise.
797 * language.c: Likewise.
798 * linux-fork.c: Likewise.
799 * linux-nat.c: Likewise.
800 * lm32-tdep.c: Likewise.
801 * m2-exp.y: Likewise.
802 * m2-typeprint.c: Likewise.
803 * m32c-tdep.c: Likewise.
804 * m32r-linux-nat.c: Likewise.
805 * m32r-linux-tdep.c: Likewise.
806 * m32r-rom.c: Likewise.
807 * m32r-tdep.c: Likewise.
808 * m68hc11-tdep.c: Likewise.
809 * m68k-tdep.c: Likewise.
810 * m68kbsd-tdep.c: Likewise.
811 * m68klinux-nat.c: Likewise.
812 * m68klinux-tdep.c: Likewise.
813 * m88k-tdep.c: Likewise.
814 * machoread.c: Likewise.
815 * macrocmd.c: Likewise.
816 * main.c: Likewise.
817 * mdebugread.c: Likewise.
818 * mem-break.c: Likewise.
819 * memattr.c: Likewise.
820 * memory-map.c: Likewise.
821 * mep-tdep.c: Likewise.
822 * mi/mi-cmd-break.c: Likewise.
823 * mi/mi-cmd-disas.c: Likewise.
824 * mi/mi-cmd-env.c: Likewise.
825 * mi/mi-cmd-stack.c: Likewise.
826 * mi/mi-cmd-var.c: Likewise.
827 * mi/mi-cmds.c: Likewise.
828 * mi/mi-console.c: Likewise.
829 * mi/mi-getopt.c: Likewise.
830 * mi/mi-interp.c: Likewise.
831 * mi/mi-main.c: Likewise.
832 * mi/mi-parse.c: Likewise.
833 * microblaze-rom.c: Likewise.
834 * microblaze-tdep.c: Likewise.
835 * mingw-hdep.c: Likewise.
836 * minidebug.c: Likewise.
837 * minsyms.c: Likewise.
838 * mips-irix-tdep.c: Likewise.
839 * mips-linux-tdep.c: Likewise.
840 * mips-tdep.c: Likewise.
841 * mips64obsd-tdep.c: Likewise.
842 * mipsnbsd-tdep.c: Likewise.
843 * mipsread.c: Likewise.
844 * mn10300-linux-tdep.c: Likewise.
845 * mn10300-tdep.c: Likewise.
846 * monitor.c: Likewise.
847 * moxie-tdep.c: Likewise.
848 * mt-tdep.c: Likewise.
849 * nat/linux-btrace.c: Likewise.
850 * nat/linux-osdata.c: Likewise.
851 * nat/linux-procfs.c: Likewise.
852 * nat/linux-ptrace.c: Likewise.
853 * nat/linux-waitpid.c: Likewise.
854 * nbsd-tdep.c: Likewise.
855 * nios2-linux-tdep.c: Likewise.
856 * nto-procfs.c: Likewise.
857 * nto-tdep.c: Likewise.
858 * objc-lang.c: Likewise.
859 * objfiles.c: Likewise.
860 * opencl-lang.c: Likewise.
861 * osabi.c: Likewise.
862 * osdata.c: Likewise.
863 * p-exp.y: Likewise.
864 * p-lang.c: Likewise.
865 * p-typeprint.c: Likewise.
866 * parse.c: Likewise.
867 * posix-hdep.c: Likewise.
868 * ppc-linux-nat.c: Likewise.
869 * ppc-sysv-tdep.c: Likewise.
870 * ppcfbsd-tdep.c: Likewise.
871 * ppcnbsd-tdep.c: Likewise.
872 * ppcobsd-tdep.c: Likewise.
873 * printcmd.c: Likewise.
874 * procfs.c: Likewise.
875 * prologue-value.c: Likewise.
876 * python/py-auto-load.c: Likewise.
877 * python/py-gdb-readline.c: Likewise.
878 * ravenscar-thread.c: Likewise.
879 * regcache.c: Likewise.
880 * registry.c: Likewise.
881 * remote-fileio.c: Likewise.
882 * remote-m32r-sdi.c: Likewise.
883 * remote-mips.c: Likewise.
884 * remote-notif.c: Likewise.
885 * remote-sim.c: Likewise.
886 * remote.c: Likewise.
887 * reverse.c: Likewise.
888 * rs6000-aix-tdep.c: Likewise.
889 * ser-base.c: Likewise.
890 * ser-go32.c: Likewise.
891 * ser-mingw.c: Likewise.
892 * ser-pipe.c: Likewise.
893 * ser-tcp.c: Likewise.
894 * ser-unix.c: Likewise.
895 * serial.c: Likewise.
896 * sh-tdep.c: Likewise.
897 * sh64-tdep.c: Likewise.
898 * shnbsd-tdep.c: Likewise.
899 * skip.c: Likewise.
900 * sol-thread.c: Likewise.
901 * solib-dsbt.c: Likewise.
902 * solib-frv.c: Likewise.
903 * solib-osf.c: Likewise.
904 * solib-som.c: Likewise.
905 * solib-spu.c: Likewise.
906 * solib-target.c: Likewise.
907 * solib.c: Likewise.
908 * somread.c: Likewise.
909 * source.c: Likewise.
910 * sparc-nat.c: Likewise.
911 * sparc-sol2-tdep.c: Likewise.
912 * sparc-tdep.c: Likewise.
913 * sparc64-tdep.c: Likewise.
914 * sparc64fbsd-tdep.c: Likewise.
915 * sparc64nbsd-tdep.c: Likewise.
916 * sparcnbsd-tdep.c: Likewise.
917 * spu-linux-nat.c: Likewise.
918 * spu-multiarch.c: Likewise.
919 * spu-tdep.c: Likewise.
920 * stabsread.c: Likewise.
921 * stack.c: Likewise.
922 * std-regs.c: Likewise.
923 * symfile.c: Likewise.
924 * symmisc.c: Likewise.
925 * symtab.c: Likewise.
926 * target.c: Likewise.
927 * thread.c: Likewise.
928 * tilegx-linux-nat.c: Likewise.
929 * tilegx-tdep.c: Likewise.
930 * top.c: Likewise.
931 * tracepoint.c: Likewise.
932 * tui/tui-command.c: Likewise.
933 * tui/tui-data.c: Likewise.
934 * tui/tui-disasm.c: Likewise.
935 * tui/tui-file.c: Likewise.
936 * tui/tui-layout.c: Likewise.
937 * tui/tui-out.c: Likewise.
938 * tui/tui-regs.c: Likewise.
939 * tui/tui-source.c: Likewise.
940 * tui/tui-stack.c: Likewise.
941 * tui/tui-win.c: Likewise.
942 * tui/tui-windata.c: Likewise.
943 * tui/tui-winsource.c: Likewise.
944 * typeprint.c: Likewise.
945 * ui-file.c: Likewise.
946 * ui-out.c: Likewise.
947 * user-regs.c: Likewise.
948 * utils.c: Likewise.
949 * v850-tdep.c: Likewise.
950 * valarith.c: Likewise.
951 * valops.c: Likewise.
952 * valprint.c: Likewise.
953 * value.c: Likewise.
954 * varobj.c: Likewise.
955 * vax-tdep.c: Likewise.
956 * vaxnbsd-tdep.c: Likewise.
957 * vaxobsd-tdep.c: Likewise.
958 * windows-nat.c: Likewise.
959 * xcoffread.c: Likewise.
960 * xml-support.c: Likewise.
961 * xstormy16-tdep.c: Likewise.
962 * xtensa-linux-nat.c: Likewise.
963
964 2014-08-07 Gary Benson <gbenson@redhat.com>
965
966 * common/common-defs.h: Include gdb_assert.h.
967 * aarch64-tdep.c: Do not include gdb_assert.h.
968 * addrmap.c: Likewise.
969 * aix-thread.c: Likewise.
970 * alpha-linux-tdep.c: Likewise.
971 * alpha-mdebug-tdep.c: Likewise.
972 * alphanbsd-tdep.c: Likewise.
973 * amd64-nat.c: Likewise.
974 * amd64-tdep.c: Likewise.
975 * amd64bsd-nat.c: Likewise.
976 * amd64fbsd-nat.c: Likewise.
977 * amd64fbsd-tdep.c: Likewise.
978 * amd64nbsd-nat.c: Likewise.
979 * amd64nbsd-tdep.c: Likewise.
980 * amd64obsd-nat.c: Likewise.
981 * amd64obsd-tdep.c: Likewise.
982 * arch-utils.c: Likewise.
983 * arm-tdep.c: Likewise.
984 * armbsd-tdep.c: Likewise.
985 * auxv.c: Likewise.
986 * bcache.c: Likewise.
987 * bfin-tdep.c: Likewise.
988 * blockframe.c: Likewise.
989 * breakpoint.c: Likewise.
990 * bsd-kvm.c: Likewise.
991 * bsd-uthread.c: Likewise.
992 * buildsym.c: Likewise.
993 * c-exp.y: Likewise.
994 * c-lang.c: Likewise.
995 * charset.c: Likewise.
996 * cleanups.c: Likewise.
997 * cli-out.c: Likewise.
998 * cli/cli-decode.c: Likewise.
999 * cli/cli-dump.c: Likewise.
1000 * cli/cli-logging.c: Likewise.
1001 * cli/cli-script.c: Likewise.
1002 * cli/cli-utils.c: Likewise.
1003 * coffread.c: Likewise.
1004 * common/common-utils.c: Likewise.
1005 * common/queue.h: Likewise.
1006 * common/signals.c: Likewise.
1007 * common/vec.h: Likewise.
1008 * complaints.c: Likewise.
1009 * completer.c: Likewise.
1010 * corelow.c: Likewise.
1011 * cp-abi.c: Likewise.
1012 * cp-name-parser.y: Likewise.
1013 * cp-namespace.c: Likewise.
1014 * cp-support.c: Likewise.
1015 * cris-tdep.c: Likewise.
1016 * dbxread.c: Likewise.
1017 * dictionary.c: Likewise.
1018 * doublest.c: Likewise.
1019 * dsrec.c: Likewise.
1020 * dummy-frame.c: Likewise.
1021 * dwarf2-frame-tailcall.c: Likewise.
1022 * dwarf2-frame.c: Likewise.
1023 * dwarf2expr.c: Likewise.
1024 * dwarf2loc.c: Likewise.
1025 * dwarf2read.c: Likewise.
1026 * eval.c: Likewise.
1027 * event-loop.c: Likewise.
1028 * exceptions.c: Likewise.
1029 * expprint.c: Likewise.
1030 * f-valprint.c: Likewise.
1031 * fbsd-nat.c: Likewise.
1032 * findvar.c: Likewise.
1033 * frame-unwind.c: Likewise.
1034 * frame.c: Likewise.
1035 * frv-tdep.c: Likewise.
1036 * gcore.c: Likewise.
1037 * gdb-dlfcn.c: Likewise.
1038 * gdb_bfd.c: Likewise.
1039 * gdbarch.c: Likewise.
1040 * gdbarch.sh: Likewise.
1041 * gdbtypes.c: Likewise.
1042 * gnu-nat.c: Likewise.
1043 * gnu-v3-abi.c: Likewise.
1044 * go-lang.c: Likewise.
1045 * guile/scm-exception.c: Likewise.
1046 * guile/scm-gsmob.c: Likewise.
1047 * guile/scm-lazy-string.c: Likewise.
1048 * guile/scm-math.c: Likewise.
1049 * guile/scm-pretty-print.c: Likewise.
1050 * guile/scm-safe-call.c: Likewise.
1051 * guile/scm-utils.c: Likewise.
1052 * guile/scm-value.c: Likewise.
1053 * h8300-tdep.c: Likewise.
1054 * hppa-hpux-nat.c: Likewise.
1055 * hppa-tdep.c: Likewise.
1056 * hppanbsd-tdep.c: Likewise.
1057 * hppaobsd-tdep.c: Likewise.
1058 * i386-darwin-nat.c: Likewise.
1059 * i386-darwin-tdep.c: Likewise.
1060 * i386-nto-tdep.c: Likewise.
1061 * i386-tdep.c: Likewise.
1062 * i386bsd-nat.c: Likewise.
1063 * i386fbsd-tdep.c: Likewise.
1064 * i386gnu-nat.c: Likewise.
1065 * i386nbsd-tdep.c: Likewise.
1066 * i386obsd-tdep.c: Likewise.
1067 * i387-tdep.c: Likewise.
1068 * ia64-libunwind-tdep.c: Likewise.
1069 * ia64-tdep.c: Likewise.
1070 * inf-ptrace.c: Likewise.
1071 * inf-ttrace.c: Likewise.
1072 * infcall.c: Likewise.
1073 * infcmd.c: Likewise.
1074 * infrun.c: Likewise.
1075 * inline-frame.c: Likewise.
1076 * interps.c: Likewise.
1077 * jv-lang.c: Likewise.
1078 * jv-typeprint.c: Likewise.
1079 * linux-fork.c: Likewise.
1080 * linux-nat.c: Likewise.
1081 * linux-thread-db.c: Likewise.
1082 * m32c-tdep.c: Likewise.
1083 * m32r-linux-nat.c: Likewise.
1084 * m32r-tdep.c: Likewise.
1085 * m68k-tdep.c: Likewise.
1086 * m68kbsd-nat.c: Likewise.
1087 * m68kbsd-tdep.c: Likewise.
1088 * m88k-tdep.c: Likewise.
1089 * machoread.c: Likewise.
1090 * macroexp.c: Likewise.
1091 * macrotab.c: Likewise.
1092 * maint.c: Likewise.
1093 * mdebugread.c: Likewise.
1094 * memory-map.c: Likewise.
1095 * mep-tdep.c: Likewise.
1096 * mi/mi-common.c: Likewise.
1097 * microblaze-tdep.c: Likewise.
1098 * mingw-hdep.c: Likewise.
1099 * mips-linux-nat.c: Likewise.
1100 * mips-linux-tdep.c: Likewise.
1101 * mips-tdep.c: Likewise.
1102 * mips64obsd-tdep.c: Likewise.
1103 * mipsnbsd-tdep.c: Likewise.
1104 * mn10300-linux-tdep.c: Likewise.
1105 * mn10300-tdep.c: Likewise.
1106 * moxie-tdep.c: Likewise.
1107 * mt-tdep.c: Likewise.
1108 * nat/linux-btrace.c: Likewise.
1109 * nat/linux-osdata.c: Likewise.
1110 * nat/linux-ptrace.c: Likewise.
1111 * nat/mips-linux-watch.c: Likewise.
1112 * nios2-linux-tdep.c: Likewise.
1113 * nios2-tdep.c: Likewise.
1114 * objc-lang.c: Likewise.
1115 * objfiles.c: Likewise.
1116 * obsd-nat.c: Likewise.
1117 * opencl-lang.c: Likewise.
1118 * osabi.c: Likewise.
1119 * parse.c: Likewise.
1120 * ppc-linux-nat.c: Likewise.
1121 * ppc-sysv-tdep.c: Likewise.
1122 * ppcfbsd-nat.c: Likewise.
1123 * ppcfbsd-tdep.c: Likewise.
1124 * ppcnbsd-nat.c: Likewise.
1125 * ppcnbsd-tdep.c: Likewise.
1126 * ppcobsd-nat.c: Likewise.
1127 * ppcobsd-tdep.c: Likewise.
1128 * printcmd.c: Likewise.
1129 * procfs.c: Likewise.
1130 * prologue-value.c: Likewise.
1131 * psymtab.c: Likewise.
1132 * python/py-lazy-string.c: Likewise.
1133 * python/py-value.c: Likewise.
1134 * regcache.c: Likewise.
1135 * reggroups.c: Likewise.
1136 * registry.c: Likewise.
1137 * remote-sim.c: Likewise.
1138 * remote.c: Likewise.
1139 * rs6000-aix-tdep.c: Likewise.
1140 * rs6000-tdep.c: Likewise.
1141 * s390-linux-tdep.c: Likewise.
1142 * score-tdep.c: Likewise.
1143 * ser-base.c: Likewise.
1144 * ser-mingw.c: Likewise.
1145 * sh-tdep.c: Likewise.
1146 * sh64-tdep.c: Likewise.
1147 * solib-darwin.c: Likewise.
1148 * solib-spu.c: Likewise.
1149 * solib-svr4.c: Likewise.
1150 * source.c: Likewise.
1151 * sparc-nat.c: Likewise.
1152 * sparc-sol2-tdep.c: Likewise.
1153 * sparc-tdep.c: Likewise.
1154 * sparc64-sol2-tdep.c: Likewise.
1155 * sparc64-tdep.c: Likewise.
1156 * sparc64fbsd-tdep.c: Likewise.
1157 * sparc64nbsd-tdep.c: Likewise.
1158 * sparc64obsd-tdep.c: Likewise.
1159 * sparcnbsd-tdep.c: Likewise.
1160 * sparcobsd-tdep.c: Likewise.
1161 * spu-multiarch.c: Likewise.
1162 * spu-tdep.c: Likewise.
1163 * stabsread.c: Likewise.
1164 * stack.c: Likewise.
1165 * symfile.c: Likewise.
1166 * symtab.c: Likewise.
1167 * target-descriptions.c: Likewise.
1168 * target-memory.c: Likewise.
1169 * target.c: Likewise.
1170 * tic6x-linux-tdep.c: Likewise.
1171 * tic6x-tdep.c: Likewise.
1172 * tilegx-linux-nat.c: Likewise.
1173 * tilegx-tdep.c: Likewise.
1174 * top.c: Likewise.
1175 * tramp-frame.c: Likewise.
1176 * tui/tui-out.c: Likewise.
1177 * tui/tui-winsource.c: Likewise.
1178 * ui-out.c: Likewise.
1179 * user-regs.c: Likewise.
1180 * utils.c: Likewise.
1181 * v850-tdep.c: Likewise.
1182 * valops.c: Likewise.
1183 * value.c: Likewise.
1184 * varobj.c: Likewise.
1185 * vax-nat.c: Likewise.
1186 * xml-syscall.c: Likewise.
1187 * xml-tdesc.c: Likewise.
1188 * xstormy16-tdep.c: Likewise.
1189 * xtensa-linux-nat.c: Likewise.
1190 * xtensa-tdep.c: Likewise.
1191
1192 2014-08-07 Gary Benson <gbenson@redhat.com>
1193
1194 * common/common-defs.h: Include common-utils.h.
1195 * defs.h: Do not include common-utils.h.
1196 * common/gdb_assert.h: Likewise.
1197 * darwin-nat.h: Likewise.
1198 * nat/linux-btrace.c: Likewise.
1199 * target/waitstatus.h: Likewise.
1200
1201 2014-08-07 Gary Benson <gbenson@redhat.com>
1202
1203 * common/common-defs.h: Include ptid.h.
1204 * defs.h: Do not include ptid.h.
1205 * inferior.h: Likewise.
1206 * infrun.h: Likewise.
1207 * nat/linux-btrace.h: Likewise.
1208 * nat/linux-osdata.h: Likewise.
1209 * target/waitstatus.h: Likewise.
1210
1211 2014-08-07 Gary Benson <gbenson@redhat.com>
1212
1213 * common/common-defs.h: Include gdb_locale.h.
1214 * defs.h: Do not include gdb_locale.h.
1215
1216 2014-08-07 Gary Benson <gbenson@redhat.com>
1217
1218 * common/common-defs.h: Include gdb/signals.h.
1219 * defs.h: Do not include gdb/signals.h.
1220
1221 2014-08-07 Gary Benson <gbenson@redhat.com>
1222
1223 * common/common-defs.h: Include pathmax.h.
1224 * defs.h: Do not include pathmax.h.
1225
1226 2014-08-07 Gary Benson <gbenson@redhat.com>
1227
1228 * common/common-defs.h: Include libiberty.h.
1229 * defs.h: Do not include libiberty.h.
1230 * common/queue.h: Likewise.
1231 * cp-name-parser.y: Likewise.
1232 * mi/mi-cmd-catch.c: Likewise.
1233 * python/python.c: Likewise.
1234
1235 2014-08-07 Gary Benson <gbenson@redhat.com>
1236
1237 * common/common-defs.h: Include ansidecl.h.
1238 * defs.h: Do not include ansidecl.h.
1239 * common/buffer.h: Likewise.
1240 * common/common-utils.h: Likewise.
1241
1242 2014-08-07 Gary Benson <gbenson@redhat.com>
1243
1244 * common/common-defs.h: Include stddef.h.
1245 * defs.h: Do not include stddef.h.
1246 * common/common-utils.h: Likewise.
1247 * amd64fbsd-nat.c: Likewise.
1248 * bcache.c: Likewise.
1249 * charset.c: Likewise.
1250 * common/buffer.h: Likewise.
1251 * common/vec.h: Likewise.
1252 * i386bsd-nat.c: Likewise.
1253 * nat/linux-btrace.h: Likewise.
1254 * ppcfbsd-nat.c: Likewise.
1255 * ppcnbsd-tdep.h: Likewise.
1256 * ppcobsd-nat.c: Likewise.
1257 * ppcobsd-tdep.h: Likewise.
1258 * python/py-gdb-readline.c: Likewise.
1259
1260 2014-08-07 Gary Benson <gbenson@redhat.com>
1261
1262 * common/common-defs.h: Include stdarg.h.
1263 * defs.h: Do not include stdarg.h.
1264 * ada-lang.c: Likewise.
1265 * common/common-utils.h: Likewise.
1266 * guile/scm-string.c: Likewise.
1267 * guile/scm-utils.c: Likewise.
1268 * m32c-tdep.c: Likewise.
1269
1270 2014-08-07 Gary Benson <gbenson@redhat.com>
1271
1272 * common/common-defs.h: Include stdlib.h.
1273 * defs.h: Do not include stdlib.h.
1274 * addrmap.c: Likewise.
1275 * bcache.c: Likewise.
1276 * common/buffer.c: Likewise.
1277 * common/common-utils.c: Likewise.
1278 * cp-name-parser.y: Likewise.
1279 * go32-nat.c: Likewise.
1280 * mn10300-linux-tdep.c: Likewise.
1281 * nat/linux-osdata.c: Likewise.
1282 * tui/tui.c: Likewise.
1283 * windows-nat.c: Likewise.
1284
1285 2014-08-07 Gary Benson <gbenson@redhat.com>
1286
1287 * common/common-defs.h: Include stdio.h.
1288 * defs.h: Do not include stdio.h.
1289 * ada-lang.c: Likewise.
1290 * common/buffer.c: Likewise.
1291 * common/common-utils.c: Likewise.
1292 * cp-name-parser.y: Likewise.
1293 * gnu-nat.c: Likewise.
1294 * go32-nat.c: Likewise.
1295 * i386gnu-nat.c: Likewise.
1296 * proc-api.c: Likewise.
1297 * proc-events.c: Likewise.
1298 * proc-flags.c: Likewise.
1299 * proc-why.c: Likewise.
1300 * python/python-internal.h: Likewise.
1301 * target-memory.c: Likewise.
1302 * tui/tui-io.c: Likewise.
1303 * tui/tui.c: Likewise.
1304
1305 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1306
1307 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1308 (scan_dyntag_auxv): Same.
1309
1310 2014-08-06 Yao Qi <yao@codesourcery.com>
1311
1312 * amd64-linux-nat.c: Remove duplicated include
1313 "x86-linux-nat.h".
1314 * i386-linux-nat.c: Likewise.
1315
1316 2014-08-06 Yao Qi <yao@codesourcery.com>
1317
1318 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1319 operand" with "Special opcode" in comments.
1320
1321 2014-08-05 Gary Benson <gbenson@redhat.com>
1322
1323 * interps.c (initialize_interps): Remove prototype.
1324 (interpreter_initialized): Remove static global.
1325 (interp_add): Do not call initialize_interps.
1326 (initialize_interps): Remove function.
1327
1328 2014-08-05 Gary Benson <gbenson@redhat.com>
1329
1330 * utils.c (vwarning): Remove spurious va_end.
1331
1332 2014-08-05 Alan Modra <amodra@gmail.com>
1333
1334 * charset.c (convert_between_encodings): Cast result of obstack_base.
1335 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1336 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1337 (read_unwind_info): Use size_t for some locals.
1338 * jit.c (finalize_symtab): Likewise.
1339 * utils.c (hashtab_obstack_allocate): Likewise.
1340 * symmisc.c (print_objfile_statistics): Update format strings.
1341
1342 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1343
1344 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1345 (Changes in GDB 7.8): ... here.
1346
1347 2014-08-04 Tom Tromey <tromey@redhat.com>
1348
1349 * target.c (set_targetdebug): New function.
1350 (initialize_targets): Pass set_targetdebug when creating "set
1351 debug target".
1352
1353 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1354
1355 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1356 if detecting a variable-sized field that is not the last field.
1357 Fix struct type length computation.
1358
1359 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1360
1361 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1362 Add debug trace.
1363
1364 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1365
1366 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1367 Remove "+ 8" offset in computation of CHAIN_VMA.
1368
1369 2014-07-31 Doug Evans <dje@google.com>
1370
1371 * inflow.c (child_terminal_inferior): Add comment.
1372 (child_terminal_ours_for_output): Add comment.
1373 (child_terminal_ours): Add comment.
1374 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1375 (linux_nat_terminal_ours): Add comment.
1376
1377 2014-07-31 Gary Benson <gbenson@redhat.com>
1378
1379 * common/btrace-common.h: Do not include defs.h or server.h.
1380 * nat/mips-linux-watch.h: Likewise.
1381 * gdb-dlfcn.h: Do not include defs.h.
1382 * tracefile.h: Likewise.
1383
1384 2014-07-30 Roland McGrath <mcgrathr@google.com>
1385
1386 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1387
1388 2014-07-30 Tom Tromey <tromey@redhat.com>
1389
1390 * bsd-kvm.c (bsd_kvm_open): Constify.
1391 * corelow.c (core_open): Constify.
1392 * ctf.c (ctf_open): Constify.
1393 * dbug-rom.c (dbug_open): Constify.
1394 * exec.c (exec_open): Constify.
1395 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1396 * microblaze-rom.c (picobug_open): Constify.
1397 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1398 Constify.
1399 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1400 * record-btrace.c (record_btrace_open): Constify.
1401 * record-full.c (record_full_core_open_1, record_full_open_1)
1402 (record_full_open): Constify.
1403 * remote-m32r-sdi.c (m32r_open): Constify.
1404 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1405 (rockhopper_open, lsi_open): Constify.
1406 * remote-sim.c (gdbsim_open): Constify.
1407 * remote.c (remote_open, extended_remote_open, remote_open_1):
1408 Constify.
1409 * target.h (struct target_ops) <to_open>: Make "arg" const.
1410 * tracefile-tfile.c (tfile_open): Constify.
1411
1412 2014-07-30 Tom Tromey <tromey@redhat.com>
1413
1414 * breakpoint.c (map_breakpoint_numbers): Update.
1415 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1416 (get_number_const): New function.
1417 (get_number): Rewrite using get_number_const.
1418 (init_number_or_range): Make "string" const.
1419 (number_is_in_list): Make "list" const.
1420 * cli/cli-utils.h (get_number_const): Declare.
1421 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1422 (init_number_or_range, number_is_in_list): Update.
1423 * printcmd.c (map_display_numbers): Update.
1424 * value.c (value_from_history_ref): Constify.
1425 * value.h (value_from_history_ref): Update.
1426
1427 2014-07-30 Tom Tromey <tromey@redhat.com>
1428
1429 * corefile.c (hook_type, call_extra_exec_file_hooks)
1430 (specify_exec_file_hook): Constify.
1431 * exec.c (exec_file_attach): Make "filename" const.
1432 * gdbcore.h (deprecated_exec_file_display_hook)
1433 (specify_exec_file_hook, exec_file_attach): Constify.
1434 * main.c (captured_main): Use catch_command_errors_const.
1435
1436 2014-07-30 Tom Tromey <tromey@redhat.com>
1437
1438 * target.c (open_target): New function.
1439 (add_target_with_completer, add_deprecated_target_alias): Use
1440 set_cmd_sfunc, set_cmd_context.
1441 (debug_to_open): Remove.
1442 (setup_target_debug): Update.
1443
1444 2014-07-30 Yao Qi <yao@codesourcery.com>
1445
1446 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1447 comments.
1448 * parse.c (exp_iterate): Update comments.
1449
1450 2014-07-30 Gary Benson <gbenson@redhat.com>
1451
1452 * common/common-defs.h: New file.
1453 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1454 * defs.h: Include common-defs.h.
1455 Do not include config.h or build-gnulib/config.h.
1456
1457 2014-07-30 Gary Benson <gbenson@redhat.com>
1458
1459 * common/common-utils.h: Do not include config.h.
1460 * nat/linux-btrace.h: Likewise.
1461
1462 2014-07-30 Gary Benson <gbenson@redhat.com>
1463
1464 * btrace.c: Include defs.h.
1465 * common/ptid.c: Include defs.h or server.h as appropriate.
1466 * nat/mips-linux-watch.c: Likewise.
1467
1468 2014-07-29 Tom Tromey <tromey@redhat.com>
1469
1470 * target.c (target_is_pushed): Simplify.
1471
1472 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1473
1474 GDB 7.8 released.
1475
1476 2014-07-29 Yao Qi <yao@codesourcery.com>
1477
1478 PR gdb/17206
1479 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1480
1481 2014-07-28 Doug Evans <xdje42@gmail.com>
1482
1483 PR guile/17203
1484 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1485 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1486 parameters.
1487
1488 2014-07-28 Will Newton <will.newton@linaro.org>
1489
1490 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1491 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1492 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1493 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1494 (THUMB2_EABI_SYSCALL): Likewise.
1495 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1496 struct tramp_frame.
1497 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1498 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1499
1500 2014-07-27 Doug Evans <xdje42@gmail.com>
1501
1502 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1503
1504 2014-07-27 Doug Evans <xdje42@gmail.com>
1505
1506 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1507
1508 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1509 Doug Evans <xdje42@gmail.com>
1510
1511 PR guile/17146
1512 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1513 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1514 * configure.ac: Try to use guild to compile an scm file, if it fails
1515 then disable guile support.
1516 * configure: Regenerate.
1517 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1518 GUILE_FILE_LIST.
1519 (GUILE_COMPILED_FILES): New variable.
1520 (GUILE_FILES) Update.
1521 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1522 (stamp-guile): Compile scm files.
1523 * guile/guile.c (boot_guile_support): New function.
1524 (standard_throw_args_p): New function.
1525 (print_standard_throw_error, print_throw_error): New functions.
1526 (handle_boot_error): New function.
1527 (initialize_scheme_side): Rewrite to call boot_guile_support.
1528 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1529 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1530
1531 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1532 Doug Evans <xdje42@gmail.com>
1533
1534 PR guile/17146
1535 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1536 * guile/lib/gdb/support.scm: New file.
1537 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1538 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1539 All uses updated.
1540 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1541 All uses updated.
1542 (%assert-type): Ditto, and renamed to assert-type.
1543 (%exception-print-style): Delete.
1544
1545 2014-07-26 Doug Evans <xdje42@gmail.com>
1546
1547 PR build/17105
1548 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1549 * configure: Regenerate.
1550 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1551 PYTHON_FILES.
1552 (PYTHON_FILES): New variable.
1553 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1554 (GUILE_FILES): New variable.
1555 (stamp-python, install-python, uninstall-python): Handle empty
1556 file list.
1557 (stamp-guile, install-guile, uninstall-guile): Ditto.
1558
1559 2014-07-26 Doug Evans <xdje42@gmail.com>
1560
1561 PR guile/17177
1562 * guile/lib/gdb.scm (pretty-printers): Export.
1563 (set-pretty-printers!): Export.
1564 * guile/lib/gdb/printing.scm (gdb module): Update.
1565 (prepend-pretty-printer!, append-pretty-printer!): Update.
1566 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1567 (pretty_printer_list_var): Delete.
1568 (pretty_printer_list): New static global.
1569 (gdbscm_pretty_printers): New function.
1570 (gdbscm_set_pretty_printers_x): New function.
1571 (ppscm_find_pretty_printer_from_gdb): Update.
1572 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1573 (gdbscm_initialize_pretty_printers): Update.
1574
1575 2014-07-26 Doug Evans <xdje42@gmail.com>
1576
1577 PR 17185
1578 * configure.ac: Add check for header gc/gc.h.
1579 Add check for function setenv.
1580 * configure: Regenerate.
1581 * config.in: Regenerate.
1582 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1583
1584 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1585
1586 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1587 variation in gdbarch matching.
1588
1589 2014-07-25 Tom Tromey <tromey@redhat.com>
1590
1591 * exec.c (using_exec_ops): Remove.
1592 (exec_close_1): Update. Remove extraneous block, reindent.
1593 (add_target_sections): Use target_is_pushed.
1594
1595 2014-07-25 Pedro Alves <palves@redhat.com>
1596
1597 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1598 * monitor.c (monitor_create_inferior): Likewise.
1599 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1600 * remote-sim.c (gdbsim_create_inferior): Likewise.
1601 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1602 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1603 * windows-nat.c (do_initial_windows_stuff): Likewise.
1604
1605 2014-07-25 Pedro Alves <palves@redhat.com>
1606
1607 * NEWS: Mention signal passing and "signal" command changes.
1608 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1609 comment.
1610 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1611 call.
1612 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1613 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1614 (jump_command): Adjust clear_proceed_status call.
1615 (signal_command): Warn if other thread that are resumed have
1616 signals that will be delivered. Adjust clear_proceed_status call.
1617 (until_next_command, finish_command)
1618 (proceed_after_attach_callback, attach_command_post_wait)
1619 (attach_command): Adjust clear_proceed_status call.
1620 * infrun.c (proceed_after_vfork_done): Likewise.
1621 (proceed_after_attach_callback): Adjust comment.
1622 (clear_proceed_status_thread): Clear stop_signal if not in pass
1623 state.
1624 (clear_proceed_status_callback): Delete.
1625 (clear_proceed_status): New 'step' parameter. Only clear the
1626 proceed status of threads the command being prepared is about to
1627 resume.
1628 (proceed): If passed in an explicit signal, override stop_signal
1629 with it. Don't pass the last stop signal to the thread we're
1630 resuming.
1631 (init_wait_for_inferior): Adjust clear_proceed_status call.
1632 (switch_back_to_stepped_thread): Clear the signal if it should not
1633 be passed.
1634 * infrun.h (clear_proceed_status): New 'step' parameter.
1635 (user_visible_resume_ptid): Add comment.
1636 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1637 signal is in pass state.
1638 * remote.c (append_pending_thread_resumptions): Likewise.
1639 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1640
1641 2014-07-25 Tom Tromey <tromey@redhat.com>
1642
1643 * target.h (target_stopped_data_address)
1644 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1645 parentheses.
1646
1647 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1648
1649 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1650 comments.
1651 (avr_pointer_to_address): Likewise.
1652
1653 2014-07-24 Tom Tromey <tromey@redhat.com>
1654
1655 * monitor.c (compile_pattern): Update.
1656 * target.h (struct target_ops) <to_shortname, to_longname,
1657 to_doc>: Now const.
1658
1659 2014-07-24 Tom Tromey <tromey@redhat.com>
1660
1661 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1662 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1663 (add_info_alias, add_com): Make "doc" const.
1664 (print_doc_line): Make "str" const.
1665 (delete_cmd): Update.
1666 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1667 (print_doc_line): Update.
1668 * cli/cli-script.c (document_command): Update.
1669 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1670 (add_com, add_info, add_info_alias): Update.
1671 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1672 * python/py-cmd.c (cmdpy_destroyer): Update.
1673
1674 2014-07-24 Tom Tromey <tromey@redhat.com>
1675
1676 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1677 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1678 (help_cmd_list): Constify.
1679 (lookup_cmd): Update.
1680 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1681 const.
1682 (help_cmd_list, apropos_cmd): Update.
1683 * cli/cli-script.c (show_user): Update.
1684 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1685 * cli/cli-setshow.h (cmd_show_list): Update.
1686 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1687 (cmd_show_list): Update.
1688 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1689 * python/py-cmd.c (cmdpy_destroyer): Update.
1690
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1692
1693 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1694 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1695 const.
1696 * command.h (deprecate_cmd): Update.
1697 * maint.c (maintenance_do_deprecate): Add casts.
1698
1699 2014-07-24 Tom Tromey <tromey@redhat.com>
1700
1701 * cli/cli-decode.c (help_cmd): Make parameter "const".
1702 * cli/cli-decode.h (help_cmd): Update.
1703
1704 2014-07-24 Tom Tromey <tromey@redhat.com>
1705
1706 * stack.c (up_silently_base, down_silently_base): Make argument
1707 const.
1708
1709 2014-07-24 Tom Tromey <tromey@redhat.com>
1710
1711 * solib.c (solib_add): Make "pattern" const.
1712 * solib.h (solib_add): Update.
1713
1714 2014-07-24 Tom Tromey <tromey@redhat.com>
1715
1716 * remote.c (remote_serial_open, print_packet, putpkt)
1717 (putpkt_binary): Constify.
1718 * remote.h (putpkt): Update.
1719
1720 2014-07-24 Tom Tromey <tromey@redhat.com>
1721
1722 * monitor.c (monitor_open): Make "args" const.
1723 * monitor.h (monitor_open): Update.
1724
1725 2014-07-24 Tom Tromey <tromey@redhat.com>
1726
1727 * maint.c (match_bfd_flags): Make "string" const.
1728 (print_bfd_section_info): Remove casts.
1729 (print_objfile_section_info): Make "string" const.
1730
1731 2014-07-24 Tom Tromey <tromey@redhat.com>
1732
1733 * inf-child.c (inf_child_open_target): Make "arg" const.
1734 * inf-child.h (inf_child_open_target): Update.
1735
1736 2014-07-24 Tom Tromey <tromey@redhat.com>
1737
1738 * environ.c (unset_in_environ): Make "var" const.
1739 * environ.h (unset_in_environ): Update.
1740
1741 2014-07-24 Tom Tromey <tromey@redhat.com>
1742
1743 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1744 Make "cmd" const.
1745 (scan_filename_with_cleanup): Likewise.
1746 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1747 Make arguments const.
1748 (restore_command): Update.
1749
1750 2014-07-24 Pedro Alves <palves@redhat.com>
1751
1752 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1753
1754 2014-07-24 Tom Tromey <tromey@redhat.com>
1755 Gary Benson <gbenson@redhat.com>
1756
1757 * nat/linux-ptrace.c (additional_flags): New global.
1758 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1759 additional_flags; don't check GDBSERVER.
1760 (linux_ptrace_set_additional_flags): New function.
1761 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1762 Declare.
1763 * linux-nat.c (_initialize_linux_nat): Call
1764 linux_ptrace_set_additional_flags.
1765
1766 2014-07-24 Tom Tromey <tromey@redhat.com>
1767
1768 * make-target-delegates (munge_type, write_debugmethod): New
1769 functions.
1770 (debug_names): New global.
1771 ($TARGET_DEBUG_PRINTER): New global.
1772 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1773 name.
1774 Write debug methods. Generate init_debug_target.
1775 * target-debug.h: New file.
1776 * target-delegates.c: Rebuild.
1777 * target.c: Include target-debug.h.
1778 (debug_target): Hoist definition.
1779 (target_kill, target_get_section_table, target_memory_map)
1780 (target_flash_erase, target_flash_done, target_detach)
1781 (target_disconnect, target_wait, target_resume)
1782 (target_pass_signals, target_program_signals, target_follow_fork)
1783 (target_mourn_inferior, target_search_memory)
1784 (target_thread_address_space, target_close)
1785 (target_find_new_threads, target_core_of_thread)
1786 (target_verify_memory, target_insert_mask_watchpoint)
1787 (target_remove_mask_watchpoint): Remove targetdebug code.
1788 (debug_to_post_attach, debug_to_prepare_to_store)
1789 (debug_to_files_info, debug_to_insert_breakpoint)
1790 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1791 (debug_to_region_ok_for_hw_watchpoint)
1792 (debug_to_can_accel_watchpoint_condition)
1793 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1794 (debug_to_watchpoint_addr_within_range)
1795 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1796 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1797 (debug_to_terminal_init, debug_to_terminal_inferior)
1798 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1799 (debug_to_terminal_save_ours, debug_to_terminal_info)
1800 (debug_to_load, debug_to_post_startup_inferior)
1801 (debug_to_insert_fork_catchpoint)
1802 (debug_to_remove_fork_catchpoint)
1803 (debug_to_insert_vfork_catchpoint)
1804 (debug_to_remove_vfork_catchpoint)
1805 (debug_to_insert_exec_catchpoint)
1806 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1807 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1808 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1809 (setup_target_debug): Call init_debug_target.
1810 * target.h (TARGET_DEBUG_PRINTER): New macro.
1811 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1812 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1813
1814 2014-07-24 Gary Benson <gbenson@redhat.com>
1815
1816 * exceptions.h (throw_vfatal): Renamed to...
1817 (throw_vquit): New declaration.
1818 (throw_quit): Likewise.
1819 * exceptions.c (throw_vfatal): Renamed to...
1820 (throw_vquit): New function.
1821 (throw_quit): Likewise.
1822 (throw_error): Call throw_verror rather than throw_it.
1823 * utils.h (vfatal): Removed.
1824 (fatal): Likewise.
1825 * utils.c (vfatal): Removed.
1826 (fatal): Likewise.
1827 (internal_verror): Replaced call to fatal with call to throw_quit.
1828 (quit): Replaced calls to fatal with calls to throw_quit.
1829
1830 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1831
1832 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1833 target_read_code.
1834
1835 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1836
1837 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1838 less than zero in conditional expression.
1839
1840 2014-07-23 Tom Tromey <tromey@redhat.com>
1841
1842 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1843 ($INTRO_PART): Don't match whitespace.
1844 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1845 argument matching.
1846 ($METHOD): Add $METHOD_TRAILER.
1847 (trim): Rewrite.
1848 (scan_target_h): New sub.
1849 Change main loop not to collect state.
1850 * target-delegates.c: Rebuild.
1851
1852 2014-07-23 Gary Benson <gbenson@redhat.com>
1853
1854 * cp-support.c (gdb_demangle): Fix build on systems without
1855 sigaltstack.
1856
1857 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1858
1859 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1860 for reference entry value target data value.
1861
1862 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1863
1864 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1865 value_available_contents_eq.
1866
1867 2014-07-22 Pedro Alves <palves@redhat.com>
1868
1869 * value.c (allocate_optimized_out_value): Don't mark value as
1870 non-lazy.
1871
1872 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1873
1874 * MAINTAINERS (Write After Approval): Update my email address.
1875
1876 2014-07-20 Doug Evans <dje@google.com>
1877
1878 PR server/17147
1879 * remote.c (putpkt_binary): Add text to error message.
1880
1881 2014-07-20 Yao Qi <yao@codesourcery.com>
1882
1883 * eval.c: Remove "Chill" from comments.
1884 * gdbtypes.h: Likewise.
1885 * symtab.h: Likewise.
1886
1887 2014-07-20 Yao Qi <yao@codesourcery.com>
1888
1889 * std-operator.def: Update comments to TERNOP_SLICE.
1890
1891 2014-07-20 Yao Qi <yao@codesourcery.com>
1892
1893 * std-operator.def: Remove BINOP_RANGE.
1894 * breakpoint.c (watchpoint_exp_is_const): Update.
1895 * expprint.c (dump_subexp_body_standard): Likewise.
1896 * eval.c (init_array_element): Remove dead code.
1897 (evaluate_subexp_standard): Likewise.
1898
1899 2014-07-20 Yao Qi <yao@codesourcery.com>
1900
1901 * std-operator.def: Remove BINOP_IN.
1902 * breakpoint.c (watchpoint_exp_is_const): Update.
1903 * eval.c (evaluate_subexp_standard): Likewise.
1904 * expprint.c (dump_subexp_body_standard): Likewise.
1905
1906 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1907
1908 * microblaze-tdep.c (microblaze_register_names): Add
1909 the rshr and rslr register names.
1910 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1911 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1912 Use of tdesc_numbered_register. Use of
1913 microblaze_register_g_packet_guesses. Use of
1914 tdesc_use_registers. Use of set_gdbarch_register_type.
1915 (microblaze_register_g_packet_guesses): New.
1916 * microblaze-tdep.h (microblaze_reg_num): Add
1917 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1918 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1919 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1920 * features/microblaze-core.xml: New file.
1921 * features/microblaze-stack-protect.xml: New file.
1922 * features/microblaze-with-stack-protect.c: New file.
1923 * features/microblaze-with-stack-protect.xml: New file.
1924 * features/microblaze.xml: New file.
1925 * features/microblaze.c: New file.
1926 * features/Makefile (microblaze-with-stack-protect): Add
1927 microblaze-with-stack-protect microblaze and microblaze-expedite.
1928 * regformats/microblaze-with-stack-protect.dat: New file.
1929 * regformats/microblaze.dat: New file.
1930 * doc/gdb.texinfo (MicroBlaze Features): Added.
1931
1932 2014-07-18 Tom Tromey <tromey@redhat.com>
1933
1934 * exec.c (exec_ops): Now static.
1935 * exec.h (exec_ops): Don't declare.
1936
1937 2014-07-18 Tom Tromey <tromey@redhat.com>
1938
1939 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1940 to find_target_beneath.
1941 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1942 find_target_beneath.
1943 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1944
1945 2014-07-18 Tom Tromey <tromey@redhat.com>
1946
1947 PR gdb/17130:
1948 * utils.c (quit): Use target_supports_terminal_ours.
1949 * target.h (target_supports_terminal_ours): Declare.
1950 * target.c (target_supports_delete_record): Don't check
1951 to_delete_record against NULL.
1952 (target_supports_terminal_ours): New function.
1953
1954 2014-07-18 Tom Tromey <tromey@redhat.com>
1955
1956 PR gdb/17130:
1957 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1958 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1959 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1960 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1961 * windows-nat.c (windows_xfer_partial): Always delegate.
1962 * record-btrace.c (record_btrace_xfer_partial): Simplify
1963 delegation.
1964 (record_btrace_fetch_registers, record_btrace_store_registers)
1965 (record_btrace_prepare_to_store, record_btrace_resume)
1966 (record_btrace_wait, record_btrace_find_new_threads)
1967 (record_btrace_thread_alive): Likewise.
1968 * procfs.c (procfs_xfer_partial): Always delegate.
1969 * corelow.c (core_xfer_partial): Always delegate.
1970 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1971
1972 2014-07-18 Tom Tromey <tromey@redhat.com>
1973
1974 * exec.c (exec_make_note_section): Move earlier.
1975
1976 2014-07-17 Doug Evans <dje@google.com>
1977
1978 PR gdb/17170
1979 * maint.c (count_symtabs_and_blocks): Handle NULL
1980 current_program_space.
1981 (report_command_stats): Check global enabled flag in addition to
1982 recorded enabled flag.
1983 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1984
1985 2014-07-16 Pedro Alves <palves@redhat.com>
1986
1987 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1988
1989 2014-07-16 Tom Tromey <tromey@redhat.com>
1990
1991 * target.h (struct target_ops) <to_delete_record>: Reformat
1992 comment.
1993
1994 2014-07-16 Tom Tromey <tromey@redhat.com>
1995
1996 * target-delegates.c: Rebuild.
1997
1998 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1999
2000 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2001 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2002 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2003 (avr_pointer_to_address): Likewise.
2004 (avr_address_class_type_flags): New function.
2005 (avr_address_class_type_flags_to_name): Likewise.
2006 (avr_address_class_name_to_type_flags): Likewise.
2007 (avr_gdbarch_init): Set address_class_type_flags,
2008 address_class_type_flags_to_name and
2009 address_class_name_to_type_flags.
2010
2011 2014-07-15 Pedro Alves <palves@redhat.com>
2012
2013 * linux-nat.c (kill_callback): Save errno and work with saved
2014 copy.
2015
2016 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2017
2018 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2019
2020 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2021
2022 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2023 breakpoint support correctly.
2024
2025 2014-07-14 Pedro Alves <palves@redhat.com>
2026
2027 * utils.c (prompt_for_continue): Call target_terminal_ours.
2028
2029 2014-07-14 Pedro Alves <palves@redhat.com>
2030
2031 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2032 catch_errors. Don't re-enable stdin or notify observers where,
2033 and rethrow error.
2034 (fetch_inferior_event_wrapper): Delete.
2035
2036 2014-07-14 Pedro Alves <palves@redhat.com>
2037
2038 PR gdb/17072
2039 * top.c: Include "inf-loop.h".
2040 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2041 field.
2042 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2043 was async before.
2044 (gdb_readline_wrapper): Store whether the target is async, and
2045 make it sync.
2046
2047 2014-07-14 Pedro Alves <palves@redhat.com>
2048
2049 PR gdb/17072
2050 * top.c (gdb_readline_wrapper_line): Tweak comment.
2051 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2052 the input handler callback.
2053
2054 2014-07-14 Pedro Alves <palves@redhat.com>
2055
2056 PR gdb/17072
2057 * main.c: Include event-top.h.
2058 (handle_command_errors): New function.
2059 (catch_command_errors, catch_command_errors_const): Use it.
2060
2061 2014-07-14 Pedro Alves <palves@redhat.com>
2062
2063 * exceptions.c (catch_command_errors, catch_command_errors_const):
2064 Moved to main.c.
2065 * exceptions.h (catch_command_errors_ftype)
2066 (catch_command_errors_const_ftype): Moved to main.c.
2067 (catch_command_errors, catch_command_errors_const): Delete
2068 declarations.
2069 * main.c (catch_command_errors_ftype)
2070 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2071 (catch_command_errors, catch_command_errors_const)): Moved here
2072 from exceptions.c and make static.
2073
2074 2014-07-14 Pedro Alves <palves@redhat.com>
2075
2076 * exceptions.c (print_any_exception): Delete.
2077 (catch_exceptions_with_msg): Use exception_print instead of
2078 print_any_exception.
2079 (catch_errors): Use exception_fprintf instead of
2080 print_any_exception.
2081 (catch_command_errors, catch_command_errors_const): Use
2082 exception_print instead of print_any_exception.
2083
2084 2014-07-14 Pedro Alves <palves@redhat.com>
2085
2086 * infcall.c (run_inferior_call): Set 'sync_execution' while
2087 running the inferior call.
2088
2089 2014-07-14 Pedro Alves <palves@redhat.com>
2090
2091 * value.c (value_contents_equal): Delete function.
2092 * value.h (value_contents_equal): Delete declaration.
2093
2094 2014-07-14 Tom Tromey <tromey@redhat.com>
2095
2096 PR exp/17106:
2097 * gdbtypes.c (is_dynamic_type_internal): New function, from
2098 is_dynamic_type.
2099 (is_dynamic_type): Rewrite.
2100 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2101 (resolve_dynamic_struct): Likewise.
2102 (resolve_dynamic_type_internal): New function, from
2103 resolve_dynamic_type.
2104 (resolve_dynamic_type): Rewrite.
2105
2106 2014-07-14 Tom Tromey <tromey@redhat.com>
2107
2108 * target.c (target_require_runnable): Also check record_stratum.
2109 Update comment.
2110
2111 2014-07-11 Yao Qi <yao@codesourcery.com>
2112
2113 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2114 thumb_instruction_restores_sp return true.
2115
2116 2014-07-11 Yao Qi <yao@codesourcery.com>
2117
2118 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2119 (thumb_in_function_epilogue_p): Call
2120 thumb_instruction_restores_sp.
2121
2122 2014-07-11 Yao Qi <yao@codesourcery.com>
2123
2124 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2125 'add sp, #imm'.
2126 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2127
2128 2014-07-11 Gary Benson <gbenson@redhat.com>
2129
2130 * amd64-linux-nat.c (gdbcore.h): Remove include.
2131 (regset.h): Likewise.
2132 (nat/linux-btrace.h): Likewise.
2133 (btrace.h): Likewise.
2134 (gdb_assert.h): Likewise.
2135 (string.h): Likewise.
2136 (sys/uio.h): Likewise.
2137 (sys/debugreg.h): Likewise.
2138 (sys/syscall.h): Likewise.
2139 (sys/procfs.h): Likewise.
2140 (sys/user.h): Likewise.
2141 (asm/ptrace.h): Likewise.
2142 (i386-nat.h): Likewise.
2143 * i386-linux-nat.c (i386-nat.h): Likewise.
2144 (regset.h): Likewise.
2145 (target.h): Likewise.
2146 (linux-nat.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/user.h): Likewise.
2153 (sys/procfs.h): Likewise.
2154 (sys/reg.h): Likewise.
2155 (sys/debugreg.h): Likewise.
2156 (ORIG_EAX): Remove definition.
2157
2158 2014-07-11 Gary Benson <gbenson@redhat.com>
2159
2160 * i386-linux-nat.h: New file.
2161 * x86-linux-nat.h: Likewise.
2162 * x86-linux-nat.c: Likewise.
2163 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2164 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2165 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2166 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2167 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2168 (PTRACE_SETREGSET): Likewise.
2169 (arch_lwp_info): Now in x86-linux-nat.c.
2170 (have_ptrace_getregset): Now in x86-linux-nat.h.
2171 (x86_linux_dr_get): Now in x86-linux-nat.c.
2172 (x86_linux_dr_set): Likewise.
2173 (x86_linux_dr_get_addr): Likewise.
2174 (x86_linux_dr_get_control): Likewise.
2175 (x86_linux_dr_get_status): Likewise.
2176 (update_debug_registers_callback): Likewise.
2177 (x86_linux_dr_set_control): Likewise.
2178 (x86_linux_dr_set_addr): Likewise.
2179 (x86_linux_prepare_to_resume): Likewise.
2180 (x86_linux_new_thread): Likewise.
2181 (x86_linux_new_fork): Likewise.
2182 (x86_linux_get_thread_area): Likewise.
2183 (super_post_startup_inferior): Likewise.
2184 (x86_linux_child_post_startup_inferior): Likewise.
2185 (AMD64_LINUX_USER64_CS): Likewise.
2186 (AMD64_LINUX_X32_DS): Likewise.
2187 (x86_linux_read_description): Likewise.
2188 (x86_linux_enable_btrace): Likewise.
2189 (x86_linux_disable_btrace): Likewise.
2190 (x86_linux_teardown_btrace): Likewise.
2191 (x86_linux_read_btrace): Likewise.
2192 (x86_linux_create_target): Likewise.
2193 (x86_linux_add_target): Likewise.
2194 * i386-linux-nat.c (x86-linux-nat.h): New include.
2195 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2196 (PTRACE_SETREGSET): Likewise.
2197 (arch_lwp_info): Now in x86-linux-nat.c.
2198 (have_ptrace_getregset): Now in x86-linux-nat.h.
2199 (x86_linux_dr_get): Now in x86-linux-nat.c.
2200 (x86_linux_dr_set): Likewise.
2201 (x86_linux_dr_get_addr): Likewise.
2202 (x86_linux_dr_get_control): Likewise.
2203 (x86_linux_dr_get_status): Likewise.
2204 (update_debug_registers_callback): Likewise.
2205 (x86_linux_dr_set_control): Likewise.
2206 (x86_linux_dr_set_addr): Likewise.
2207 (x86_linux_prepare_to_resume): Likewise.
2208 (x86_linux_new_thread): Likewise.
2209 (x86_linux_new_fork): Likewise.
2210 (x86_linux_get_thread_area): Likewise.
2211 (super_post_startup_inferior): Likewise.
2212 (x86_linux_child_post_startup_inferior): Likewise.
2213 (AMD64_LINUX_USER64_CS): Likewise.
2214 (AMD64_LINUX_X32_DS): Likewise.
2215 (x86_linux_read_description): Likewise.
2216 (x86_linux_enable_btrace): Likewise.
2217 (x86_linux_disable_btrace): Likewise.
2218 (x86_linux_teardown_btrace): Likewise.
2219 (x86_linux_read_btrace): Likewise.
2220 (x86_linux_create_target): Likewise.
2221 (x86_linux_add_target): Likewise.
2222
2223 2014-07-11 Gary Benson <gbenson@redhat.com>
2224
2225 * amd64-linux-nat.c: Comment and whitespace changes.
2226 * i386-linux-nat.c: Comment and whitespace changes.
2227
2228 2014-07-11 Gary Benson <gbenson@redhat.com>
2229
2230 * amd64-linux-nat.c (x86_linux_create_target): New function.
2231 (x86_linux_add_target): Likewise.
2232 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2233 * i386-linux-nat.c (x86_linux_create_target): New function.
2234 (x86_linux_add_target): Likewise.
2235 (_initialize_i386_linux_nat): Delegate to the above new functions.
2236
2237 2014-07-11 Gary Benson <gbenson@redhat.com>
2238
2239 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2240 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2241 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2242 (ps_get_thread_area): Delegate to the above.
2243
2244 2014-07-11 Gary Benson <gbenson@redhat.com>
2245
2246 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2247 x86_linux_read_description. All uses updated. amd64-specific
2248 code conditionalized. Conditionalized i386-specific code added.
2249 Redundant cast removed.
2250 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2251 x86_linux_read_description. All uses updated. i386-specific
2252 code conditionalized. Conditionalized amd64-specific code added.
2253 One sizeof replaced with the actual type it is describing.
2254
2255 2014-07-11 Gary Benson <gbenson@redhat.com>
2256
2257 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2258 x86_linux_dr_get. All uses updated.
2259 (amd64_linux_dr_set): Renamed to
2260 x86_linux_dr_set. All uses updated.
2261 (amd64_linux_dr_get_addr): Renamed to
2262 x86_linux_dr_get_addr. All uses updated.
2263 (amd64_linux_dr_get_control): Renamed to
2264 x86_linux_dr_get_control. All uses updated.
2265 (amd64_linux_dr_get_status): Renamed to
2266 x86_linux_dr_get_status. All uses updated.
2267 (amd64_linux_dr_set_control): Renamed to
2268 x86_linux_dr_set_control. All uses updated.
2269 (amd64_linux_dr_set_addr): Renamed to
2270 x86_linux_dr_set_addr. All uses updated.
2271 (amd64_linux_prepare_to_resume): Renamed to
2272 x86_linux_prepare_to_resume. All uses updated.
2273 (amd64_linux_new_thread): Renamed to
2274 x86_linux_new_thread. All uses updated.
2275 (amd64_linux_new_fork): Renamed to
2276 x86_linux_new_fork. All uses updated.
2277 (amd64_linux_child_post_startup_inferior): Renamed to
2278 x86_linux_child_post_startup_inferior. All uses updated.
2279 (amd64_linux_enable_btrace): Renamed to
2280 x86_linux_enable_btrace. All uses updated.
2281 (amd64_linux_disable_btrace): Renamed to
2282 x86_linux_disable_btrace. All uses updated.
2283 (amd64_linux_teardown_btrace): Renamed to
2284 x86_linux_teardown_btrace. All uses updated.
2285 (amd64_linux_read_btrace): Renamed to
2286 x86_linux_read_btrace. All uses updated.
2287 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2288 x86_linux_dr_get. All uses updated.
2289 (i386_linux_dr_set): Renamed to
2290 x86_linux_dr_set. All uses updated.
2291 (i386_linux_dr_get_addr): Renamed to
2292 x86_linux_dr_get_addr. All uses updated.
2293 (i386_linux_dr_get_control): Renamed to
2294 x86_linux_dr_get_control. All uses updated.
2295 (i386_linux_dr_get_status): Renamed to
2296 x86_linux_dr_get_status. All uses updated.
2297 (i386_linux_dr_set_control): Renamed to
2298 x86_linux_dr_set_control. All uses updated.
2299 (i386_linux_dr_set_addr): Renamed to
2300 x86_linux_dr_set_addr. All uses updated.
2301 (i386_linux_prepare_to_resume): Renamed to
2302 x86_linux_prepare_to_resume. All uses updated.
2303 (i386_linux_new_thread): Renamed to
2304 x86_linux_new_thread. All uses updated.
2305 (i386_linux_new_fork): Renamed to
2306 x86_linux_new_fork. All uses updated.
2307 (i386_linux_child_post_startup_inferior): Renamed to
2308 x86_linux_child_post_startup_inferior. All uses updated.
2309 (i386_linux_enable_btrace): Renamed to
2310 x86_linux_enable_btrace. All uses updated.
2311 (i386_linux_disable_btrace): Renamed to
2312 x86_linux_disable_btrace. All uses updated.
2313 (i386_linux_teardown_btrace): Renamed to
2314 x86_linux_teardown_btrace. All uses updated.
2315 (i386_linux_read_btrace): Renamed to
2316 x86_linux_read_btrace. All uses updated.
2317
2318 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2319
2320 * remote.c (extended_remote_post_attach): New function.
2321 (init_extended_remote_ops): Install it as to_post_attach method.
2322
2323 2014-07-09 Pedro Alves <palves@redhat.com>
2324
2325 * infcmd.c (attach_command_post_wait): Don't call
2326 target_terminal_inferior here.
2327 (attach_command): Call it here instead.
2328
2329 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2332 field.
2333 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2334 from varobj.c, with additional checks.
2335 (c_varobj_ops): Fill in is_path_expr_parent field.
2336 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2337 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2338 field.
2339 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2340 ops method.
2341 (varobj_default_is_path_expr_parent): New function.
2342 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2343 (varobj_default_is_path_expr_parent): Declare new function.
2344
2345 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2346
2347 * infcmd.c (finish_backward): Turn internal error into normal error.
2348
2349 2014-07-07 Pedro Alves <palves@redhat.com>
2350
2351 PR gdb/17096
2352 * remote.c (async_handle_remote_sigint)
2353 (async_handle_remote_sigint_twice): Call
2354 gdb_call_async_signal_handler instead of
2355 mark_async_signal_handler.
2356
2357 2014-07-07 Tom Tromey <tromey@redhat.com>
2358
2359 * target-delegates.c: Rebuild.
2360 * target.c (target_info_record): Remove.
2361 * record.c (info_record_command): Unconditionally call
2362 to_info_record.
2363 * target.h (struct target_ops) <to_info_record>: Use
2364 TARGET_DEFAULT_IGNORE.
2365 (target_info_record): Remove.
2366
2367 2014-07-07 Tom Tromey <tromey@redhat.com>
2368
2369 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2370 TARGET_DEFAULT_NORETURN.
2371 * target.c (generic_tls_error): New function.
2372 (target_translate_tls_address): Don't search target stack.
2373 * target-delegates.c: Rebuild.
2374 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2375 stack.
2376 * linux-thread-db.c (thread_db_get_thread_local_address):
2377 Unconditionally call beneath target.
2378
2379 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2380
2381 * cli/cli-logging.c (pop_output_files): Assign targerr to
2382 gdb_stdtargerr.
2383
2384 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * MAINTAINERS (Write After Approval): Update my email address.
2387
2388 2014-07-02 Gary Benson <gbenson@redhat.com>
2389
2390 * proc-service.c (ps_xfer_memory): Update comment.
2391 (ps_pstop): Remove unused function.
2392 (ps_pcontinue): Likewise.
2393 (ps_lstop): Likewise.
2394 (ps_lcontinue): Likewise.
2395 (ps_lgetxregsize): Likewise.
2396 (ps_lgetxregs): Likewise.
2397 (ps_lsetxregs): Likewise.
2398 (ps_plog): Likewise.
2399 (ps_ptread): Likewise.
2400 (ps_ptwrite): Likewise.
2401
2402 2014-07-01 Mark Wielaard <mjw@redhat.com>
2403
2404 * dwarf2read.c (add_array_cv_type): New function.
2405 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2406 (read_tag_volatile_type): Likewise.
2407
2408 2014-07-01 Tom Tromey <tromey@redhat.com>
2409
2410 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2411 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2412 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2413 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2414 * command.h (cmd_cfunc_ftype): Move earlier.
2415 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2416 (add_com, add_info): Use cmd_cfunc_ftype.
2417
2418 2014-06-30 Tom Tromey <tromey@redhat.com>
2419
2420 * symtab.c (operator_chars): Make parameters and return type
2421 const.
2422 (file_matches): Make "files" const.
2423 (struct search_symbols_data) <files>: Now const.
2424 (search_symbols): Make "regexp" and "files" parameters const.
2425 Update.
2426 (symtab_symbol_info): Remove cast.
2427 (rbreak_command): Update.
2428 * symtab.h (search_symbols): Update.
2429
2430 2014-06-27 Yao Qi <yao@codesourcery.com>
2431
2432 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2433 Change parameter type to 'struct thread_info *'. Caller
2434 updated.
2435 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2436 Update declaration.
2437 * dummy-frame.c (struct dummy_frame_id): New.
2438 (dummy_frame_id_eq): New function.
2439 (struct dummy_frame) <id>: Change its type to 'struct
2440 dummy_frame_id'.
2441 (dummy_frame_push): Add parameter ptid and save it in
2442 dummy_frame_id.
2443 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2444 inferior_ptid.
2445 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2446 to inferior_ptid.
2447 (lookup_dummy_frame): Change parameter type to 'struct
2448 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2449 instead of frame_id_eq.
2450 (dummy_frame_pop): Add parameter ptid. Callers updated.
2451 Update comments. Compose dummy_frame_id and pass it to
2452 lookup_dummy_frame.
2453 (dummy_frame_discard): Add parameter ptid.
2454 (dummy_frame_sniffer): Compose dummy_frame_id and call
2455 dummy_frame_id_eq instead of frame_id_eq.
2456 (fprint_dummy_frames): Print ptid.
2457 * dummy-frame.h: Remove comments.
2458 (dummy_frame_push): Add ptid in declaration.
2459 (dummy_frame_pop, dummy_frame_discard): Likewise.
2460
2461 2014-06-26 Tom Tromey <tromey@redhat.com>
2462
2463 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2464 * command.h (error_no_arg): Update.
2465
2466 2014-06-26 Tom Tromey <tromey@redhat.com>
2467
2468 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2469 (do_show_command): Make "arg" const.
2470 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2471
2472 2014-06-26 Tom Tromey <tromey@redhat.com>
2473
2474 * record-full.c (record_full_get_bookmark): Make "args" const.
2475 (record_full_goto_bookmark): Make "raw_bookmark" const.
2476 * record.c (record_goto): New function.
2477 (cmd_record_goto): Use it. Now static.
2478 * record.h (record_goto): Declare.
2479 (cmd_record_goto): Remove declaration.
2480 * target-delegates.c: Rebuild.
2481 * target.h (struct target_ops) <to_get_bookmark,
2482 to_goto_bookmark>: Make parameter const.
2483
2484 2014-06-26 Tom Tromey <tromey@redhat.com>
2485
2486 * defs.h (generic_load): Update.
2487 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2488 * monitor.c (monitor_load): Make "args" const.
2489 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2490 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2491 const.
2492 (mips_load): Make "file" const.
2493 * remote-sim.c (gdbsim_load): Make "args" const.
2494 * remote.c (remote_load): Make "name" const.
2495 * symfile.c (generic_load): Make "args" const.
2496 * target-delegates.c: Rebuild.
2497 * target.c (target_load): Make "arg" const.
2498 (debug_to_load): Make "args" const.
2499 * target.h (struct target_ops) <to_load>: Make parameter const.
2500 (target_load): Update.
2501
2502 2014-06-26 Tom Tromey <tromey@redhat.com>
2503
2504 PR symtab/16902:
2505 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2506 (dwarf2_physname, read_partial_die)
2507 (guess_partial_die_structure_name, fixup_partial_die)
2508 (guess_full_die_structure_name, anonymous_struct_prefix)
2509 (dwarf2_name): Use per-BFD obstack.
2510
2511 2014-06-26 Yao Qi <yao@codesourcery.com>
2512
2513 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2514 dummyframe and this_id into inner block below.
2515
2516 2014-06-26 Yao Qi <yao@codesourcery.com>
2517
2518 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2519 with "signal_pass[0]" in the initialization of signal_pass.
2520
2521 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2522
2523 * record-btrace.c (record_btrace_generating_corefile)
2524 (record_btrace_prepare_to_generate_core)
2525 (record_btrace_done_generating_core): New.
2526 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2527 (record_btrace_store_registers, record_btrace_prepare_to_store):
2528 Forward request when generating a core file.
2529 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2530 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2531 to_done_generating_core.
2532
2533 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2534
2535 * target.h (target_ops) <to_prepare_to_generate_core>
2536 <to_done_generating_core>: New.
2537 (target_prepare_to_generate_core, target_done_generating_core): New.
2538 * target.c (target_prepare_to_generate_core)
2539 (target_done_generating_core): New.
2540 * target-delegates.c: Regenerate.
2541 * gcore.c: (write_gcore_file): Rename to ...
2542 (write_gcore_file_1): ...this.
2543 (write_gcore_file): Call target_prepare_to_generate_core
2544 and target_done_generating_core.
2545
2546 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2547
2548 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2549 * gcore.c (write_gcore_file): Free memory returned from
2550 make_corefile_notes.
2551 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2552 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2553
2554 2014-06-24 Yao Qi <yao@codesourcery.com>
2555
2556 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2557 (arm_linux_init_abi): Set skip_trampoline_code with
2558 gdbarch_skip_trampoline_code instead of
2559 find_solib_trampoline_target.
2560
2561 2014-06-24 Yao Qi <yao@codesourcery.com>
2562
2563 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2564 arm_skip_bx_reg returns non-zero.
2565
2566 2014-06-24 Yao Qi <yao@codesourcery.com>
2567
2568 * arm-tdep.c (arm_skip_bx_reg): New function.
2569 (arm_skip_stub): Call arm_skip_bx_reg.
2570
2571 2014-06-23 Don Breazeal <donb@codesourcery.com>
2572
2573 * MAINTAINERS: Add myself as write-after-approval maintainer.
2574
2575 2014-06-23 Pedro Alves <palves@redhat.com>
2576
2577 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2578 DR_CONTROL before setting DR0..DR3.
2579 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2580 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2581 bits of DR_CONTROL related to the debug register slot being
2582 disabled. If all slots are vacant, clear local slowdown as well,
2583 and assert DR_CONTROL is 0.
2584
2585 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2586
2587 * python/lib/gdb/command/xmethods.py
2588 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2589 current progspace only if the string "progspace" matches LOCUS_RE.
2590
2591 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2592
2593 Fix --with-system-readline with readline-6.3 patch 5.
2594 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2595 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2596 types.
2597
2598 2014-06-20 Tom Tromey <tromey@redhat.com>
2599
2600 * dwarf2read.c (dw2_get_real_path): Use correct type in
2601 OBSTACK_CALLOC.
2602 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2603
2604 2014-06-20 Gary Benson <gbenson@redhat.com>
2605
2606 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2607 * common/glibc_thread_db.h: Likewise.
2608 * common/i386-cpuid.h: Likewise.
2609 * common/i386-gcc-cpuid.h: Likewise.
2610 * common/linux-btrace.h: Likewise.
2611 * common/linux-osdata.h: Likewise.
2612 * common/linux-procfs.h: Likewise.
2613 * common/linux-ptrace.h: Likewise.
2614 * common/mips-linux-watch.h: Likewise.
2615 * common/linux-btrace.c: Moved to nat.
2616 * common/linux-osdata.c: Likewise.
2617 * common/linux-procfs.c: Likewise.
2618 * common/linux-ptrace.c: Likewise.
2619 * common/mips-linux-watch.c: Likewise.
2620 * nat/gdb_thread_db.h: Moved from common.
2621 * nat/glibc_thread_db.h: Likewise.
2622 * nat/i386-cpuid.h: Likewise.
2623 * nat/i386-gcc-cpuid.h: Likewise.
2624 * nat/linux-btrace.c: Likewise.
2625 * nat/linux-btrace.h: Likewise.
2626 * nat/linux-osdata.c: Likewise.
2627 * nat/linux-osdata.h: Likewise.
2628 * nat/linux-procfs.c: Likewise.
2629 * nat/linux-procfs.h: Likewise.
2630 * nat/linux-ptrace.c: Likewise.
2631 * nat/linux-ptrace.h: Likewise.
2632 * nat/mips-linux-watch.c: Likewise.
2633 * nat/mips-linux-watch.h: Likewise.
2634 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2635 (object file files): Reordered.
2636 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2637 of glibc_thread_db.h.
2638
2639 2014-06-20 Gary Benson <gbenson@redhat.com>
2640
2641 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2642 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2643 (i386_dr_low): Likewise.
2644 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2645 (i386_dr_low_set_addr): Likewise.
2646 (i386_dr_low_get_addr): Likewise.
2647 (i386_dr_low_can_set_control): Likewise.
2648 (i386_dr_low_set_control): Likewise.
2649 (i386_dr_low_get_control): Likewise.
2650 (i386_dr_low_get_status): Likewise.
2651 (i386_get_debug_register_length): Likewise.
2652 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2653 (i386_dr_low): Likewise.
2654 * nat/i386-dregs.c (i386-low.h): Remove include.
2655 (i386-nat.h): Likewise.
2656 (nat/i386-dregs.h): New include.
2657 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2658 (i386_dr_low_set_addr): Likewise.
2659 (i386_dr_low_get_addr): Likewise.
2660 (i386_dr_low_can_set_control): Likewise.
2661 (i386_dr_low_set_control): Likewise.
2662 (i386_dr_low_get_control): Likewise.
2663 (i386_dr_low_get_status): Likewise.
2664 (i386_get_debug_register_length): Likewise.
2665 (debug_hw_points): Likewise.
2666
2667 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2668
2669 * Makefile.in (SFILES): Add d-exp.y.
2670 (YYFILES): Add d-exp.c.
2671 (YYOBJ): Add d-exp.o.
2672 (local-maintainer-clean): Delete d-exp.c.
2673 * d-exp.y: New file.
2674 * d-lang.h (d_parse): New declaration.
2675 (d_error): New declaration.
2676 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2677 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2678 PREC_ORDER operators.
2679 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2680
2681 2014-06-19 Yao Qi <yao@codesourcery.com>
2682
2683 * gdbthread.h (any_running): Remove the declaration.
2684 * thread.c (any_running): Remove.
2685
2686 2014-06-19 Yao Qi <yao@codesourcery.com>
2687
2688 * gdbthread.h (struct thread_info) <state>: Change its type to
2689 'enum thread_state'. Update comments.
2690
2691 2014-06-19 Pedro Alves <palves@redhat.com>
2692
2693 * gdbthread.h (ALL_THREADS): Delete.
2694 (ALL_NON_EXITED_THREADS): New macro.
2695 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2696 instead of ALL_THREADS.
2697 * infrun.c (find_thread_needs_step_over)
2698 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2699 instead of ALL_THREADS.
2700 * record-btrace.c (record_btrace_open)
2701 (record_btrace_stop_recording, record_btrace_close)
2702 (record_btrace_is_replaying, record_btrace_resume)
2703 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2704 * remote.c (append_pending_thread_resumptions): Likewise.
2705 * thread.c (thread_apply_all_command): Likewise.
2706
2707 2014-06-19 Gary Benson <gbenson@redhat.com>
2708
2709 * i386-nat.c (i386_stopped_by_watchpoint):
2710 Use i386_dr_stopped_by_watchpoint.
2711 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2712 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2713
2714 2014-06-19 Gary Benson <gbenson@redhat.com>
2715
2716 * nat/i386-dregs.c: New file.
2717 * Makefile.in (i386-dregs.o): New rule.
2718 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2719 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2720 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2721 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2722 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2723 * config/i386/go32.mh (NATDEPFILES): Likewise.
2724 * config/i386/linux.mh (NATDEPFILES): Likewise.
2725 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2726 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2727 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2728 * i386-nat.h (debug_hw_points): New declaration.
2729 * i386-nat.c (breakpoint.h): Remove include.
2730 (command.h): Likewise.
2731 (target.h): Likewise.
2732 (gdb_assert.h): Likewise.
2733 (debug_hw_points): Made nonstatic.
2734 (debug_printf): Now in i386-dregs.c.
2735 (TARGET_HAS_DR_LEN_8): Likewise.
2736 (DR_CONTROL_SHIFT): Likewise.
2737 (DR_CONTROL_SIZE): Likewise.
2738 (DR_RW_EXECUTE): Likewise.
2739 (DR_RW_WRITE): Likewise.
2740 (DR_RW_READ): Likewise.
2741 (DR_RW_IORW): Likewise.
2742 (DR_LEN_1): Likewise.
2743 (DR_LEN_2): Likewise.
2744 (DR_LEN_4): Likewise.
2745 (DR_LEN_8): Likewise.
2746 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2747 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2748 (DR_ENABLE_SIZE): Likewise.
2749 (DR_LOCAL_SLOWDOWN): Likewise.
2750 (DR_GLOBAL_SLOWDOWN): Likewise.
2751 (DR_CONTROL_RESERVED): Likewise.
2752 (I386_DR_CONTROL_MASK): Likewise.
2753 (I386_DR_VACANT): Likewise.
2754 (I386_DR_LOCAL_ENABLE): Likewise.
2755 (I386_DR_GLOBAL_ENABLE): Likewise.
2756 (I386_DR_DISABLE): Likewise.
2757 (I386_DR_SET_RW_LEN): Likewise.
2758 (I386_DR_GET_RW_LEN): Likewise.
2759 (I386_DR_WATCH_HIT): Likewise.
2760 (i386_wp_op_t): Likewise.
2761 (i386_show_dr): Likewise.
2762 (i386_length_and_rw_bits): Likewise.
2763 (i386_insert_aligned_watchpoint): Likewise.
2764 (i386_remove_aligned_watchpoint): Likewise.
2765 (i386_handle_nonaligned_watchpoint): Likewise.
2766 (i386_update_inferior_debug_regs): Likewise.
2767 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2768 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2769 (i386_region_ok_for_watchpoint):
2770 Use i386_dr_region_ok_for_watchpoint.
2771 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2772
2773 2014-06-19 Gary Benson <gbenson@redhat.com>
2774
2775 * i386-nat.c (i386_insert_hw_breakpoint): Use
2776 i386_insert_watchpoint.
2777 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2778
2779 2014-06-19 Gary Benson <gbenson@redhat.com>
2780
2781 * i386-nat.c (i386_dr_show): Renamed to
2782 i386_show_dr and made static. All uses updated.
2783 (i386_dr_length_and_rw_bits): Renamed to
2784 i386_length_and_rw_bits and made static.
2785 All uses updated.
2786 (i386_dr_insert_aligned_watchpoint): Renamed to
2787 i386_insert_aligned_watchpoint and made static.
2788 All uses updated.
2789 (i386_dr_remove_aligned_watchpoint): Renamed to
2790 i386_remove_aligned_watchpoint and made static.
2791 All uses updated.
2792 (i386_dr_update_inferior_debug_regs): Renamed to
2793 i386_update_inferior_debug_regs and made static.
2794 All uses updated.
2795 * nat/i386-dregs.h (i386_dr_show): Removed.
2796 (i386_dr_length_and_rw_bits): Likewise.
2797 (i386_dr_insert_aligned_watchpoint): Likewise.
2798 (i386_dr_remove_aligned_watchpoint): Likewise.
2799 (i386_dr_update_inferior_debug_regs): Likewise.
2800
2801 2014-06-19 Gary Benson <gbenson@redhat.com>
2802
2803 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2804 * configure: Regenerate.
2805 * config.in: Likewise.
2806 * main.c (signal.h): New include.
2807 (setup_alternate_signal_stack): New function.
2808 (captured_main): Call the above.
2809 * cp-support.c (signal.h): New include.
2810 (catch_demangler_crashes): New flag.
2811 (SIGJMP_BUF): New define.
2812 (SIGSETJMP): Likewise.
2813 (SIGLONGJMP): Likewise.
2814 (gdb_demangle_jmp_buf): New static global.
2815 (gdb_demangle_attempt_core_dump): Likewise.
2816 (gdb_demangle_signal_handler): New function.
2817 (gdb_demangle): If catch_demangler_crashes is set, install the
2818 above signal handler before calling bfd_demangle, and restore
2819 the original signal handler afterwards. Display the offending
2820 symbol and call demangler_warning the first time a segmentation
2821 fault is caught.
2822 (_initialize_cp_support): New maint set/show command.
2823
2824 2014-06-19 Gary Benson <gbenson@redhat.com>
2825
2826 * utils.h (resource_limit_kind): New enum.
2827 (can_dump_core): New declaration.
2828 (warn_cant_dump_core): Likewise.
2829 (dump_core): Likewise.
2830 * utils.c (dump_core): Made nonstatic. Added new
2831 parameter "limit_kind".
2832 (can_dump_core): Made nonstatic. Moved printing code to...
2833 (warn_cant_dump_core): New function.
2834 (can_dump_core_warn): Likewise.
2835 (internal_vproblem): Replace calls to can_dump_core with
2836 calls to can_dump_core_warn. Supply new argument to each.
2837
2838 2014-06-19 Gary Benson <gbenson@redhat.com>
2839
2840 * utils.h (demangler_vwarning): New declaration.
2841 (demangler_warning): Likewise.
2842 * utils.c (struct internal_problem)
2843 <user_settable_should_quit>: New field.
2844 <user_settable_should_dump_core>: Likewise
2845 (internal_error_problem): Add values for above new fields.
2846 (internal_warning_problem): Likewise.
2847 (demangler_warning_problem): New static global.
2848 (demangler_vwarning): New function.
2849 (demangler_warning): Likewise.
2850 (add_internal_problem_command): Selectively add commands.
2851 (_initialize_utils): New internal problem command.
2852 * maint.c (maintenance_demangler_warning): New function.
2853 (_initialize_maint_cmds): New command.
2854
2855 2014-06-18 Tom Tromey <tromey@redhat.com>
2856
2857 * f-valprint.c (info_common_command_for_block): Update.
2858 * symtab.h (struct general_symbol_info) <common_block>: Now
2859 const.
2860
2861 2014-06-18 Tom Tromey <tromey@redhat.com>
2862
2863 * symtab.h (struct symtab) <blockvector>: Now const.
2864 * ada-lang.c (ada_add_global_exceptions): Update.
2865 * buildsym.c (augment_type_symtab): Update.
2866 * dwarf2read.c (dw2_lookup_symbol): Update.
2867 * jit.c (finalize_symtab): Update.
2868 * jv-lang.c (add_class_symtab_symbol): Update.
2869 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2870 Update.
2871 * objfiles.c (objfile_relocate1): Update.
2872 * psymtab.c (lookup_symbol_aux_psymtabs)
2873 (maintenance_check_psymtabs): Update.
2874 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2875 Update.
2876 * spu-tdep.c (spu_catch_start): Update.
2877 * symmisc.c (dump_symtab_1): Update.
2878 * symtab.c (lookup_global_symbol_from_objfile)
2879 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2880 (basic_lookup_transparent_type_quick)
2881 (basic_lookup_transparent_type, find_pc_sect_symtab)
2882 (find_pc_sect_line, search_symbols): Update.
2883 * block.c (find_block_in_blockvector): Make "bl" const.
2884 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2885 const.
2886 (blockvector_contains_pc): Make "bv" const.
2887 (block_for_pc_sect): Update.
2888 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2889 (blockvector_contains_pc): Update.
2890 * breakpoint.c (resolve_sal_pc): Update.
2891 * inline-frame.c (block_starting_point_at): Update.
2892
2893 2014-06-18 Tom Tromey <tromey@redhat.com>
2894
2895 * completer.c (complete_line): Make "line_buffer" const.
2896 * completer.h (complete_line): Update.
2897
2898 2014-06-18 Tom Tromey <tromey@redhat.com>
2899
2900 * symtab.c (add_macro_name): Remove unneeded cast.
2901
2902 2014-06-18 Tom Tromey <tromey@redhat.com>
2903
2904 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2905 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2906
2907 2014-06-18 Tom Tromey <tromey@redhat.com>
2908
2909 * probe.c (info_probes_for_ops): Make "arg" const.
2910 * probe.h (info_probes_for_ops): Update.
2911
2912 2014-06-18 Tom Tromey <tromey@redhat.com>
2913
2914 * varobj.c (varobj_create): Update.
2915 * valops.c (value_of_this): Update.
2916 * tracepoint.c (add_local_symbols, scope_info): Update.
2917 * symtab.h (struct general_symbol_info) <block>: Now const.
2918 * symtab.c (skip_prologue_sal)
2919 (default_make_symbol_completion_list_break_on)
2920 (skip_prologue_using_sal): Update.
2921 * stack.h (iterate_over_block_locals)
2922 (iterate_over_block_local_vars): Update.
2923 * stack.c (print_frame_args): Update.
2924 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2925 parameter const.
2926 (get_selected_block): Make return type const.
2927 * python/py-frame.c (frapy_block): Update.
2928 * python/py-block.c (gdbpy_block_for_pc): Update.
2929 * p-exp.y (%union) <bval>: Now const.
2930 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2931 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2932 * m2-exp.y (%union) <bval>: Now const.
2933 * linespec.c (get_current_search_block): Make return type const.
2934 (create_sals_line_offset, find_label_symbols): Update.
2935 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2936 Update.
2937 (block_starting_point_at): Make "block" const.
2938 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2939 (check_exception_resume): Update.
2940 * guile/scm-frame.c (gdbscm_frame_block): Update.
2941 * guile/scm-block.c (gdbscm_lookup_block): Update.
2942 * frame.h (get_frame_block): Update.
2943 (get_selected_block): Make return type const.
2944 * frame.c (frame_id_inner): Update.
2945 * f-valprint.c (info_common_command_for_block)
2946 (info_common_command): Update.
2947 * dwarf2loc.c (dwarf2_find_location_expression)
2948 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2949 (locexpr_describe_location_piece): Update.
2950 * c-exp.y (%union) <bval>: Now const.
2951 * breakpoint.c (resolve_sal_pc): Update.
2952 * blockframe.c (get_frame_block):Make return type const.
2953 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2954 (block_innermost_frame): Update.
2955 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2956 (block_for_pc, block_for_pc_sect): Update.
2957 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2958 'pblock' const.
2959 (block_for_pc_sect, block_for_pc): Make return type const.
2960 * ax-gdb.c (gen_expr): Update.
2961 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2962 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2963 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2964 (ada_read_var_value): Update.
2965 * ada-exp.y (struct name_info) <block>: Now const.
2966 (%union): Likewise.
2967 (block_lookup): Constify.
2968
2969 2014-06-18 Gary Benson <gbenson@redhat.com>
2970
2971 * nat/i386-dregs.h: New file.
2972 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2973 * i386-nat.h (i386-dregs.h): New include.
2974 (DR_FIRSTADDR): Now in i386-dregs.h.
2975 (DR_LASTADDR): Likewise.
2976 (DR_NADDR): Likewise.
2977 (DR_STATUS): Likewise.
2978 (DR_CONTROL): Likewise.
2979 (i386_debug_reg_state): Likewise.
2980 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2981
2982 2014-06-18 Don Breazeal <donb@codesourcery.com>
2983
2984 * breakpoint.c (set_longjmp_breakpoint): Call
2985 momentary_breakpoint_from_master with additional argument.
2986 (set_longjmp_breakpoint_for_call_dummy): Call
2987 momentary_breakpoint_from_master with additional argument.
2988 (set_std_terminate_breakpoint): Call
2989 momentary_breakpoint_from_master with additional argument.
2990 (momentary_breakpoint_from_master): Add argument to function
2991 definition and use it to initialize structure member flag.
2992 (clone_momentary_breakpoint): Call
2993 momentary_breakpoint_from_master with additional argument.
2994 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2995 member flags set in momentary_breakpoint_from_master.
2996
2997 2014-06-18 Gary Benson <gbenson@redhat.com>
2998
2999 * i386-nat.c (i386_show_dr): Renamed to
3000 i386_dr_show and made nonstatic. All uses updated.
3001 (i386_length_and_rw_bits): Renamed to
3002 i386_dr_length_and_rw_bits and made nonstatic.
3003 All uses updated.
3004 (i386_insert_aligned_watchpoint): Renamed to
3005 i386_dr_insert_aligned_watchpoint and made nonstatic.
3006 All uses updated.
3007 (i386_remove_aligned_watchpoint): Renamed to
3008 i386_dr_remove_aligned_watchpoint and made nonstatic.
3009 All uses updated.
3010 (i386_update_inferior_debug_regs): Renamed to
3011 i386_dr_update_inferior_debug_regs and made nonstatic.
3012 All uses updated.
3013
3014 2014-06-18 Gary Benson <gbenson@redhat.com>
3015
3016 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3017 (i386_dr_low_can_set_control): Likewise.
3018 (i386_dr_low_set_addr): Likewise.
3019 (i386_dr_low_set_control): Likewise.
3020 (i386_dr_low_get_addr): Likewise.
3021 (i386_dr_low_get_status): Likewise.
3022 (i386_dr_low_get_control): Likewise.
3023 (i386_insert_aligned_watchpoint): Use new macros.
3024 (i386_update_inferior_debug_regs): Likewise.
3025 (i386_stopped_data_address): Likewise.
3026
3027 2014-06-18 Gary Benson <gbenson@redhat.com>
3028
3029 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3030 New parameter. All uses updated.
3031
3032 2014-06-18 Gary Benson <gbenson@redhat.com>
3033
3034 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3035 All uses updated.
3036
3037 2014-06-18 Gary Benson <gbenson@redhat.com>
3038
3039 * i386-nat.c (debug_printf): New macro.
3040 (i386_get_debug_register_length): Likewise.
3041 (TARGET_HAS_DR_LEN_8): Use above macro.
3042 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3043 and printf_unfiltered. Use phex to format values.
3044
3045 2014-06-18 Gary Benson <gbenson@redhat.com>
3046
3047 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3048 Make const.
3049
3050 2014-06-18 Gary Benson <gbenson@redhat.com>
3051
3052 * i386-nat.c: Comment changes.
3053
3054 2014-06-18 Gary Benson <gbenson@redhat.com>
3055
3056 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3057
3058 2014-06-18 Gary Benson <gbenson@redhat.com>
3059
3060 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3061 (i386_insert_aligned_watchpoint): Likewise.
3062 (i386_remove_aligned_watchpoint): Likewise.
3063 (i386_handle_nonaligned_watchpoint): Likewise.
3064
3065 2014-06-18 Gary Benson <gbenson@redhat.com>
3066
3067 * i386-nat.c: Whitespace changes.
3068
3069 2014-06-17 Samuel Bronson <naesten@gmail.com>
3070
3071 * MAINTAINERS: Update Roland McGrath's email address.
3072 Thanks to Sergio Durigan Junior for pointing out that he left
3073 Red Hat a while ago, and giving me a current address.
3074
3075 2014-06-17 Tom Tromey <tromey@redhat.com>
3076
3077 * utils.h (savestring): Remove declaration.
3078
3079 2014-06-17 Tom Tromey <tromey@redhat.com>
3080
3081 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3082
3083 2014-06-16 Keith Seitz <keiths@redhat.com>
3084
3085 PR mi/15863
3086 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3087 to update the varobj if inferior_ptid is null_ptid.
3088
3089 2014-06-16 Tom Tromey <tromey@redhat.com>
3090
3091 * target.h (struct target_ops) <to_info_proc>: Make parameter
3092 const.
3093 (target_info_proc): Update.
3094 * target.c (target_info_proc): Make "args" const.
3095 * procfs.c (procfs_info_proc): Update.
3096 * linux-tdep.c (linux_info_proc): Update.
3097 (linux_core_info_proc_mappings): Make "args" const.
3098 (linux_core_info_proc): Update.
3099 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3100 * gdbarch.c: Rebuild.
3101 * gdbarch.h: Rebuild.
3102 * corelow.c (core_info_proc): Update.
3103
3104 2014-06-16 Tom Tromey <tromey@redhat.com>
3105
3106 * target.h (struct target_ops) <to_disconnect>: Make parameter
3107 const.
3108 (target_disconnect): Update.
3109 * target.c (target_disconnect): Make "args" const.
3110 * target-delegates.c: Rebuild.
3111 * remote.c (remote_disconnect): Update.
3112 * record.h (record_disconnect): Update.
3113 * record.c (record_disconnect): Update.
3114 * inf-child.c (inf_child_disconnect): Update.
3115
3116 2014-06-16 Tom Tromey <tromey@redhat.com>
3117
3118 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3119 * target.c (debug_to_rcmd, default_rcmd): Update.
3120 * target-delegates.c: Rebuild.
3121 * remote.c (remote_rcmd): Update.
3122 * monitor.c (monitor_rcmd): Update.
3123
3124 2014-06-16 Pedro Alves <palves@redhat.com>
3125
3126 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3127 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3128 have OBJF_SHARED set.
3129 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3130 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3131 instead of OBJF_USERLOADED.
3132 * objfiles.h (OBJF_SHARED): Update comment.
3133 (userloaded_objfile_contains_address_p): Rename to ...
3134 (shared_objfile_contains_address_p): ... this, and update
3135 comments.
3136 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3137 new objfile.
3138 (remove_symbol_file_command): Skip objfiles that don't have
3139 OBJF_SHARED set.
3140
3141 2014-06-16 Tom Tromey <tromey@redhat.com>
3142
3143 * minsyms.h (prim_record_minimal_symbol)
3144 (prim_record_minimal_symbol_and_info): Update comments.
3145
3146 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3147
3148 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3149 or --without-guile, according to how GDB was built.
3150
3151 2014-06-13 Tom Tromey <tromey@redhat.com>
3152
3153 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3154 to help_list.
3155 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3156 to help_list.
3157 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3158 help_list.
3159 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3160 help_list.Pass all_commands, not -1, to help_list.
3161 * cli/cli-dump.c (dump_command, append_command)
3162 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3163 (binary_dump_command, binary_append_command): Pass all_commands,
3164 not -1, to help_list.
3165 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3166 -1, to help_list.
3167 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3168 -1, to help_list.
3169 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3170 help_list.
3171 * top.c (set_history): Pass all_commands, not -1, to help_list.
3172 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3173 all_commands, not -1, to help_list.
3174 * symfile.c (overlay_command): Pass all_commands, not -1, to
3175 help_list.
3176 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3177 help_list.
3178 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3179 help_list.
3180 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3181 -1, to help_list.
3182 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3183 not -1, to help_list.
3184 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3185 not -1, to help_list.
3186 * maint.c (maintenance_command, maintenance_info_command)
3187 (maintenance_print_command, maintenance_set_cmd): Pass
3188 all_commands, not -1, to help_list.
3189 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3190 help_list.
3191 * language.c (set_check): Pass all_commands, not -1, to help_list.
3192 * infcmd.c (unset_command): Pass all_commands, not -1, to
3193 help_list.
3194 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3195 help_list.
3196 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3197 help_list.
3198 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3199 help_list.
3200 * breakpoint.c (save_command): Pass all_commands, not -1, to
3201 help_list.
3202 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3203 all_commands, not -1, to help_list.
3204
3205 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3206
3207 * regcache.c (struct register_to_invalidate): New structure.
3208 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3209 functions.
3210 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3211
3212 2014-06-12 Yao Qi <yao@codesourcery.com>
3213
3214 * varobj.c (varobj_get_num_children): Call
3215 varobj_is_dynamic_p.
3216 (varobj_list_children): Likewise.
3217 (varobj_update): Likewise. Update comments.
3218
3219 2014-06-12 Yao Qi <yao@codesourcery.com>
3220
3221 * varobj.c (varobj_pretty_printed_p): Rename to ...
3222 (varobj_is_dynamic_p): ... this. New function.
3223 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3224 (varobj_is_dynamic_p): Declare.
3225 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3226 (mi_print_value_p, varobj_update_one): Likewise.
3227
3228 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3229 Yao Qi <yao@codesourcery.com>
3230
3231 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3232 (varobj_get_iterator): Wrap up code for pretty-printer by
3233 "#if HAVE_PYTHON" and "#endif".
3234 (update_dynamic_varobj_children): Likewise.
3235
3236 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3237 Yao Qi <yao@codesourcery.com>
3238
3239 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3240 gdb_python_initialized is false. Move some code from varobj.c.
3241 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3242 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3243 (struct varobj_item): Moved to varobj-iter.h".
3244 (varobj_clear_saved_item): New function.
3245 (update_dynamic_varobj_children): Move python-related code to
3246 py-varobj.c.
3247 (free_variable): Call varobj_clear_saved_item and
3248 varobj_iter_delete.
3249
3250 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3251 Yao Qi <yao@codesourcery.com>
3252
3253 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3254 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3255 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3256 (py-varobj.o): New rule.
3257 * python/py-varobj.c: New file.
3258 * python/python-internal.h (py_varobj_get_iterator): Declare.
3259 * varobj-iter.h: New file.
3260 * varobj.c: Include "varobj-iter.h"
3261 (struct varobj) <child_iter>: Change its type from "PyObject *"
3262 to "struct varobj_iter *".
3263 <saved_item>: Likewise.
3264 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3265 [HAVE_PYTHON] (varobj_get_iterator): New function.
3266 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3267 python-specific code to python/py-varobj.c.
3268 (install_visualizer): Call varobj_iter_delete instead of
3269 Py_XDECREF.
3270 * varobj.h (varobj_ensure_python_env): Declare.
3271
3272 2014-06-12 Yao Qi <yao@codesourcery.com>
3273
3274 * varobj.c (struct varobj_item): New structure.
3275 (create_child_with_value): Update declaration.
3276 (varobj_add_child): Replace arguments 'name' and 'value' with
3277 'item'. All callers updated.
3278 (install_dynamic_child): Likewise.
3279 (update_dynamic_varobj_children): Likewise.
3280 (varobj_add_child): Likewise.
3281 (create_child_with_value): Likewise.
3282
3283 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3284
3285 * NEWS: Create a new section for the next release branch.
3286 Rename the section of the current branch, now that it has
3287 been cut.
3288
3289 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3290
3291 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3292 * version.in: Bump version to 7.8.50.DATE-cvs.
3293
3294 2014-06-11 Pedro Alves <palves@redhat.com>
3295
3296 PR remote/17028
3297 * ser-mingw.c (net_windows_socket_check_pending): New function.
3298 (net_windows_select_thread): Ignore spurious wakeups. Use
3299 net_windows_socket_check_pending.
3300 (net_windows_wait_handle): Check for pending events with
3301 ioctlsocket, through net_windows_socket_check_pending, instead of
3302 checking the socket's event.
3303
3304 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3305
3306 * python/python-internal.h (gdb_PyObject_GetAttrString)
3307 (gdb_PyObject_HasAttrString): New inline function definitions.
3308 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3309 char * of the second argument to PyObject_GetAttrString.
3310
3311 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3312
3313 * serial.c (serial_write): Fix index of character to be printed
3314 in call to serial_logchar when serial debug traces are enabled.
3315
3316 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3317
3318 * gdbtypes (resolve_dynamic_range): Add function description.
3319
3320 2014-06-09 Pedro Alves <palves@redhat.com>
3321
3322 * linux-nat.c (linux_child_follow_fork): Initialize status with
3323 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3324 inner block. Only pass the signal to PTRACE_DETACH if in pass
3325 state.
3326
3327 2014-06-09 Gary Benson <gbenson@redhat.com>
3328
3329 * common/signals.c (gdb_signal_from_host): Reorder to separate
3330 the always-available ANSI-standard signals from the signals that
3331 require checking.
3332 (do_gdb_signal_to_host): Likewise.
3333 * proc-events.c (signal_table): Likewise.
3334
3335 2014-06-08 Hui Zhu <hui@codesourcery.com>
3336
3337 * common/linux-ptrace.c (linux_disable_event_reporting): New
3338 function.
3339 * common/linux-ptrace.h (linux_disable_event_reporting): New
3340 declaration.
3341 * linux-nat.c (linux_child_follow_fork): Do a single step before
3342 detach.
3343
3344 2014-06-07 Keith Seitz <keiths@redhat.com>
3345
3346 Revert:
3347 PR c++/16253
3348 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3349 from symbol_matches_domain in symtab.c. All local callers
3350 of symbol_matches_domain updated.
3351 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3352 search STRUCT_DOMAIN.
3353 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3354 independently. standard_lookup will do that automatically.
3355 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3356 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3357 (cp_lookup_symbol_in_namespace): Likewise.
3358 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3359 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3360 may return a STRUCT_DOMAIN match.
3361 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3362 * cp-support.c: Include language.h.
3363 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3364 VAR_DOMAIN.
3365 * psymtab.c (match_partial_symbol): Compare the requested
3366 domain with the symbol's domain directly.
3367 (lookup_partial_symbol): Likewise.
3368 * symtab.c (lookup_symbol_in_language): Explain when/why
3369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3370 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3371 appropriate languages.
3372 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3373 and moved to ada-lang.c
3374 (lookup_block_symbol): Explain that this function only returns
3375 symbol matching the requested DOMAIN.
3376 Compare the requested domain with the symbol's domain directly.
3377 (iterate_over_symbols): Compare the requested domain with the
3378 symbol's domain directly.
3379 * symtab.h (symbol_matches_domain): Remove.
3380
3381 2014-06-06 Doug Evans <xdje42@gmail.com>
3382
3383 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3384 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3385 (gdbscm_guile_version_is_at_least): Declare.
3386 (gdbscm_scm_string_to_int): Declare.
3387 * guile/guile.c (gdbscm_guile_major_version): New global.
3388 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3389 (guile_datadir): New static global.
3390 (gdbscm_guile_data_directory): New function.
3391 (initialize_scheme_side): Update.
3392 (misc_guile_functions): Add guile-data-directory.
3393 (initialize_gdb_module): Fetch guile version number.
3394 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3395 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3396 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3397 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3398 comments.
3399 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3400 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3401 * guile/scm-value.c (gdbscm_value_to_string): Only call
3402 scm_port_conversion_strategy if Guile version >= 2.0.6.
3403
3404 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3405
3406 * main.c (print_gdb_help): Add -q and --silent.
3407
3408 2014-06-06 Gary Benson <gbenson@redhat.com>
3409
3410 * common/signals.c: Remove preprocessor conditionals for
3411 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3412 SIGSEGV and SIGTERM.
3413 * proc-events.c: Likewise.
3414
3415 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3416
3417 * symfile.c (symfile_free_objfile): Remove restriction to
3418 OBJF_USERLOADED.
3419 * symfile-mem.c (symbol_file_add_from_memory): Call
3420 add_target_sections_of_objfile.
3421
3422 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3423
3424 * guile/scm-value.c (gdbscm_history_append_x): Use
3425 'vlscm_get_value_smob_arg_unsafe' instead of
3426 'vlscm_scm_to_value'.
3427
3428 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3429
3430 PR mi/15806
3431 * utils.c (printchar): Don't escape at all if quoter is NUL.
3432 Update function documentation to clarify effect of parameter
3433 QUOTER.
3434 * remote.c (escape_buffer): Pass '\\' as the quoter to
3435 fputstrn_unfiltered.
3436 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3437 generate the output.
3438 (mi_solib_unloaded): Same.
3439
3440 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3441
3442 * development.sh: Delete.
3443 * Makefile.in (config.status): Adjust dependency on development.sh.
3444 * configure.ac: Adjust development.sh source call.
3445 * configure: Regenerate.
3446
3447 2014-06-04 Doug Evans <xdje42@gmail.com>
3448
3449 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3450 is_scheme_bkpt, spec.
3451 (bpscm_make_breakpoint_smob): Initialize new members.
3452 (gdbscm_create_breakpoint_x): Split into two ...
3453 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3454 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3455 (scheme_function breakpoint_functions): Update.
3456 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3457 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3458 register-breakpoint!.
3459
3460 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3461
3462 PR server/17023
3463 * mem-break.c (z_type_supported): Return zero if
3464 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3465
3466 2014-06-04 Tom Tromey <tromey@redhat.com>
3467
3468 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3469 value_from_contents_and_address_unresolved.
3470 (ada_template_to_fixed_record_type_1): Likewise.
3471 (ada_which_variant_applies): Likewise.
3472 * value.h (value_from_contents_and_address_unresolved): Declare.
3473 * value.c (value_from_contents_and_address_unresolved): New
3474 function.
3475 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3476 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3477 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3478
3479 2014-06-04 Tom Tromey <tromey@redhat.com>
3480
3481 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3482
3483 2014-06-04 Tom Tromey <tromey@redhat.com>
3484
3485 * procfs.c (procfs_attach): Make "args" const.
3486 * windows-nat.c (windows_attach): Make "args" const.
3487 * nto-procfs.c (procfs_attach): Make "args" const.
3488 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3489 * go32-nat.c (go32_attach): Make "args" const.
3490 * gnu-nat.c (gnu_attach): Make "args" const.
3491 * darwin-nat.c (darwin_attach): Make "args" const.
3492 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3493 * linux-nat.c (linux_nat_attach): Make "args" const.
3494 * remote.c (extended_remote_attach_1, extended_remote_attach):
3495 Make "args" const.
3496 * target.h (struct target_ops) <to_attach>: Make "args" const.
3497 (find_default_attach): Likewise.
3498 * utils.c (parse_pid_to_attach): Make "args" const.
3499 * utils.h (parse_pid_to_attach): Update.
3500
3501 2014-06-04 Tom Tromey <tromey@redhat.com>
3502
3503 * target-delegates.c: Rebuild.
3504 * target.c (default_thread_address_space): New function.
3505 (target_thread_address_space): Simplify.
3506 * target.h (struct target_ops) <to_thread_address_space>: Add
3507 TARGET_DEFAULT_FUNC.
3508
3509 2014-06-04 Doug Evans <xdje42@gmail.com>
3510
3511 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3512
3513 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3514
3515 * record-btrace.c: Include event-loop.h and inf-loop.h.
3516 (record_btrace_resume_exec_dir)
3517 (record_btrace_async_inferior_event_handler)
3518 (record_btrace_handle_async_inferior_event): New.
3519 (record_btrace_open): Create async event handler.
3520 (record_btrace_close): Delete async event handler.
3521 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3522 Mark async event handler.
3523 (record_btrace_execution_direction): New.
3524 (init_record_btrace_ops): Initialize to_execution_direction.
3525
3526 2014-06-03 Doug Evans <xdje42@gmail.com>
3527
3528 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3529 (gdbscm_make_parameter): Ditto.
3530
3531 2014-06-03 Doug Evans <dje@google.com>
3532
3533 * exec.c (exec_close_1): Call clear_section_table instead of
3534 resize_section_table.
3535 (clear_section_table): New function.
3536 (resize_section_table): Make static. Rename arg num_added to
3537 adjustment.
3538 * exec.h (clear_section_table): Declare.
3539 (resize_section_table): Delete.
3540 * progspace.c (release_program_space): Call clear_section_table
3541 instead of resize_section_table.
3542
3543 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3544
3545 * NEWS (Python Scripting): Add entry about the new xmethods
3546 feature.
3547
3548 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3549
3550 * python/py-xmethods.c: New file.
3551 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3552 (objfpy_dealloc): XDECREF on the new xmethods field.
3553 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3554 field.
3555 (objfpy_get_xmethods): New function.
3556 (objfile_getset): New entry 'xmethods'.
3557 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3558 (pspy_dealloc): XDECREF on the new xmethods field.
3559 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3560 field.
3561 (pspy_get_xmethods): New function.
3562 (pspace_getset): New entry 'xmethods'.
3563 * python/python-internal.h: Add declarations for new functions.
3564 * python/python.c (_initialize_python): Invoke
3565 gdbpy_initialize_xmethods.
3566 * python/lib/gdb/__init__.py (xmethods): New
3567 attribute.
3568 * python/lib/gdb/xmethod.py: New file.
3569 * python/lib/gdb/command/xmethods.py: New file.
3570
3571 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3572
3573 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3574 best match method returned by find_overload_match is an xmethod.
3575 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3576 the best matching operator returned by find_overload_match is an
3577 xmethod.
3578 * valops.c: #include "extension.h".
3579 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3580 Return void. The list of matching source methods is returned in
3581 "fn_list" and a vector of matching debug method workers is
3582 returned in "xm_worker_vec". Update all callers.
3583 (value_find_oload_method_list): Likewise.
3584 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3585 non-NULL, then the index of the best matching method in this
3586 vector is returned. Update all callers.
3587 (find_overload_match): Include xmethods while performing overload
3588 resolution.
3589
3590 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3591
3592 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3593 * extension-priv.h (struct extension_language_ops): Add the
3594 xmethod interface.
3595 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3596 get_matching_xmethod_workers, get_xmethod_argtypes,
3597 invoke_xmethod, free_xmethod_worker,
3598 free_xmethod_worker_vec): New functions.
3599 * extension.h: #include "common/vec.h".
3600 New function declarations.
3601 (struct xmethod_worker): New struct.
3602 (VEC (xmethod_worker_ptr)): New vector type.
3603 (xmethod_worker_ptr): New typedef.
3604 (xmethod_worker_vec): Likewise.
3605 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3606 builtin_type.
3607 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3608 (struct builtin_type): New field "xmethod".
3609 * valarith.c (value_ptradd): Assert that the value argument is not
3610 lval_xcallable.
3611 * valops.c (value_must_coerce_to_target): Return 0 for
3612 lval_xcallable values.
3613 * value.c (struct value): New field XM_WORKER in the field
3614 LOCATION.
3615 (value_address, value_raw_address): Return 0 for lval_xcallable
3616 values.
3617 (set_value_address): Assert that the value is not an
3618 lval_xcallable.
3619 (value_free): Free the associated xmethod worker when freeing
3620 lval_xcallable values.
3621 (set_value_component_location): Assert that the WHOLE value is not
3622 lval_xcallable.
3623 (value_of_xmethod, call_xmethod): New functions.
3624 * value.h: Declare "struct xmethod_worker".
3625 Declare new functions value_of_xmethod, call_xmethod.
3626
3627 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3628 Pedro Alves <palves@redhat.com>
3629
3630 PR breakpoints/17000
3631 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3632 New function, extracted from software_breakpoint_inserted_here_p.
3633 (software_breakpoint_inserted_here_p): Replace factored out code
3634 by call to find_non_raw_software_breakpoint_inserted_here.
3635 (bp_target_info_copy_insertion_state): New function.
3636 (bkpt_insert_location): Handle the case of a single-step
3637 breakpoint already inserted at the same address.
3638 (bkpt_remove_location): Handle the case of a single-step
3639 breakpoint still inserted at the same address.
3640 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3641 breakpoint already inserted at the same address.
3642 (deprecated_remove_raw_breakpoint): Handle the case of a
3643 non-raw breakpoint still inserted at the same address.
3644 (find_single_step_breakpoint): New function, extracted from
3645 single_step_breakpoint_inserted_here_p.
3646 (find_single_step_breakpoint): New function,
3647 factored out from single_step_breakpoint_inserted_here_p.
3648 (single_step_breakpoint_inserted_here_p): Reimplement.
3649
3650 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3651
3652 Pushed by Joel Brobecker <brobecker@adacore.com>
3653 * source.c (show_substitute_path_command): Fix display of matching
3654 substitution rules.
3655
3656 2014-06-03 Gary Benson <gbenson@redhat.com>
3657
3658 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3659
3660 2014-06-02 Doug Evans <xdje42@gmail.com>
3661
3662 Add parameter support for Guile.
3663 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3664 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3665 (scm-param.o): New rule.
3666 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3667 (gdbscm_misc_error): Declare.
3668 (gdbscm_canonicalize_command_name): Declare.
3669 (gdbscm_scm_to_host_string): Declare.
3670 (gdbscm_scm_from_host_string): Declare.
3671 (gdbscm_initialize_parameters): Declare.
3672 * guile/guile.c (initialize_gdb_module): Call
3673 gdbscm_initialize_parameters.
3674 * guile/lib/gdb.scm: Export parameter symbols.
3675 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3676 cmdscm_canonicalize_name and made public. All callers updated.
3677 * guile/scm-exception.c (gdbscm_misc_error): New function.
3678 * guile/scm-param.c: New file.
3679 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3680 (gdbscm_scm_to_host_string): New function.
3681 (gdbscm_scm_from_host_string): New function.
3682 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3683
3684 2014-06-02 Doug Evans <xdje42@gmail.com>
3685
3686 Add command support for Guile.
3687 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3688 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3689 (scm-cmd.o): New rule.
3690 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3691 (gdbscm_user_error_p): Declare.
3692 (gdbscm_parse_command_name): Declare.
3693 (gdbscm_valid_command_class_p): Declare.
3694 (gdbscm_initialize_commands): Declare.
3695 * guile/guile.c (initialize_gdb_module): Call
3696 gdbscm_initialize_commands.
3697 * guile/lib/gdb.scm: Export command symbols.
3698 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3699 (throw-user-error): New function.
3700 * guile/scm-cmd.c: New file.
3701 * guile/scm-exception.c (user_error_symbol): New static global.
3702 (gdbscm_user_error_p): New function.
3703 (gdbscm_initialize_exceptions): Set user_error_symbol.
3704 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3705
3706 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3707
3708 * top.c (command_loop): Handle comments here...
3709 (command_line_input): ... not here.
3710
3711 2014-06-02 Doug Evans <xdje42@gmail.com>
3712
3713 Add progspace support for Guile.
3714 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3715 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3716 (scm-progspace.o): New rule.
3717 * guile/guile-internal.h (pspace_smob): New typedef.
3718 (psscm_pspace_smob_pretty_printers): Declare.
3719 (psscm_pspace_smob_from_pspace): Declare.
3720 (psscm_scm_from_pspace): Declare.
3721 * guile/guile.c (initialize_gdb_module): Call
3722 gdbscm_initialize_pspaces.
3723 * guile/lib/gdb.scm: Export progspace symbols.
3724 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3725 support.
3726 (append-pretty-printer!): Ditto.
3727 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3728 Implement.
3729 * guile/scm-progspace.c: New file.
3730
3731 2014-06-03 Alan Modra <amodra@gmail.com>
3732
3733 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3734 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3735
3736 2014-06-02 Doug Evans <dje@google.com>
3737
3738 Add support for skeletonless type units.
3739 * dwarf2read.c (struct dwarf2_per_objfile): New member
3740 n_allocated_type_units.
3741 (struct dwarf2_per_objfile) <tu_stats>: New member
3742 nr_all_type_units_reallocs.
3743 (create_signatured_type_table_from_index): Initialize
3744 n_allocated_type_units
3745 (create_all_type_units): Ditto.
3746 (add_type_unit): Move up in file. New arg slot.
3747 All callers updated. Increase space for all_type_units more
3748 efficiently.
3749 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3750 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3751 (lookup_dwp_signatured_type): Ditto.
3752 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3753 All callers updated.
3754 (build_type_psymtabs_1): Leave type_unit_groups as
3755 NULL if no TUs present.
3756 (print_tu_stats): New function.
3757 (process_skeletonless_type_unit): New function.
3758 (process_dwo_file_for_skeletonless_type_units): New
3759 function.
3760 (process_skeletonless_type_units): New function.
3761 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3762 Call print tu_stats if debugging enabled.
3763
3764 2014-06-02 Pedro Alves <palves@redhat.com>
3765
3766 * breakpoint.c (build_target_command_list): Don't build a command
3767 list if we have any duplicate location that isn't a dprintf.
3768
3769 2014-06-02 Pedro Alves <palves@redhat.com>
3770
3771 * breakpoint.c (dprintf_breakpoint_hit): New function.
3772 (initialize_breakpoint_ops): Install it as dprintf's
3773 breakpoint_hit method.
3774
3775 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3776
3777 * source.c (substitute_path_rule_matches): Simplify using
3778 filename_ncmp instead of FILENAME_CMP.
3779
3780 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3781
3782 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3783
3784 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3785
3786 * configure.ac: When Guile is available, check for the
3787 availability of 'scm_new_smob'.
3788 * configure, config.h.in: Regenerate.
3789 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3790 function.
3791
3792 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3793
3794 * frame.c (struct frame_info): Add stop_string field.
3795 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3796 (get_prev_frame_always): Old content moved into
3797 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3798 TRY_CATCH, handle MEMORY_ERROR exceptions.
3799 (frame_stop_reason_string): New function definition.
3800 * frame.h (unwind_stop_reason_to_string): Extend comment to
3801 mention frame_stop_reason_string.
3802 (frame_stop_reason_string): New function declaration.
3803 * stack.c (frame_info): Switch to frame_stop_reason_string.
3804 (backtrace_command_1): Switch to frame_stop_reason_string.
3805 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3806 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3807 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3808
3809 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3810
3811 * frame.c (frame_stop_reason_string): Rename to ...
3812 (unwind_stop_reason_to_string): this.
3813 * frame.h (frame_stop_reason_string): Rename to ...
3814 (unwind_stop_reason_to_string): this.
3815 * stack.c (frame_info): Update call to frame_stop_reason_string.
3816 (backtrace_command_1): Likewise.
3817 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3818 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3819
3820 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3821
3822 * frame.c (remove_prev_frame): New function.
3823 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3824 remove_prev_frame.
3825
3826 2014-05-29 Pedro Alves <palves@redhat.com>
3827
3828 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3829 and make it const. When a single-step decays to a continue,
3830 clear 'step', not 'hw_step'. Pass whether the caller wanted
3831 to step to user_visible_resume_ptid, not what we ask the
3832 target to do.
3833
3834 2014-05-29 Pedro Alves <palves@redhat.com>
3835
3836 * infrun.c (process_event_stop_test, handle_step_into_function)
3837 (handle_step_into_function_backward): Adjust.
3838 Don't set the even thread's stop_step and call stop_waiting before
3839 calling end_stepping_range. Instead do that ...
3840 (end_stepping_range): ... here. Take an ecs pointer parameter.
3841
3842 2014-05-29 Pedro Alves <palves@redhat.com>
3843
3844 * infrun.c (stop_stepping): Rename to ...
3845 (stop_waiting): ... this.
3846 (proceed): Update comment.
3847 (process_event_stop_test, handle_inferior_event)
3848 (handle_signal_stop, handle_step_into_function)
3849 (handle_step_into_function_backward): Update.
3850
3851 2014-05-29 Pedro Alves <palves@redhat.com>
3852
3853 * infcall.c (run_inferior_call): Don't check whether the current
3854 thread is running after the proceed call.
3855
3856 2014-05-29 Pedro Alves <palves@redhat.com>
3857 Tom Tromey <tromey@redhat.com>
3858
3859 * NEWS: Mention "maint set target-async", "set mi-async", and that
3860 background execution commands are now always available.
3861 * target.h (target_async_permitted): Update comment.
3862 * target.c (target_async_permitted, target_async_permitted_1):
3863 Default to 1.
3864 (set_target_async_command): Rename to ...
3865 (maint_set_target_async_command): ... this.
3866 (show_target_async_command): Rename to ...
3867 (maint_show_target_async_command): ... this.
3868 (_initialize_target): Adjust.
3869 * infcmd.c (prepare_execution_command): Make extern.
3870 * inferior.h (prepare_execution_command): Declare.
3871 * infrun.c (set_observer_mode): Leave target async alone.
3872 * mi/mi-interp.c (mi_interpreter_init): Install
3873 mi_on_sync_execution_done as sync_execution_done observer.
3874 (mi_on_sync_execution_done): New function.
3875 (mi_execute_command_input_handler): Don't print the prompt if we
3876 just started a synchronous command with an async target.
3877 (mi_on_resume): Check sync_execution before printing prompt.
3878 * mi/mi-main.h (mi_async_p): Declare.
3879 * mi/mi-main.c: Include gdbcmd.h.
3880 (mi_async_p): New function.
3881 (mi_async, mi_async_1): New globals.
3882 (set_mi_async_command, show_mi_async_command, mi_async): New
3883 functions.
3884 (exec_continue): Call prepare_execution_command.
3885 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3886 (mi_execute_async_cli_command): Use mi_async_p.
3887 (_initialize_mi_main): Install "set mi-async". Make
3888 "target-async" a deprecated alias.
3889
3890 2014-05-29 Pedro Alves <palves@redhat.com>
3891
3892 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3893 (_initialize_cli_interp): Adjust.
3894 * event-loop.c: Include "observer.h".
3895 (start_event_loop): Notify 'command_error' observers instead of
3896 calling display_gdb_prompt. Remove FIXME comment.
3897 * event-top.c (display_gdb_prompt): Remove call into the
3898 interpreters.
3899 * inf-loop.c: Include "observer.h".
3900 (inferior_event_handler): Notify 'command_error' observers instead
3901 of calling display_gdb_prompt.
3902 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3903 observers instead of calling display_gdb_prompt.
3904 * interps.c (interp_set): Don't call display_gdb_prompt.
3905 (current_interp_display_prompt_p): Delete.
3906 * interps.h (interp_prompt_p): Delete declaration.
3907 (interp_prompt_p_ftype): Delete.
3908 (struct interp_procs) <prompt_proc_p>: Delete field.
3909 (current_interp_display_prompt_p): Delete declaration.
3910 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3911 (_initialize_mi_interp): Adjust.
3912 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3913 'command_error' observers.
3914 (tui_on_sync_execution_done, tui_on_command_error): New
3915 functions.
3916 (tui_display_prompt_p): Delete.
3917 (_initialize_tui_interp): Adjust.
3918
3919 2014-05-29 Pedro Alves <palves@redhat.com>
3920
3921 PR gdb/13860
3922 * cli/cli-interp.c: Include infrun.h and observer.h.
3923 (cli_uiout, cli_interp): New globals.
3924 (cli_on_signal_received, cli_on_end_stepping_range)
3925 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3926 functions.
3927 (cli_interpreter_init): Install them as 'end_stepping_range',
3928 'signal_received' 'signal_exited', 'exited' and 'no_history'
3929 observers.
3930 (_initialize_cli_interp): Remove cli_interp local.
3931 * infrun.c (handle_inferior_event): Call the several stop reason
3932 observers instead of printing the stop reason directly.
3933 (end_stepping_range): New function.
3934 (print_end_stepping_range_reason, print_signal_exited_reason)
3935 (print_exited_reason, print_signal_received_reason)
3936 (print_no_history_reason): Make static, and add an uiout
3937 parameter. Print to that instead of to CURRENT_UIOUT.
3938 * infrun.h (print_end_stepping_range_reason)
3939 (print_signal_exited_reason, print_exited_reason)
3940 (print_signal_received_reason print_no_history_reason): New
3941 declarations.
3942 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3943 'mi_uiout'.
3944 <cli_uiout>: New field.
3945 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3946 uiout for CLI output. Install 'signal_received',
3947 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3948 observers.
3949 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3950 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3951 (mi_on_no_history): New functions.
3952 (ui_out_free_cleanup): Delete function.
3953 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3954 instead use the one already stored in the MI interpreter data.
3955 (mi_ui_out): Adjust.
3956 * tui/tui-interp.c: Include infrun.h and observer.h.
3957 (tui_interp): New global.
3958 (tui_on_signal_received, tui_on_end_stepping_range)
3959 (tui_on_signal_exited, tui_on_exited)
3960 (tui_on_no_history): New functions.
3961 (tui_init): Install them as 'end_stepping_range',
3962 'signal_received' 'signal_exited', 'exited' and 'no_history'
3963 observers.
3964 (_initialize_tui_interp): Delete tui_interp local.
3965
3966 2014-05-29 Pedro Alves <palves@redhat.com>
3967
3968 PR gdb/15713
3969 * linux-nat.c (linux_nat_resume_callback): Rename the second
3970 parameter to 'except'. Skip LP if it points to EXCEPT.
3971 (linux_nat_resume): Don't mark the event lwp as not stopped
3972 before resuming sibling lwps. Instead ask
3973 linux_nat_resume_callback to skip the event lwp. Mark it as not
3974 stopped after actually resuming it.
3975 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3976 resuming it.
3977 (wait_lwp): Mark the lwp as stopped here.
3978 (stop_wait_callback): Mark the lwp as not stopped right after
3979 resuming it. Don't mark lwps as stopped here.
3980 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3981 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3982
3983 2014-05-29 Pedro Alves <palves@redhat.com>
3984
3985 PR PR15693
3986 * infrun.c (resume): Determine how much to resume depending on
3987 whether the caller wanted a step, not whether we can hardware step
3988 the target. Mark all threads that we intend to run as running,
3989 unless we're calling an inferior function.
3990 (normal_stop): If the thread is running an infcall, don't finish
3991 thread state.
3992 * target.c (target_resume): Don't mark threads as running here.
3993
3994 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3995
3996 * serial.c (_initialize_serial): Remove support for
3997 the "set remotebaud" and "show remotebaud" commands.
3998 * NEWS: Add entry documenting the removal of that command.
3999
4000 2014-05-28 Yao Qi <yao@codesourcery.com>
4001
4002 * charset.c: Fix typo in comments.
4003
4004 2014-05-27 Gary Benson <gbenson@redhat.com>
4005
4006 * utils.c (internal_vproblem): Prompt for a bug report.
4007
4008 2014-05-26 Andy Wingo <wingo@igalia.com>
4009
4010 * guile/scm-arch.c (arscm_mark_arch_smob):
4011 * guile/scm-block.c (bkscm_mark_block_smob)
4012 (bkscm_mark_block_syms_progress_smob):
4013 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4014 * guile/scm-exception.c (exscm_mark_exception_smob):
4015 * guile/scm-frame.c (frscm_mark_frame_smob):
4016 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4017 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4018 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4019 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4020 (ppscm_mark_pretty_printer_worker_smob):
4021 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4022 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4023 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4024 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4025 mark functions.
4026 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4027 function.
4028
4029 2014-05-26 Andy Wingo <wingo@igalia.com>
4030 Doug Evans <xdje42@gmail.com>
4031
4032 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4033 empty_base_class. All uses updated.
4034 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4035 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4036 Adapt all callers.
4037 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4038 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4039 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4040 (gdbscm_gsmob_has_property_p, add_property_name)
4041 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4042 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4043 (gdb-object-has-property?, gdb-object-properties): Remove.
4044 (gdb-object-kind): Renamed from gsmob-kind.
4045
4046 2014-05-26 Andy Wingo <wingo@igalia.com>
4047
4048 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4049 * configure: Regenerate.
4050
4051 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4052
4053 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4054
4055 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4056
4057 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4058 (replay_memory_access_read_only, replay_memory_access_read_write)
4059 (replay_memory_access_types, replay_memory_access)
4060 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4061 (cmd_set_record_btrace, cmd_show_record_btrace)
4062 (cmd_show_replay_memory_access): New.
4063 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4064 (record_btrace_remove_breakpoint): Replace
4065 record_btrace_allow_memory_access with replay_memory_access.
4066 (_initialize_record_btrace): Add commands.
4067 * NEWS: Announce it.
4068
4069 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4070
4071 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4072
4073 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4074
4075 * MAINTAINERS (Write After Approval): Move self back from
4076 paper trail.
4077
4078 2014-05-22 Pedro Alves <palves@redhat.com>
4079
4080 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4081 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4082 (disable_randomization, enum exec_direction_kind)
4083 (execution_direction, stop_registers, start_remote)
4084 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4085 (wait_for_inferior, normal_stop, get_last_target_status)
4086 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4087 (insert_step_resume_breakpoint_at_sal)
4088 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4089 (set_step_info, print_stop_event, signal_stop_state)
4090 (signal_print_state, signal_pass_state, signal_stop_update)
4091 (signal_print_update, signal_pass_update)
4092 (update_signals_program_target, clear_exit_convenience_vars)
4093 (displaced_step_dump_bytes, update_observer_mode)
4094 (signal_catch_update, gdb_signal_from_command): Move
4095 declarations ...
4096 * infrun.h: ... to this new file.
4097 * amd64-tdep.c: Include infrun.h.
4098 * annotate.c: Include infrun.h.
4099 * arch-utils.c: Include infrun.h.
4100 * arm-linux-tdep.c: Include infrun.h.
4101 * arm-tdep.c: Include infrun.h.
4102 * break-catch-sig.c: Include infrun.h.
4103 * breakpoint.c: Include infrun.h.
4104 * common/agent.c: Include infrun.h instead of inferior.h.
4105 * corelow.c: Include infrun.h.
4106 * event-top.c: Include infrun.h.
4107 * go32-nat.c: Include infrun.h.
4108 * i386-tdep.c: Include infrun.h.
4109 * inf-loop.c: Include infrun.h.
4110 * infcall.c: Include infrun.h.
4111 * infcmd.c: Include infrun.h.
4112 * infrun.c: Include infrun.h.
4113 * linux-fork.c: Include infrun.h.
4114 * linux-nat.c: Include infrun.h.
4115 * linux-thread-db.c: Include infrun.h.
4116 * monitor.c: Include infrun.h.
4117 * nto-tdep.c: Include infrun.h.
4118 * procfs.c: Include infrun.h.
4119 * record-btrace.c: Include infrun.h.
4120 * record-full.c: Include infrun.h.
4121 * remote-m32r-sdi.c: Include infrun.h.
4122 * remote-mips.c: Include infrun.h.
4123 * remote-notif.c: Include infrun.h.
4124 * remote-sim.c: Include infrun.h.
4125 * remote.c: Include infrun.h.
4126 * reverse.c: Include infrun.h.
4127 * rs6000-tdep.c: Include infrun.h.
4128 * s390-linux-tdep.c: Include infrun.h.
4129 * solib-irix.c: Include infrun.h.
4130 * solib-osf.c: Include infrun.h.
4131 * solib-svr4.c: Include infrun.h.
4132 * target.c: Include infrun.h.
4133 * top.c: Include infrun.h.
4134 * windows-nat.c: Include infrun.h.
4135 * mi/mi-interp.c: Include infrun.h.
4136 * mi/mi-main.c: Include infrun.h.
4137 * python/py-threadevent.c: Include infrun.h.
4138
4139 2014-05-22 Pedro Alves <palves@redhat.com>
4140
4141 * infrun.c (handle_inferior_event): Store the exit code for
4142 --return-child-result here, instead of ...
4143 (print_exited_reason): ... here.
4144
4145 2014-05-21 Pedro Alves <palves@redhat.com>
4146
4147 PR gdb/13860
4148 * gdbthread.h (struct thread_control_state): New field
4149 `command_interp'.
4150 * infrun.c (follow_fork): Copy the new thread control field to the
4151 child fork thread.
4152 (clear_proceed_status_thread): Clear the new thread control field.
4153 (proceed): Set the new thread control field.
4154 * interps.h (command_interp): Declare.
4155 * interps.c (command_interpreter): New global.
4156 (command_interp): New function.
4157 (interp_exec): Set `command_interpreter' while here.
4158 * cli-out.c (cli_uiout_dtor): New function.
4159 (cli_ui_out_impl): Install it.
4160 * mi/mi-interp.c: Include cli-out.h.
4161 (mi_cmd_interpreter_exec): Add comment.
4162 (restore_current_uiout_cleanup): New function.
4163 (ui_out_free_cleanup): New function.
4164 (mi_on_normal_stop): If finishing an execution command started by
4165 a CLI command, or any kind of breakpoint-like event triggered,
4166 print the stop event to the output (CLI) stream.
4167 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4168
4169 2014-05-21 Pedro Alves <palves@redhat.com>
4170
4171 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4172 current source line having changed.
4173 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4174 * infrun.c (normal_stop): Adjust call to
4175 set_current_sal_from_frame.
4176 * source.c (clear_lines_listed_range): New function.
4177 (set_current_source_symtab_and_line, identify_source_line): Clear
4178 the lines listed range.
4179 (line_info): Handle the first "info line" after the current source
4180 line having changed.
4181 * stack.c (print_stack_frame): Remove center handling.
4182 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4183 center sal.line.
4184
4185 2014-05-21 Pedro Alves <palves@redhat.com>
4186
4187 * inf-child.c (inf_child_mourn_inferior): New function.
4188 * inf-child.h (inf_child_mourn_inferior): New declaration.
4189 * darwin-nat.c (darwin_mourn_inferior): Use
4190 inf_child_mourn_inferior.
4191 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4192 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4193 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4194 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4195 * windows-nat.c (windows_mourn_inferior): Likewise.
4196
4197 2014-05-21 Doug Evans <xdje42@gmail.com>
4198
4199 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4200
4201 2014-05-21 Doug Evans <xdje42@gmail.com>
4202
4203 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4204 (gdbscm_out_of_range_error): Ditto.
4205 (gdbscm_memory_error): Ditto.
4206 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4207 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4208 (gdbscm_out_of_range_error): Update.
4209 (gdbscm_memory_error): Update.
4210 (gdbscm_scm_to_target_string_unsafe): Delete.
4211
4212 2014-05-21 Pedro Alves <palves@redhat.com>
4213
4214 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4215 globals.
4216 (inf_child_open_target): New function.
4217 (inf_child_open): Use inf_child_open_target to push the target
4218 instead of erroring out.
4219 (inf_child_disconnect, inf_child_close)
4220 (inf_child_maybe_unpush_target): New functions.
4221 (inf_child_target): Install inf_child_disconnect and
4222 inf_child_close. Store a pointer to the returned object.
4223 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4224 declarations.
4225 * target.c (auto_connect_native_target): New global.
4226 (show_default_run_target): New function.
4227 (find_default_run_target): Return NULL if automatically connecting
4228 to the native target is disabled.
4229 (_initialize_target): Install set/show auto-connect-native-target.
4230 * NEWS: Mention "set auto-connect-native-target", and "target
4231 native".
4232 * linux-nat.c (super_close): New global.
4233 (linux_nat_close): Call super_close.
4234 (linux_nat_add_target): Store a pointer to the base class's
4235 to_close method.
4236 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4237 inf_child_maybe_unpush.
4238 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4239 already pushed.
4240 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4241 the inferior. Use inf_child_maybe_unpush_target.
4242 (inf_ttrace_attach): Don't push the target if it is already
4243 pushed.
4244 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4245 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4246 after mourning the inferior. Use inf_child_maybe_unpush_target.
4247 (darwin_attach_pid): Don't push the target if it is already
4248 pushed.
4249 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4250 mourning the inferior. Use inf_child_maybe_unpush_target.
4251 (gnu_detach): Use inf_child_maybe_unpush_target.
4252 * go32-nat.c (go32_create_inferior): Don't push the target if it
4253 is already pushed.
4254 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4255 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4256 (procfs_open): Rename to ...
4257 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4258 comments. Can target_preopen before changing node. Call
4259 inf_child_open_target to push the target explicitly.
4260 (procfs_attach): Don't push the target if it is already pushed.
4261 (procfs_detach): Use inf_child_maybe_unpush_target.
4262 (procfs_create_inferior): Don't push the target if it is already
4263 pushed.
4264 (nto_native_ops): New global.
4265 (procfs_open): Reimplement.
4266 (procfs_native_open): New function.
4267 (init_procfs_targets): Install procfs_native_open as to_open of
4268 "target native". Store a pointer to the "native" target in
4269 nto_native_ops.
4270 * procfs.c (procfs_attach): Don't push the target if it is already
4271 pushed.
4272 (procfs_detach): Use inf_child_maybe_unpush_target.
4273 (procfs_mourn_inferior): Only unpush the target after mourning the
4274 inferior. Use inf_child_maybe_unpush_target.
4275 (procfs_init_inferior): Don't push the target if it is already
4276 pushed.
4277 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4278 if it is already pushed.
4279
4280 2014-05-21 Pedro Alves <palves@redhat.com>
4281
4282 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4283 and "procfs" targets are now called "native" instead.
4284
4285 2014-05-21 Pedro Alves <palves@redhat.com>
4286
4287 * go32-nat.c (go32_open): Delete.
4288 (go32_target): Don't override the to_open method.
4289
4290 2014-05-21 Pedro Alves <palves@redhat.com>
4291
4292 * nto-procfs.c (procfs_can_run): New function.
4293 (nto_procfs_ops): New global.
4294 (init_procfs_targets): New, based on procfs_target. Install
4295 "target native" in addition to "target procfs".
4296 (_initialize_procfs): Call init_procfs_targets instead of adding
4297 the target here.
4298
4299 2014-05-21 Pedro Alves <palves@redhat.com>
4300
4301 * windows-nat.c (windows_target): Don't override to_shortname,
4302 to_longname or to_doc.
4303
4304 2014-05-21 Pedro Alves <palves@redhat.com>
4305
4306 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4307 to_doc.
4308
4309 2014-05-21 Pedro Alves <palves@redhat.com>
4310
4311 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4312 to_shortname, to_longname or to_doc.
4313
4314 2014-05-21 Pedro Alves <palves@redhat.com>
4315
4316 * go32-nat.c (go32_target): Don't override to_shortname,
4317 to_longname or to_doc.
4318
4319 2014-05-21 Pedro Alves <palves@redhat.com>
4320
4321 * inf-child.c (inf_child_open): Remove mention of "child".
4322 (inf_child_target): Rename target to "native" instead of "child".
4323
4324 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4325
4326 * Makefile.in (SFILES): Delete "regset.c".
4327 (COMMON_OBS): Delete "regset.o".
4328 * regset.c: Remove.
4329 * regset.h (regset_alloc): Delete prototype.
4330
4331 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4332
4333 * sparc-linux-tdep.c (sparc32_linux_gregset)
4334 (sparc32_linux_fpregset): New static regset structures.
4335 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4336 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4337 'fpregset' fields.
4338 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4339 (sparc64_linux_fpregset): New static regset structures.
4340 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4341 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4342 New static regset structures.
4343 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4344 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4345 New static regset structures.
4346 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4347 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4348 New static regset structures.
4349 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4350 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4351 New static regset structures.
4352 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4353
4354 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4355
4356 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4357 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4358 register maps ("regmaps") from "*regset" to "*regmap". Do this
4359 for all regmap types and variables.
4360 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4361 (sparc32_linux_supply_core_gregset)
4362 (sparc32_linux_collect_core_gregset)
4363 (sparc32_linux_supply_core_fpregset)
4364 (sparc32_linux_collect_core_fpregset): Likewise.
4365 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4366 (sparc_gregmap, sparc_fpregmap): ... these.
4367 (sparc_supply_gregset, sparc_collect_gregset)
4368 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4369 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4370 (_initialize_sparc_nat): Rename regmaps.
4371 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4372 (sparc_gregmap, sparc_fpregmap): ... these.
4373 (sparc_supply_gregset, sparc_collect_gregset)
4374 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4375 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4376 Rename macros to...
4377 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4378 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4379 Likewise.
4380 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4381 Rename to...
4382 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4383 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4384 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4385 regmaps.
4386 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4387 (sparc32_bsd_fpregset): Rename to...
4388 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4389 (sparc32_bsd_fpregmap): ... these.
4390 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4391 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4392 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4393 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4394 (struct sparc_gregmap, struct sparc_fpregmap)
4395 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4396 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4397 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4398 (sparc32_supply_regset, sparc32_collect_gregset)
4399 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4400 prototypes.
4401 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4402 (sparc64_linux_ptrace_gregmap): ... this.
4403 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4404 (_initialize_sparc64_linux_nat): Rename regmaps.
4405 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4406 (sparc64_linux_core_gregmap): ... this.
4407 (sparc64_linux_supply_core_gregset)
4408 (sparc64_linux_collect_core_gregset)
4409 (sparc64_linux_supply_core_fpregset)
4410 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4411 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4412 (sparc64_sol2_fpregset): Rename to...
4413 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4414 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4415 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4416 regmaps.
4417 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4418 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4419 (sparc64_bsd_fpregset): Rename to...
4420 (struct sparc_gregmap, sparc64_sol2_gregmap)
4421 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4422 (sparc64_bsd_fpregmap): ... these.
4423 (sparc64_supply_gregset, sparc64_collect_gregset)
4424 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4425 prototypes.
4426 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4427 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4428 (sparc64fbsd_gregmap): ... this.
4429 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4430 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4431 Rename regmaps.
4432 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4433 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4434 (sparc64nbsd_collect_fpregset): Likewise.
4435 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4436 (sparc64nbsd_gregmap): ... this.
4437 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4438 regmaps.
4439 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4440 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4441 (sparc64obsd_gregmap): ... this.
4442 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4443 regmaps.
4444 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4445 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4446 (sparc32nbsd_gregmap): ... this.
4447 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4448 regmaps.
4449
4450 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451
4452 * score-tdep.c (score7_linux_gregset): New static regset
4453 structure.
4454 (score7_linux_regset_from_core_section): Remove dynamic regset
4455 allocation.
4456 (score_gdbarch_init): Drop allocation of tdep structure.
4457 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4458
4459 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4460
4461 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4462 regset structures.
4463 (am33_regset_from_core_section): Remove dynamic regset
4464 allocations.
4465
4466 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4467
4468 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4469 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4470 structures.
4471 (mips_linux_regset_from_core_section): Remove dynamic regset
4472 allocations.
4473 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4474 'gregset64', 'fpregset', and 'fpregset64'.
4475 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4476 deleted tdep fields.
4477
4478 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4479
4480 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4481 regset structures.
4482 (amd64_regset_from_core_section): Remove dynamic regset
4483 allocations.
4484 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4485 structure.
4486 (amd64obsd_regset_from_core_section): Remove dynamic regset
4487 allocation.
4488 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4489 Likewise.
4490 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4491 x86-common regset supply function.
4492 * i386-tdep.c (i386_collect_gregset): Make static.
4493 (i386_gregset): New global regset structure.
4494 (i386_fpregset, i386_xstateregset): New static regset structures.
4495 (i386_regset_from_core_section): Remove dynamic regset
4496 allocations.
4497 (i386_gdbarch_init): Remove initialization of tdep fields
4498 'gregset', 'fpregset', and 'xstateregset'.
4499 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4500 'fpregset', and 'xstateregset'.
4501 (i386_collect_gregset): Remove prototype.
4502 (i386_gregset): New declaration.
4503 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4504 structure.
4505 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4506 allocation.
4507
4508 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4509
4510 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4511 (arm_linux_vfpregset): New static regset structures.
4512 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4513 regset structures.
4514 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4515 and 'vfpregset' fields.
4516
4517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4518
4519 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4520 (aarch64_linux_fpregset): New static regset structures.
4521 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4522 of regset structures.
4523 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4524 'fpregset' fields.
4525
4526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4527
4528 * regset.h (struct regset): Remove gdbarch field.
4529 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4530 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4531 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4532 Likewise.
4533 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4534 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4535 (ppc32_linux_vsxregset): Likewise.
4536 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4537 via the regcache instead of the regset.
4538 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4539 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4540 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4541 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4542 Likewise.
4543
4544 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4545
4546 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4547 Constify structures.
4548 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4549 (alphanbsd_aout_gregset): Likewise.
4550 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4551 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4552 Likewise.
4553 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4554 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4555 Likewise.
4556 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4557 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4558 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4559 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4560 * m88k-tdep.c (m88k_gregset): Likewise.
4561 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4562 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4563 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4564 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4565 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4566 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4567 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4568 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4569 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4570 Likewise.
4571 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4572 * sh-tdep.h (sh_corefile_gregset): Likewise.
4573 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4574 * vax-tdep.c (vax_gregset): Likewise.
4575
4576 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4577
4578 Fix TLS access for -static -pthread.
4579 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4580 (try_thread_db_load_1): Initialize it.
4581 (thread_db_get_thread_local_address): Call it if LM is zero.
4582 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4583 * target.h (struct target_ops) (to_get_thread_local_address): Add
4584 load_module_addr comment.
4585
4586 2014-05-21 Pedro Alves <palves@redhat.com>
4587
4588 * dcache.c (dcache_read_memory_partial): If reading the cache line
4589 fails, fallback to reading just the memory the caller wanted.
4590
4591 2014-05-20 Doug Evans <dje@google.com>
4592
4593 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4594 instead of get_current_arch.
4595
4596 2014-05-20 Pedro Alves <palves@redhat.com>
4597
4598 * NEWS: Mention that compare-sections now works with all targets.
4599
4600 * remote.c (PACKET_qCRC): New enum value.
4601 (remote_verify_memory): Don't send qCRC if the target has no
4602 execution. Use packet_support/packet_ok. If the target doesn't
4603 support the qCRC packet, fallback to a deep memory copy.
4604 (compare_sections_command): Say "target image" instead of "remote
4605 executable".
4606 (_initialize_remote): Add PACKET_qCRC to the list of config
4607 packets that have no associated command. Extend comment.
4608 * target.c (simple_verify_memory, default_verify_memory): New
4609 function.
4610 * target.h (struct target_ops) <to_verify_memory>: Default to
4611 default_verify_memory.
4612 (simple_verify_memory): New declaration.
4613 * target-delegates.c: Regenerate.
4614
4615 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4616
4617 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4618
4619 2014-05-20 Hui Zhu <hui@codesourcery.com>
4620 Yao Qi <yao@codesourcery.com>
4621
4622 PR backtrace/16558
4623 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4624 and change address of sp and pc.
4625
4626 2014-05-19 Tom Tromey <tromey@redhat.com>
4627
4628 * gdbtypes.c (rank_function): Use XNEWVEC.
4629 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4630
4631 2014-05-19 Doug Evans <dje@google.com>
4632
4633 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4634 build_type_unit_groups and moved closer to only caller. Remove
4635 arguments. All references updated. Remove outdated .gdb_index
4636 comment.
4637 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4638 build_type_psymtabs_1.
4639
4640 2014-05-19 Doug Evans <dje@google.com>
4641
4642 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4643 n_type_unit_groups, all_type_unit_groups. All uses removed.
4644 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4645 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4646 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4647 (add_type_unit_group_to_table): Delete.
4648
4649 2014-05-19 Doug Evans <dje@google.com>
4650
4651 * eval.c (evaluate_subexp_standard): Add some comments.
4652
4653 2014-05-17 Doug Evans <xdje42@gmail.com>
4654
4655 * progspace.c (remove_program_space): Delete, unused.
4656 * progspace.h (remove_program_space): Ditto.
4657
4658 2014-05-17 Doug Evans <xdje42@gmail.com>
4659
4660 * inferior.c (prune_inferiors): Fix comment.
4661 (remove_inferior_command): Call prune_program_spaces.
4662
4663 2014-05-16 Doug Evans <dje@google.com>
4664
4665 New command line option -D.
4666 * NEWS: Mention it.
4667 * main.c (set_gdb_data_directory): New function.
4668 (captured_main): Recognize -D. Flag error for --data-directory "".
4669 Call set_gdb_data_directory.
4670 (print_gdb_help): Print --data-directory, -D.
4671 * main.h (set_gdb_data_directory): Declare.
4672 * top.c (staged_gdb_datadir): New static global.
4673 (set_gdb_datadir): Call set_gdb_data_directory
4674 (show_gdb_datadir): New function.
4675 (init_main): Update init of data-directory parameter.
4676
4677 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4678
4679 Import the "dirfd" gnulib module.
4680 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4681 * gnulib/aclocal.m4: Update.
4682 * gnulib/config.in: Update.
4683 * gnulib/configure: Update.
4684 * gnulib/import/Makefile.am: Update.
4685 * gnulib/import/Makefile.in: Update.
4686 * gnulib/import/dirfd.c: New.
4687 * gnulib/import/m4/dirfd.m4: New.
4688 * gnulib/import/m4/gnulib-cache.m4: Update.
4689 * gnulib/import/m4/gnulib-comp.m4: Update.
4690
4691 2014-05-16 Pierre Muller <muller@sourceware.org>
4692 Yao Qi <yao@codesourcery.com>
4693
4694 * valprint.c (print_wchar): Move the code on checking whether
4695 W is a printable wide char to the default branch of switch
4696 statement below. Call wchar_printable instead of gdb_iswprint.
4697
4698 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4699
4700 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4701 ldr.w and ldrd instructions.
4702
4703 2014-05-15 Doug Evans <dje@google.com>
4704
4705 * dwarf2read.c (read_structure_type): Delete outdated comments.
4706
4707 2014-05-14 Tom Tromey <tromey@redhat.com>
4708
4709 * macrocmd.c (print_macro_definition): Reindent.
4710
4711 2014-05-13 Doug Evans <xdje42@gmail.com>
4712
4713 * python/py-cmd.c (cmdpy_completer): Add comment.
4714 (completers): Make const.
4715
4716 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4717
4718 * infrun.c (resume): Remove should_resume (unused). Move up
4719 declaration of resume_ptid.
4720
4721 2014-05-13 Tom Tromey <tromey@redhat.com>
4722
4723 * language.h (unop_type_check): Remove.
4724 (binop_type_check): Don't declare.
4725
4726 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4727
4728 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4729 call to regcache_raw_collect.
4730
4731 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4732
4733 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4734 mi_console->quote as the quoting character.
4735
4736 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4737
4738 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4739
4740 2014-04-29 Tom Tromey <tromey@redhat.com>
4741
4742 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4743 "show debug varobj".
4744
4745 2014-05-07 Kyle McMartin <kyle@redhat.com>
4746
4747 Pushed by Joel Brobecker <brobecker@adacore.com>.
4748 * aarch64-tdep.c (aarch64_software_single_step): New function.
4749 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4750 with aarch64_software_single_step.
4751
4752 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4753
4754 GDB 7.7.1 released.
4755
4756 2014-05-05 Keith Seitz <keiths@redhat.com>
4757
4758 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4759 variable or history value is successfully parsed.
4760
4761 2014-05-05 Yao Qi <yao@codesourcery.com>
4762 Pedro Alves <palves@redhat.com>
4763
4764 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4765 address of blocks that intersects the requested range. Trim
4766 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4767 sections.
4768 * ctf.c (ctf_xfer_partial): Likewise.
4769
4770 2014-05-05 Yao Qi <yao@codesourcery.com>
4771
4772 * printcmd.c (display_command): Remove the check to
4773 target_has_execution.
4774
4775 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4776
4777 * ppcobsd-nat.c: Include "obsd-nat.h".
4778 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4779 add_target.
4780 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4781
4782 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4783
4784 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4785 and 16-bit signed and unsigned arguments. Update comment.
4786 (stap_parse_probe_arguments): Extend code to handle such
4787 arguments. Use warning instead of complaint to notify about
4788 unrecognized bitness.
4789
4790 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4791
4792 PR breakpoints/16889
4793 * stap-probe.c (stap_parse_probe_arguments): Simplify
4794 check for non-prefixed probes (i.e., probes whose
4795 arguments do not start with "N@"). Always set the
4796 argument type to a sane value.
4797
4798 2014-05-01 David Taylor <dtaylor@emc.com>
4799
4800 * remote.c (compare_sections_command): Add -r option to compare
4801 all loadable read-only sections.
4802
4803 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4804
4805 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4806 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4807 Update all callers.
4808 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4809 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4810 Remove unused CORE_ADDR argument. Update all callers.
4811
4812 2014-04-29 Pedro Alves <palves@redhat.com>
4813
4814 * remote.c (struct packet_config) <detect>: Extend comment.
4815 (add_packet_config_cmd): Don't set the config's detect or support
4816 fields here.
4817 (init_all_packet_configs): Also initialize the config's 'detect'
4818 field.
4819 (reset_all_packet_configs_support): New function.
4820 (remote_open_1): Call reset_all_packet_configs_support instead of
4821 init_all_packet_configs.
4822 (_initialize_remote): Initialize all packet configs. Assert that
4823 all packets have an associated command, except a few known
4824 outliers.
4825
4826 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4827
4828 * dwarf2read.c (read_subrange_type): Handle dynamic
4829 DW_AT_lower_bound attributes.
4830
4831 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4832
4833 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4834 dynamic bounds before computing its upper bound.
4835 (ada_discrete_type_low_bound): Same as above with the lower bound.
4836
4837 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4838
4839 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4840 range types. Adjust the array handling implementation to
4841 take advantage of this change.
4842 (resolve_dynamic_range): New function, mostly extracted from
4843 resolve_dynamic_bounds.
4844 (resolve_dynamic_array): New function, mostly extracted from
4845 resolve_dynamic_bounds.
4846 (resolve_dynamic_bounds): Delete.
4847 (resolve_dynamic_type): Reimplement. Add handling of
4848 TYPE_CODE_RANGE types.
4849
4850 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4851
4852 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4853 handling of parallel ___XA types.
4854
4855 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4856
4857 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4858 unnecessary second call to static_unwrap_type.
4859
4860 2014-04-27 Hui Zhu <hui@codesourcery.com>
4861
4862 * stack.c (print_frame_info): Call do_gdb_disassembly with
4863 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4864
4865 2014-04-26 Doug Evans <xdje42@gmail.com>
4866
4867 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4868
4869 2014-04-25 Pedro Alves <palves@redhat.com>
4870
4871 PR server/16255
4872 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4873 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4874 and newline from built string.
4875 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4876 (linux_ptrace_attach_fail_reason): ... this.
4877 * linux-nat.c (linux_nat_attach): Adjust to use
4878 linux_ptrace_attach_fail_reason.
4879
4880 2014-04-25 Pedro Alves <palves@redhat.com>
4881
4882 * remote.c (struct remote_state): Remove multi_process_aware,
4883 non_stop_aware, cond_tracepoints, cond_breakpoints,
4884 breakpoint_commands, fast_tracepoints, static_tracepoints,
4885 install_in_trace, disconnected_tracing,
4886 enable_disable_tracepoints, string_tracing, and
4887 augmented_libraries_svr4_read fields.
4888 (remote_multi_process_p): Move further below in the file.
4889 (struct packet_config): Add comments.
4890 (update_packet_config): Delete function.
4891 (show_packet_config_cmd): Use packet_config_support.
4892 (add_packet_config_cmd): Use NULL as set callback.
4893 (packet_ok): "set remote foo-packet"-style commands no longer
4894 change config->supported -- adjust.
4895 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4896 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4897 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4898 (PACKET_QNonStop, PACKET_multiprocess_feature)
4899 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4900 (PACKET_DisconnectedTracing_feature)
4901 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4902 (set_remote_protocol_packet_cmd): Delete function.
4903 (packet_config_support, packet_support): New functions.
4904 (set_remote_protocol_Z_packet_cmd): Don't call
4905 update_packet_config.
4906 (remote_query_attached, remote_pass_signals)
4907 (remote_program_signals, remote_threads_info)
4908 (remote_threads_extra_info, remote_start_remote): Use
4909 packet_support.
4910 (remote_start_remote): Use packet_config_support and
4911 packet_support.
4912 (init_all_packet_configs): Set all packets to unknown support,
4913 instead of calling update_packet_config.
4914 (remote_check_symbols): Use packet_support.
4915 (remote_supported_packet): Unconditionally set the packet config's
4916 support status.
4917 (remote_multi_process_feature, remote_non_stop_feature)
4918 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4919 (remote_breakpoint_commands_feature)
4920 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4921 (remote_install_in_trace_feature)
4922 (remote_disconnected_tracing_feature)
4923 (remote_enable_disable_tracepoint_feature)
4924 (remote_string_tracing_feature)
4925 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4926 (remote_protocol_features): Adjust to use remote_supported_packet
4927 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4928 "ConditionalTracepoints", "ConditionalBreakpoints",
4929 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4930 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4931 "EnableDisableTracepoints", and "tracenz".
4932 (remote_query_supported): Use packet_support.
4933 (remote_open_1): Adjust.
4934 (extended_remote_attach_1): Use packet_support. Switch on the
4935 result of packet_ok instead of checking whether the packet ended
4936 up disabled.
4937 (remote_vcont_resume): Use packet_support.
4938 (remote_resume, remote_stop_ns, fetch_register_using_p)
4939 (remote_prepare_to_store, store_register_using_P)
4940 (check_binary_download, remote_write_bytes): Use packet_support.
4941 (remote_vkill): Use packet_support. Switch on the result of
4942 packet_ok instead of checking whether the packet ended up
4943 disabled.
4944 (extended_remote_supports_disable_randomization): Use
4945 packet_support.
4946 (extended_remote_run): Switch on the result of packet_ok instead
4947 of checking whether the packet ended up disabled.
4948 (remote_insert_breakpoint, remote_remove_breakpoint)
4949 (remote_insert_watchpoint, remote_remove_watchpoint)
4950 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4951 packet_support.
4952 (remote_search_memory): Use packet_config_support.
4953 (remote_get_thread_local_address, remote_get_tib_address)
4954 (remote_hostio_send_command, remote_can_execute_reverse): Use
4955 packet_support.
4956 (remote_supports_cond_tracepoints)
4957 (remote_supports_cond_breakpoints)
4958 (remote_supports_fast_tracepoints)
4959 (remote_supports_static_tracepoints)
4960 (remote_supports_install_in_trace)
4961 (remote_supports_enable_disable_tracepoint)
4962 (remote_supports_string_tracing)
4963 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4964 the packet config says the feature is enabled or disabled.
4965 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4966 (remote_get_trace_status): Use packet_support.
4967 (remote_set_disconnected_tracing): Adjust to check whether the
4968 feature is enabled with packet_support.
4969 (remote_set_trace_buffer_size, remote_use_agent)
4970 (remote_can_use_agent, remote_supports_btrace): Use
4971 packet_support.
4972 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4973 Use packet_config_support.
4974 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4975 the packet config says the feature is enabled or disabled.
4976 (set_range_stepping): Use packet_support.
4977
4978 2014-04-25 Tom Tromey <tromey@redhat.com>
4979
4980 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4981 argument.
4982
4983 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4984
4985 * NEWS: Mention support for C99 variable length arrays.
4986
4987 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4988
4989 * ada-lang.c (standard_exc): Expand introductory comment.
4990
4991 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4992 Walfred Tedeschi <walfred.tedeschi@intel.com>
4993
4994 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4995 AVX512 registers.
4996 (amd64_linux_read_description): Add code to handle AVX512 xstate
4997 mask and return respective tdesc.
4998 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4999 and features/i386/x32-avx512-linux.c.
5000 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5001 (amd64_linux_core_read_description): Add code to handle AVX512
5002 xstate mask and return respective tdesc.
5003 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5004 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5005 calculation.
5006 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5007 (tdesc_amd64_avx512_linux): New prototype.
5008 (tdesc_x32_avx512_linux): Likewise.
5009 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5010 features/i386/x32-avx512.c.
5011 (amd64_ymm_avx512_names): New register names for pseudo
5012 registers YMM16-31.
5013 (amd64_ymmh_avx512_names): New register names for raw registers
5014 YMMH16-31.
5015 (amd64_k_names): New register names for K registers.
5016 (amd64_zmmh_names): New register names for ZMM raw registers.
5017 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5018 (amd64_xmm_avx512_names): New register names for XMM16-31
5019 registers.
5020 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5021 registers.
5022 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5023 if feature is present.
5024 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5025 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5026 (AMD64_NUM_REGS): Adjust to new number of registers.
5027 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5028 registers supplied via XSTATE by AVX512 registers.
5029 (i386_linux_read_description): Add case for AVX512.
5030 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5031 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5032 (i386_linux_core_read_description): Add case for AVX512.
5033 (i386_linux_init_abi): Install supported register note section
5034 for AVX512.
5035 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5036 AVX512.
5037 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5038 registers to be number of zmm7h + 1.
5039 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5040 * i386-tdep.c: Include features/i386/i386-avx512.c.
5041 (i386_zmm_names): Add ZMM pseudo register names array.
5042 (i386_zmmh_names): Add ZMM raw register names array.
5043 (i386_k_names): Add K raw register names array.
5044 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5045 registers. AVX512 has 16 more ZMM registers than there are YMM
5046 registers.
5047 (i386_zmmh_regnum_p): Add function to look up register number of
5048 ZMM raw registers.
5049 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5050 (i386_k_regnum_p): Likewise for K raw registers.
5051 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5052 registers added by AVX512.
5053 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5054 registers added by AVX512.
5055 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5056 added by AVX512.
5057 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5058 (i386_pseudo_register_name): Add ZMM pseudo registers.
5059 (i386_zmm_type): Construct and return vector registers type for ZMM
5060 registers.
5061 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5062 ZMM0-31 pseudo registers and K registers.
5063 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5064 and YMM16-31 registers from register cache.
5065 (i386_pseudo_register_write): Add code to write K, ZMM and
5066 YMM16-31 registers.
5067 (i386_register_reggroup_p): Add code to include/exclude AVX512
5068 registers in/from respective register groups.
5069 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5070 registers if feature is present in xcr0.
5071 (i386_gdbarch_init): Add code to initialize AVX512 feature
5072 variables in tdep structure, wire in pseudo registers and call
5073 initialize_tdesc_i386_avx512.
5074 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5075 variables.
5076 (i386_regnum): Add AVX512 registers.
5077 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5078 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5079 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5080 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5081 512 bits wide.
5082 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5083 (i386_ymm_avx512_regnum_p): Likewise.
5084 (i386_k_regnum_p): Likewise.
5085 (i386_zmm_regnum_p): Likewise.
5086 (i386_zmmh_regnum_p): Likewise.
5087 * i387-tdep.c : Update year in copyright notice.
5088 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5089 XSAVE buffer.
5090 (XSAVE_YMM_AVX512_ADDR): New macro.
5091 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5092 XSAVE buffer.
5093 (XSAVE_XMM_AVX512_ADDR): New macro.
5094 (xsave_avx512_k_offset): New table for K register offsets in
5095 XSAVE buffer.
5096 (XSAVE_AVX512_K_ADDR): New macro.
5097 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5098 in XSAVE buffer.
5099 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5100 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5101 buffer.
5102 (i387_collect_xsave): Add code to collect AVX512 registers from
5103 XSAVE buffer.
5104 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5105 of XMM16-31 registers.
5106 (I387_NUM_K_REGS): New define for number of K registers.
5107 (I387_K0_REGNUM): New define for K0 register number.
5108 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5109 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5110 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5111 registers.
5112 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5113 (I387_XMM16_REGNUM): New define for XMM16 register number.
5114 (I387_YMM0_REGNUM): New define for YMM0 register number.
5115 (I387_KEND_REGNUM): New define for last K register number.
5116 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5117 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5118 number.
5119 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5120 number.
5121 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5122 size.
5123 * features/Makefile: Add AVX512 related files.
5124 * features/i386/32bit-avx512.xml: New file.
5125 * features/i386/64bit-avx512.xml: Likewise.
5126 * features/i386/amd64-avx512-linux.c: Likewise.
5127 * features/i386/amd64-avx512-linux.xml: Likewise.
5128 * features/i386/amd64-avx512.c: Likewise.
5129 * features/i386/amd64-avx512.xml: Likewise.
5130 * features/i386/i386-avx512-linux.c: Likewise.
5131 * features/i386/i386-avx512-linux.xml: Likewise.
5132 * features/i386/i386-avx512.c: Likewise.
5133 * features/i386/i386-avx512.xml: Likewise.
5134 * features/i386/x32-avx512-linux.c: Likewise.
5135 * features/i386/x32-avx512-linux.xml: Likewise.
5136 * features/i386/x32-avx512.c: Likewise.
5137 * features/i386/x32-avx512.xml: Likewise.
5138 * regformats/i386/amd64-avx512-linux.dat: New file.
5139 * regformats/i386/amd64-avx512.dat: Likewise.
5140 * regformats/i386/i386-avx512-linux.dat: Likewise.
5141 * regformats/i386/i386-avx512.dat: Likewise.
5142 * regformats/i386/x32-avx512-linux.dat: Likewise.
5143 * regformats/i386/x32-avx512.dat: Likewise.
5144 * NEWS: Add note about new support for AVX512.
5145
5146
5147 2014-04-23 Pedro Alves <palves@redhat.com>
5148
5149 * breakpoint.c (insert_bp_location): Tolerate errors if the
5150 breakpoint is set in a user-loaded objfile.
5151 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5152 location is marked shlib_disabled. If the breakpoint is set in a
5153 user-loaded objfile is a GDB-side memory breakpoint, validate it
5154 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5155 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5156 flag.
5157 * mem-break.c (memory_validate_breakpoint): New function.
5158 * objfiles.c (userloaded_objfile_contains_address_p): New
5159 function.
5160 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5161 * target.h (memory_validate_breakpoint): New declaration.
5162
5163 2014-04-23 Pedro Alves <palves@redhat.com>
5164
5165 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5166 the breakpoint is set in a shared library, only suppress
5167 errors for software breakpoints, not hardware breakpoints.
5168
5169 2014-04-22 Pedro Alves <palves@redhat.com>
5170
5171 * infrun.c (schedlock_applies): New function, factored out from
5172 find_thread_needs_step_over.
5173 (find_thread_needs_step_over): Use it.
5174 (switch_back_to_stepped_thread): Always clear trap_expected if the
5175 step over is finished. Return early if scheduler locking applies.
5176 Look for the stepping thread and a potential step-over thread with
5177 a single loop.
5178 (currently_stepping_or_nexting_callback): Delete.
5179
5180 2014-04-22 Nick Clifton <nickc@redhat.com>
5181
5182 * NEWS: Mention that ARM sim now supports tracing.
5183
5184 2014-04-22 Yao Qi <yao@codesourcery.com>
5185
5186 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5187 to ...
5188 * tracefile.c (tracefile_fetch_registers): ... it. New
5189 function.
5190 * tracefile.h (tracefile_fetch_registers): Declare.
5191 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5192 tracefile_fetch_registers.
5193
5194 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5195
5196 PR gdb/14018
5197 * windows-nat.c (thread_rec): Don't display a warning when
5198 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5199 fails for any reason, set th->suspended to -1, so that we don't
5200 try to resume such a thread. Also, don't return NULL in these
5201 cases, to avoid completely ruin the session due to "PC register is
5202 not available" error.
5203 (do_windows_fetch_inferior_registers): Check errors in
5204 GetThreadContext call.
5205 (windows_continue): Accept an additional argument KILLED; if not
5206 zero, ignore errors in the SetThreadContext call, since the
5207 inferior was killed and is shutting down.
5208 (windows_resume, get_windows_debug_event)
5209 (windows_create_inferior, windows_mourn_inferior)
5210 (windows_kill_inferior): All callers of windows_continue changed
5211 to adjust to its new calling sequence.
5212
5213 2014-04-19 Yao Qi <yao@codesourcery.com>
5214
5215 * ctf.c (ctf_open): Call post_create_inferior.
5216
5217 2014-04-19 Yao Qi <yao@codesourcery.com>
5218
5219 * ctf.c (handle_id): New static variable.
5220 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5221 value. Get the declaration of event "register" and get length
5222 of field "contents".
5223
5224 2014-04-19 Yao Qi <yao@codesourcery.com>
5225
5226 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5227
5228 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5229
5230 * valops.c (oload_method_static): Remove unnecessary argument
5231 METHOD. Update all callers.
5232
5233 2014-04-18 Pedro alves <palves@redhat.com>
5234 Tom Tromey <tromey@redhat.com>
5235
5236 PR backtrace/15558
5237 * frame.c (get_prev_frame_1): Rename to ...
5238 (get_prev_frame_always): ... this, and make extern. Adjust.
5239 (skip_artificial_frames): Use get_prev_frame_always.
5240 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5241 (get_frame_unwind_stop_reason): Adjust to rename.
5242 * frame.h (get_prev_frame_always): Declare.
5243 * inline-frame.c: Include frame.h.
5244 (inline_frame_this_id): Use get_prev_frame_always.
5245
5246 2014-04-18 Tristan Gingold <gingold@adacore.com>
5247
5248 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5249 code by using bfd_mach_o_get_base_address.
5250
5251 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5252
5253 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5254 (spu_ax_pseudo_register_collect): New function.
5255 (spu_ax_pseudo_register_push_stack): Likewise.
5256 (spu_dwarf_reg_to_regnum): Likewise.
5257 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5258
5259 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5260
5261 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5262 Replace FRAME argument with FRAME_ID.
5263 * gdbarch.c, gdbarch.h: Regenerate.
5264 * findvar.c (default_value_from_register): Add GDBARCH argument;
5265 replace FRAME by FRAME_ID. No longer call get_frame_id.
5266 (value_from_register): Update call to gdbarch_value_from_register.
5267 * value.h (default_value_from_register): Update prototype.
5268 * s390-linux-tdep.c (s390_value_from_register): Update interface
5269 and call to default_value_from_register.
5270 * spu-tdep.c (spu_value_from_register): Likewise.
5271
5272 * findvar.c (address_from_register): Remove TYPE argument.
5273 Do not call value_from_register; use gdbarch_value_from_register
5274 with null_frame_id instead.
5275 * value.h (address_from_register): Update prototype.
5276 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5277 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5278 address_from_register interface change.
5279
5280 2014-04-17 Yao Qi <yao@codesourcery.com>
5281
5282 * gdbtypes.h: Update comments to link to types and macros'
5283 definitions.
5284
5285 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5286
5287 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5288
5289 2014-04-16 Keith Seitz <keiths@redhat.com>
5290
5291 PR gdb/15827
5292 * dwarf2read.c (skip_one_die): Check that all relative-offset
5293 sibling DIEs fall within range of the current reader's buffer.
5294 (read_partial_die): Likewise.
5295
5296 2014-04-16 Keith Seitz <keiths@redhat.com>
5297
5298 PR c++/16597
5299 * cp-namespace.c (lookup_symbol_file): If the type name of
5300 `this' is NULL, return immediately.
5301
5302 2014-04-14 Keith Seitz <keiths@redhat.com>
5303
5304 PR c++/16253
5305 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5306 from symbol_matches_domain in symtab.c. All local callers
5307 of symbol_matches_domain updated.
5308 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5309 search STRUCT_DOMAIN.
5310 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5311 independently. standard_lookup will do that automatically.
5312 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5313 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5314 (cp_lookup_symbol_in_namespace): Likewise.
5315 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5316 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5317 may return a STRUCT_DOMAIN match.
5318 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5319 * cp-support.c: Include language.h.
5320 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5321 VAR_DOMAIN.
5322 * psymtab.c (match_partial_symbol): Compare the requested
5323 domain with the symbol's domain directly.
5324 (lookup_partial_symbol): Likewise.
5325 * symtab.c (lookup_symbol_in_language): Explain when/why
5326 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5327 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5328 appropriate languages.
5329 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5330 and moved to ada-lang.c
5331 (lookup_block_symbol): Explain that this function only returns
5332 symbol matching the requested DOMAIN.
5333 Compare the requested domain with the symbol's domain directly.
5334 (iterate_over_symbols): Compare the requested domain with the
5335 symbol's domain directly.
5336 * symtab.h (symbol_matches_domain): Remove.
5337
5338 2014-04-14 Tom Tromey <tromey@redhat.com>
5339
5340 PR c++/15246:
5341 * c-exp.y (type_aggregate_p): New function.
5342 (qualified_name, classify_inner_name): Use it.
5343 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5344 and TYPE_TARGET_TYPE of an enum type.
5345 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5346 an enum type.
5347 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5348 handle TYPE_DECLARED_CLASS.
5349 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5350 types.
5351 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5352 * valops.c (enum_constant_from_type): New function.
5353 (value_aggregate_elt): Use it.
5354 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5355 TYPE_CODE_ENUM.
5356
5357 2014-04-14 Tom Tromey <tromey@redhat.com>
5358
5359 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5360 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5361 const.
5362 * value.h (value_aggregate_elt): Update.
5363
5364 2014-04-14 Tom Tromey <tromey@redhat.com>
5365
5366 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5367
5368 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5369
5370 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5371 (evaluate_subexp_standard): Pass noside argument.
5372 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5373 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5374 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5375 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5376 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5377
5378 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5379
5380 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5381 points to a constant blob.
5382
5383 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5384
5385 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5386 property and store it as the high bound and flag the range accordingly.
5387 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5388 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5389 * gdbtypes.h (enum range_flags): New enum.
5390 (struct range_bounds): Add flags member.
5391
5392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5393
5394 * c-typeprint.c (c_type_print_varspec_suffix): Added
5395 check for not yet resolved high bound. If unresolved, print
5396 "variable length" string to the console instead of random
5397 length.
5398
5399 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5400
5401 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5402 value.
5403 (ada_template_to_fixed_record_type_1): Likewise.
5404 (ada_to_fixed_type_1): Likewise.
5405 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5406 (cp_print_value): Likewise.
5407 * d-valprint.c (dynamic_array_type): Likewise.
5408 * findvar.c (address_of_variable): Likewise.
5409 * jv-valprint.c (java_value_print): Likewise.
5410 * valops.c (value_ind): Likewise.
5411 * value.c (coerce_ref): Likewise.
5412
5413 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5414
5415 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5416 value and retrieve the dynamic type size.
5417
5418 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5419
5420 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5421 passed to sizeof is dynamic evaluate the argument to compute the length.
5422
5423 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5424 Joel Brobecker <brobecker@adacore.com>
5425
5426 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5427 (dwarf2_evaluate_property): New function.
5428 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5429 * dwarf2read.c (attr_to_dynamic_prop): New function.
5430 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5431 attribute.
5432 * gdbtypes.c: Include dwarf2loc.h.
5433 (is_dynamic_type): New function.
5434 (resolve_dynamic_type): New function.
5435 (resolve_dynamic_bounds): New function.
5436 (get_type_length): New function.
5437 (check_typedef): Use get_type_length to compute type length.
5438 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5439 (TYPE_LOW_BOUND_KIND): New macro.
5440 (is_dynamic_type): New function prototype.
5441 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5442 to resolve dynamic properties of the type. Update comment.
5443 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5444
5445 2014-04-14 Richard Henderson <rth@redhat.com>
5446
5447 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5448
5449 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5450 Doug Evans <xdje42@gmail.com>
5451
5452 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5453 dereference TYPE_CODE_REF values.
5454
5455 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5456
5457 Revert the following changes due to regressions:
5458
5459 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5460 (dwarf2_evaluate_property): New function.
5461 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5462 * dwarf2read.c (attr_to_dynamic_prop): New function.
5463 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5464 attribute.
5465 * gdbtypes.c: Include dwarf2loc.h.
5466 (is_dynamic_type): New function.
5467 (resolve_dynamic_type): New function.
5468 (resolve_dynamic_bounds): New function.
5469 (get_type_length): New function.
5470 (check_typedef): Use get_type_length to compute type length.
5471 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5472 (TYPE_LOW_BOUND_KIND): New macro.
5473 (is_dynamic_type): New function prototype.
5474 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5475 to resolve dynamic properties of the type. Update comment.
5476 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5477
5478 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5479 passed to sizeof is dynamic evaluate the argument to compute the length.
5480
5481 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5482 value and retrieve the dynamic type size.
5483
5484 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5485 (ada_template_to_fixed_record_type_1): Likewise.
5486 (ada_to_fixed_type_1): Likewise.
5487 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5488 (cp_print_value): Likewise.
5489 * d-valprint.c (dynamic_array_type): Likewise.
5490 * eval.c (evaluate_subexp_with_coercion): Likewise.
5491 * findvar.c (address_of_variable): Likewise.
5492 * jv-valprint.c (java_value_print): Likewise.
5493 * valops.c (value_ind): Likewise.
5494 * value.c (coerce_ref): Likewise.
5495
5496 * c-typeprint.c (c_type_print_varspec_suffix): Added
5497 check for not yet resolved high bound. If unresolved, print
5498 "variable length" string to the console instead of random
5499 length.
5500
5501 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5502 property and store it as the high bound and flag the range accordingly.
5503 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5504 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5505 * gdbtypes.h (enum range_flags): New enum.
5506 (struct range_bounds): Add flags member.
5507
5508 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5509 points to a constant blob.
5510
5511 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5512 (evaluate_subexp_standard): Pass noside argument.
5513 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5514 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5515 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5516 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5517 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5518
5519 2014-04-11 Keith Seitz <keiths@redhat.com>
5520
5521 PR c++/16675
5522 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5523 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5524 reference types.
5525
5526 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5527
5528 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5529 (evaluate_subexp_standard): Pass noside argument.
5530 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5531 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5532 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5533 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5534 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5535
5536 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5537
5538 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5539 points to a constant blob.
5540
5541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5542
5543 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5544 property and store it as the high bound and flag the range accordingly.
5545 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5546 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5547 * gdbtypes.h (enum range_flags): New enum.
5548 (struct range_bounds): Add flags member.
5549
5550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5551
5552 * c-typeprint.c (c_type_print_varspec_suffix): Added
5553 check for not yet resolved high bound. If unresolved, print
5554 "variable length" string to the console instead of random
5555 length.
5556
5557 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5558
5559 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5560 (ada_template_to_fixed_record_type_1): Likewise.
5561 (ada_to_fixed_type_1): Likewise.
5562 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5563 (cp_print_value): Likewise.
5564 * d-valprint.c (dynamic_array_type): Likewise.
5565 * eval.c (evaluate_subexp_with_coercion): Likewise.
5566 * findvar.c (address_of_variable): Likewise.
5567 * jv-valprint.c (java_value_print): Likewise.
5568 * valops.c (value_ind): Likewise.
5569 * value.c (coerce_ref): Likewise.
5570
5571 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5572
5573 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5574 value and retrieve the dynamic type size.
5575
5576 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5577
5578 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5579 passed to sizeof is dynamic evaluate the argument to compute the length.
5580
5581 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5582
5583 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5584 (dwarf2_evaluate_property): New function.
5585 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5586 * dwarf2read.c (attr_to_dynamic_prop): New function.
5587 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5588 attribute.
5589 * gdbtypes.c: Include dwarf2loc.h.
5590 (is_dynamic_type): New function.
5591 (resolve_dynamic_type): New function.
5592 (resolve_dynamic_bounds): New function.
5593 (get_type_length): New function.
5594 (check_typedef): Use get_type_length to compute type length.
5595 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5596 (TYPE_LOW_BOUND_KIND): New macro.
5597 (is_dynamic_type): New function prototype.
5598 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5599 to resolve dynamic properties of the type. Update comment.
5600 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5601
5602 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5603
5604 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5605 declaring high/low bounds and change uses accordingly. Call
5606 create_range_type instead of create_static_range_type.
5607 * gdbtypes.c (create_range_type): New function.
5608 (create_range_type): Convert bounds into struct bound_prop and pass
5609 them to create_range_type.
5610 * gdbtypes.h (struct bound_prop): New struct.
5611 (create_range_type): New function prototype.
5612 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5613 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5614 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5615 part of the bound.
5616 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5617
5618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5619
5620 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5621 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5622 * ada-lang.c: All uses of create_range_type updated.
5623 * coffread.c: All uses of create_range_type updated.
5624 * dwarf2read.c: All uses of create_range_type updated.
5625 * f-exp.y: All uses of create_range_type updated.
5626 * m2-valprint.c: All uses of create_range_type updated.
5627 * mdebugread.c: All uses of create_range_type updated.
5628 * stabsread.c: All uses of create_range_type updated.
5629 * valops.c: All uses of create_range_type updated.
5630 * valprint.c: All uses of create_range_type updated.
5631
5632 2014-04-10 Pedro Alves <palves@redhat.com>
5633
5634 * breakpoint.c (single_step_breakpoints)
5635 (single_step_gdbarch): Move up in the file.
5636 (one_breakpoint_xfer_memory): New function, factored out from ...
5637 (breakpoint_xfer_memory): ... here. Also process single-step
5638 breakpoints.
5639
5640 2014-04-09 Tristan Gingold <gingold@adacore.com>
5641
5642 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5643 comments.
5644 (darwin_decode_exception_message): Free port only after use.
5645
5646 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5647
5648 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5649 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5650 when setting the size of call_length.
5651
5652 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5653
5654 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5655 dereference TYPE_CODE_REF values.
5656
5657 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5658
5659 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5660 end of warning message.
5661
5662 2014-04-03 Doug Evans <dje@google.com>
5663
5664 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5665 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5666
5667 2014-04-02 Alan Modra <amodra@gmail.com>
5668
5669 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5670 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5671 (struct symbol_file_add_from_memory_args): Add size field.
5672 (find_vdso_size): New function.
5673 (add_vsyscall_page): Attempt to find vdso size.
5674
5675 2014-04-01 Doug Evans <dje@google.com>
5676
5677 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5678
5679 2014-04-01 Tristan Gingold <gingold@adacore.com>
5680
5681 * darwin-nat.c (darwin_encode_reply): Add prototype.
5682 (darwin_decode_exception_message): Reply to unknown inferiors.
5683 (darwin_decode_message): Handle message by id. Ignore message
5684 to unknown inferior.
5685 (darwin_wait): Discard unknown messages, add debug trace.
5686
5687 2014-03-31 Doug Evans <dje@google.com>
5688
5689 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5690 comp_dir_string.
5691
5692 2014-03-31 Doug Evans <dje@google.com>
5693
5694 New option "set print symbol-loading".
5695 * NEWS: Mention it.
5696 * solib.c (solib_read_symbols): Only print symbol loading messages
5697 if requested.
5698 (solib_add): If symbol loading is in "brief" mode, notify user
5699 symbols are being loaded.
5700 (reload_shared_libraries_1): Ditto.
5701 * symfile.c (print_symbol_loading_off): New static global.
5702 (print_symbol_loading_brief): New static global.
5703 (print_symbol_loading_full): New static global.
5704 (print_symbol_loading_enums): New static global.
5705 (print_symbol_loading): New static global.
5706 (print_symbol_loading_p): New function.
5707 (symbol_file_add_with_addrs): Only print symbol loading messages
5708 if requested.
5709 (_initialize_symfile): Register "print symbol-loading" set/show
5710 command.
5711 * symfile.h (print_symbol_loading_p): Declare.
5712
5713 2014-03-30 Doug Evans <xdje42@gmail.com>
5714
5715 * infrun.c (set_last_target_status): New function.
5716 (handle_inferior_event): Call it.
5717
5718 2014-03-30 Doug Evans <xdje42@gmail.com>
5719
5720 * inferior.h (enum stop_kind): Improve comment.
5721
5722 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5723
5724 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5725 a reference, strip the reference layer before calling
5726 the lang_ops value_has_mutated callback.
5727
5728 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5729
5730 Remove some globals from our parser.
5731 * language.c (unk_lang_parser): Add "struct parser_state"
5732 argument.
5733 * language.h (struct language_defn) <la_parser>: Likewise.
5734 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5735 (initialize_expout): Add "struct parser_state" argument.
5736 Rewrite function to use the parser state.
5737 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5738 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5739 write_exp_elt_longcst, write_exp_elt_dblcst,
5740 write_exp_elt_decfloatcst, write_exp_elt_type,
5741 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5742 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5743 write_dollar_variable): Likewise.
5744 (parse_exp_in_context_1): Use parser state.
5745 (insert_type_address_space): Add "struct parser_state" argument.
5746 Use parser state.
5747 (increase_expout_size): New function.
5748 * parser-defs.h: Forward declare "struct language_defn" and
5749 "struct parser_state".
5750 (expout, expout_size, expout_ptr): Remove extern declarations.
5751 (parse_gdbarch, parse_language): Rewrite macro declarations to
5752 accept the parser state.
5753 (struct parser_state): New struct.
5754 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5755 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5756 write_exp_elt_decfloatcst, write_exp_elt_type,
5757 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5758 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5759 write_exp_msymbol, write_dollar_variable,
5760 mark_struct_expression, insert_type_address_space): Add "struct
5761 parser_state" argument.
5762 (increase_expout_size): New function.
5763 * utils.c (do_clear_parser_state): New function.
5764 (make_cleanup_clear_parser_state): Likewise.
5765 * utils.h (make_cleanup_clear_parser_state): New function
5766 prototype.
5767 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5768 Update calls to write_exp* in order to pass the parser state.
5769 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5770 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5771 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5772 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5773 * stap-probe.c (stap_parse_register_operand): Likewise.
5774 (stap_parse_single_operand): Likewise.
5775 (stap_parse_argument_1): Likewise.
5776 (stap_parse_argument): Use parser state.
5777 * stap-probe.h: Include "parser-defs.h".
5778 (struct stap_parse_info) <pstate>: New field.
5779 * c-exp.y (parse_type): Rewrite to use parser state.
5780 (yyparse): Redefine to c_parse_internal.
5781 (pstate): New global variable.
5782 (parse_number): Add "struct parser_state" argument.
5783 (write_destructor_name): Likewise.
5784 (type_exp): Update calls to write_exp* and similars in order to
5785 use parser state.
5786 (exp1, exp, variable, qualified_name, space_identifier,
5787 typename, typebase): Likewise.
5788 (write_destructor_name, parse_number, lex_one_token,
5789 classify_name, classify_inner_name, c_parse): Add "struct
5790 parser_state" argument. Update function to use parser state.
5791 * c-lang.h: Forward declare "struct parser_state".
5792 (c_parse): Add "struct parser_state" argument.
5793 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5794 (yyparse): Redefine macro to ada_parse_internal.
5795 (pstate): New variable.
5796 (write_int, write_object_renaming, write_var_or_type,
5797 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5798 type_int, type_long, type_long_long, type_float, type_double,
5799 type_long_double, type_char, type_boolean, type_system_address):
5800 Add "struct parser_state" argument.
5801 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5802 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5803 var_or_type, aggregate, aggregate_component_list,
5804 positional_list, others, component_group,
5805 component_associations): Update calls to write_exp* and similar
5806 functions in order to use parser state.
5807 (ada_parse, write_var_from_sym, write_int,
5808 write_exp_op_with_string, write_object_renaming,
5809 find_primitive_type, write_selectors, write_ambiguous_var,
5810 write_var_or_type, write_name_assoc, type_int, type_long,
5811 type_long_long, type_float, type_double, type_long_double,
5812 type_char, type_boolean, type_system_address): Add "struct
5813 parser_state" argument. Adjust function to use parser state.
5814 * ada-lang.c (parse): Likewise.
5815 * ada-lang.h: Forward declare "struct parser_state".
5816 (ada_parse): Add "struct parser_state" argument.
5817 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5818 calls to both functions.
5819 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5820 parser state.
5821 (yyparse): Redefine macro to f_parse_internal.
5822 (pstate): New variable.
5823 (parse_number): Add "struct parser_state" argument.
5824 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5825 and similars in order to use parser state.
5826 (parse_number): Adjust code to use parser state.
5827 (yylex): Likewise.
5828 (f_parse): New function.
5829 * f-lang.h: Forward declare "struct parser_state".
5830 (f_parse): Add "struct parser_state" argument.
5831 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5832 parser state.
5833 (yyparse): Redefine macro for java_parse_internal.
5834 (pstate): New variable.
5835 (push_expression_name, push_expression_name, insert_exp): Add
5836 "struct parser_state" argument.
5837 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5838 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5839 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5840 PostIncrementExpression, PostDecrementExpression,
5841 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5842 UnaryExpressionNotPlusMinus, CastExpression,
5843 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5844 RelationalExpression, EqualityExpression, AndExpression,
5845 ExclusiveOrExpression, InclusiveOrExpression,
5846 ConditionalAndExpression, ConditionalOrExpression,
5847 ConditionalExpression, Assignment, LeftHandSide): Update
5848 calls to write_exp* and similars in order to use parser state.
5849 (parse_number): Ajust code to use parser state.
5850 (yylex): Likewise.
5851 (java_parse): New function.
5852 (push_variable): Add "struct parser_state" argument. Adjust
5853 code to user parser state.
5854 (push_fieldnames, push_qualified_expression_name,
5855 push_expression_name, insert_exp): Likewise.
5856 * jv-lang.h: Forward declare "struct parser_state".
5857 (java_parse): Add "struct parser_state" argument.
5858 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5859 parser state.
5860 (yyparse): Redefine macro to m2_parse_internal.
5861 (pstate): New variable.
5862 (type_exp, exp, fblock, variable, type): Update calls to
5863 write_exp* and similars to use parser state.
5864 (yylex): Likewise.
5865 (m2_parse): New function.
5866 * m2-lang.h: Forward declare "struct parser_state".
5867 (m2_parse): Add "struct parser_state" argument.
5868 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5869 * objc-lang.h: Forward declare "struct parser_state".
5870 (end_msglist): Add "struct parser_state" argument.
5871 * p-exp.y (parse_type): Rewrite macro to use parser state.
5872 (yyparse): Redefine macro to pascal_parse_internal.
5873 (pstate): New variable.
5874 (parse_number): Add "struct parser_state" argument.
5875 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5876 write_exp* and similars in order to use parser state.
5877 (parse_number, yylex): Adjust code to use parser state.
5878 (pascal_parse): New function.
5879 * p-lang.h: Forward declare "struct parser_state".
5880 (pascal_parse): Add "struct parser_state" argument.
5881 * go-exp.y (parse_type): Rewrite macro to use parser state.
5882 (yyparse): Redefine macro to go_parse_internal.
5883 (pstate): New variable.
5884 (parse_number): Add "struct parser_state" argument.
5885 (type_exp, exp1, exp, variable, type): Update calls to
5886 write_exp* and similars in order to use parser state.
5887 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5888 to use parser state.
5889 (go_parse): Likewise.
5890 * go-lang.h: Forward declare "struct parser_state".
5891 (go_parse): Add "struct parser_state" argument.
5892
5893 2014-03-27 Doug Evans <dje@google.com>
5894
5895 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5896
5897 2014-03-27 Doug Evans <dje@google.com>
5898
5899 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5900 Remove argument abbrev_section. All callers updated.
5901
5902 2014-03-27 Doug Evans <dje@google.com>
5903
5904 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5905 addr_base, ranges_base.
5906
5907 2014-03-26 Keith Seitz <keiths@redhat.com>
5908
5909 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5910 types, not VAR_DOMAIN.
5911
5912 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5913
5914 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5915 "ra" registers.
5916 * features/nios2-linux.c: Regenerated.
5917 * features/nios2.c: Regenerated.
5918
5919 2014-03-25 Pedro Alves <palves@redhat.com>
5920
5921 * cli/cli-script.c (script_from_file): Force the interpreter to
5922 sync mode.
5923
5924 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5925
5926 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5927 small stack allocation.
5928
5929 2014-03-24 Tristan Gingold <gingold@adacore.com>
5930
5931 * darwin-nat.c (exc_server): Remove unused prototype.
5932 (darwin_dump_message): Correctly display data on x86_64.
5933 (darwin_encode_reply): Fix style.
5934 Add comments and fix indentation.
5935
5936 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5937
5938 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5939
5940 2014-03-22 Doug Evans <xdje42@gmail.com>
5941
5942 * infcmd.c: Whitespace fixes.
5943 (interrupt_command): Merge two function comments into one.
5944
5945 2014-03-22 Doug Evans <xdje42@gmail.com>
5946
5947 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5948 All uses updated.
5949
5950 2014-03-22 Yao Qi <yao@codesourcery.com>
5951
5952 * remote.c (target_read_live_memory): Remove.
5953 (memory_xfer_live_readonly_partial): Rename it to
5954 remote_xfer_live_readonly_partial. Remove argument 'object'.
5955 All callers updated. Call remote_read_bytes_1
5956 instead of target_read_live_memory.
5957 * tracepoint.c (set_traceframe_number): Remove.
5958 (make_cleanup_restore_traceframe_number): Likewise .
5959 * tracepoint.h (set_traceframe_number): Remove declaration.
5960 (make_cleanup_restore_traceframe_number): Likewise.
5961
5962 2014-03-22 Yao Qi <yao@codesourcery.com>
5963
5964 * remote.c (remote_read_bytes): Move code on reading from the
5965 remote stub to ...
5966 (remote_read_bytes_1): ... here. New function.
5967
5968 2014-03-22 Yao Qi <yao@codesourcery.com>
5969
5970 * ctf.c (ctf_xfer_partial): Check the return value of
5971 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5972 return TARGET_XFER_UNAVAILABLE.
5973 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5974 * target.c (target_read_live_memory): Move it to remote.c.
5975 (memory_xfer_live_readonly_partial): Likewise.
5976 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5977 * remote.c (target_read_live_memory): Moved from target.c.
5978 (memory_xfer_live_readonly_partial): Likewise.
5979 (remote_read_bytes): Factored out from
5980 memory_xfer_partial_1.
5981
5982 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5983
5984 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5985 NULL pointer.
5986
5987 2014-03-21 Pedro Alves <palves@redhat.com>
5988
5989 * infrun.c (normal_stop): Extend comment.
5990
5991 2014-03-21 Hui Zhu <hui@codesourcery.com>
5992 Pedro Alves <palves@redhat.com>
5993
5994 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5995 static buffer.
5996 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5997 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5998 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5999
6000 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6001
6002 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6003 `z' formatted output modifier.
6004
6005 2014-03-20 Tom Tromey <tromey@redhat.com>
6006 Sergio Durigan Junior <sergiodj@redhat.com>
6007
6008 * probe.c (parse_probes): Turn assert into an ordinary error.
6009 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6010 exceptions when parsing probes. Rearrange the code for clarity.
6011
6012 2014-03-20 Tom Tromey <tromey@redhat.com>
6013
6014 PR gdb/14135
6015 * top.c (execute_command): Only dispatch events if the command
6016 started the target.
6017
6018 2014-03-20 Tom Tromey <tromey@redhat.com>
6019
6020 PR cli/15718
6021 * infcall.c: Include event-top.h.
6022 (run_inferior_call): Call async_disable_stdin if needed.
6023
6024 2014-03-20 Pedro Alves <palves@redhat.com>
6025
6026 * infrun.c (prepare_to_proceed): Delete.
6027 (thread_still_needs_step_over): New function.
6028 (find_thread_needs_step_over): New function.
6029 (proceed): If the current thread needs a step-over, set its
6030 steping_over_breakpoint flag. Adjust to use
6031 find_thread_needs_step_over instead of prepare_to_proceed.
6032 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6033 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6034 breakpoint.
6035 (switch_back_to_stepped_thread): Step over breakpoints of all
6036 threads not the stepping thread, before switching back to the
6037 stepping thread.
6038
6039 2014-03-20 Pedro Alves <palves@redhat.com>
6040
6041 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6042 extern.
6043 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6044 * infrun.c (saved_singlestep_ptid)
6045 (stepping_past_singlestep_breakpoint): Delete.
6046 (resume): Remove stepping_past_singlestep_breakpoint handling.
6047 (proceed): Store the prev_pc of the stepping thread too.
6048 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6049 singlestep_pc.
6050 (enum infwait_states): Delete infwait_thread_hop_state.
6051 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6052 field.
6053 (handle_inferior_event): Adjust.
6054 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6055 handling and the thread-hop code. Before removing single-step
6056 breakpoints, check whether the thread hit a single-step breakpoint
6057 of another thread. If it did, the trap is not a random signal.
6058 (switch_back_to_stepped_thread): If the event thread hit a
6059 single-step breakpoint, unblock it before switching to the
6060 stepping thread. Handle the case of the stepped thread having
6061 advanced already.
6062 (keep_going): Handle the case of the current thread moving past a
6063 single-step breakpoint.
6064
6065 2014-03-20 Pedro Alves <palves@redhat.com>
6066
6067 PR breakpoints/7143
6068 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6069 are being stepped over.
6070 (breakpoint_address_match): Make extern.
6071 * breakpoint.h (breakpoint_address_match): New declaration.
6072 * inferior.h (stepping_past_instruction_at): New declaration.
6073 * infrun.c (struct step_over_info): New type.
6074 (step_over_info): New global.
6075 (set_step_over_info, clear_step_over_info)
6076 (stepping_past_instruction_at): New functions.
6077 (handle_inferior_event): Clear the step-over info when
6078 trap_expected is cleared.
6079 (resume): Remove now stale comment.
6080 (clear_proceed_status): Clear step-over info.
6081 (proceed): Adjust step-over handling to set or clear the step-over
6082 info instead of removing all breakpoints.
6083 (handle_signal_stop): When setting up a thread-hop, don't remove
6084 breakpoints here.
6085 (stop_stepping): Clear step-over info.
6086 (keep_going): Adjust step-over handling to set or clear step-over
6087 info and then always inserting breakpoints, instead of removing
6088 all breakpoints when stepping over one.
6089
6090 2014-03-20 Pedro Alves <palves@redhat.com>
6091
6092 * infrun.c (previous_inferior_ptid): Adjust comment.
6093 (deferred_step_ptid): Delete.
6094 (infrun_thread_ptid_changed, prepare_to_proceed)
6095 (init_wait_for_inferior): Adjust.
6096 (handle_signal_stop): Delete deferred_step_ptid handling.
6097
6098 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6099
6100 PR gdb/15358
6101 * defs.h (sync_quit_force_run): New declaration.
6102 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6103 * event-top.c (async_sigterm_handler): New declaration.
6104 (async_sigterm_token): New variable.
6105 (async_init_signals): Create also async_sigterm_token.
6106 (async_sigterm_handler): New function.
6107 (sync_quit_force_run): New variable.
6108 (handle_sigterm): Replace quit_force call by other calls.
6109 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6110
6111 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6112
6113 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6114 offset into SPE pseudo registers.
6115
6116 2014-03-18 Pedro Alves <palves@redhat.com>
6117
6118 PR gdb/13860
6119 * inferior.h (print_stop_event): Declare.
6120 * infrun.c (print_stop_event): New, factored out from ...
6121 (normal_stop): ... this.
6122 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6123 of bpstat_print/print_stack_frame.
6124
6125 2014-03-17 Tom Tromey <tromey@redhat.com>
6126
6127 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6128
6129 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6130
6131 * ada-lang.c (decode_constrained_packed_array): Perform a
6132 minimal coercion for reference with coerce_ref instead of
6133 ada_coerce_ref.
6134
6135 2014-03-17 Tristan Gingold <gingold@adacore.com>
6136
6137 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6138 (darwin_solib_create_inferior_hook): Emit a warning if version
6139 is unhandled.
6140
6141 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6142
6143 * python/py-value.c (get_field_flag): Cast flag_name argument to
6144 PyObject_GetAttrString to support Python 2.4.
6145
6146 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6147
6148 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6149 (Global Maintainers): Remove Jan Kratochvil.
6150
6151 2014-03-14 Pedro Alves <palves@redhat.com>
6152
6153 * inferior.h (terminal_ours_for_output): Rename to ...
6154 (child_terminal_ours_for_output): ... this.
6155 (terminal_save_ours): Rename to ...
6156 (child_terminal_save_ours): ... this.
6157 (terminal_ours): Rename to ...
6158 (child_terminal_ours): ... this.
6159 (terminal_inferior): Rename to ...
6160 (child_terminal_inferior): ... this.
6161 (terminal_init_inferior): Rename to ...
6162 (child_terminal_init_inferior): ... this.
6163 (terminal_init_inferior_with_pgrp): Rename to ...
6164 (child_terminal_init_inferior_with_pgrp): ... this.
6165 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6166 (child_terminal_init_with_pgrp): ... this.
6167 (terminal_save_ours): Rename to ...
6168 (child_terminal_save_ours): ... this.
6169 (terminal_init_inferior): Rename to ...
6170 (child_terminal_init): ... this. Adjust.
6171 (terminal_inferior): Rename to ...
6172 (child_terminal_inferior): ... this.
6173 (terminal_ours_for_output): Rename to ...
6174 (child_terminal_ours_for_output): ... this. Adjust.
6175 (terminal_ours): Rename to ...
6176 (child_terminal_ours): ... this.
6177 (terminal_ours_1): Rename to ...
6178 (child_terminal_ours_1): ... this. Adjust.
6179 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6180 * windows-nat.c (do_initial_windows_stuff): Adjust.
6181 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6182 (gnu_terminal_init): ... this. Adjust.
6183 (gnu_target): Adjust.
6184 * inf-child.c (inf_child_target): Adjust.
6185
6186 2014-03-13 Doug Evans <xdje42@gmail.com>
6187
6188 PR guile/16612
6189 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6190 new eq?-hashtab.
6191
6192 2014-03-13 Doug Evans <xdje42@gmail.com>
6193
6194 * value.c (record_latest_value): Call release_value_or_incref
6195 instead of release_value.
6196
6197 2014-03-13 Pedro Alves <palves@redhat.com>
6198
6199 * procfs.c (procfs_target): Don't override to_shortname,
6200 to_longname or to_doc.
6201
6202 2014-03-13 Pedro Alves <palves@redhat.com>
6203
6204 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6205 Unix in user visible strings.
6206
6207 2014-03-12 Stan Shebs <stan@codesourcery.com>
6208
6209 * gdbtypes.h: Annotate comments for Doxygen, add a page
6210 block comment with some general info.
6211
6212 2014-03-12 Pedro Alves <palves@redhat.com>
6213
6214 * infcmd.c (prepare_execution_command): New function, factored out
6215 from several execution commands.
6216 (run_command_1, continue_command, step_1, jump_command)
6217 (signal_command, until_command, advance_command, finish_command)
6218 (attach_command): Use prepare_execution_command.
6219
6220 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6221
6222 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6223 (MAX_BPTS): Define.
6224 (MAX_WPTS): Define.
6225 (struct arm_linux_thread_points): Removed.
6226 (struct arm_linux_process_info): New.
6227 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6228 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6229 (arm_linux_find_breakpoints_by_tid): Removed.
6230 (struct arch_lwp_info): New.
6231 (arm_linux_find_process_pid): New functions.
6232 (arm_linux_add_process): New functions.
6233 (arm_linux_process_info_get): New functions.
6234 (arm_linux_forget_process): New function.
6235 (arm_linux_get_debug_reg_state): New function.
6236 (struct update_registers_data): New.
6237 (update_registers_callback): New function.
6238 (arm_linux_insert_hw_breakpoint1): Updated.
6239 (arm_linux_remove_hw_breakpoint1): Updated.
6240 (arm_linux_insert_hw_breakpoint): Updated.
6241 (arm_linux_remove_hw_breakpoint): Updated.
6242 (arm_linux_insert_watchpoint): Updated.
6243 (arm_linux_remove_watchpoint): Updated.
6244 (arm_linux_new_thread): Updated.
6245 (arm_linux_prepare_to_resume): New function.
6246 (arm_linux_new_fork): New function.
6247 (_initialize_arm_linux_nat): Updated.
6248
6249 2014-03-12 Pedro Alves <palves@redhat.com>
6250
6251 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6252
6253 2014-03-12 Tom Tromey <tromey@redhat.com>
6254
6255 * inf-child.c (return_zero): New function.
6256 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6257 * aix-thread.c (aix_thread_inferior_created): New function.
6258 (aix_thread_attach): Remove.
6259 (init_aix_thread_ops): Don't set to_attach.
6260 (_initialize_aix_thread): Register inferior_created observer.
6261 * corelow.c (init_core_ops): Don't set to_attach or
6262 to_create_inferior.
6263 * exec.c (init_exec_ops): Don't set to_attach or
6264 to_create_inferior.
6265 * infcmd.c (run_command_1): Use find_run_target. Make direct
6266 target calls.
6267 (attach_command): Use find_attach_target. Make direct target
6268 calls.
6269 * record-btrace.c (init_record_btrace_ops): Don't set
6270 to_create_inferior.
6271 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6272 Remove.
6273 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6274 set to_create_inferior.
6275 * target.c (complete_target_initialization): Add assertion.
6276 (target_create_inferior): Remove.
6277 (find_default_attach, find_default_create_inferior): Remove.
6278 (find_attach_target, find_run_target): New functions.
6279 (find_default_is_async_p, find_default_can_async_p)
6280 (target_supports_non_stop, target_attach): Remove.
6281 (init_dummy_target): Don't set to_create_inferior or
6282 to_supports_non_stop.
6283 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6284 TARGET_DEFAULT_FUNC.
6285 <to_create_inferior>: Add comment.
6286 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6287 TARGET_DEFAULT_RETURN.
6288 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6289 (find_attach_target, find_run_target): Declare.
6290 (target_create_inferior): Remove.
6291 (target_has_execution_1): Update comment.
6292 (target_supports_non_stop): Remove.
6293 * target-delegates.c: Rebuild.
6294
6295 2014-03-12 Pedro Alves <palves@redhat.com>
6296
6297 * inf-child.h: Update comment to not mention Unix.
6298
6299 2014-03-12 Pedro Alves <palves@redhat.com>
6300
6301 * inf-child.c: Update top comment to not mention Unix. Add
6302 generic comment describing how this target is meant to be used.
6303 (inf_child_post_attach, inf_child_post_startup_inferior)
6304 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6305 Unix in comment.
6306
6307 2014-03-12 Pedro Alves <palves@redhat.com>
6308
6309 * nto-procfs.c: Include inf-child.h.
6310 (procfs_ops): Delete global.
6311 (procfs_can_run): Delete method.
6312 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6313 target pointer instead of referencing procfs_ops.
6314 (procfs_prepare_to_store): Delete.
6315 (init_procfs_ops): Delete function.
6316 (procfs_target): New function, based on init_procfs_ops, but
6317 inherit inf_child_target.
6318 (_initialize_procfs): Use procfs_target.
6319
6320 2014-03-12 Pedro Alves <palves@redhat.com>
6321
6322 * windows-nat.c: Include inf-child.h.
6323 (windows_ops): Delete global.
6324 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6325 methods.
6326 (init_windows_ops): Delete function.
6327 (windows_target): New function, based on init_windows_ops, but
6328 inherit inf_child_target.
6329 (_initialize_windows_nat): Use windows_target. Install x86
6330 specific target methods here.
6331
6332 2014-03-10 Doug Evans <xdje42@gmail.com>
6333
6334 * guile/guile.c (call_initialize_gdb_module): New function.
6335 (initialize_guile): Replace call to scm_init_guile with call to
6336 scm_with_guile.
6337
6338 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6339
6340 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6341 in call to TYPE_CODE macro.
6342
6343 2014-03-10 Jerome Guitton <guitton@adacore.com>
6344
6345 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6346 Resolve tagged types to full view.
6347
6348 2014-03-10 Hui Zhu <hui@codesourcery.com>
6349
6350 * target.h (target_insert_breakpoint): Remove "hardware" from its
6351 comments.
6352
6353 2014-03-07 Doug Evans <dje@google.com>
6354
6355 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6356
6357 2014-03-07 Doug Evans <dje@google.com>
6358
6359 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6360 Remove unused local comp_dir_attr. Assert exactly one of
6361 stub_comp_unit_die, stub_comp_dir is non-NULL.
6362
6363 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6364
6365 * target.h (complete_target_initialization, add_target):
6366 Add comment.
6367
6368 2014-03-07 Pedro Alves <palves@redhat.com>
6369
6370 * go32-nat.c: Include inf-child.h.
6371 (go32_ops): Delete global.
6372 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6373 Delete methods.
6374 (go32_create_inferior): Push the passed in target pointer instead
6375 of referencing go32_ops.
6376 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6377 (go32_target): New function, based on init_go32_ops, but inherit
6378 inf_child_target.
6379 (_initialize_go32_nat): Use go32_target. Move parts of
6380 init_go32_ops here.
6381
6382 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6383
6384 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6385 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6386 SYMBOL_VALUE_ADDRESS.
6387 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6388
6389 2014-03-06 Yao Qi <yao@codesourcery.com>
6390
6391 * breakpoint.c (get_tracepoint_by_number): Remove argument
6392 optional_p. All callers updated. Adjust comments. Update
6393 output message.
6394 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6395
6396 2014-03-06 Yao Qi <yao@codesourcery.com>
6397
6398 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6399 early if get_number returns zero. Use 'p' instead of 'args'.
6400
6401 2014-03-06 Yao Qi <yao@codesourcery.com>
6402
6403 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6404 message.
6405
6406 2014-03-06 Yao Qi <yao@codesourcery.com>
6407
6408 PR breakpoints/16508
6409 * tracepoint.c (check_trace_running): New function.
6410 (trace_find_command): Move code to check_trace_running and
6411 call check_trace_running.
6412 (trace_find_pc_command): Likewise.
6413 (trace_find_tracepoint_command): Likewise.
6414 (trace_find_line_command): Likewise.
6415 (trace_find_range_command): Likewise.
6416 * tracepoint.h (check_trace_running): Likewise.
6417 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6418
6419 2014-03-06 Yao Qi <yao@codesourcery.com>
6420
6421 * target.h (struct target_ops) <to_traceframe_info>: Use
6422 TARGET_DEFAULT_NORETURN (tcomplain ()).
6423 * target-delegates.c: Regenerated.
6424
6425 2014-03-05 Pedro Alves <palves@redhat.com>
6426
6427 PR gdb/16575
6428 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6429 void. Update comment.
6430 (dcache_xfer_memory): Delete.
6431 (dcache_read_memory_partial): New, based on the read bits of
6432 dcache_xfer_memory.
6433 (dcache_update): Add status parameter. Use ULONGEST for len, and
6434 adjust. Discard cache lines if the reason for the update was
6435 error.
6436 * dcache.h (dcache_xfer_memory): Delete declaration.
6437 (dcache_read_memory_partial): New declaration.
6438 (dcache_update): Update prototype.
6439 * target.c (raw_memory_xfer_partial): Update the dcache here.
6440 (memory_xfer_partial_1): Don't handle dcache writes here.
6441
6442 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6443
6444 * remote-sim.c (gdbsim_load): Add const to prog.
6445
6446 2014-03-03 Tom Tromey <tromey@redhat.com>
6447
6448 * elfread.c (probe_key): Change to bfd_data.
6449 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6450 now per-BFD, not per-objfile.
6451 * stap-probe.c (stap_probe_destroy): Update comment.
6452 (handle_stap_probe): Allocate on the per-BFD obstack.
6453
6454 2014-03-03 Tom Tromey <tromey@redhat.com>
6455
6456 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6457 * breakpoint.c (create_longjmp_master_breakpoint): Use
6458 get_probe_address.
6459 (add_location_to_breakpoint, bkpt_probe_insert_location)
6460 (bkpt_probe_remove_location): Update.
6461 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6462 * elfread.c (elf_symfile_relocate_probe): Remove.
6463 (elf_probe_fns): Update.
6464 (insert_exception_resume_breakpoint): Change type of "probe"
6465 parameter to bound_probe.
6466 (check_exception_resume): Update.
6467 * objfiles.c (objfile_relocate1): Don't relocate probes.
6468 * probe.c (bound_probe_s): New typedef.
6469 (parse_probes): Use get_probe_address. Set sal's objfile.
6470 (find_probe_by_pc): Return a bound_probe.
6471 (collect_probes): Return a VEC(bound_probe_s).
6472 (compare_probes): Update.
6473 (gen_ui_out_table_header_info): Change type of "probes"
6474 parameter. Update.
6475 (info_probes_for_ops): Update.
6476 (get_probe_address): New function.
6477 (probe_safe_evaluate_at_pc): Update.
6478 * probe.h (struct probe_ops) <get_probe_address>: New field.
6479 <set_semaphore, clear_semaphore>: Add objfile parameter.
6480 (struct probe) <objfile>: Remove field.
6481 <arch>: New field.
6482 <address>: Update comment.
6483 (struct bound_probe): New.
6484 (find_probe_by_pc): Return a bound_probe.
6485 (get_probe_address): Declare.
6486 * solib-svr4.c (struct probe_and_action) <address>: New field.
6487 (hash_probe_and_action, equal_probe_and_action): Update.
6488 (register_solib_event_probe): Add address parameter.
6489 (solib_event_probe_at): Update.
6490 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6491 get_probe_address.
6492 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6493 (stap_get_probe_address): New function.
6494 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6495 (compile_probe_arg): Update.
6496 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6497 address.
6498 (handle_stap_probe): Don't relocate the probe.
6499 (stap_relocate): Remove.
6500 (stap_gen_info_probes_table_values): Update.
6501 (stap_probe_ops): Remove stap_relocate.
6502 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6503 (debug_sym_probe_fns): Update.
6504 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6505 * symtab.c (init_sal): Use memset.
6506 * symtab.h (struct symtab_and_line) <objfile>: New field.
6507 * tracepoint.c (start_tracing, stop_tracing): Update.
6508
6509 2014-03-03 Tom Tromey <tromey@redhat.com>
6510
6511 * probe.h (parse_probes, find_probe_by_pc)
6512 (find_probes_in_objfile): Fix comments.
6513
6514 2014-03-02 Doug Evans <xdje42@gmail.com>
6515
6516 * infrun.c (handle_signal_stop): Replace test for
6517 TARGET_WAITKIND_STOPPED with an assert.
6518
6519 2014-03-02 Doug Evans <xdje42@gmail.com>
6520
6521 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6522
6523 2014-03-02 Doug Evans <xdje42@gmail.com>
6524
6525 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6526
6527 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6528
6529 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6530
6531 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6532
6533 * i386obsd-nat.c: Include "obsd-nat.h".
6534 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6535 add_target.
6536 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6537
6538 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6539
6540 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6541
6542 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6543
6544 * mips64obsd-nat.c: Include "obsd-nath".
6545 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6546 add_target
6547 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6548
6549 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6550
6551 * amd64obsd-nat.c: Include "obsd-nat,h.
6552 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6553 add_target.
6554 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6555
6556 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6557
6558 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6559 (find_overload_match): Update call to find_oload_champ.
6560 (find_oload_champ_namespace_loop): Likewise
6561
6562 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6563
6564 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6565
6566 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6567 * config/sparc/obsd64.mh: New file.
6568 * sparc64obsd-nat.c: New file.
6569
6570 * obsd-nat.h: New file.
6571 * obsd-nat.c: New file.
6572 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6573 (ALLDEPFILES): Add obsd-nat.c.
6574
6575 2014-02-28 Tom Tromey <tromey@redhat.com>
6576
6577 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6578 * cli-out.h (cli_ui_out_impl): Now const.
6579 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6580 * ui-out.c (struct ui_out) <impl>: Now const.
6581 (default_ui_out_impl): Now const.
6582 (ui_out_new): Make 'impl' parameter const.
6583 * ui-out.h (ui_out_new): Update.
6584
6585 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6586
6587 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6588
6589 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6590
6591 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6592
6593 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6594
6595 Additional PR 8882 fix.
6596 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6597
6598 2014-02-27 Pedro Alves <palves@redhat.com>
6599
6600 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6601 isn't set.
6602
6603 2014-02-27 Pedro Alves <palves@redhat.com>
6604
6605 PR 12702
6606 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6607 * nat/linux-waitpid.c: Include string.h.
6608 (status_to_str): Moved here and made extern.
6609 * nat/linux-waitpid.h (status_to_str): New declaration.
6610
6611 2014-02-27 Hui Zhu <hui@codesourcery.com>
6612
6613 PR 12702
6614 * infrun.c (ptid_match): Move ...
6615 * common/ptid.c (ptid_match): ... here.
6616 * inferior.h (ptid_match): Move ...
6617 * common/ptid.h (ptid_match): ... here.
6618
6619 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6620
6621 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6622 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6623 gdb_target_obs.
6624
6625 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6626
6627 * obsd-tdep.c (obsd_auxv_parse): New function.
6628 (obsd_init_abi): Set auxv_parse.
6629
6630 * gdbarch.sh (auxv_parse): New.
6631 * gdbarch.h: Regenerated.
6632 * gdbarch.c: Regenerated.
6633 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6634
6635 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6636
6637 * guile/scm-value.c (gdbscm_history_append_x): New function.
6638 (value_functions): Add it.
6639
6640 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6641
6642 * dwarf2read.c (attr_value_as_address): New function.
6643 (dwarf2_find_base_address, read_call_site_scope): Use
6644 attr_value_as_address in place of DW_ADDR.
6645 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6646 the low and high addresses. Slight rework of the handling
6647 of the high pc being a constant form, and limit it to
6648 DWARF verson 4 or higher.
6649 (dwarf2_record_block_ranges): Likewise.
6650 (read_partial_die): Likewise.
6651 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6652
6653 2014-02-26 Tom Tromey <tromey@redhat.com>
6654
6655 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6656
6657 2014-02-26 Tom Tromey <tromey@redhat.com>
6658
6659 * elfread.c (elf_read_minimal_symbols): Return early if
6660 minimal symbols have already been read. Add "ei" parameter.
6661 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6662 * minsyms.c (prim_record_minimal_symbol_full): Update.
6663 * objfiles.h (struct objstats) <n_minsyms>: Move...
6664 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6665 * symmisc.c (print_objfile_statistics): Update.
6666
6667 2014-02-26 Tom Tromey <tromey@redhat.com>
6668
6669 * elfread.c (elf_read_minimal_symbols): New function, from
6670 elf_symfile_read.
6671 (elf_symfile_read): Call it.
6672
6673 2014-02-26 Tom Tromey <tromey@redhat.com>
6674
6675 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6676 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6677 (lookup_minimal_symbol_solib_trampoline)
6678 (lookup_minimal_symbol_by_pc_section_1)
6679 (lookup_minimal_symbol_and_objfile): Update.
6680 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6681 Don't allocate a minimal symbol if minsyms have already been read.
6682 (build_minimal_symbol_hash_tables): Update.
6683 (install_minimal_symbols): Do nothing if minsyms already read.
6684 Use the per-BFD obstack.
6685 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6686 * objfiles.c (allocate_objfile): Call
6687 terminate_minimal_symbol_table later.
6688 (have_minimal_symbols): Update.
6689 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6690 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6691 Move from struct objfile.
6692 <minsyms_read>: New field.
6693 (struct objfile) <msymbols, minimal_symbol_count,
6694 msymbol_hash, msymbol_demangled_hash>: Move.
6695 (ALL_OBJFILE_MSYMBOLS): Update.
6696 * symfile.c (read_symbols): Set minsyms_read.
6697 (reread_symbols): Update.
6698 * symmisc.c (dump_objfile, dump_msymbols): Update.
6699
6700 2014-02-26 Tom Tromey <tromey@redhat.com>
6701
6702 * minsyms.c (msymbols_sort): Remove.
6703 * minsyms.h (msymbols_sort): Remove.
6704 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6705 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6706 * elfread.c (elf_symtab_read): Don't add section offsets.
6707 * xcoffread.c (record_minimal_symbol): Don't add section offset
6708 to minimal symbol address.
6709 * somread.c (text_offset, data_offset): Remove.
6710 (som_symtab_read): Don't add section offsets to minimal symbol
6711 addresses.
6712 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6713 Don't add section offsets to minimal symbols.
6714 * coffread.c (coff_symtab_read): Don't add section offsets
6715 to minimal symbol addresses.
6716 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6717 to minimal symbol addresses.
6718 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6719 section offset to minimal symbol addresses.
6720 * mdebugread.c (parse_partial_symbols): Don't add section
6721 offset to minimal symbol addresses.
6722 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6723 offset to minimal symbol addresses.
6724
6725 2014-02-26 Tom Tromey <tromey@redhat.com>
6726
6727 * ada-lang.c (ada_main_name): Update.
6728 (ada_add_standard_exceptions): Update.
6729 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6730 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6731 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6732 * auxv.c (ld_so_xfer_auxv): Update.
6733 * avr-tdep.c (avr_scan_prologue): Update.
6734 * ax-gdb.c (gen_var_ref): Update.
6735 * blockframe.c (get_pc_function_start)
6736 (find_pc_partial_function_gnu_ifunc): Update.
6737 * breakpoint.c (create_overlay_event_breakpoint)
6738 (create_longjmp_master_breakpoint)
6739 (create_std_terminate_master_breakpoint)
6740 (create_exception_master_breakpoint): Update.
6741 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6742 * c-valprint.c (c_val_print): Update.
6743 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6744 * common/agent.c (agent_look_up_symbols): Update.
6745 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6746 * dwarf2loc.c (call_site_to_target_addr): Update.
6747 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6748 * elfread.c (elf_gnu_ifunc_record_cache)
6749 (elf_gnu_ifunc_resolve_by_got): Update.
6750 * findvar.c (default_read_var_value): Update.
6751 * frame.c (inside_main_func): Update.
6752 * frv-tdep.c (frv_frame_this_id): Update.
6753 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6754 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6755 Update.
6756 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6757 (hppa_hpux_find_dummy_bpaddr): Update.
6758 * hppa-tdep.c (hppa_symbol_address): Update.
6759 * infcmd.c (until_next_command): Update.
6760 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6761 Update.
6762 * linespec.c (minsym_found, add_minsym): Update.
6763 * linux-nat.c (get_signo): Update.
6764 * linux-thread-db.c (inferior_has_bug): Update.
6765 * m32c-tdep.c (m32c_return_value)
6766 (m32c_m16c_address_to_pointer): Update.
6767 * m32r-tdep.c (m32r_frame_this_id): Update.
6768 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6769 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6770 * maint.c (maintenance_translate_address): Update.
6771 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6772 (frob_address): New function.
6773 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6774 frob_address. Rename parameter to "pc_in".
6775 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6776 addresses.
6777 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6778 Update.
6779 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6780 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6781 * objc-lang.c (find_objc_msgsend): Update.
6782 * objfiles.c (objfile_relocate1): Update.
6783 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6784 * p-valprint.c (pascal_val_print): Update.
6785 * parse.c (write_exp_msymbol): Update.
6786 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6787 (ppc_elfv2_skip_entrypoint): Update.
6788 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6789 * printcmd.c (build_address_symbolic, msym_info)
6790 (address_info): Update.
6791 * proc-service.c (ps_pglobal_lookup): Update.
6792 * psymtab.c (find_pc_sect_psymtab_closer)
6793 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6794 Change msymbol parameter to bound_minimal_symbol.
6795 * ravenscar-thread.c (get_running_thread_id): Update.
6796 * remote.c (remote_check_symbols): Update.
6797 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6798 address.
6799 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6800 * solib-dsbt.c (lm_base): Update.
6801 * solib-frv.c (lm_base, main_got): Update.
6802 * solib-irix.c (locate_base): Update.
6803 * solib-som.c (som_solib_create_inferior_hook)
6804 (link_map_start): Update.
6805 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6806 * solib-svr4.c (elf_locate_base, enable_break): Update.
6807 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6808 (flush_ea_cache): Update.
6809 * stabsread.c (define_symbol, scan_file_globals): Update.
6810 * stack.c (find_frame_funname): Update.
6811 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6812 (debug_qf_find_pc_sect_symtab): Update.
6813 * symfile.c (simple_read_overlay_table)
6814 (simple_overlay_update): Update.
6815 * symfile.h (struct quick_symbol_functions)
6816 <find_pc_sect_symtab>: Change type of msymbol to
6817 bound_minimal_symbol.
6818 * symmisc.c (dump_msymbols): Update.
6819 * symtab.c (find_pc_sect_symtab_via_partial)
6820 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6821 (search_symbols, print_msymbol_info): Update.
6822 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6823 (MSYMBOL_VALUE_ADDRESS): Redefine.
6824 (BMSYMBOL_VALUE_ADDRESS): New macro.
6825 * tracepoint.c (scope_info): Update.
6826 * tui/tui-disasm.c (tui_find_disassembly_address)
6827 (tui_get_begin_asm_address): Update.
6828 * valops.c (find_function_in_inferior): Update.
6829 * value.c (value_static_field, value_fn_field): Update.
6830
6831 2014-02-26 Tom Tromey <tromey@redhat.com>
6832
6833 * ada-lang.c (ada_update_initial_language): Update.
6834 (ada_main_name, ada_has_this_exception_support): Update.
6835 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6836 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6837 * arm-tdep.c (arm_skip_stub): Update.
6838 * auxv.c (ld_so_xfer_auxv): Update.
6839 * avr-tdep.c (avr_scan_prologue): Update.
6840 * ax-gdb.c (gen_var_ref): Update.
6841 * breakpoint.c (struct breakpoint_objfile_data)
6842 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6843 type to bound_minimal_symbol.
6844 (create_overlay_event_breakpoint)
6845 (create_longjmp_master_breakpoint)
6846 (create_std_terminate_master_breakpoint)
6847 (create_exception_master_breakpoint): Update.
6848 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6849 * c-exp.y (classify_name): Update.
6850 * coffread.c (coff_symfile_read): Update.
6851 * common/agent.c (agent_look_up_symbols): Update.
6852 * d-lang.c (d_main_name): Update.
6853 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6854 * dec-thread.c (enable_dec_thread): Update.
6855 * dwarf2loc.c (call_site_to_target_addr): Update.
6856 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6857 * eval.c (evaluate_subexp_standard): Update.
6858 * findvar.c (struct minsym_lookup_data) <result>: Change type
6859 to bound_minimal_symbol.
6860 <objfile>: Remove.
6861 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6862 * frame.c (inside_main_func): Update.
6863 * frv-tdep.c (frv_frame_this_id): Update.
6864 * gcore.c (call_target_sbrk): Update.
6865 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6866 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6867 Update.
6868 * go-lang.c (go_main_name): Update.
6869 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6870 (hppa_hpux_find_import_stub_for_addr): Update.
6871 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6872 Update. Change return type.
6873 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6874 type.
6875 * jit.c (jit_breakpoint_re_set_internal): Update.
6876 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6877 Update.
6878 * linux-nat.c (get_signo): Update.
6879 * linux-thread-db.c (inferior_has_bug): Update
6880 * m32c-tdep.c (m32c_return_value)
6881 (m32c_m16c_address_to_pointer): Update.
6882 * m32r-tdep.c (m32r_frame_this_id): Update.
6883 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6884 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6885 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6886 lookup_minimal_symbol. Change return type.
6887 (lookup_minimal_symbol): Remove.
6888 (lookup_bound_minimal_symbol): Update.
6889 (lookup_minimal_symbol_text): Change return type.
6890 (lookup_minimal_symbol_solib_trampoline): Change return type.
6891 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6892 (lookup_minimal_symbol_solib_trampoline): Change return type.
6893 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6894 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6895 (value_nsstring, find_imps): Update.
6896 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6897 * p-lang.c (pascal_main_name): Update.
6898 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6899 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6900 * proc-service.c (ps_pglobal_lookup): Update.
6901 * ravenscar-thread.c (get_running_thread_msymbol): Change
6902 return type.
6903 (has_ravenscar_runtime, get_running_thread_id): Update.
6904 * remote.c (remote_check_symbols): Update.
6905 * sol-thread.c (ps_pglobal_lookup): Update.
6906 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6907 * solib-dsbt.c (lm_base): Update.
6908 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6909 Update.
6910 * solib-irix.c (locate_base): Update.
6911 * solib-som.c (som_solib_create_inferior_hook)
6912 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6913 Update.
6914 * solib-spu.c (spu_enable_break): Update.
6915 * solib-svr4.c (elf_locate_base, enable_break): Update.
6916 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6917 (flush_ea_cache): Update.
6918 * stabsread.c (define_symbol): Update.
6919 * symfile.c (simple_read_overlay_table): Update.
6920 * symtab.c (find_pc_sect_line): Update.
6921 * tracepoint.c (scope_info): Update.
6922 * tui-disasm.c (tui_get_begin_asm_address): Update.
6923 * value.c (value_static_field): Update.
6924
6925 2014-02-26 Tom Tromey <tromey@redhat.com>
6926
6927 * minsyms.c (prim_record_minimal_symbol_full): Use
6928 SET_MSYMBOL_VALUE_ADDRESS.
6929 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6930 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6931 SET_MSYMBOL_VALUE_ADDRESS.
6932 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6933 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6934
6935 2014-02-26 Tom Tromey <tromey@redhat.com>
6936
6937 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6938 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6939 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6940 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6941 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6942 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6943 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6944 * ada-lang.c (ada_main_name): Update.
6945 (ada_lookup_simple_minsym): Update.
6946 (ada_make_symbol_completion_list): Update.
6947 (ada_add_standard_exceptions): Update.
6948 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6949 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6950 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6951 * arm-tdep.c (skip_prologue_function): Update.
6952 (arm_skip_stack_protector, arm_skip_stub): Update.
6953 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6954 (arm_wince_skip_main_prologue): Update.
6955 * auxv.c (ld_so_xfer_auxv): Update.
6956 * avr-tdep.c (avr_scan_prologue): Update.
6957 * ax-gdb.c (gen_var_ref): Update.
6958 * block.c (call_site_for_pc): Update.
6959 * blockframe.c (get_pc_function_start): Update.
6960 (find_pc_partial_function_gnu_ifunc): Update.
6961 * breakpoint.c (create_overlay_event_breakpoint): Update.
6962 (create_longjmp_master_breakpoint): Update.
6963 (create_std_terminate_master_breakpoint): Update.
6964 (create_exception_master_breakpoint): Update.
6965 (resolve_sal_pc): Update.
6966 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6967 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6968 Update.
6969 * c-valprint.c (c_val_print): Update.
6970 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6971 * coffread.c (coff_symfile_read): Update.
6972 * common/agent.c (agent_look_up_symbols): Update.
6973 * dbxread.c (find_stab_function_addr): Update.
6974 (end_psymtab): Update.
6975 * dwarf2loc.c (call_site_to_target_addr): Update.
6976 (func_verify_no_selftailcall): Update.
6977 (tailcall_dump): Update.
6978 (call_site_find_chain_1): Update.
6979 (dwarf_expr_reg_to_entry_parameter): Update.
6980 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6981 (elf_gnu_ifunc_resolve_by_got): Update.
6982 * f-valprint.c (info_common_command): Update.
6983 * findvar.c (read_var_value): Update.
6984 * frame.c (get_prev_frame_1): Update.
6985 (inside_main_func): Update.
6986 * frv-tdep.c (frv_skip_main_prologue): Update.
6987 (frv_frame_this_id): Update.
6988 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6989 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6990 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6991 (gnuv3_skip_trampoline): Update.
6992 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6993 (hppa64_hpux_in_solib_call_trampoline): Update.
6994 (hppa_hpux_skip_trampoline_code): Update.
6995 (hppa64_hpux_search_dummy_call_sequence): Update.
6996 (hppa_hpux_find_import_stub_for_addr): Update.
6997 (hppa_hpux_find_dummy_bpaddr): Update.
6998 * hppa-tdep.c (hppa_symbol_address)
6999 (hppa_lookup_stub_minimal_symbol): Update.
7000 * i386-tdep.c (i386_skip_main_prologue): Update.
7001 (i386_pe_skip_trampoline_code): Update.
7002 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7003 * infcall.c (get_function_name): Update.
7004 * infcmd.c (until_next_command): Update.
7005 * jit.c (jit_breakpoint_re_set_internal): Update.
7006 (jit_inferior_init): Update.
7007 * linespec.c (minsym_found): Update.
7008 (add_minsym): Update.
7009 * linux-fork.c (info_checkpoints_command): Update.
7010 * linux-nat.c (get_signo): Update.
7011 * linux-thread-db.c (inferior_has_bug): Update.
7012 * m32c-tdep.c (m32c_return_value): Update.
7013 (m32c_m16c_address_to_pointer): Update.
7014 (m32c_m16c_pointer_to_address): Update.
7015 * m32r-tdep.c (m32r_frame_this_id): Update.
7016 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7017 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7018 * maint.c (maintenance_translate_address): Update.
7019 * minsyms.c (add_minsym_to_hash_table): Update.
7020 (add_minsym_to_demangled_hash_table): Update.
7021 (msymbol_objfile): Update.
7022 (lookup_minimal_symbol): Update.
7023 (iterate_over_minimal_symbols): Update.
7024 (lookup_minimal_symbol_text): Update.
7025 (lookup_minimal_symbol_by_pc_name): Update.
7026 (lookup_minimal_symbol_solib_trampoline): Update.
7027 (lookup_minimal_symbol_by_pc_section_1): Update.
7028 (lookup_minimal_symbol_and_objfile): Update.
7029 (prim_record_minimal_symbol_full): Update.
7030 (compare_minimal_symbols): Update.
7031 (compact_minimal_symbols): Update.
7032 (build_minimal_symbol_hash_tables): Update.
7033 (install_minimal_symbols): Update.
7034 (terminate_minimal_symbol_table): Update.
7035 (find_solib_trampoline_target): Update.
7036 (minimal_symbol_upper_bound): Update.
7037 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7038 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7039 (mips_skip_pic_trampoline_code): Update.
7040 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7041 * objc-lang.c (selectors_info): Update.
7042 (classes_info): Update.
7043 (find_methods): Update.
7044 (find_imps): Update.
7045 (find_objc_msgsend): Update.
7046 * objfiles.c (objfile_relocate1): Update.
7047 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7048 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7049 * p-valprint.c (pascal_val_print): Update.
7050 * parse.c (write_exp_msymbol): Update.
7051 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7052 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7053 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7054 * printcmd.c (build_address_symbolic): Update.
7055 (sym_info): Update.
7056 (address_info): Update.
7057 * proc-service.c (ps_pglobal_lookup): Update.
7058 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7059 (find_pc_sect_psymtab): Update.
7060 * python/py-framefilter.c (py_print_frame): Update.
7061 * ravenscar-thread.c (get_running_thread_id): Update.
7062 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7063 Update.
7064 * remote.c (remote_check_symbols): Update.
7065 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7066 (rs6000_skip_trampoline_code): Update.
7067 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7068 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7069 * solib-dsbt.c (lm_base): Update.
7070 * solib-frv.c (lm_base): Update.
7071 (main_got): Update.
7072 * solib-irix.c (locate_base): Update.
7073 * solib-som.c (som_solib_create_inferior_hook): Update.
7074 (som_solib_desire_dynamic_linker_symbols): Update.
7075 (link_map_start): Update.
7076 * solib-spu.c (spu_enable_break): Update.
7077 (ocl_enable_break): Update.
7078 * solib-svr4.c (elf_locate_base): Update.
7079 (enable_break): Update.
7080 * spu-tdep.c (spu_get_overlay_table): Update.
7081 (spu_catch_start): Update.
7082 (flush_ea_cache): Update.
7083 * stabsread.c (define_symbol): Update.
7084 (scan_file_globals): Update.
7085 * stack.c (find_frame_funname): Update.
7086 (frame_info): Update.
7087 * symfile.c (simple_read_overlay_table): Update.
7088 (simple_overlay_update): Update.
7089 * symmisc.c (dump_msymbols): Update.
7090 * symtab.c (fixup_section): Update.
7091 (find_pc_sect_line): Update.
7092 (skip_prologue_sal): Update.
7093 (search_symbols): Update.
7094 (print_msymbol_info): Update.
7095 (rbreak_command): Update.
7096 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7097 (completion_list_objc_symbol): Update.
7098 (default_make_symbol_completion_list_break_on): Update.
7099 * tracepoint.c (scope_info): Update.
7100 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7101 (tui_get_begin_asm_address): Update.
7102 * valops.c (find_function_in_inferior): Update.
7103 * value.c (value_static_field): Update.
7104 (value_fn_field): Update.
7105
7106 2014-02-26 Tom Tromey <tromey@redhat.com>
7107
7108 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7109 bound minimal symbols. Move code that knows about minsym
7110 table layout...
7111 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7112 function.
7113 * minsyms.h (minimal_symbol_upper_bound): Declare.
7114 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7115 minimal_symbol_upper_bound.
7116
7117 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7118
7119 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7120 Use the type's name if its basic type does not have a tag.
7121
7122 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7123
7124 * dwarf2read.c (read_subrange_type): Add comment.
7125
7126 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7127
7128 * dwarf2read.c (update_enumeration_type_from_children): New
7129 function, mostly extracted from process_structure_scope.
7130 (read_enumeration_type): Call update_enumeration_type_from_children.
7131 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7132 and flag_flag_enum fields.
7133
7134 2014-02-26 Pedro Alves <palves@redhat.com>
7135
7136 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7137 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7138 to_xfer_partial method.
7139
7140 2014-02-26 Pedro Alves <palves@redhat.com>
7141
7142 * target.c (complete_target_initialization): Don't install
7143 default_xfer_partial as to_xfer_partial hook.
7144 (nomemory): Delete.
7145 (update_current_target): Don't INHERIT nor de_fault
7146 deprecated_xfer_memory. Delete de_fault macro.
7147 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7148 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7149 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7150 field.
7151
7152 2014-02-26 Pedro Alves <palves@redhat.com>
7153
7154 * go32-nat.c (my_write_child): New function.
7155 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7156 (go32_xfer_partial): New function.
7157 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7158 Instead install a to_xfer_partial hook.
7159
7160 2014-02-26 Pedro Alves <palves@redhat.com>
7161
7162 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7163 to_xfer_partial helper. Rewrite.
7164 (procfs_xfer_partial): New function.
7165 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7166 Install a to_xfer_partial hook.
7167
7168 2014-02-26 Pedro Alves <palves@redhat.com>
7169
7170 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7171 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7172 (m32r_xfer_partial): New function.
7173 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7174 Install a to_xfer_partial hook.
7175
7176 2014-02-26 Pedro Alves <palves@redhat.com>
7177
7178 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7179 helper.
7180 (mips_xfer_partial): New function.
7181 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7182 hook. Install a to_xfer_partial hook.
7183
7184 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7185
7186 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7187 * gdbtypes.c (create_array_type_with_stride): New function,
7188 renaming create_array_type, but with an added parameter
7189 called "bit_stride".
7190 (create_array_type): Re-implement using
7191 create_array_type_with_stride.
7192 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7193 and DW_AT_bit_stride attributes.
7194
7195 2014-02-26 Pedro Alves <palves@redhat.com>
7196
7197 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7198 task-specific breakpoints.
7199
7200 2014-02-25 Pedro Alves <palves@redhat.com>
7201
7202 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7203 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7204
7205 2014-02-25 Stan Shebs <stan@codesourcery.com>
7206
7207 * defs.h: Annotate comments for Doxygen.
7208
7209 2014-02-25 Tom Tromey <tromey@redhat.com>
7210
7211 * target.h (target_ignore): Don't declare.
7212 * target.c (target_ignore): Remove.
7213
7214 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 PR gdb/16626
7217 * auto-load.c (auto_load_objfile_script_1): Change filename to
7218 debugfile.
7219
7220 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7221
7222 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7223 documentation. Adjust prototype to match the target_ops
7224 to_xfer_partial method. Adjust implementation accordingly.
7225
7226 2014-02-25 Hui Zhu <hui@codesourcery.com>
7227
7228 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7229 to_traceframe_info.
7230
7231 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7232
7233 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7234 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7235 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7236 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7237 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7238 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7239 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7240 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7241 New constants.
7242 (rl78_register_type): Use a data pointer type for SP and
7243 new pseudo registers mentioned above. Use a 16 bit integer
7244 type for all other register pairs.
7245 (rl78_register_name, rl78_g10_register_name): Update for
7246 new pseudo registers.
7247 (rl78_pseudo_register_read): Likewise.
7248 (rl78_pseudo_register_write): Likewise.
7249 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7250 to the newly added pseudo registers.
7251
7252 2014-02-24 Doug Evans <dje@google.com>
7253
7254 * value.c (record_latest_value): Fix comment.
7255 * printcmd.c (print_command_1): Remove code to handle -1 return from
7256 record_latest_value.
7257
7258 2014-02-24 Pedro Alves <palves@redhat.com>
7259
7260 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7261 deprecated_xfer_memory hook.
7262 (procfs_xfer_partial): Call procfs_xfer_memory instead
7263 of the deprecated_xfer_memory target hook.
7264 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7265 helper.
7266
7267 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7268
7269 * windows-nat.c (windows_xfer_shared_libraries): Return
7270 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7271 requested object is TARGET_OBJECT_LIBRARIES.
7272
7273 2014-02-24 Yao Qi <yao@codesourcery.com>
7274
7275 * target.h (enum target_xfer_status)
7276 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7277 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7278 explicitly. New.
7279 * corefile.c (memory_error_message): User updated.
7280 * exec.c (section_table_read_available_memory): Likewise.
7281 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7282 * target.c (target_xfer_status_to_string): Likewise.
7283 (raw_memory_xfer_partial): Likewise.
7284 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7285 * valops.c (read_value_memory): Likewise.
7286 * exec.h: Update comments.
7287
7288 2014-02-24 Yao Qi <yao@codesourcery.com>
7289
7290 * target.c (target_xfer_status_to_string): Rename argument err
7291 to status.
7292 * target.h (target_xfer_status_to_string): Update declaration.
7293 Replace target_xfer_error_to_string with
7294 target_xfer_status_to_string in comment.
7295
7296 2014-02-24 Yao Qi <yao@codesourcery.com>
7297
7298 * mips-linux-nat.c (super_close): Update its type.
7299 (mips_linux_close): Pass 'self' to super_close.
7300
7301 2014-02-24 Yao Qi <yao@codesourcery.com>
7302
7303 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7304 * corefile.c (read_memory): Adjusted.
7305 * target.c (target_write_with_progress): Adjusted.
7306
7307 2014-02-23 Yao Qi <yao@codesourcery.com>
7308
7309 Revert two patches:
7310
7311 2013-10-25 Yao Qi <yao@codesourcery.com>
7312
7313 * remote.c (remote_traceframe_info): Return early if
7314 traceframe is not selected.
7315
7316 2013-07-19 Yao Qi <yao@codesourcery.com>
7317
7318 * target.c (update_current_target): Change the default action
7319 of 'to_traceframe_info' from tcomplain to return_zero.
7320 * target.h (struct target_ops) <to_traceframe_info>: Add more
7321 comments.
7322
7323 2014-02-23 Yao Qi <yao@codesourcery.com>
7324
7325 * valops.c (read_value_memory): Rewrite it. Call
7326 target_xfer_partial in a loop.
7327 * exec.h (section_table_available_memory): Remove declaration.
7328 Move comments to ...
7329 * exec.c (section_table_available_memory): ... here. Make it
7330 static.
7331
7332 2014-02-23 Yao Qi <yao@codesourcery.com>
7333
7334 * exec.c (section_table_read_available_memory): New function.
7335 * exec.h (section_table_read_available_memory): Declare.
7336 * ctf.c (ctf_xfer_partial): Call
7337 section_table_read_available_memory.
7338 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7339
7340 2014-02-23 Yao Qi <yao@codesourcery.com>
7341
7342 * ctf.c (ctf_xfer_partial): Move code to ...
7343 * exec.c (exec_read_partial_read_only): ... it. New function.
7344 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7345 * tracefile.c: Include "exec.h".
7346 * exec.h (exec_read_partial_read_only): Declare.
7347
7348 2014-02-23 Yao Qi <yao@codesourcery.com>
7349
7350 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7351 (tfile_has_memory): Remove.
7352 (init_tfile_ops): Don't set fields to_has_all_memory and
7353 to_has_memory of tfile_ops.
7354 * tracefile.c (tracefile_has_all_memory): New function.
7355 (tracefile_has_memory): New function.
7356 (init_tracefile_ops): Initialize fields to_has_all_memory and
7357 to_has_memory of 'ops'.
7358
7359 2014-02-23 Yao Qi <yao@codesourcery.com>
7360
7361 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7362 (ctf_thread_alive, ctf_get_trace_status): Remove.
7363 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7364 init_tracefile_ops.
7365 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7366 (tfile_has_stack, tfile_has_registers): Remove.
7367 (tfile_thread_alive): Remove.
7368 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7369 init_tracefile_ops.
7370 * tracefile.c (tracefile_has_stack): New function.
7371 (tracefile_has_registers): New function.
7372 (tracefile_thread_alive): New function.
7373 (tracefile_get_trace_status): New function.
7374 (init_tracefile_ops): New function.
7375 * tracefile.h (init_tracefile_ops): Declare.
7376
7377 2014-02-23 Yao Qi <yao@codesourcery.com>
7378
7379 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7380 (O_LARGEFILE): Likewise.
7381 (tfile_ops): Likewise.
7382 (TRACE_HEADER_SIZE): Likewise.
7383 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7384 (cur_data_size): Likewise.
7385 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7386 (tfile_close, tfile_files_info): Likewise.
7387 (tfile_get_trace_status): Likewise.
7388 (tfile_get_tracepoint_status): Likewise.
7389 (tfile_get_traceframe_address): Likewise.
7390 (tfile_trace_find, match_blocktype): Likewise.
7391 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7392 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7393 (tfile_get_trace_state_variable_value): Likewise.
7394 (tfile_has_all_memory, tfile_has_memory): Likewise.
7395 (tfile_has_stack, tfile_has_registers): Likewise.
7396 (tfile_thread_alive, build_traceframe_info): Likewise.
7397 (tfile_traceframe_info, init_tfile_ops): Likewise.
7398 (_initialize_tracepoint): Don't call init_tfile_ops
7399 and add_target_with_completer.
7400 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7401 exec.h, completer.h and filenames.h.
7402 (_initialize_tracefile_tfile): New function.
7403
7404 2014-02-23 Yao Qi <yao@codesourcery.com>
7405
7406 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7407 tracefile-tfile.o.
7408 (HFILES_NO_SRCDIR): Add tracefile.h.
7409 * ctf.c: Include "tracefile.h".
7410 * tracefile.h: New file.
7411 * tracefile.c: New file
7412 * tracefile-tfile.c: New file.
7413 * tracepoint.c: Include "tracefile.h".
7414 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7415 (stop_reason_names): Add const.
7416 (trace_file_writer_xfree): Move it to tracefile.c.
7417 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7418 (trace_save_ctf): Likewise.
7419 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7420 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7421 (tfile_write_header, tfile_write_regblock_type): Likewise.
7422 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7423 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7424 (tfile_write_raw_data, tfile_end): Likewise.
7425 (tfile_trace_file_writer_new): Likewise.
7426 (free_uploaded_tp): Make it extern.
7427 (free_uploaded_tsv): Make it extern.
7428 (_initialize_tracepoint): Move code to register command 'tsave'
7429 to tracefile.c.
7430 * tracepoint.h (stop_reason_names): Declare.
7431 (struct trace_frame_write_ops): Move it to tracefile.h.
7432 (struct trace_file_write_ops): Likewise.
7433 (struct trace_file_writer): Likewise.
7434 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7435
7436 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7437
7438 PR gdb/16594
7439 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7440 process name.
7441 (get_cores_used_by_process): New parameter num_cores, use it.
7442 (linux_xfer_osdata_processes): Pass num_cores to it.
7443 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7444 process name.
7445
7446 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7447
7448 * target.c (memory_xfer_partial): Fix length arg in call to
7449 breakpoint_xfer_memory.
7450
7451 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7452
7453 PR tdep/16397
7454 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7455 number comes after the + or - signs. Adjust length of register
7456 name to be extracted.
7457
7458 2014-02-20 Tom Tromey <tromey@redhat.com>
7459
7460 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7461 (ada_varobj_ops): Mark "extern".
7462
7463 2014-02-20 Tom Tromey <tromey@redhat.com>
7464
7465 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7466
7467 2014-02-20 Doug Evans <xdje42@gmail.com>
7468
7469 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7470 All callers updated.
7471 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7472 All callers updated.
7473 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7474 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7475
7476 2014-02-20 lin zuojian <manjian2006@gmail.com>
7477 Joel Brobecker <brobecker@adacore.com>
7478 Doug Evans <xdje42@gmail.com>
7479
7480 PR symtab/16581
7481 * dwarf2read.c (struct die_info): New member in_process.
7482 (reset_die_in_process): New function.
7483 (process_die): Set it at the start, reset when returning.
7484 (inherit_abstract_dies): Only call process_die if origin_child_die
7485 not already being processed.
7486
7487 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7488
7489 * windows-nat.c (handle_unload_dll): Add function documentation.
7490 (do_initial_windows_stuff): Add comment explaining why we wait
7491 until after inferior initialization has finished before
7492 processing all DLLs.
7493
7494 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7495
7496 * windows-nat.c (get_module_name): Delete.
7497 (windows_get_exec_module_filename): New function, mostly
7498 inspired from get_module_name.
7499 (windows_pid_to_exec_file): Replace call to get_module_name
7500 by call to windows_get_exec_module_filename.
7501
7502 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7503
7504 * windows-nat.c (handle_load_dll): Rewrite this function's
7505 introductory comment. Remove code using get_module_name
7506 to get the DLL's name.
7507
7508 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7509
7510 * windows-nat.c (get_windows_debug_event): Ignore
7511 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7512 if windows_initialization_done == 0.
7513 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7514 Adjust implementation to always load all DLLs.
7515 (do_initial_windows_stuff): Replace call to
7516 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7517
7518 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7519
7520 * windows-nat.c (_initialize_windows_nat): Deprecate the
7521 "dll-symbols" command. Turn the "add-shared-symbol-files"
7522 and "assf" aliases into commands, and deprecate them as well.
7523 * NEWS: Add entry explaining that "dll-symbols" and its two
7524 aliases are now deprecated.
7525
7526 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7527
7528 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7529 new-line in debug string. Remove trailing spaces.
7530
7531 2014-02-19 Stan Shebs <stan@codesourcery.com>
7532
7533 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7534
7535 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7536
7537 * NEWS: Add entry for the new feature
7538 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7539 and class values.
7540
7541 2014-02-19 Stan Shebs <stan@codesourcery.com>
7542
7543 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7544
7545 2014-02-19 Pedro Alves <palves@redhat.com>
7546
7547 * common/ptid.h (struct ptid): Mention that process_stratum
7548 targets should prefer ptid.lwp.
7549
7550 2014-02-19 Pedro Alves <palves@redhat.com>
7551
7552 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7553 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7554 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7555 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7556 store remote thread ids rather than ptid.tid.
7557 (_initialize_remote): Adjust.
7558
7559 2014-02-19 Tom Tromey <tromey@redhat.com>
7560
7561 * target.c (target_get_unwinder): Rewrite.
7562 (target_get_tailcall_unwinder): Rewrite.
7563 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7564 (record_btrace_to_get_tailcall_unwinder): New function.
7565 (init_record_btrace_ops): Update.
7566 * target.h (struct target_ops) <to_get_unwinder,
7567 to_get_tailcall_unwinder>: Now function pointers. Use
7568 TARGET_DEFAULT_RETURN.
7569
7570 2014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7573 argument.
7574 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7575
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7579 directly.
7580 * target-delegates.c: Rebuild.
7581 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7582 TARGET_DEFAULT_FUNC.
7583 * target.c (default_target_decr_pc_after_break): Rename from
7584 forward_target_decr_pc_after_break. Simplify.
7585 (target_decr_pc_after_break): Rely on delegation.
7586
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7588
7589 * target.c (update_current_target): Do not INHERIT to_doc or
7590 to_magic. Do not de_fault to_open or to_close.
7591
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * gcore.h (objfile_find_memory_regions): Declare.
7595 * gcore.c (objfile_find_memory_regions): No longer static. Add
7596 "self" argument.
7597 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7598 * exec.c: Include gcore.h.
7599 (exec_set_find_memory_regions): Remove.
7600 (exec_find_memory_regions): Remove.
7601 (exec_do_find_memory_regions): Remove.
7602 (init_exec_ops): Update.
7603 * defs.h (exec_set_find_memory_regions): Remove.
7604
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7606
7607 * target-delegates.c: Rebuild.
7608 * target.h (struct target_ops) <to_extra_thread_info,
7609 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7610 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7611 not 0, in TARGET_DEFAULT_RETURN.
7612
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7614
7615 * target.c (complete_target_initialization): Remove casts. Use
7616 return_zero_has_execution.
7617 (return_zero): Add "ignore" argument.
7618 (return_zero_has_execution): New function.
7619 (init_dummy_target): Remove casts. Use
7620 return_zero_has_execution.
7621
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target.c (update_current_target): Update comments. Do not
7625 INHERIT to_stratum.
7626
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7628
7629 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7630 needed.
7631 * corelow.c (core_read_description): Delegate when needed.
7632 * remote.c (remote_read_description): Delegate when needed.
7633 * target-delegates.c: Rebuild.
7634 * target.c (target_read_description): Rewrite.
7635 * target.h (struct target_ops) <to_read_description>: Update
7636 comment. Use TARGET_DEFAULT_RETURN.
7637
7638 2014-02-19 Tom Tromey <tromey@redhat.com>
7639
7640 * target-delegates.c: Rebuild.
7641 * target.c (update_current_target): Don't inherit or default
7642 to_can_run.
7643 (find_default_run_target): Check against delegate_can_run.
7644 * target.h (struct target_ops) <to_can_run>: Use
7645 TARGET_DEFAULT_RETURN.
7646
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7648
7649 * target-delegates.c: Rebuild.
7650 * target.c (target_disconnect): Unconditionally delegate.
7651 * target.h (struct target_ops) <to_disconnect>: Use
7652 TARGET_DEFAULT_NORETURN.
7653
7654 2014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * record.c (record_stop): Unconditionally delegate.
7657 * target-delegates.c: Rebuild.
7658 * target.c (target_stop_recording): Unconditionally delegate.
7659 * target.h (struct target_ops) <to_stop_recording>: Use
7660 TARGET_DEFAULT_IGNORE.
7661
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target-delegates.c: Rebuild.
7665 * target.c (target_enable_btrace): Unconditionally delegate.
7666 * target.h (struct target_ops) <to_enable_btrace>: Use
7667 TARGET_DEFAULT_NORETURN.
7668
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * target-delegates.c: Rebuild.
7672 * target.c (target_read_btrace): Unconditionally delegate.
7673 * target.h (struct target_ops) <to_read_btrace>: Use
7674 TARGET_DEFAULT_NORETURN.
7675
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * target-delegates.c: Rebuild.
7679 * target.c (target_teardown_btrace): Unconditionally delegate.
7680 * target.h (struct target_ops) <to_teardown_btrace>: Use
7681 TARGET_DEFAULT_NORETURN.
7682
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (target_disable_btrace): Unconditionally delegate.
7687 * target.h (struct target_ops) <to_disable_btrace>: Use
7688 TARGET_DEFAULT_NORETURN.
7689
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (default_search_memory): New function.
7694 (simple_search_memory): Update comment.
7695 (target_search_memory): Unconditionally delegate.
7696 * target.h (struct target_ops) <to_search_memory>: Use
7697 TARGET_DEFAULT_FUNC.
7698
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * auxv.c (default_auxv_parse): No longer static.
7702 (target_auxv_parse): Unconditionally delegate.
7703 * auxv.h (default_auxv_parse): Declare.
7704 * target-delegates.c: Rebuild.
7705 * target.c: Include auxv.h.
7706 * target.h (struct target_ops) <to_auxv_parse>: Use
7707 TARGET_DEFAULT_FUNC.
7708
7709 2014-02-19 Tom Tromey <tromey@redhat.com>
7710
7711 * target-delegates.c: Rebuild.
7712 * target.c (target_memory_map): Unconditionally delegate.
7713 * target.h (struct target_ops) <to_memory_map>: Use
7714 TARGET_DEFAULT_RETURN.
7715
7716 2014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target-delegates.c: Rebuild.
7719 * target.c (target_thread_alive): Unconditionally delegate.
7720 * target.h (struct target_ops) <to_thread_alive>: Use
7721 TARGET_DEFAULT_RETURN.
7722
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target-delegates.c: Rebuild.
7726 * target.c (target_save_record): Unconditionally delegate.
7727 * target.h (struct target_ops) <to_save_record>: Use
7728 TARGET_DEFAULT_NORETURN.
7729
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target-delegates.c: Rebuild.
7733 * target.c (target_delete_record): Unconditionally delegate.
7734 * target.h (struct target_ops) <to_delete_record>: Use
7735 TARGET_DEFAULT_NORETURN.
7736
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * target-delegates.c: Rebuild.
7740 * target.c (target_record_is_replaying): Unconditionally
7741 delegate.
7742 * target.h (struct target_ops) <to_record_is_replaying>: Use
7743 TARGET_DEFAULT_RETURN.
7744
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (target_goto_record_begin): Unconditionally delegate.
7749 * target.h (struct target_ops) <to_goto_record_begin>: Use
7750 TARGET_DEFAULT_NORETURN.
7751
7752 2014-02-19 Tom Tromey <tromey@redhat.com>
7753
7754 * target-delegates.c: Rebuild.
7755 * target.c (target_goto_record_end): Unconditionally delegate.
7756 * target.h (struct target_ops) <to_goto_record_end>: Use
7757 TARGET_DEFAULT_NORETURN.
7758
7759 2014-02-19 Tom Tromey <tromey@redhat.com>
7760
7761 * target-delegates.c: Rebuild.
7762 * target.c (target_goto_record): Unconditionally delegate.
7763 * target.h (struct target_ops) <to_goto_record>: Use
7764 TARGET_DEFAULT_NORETURN.
7765
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_insn_history): Unconditionally delegate.
7770 * target.h (struct target_ops) <to_insn_history>: Use
7771 TARGET_DEFAULT_NORETURN.
7772
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_insn_history_from): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_insn_history_from>: Use
7778 TARGET_DEFAULT_NORETURN.
7779
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_insn_history_range): Unconditionally delegate.
7784 * target.h (struct target_ops) <to_insn_history_range>: Use
7785 TARGET_DEFAULT_NORETURN.
7786
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7788
7789 * target-delegates.c: Rebuild.
7790 * target.c (target_call_history): Unconditionally delegate.
7791 * target.h (struct target_ops) <to_call_history>: Use
7792 TARGET_DEFAULT_NORETURN.
7793
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (target_call_history_from): Unconditionally delegate.
7798 * target.h (struct target_ops) <to_call_history_from>: Use
7799 TARGET_DEFAULT_NORETURN.
7800
7801 2014-02-19 Tom Tromey <tromey@redhat.com>
7802
7803 * target-delegates.c: Rebuild.
7804 * target.c (target_call_history_range): Unconditionally delegate.
7805 * target.h (struct target_ops) <to_call_history_range>: Use
7806 TARGET_DEFAULT_NORETURN.
7807
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7809
7810 * target-delegates.c: Rebuild.
7811 * target.c (target_verify_memory): Unconditionally delegate.
7812 * target.h (struct target_ops) <to_verify_memory>: Use
7813 TARGET_DEFAULT_NORETURN.
7814
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7816
7817 * target-delegates.c: Rebuild.
7818 * target.c (target_core_of_thread): Unconditionally delegate.
7819 * target.h (struct target_ops) <to_core_of_thread>: Use
7820 TARGET_DEFAULT_RETURN.
7821
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_flash_done): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_flash_done>: Use
7827 TARGET_DEFAULT_NORETURN.
7828
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7830
7831 * target-delegates.c: Rebuild.
7832 * target.c (target_flash_erase): Unconditionally delegate.
7833 * target.h (struct target_ops) <to_flash_erase>: Use
7834 TARGET_DEFAULT_NORETURN.
7835
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7837
7838 * target-delegates.c: Rebuild.
7839 * target.c (target_get_section_table): Unconditionally delegate.
7840 * target.h (struct target_ops) <to_get_section_table>: Use
7841 TARGET_DEFAULT_RETURN.
7842
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * target-delegates.c: Rebuild.
7846 * target.c (target_pid_to_str): Unconditionally delegate.
7847 (init_dummy_target): Don't initialize to_pid_to_str.
7848 (default_pid_to_str): Rename from dummy_pid_to_str.
7849 * target.h (struct target_ops) <to_pid_to_str>: Use
7850 TARGET_DEFAULT_FUNC.
7851
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7853
7854 * target-delegates.c: Rebuild.
7855 * target.c (target_find_new_threads): Unconditionally delegate.
7856 * target.h (struct target_ops) <to_find_new_threads>: Use
7857 TARGET_DEFAULT_RETURN.
7858
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7860
7861 * target-delegates.c: Rebuild.
7862 * target.c (target_program_signals): Unconditionally delegate.
7863 * target.h (struct target_ops) <to_program_signals>: Use
7864 TARGET_DEFAULT_IGNORE.
7865
7866 2014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (target_pass_signals): Unconditionally delegate.
7870 * target.h (struct target_ops) <to_pass_signals>: Use
7871 TARGET_DEFAULT_IGNORE.
7872
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target-delegates.c: Rebuild.
7876 * target.c (default_mourn_inferior): New function.
7877 (target_mourn_inferior): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_mourn_inferior>: Use
7879 TARGET_DEFAULT_FUNC.
7880
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (default_follow_fork): New function.
7885 (target_follow_fork): Unconditionally delegate.
7886 * target.h (struct target_ops) <to_follow_fork>: Use
7887 TARGET_DEFAULT_FUNC.
7888
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * target-delegates.c: Rebuild.
7892 * target.c (target_kill): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_kill>: Use
7894 TARGET_DEFAULT_NORETURN.
7895
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (target_masked_watch_num_registers): Unconditionally
7900 delegate.
7901 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7902 Use TARGET_DEFAULT_RETURN.
7903
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_remove_mask_watchpoint): Unconditionally
7908 delegate.
7909 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7910 TARGET_DEFAULT_RETURN.
7911
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target-delegates.c: Rebuild.
7915 * target.c (target_insert_mask_watchpoint): Unconditionally
7916 delegate.
7917 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7918 TARGET_DEFAULT_RETURN.
7919
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7921
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_ranged_break_num_registers): Unconditionally
7924 delegate.
7925 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7926 Use TARGET_DEFAULT_RETURN.
7927
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7929
7930 * target-delegates.c: Rebuild.
7931 * target.c (target_fetch_registers): Unconditionally delegate.
7932 * target.h (struct target_ops) <to_fetch_registers>: Use
7933 TARGET_DEFAULT_NORETURN.
7934
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7939 to_stop.
7940 * target.h (struct target_ops) <to_stop>: Use
7941 TARGET_DEFAULT_IGNORE.
7942
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7947 to_can_run_breakpoint_commands.
7948 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7949 Use TARGET_DEFAULT_RETURN.
7950
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7952
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7955 to_supports_evaluation_of_breakpoint_conditions.
7956 * target.h (struct target_ops)
7957 <to_supports_evaluation_of_breakpoint_conditions>: Use
7958 TARGET_DEFAULT_RETURN.
7959
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7961
7962 * target-delegates.c: Rebuild.
7963 * target.c (update_current_target): Don't inherit or default
7964 to_augmented_libraries_svr4_read.
7965 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7966 Use TARGET_DEFAULT_RETURN.
7967
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7969
7970 * target-delegates.c: Rebuild.
7971 * target.c (update_current_target): Don't inherit or default
7972 to_can_use_agent.
7973 * target.h (struct target_ops) <to_can_use_agent>: Use
7974 TARGET_DEFAULT_RETURN.
7975
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7977
7978 * target-delegates.c: Rebuild.
7979 * target.c (update_current_target): Don't inherit or default
7980 to_use_agent.
7981 * target.h (struct target_ops) <to_use_agent>: Use
7982 TARGET_DEFAULT_NORETURN.
7983
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7985
7986 * target-delegates.c: Rebuild.
7987 * target.c (update_current_target): Don't inherit or default
7988 to_traceframe_info.
7989 (return_null): Remove.
7990 * target.h (struct target_ops) <to_traceframe_info>: Use
7991 TARGET_DEFAULT_RETURN.
7992
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_static_tracepoint_markers_by_strid.
7998 * target.h (struct target_ops)
7999 <to_static_tracepoint_markers_by_strid>: Use
8000 TARGET_DEFAULT_NORETURN.
8001
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8003
8004 * target-delegates.c: Rebuild.
8005 * target.c (update_current_target): Don't inherit or default
8006 to_static_tracepoint_marker_at.
8007 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8008 Use TARGET_DEFAULT_RETURN.
8009
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8011
8012 * target-delegates.c: Rebuild.
8013 * target.c (update_current_target): Don't inherit or default
8014 to_set_permissions.
8015 * target.h (struct target_ops) <to_set_permissions>: Use
8016 TARGET_DEFAULT_IGNORE.
8017
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_get_tib_address.
8023 * target.h (struct target_ops) <to_get_tib_address>: Use
8024 TARGET_DEFAULT_NORETURN.
8025
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8030 to_set_trace_notes.
8031 * target.h (struct target_ops) <to_set_trace_notes>: Use
8032 TARGET_DEFAULT_RETURN.
8033
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't initialize
8038 to_set_trace_buffer_size.
8039 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8040 TARGET_DEFAULT_IGNORE.
8041
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8043
8044 * target-delegates.c: Rebuild.
8045 * target.c (update_current_target): Don't inherit or default
8046 to_set_circular_trace_buffer.
8047 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8048 TARGET_DEFAULT_IGNORE.
8049
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8051
8052 * target-delegates.c: Rebuild.
8053 * target.c (update_current_target): Don't inherit or default
8054 to_set_disconnected_tracing.
8055 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8056 TARGET_DEFAULT_IGNORE.
8057
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target-delegates.c: Rebuild.
8061 * target.c (update_current_target): Don't inherit or default
8062 to_get_min_fast_tracepoint_insn_len.
8063 (return_minus_one): Remove.
8064 * target.h (struct target_ops)
8065 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8066
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8068
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8071 to_get_raw_trace_data.
8072 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8073 TARGET_DEFAULT_NORETURN.
8074
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * target-delegates.c: Rebuild.
8078 * target.c (update_current_target): Don't inherit or default
8079 to_upload_trace_state_variables.
8080 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8081 Use TARGET_DEFAULT_RETURN.
8082
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8084
8085 * target-delegates.c: Rebuild.
8086 * target.c (update_current_target): Don't inherit or default
8087 to_upload_tracepoints.
8088 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8089 TARGET_DEFAULT_RETURN.
8090
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (update_current_target): Don't inherit or default
8095 to_save_trace_data.
8096 * target.h (struct target_ops) <to_save_trace_data>: Use
8097 TARGET_DEFAULT_NORETURN.
8098
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (update_current_target): Don't inherit or default
8103 to_get_trace_state_variable_value.
8104 * target.h (struct target_ops)
8105 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8106
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (update_current_target): Don't inherit or default
8111 to_trace_find.
8112 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8113
8114 2014-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_trace_stop.
8119 * target.h (struct target_ops) <to_trace_stop>: Use
8120 TARGET_DEFAULT_NORETURN.
8121
8122 2014-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_get_tracepoint_status.
8127 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8128 TARGET_DEFAULT_NORETURN.
8129
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8131
8132 * target-delegates.c: Rebuild.
8133 * target.c (update_current_target): Don't inherit or default
8134 to_get_trace_status.
8135 * target.h (struct target_ops) <to_get_trace_status>: Use
8136 TARGET_DEFAULT_RETURN.
8137
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8139
8140 * target-delegates.c: Rebuild.
8141 * target.c (update_current_target): Don't inherit or default
8142 to_trace_start.
8143 * target.h (struct target_ops) <to_trace_start>: Use
8144 TARGET_DEFAULT_NORETURN.
8145
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target-delegates.c: Rebuild.
8149 * target.c (update_current_target): Don't inherit or default
8150 to_trace_set_readonly_regions.
8151 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8152 Use TARGET_DEFAULT_NORETURN.
8153
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8155
8156 * target-delegates.c: Rebuild.
8157 * target.c (update_current_target): Don't inherit or default
8158 to_disable_tracepoint.
8159 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8160 TARGET_DEFAULT_NORETURN.
8161
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target-delegates.c: Rebuild.
8165 * target.c (update_current_target): Don't inherit or default
8166 to_enable_tracepoint.
8167 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8168 TARGET_DEFAULT_NORETURN.
8169
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (update_current_target): Don't inherit or default
8174 to_download_trace_state_variable.
8175 * target.h (struct target_ops) <to_download_trace_state_variable>:
8176 Use TARGET_DEFAULT_NORETURN.
8177
8178 2014-02-19 Tom Tromey <tromey@redhat.com>
8179
8180 * target-delegates.c: Rebuild.
8181 * target.c (update_current_target): Don't inherit or default
8182 to_can_download_tracepoint.
8183 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8184 TARGET_DEFAULT_RETURN.
8185
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8187
8188 * target-delegates.c: Rebuild.
8189 * target.c (update_current_target): Don't inherit or default
8190 to_download_tracepoint.
8191 * target.h (struct target_ops) <to_download_tracepoint>: Use
8192 TARGET_DEFAULT_NORETURN.
8193
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target-delegates.c: Rebuild.
8197 * target.c (update_current_target): Don't inherit or default
8198 to_trace_init.
8199 * target.h (struct target_ops) <to_trace_init>: Use
8200 TARGET_DEFAULT_RETURN.
8201
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.c (update_current_target): Don't inherit or default
8206 to_supports_string_tracing.
8207 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8208 TARGET_DEFAULT_RETURN.
8209
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8211
8212 * target-delegates.c: Rebuild.
8213 * target.c (update_current_target): Don't inherit or default
8214 to_supports_enable_disable_tracepoint.
8215 * target.h (struct target_ops)
8216 <to_supports_enable_disable_tracepoint>: Use
8217 TARGET_DEFAULT_RETURN.
8218
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target-delegates.c: Rebuild.
8222 * target.c (update_current_target): Don't inherit or default
8223 to_supports_multi_process.
8224 * target.h (struct target_ops) <to_supports_multi_process>: Use
8225 TARGET_DEFAULT_RETURN.
8226
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target-delegates.c: Rebuild.
8230 * target.c (update_current_target): Don't inherit or default
8231 to_get_ada_task_ptid.
8232 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8233 TARGET_DEFAULT_FUNC.
8234
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_thread_architecture.
8240 * target.h (struct target_ops) <to_thread_architecture>: Use
8241 TARGET_DEFAULT_FUNC.
8242
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (update_current_target): Don't inherit or default
8247 to_execution_direction.
8248 * target.h (struct target_ops) <to_execution_direction>: Use
8249 TARGET_DEFAULT_FUNC.
8250
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8255 to_can_execute_reverse.
8256 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8257 TARGET_DEFAULT_RETURN.
8258 (target_can_execute_reverse): Unconditionally delegate.
8259
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_goto_bookmark.
8265 (dummy_goto_bookmark): Remove.
8266 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8267 * target.h (struct target_ops) <to_goto_bookmark>: Use
8268 TARGET_DEFAULT_NORETURN.
8269
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_get_bookmark.
8275 (dummy_get_bookmark): Remove.
8276 (init_dummy_target): Don't inherit or default to_get_bookmark.
8277 * target.h (struct target_ops) <to_get_bookmark>: Use
8278 TARGET_DEFAULT_NORETURN
8279
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8284 to_make_corefile_notes.
8285 (init_dummy_target): Don't initialize to_make_corefile_notes.
8286 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8287 TARGET_DEFAULT_FUNC.
8288
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8293 to_find_memory_regions.
8294 (init_dummy_target): Don't initialize to_find_memory_regions.
8295 * target.h (struct target_ops) <to_find_memory_regions>: Use
8296 TARGET_DEFAULT_FUNC.
8297
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_log_command.
8303 * target.h (struct target_ops) <to_log_command>: Use
8304 TARGET_DEFAULT_IGNORE.
8305 (target_log_command): Unconditionally delegate.
8306
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't inherit or default
8311 to_pid_to_exec_file.
8312 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8313 TARGET_DEFAULT_RETURN.
8314
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_thread_name.
8320 (target_thread_name): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_thread_name>: Use
8322 TARGET_DEFAULT_RETURN.
8323
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't inherit or default
8328 to_extra_thread_info.
8329 * target.h (struct target_ops) <to_extra_thread_info>: Use
8330 TARGET_DEFAULT_RETURN.
8331
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_has_exited.
8337 * target.h (struct target_ops) <to_has_exited>: Use
8338 TARGET_DEFAULT_RETURN..
8339
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_set_syscall_catchpoint.
8345 (return_one): Remove.
8346 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8347 TARGET_DEFAULT_RETURN.
8348
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target-delegates.c: Rebuild.
8352 * target.c (update_current_target): Don't inherit or default
8353 to_insert_exec_catchpoint.
8354 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8355 TARGET_DEFAULT_RETURN.
8356
8357 2014-01-08 Tom Tromey <tromey@redhat.com>
8358
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_insert_exec_catchpoint.
8362 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8363 TARGET_DEFAULT_RETURN.
8364
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target-delegates.c: Rebuild.
8368 * target.c (update_current_target): Don't inherit or default
8369 to_remove_vfork_catchpoint.
8370 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8371 TARGET_DEFAULT_RETURN.
8372
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_insert_vfork_catchpoint.
8378 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8379 TARGET_DEFAULT_RETURN.
8380
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8382
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_remove_fork_catchpoint.
8386 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8387 TARGET_DEFAULT_RETURN.
8388
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_insert_fork_catchpoint.
8394 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8395 TARGET_DEFAULT_RETURN.
8396
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8401 to_post_startup_inferior.
8402 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8403 TARGET_DEFAULT_IGNORE.
8404
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target-delegates.c: Rebuild.
8408 * target.c (update_current_target): Don't inherit or default
8409 to_load.
8410 * target.h (struct target_ops) <to_load>: Use
8411 TARGET_DEFAULT_NORETURN.
8412
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8414
8415 * target-delegates.c: Rebuild.
8416 * target.c (update_current_target): Don't inherit or default
8417 to_terminal_info.
8418 * target.h (struct target_ops) <to_terminal_info>: Use
8419 TARGET_DEFAULT_FUNC.
8420
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8422
8423 * target-delegates.c: Rebuild.
8424 * target.c (update_current_target): Don't inherit or default
8425 to_terminal_save_ours.
8426 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8427 TARGET_DEFAULT_IGNORE.
8428
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_terminal_ours.
8434 * target.h (struct target_ops) <to_terminal_ours>: Use
8435 TARGET_DEFAULT_IGNORE.
8436
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_terminal_ours_for_output.
8442 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8443 TARGET_DEFAULT_IGNORE.
8444
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8449 to_terminal_inferior.
8450 * target.h (struct target_ops) <to_terminal_inferior>: Use
8451 TARGET_DEFAULT_IGNORE.
8452
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_terminal_init.
8458 * target.h (struct target_ops) <to_terminal_init>: Use
8459 TARGET_DEFAULT_IGNORE.
8460
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8462
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_can_accel_watchpoint_condition.
8466 * target.h (struct target_ops)
8467 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8468
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_region_ok_for_hw_watchpoint.
8474 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8475 Use TARGET_DEFAULT_FUNC.
8476
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8481 to_watchpoint_addr_within_range.
8482 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8483 Use TARGET_DEFAULT_FUNC.
8484
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8489 to_remove_watchpoint.
8490 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8491 TARGET_DEFAULT_NORETURN.
8492
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target-delegates.c: Rebuild.
8496 * target.c (update_current_target): Don't inherit or default
8497 to_insert_watchpoint.
8498 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8499 TARGET_DEFAULT_RETURN.
8500
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target-delegates.c: Rebuild.
8504 * target.c (update_current_target): Don't inherit or default
8505 to_remove_hw_breakpoint.
8506 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8507 TARGET_DEFAULT_RETURN.
8508
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_insert_hw_breakpoint.
8514 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8515 TARGET_DEFAULT_RETURN.
8516
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8521 to_can_use_hw_breakpoint.
8522 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8523 TARGET_DEFAULT_RETURN.
8524
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8529 to_files_info.
8530 * target.h (struct target_ops) <to_files_info>: Use
8531 TARGET_DEFAULT_IGNORE.
8532
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_store.
8538 * target.h (struct target_ops) <to_store>: Use
8539 TARGET_DEFAULT_NORETURN.
8540
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_post_attach.
8546 * target.h (struct target_ops) <to_post_attach>: Use
8547 TARGET_DEFAULT_IGNORE.
8548
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8553 to_rcmd.
8554 (default_rcmd): New function.
8555 (do_monitor_command): Unconditionally delegate.
8556 * target.h (struct target_ops) <to_rmcd>: Use
8557 TARGET_DEFAULT_FUNC.
8558
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target-delegates.c: Rebuild.
8562 * target.c (init_dummy_target): Don't initialize to_attach.
8563 (target_attach): Unconditionally delegate.
8564 * target.h (struct target_ops) <to_attach>: Use
8565 TARGET_DEFAULT_FUNC.
8566
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target-delegates.c: Rebuild.
8570 * target.c (target_detach): Unconditionally delegate.
8571 (init_dummy_target): Don't initialize to_detach.
8572 * target.h (struct target_ops) <to_detach>: Use
8573 TARGET_DEFAULT_IGNORE.
8574
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8578 Add argument.
8579 (target_augmented_libraries_svr4_read): Add argument.
8580 * target.c (update_current_target): Update.
8581 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8582 argument.
8583
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target.h (struct target_ops) <to_call_history_range>: Add
8587 argument.
8588 * target.c (target_call_history_range): Add argument.
8589 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8590 argument.
8591 (record_btrace_call_history_from): Update.
8592
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target.h (struct target_ops) <to_call_history_from>: Add
8596 argument.
8597 * target.c (target_call_history_from): Add argument.
8598 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8599 argument.
8600
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target.h (struct target_ops) <to_call_history>: Add argument.
8604 * target.c (target_call_history): Add argument.
8605 * record-btrace.c (record_btrace_call_history): Add 'self'
8606 argument.
8607
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target.h (struct target_ops) <to_insn_history_range>: Add
8611 argument.
8612 * target.c (target_insn_history_range): Add argument.
8613 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8614 argument.
8615 (record_btrace_insn_history_from): Update.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target.h (struct target_ops) <to_insn_history_from>: Add
8620 argument.
8621 * target.c (target_insn_history_from): Add argument.
8622 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8623 argument.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target.h (struct target_ops) <to_insn_history>: Add argument.
8628 * target.c (target_insn_history): Add argument.
8629 * record-btrace.c (record_btrace_insn_history): Add 'self'
8630 argument.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target.h (struct target_ops) <to_goto_record>: Add argument.
8635 * target.c (target_goto_record): Add argument.
8636 * record-full.c (record_full_goto): Add 'self' argument.
8637 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8642 * target.c (target_goto_record_end): Add argument.
8643 * record-full.c (record_full_goto_end): Add 'self' argument.
8644 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target.h (struct target_ops) <to_goto_record_begin>: Add
8649 argument.
8650 * target.c (target_goto_record_begin): Add argument.
8651 * record-full.c (record_full_goto_begin): Add 'self' argument.
8652 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8653 argument.
8654
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target.h (struct target_ops) <to_record_is_replaying>: Add
8658 argument.
8659 * target.c (target_record_is_replaying): Add argument.
8660 * record-full.c (record_full_is_replaying): Add 'self' argument.
8661 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8662 argument.
8663 (record_btrace_xfer_partial, record_btrace_store_registers)
8664 (record_btrace_prepare_to_store, record_btrace_resume)
8665 (record_btrace_wait, record_btrace_decr_pc_after_break)
8666 (record_btrace_find_new_threads, record_btrace_thread_alive):
8667 Update.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target.h (struct target_ops) <to_delete_record>: Add argument.
8672 * target.c (target_delete_record): Add argument.
8673 * record-full.c (record_full_delete): Add 'self' argument.
8674
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target.h (struct target_ops) <to_save_record>: Add argument.
8678 * target.c (target_save_record): Add argument.
8679 * record-full.c (record_full_save): Add 'self' argument.
8680 (record_full_save): Add 'self' argument.
8681
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target.h (struct target_ops) <to_info_record>: Add argument.
8685 * target.c (target_info_record): Add argument.
8686 * record.c (info_record_command): Add argument.
8687 * record-full.c (record_full_info): Add 'self' argument.
8688 * record-btrace.c (record_btrace_info): Add 'self' argument.
8689
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8693 * target.c (target_stop_recording): Add argument.
8694 * record.c (record_stop): Add argument.
8695 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8696 argument.
8697
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8701 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8702 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8703 argument.
8704 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8705 (_initialize_amd64_linux_nat): Use it.
8706 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8707 (_initialize_i386_linux_nat): Use it.
8708
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8712 * target.c (target_teardown_btrace): Add argument.
8713 * remote.c (remote_teardown_btrace): Add 'self' argument.
8714 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8715 argument.
8716 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8717 argument.
8718
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8722 * target.c (target_disable_btrace): Add argument.
8723 * remote.c (remote_disable_btrace): Add 'self' argument.
8724 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8725 argument.
8726 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8727 argument.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8732 * target.c (target_enable_btrace): Add argument.
8733 * remote.c (remote_enable_btrace): Add 'self' argument.
8734 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8735 argument.
8736 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8737 argument.
8738
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8742 (target_can_use_agent): Add argument.
8743 * target.c (update_current_target): Update.
8744 * remote.c (remote_can_use_agent): Add 'self' argument.
8745 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8746
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target.h (struct target_ops) <to_use_agent>: Add argument.
8750 (target_use_agent): Add argument.
8751 * target.c (update_current_target): Update.
8752 * remote.c (remote_use_agent): Add 'self' argument.
8753 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8754
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8758 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8759 (target_traceframe_info): Add argument.
8760 * target.c (update_current_target): Update.
8761 * remote.c (remote_traceframe_info): Add 'self' argument.
8762 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target.h (target_static_tracepoint_markers_by_strid): Add
8767 argument.
8768 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8769 'self' argument.
8770 * target.c (update_current_target): Update.
8771 * remote.c (struct target_ops)
8772 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8773 * linux-nat.c (struct target_ops)
8774 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8779 Add argument.
8780 (target_static_tracepoint_marker_at): Add argument.
8781 * target.c (update_current_target): Update.
8782 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8783 argument.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8788 (target_set_permissions): Add argument.
8789 * target.c (update_current_target): Update.
8790 * remote.c (remote_set_permissions): Add 'self' argument.
8791 (remote_start_remote): Update.
8792
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8796 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8797 (target_get_tib_address): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_get_tib_address): Add 'self' argument.
8800
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8804 (target_set_trace_notes): Add argument.
8805 * target.c (update_current_target): Update.
8806 * remote.c (remote_set_trace_notes): Add 'self' argument.
8807
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8811 argument.
8812 (target_set_trace_buffer_size): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8815
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8819 argument.
8820 (target_set_circular_trace_buffer): Add argument.
8821 * target.c (update_current_target): Update.
8822 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8823 argument.
8824
8825 2014-02-19 Tom Tromey <tromey@redhat.com>
8826
8827 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8828 argument.
8829 (target_set_disconnected_tracing): Add argument.
8830 * target.c (update_current_target): Update.
8831 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target.h (struct target_ops)
8836 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8837 (target_get_min_fast_tracepoint_insn_len): Add argument.
8838 * target.c (update_current_target): Update.
8839 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8840 argument.
8841
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8845 argument.
8846 (target_get_raw_trace_data): Add argument.
8847 * target.c (update_current_target): Update.
8848 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8849
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8853 Add argument.
8854 (target_upload_trace_state_variables): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_upload_trace_state_variables): Add 'self'
8857 argument.
8858 (remote_start_remote): Update.
8859
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8863 argument.
8864 (target_upload_tracepoints): Add argument.
8865 * target.c (update_current_target): Update.
8866 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8867 (remote_start_remote): Update.
8868
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8872 (target_save_trace_data): Add argument.
8873 * target.c (update_current_target): Update.
8874 * remote.c (remote_save_trace_data): Add 'self' argument.
8875
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8879 argument.
8880 * target.h (struct target_ops)
8881 <to_get_trace_state_variable_value>: Add argument.
8882 (target_get_trace_state_variable_value): Add argument.
8883 * target.c (update_current_target): Update.
8884 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8885 argument.
8886 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8887
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8891 * target.h (struct target_ops) <to_trace_find>: Add argument.
8892 (target_trace_find): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_trace_find): Add 'self' argument.
8895 * ctf.c (ctf_trace_find): Add 'self' argument.
8896
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8900 (target_trace_stop): Add argument.
8901 * target.c (update_current_target): Update.
8902 * remote.c (remote_trace_stop): Add 'self' argument.
8903
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8907 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8908 argument.
8909 (target_get_tracepoint_status): Add argument.
8910 * target.c (update_current_target): Update.
8911 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8916 * target.h (struct target_ops) <to_get_trace_status>: Add
8917 argument.
8918 (target_get_trace_status): Add argument.
8919 * target.c (update_current_target): Update.
8920 * remote.c (remote_get_trace_status): Add 'self' argument.
8921 (remote_start_remote, remote_can_download_tracepoint): Update.
8922 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8923
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target.h (struct target_ops) <to_trace_start>: Add argument.
8927 (target_trace_start): Add argument.
8928 * target.c (update_current_target): Update.
8929 * remote.c (remote_trace_start): Add 'self' argument.
8930
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8934 Add argument.
8935 (target_trace_set_readonly_regions): Add argument.
8936 * target.c (update_current_target): Update.
8937 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8938 argument.
8939
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8943 argument.
8944 (target_disable_tracepoint): Add argument.
8945 * target.c (update_current_target): Update.
8946 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8951 argument.
8952 (target_enable_tracepoint): Add argument.
8953 * target.c (update_current_target): Update.
8954 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target.h (struct target_ops) <to_download_trace_state_variable>:
8959 Add argument.
8960 (target_download_trace_state_variable): Add argument.
8961 * target.c (update_current_target): Update.
8962 * remote.c (remote_download_trace_state_variable): Add 'self'
8963 argument.
8964
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8968 argument.
8969 (target_can_download_tracepoint): Add argument.
8970 * target.c (update_current_target): Update.
8971 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target.h (struct target_ops) <to_download_tracepoint>: Add
8976 argument.
8977 (target_download_tracepoint): Add argument.
8978 * target.c (update_current_target): Update.
8979 * remote.c (remote_download_tracepoint): Add 'self' argument.
8980
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_trace_init>: Add argument.
8984 (target_trace_init): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_trace_init): Add 'self' argument.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8991 * target.c (target_fileio_readlink): Add argument.
8992 * remote.c (remote_hostio_readlink): Add 'self' argument.
8993 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8998 * target.c (target_fileio_unlink): Add argument.
8999 * remote.c (remote_hostio_unlink): Add 'self' argument.
9000 (remote_file_delete): Update.
9001 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9006 * target.c (target_fileio_close): Add argument.
9007 * remote.c (remote_hostio_close): Add 'self' argument.
9008 (remote_hostio_close_cleanup): Update.
9009 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9010 Update.
9011 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9016 * target.c (target_fileio_pread): Add argument.
9017 * remote.c (remote_hostio_pread): Add 'self' argument.
9018 (remote_bfd_iovec_pread, remote_file_get): Update.
9019 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9020
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9024 * target.c (target_fileio_pwrite): Add argument.
9025 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9026 (remote_file_put): Update.
9027 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9028
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9032 * target.c (target_fileio_open): Add argument.
9033 * remote.c (remote_hostio_open): Add 'self' argument.
9034 (remote_bfd_iovec_open): Add 'self' argument.
9035 (remote_file_put): Add 'self' argument.
9036 (remote_file_get): Add 'self' argument.
9037 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9038
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9042 Add argument.
9043 (target_can_run_breakpoint_commands): Add argument.
9044 * target.c (update_current_target): Update.
9045 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9046 argument.
9047 (remote_insert_breakpoint): Add 'self' argument.
9048 (remote_insert_hw_breakpoint): Add 'self' argument.
9049 (remote_can_run_breakpoint_commands): Add 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops)
9054 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9055 (target_supports_evaluation_of_breakpoint_conditions): Add
9056 argument.
9057 * target.c (update_current_target): Update.
9058 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9059 argument.
9060 (remote_insert_breakpoint): Add 'self' argument.
9061 (remote_insert_hw_breakpoint): Add 'self' argument.
9062 (remote_supports_cond_breakpoints): Add 'self' argument.
9063
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9067 argument.
9068 (target_supports_string_tracing): Add argument.
9069 * target.c (update_current_target): Update.
9070 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9071
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target.h (struct target_ops)
9075 <to_supports_disable_randomization>: Add argument.
9076 * target.c (find_default_supports_disable_randomization): Add
9077 argument.
9078 (target_supports_disable_randomization): Add argument.
9079 (find_default_supports_disable_randomization): Add 'self'
9080 argument.
9081 * remote.c (extended_remote_supports_disable_randomization): Add
9082 'self' argument.
9083 (remote_supports_disable_randomization): Add 'self' argument.
9084 (extended_remote_create_inferior): Update.
9085 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9086 'self' argument.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops)
9091 <to_supports_enable_disable_tracepoint>: Add argument.
9092 (target_supports_enable_disable_tracepoint): Add argument.
9093 * target.c (update_current_target): Update.
9094 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9095 argument.
9096
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target.h (struct target_ops) <to_supports_multi_process>: Add
9100 argument.
9101 (target_supports_multi_process): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_supports_multi_process): Add 'self' argument.
9104 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9105 argument.
9106 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9107 argument.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target.h (struct target_ops) <to_execution_direction>: Add
9112 argument.
9113 (target_execution_direction): Add argument.
9114 * target.c (default_execution_direction): Add 'self' argument.
9115 * record-full.c (record_full_execution_direction): Add 'self'
9116 argument.
9117
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9121 argument.
9122 (target_can_execute_reverse): Add argument.
9123 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9124 * record-full.c (record_full_can_execute_reverse): Add 'self'
9125 argument.
9126 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9127 argument.
9128
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9132 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9133 argument.
9134 (target_get_ada_task_ptid): Add argument.
9135 * target.c (update_current_target): Update.
9136 (default_get_ada_task_ptid): Add 'self' argument.
9137 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9138 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9139 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9140 argument.
9141 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9142 argument.
9143 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9144 argument.
9145 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9146 argument.
9147 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9148 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9149 argument.
9150
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9154 (target_goto_bookmark): Add argument.
9155 * target.c (dummy_goto_bookmark): Add 'self' argument.
9156 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9161 (target_get_bookmark): Add argument.
9162 * target.c (dummy_get_bookmark): Add 'self' argument.
9163 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9168 argument.
9169 (target_make_corefile_notes): Add argument.
9170 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9171 * procfs.c (procfs_make_note_section): Add 'self' argument.
9172 (procfs_make_note_section): Add 'self' argument.
9173 (procfs_make_note_section): Add 'self' argument.
9174 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9175 argument.
9176 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9177 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9178 * exec.c (exec_make_note_section): Add 'self' argument.
9179 (exec_make_note_section): Add 'self' argument.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_find_memory_regions>: Add
9184 argument.
9185 (target_find_memory_regions): Add argument.
9186 * target.c (dummy_find_memory_regions): Add 'self' argument.
9187 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9188 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9189 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9190 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9191 * exec. (exec_do_find_memory_regions): New global.
9192 (exec_set_find_memory_regions): Rewrite.
9193 (exec_find_memory_regions): New function.
9194 (init_exec_ops): Use exec_find_memory_regions.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_supports_non_stop>: Add
9199 argument.
9200 * target.c (find_default_supports_non_stop): Add argument.
9201 (target_supports_non_stop): Add argument.
9202 (find_default_supports_non_stop): Add 'self' argument.
9203 * remote.c (remote_supports_non_stop): Add 'self' argument.
9204 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9205
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.h (struct target_ops) <to_log_command>: Add argument.
9209 (target_log_command): Add argument.
9210 * serial.h (serial_log_command): Add 'self' argument.
9211 * serial.c (serial_log_command): Add 'self' argument.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9216 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9217 argument.
9218 (target_pid_to_exec_file): Add argument.
9219 * target.c (debug_to_pid_to_exec_file): Add argument.
9220 (update_current_target): Update.
9221 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9222 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9223 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9224 (linux_handle_extended_wait): Update.
9225 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9226 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9227 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9228 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9229
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_rcmd>: Add argument.
9233 (target_rcmd): Add argument.
9234 * target.c (debug_to_rcmd): Add argument.
9235 (update_current_target, do_monitor_command): Update.
9236 * remote.c (remote_rcmd): Add 'self' argument.
9237 * monitor.c (monitor_rcmd): Add 'self' argument.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * windows-nat.c (windows_stop): Add 'self' argument.
9242 * target.h (struct target_ops) <to_stop>: Add argument.
9243 * target.c (target_stop): Add argument.
9244 (debug_to_stop): Add argument.
9245 (update_current_target): Update.
9246 * remote.c (remote_stop): Add 'self' argument.
9247 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9248 (gdbsim_cntrl_c): Update.
9249 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9250 * procfs.c (procfs_stop): Add 'self' argument.
9251 * nto-procfs.c (procfs_stop): Add 'self' argument.
9252 * monitor.c (monitor_stop): Add 'self' argument.
9253 (monitor_open): Update.
9254 * linux-nat.c (linux_nat_stop): Add argument.
9255 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9256 * gnu-nat.c (gnu_stop): Add 'self' argument.
9257 * darwin-nat.c (darwin_stop): Add 'self' argument.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_thread_name>: Add argument.
9262 * target.c (target_thread_name): Add argument.
9263 (update_current_target): Update.
9264 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9265
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_extra_thread_info>: Add
9269 argument.
9270 (target_extra_thread_info): Add argument.
9271 * target.c (update_current_target): Update.
9272 * remote.c (remote_threads_extra_info): Add 'self' argument.
9273 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9274 argument.
9275 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9276 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9277 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9278 argument.
9279 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9280 argument.
9281 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9282 argument.
9283 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9284 argument.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target.h (struct target_ops) <to_program_signals>: Add argument.
9289 * target.c (target_program_signals): Add argument.
9290 * remote.c (remote_program_signals): Add 'self' argument.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9295 * target.c (target_pass_signals): Add argument.
9296 * remote.c (remote_pass_signals): Add 'self' argument.
9297 (remote_start_remote): Update.
9298 * procfs.c (procfs_pass_signals): Add 'self' argument.
9299 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9300 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9301 (linux_nat_create_inferior, linux_nat_attach): Update.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * windows-nat.c (windows_can_run): Add 'self' argument.
9306 * target.h (struct target_ops) <to_can_run>: Add argument.
9307 (target_can_run): Add argument.
9308 * target.c (debug_to_can_run): Add argument.
9309 (update_current_target): Update.
9310 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9311 * inf-child.c (inf_child_can_run): Add 'self' argument.
9312 * go32-nat.c (go32_can_run): Add 'self' argument.
9313
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * target.h (struct target_ops) <to_has_exited>: Add argument.
9317 (target_has_exited): Add argument.
9318 * target.c (debug_to_has_exited): Add argument.
9319 (update_current_target): Update.
9320
9321 2014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9324 argument.
9325 (target_set_syscall_catchpoint): Add argument.
9326 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9327 argument.
9328 * target.c (update_current_target): Update.
9329
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9333 argument.
9334 (target_remove_exec_catchpoint): Add argument.
9335 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9336 (update_current_target): Update.
9337 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9338 argument.
9339
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9343 argument.
9344 (target_insert_exec_catchpoint): Add argument.
9345 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9346 (update_current_target): Update.
9347 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9348 argument.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9353 argument.
9354 (target_remove_vfork_catchpoint): Add argument.
9355 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9356 (update_current_target): Update.
9357 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9358 argument.
9359
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9363 argument.
9364 (target_insert_vfork_catchpoint): Add argument.
9365 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9366 (update_current_target): Update.
9367 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9368 argument.
9369
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9373 argument.
9374 (target_remove_fork_catchpoint): Add argument.
9375 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9376 (update_current_target): Update.
9377 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9378 argument.
9379
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9383 argument.
9384 (target_insert_fork_catchpoint): Add argument.
9385 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9386 (update_current_target): Update.
9387 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9388 argument.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9393 argument.
9394 (target_post_startup_inferior): Add argument.
9395 * target.c (debug_to_post_startup_inferior): Add argument.
9396 (update_current_target): Update.
9397 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9398 argument.
9399 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9400 argument.
9401 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9402 argument.
9403 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9404 argument.
9405 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9406 'self' argument.
9407 (super_post_startup_inferior): Likewise.
9408 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9409 'self' argument.
9410 (super_post_startup_inferior): Likewise.
9411 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9412 Add 'self' argument.
9413 (super_post_startup_inferior): Likewise.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target.h (struct target_ops) <to_load>: Add argument.
9418 * target.c (target_load): Add argument.
9419 (debug_to_load): Add argument.
9420 (update_current_target): Update.
9421 * remote.c (remote_load): Add 'self' argument.
9422 * remote-sim.c (gdbsim_load): Add 'self' argument.
9423 * remote-mips.c (mips_load): Add 'self' argument.
9424 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9425 * monitor.c (monitor_load): Add 'self' argument.
9426 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9427
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9429
9430 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9431 (target_terminal_info): Add argument.
9432 * target.c (debug_to_terminal_info): Add argument.
9433 (default_terminal_info): Likewise.
9434 * inflow.c (child_terminal_info): Add 'self' argument.
9435 * inferior.h (child_terminal_info): Add 'self' argument.
9436 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9437
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9441 argument.
9442 (target_terminal_save_ours): Add argument.
9443 * target.c (debug_to_terminal_save_ours): Add argument.
9444 (update_current_target): Update.
9445 * inflow.c (terminal_save_ours): Add 'self' argument.
9446 * inferior.h (terminal_save_ours): Add 'self' argument.
9447
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9451 (target_terminal_ours): Add argument.
9452 * target.c (debug_to_terminal_ours): Add argument.
9453 (update_current_target): Update.
9454 * remote.c (remote_terminal_ours): Add 'self' argument.
9455 (remote_close): Update.
9456 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9457 * inflow.c (terminal_ours): Add 'self' argument.
9458 * inferior.h (terminal_ours): Add 'self' argument.
9459 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9460
9461 2014-02-19 Pedro Alves <palves@redhat.com>
9462 Tom Tromey <tromey@redhat.com>
9463
9464 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9465 argument.
9466 (target_terminal_ours_for_output): Add argument.
9467 * target.c (debug_to_terminal_ours_for_output): Add argument.
9468 (update_current_target): Update.
9469 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9470 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9471 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9472
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target.h (struct target_ops) <to_terminal_inferior>: Add
9476 argument.
9477 * target.c (target_terminal_inferior): Add argument.
9478 (update_current_target): Update.
9479 * remote.c (remote_terminal_inferior): Add 'self' argument.
9480 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9481 * inflow.c (terminal_inferior): Add 'self' argument.
9482 * inferior.h (terminal_inferior): Add 'self' argument.
9483 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9484 (go32_terminal_inferior): Add 'self' argument.
9485
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9489 (target_terminal_init): Add argument.
9490 * target.c (debug_to_terminal_init): Add argument.
9491 (update_current_target): Update.
9492 * inflow.c (terminal_init_inferior): Add 'self' argument.
9493 * inferior.h (terminal_init_inferior): Add 'self' argument.
9494 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9495 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9496
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9498
9499 * target.h (struct target_ops)
9500 <to_can_accel_watchpoint_condition>: Add argument.
9501 (target_can_accel_watchpoint_condition): Add argument.
9502 * target.c (debug_to_can_accel_watchpoint_condition): Add
9503 argument.
9504 (update_current_target): Update.
9505 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9506 'self' argument.
9507
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9511 Add argument.
9512 (target_region_ok_for_hw_watchpoint): Add argument.
9513 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9514 (default_region_ok_for_hw_watchpoint): Add argument.
9515 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9516 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9517 argument.
9518 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9519 argument.
9520 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9521 argument.
9522 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9523 'self' argument.
9524 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9525 'self' argument.
9526 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9527 'self' argument.
9528 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9529 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9530 'self' argument.
9531 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9532 Add 'self' argument.
9533
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9537 argument.
9538 (target_insert_watchpoint): Add argument.
9539 * target.c (debug_to_insert_watchpoint): Add argument.
9540 (update_current_target): Update.
9541 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9542 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9543 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9544 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9545 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9546 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9547 argument.
9548 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9549 (procfs_insert_hw_watchpoint): Add 'self' argument.
9550 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9551 argument.
9552 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9553 argument.
9554 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9555 argument.
9556 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9557 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9558 argument.
9559 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9560 'self' argument.
9561
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9565 argument.
9566 (target_remove_watchpoint): Add argument.
9567 * target.c (debug_to_remove_watchpoint): Add argument.
9568 (update_current_target): Update.
9569 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9570 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9571 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9572 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9573 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9574 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9575 argument.
9576 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9577 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9578 argument.
9579 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9580 argument.
9581 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9582 argument.
9583 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9584 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9585 argument.
9586 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9587 'self' argument.
9588
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9590
9591 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9592 argument.
9593 (target_remove_hw_breakpoint): Add argument.
9594 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9595 (update_current_target): Update.
9596 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9597 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9598 argument.
9599 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9600 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9601 argument.
9602 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9603 'self' argument.
9604
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9608 argument.
9609 (target_insert_hw_breakpoint): Add argument.
9610 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9611 (update_current_target): Update.
9612 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9613 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9614 argument.
9615 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9616 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9617 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9618 argument.
9619 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9620 'self' argument.
9621
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9625 argument.
9626 (target_can_use_hardware_watchpoint): Add argument.
9627 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9628 (update_current_target): Update.
9629 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9630 argument.
9631 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9632 argument.
9633 * remote.c (remote_check_watch_resources): Add 'self' argument.
9634 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9635 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9636 argument.
9637 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9638 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9639 argument.
9640 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9641 argument.
9642 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9643 argument.
9644 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9645 argument.
9646 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9647 argument.
9648 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9649 argument.
9650 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9651 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9652 argument.
9653 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9654 'self' argument.
9655
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9657
9658 * target.h (struct target_ops) <to_post_attach>: Add argument.
9659 (target_post_attach): Add argument.
9660 * target.c (debug_to_post_attach): Add argument.
9661 (update_current_target): Update.
9662 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9663 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9664 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9665 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9666 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9667
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * windows-nat.c (windows_close): Add 'self' argument.
9671 * tracepoint.c (tfile_close): Add 'self' argument.
9672 * target.h (struct target_ops) <to_close>: Add argument.
9673 * target.c (target_close): Add argument.
9674 (update_current_target): Update.
9675 * remote.c (remote_close): Add 'self' argument.
9676 * remote-sim.c (gdbsim_close): Add 'self' argument.
9677 * remote-mips.c (mips_close): Add 'self' argument.
9678 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9679 * record-full.c (record_full_close): Add 'self' argument.
9680 * record-btrace.c (record_btrace_close): Add 'self' argument.
9681 * monitor.h (monitor_close): Add 'self' argument.
9682 * monitor.c (monitor_close): Add 'self' argument.
9683 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9684 * linux-nat.c (linux_nat_close): Add argument.
9685 * go32-nat.c (go32_close): Add 'self' argument.
9686 * exec.c (exec_close_1): Add 'self' argument.
9687 * ctf.c (ctf_close): Add 'self' argument.
9688 * corelow.c (core_close): Add 'self' argument.
9689 (core_close_cleanup): Update.
9690 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9691 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9692
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * remote.c (remote_load): New function.
9696 (init_remote_ops): Use it.
9697
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9701 argument.
9702 * common/linux-btrace.h (linux_supports_btrace): Update.
9703 * remote.c (remote_supports_btrace): Add "self" argument.
9704 * target-delegates.c: Rebuild.
9705 * target.c (target_supports_btrace): Remove.
9706 * target.h (struct target_ops) <to_supports_btrace>: Add
9707 target_ops argument.
9708 (target_supports_btrace): New define.
9709
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * record-full.c (record_full_beneath_to_resume_ops)
9713 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9714 (record_full_beneath_to_wait)
9715 (record_full_beneath_to_store_registers_ops)
9716 (record_full_beneath_to_store_registers)
9717 (record_full_beneath_to_xfer_partial_ops)
9718 (record_full_beneath_to_xfer_partial)
9719 (record_full_beneath_to_insert_breakpoint_ops)
9720 (record_full_beneath_to_insert_breakpoint)
9721 (record_full_beneath_to_remove_breakpoint_ops)
9722 (record_full_beneath_to_remove_breakpoint)
9723 (record_full_beneath_to_stopped_by_watchpoint)
9724 (record_full_beneath_to_stopped_data_address)
9725 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9726 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9727 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9728 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9729 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9730 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9731 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9732 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9733 (record_full_resume, record_full_wait_1)
9734 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9735 (record_full_store_registers, record_full_xfer_partial)
9736 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9737 (record_full_async, record_full_core_xfer_partial): Use target
9738 delegation.
9739 * target-delegates.c: Rebuild.
9740 * target.c (current_xfer_partial): Remove.
9741 (update_current_target): Do not INHERIT or de_fault
9742 to_insert_breakpoint, to_remove_breakpoint,
9743 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9744 to_is_async_p, to_async. Do not set to_xfer_partial field.
9745 (default_xfer_partial): Simplify.
9746 (current_xfer_partial): Remove.
9747 (target_wait, target_resume): Simplify.
9748 (find_default_can_async_p, find_default_is_async_p): Update.
9749 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9750 to_xfer_partial, to_stopped_by_watchpoint,
9751 to_stopped_data_address.
9752 (target_store_registers): Simplify.
9753 (forward_target_remove_breakpoint)
9754 (forward_target_insert_breakpoint): Remove.
9755 (target_remove_breakpoint, target_insert_breakpoint)
9756 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9757 * target.h (struct target_ops) <to_resume, to_wait,
9758 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9759 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9760 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9761 markup.
9762 (forward_target_remove_breakpoint)
9763 (forward_target_insert_breakpoint): Remove.
9764 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9765 directly.
9766 (record_btrace_insert_breakpoint): Delegate directly.
9767
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9769
9770 PR build/7701:
9771 * target-delegates.c: New file.
9772 * target.c: Include target-delegates.c.
9773 (init_dummy_target): Call install_dummy_methods.
9774 (complete_target_initialization): Call install_delegators.
9775 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9776 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9777 * make-target-delegates: New file.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * record.c (find_record_target): Use find_target_at.
9782 * target.c (find_target_at): New function.
9783 * target.h (find_target_at): Declare.
9784
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9786
9787 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9788 Add 'ops' argument.
9789 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9790 'ops' argument.
9791 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9792 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9793 'ops' argument.
9794 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9795 argument.
9796 * linux-nat.c (save_sigtrap): Update.
9797 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9798 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9799 (linux_nat_close): Update.
9800 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9801 argument.
9802 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9803 argument.
9804 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9805 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9806 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9807 (tmp_to_async): Add 'ops' argument.
9808 (record_full_stopped_by_watchpoint, record_full_async)
9809 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9810 argument.
9811 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9812 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9813 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9814 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9815 (remote_is_async_p, remote_async): Add 'ops' argument.
9816 (remote_stopped_data_address): Update.
9817 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9818 * target.c (update_current_target)
9819 (find_default_can_async_p, find_default_is_async_p): Update.
9820 (init_dummy_target): Update.
9821 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9822 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9823 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9824 (target_can_async_p, target_is_async_p, target_async)
9825 (target_stopped_by_watchpoint): Update.
9826
9827 2014-02-19 Yao Qi <yao@codesourcery.com>
9828
9829 PR gdb/16220
9830 * gdbarch.sh: Remove startup_gdbarch.
9831 * gdbarch.c: Regenerated.
9832 * gdbarch.h: Likewise.
9833
9834 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9835
9836 * rl78-tdep.c (rl78_g10_register_name): New function.
9837 (rl78_return_value): Add g10 support.
9838 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9839 g10.
9840
9841 2014-02-17 Doug Evans <xdje42@gmail.com>
9842
9843 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9844 (SUBDIR_GUILE_SRCS): Ditto.
9845 (scm-gsmob.o): Ditto.
9846
9847 2014-02-17 Yao Qi <yao@codesourcery.com>
9848
9849 * gnu-nat.c (ILL_RPC): Declare defined function.
9850
9851 2014-02-17 Yao Qi <yao@codesourcery.com>
9852
9853 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9854 mach_msg_type_number_t.
9855 (gnu_write_inferior): Likewise.
9856
9857 2014-02-17 Yao Qi <yao@codesourcery.com>
9858
9859 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9860 in format string.
9861 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9862 (inf_validate_procs, inf_signal): Likewise.
9863 (S_exception_raise_request): Likewise.
9864 (do_mach_notify_dead_name): Likewise.
9865 (steal_exc_port): Likewise.
9866 (gnu_read_inferior): Change 'copy_count''s type to
9867 mach_msg_type_number_t.
9868 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9869 format string.
9870
9871 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9872
9873 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9874 flag. Adjust all users; in particular...
9875 (gnu_wait): ..., don't decrement its value in here...
9876 (gnu_create_inferior): ..., and instead set the flag in here,
9877 around the startup_inferior call, and call that one with
9878 START_INFERIOR_TRAPS_EXPECTED.
9879
9880 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9881 (ILL_RPC): ... new macro.
9882 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9883 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9884 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9885 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9886 functions with ILL_RPC macro.
9887 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9888 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9889 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9890 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9891 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9892 (S_proc_getlogin_reply, S_proc_getsid_reply)
9893 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9894 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9895 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9896 (S_proc_getnports_reply, S_proc_is_important_reply)
9897 (S_proc_get_code_reply): New stub functions, generated with
9898 ILL_RPC macro.
9899
9900 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9901 collected the type check structures.
9902
9903 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9904
9905 2014-02-14 Doug Evans <dje@google.com>
9906
9907 * target.c (target_write_partial): Fix result type.
9908
9909 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9910
9911 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9912 the proper offsets to access fpregset_t.
9913
9914 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9915
9916 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9917 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9918 * h8300-tdep.c (setmachinelist): Remove global.
9919 * hppa-tdep.c (hppa_sigtramp): Remove global.
9920 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9921 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9922 * ravenscar-thread.c (update_target_observer): Remove global.
9923 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9924
9925 2014-02-12 Tom Tromey <tromey@redhat.com>
9926
9927 * common/rsp-low.c: Update comments.
9928 * common/rsp-low.h: Update comments.
9929
9930 2014-02-12 Tom Tromey <tromey@redhat.com>
9931
9932 * common/rsp-low.c (convert_ascii_to_int): Remove.
9933 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9934
9935 2014-02-12 Tom Tromey <tromey@redhat.com>
9936
9937 * common/rsp-low.h (unhexify): Don't declare.
9938 * common/rsp-low.c (unhexify): Remove.
9939
9940 2014-02-12 Tom Tromey <tromey@redhat.com>
9941
9942 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9943 * common/rsp-low.c (convert_int_to_ascii): Remove.
9944
9945 2014-02-12 Tom Tromey <tromey@redhat.com>
9946
9947 * common/rsp-low.h (hexify): Don't declare.
9948 * common/rsp-low.c (hexify): Remove.
9949
9950 2014-02-12 Tom Tromey <tromey@redhat.com>
9951
9952 * common/rsp-low.c (hexify): Never take strlen of argument.
9953
9954 2014-02-12 Tom Tromey <tromey@redhat.com>
9955
9956 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9957 * remote.c (extended_remote_run, remote_rcmd)
9958 (remote_download_trace_state_variable, remote_save_trace_data)
9959 (remote_set_trace_notes): Update.
9960 * tracepoint.c (encode_source_string, tfile_write_status)
9961 (tfile_write_uploaded_tsv): Update.
9962
9963 2014-02-12 Tom Tromey <tromey@redhat.com>
9964
9965 * tracepoint.c: Include rsp-low.h.
9966 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9967 * remote.c: Include rsp-low.h.
9968 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9969 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9970 (remote_unescape_input): Move to common/rsp-low.c.
9971 * common/rsp-low.h: New file.
9972 * common/rsp-low.c: New file.
9973 * Makefile.in (SFILES): Add common/rsp-low.c.
9974 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9975 (COMMON_OBS): Add rsp-low.o.
9976 (rsp-low.o): New target.
9977
9978 2014-02-12 Tom Tromey <tromey@redhat.com>
9979
9980 * utils.h: Include print-utils.h.
9981 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9982 (int_string, core_addr_to_string, core_addr_to_string_nz)
9983 (hex_string, hex_string_custom): Don't declare.
9984 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9985 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9986 (hex_string_custom, int_string, core_addr_to_string)
9987 (core_addr_to_string_nz, host_address_to_string): Move to
9988 common/print-utils.c.
9989 * common/print-utils.h: New file.
9990 * common/print-utils.c: New file
9991 * Makefile.in (SFILES): Add common/print-utils.c.
9992 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9993 (COMMON_OBS): Add print-utils.o.
9994 (print-utils.o): New target.
9995
9996 2014-02-12 Tom Tromey <tromey@redhat.com>
9997
9998 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9999
10000 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10001
10002 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10003
10004 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10005
10006 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10007 if a PT_IO ptrace request returns sucessfully but indicates that 0
10008 bytes were transferred.
10009
10010 2014-02-12 Pedro Alves <palves@redhat.com>
10011 Kevin Buettner <kevinb@redhat.com>
10012
10013 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10014 TYPE_INSTANCE_FLAG_CODE_SPACE.
10015
10016 2014-02-12 Pedro Alves <palves@redhat.com>
10017
10018 * h8300-tdep.c (pseudo_from_raw_register)
10019 (raw_from_pseudo_register): New functions.
10020 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10021 them.
10022
10023 2014-02-12 Pedro Alves <palves@redhat.com>
10024
10025 * h8300-tdep.c (h8300_register_sim_regno): New function.
10026 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10027 gdbarch_register_sim_regno hook.
10028
10029 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10030
10031 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10032
10033 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10034
10035 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10036
10037 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10038
10039 * obsd-tdep.h (obsd_init_abi): New prototype.
10040 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10041 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10042 (obsd_init_abi): New functions.
10043 * i386obsd-tdep.c: Include "obsd-tdep.h".
10044 (i386obsd_init_abi): Call obsd_init_abi.
10045 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10046 (amd64obsd_init_abi): Call obsd_init_abi.
10047 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10048 obsd-tdep.c to gdb_target_obs.
10049
10050 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10051
10052 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10053 double float arguments to 16-byte in the argument slots.
10054
10055 2014-02-11 Doug Evans <xdje42@gmail.com>
10056
10057 * configure.ac: Don't crash if pkg-config is not found and guile
10058 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10059 in guile checks.
10060 * configure: Regenerate.
10061
10062 2014-02-11 Yao Qi <yao@codesourcery.com>
10063
10064 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10065 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10066 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10067 * gnu-nat.c (gnu_xfer_memory): Likewise.
10068 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10069 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10070 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10071 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10072
10073 2014-02-11 Yao Qi <yao@codesourcery.com>
10074
10075 * target.h (enum target_xfer_error): Rename to ...
10076 (enum target_xfer_status): ... it. New. All users updated.
10077 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10078 New.
10079 (TARGET_XFER_STATUS_ERROR_P): New macro.
10080 (target_xfer_error_to_string): Remove declaration.
10081 (target_xfer_status_to_string): Declare.
10082 (target_xfer_partial_ftype): Adjust it.
10083 (struct target_ops) <to_xfer_partial>: Return
10084 target_xfer_status. Add argument xfered_len. Update
10085 comments.
10086 * target.c (target_xfer_error_to_string): Rename to ...
10087 (target_xfer_status_to_string): ... it. New. All callers
10088 updated.
10089 (target_read_live_memory): Likewise. Call target_xfer_partial
10090 instead of target_read.
10091 (memory_xfer_live_readonly_partial): Return
10092 target_xfer_status. Add argument xfered_len.
10093 (raw_memory_xfer_partial): Likewise.
10094 (memory_xfer_partial_1): Likewise.
10095 (memory_xfer_partial): Likewise.
10096 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10097 properly. Update debug message.
10098 (default_xfer_partial, current_xfer_partial): Likewise.
10099 (target_write_partial): Likewise.
10100 (target_read_partial): Likewise. All callers updated.
10101 (read_whatever_is_readable): Likewise.
10102 (target_write_with_progress): Likewise.
10103 (target_read_alloc_1): Likewise.
10104
10105 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10106 * auxv.c (procfs_xfer_auxv): Likewise.
10107 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10108 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10109 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10110 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10111 * corefile.c (read_memory): Adjust.
10112 * corelow.c (core_xfer_partial): Likewise.
10113 * ctf.c (ctf_xfer_partial): Likewise.
10114 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10115 updated.
10116 (darwin_xfer_partial): Likewise.
10117 * exec.c (section_table_xfer_memory_partial): Likewise. All
10118 callers updated.
10119 (exec_xfer_partial): Likewise.
10120 * exec.h (section_table_xfer_memory_partial): Update
10121 declaration.
10122 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10123 negative.
10124 (gnu_xfer_partial): Likewise.
10125 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10126 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10127 (ia64_hpux_xfer_solib_got): Likewise.
10128 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10129 type of 'partial_len' to ULONGEST.
10130 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10131 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10132 (linux_nat_xfer_partial): Likewise.
10133 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10134 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10135 * monitor.c (monitor_xfer_memory): Likewise.
10136 (monitor_xfer_partial): Likewise.
10137 * procfs.c (procfs_xfer_partial): Likewise.
10138 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10139 * record-full.c (record_full_xfer_partial): Likewise.
10140 (record_full_core_xfer_partial): Likewise.
10141 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10142 (gdbsim_xfer_partial): Likewise.
10143 * remote.c (remote_write_bytes_aux): Likewise. All callers
10144 updated.
10145 (remote_write_bytes, remote_read_bytes): Likewise. All
10146 callers updated.
10147 (remote_flash_erase): Likewise. All callers updated.
10148 (remote_write_qxfer): Likewise. All callers updated.
10149 (remote_read_qxfer): Likewise. All callers updated.
10150 (remote_xfer_partial): Likewise.
10151 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10152 (rs6000_xfer_shared_libraries): Likewise.
10153 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10154 (sol_thread_xfer_partial): Likewise.
10155 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10156 (sparc_xfer_partial): Likewise.
10157 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10158 updated.
10159 (spu_xfer_partial): Likewise.
10160 * spu-multiarch.c (spu_xfer_partial): Likewise.
10161 * tracepoint.c (tfile_xfer_partial): Likewise.
10162 * windows-nat.c (windows_xfer_memory): Likewise.
10163 (windows_xfer_shared_libraries): Likewise.
10164 (windows_xfer_partial): Likewise.
10165 * valprint.c: Replace 'target_xfer_error' with
10166 'target_xfer_status' in comments.
10167
10168 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10169
10170 Checked in by Joel Brobecker <brobecker@adacore.com>.
10171 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10172
10173 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10174
10175 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10176 function parameters.
10177
10178 2014-02-10 Will Newton <will.newton@linaro.org>
10179
10180 * elfread.c (elf_rel_plt_read): Look for a .got section if
10181 looking up .got.plt fails.
10182 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10183 on address passed to elf_gnu_ifunc_record_cache.
10184 (elf_gnu_ifunc_resolve_addr): Likewise.
10185 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10186
10187 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10188
10189 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10190 (X_RETTURN): New macro.
10191 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10192
10193 * sparc64-tdep.c (sparc64_init_abi): Hook
10194 sparc_in_function_epilogue_p.
10195
10196 2014-02-10 Gary Benson <gbenson@redhat.com>
10197
10198 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10199 Rename name_matcher to symbol_matcher.
10200
10201 2014-02-10 Gary Benson <gbenson@redhat.com>
10202
10203 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10204 Use expand_symtabs_file_matcher_ftype and
10205 expand_symtabs_symbol_matcher_ftype.
10206
10207 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10208
10209 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10210 (struct ada_symbol_cache): New.
10211 (ada_free_symbol_cache): Forward declare.
10212 (struct ada_pspace_data): New.
10213 (ada_pspace_data_handle): New static global.
10214 (get_ada_pspace_data, ada_pspace_data_cleanup)
10215 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10216 (cache_space, cache): Delete, now folded inside struct
10217 ada_pspace_data.
10218 (ada_get_symbol_cache): New function.
10219 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10220 implementation.
10221 (_initialize_ada_language): Remove initialization of cache_space.
10222 Move call to observer_attach_inferior_exit up, grouping it
10223 with the other observer registrations inside this function.
10224 Rename command to be more general. Add call to
10225 register_program_space_data_with_cleanup.
10226
10227 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10228
10229 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10230 ada_new_objfile_observer.
10231 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10232 (_initialize_tasks): Update uses of ada_new_objfile_observer
10233 and ada_tasks_normal_stop_observer.
10234
10235 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10236
10237 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10238 returned by the 'Length attribute to integer.
10239
10240 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10241
10242 * ada-lang.c (_initialize_ada_language): Initialize
10243 cache_space obstack.
10244
10245 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10246
10247 * ada-lang.c (HASH_SIZE): New macro.
10248 (struct cache_entry): New type.
10249 (cache_space, cache): New static globals.
10250 (ada_clear_symbol_cache, find_entry): New functions.
10251 (lookup_cached_symbol, cache_symbol): Implement.
10252 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10253 (_initialize_ada_language): Attach ada_new_objfile_observer
10254 and ada_free_objfile_observer.
10255
10256 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10257
10258 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10259 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10260 struct block * parameter.
10261 (ada_lookup_symbol_list_worker): Constify local variable "block".
10262 Remove cast which is no longer necessary.
10263
10264 2014-02-10 Doug Evans <xdje42@gmail.com>
10265
10266 Add Guile as an extension language.
10267 * NEWS: Mention Guile scripting.
10268 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10269 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10270 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10271 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10272 (CLIBS): Add GUILE_LIBS.
10273 (install-guile): New rule.
10274 (guile.o): New rule.
10275 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10276 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10277 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10278 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10279 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10280 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10281 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10282 * configure.ac: New option --with-guile.
10283 * configure: Regenerate.
10284 * config.in: Regenerate.
10285 * auto-load.c: Remove #include "python/python.h". Add #include
10286 "gdb/section-scripts.h".
10287 (source_section_scripts): Handle Guile scripts.
10288 (_initialize_auto_load): Add name of Guile objfile script to
10289 scripts-directory help text.
10290 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10291 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10292 (struct breakpoint): New member scm_bp_object.
10293 * defs.h (enum command_control_type): New value guile_control.
10294 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10295 "extension.h".
10296 (show_user): Update comment.
10297 (_initialize_cli_cmds): Update help text for "show user". Update help
10298 text for max-user-call-depth.
10299 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10300 "extension.h".
10301 (multi_line_command_p): Add guile_control.
10302 (print_command_lines): Handle guile_control.
10303 (execute_control_command, recurse_read_control_structure): Ditto.
10304 (process_next_line): Recognize "guile" commands.
10305 * disasm.c (gdb_disassemble_info): Make non-static.
10306 * disasm.h: #include "dis-asm.h".
10307 (struct gdbarch): Add forward decl.
10308 (gdb_disassemble_info): Declare.
10309 * extension.c: #include "guile/guile.h".
10310 (extension_languages): Add guile.
10311 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10312 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10313 * gdbtypes.c (get_unsigned_type_max): New function.
10314 (get_signed_type_minmax): New function.
10315 * gdbtypes.h (get_unsigned_type_max): Declare.
10316 (get_signed_type_minmax): Declare.
10317 * guile/README: New file.
10318 * guile/guile-internal.h: New file.
10319 * guile/guile.c: New file.
10320 * guile/guile.h: New file.
10321 * guile/scm-arch.c: New file.
10322 * guile/scm-auto-load.c: New file.
10323 * guile/scm-block.c: New file.
10324 * guile/scm-breakpoint.c: New file.
10325 * guile/scm-disasm.c: New file.
10326 * guile/scm-exception.c: New file.
10327 * guile/scm-frame.c: New file.
10328 * guile/scm-gsmob.c: New file.
10329 * guile/scm-iterator.c: New file.
10330 * guile/scm-lazy-string.c: New file.
10331 * guile/scm-math.c: New file.
10332 * guile/scm-objfile.c: New file.
10333 * guile/scm-ports.c: New file.
10334 * guile/scm-pretty-print.c: New file.
10335 * guile/scm-safe-call.c: New file.
10336 * guile/scm-string.c: New file.
10337 * guile/scm-symbol.c: New file.
10338 * guile/scm-symtab.c: New file.
10339 * guile/scm-type.c: New file.
10340 * guile/scm-utils.c: New file.
10341 * guile/scm-value.c: New file.
10342 * guile/lib/gdb.scm: New file.
10343 * guile/lib/gdb/boot.scm: New file.
10344 * guile/lib/gdb/experimental.scm: New file.
10345 * guile/lib/gdb/init.scm: New file.
10346 * guile/lib/gdb/iterator.scm: New file.
10347 * guile/lib/gdb/printing.scm: New file.
10348 * guile/lib/gdb/types.scm: New file.
10349 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10350 (VPATH): Add $(GUILE_SRCDIR).
10351 (GUILE_DIR): New variable.
10352 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10353 (all): Add stamp-guile dependency.
10354 (stamp-guile): New rule.
10355 (clean-guile, install-guile, uninstall-guile): New rules.
10356 (install-only): Add install-guile dependency.
10357 (uninstall): Add uninstall-guile dependency.
10358 (clean): Add clean-guile dependency.
10359
10360 2014-02-09 Doug Evans <xdje42@gmail.com>
10361
10362 Revert this patch (which I approved, mea culpa).
10363
10364 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10365
10366 * Makefile.in (all-lib): Remove.
10367 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10368
10369 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10370
10371 Fix Python stack corruption.
10372 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10373 gdb_py_longest.
10374
10375 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10376
10377 * Makefile.in (all-lib): Remove.
10378 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10379
10380 2014-02-07 Doug Evans <dje@google.com>
10381
10382 * extension-priv.h (extension_language_script_ops): Add comment.
10383 (extension_language_ops): Add comment.
10384 (active_ext_lang_state): Fix typo in comment.
10385
10386 2014-02-07 Pedro Alves <palves@redhat.com>
10387
10388 PR breakpoints/16292
10389 * infrun.c (handle_signal_stop) <signal arrives while stepping
10390 over a breakpoint>: Switch back to the stepping thread.
10391
10392 2014-02-07 Yao Qi <yao@codesourcery.com>
10393
10394 * target.c (target_xfer_partial): Return zero if LEN is zero.
10395
10396 2014-02-07 Yao Qi <yao@codesourcery.com>
10397
10398 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10399 (ld_so_xfer_auxv): Likewise.
10400 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10401 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10402 * corelow.c (core_xfer_partial): Likewise.
10403 * ctf.c (ctf_xfer_partial): Likewise.
10404 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10405 (darwin_xfer_partial): Likewise.
10406 * exec.c (exec_xfer_partial): Likewise.
10407 * gnu-nat.c (gnu_xfer_partial): Likewise.
10408 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10409 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10410 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10411 * linux-nat.c (linux_xfer_siginfo): Likewise.
10412 (linux_proc_xfer_spu): Likewise.
10413 * procfs.c (procfs_xfer_partial): Likewise.
10414 * record-full.c (record_full_xfer_partial): Likewise.
10415 (record_full_core_xfer_partial): Likewise.
10416 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10417 * remote.c (remote_write_qxfer): Likewise.
10418 (remote_write_qxfer, remote_read_qxfer): Likewise.
10419 (remote_xfer_partial): Likewise.
10420 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10421 (rs6000_xfer_shared_libraries): Likewise.
10422 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10423 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10424 (spu_xfer_partial): Likewise.
10425 * target.c (memory_xfer_partial_1): Likewise.
10426 * tracepoint.c (tfile_xfer_partial): Likewise.
10427 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10428 (windows_xfer_partial): Likewise.
10429
10430 2014-02-07 Yao Qi <yao@codesourcery.com>
10431
10432 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10433 comments.
10434 (core_xfer_shared_libraries_aix): Likewise.
10435 * gdbarch.c, gdbarch.h: Regenerated.
10436 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10437 ULONGEST. Change 'len_avail' type to ULONGEST.
10438 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10439 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10440 declaration.
10441 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10442
10443 2014-02-07 Yao Qi <yao@codesourcery.com>
10444
10445 * corefile.c (memory_error): Get 'exception' from ERR and pass
10446 'exception' to throw_error.
10447
10448 2014-02-06 Doug Evans <xdje42@gmail.com>
10449
10450 * configure.ac (libpython checking): Remove all but python.o from
10451 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10452 * configure: Regenerate.
10453
10454 * Makefile.in (SFILES): Add extension.c.
10455 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10456 (COMMON_OBS): Add extension.o.
10457 * extension.h: New file.
10458 * extension-priv.h: New file.
10459 * extension.c: New file.
10460
10461 * python/python-internal.h: #include "extension.h".
10462 (gdbpy_auto_load_enabled): Declare.
10463 (gdbpy_apply_val_pretty_printer): Declare.
10464 (gdbpy_apply_frame_filter): Declare.
10465 (gdbpy_preserve_values): Declare.
10466 (gdbpy_breakpoint_cond_says_stop): Declare.
10467 (gdbpy_breakpoint_has_cond): Declare.
10468 (void source_python_script_for_objfile): Delete.
10469 * python/python.c: #include "extension-priv.h".
10470 Delete inclusion of "observer.h".
10471 (extension_language_python): Moved here and renamed from
10472 script_language_python in py-auto-load.c.
10473 Redefined to be of type extension_language_defn.
10474 (python_extension_script_ops): New global.
10475 (python_extension_ops): New global.
10476 (struct python_env): New member previous_active.
10477 (restore_python_env): Call restore_active_ext_lang.
10478 (ensure_python_env): Call set_active_ext_lang.
10479 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10480 New arg extlang.
10481 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10482 New arg extlang.
10483 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10484 New arg extlang.
10485 (gdbpy_eval_from_control_command): Renamed from
10486 eval_python_from_control_command, made static. New arg extlang.
10487 (gdbpy_source_script) Renamed from source_python_script, made static.
10488 New arg extlang.
10489 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10490 result to int. New arg extlang.
10491 (gdbpy_source_objfile_script): Renamed from
10492 source_python_script_for_objfile, made static. New arg extlang.
10493 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10494 static. New args extlang, extlang_printers. Change result type to
10495 "void".
10496 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10497 static. New arg extlang. Rename arg printers to extlang_printers
10498 and change type to ext_lang_type_printers *.
10499 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10500 static. Replace argument arg with extlang, extlang_printers.
10501 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10502 (!HAVE_PYTHON, source_python_script): Delete.
10503 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10504 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10505 (!HAVE_PYTHON, start_type_printers): Delete.
10506 (!HAVE_PYTHON, apply_type_printers): Delete.
10507 (!HAVE_PYTHON, free_type_printers): Delete.
10508 (_initialize_python): Delete call to observer_attach_before_prompt.
10509 (finalize_python): Set/restore active extension language.
10510 (gdbpy_finish_initialization) Renamed from
10511 finish_python_initialization, made static. New arg extlang.
10512 (gdbpy_initialized): New function.
10513 * python/python.h: #include "extension.h". Delete #include
10514 "value.h", "mi/mi-cmds.h".
10515 (extension_language_python): Declare.
10516 (GDBPY_AUTO_FILE_NAME): Delete.
10517 (enum py_bt_status): Moved to extension.h and renamed to
10518 ext_lang_bt_status.
10519 (enum frame_filter_flags): Moved to extension.h.
10520 (enum py_frame_args): Moved to extension.h and renamed to
10521 ext_lang_frame_args.
10522 (finish_python_initialization): Delete.
10523 (eval_python_from_control_command): Delete.
10524 (source_python_script): Delete.
10525 (apply_val_pretty_printer): Delete.
10526 (apply_frame_filter): Delete.
10527 (preserve_python_values): Delete.
10528 (gdbpy_script_language_defn): Delete.
10529 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10530 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10531
10532 * auto-load.c: #include "extension.h".
10533 (GDB_AUTO_FILE_NAME): Delete.
10534 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10535 (script_language_gdb): Delete, moved to extension.c and renamed to
10536 extension_language_gdb.
10537 (source_gdb_script_for_objfile): Delete.
10538 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10539 (loaded_script): Change type of language member to
10540 struct extension_language_defn *.
10541 (init_loaded_scripts_info): Initialize
10542 unsupported_script_warning_printed.
10543 (maybe_add_script): Make static. Change type of language arg to
10544 struct extension_language_defn *.
10545 (clear_section_scripts): Reset unsupported_script_warning_printed.
10546 (auto_load_objfile_script_1): Rewrite to use extension language API.
10547 (auto_load_objfile_script): Make public. Remove support-compiled-in
10548 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10549 (source_section_scripts): Rewrite to use extension language API.
10550 (load_auto_scripts_for_objfile): Rewrite to use
10551 auto_load_scripts_for_objfile.
10552 (collect_matching_scripts_data): Change type of language member to
10553 struct extension_language_defn *.
10554 (auto_load_info_scripts): Change type of language arg to
10555 struct extension_language_defn *.
10556 (unsupported_script_warning_print): New function.
10557 (script_not_found_warning_print): Make static.
10558 (_initialize_auto_load): Rewrite construction of scripts-directory
10559 help.
10560 * auto-load.h (struct objfile): Add forward decl.
10561 (struct script_language): Delete.
10562 (struct auto_load_pspace_info): Add forward decl.
10563 (struct extension_language_defn): Add forward decl.
10564 (maybe_add_script): Delete.
10565 (auto_load_objfile_script): Declare.
10566 (script_not_found_warning_print): Delete.
10567 (auto_load_info_scripts): Update prototype.
10568 (auto_load_gdb_scripts_enabled): Declare.
10569 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10570 auto_load_python_scripts_enabled and made public.
10571 (script_language_python): Delete, moved to python.c.
10572 (gdbpy_script_language_defn): Delete.
10573 (info_auto_load_python_scripts): Update to use
10574 extension_language_python.
10575
10576 * breakpoint.c (condition_command): Replace call to
10577 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10578 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10579 with call to breakpoint_ext_lang_cond_says_stop.
10580 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10581 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10582 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10583 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10584 New arg slang.
10585 (local_setattro): Print name of extension language with existing
10586 stop condition.
10587
10588 * valprint.c (val_print, value_print): Update to call
10589 apply_ext_lang_val_pretty_printer.
10590 * cp-valprint.c (cp_print_value): Update call to
10591 apply_ext_lang_val_pretty_printer.
10592 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10593 (gdbpy_apply_val_pretty_printer): Renamed from
10594 apply_val_pretty_printer. New arg extlang.
10595 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10596
10597 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10598 extension language API.
10599 * cli/cli-script.c (execute_control_command): Update to call
10600 eval_ext_lang_from_control_command.
10601
10602 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10603 enum ext_lang_bt_status values. Update call to
10604 apply_ext_lang_frame_filter.
10605 (mi_cmd_stack_list_locals): Ditto.
10606 (mi_cmd_stack_list_args): Ditto.
10607 (mi_cmd_stack_list_variables): Ditto.
10608 * mi/mi-main.c: Delete #include "python/python-internal.h".
10609 Add #include "extension.h".
10610 (mi_cmd_list_features): Replace reference to python internal variable
10611 gdb_python_initialized with call to ext_lang_initialized_p.
10612
10613 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10614 Update to use enum ext_lang_frame_args. Update to call
10615 apply_ext_lang_frame_filter.
10616 * python/py-framefilter.c (extract_sym): Update to use enum
10617 ext_lang_bt_status.
10618 (extract_value, py_print_type, py_print_value): Ditto.
10619 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10620 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10621 (py_print_frame): Ditto.
10622 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10623 New arg extlang. Update to use enum ext_lang_bt_status.
10624
10625 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10626 finish_python_initialization. Replace with call to
10627 finish_ext_lang_initialization.
10628
10629 * typeprint.c (do_free_global_table): Update to call
10630 free_ext_lang_type_printers.
10631 (create_global_typedef_table): Update to call
10632 start_ext_lang_type_printers.
10633 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10634 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10635 (type_print_options): Change type of global_printers from "void *"
10636 to "struct ext_lang_type_printers *".
10637
10638 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10639 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10640 (gdbpy_preserve_values): Renamed from preserve_python_values.
10641 New arg extlang.
10642 (!HAVE_PYTHON, preserve_python_values): Delete.
10643
10644 * utils.c (quit_flag): Delete, moved to extension.c.
10645 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10646 extension.c.
10647
10648 * eval.c: Delete #include "python/python.h".
10649 * main.c: Delete #include "python/python.h".
10650
10651 * defs.h: Update comment.
10652
10653 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10654
10655 GDB 7.7 released.
10656
10657 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10658
10659 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10660 defined.
10661
10662 2014-02-05 Yao Qi <yao@codesourcery.com>
10663
10664 * remote.c (remote_pass_signals): Remove local 'buf' and use
10665 rs->buf.
10666 (remote_program_signals): Likewise.
10667
10668 2014-02-05 Yao Qi <yao@codesourcery.com>
10669
10670 * ctf.c: Include "inferior.h" and "gdbthread.h".
10671 (CTF_PID): A new macro.
10672 (ctf_open): Call inferior_appeared and add_thread_silent.
10673 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10674 (ctf_thread_alive): New function.
10675 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10676
10677 2014-02-05 Yao Qi <yao@codesourcery.com>
10678
10679 Revert this patch:
10680
10681 2013-05-24 Yao Qi <yao@codesourcery.com>
10682
10683 * tracepoint.c (TFILE_PID): Remove.
10684 (tfile_open): Don't add thread and inferior.
10685 (tfile_close): Don't set 'inferior_ptid'. Don't call
10686 exit_inferior_silent.
10687 (tfile_thread_alive): Remove.
10688 (init_tfile_ops): Don't set field 'to_thread_alive' of
10689 tfile_ops.
10690
10691 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10692
10693 * remote.c (remote_start_remote): Call remote_check_symbols even
10694 if only symbol-file (not file) has been given.
10695
10696 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10697
10698 * gdbarch.sh (skip_entrypoint): New callback.
10699 * gdbarch.c, gdbarch.h: Regenerate.
10700 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10701 * infrun.c (fill_in_stop_func): Likewise.
10702 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10703 (ppc_elfv2_elf_make_msymbol_special): New function.
10704 (ppc_elfv2_skip_entrypoint): Likewise.
10705 (ppc_linux_init_abi): Install them for ELFv2.
10706
10707 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10708
10709 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10710 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10711 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10712 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10713 structures returned in GPRs.
10714
10715 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10716
10717 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10718 offset to the stack parameter list for the ELFv2 ABI.
10719
10720 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10721
10722 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10723 set_gdbarch_convert_from_func_ptr_addr and
10724 set_gdbarch_elf_make_msymbol_special for ELFv1.
10725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10726 function descriptors on ELFv1.
10727 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10728 set up r12 at function entry.
10729
10730 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10731
10732 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10733 (struct gdbarch_tdep): New member elf_abi.
10734
10735 * rs6000-tdep.c: Include "elf/ppc64.h".
10736 (rs6000_gdbarch_init): Detect ELF ABI version.
10737
10738 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10739
10740 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10741 within a register pair holding a DFP 128-bit value on little-endian.
10742 (ppc64_sysv_abi_return_value_base): Likewise.
10743 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10744 (dfp_pseudo_register_write): Likewise.
10745
10746 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10747
10748 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10749 offset on little-endian when passing _Decimal32.
10750 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10751
10752 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10753
10754 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10755 of the overlapped FP register within the VSX register on little-
10756 endian platforms.
10757 (efpr_pseudo_register_write): Likewise.
10758
10759 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10760
10761 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10762 offset on little-endian when passing small structures.
10763
10764 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10765
10766 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10767 (struct ppc64_sysv_argpos): New data structure.
10768 (ppc64_sysv_abi_push_float): Remove.
10769 (ppc64_sysv_abi_push_val): New function.
10770 (ppc64_sysv_abi_push_integer): Likewise.
10771 (ppc64_sysv_abi_push_freg): Likewise.
10772 (ppc64_sysv_abi_push_vreg): Likewise.
10773 (ppc64_sysv_abi_push_param): Likewise.
10774 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10775 (ppc64_sysv_abi_return_value_base): New function.
10776 (ppc64_sysv_abi_return_value): Refactor to use it.
10777
10778 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10779
10780 * NEWS: Document new target powerpc64le-*-linux*.
10781
10782 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10783
10784 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10785 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10786 core dumps.
10787 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10788 register set used in ELF core dumps. Add floating-point register set.
10789
10790 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10791
10792 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10793 dwarf2_to_gdb[] table using symbolic constants. Adjust
10794 penultimate entry from number representing the PC register
10795 to symbolic constant representing the MDR register. Add
10796 constant for the PC register to the end of the table.
10797
10798 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10799
10800 * bsd-kvm.c: Include <sys/param.h>
10801
10802 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10803
10804 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10805
10806 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10807
10808 * ada-lang.h (clear_ada_sym_cache): Delete.
10809
10810 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10811
10812 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10813
10814 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10815
10816 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10817 the sigreturn register save area only if the syscall is
10818 sigreturn.
10819
10820 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10821
10822 * valops.c (value_slice): Minor reformatting.
10823
10824 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10825
10826 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10827
10828 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10829
10830 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10831 New static globals.
10832 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10833 (ada_ignore_descriptive_types_p): New static global.
10834 (find_parallel_type_by_descriptive_type): Return immediately
10835 if ada_ignore_descriptive_types_p is set.
10836 (_initialize_ada_language): Register new commands "maintenance
10837 set ada", "maintenance show ada", "maintenance set ada
10838 ignore-descriptive-types" and "maintenance show ada
10839 ignore-descriptive-types".
10840 * NEWS: Add entry for new "maint ada set/show
10841 ignore-descriptive-types" commands.
10842
10843 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10844
10845 * record-btrace.c (record_btrace_close): Call btrace_teardown
10846 for all threads.
10847
10848 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10849
10850 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10851 "ui-out.h".
10852
10853 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10854
10855 * ada-typeprint (type_is_full_subrange_of_target_type):
10856 New function.
10857 (print_range): Add parameter bounds_prefered_p. If not set,
10858 try printing range types using the name of their base type.
10859 (print_range_type): Add parameter bounds_prefered_p.
10860 Use it in call to print_range.
10861 (print_array_type, ada_print_type): Update calls to print_range
10862 and print_range_type.
10863
10864 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10865
10866 * ada-typeprint.c (print_array_type, print_choices, print_range)
10867 (print_range_bound, print_dynamic_range_bound, print_range_type):
10868 Remove declaration.
10869
10870 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10871
10872 * ada-typeprint.c (print_range): Add missing empty line
10873 after local declaration.
10874
10875 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10876
10877 * ada-valprint.c (print_optional_low_bound): Get index_type's
10878 target type for as long as it is a TYPE_CODE_RANGE.
10879
10880 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10881
10882 * procfs.c (procfs_make_note_section): Remove assertion and
10883 associated comment.
10884
10885 2014-01-24 Yao Qi <yao@codesourcery.com>
10886
10887 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10888 * corelow.c (get_core_siginfo): Likewise.
10889
10890 2014-01-24 Yao Qi <yao@codesourcery.com>
10891
10892 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10893 ULONGEST. Don't check 'len' is negative.
10894 (remote_write_bytes): Change type of 'len' to ULONGEST.
10895
10896 2014-01-23 Tom Tromey <tromey@redhat.com>
10897
10898 PR python/16485:
10899 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10900 Handle exception from frame.block.
10901 (FrameVars.fetch_frame_locals): Likewise.
10902
10903 2014-01-23 Tom Tromey <tromey@redhat.com>
10904
10905 PR python/16487:
10906 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10907 on a NULL pointer. Move "goto error" to correct place.
10908
10909 2014-01-23 Tom Tromey <tromey@redhat.com>
10910
10911 PR python/16491:
10912 * python/py-framefilter.c (apply_frame_filter): Call
10913 ensure_python_env after computing gdbarch.
10914
10915 2014-01-23 Yao Qi <yao@codesourcery.com>
10916
10917 * target.c (raw_memory_xfer_partial): Change argument type
10918 from void * to gdb_byte *.
10919 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10920
10921 2014-01-22 Doug Evans <dje@google.com>
10922
10923 New gdbserver option --debug-format=timestamp.
10924 * NEWS: Mention it.
10925
10926 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10927
10928 * syscalls/s390x-linux.xml: New file.
10929 * syscalls/s390-linux.xml: New file.
10930 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10931 (XML_SYSCALL_FILENAME_S390X): Likewise.
10932 (op_svc): New enum value for SVC opcode.
10933 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10934 (s390_linux_get_syscall_number): New function.
10935 (s390_gdbarch_init): Register '*get_syscall_number' and the
10936 syscall xml file name.
10937 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10938 "s390-linux.xml" and "s390x-linux.xml".
10939 * NEWS: Announce new feature.
10940
10941 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10942
10943 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10944
10945 2014-01-22 Pedro Alves <palves@redhat.com>
10946
10947 * xtensa-config.c: Include defs.h.
10948
10949 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10950
10951 * common/common-utils.h: Add "ARI:" comment beside __func__
10952 reference.
10953
10954 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10955
10956 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10957 documentation a bit.
10958
10959 2014-01-21 Roland McGrath <mcgrathr@google.com>
10960
10961 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10962 * configure: Regenerate.
10963 * aclocal.m4: Regenerate.
10964 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10965 New substituted variables.
10966 (install-strip): New target.
10967 (INSTALL_SCRIPT): New substituted variable.
10968 (FLAGS_TO_PASS): Add it.
10969 (install-only): Use $(INSTALL_SCRIPT) rather than
10970 $(INSTALL_PROGRAM) for gcore.
10971
10972 2014-01-20 Tom Tromey <tromey@redhat.com>
10973
10974 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10975 together.
10976
10977 2014-01-20 Tom Tromey <tromey@redhat.com>
10978
10979 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10980 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10981 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10982 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10983 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10984 (struct cmd_list_element) <flags>: Remove.
10985 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10986 doc_allocated>: New fields.
10987 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10988 bitfields.
10989 * maint.c (maintenance_do_deprecate): Update.
10990 * top.c (execute_command): Update.
10991
10992 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10993
10994 * xtensa-linux-nat.c: Include asm/ptrace.h.
10995
10996 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10997
10998 * Makefile.in (SFILES): Add d-support.c.
10999 (COMMON_OBS): Add d-support.o.
11000 * d-lang.h (d_parse_symbol): Add comment, now defined in
11001 d-support.c.
11002 * d-lang.c (parse_call_convention)
11003 (parse_attributes, parse_function_types)
11004 (parse_function_args, parse_type, parse_identifier)
11005 (call_convention_p, d_parse_symbol): Move functions to ...
11006 * d-support.c: ... New file.
11007
11008 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11009
11010 * d-lang.h (d_parse_symbol): Add declaration.
11011 * d-lang.c (extract_identifiers)
11012 (extract_type_info): Remove functions.
11013 (parse_call_convention, parse_attributes)
11014 (parse_function_types, parse_function_args)
11015 (parse_type, parse_identifier, call_convention_p)
11016 (d_parse_symbol): New functions.
11017 (d_demangle): Use d_parse_symbol to demangle D symbols.
11018
11019 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11020
11021 * d-lang.h (struct builtin_d_type): New data type.
11022 (builtin_d_type): Add declaration.
11023 * d-lang.c (d_language_arch_info, build_d_types)
11024 (builtin_d_type): New functions.
11025 (enum d_primitive_types): New data type.
11026 (d_language_defn): Change c_language_arch_info to
11027 d_language_arch_info.
11028 (d_type_data): New static variable.
11029 (_initialize_d_language): Initialize d_type_data.
11030
11031 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11032
11033 * d-lang.h (d_main_name): Add declaration.
11034 * d-lang.c (d_main_name): New function.
11035 * symtab.c (find_main_name): Add call to d_main_name.
11036
11037 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11038
11039 * d-lang.c (d_language_defn): Change macro_expansion_c to
11040 macro_expansion_no.
11041
11042 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11043
11044 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11045
11046 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11047
11048 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11049 gdb_exception" declaration.
11050 * remote.c (getpkt_or_notif_sane): Likewise.
11051
11052 2014-01-17 Doug Evans <dje@google.com>
11053
11054 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11055 function, contents of dirnames_to_char_ptr_vec_append moved here.
11056 (delim_string_to_char_ptr_vec): New function.
11057 (dirnames_to_char_ptr_vec_append): Rewrite.
11058 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11059
11060 2014-01-17 Doug Evans <dje@google.com>
11061
11062 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11063 and moved here ...
11064 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11065 #include "common-utils.h".
11066 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11067 * common/vec.h (VEC_ASSERT_PASS): Update.
11068 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11069 (MACH_CHECK_ERROR): Update.
11070
11071 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11072
11073 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11074 comments.
11075 * gdbarch.h: Regenerate.
11076
11077 2014-01-16 Tom Tromey <tromey@redhat.com>
11078
11079 * value.c (struct value) <regnum>: Move earlier.
11080
11081 2014-01-16 Tom Tromey <tromey@redhat.com>
11082
11083 * remote.c (extended_remote_create_inferior): Rename from
11084 extended_remote_create_inferior_1. Add "ops" argument. Remove
11085 old implementation.
11086
11087 2014-01-16 Pedro Alves <palves@redhat.com>
11088
11089 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11090 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11091 the backchain.
11092
11093 2014-01-16 Doug Evans <dje@google.com>
11094
11095 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11096
11097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11098
11099 * btrace.h (btrace_thread_flag): New.
11100 (struct btrace_thread_info) <flags>: New.
11101 * record-btrace.c (record_btrace_resume_thread)
11102 (record_btrace_find_thread_to_move, btrace_step_no_history)
11103 (btrace_step_stopped, record_btrace_start_replaying)
11104 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11105 (record_btrace_find_resume_thread): New.
11106 (record_btrace_resume, record_btrace_wait): Extend.
11107 (record_btrace_can_execute_reverse): New.
11108 (record_btrace_open): Fail in non-stop mode.
11109 (record_btrace_set_replay): Split into this, ...
11110 (record_btrace_stop_replaying): ... this, ...
11111 (record_btrace_clear_histories): ... and this.
11112 (init_record_btrace_ops): Init to_can_execute_reverse.
11113 * NEWS: Announce it.
11114
11115 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11116
11117 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11118 (forward_target_decr_pc_after_break)
11119 (target_decr_pc_after_break): New.
11120 * target.c (forward_target_decr_pc_after_break)
11121 (target_decr_pc_after_break): New.
11122 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11123 instead of gdbarch_decr_pc_after_break.
11124 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11125 instead of gdbarch_decr_pc_after_break.
11126 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11127 instead of gdbarch_decr_pc_after_break.
11128 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11129 instead of gdbarch_decr_pc_after_break.
11130 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11131 instead of gdbarch_decr_pc_after_break.
11132 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11133 instead of gdbarch_decr_pc_after_break.
11134
11135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11136
11137 * btrace.c: Include regcache.h.
11138 (btrace_add_pc): New.
11139 (btrace_enable): Call btrace_add_pc.
11140 (btrace_is_empty): New.
11141 * btrace.h (btrace_is_empty): New.
11142 * record-btrace.c (require_btrace, record_btrace_info): Call
11143 btrace_is_empty.
11144
11145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11146
11147 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11148 Support delta reads.
11149 (linux_disable_btrace): Change return type.
11150 * common/linux-btrace.h (linux_read_btrace): Change parameters
11151 and return type to allow error reporting. Update users.
11152 (linux_disable_btrace): Change return type. Update users.
11153 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11154 New.
11155 (btrace_error): New.
11156 (btrace_block) <begin>: Comment on BEGIN == 0.
11157 * btrace.c (btrace_compute_ftrace): Start from the end of
11158 the current trace.
11159 (btrace_stitch_trace, btrace_clear_history): New.
11160 (btrace_fetch): Read delta trace, return if replaying.
11161 (btrace_clear): Move clear history code to btrace_clear_history.
11162 (parse_xml_btrace): Throw an error if parsing failed.
11163 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11164 and return type to allow error reporting.
11165 (target_read_btrace): Change parameters and return type to allow
11166 error reporting.
11167 * target.c (target_read_btrace): Update.
11168 * remote.c (remote_read_btrace): Support delta reads. Pass
11169 errors on.
11170 * NEWS: Announce it.
11171
11172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11173
11174 * record.h (record_btrace_frame_unwind)
11175 (record_btrace_tailcall_frame_unwind): New declarations.
11176 * dwarf2-frame: Include record.h
11177 (dwarf2_frame_cfa): Throw an error for btrace frames.
11178 * record-btrace.c: Include hashtab.h.
11179 (btrace_get_bfun_name): New.
11180 (btrace_call_history): Call btrace_get_bfun_name.
11181 (struct btrace_frame_cache): New.
11182 (bfcache): New.
11183 (bfcache_hash, bfcache_eq, bfcache_new): New.
11184 (btrace_get_frame_function): New.
11185 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11186 (record_btrace_frame_this_id): Compute own id.
11187 (record_btrace_frame_prev_register): Provide PC, throw_error
11188 for all other registers.
11189 (record_btrace_frame_sniffer): Detect btrace frames.
11190 (record_btrace_tailcall_frame_sniffer): New.
11191 (record_btrace_frame_dealloc_cache): New.
11192 (record_btrace_frame_unwind): Add new functions.
11193 (record_btrace_tailcall_frame_unwind): New.
11194 (_initialize_record_btrace): Allocate cache.
11195 * btrace.c (btrace_clear): Call reinit_frame_cache.
11196 * NEWS: Announce it.
11197
11198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11199
11200 * record-btrace.c (record_btrace_set_replay)
11201 (record_btrace_goto_begin, record_btrace_goto_end)
11202 (record_btrace_goto): New.
11203 (init_record_btrace_ops): Initialize them.
11204 * NEWS: Announce it.
11205
11206 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11207
11208 * record-btrace.c (record_btrace_find_new_threads)
11209 (record_btrace_thread_alive): New.
11210 (init_record_btrace_ops): Initialize to_find_new_threads and
11211 to_thread_alive.
11212
11213 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11214
11215 * record-btrace.c (record_btrace_resume): New.
11216 (record_btrace_wait): New.
11217 (init_record_btrace_ops): Initialize to_wait and to_resume.
11218
11219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11220
11221 * record-btrace.c (record_btrace_xfer_partial)
11222 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11223 (record_btrace_allow_memory_access): New.
11224 (init_record_btrace_ops): Initialize new methods.
11225 * target.c (raw_memory_xfer_partial): Bail out if target reports
11226 that this memory is not available.
11227
11228 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * target.h (target_ops) <to_insert_breakpoint>
11231 <to_remove_breakpoint>: Add target_ops parameter.
11232 (forward_target_insert_breakpoint): New.
11233 (forward_target_remove_breakpoint): New.
11234 (memory_remove_breakpoint, memory_insert_breakpoint):
11235 Add target_ops parameter.
11236 * target.c (target_insert_breakpoint): Split into this and ...
11237 (forward_target_insert_breakpoint): ... this.
11238 (target_remove_breakpoint): Split into this and ...
11239 (forward_target_remove_breakpoint): ... this.
11240 (debug_to_insert_breakpoint): Add target_ops parameter.
11241 Call forward_target_insert_breakpoint.
11242 (debug_to_remove_breakpoint): Add target_ops parameter.
11243 Call forward_target_remove_breakpoint.
11244 (update_current_target): Do not inherit or default to_insert_breakpoint
11245 and to_remove_breakpoint.
11246 * corelow.c (ignore): Add target_ops parameter.
11247 * exec.c (ignore): Add target_ops parameter.
11248 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11249 Add target_ops parameter.
11250 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11251 Add target_ops parameter.
11252 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11253 Add target_ops parameter.
11254 * record-full.c (record_full_beneath_to_insert_breakpoint)
11255 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11256 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11257 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11258 (record_full_core_remove_breakpoint): Add target_ops parameter.
11259 Update users.
11260 (record_full_beneath_to_insert_breakpoint_ops)
11261 (record_full_beneath_to_remove_breakpoint_ops)
11262 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11263 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11264 tmp_to_remove_breakpoint_ops,
11265 record_full_beneath_to_insert_breakpoint_ops, and
11266 record_full_beneath_to_remove_breakpoint_ops.
11267 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11268 (m32r_remove_breakpoint): Add target_ops parameter.
11269 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11270 Add target_ops parameter.
11271 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11272 Add target_ops parameter.
11273
11274 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11275 Markus Metzger <markus.t.metzger@intel.com>
11276
11277 * record-btrace.c: Include frame-unwind.h.
11278 (record_btrace_frame_unwind_stop_reason)
11279 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11280 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11281 New.
11282 (init_record_btrace_ops): Install it.
11283
11284 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11285
11286 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11287 get_prev_frame_1.
11288
11289 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11290
11291 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11292 earlier.
11293
11294 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11295
11296 * frame-unwind.c: Include target.h.
11297 (frame_unwind_try_unwinder): New function with code from ...
11298 (frame_unwind_find_by_frame): ... here. New variable
11299 unwinder_from_target, call also target_get_unwinder)
11300 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11301 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11302 * target.h (struct target_ops): New fields to_get_unwinder and
11303 to_get_tailcall_unwinder.
11304 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11305
11306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11307
11308 * record-btrace.c (record_btrace_fetch_registers)
11309 (record_btrace_store_registers)
11310 (record_btrace_to_prepare_to_store): New.
11311 (init_record_btrace_ops): Add the above.
11312
11313 2014-01-16 Tom Tromey <tromey@redhat.com>
11314
11315 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11316 * target.h (struct target_ops) <to_prepare_to_store>: Add
11317 argument.
11318 (target_prepare_to_store): Add argument.
11319 * target.c (debug_to_prepare_to_store): Add argument.
11320 (update_current_target): Update.
11321 * remote.c (remote_prepare_to_store): Add 'self' argument.
11322 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11323 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11324 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11325 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11326 argument.
11327 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11328 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11329 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11330 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11331 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11332
11333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11334
11335 * btrace.h (replay) <replay>: New.
11336 (btrace_is_replaying): New.
11337 * btrace.c (btrace_clear): Free replay iterator.
11338 (btrace_is_replaying): New.
11339 * record-btrace.c (record_btrace_is_replaying): New.
11340 (record_btrace_info): Print insn number if replaying.
11341 (record_btrace_insn_history): Start at replay position.
11342 (record_btrace_call_history): Start at replay position.
11343 (init_record_btrace_ops): Init to_record_is_replaying.
11344
11345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11346
11347 * record-btrace.c (record_btrace_insn_history_range): Include
11348 end.
11349 (record_btrace_insn_history_from): Adjust range.
11350 (record_btrace_call_history_range): Include
11351 end.
11352 (record_btrace_call_history_from): Adjust range.
11353 * NEWS: Announce changes.
11354
11355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11356
11357 * record.h (enum record_print_flag)
11358 <record_print_indent_calls>: New.
11359 * record.c (get_call_history_modifiers): Recognize /c modifier.
11360 (_initialize_record): Document /c modifier.
11361 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11362 Reorder fields. Optionally indent the function name. Update
11363 all users.
11364 * NEWS: Announce changes.
11365
11366 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11367
11368 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11369
11370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371
11372 * btrace.c (ftrace_new_function): Start counting at one.
11373 * record-btrace.c (record_btrace_info): Adjust number of calls
11374 and insns.
11375 * NEWS: Announce it.
11376
11377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11378
11379 * record-btrace.c (btrace_call_history_insn_range): Print
11380 insn range as [begin, end].
11381
11382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11383
11384 * btrace.h (struct btrace_func_link): New.
11385 (enum btrace_function_flag): New.
11386 (struct btrace_inst): Rename to ...
11387 (struct btrace_insn): ...this. Update all users.
11388 (struct btrace_func) <ibegin, iend>: Remove.
11389 (struct btrace_func_link): New.
11390 (struct btrace_func): Rename to ...
11391 (struct btrace_function): ...this. Update all users.
11392 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11393 (number, level, flags>: New.
11394 (struct btrace_insn_iterator): Rename to ...
11395 (struct btrace_insn_history): ...this.
11396 Update all users.
11397 (struct btrace_insn_iterator, btrace_call_iterator): New.
11398 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11399 (struct btrace_target_info) <begin, end, level>
11400 <insn_history, call_history>: New.
11401 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11402 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11403 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11404 (btrace_call_number, btrace_call_begin, btrace_call_end)
11405 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11406 (btrace_find_function_by_number, btrace_set_insn_history)
11407 (btrace_set_call_history): New.
11408 * btrace.c (btrace_init_insn_iterator)
11409 (btrace_init_func_iterator, compute_itrace): Remove.
11410 (ftrace_print_function_name, ftrace_print_filename)
11411 (ftrace_skip_file): Change
11412 parameter to const.
11413 (ftrace_init_func): Remove.
11414 (ftrace_debug): Use new btrace_function fields.
11415 (ftrace_function_switched): Also consider gaining and
11416 losing symbol information).
11417 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11418 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11419 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11420 New.
11421 (ftrace_new_function): Move. Remove debug print.
11422 (ftrace_update_lines, ftrace_update_insns): New.
11423 (ftrace_update_function): Check for call, ret, and jump.
11424 (compute_ftrace): Renamed to ...
11425 (btrace_compute_ftrace): ...this. Rewritten to compute call
11426 stack.
11427 (btrace_fetch, btrace_clear): Updated.
11428 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11429 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11430 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11431 (btrace_call_number, btrace_call_begin, btrace_call_end)
11432 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11433 (btrace_find_function_by_number, btrace_set_insn_history)
11434 (btrace_set_call_history): New.
11435 * record-btrace.c (require_btrace): Use new btrace thread
11436 info fields.
11437 (record_btrace_info, btrace_insn_history)
11438 (record_btrace_insn_history, record_btrace_insn_history_range):
11439 Use new btrace thread info fields and new iterator.
11440 (btrace_func_history_src_line): Rename to ...
11441 (btrace_call_history_src_line): ...this. Use new btrace
11442 thread info fields.
11443 (btrace_func_history): Rename to ...
11444 (btrace_call_history): ...this. Use new btrace thread info
11445 fields and new iterator.
11446 (record_btrace_call_history, record_btrace_call_history_range):
11447 Use new btrace thread info fields and new iterator.
11448
11449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11450
11451 * frame.h (frame_id_build_unavailable_stack_special): New.
11452 * frame.c (frame_id_build_unavailable_stack_special): New.
11453
11454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11455
11456 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11457 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11458 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11459 to gdbarch.
11460 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11461 (i386_insn_is_jump, i386_jmp_p): New.
11462 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11463 insn_is_jump to gdbarch.
11464 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11465 * gdbarch.h: Regenerated.
11466 * gdbarch.c: Regenerated.
11467 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11468 (default_insn_is_jump): New.
11469 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11470 (default_insn_is_jump): New.
11471
11472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11473
11474 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11475 Change to ...
11476 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11477 (btrace_read_type) <btrace_read_new>: Change to ...
11478 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11479
11480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11481
11482 * common/linux-btrace.c (linux_read_btrace): Free trace from
11483 previous iteration.
11484
11485 2014-01-15 Doug Evans <dje@google.com>
11486
11487 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11488 uint32_t.
11489
11490 2014-01-15 Tom Tromey <tromey@redhat.com>
11491
11492 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11493 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11494 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11495 (set_objfile_main_name): New function.
11496 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11497 language_of_main>: New fields.
11498 (set_objfile_main_name): Declare.
11499 * symtab.c (find_main_name): Loop over objfiles to find the main
11500 name and language.
11501 (set_main_name): Now static.
11502 (get_main_info): Add comment.
11503 * symtab.h (set_main_name): Don't declare.
11504
11505 2014-01-15 Tom Tromey <tromey@redhat.com>
11506
11507 * symtab.c (main_progspace_key): New global.
11508 (struct main_info): New.
11509 (name_of_main, language_of_main): Remove.
11510 (get_main_info, main_info_cleanup): New function.
11511 (set_main_name, main_name, main_language): Use get_main_info.
11512 (_initialize_symtab): Initialize main_progspace_key.
11513
11514 2014-01-15 Tom Tromey <tromey@redhat.com>
11515
11516 * dbxread.c (process_one_symbol): Update.
11517 * dwarf2read.c (read_partial_die): Update.
11518 * symfile.c (set_initial_language): Call main_language.
11519 * symtab.c (language_of_main): Now static.
11520 (set_main_name): Add 'lang' parameter.
11521 (find_main_name): Update.
11522 (main_language): New function.
11523 (symtab_observer_executable_changed): Update.
11524 * symtab.h (set_main_name): Update.
11525 (language_of_main): Remove.
11526 (main_language): Declare.
11527
11528 2014-01-15 Tom Tromey <tromey@redhat.com>
11529
11530 * symfile.c (init_entry_point_info): Use new "initialized" field.
11531 Update.
11532 * objfiles.h (struct entry_point) <initialized>: New field.
11533 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11534 (struct objfile) <ei>: ...here. Remove.
11535 * objfiles.c (entry_point_address_query): Update.
11536
11537 2014-01-15 Tom Tromey <tromey@redhat.com>
11538
11539 * objfiles.c (entry_point_address_query): Relocate entry point
11540 address.
11541 (objfile_relocate1): Do not relocate entry point address.
11542 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11543 <the_bfd_section_index>: New field.
11544 * symfile.c (init_entry_point_info): Find the entry point's
11545 section.
11546
11547 2014-01-15 Tom Tromey <tromey@redhat.com>
11548
11549 * solib-frv.c (enable_break): Use entry_point_address_query.
11550
11551 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11552
11553 * NEWS: Add note on improved process record-replay on
11554 arm*-linux* targets.
11555
11556 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11557
11558 * arm-tdep.c (enum arm_record_result): New enum.
11559 (arm_record_unsupported_insn): New function.
11560 (arm_record_coproc_data_proc): Removed.
11561 (thumb2_record_ld_st_multiple): New function.
11562 (thumb2_record_ld_st_dual_ex_tbb): New function.
11563 (thumb2_record_data_proc_sreg_mimm): New function.
11564 (thumb2_record_ps_dest_generic): New function.
11565 (thumb2_record_branch_misc_cntrl): New function.
11566 (thumb2_record_str_single_data): New function.
11567 (thumb2_record_ld_mem_hints): New function.
11568 (thumb2_record_ld_word): New function.
11569 (thumb2_record_lmul_lmla_div): New function.
11570 (thumb2_record_decode_insn_handler): New function.
11571 (decode_insn): Add thumb32 instruction handlers.
11572
11573 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11574
11575 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11576 (struct arm_linux_record_tdep): Declare.
11577 (arm_canonicalize_syscall): New function.
11578 (arm_all_but_pc_registers_record): New function.
11579 (arm_linux_syscall_record): New function.
11580 (arm_linux_init_abi): Add syscall recording constructs.
11581 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11582 decoding. (arm_record_coproc_data_proc): Update arm syscall
11583 decoding.
11584 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11585 <arm_syscall_record>: New field.
11586 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11587 gdb_target_obs.
11588
11589 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11590
11591 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11592 register for push instruction recording.
11593
11594 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11595
11596 * arm-tdep.c (thumb_record_misc): Update to correct logical
11597 error while recording ldm, ldmia and pop instructions.
11598
11599 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11600
11601 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11602
11603 2014-01-15 Pedro Alves <palves@redhat.com>
11604
11605 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11606 (go32_resume, go32_fetch_registers, store_register)
11607 (go32_store_registers, go32_prepare_to_store)
11608 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11609 (go32_create_inferior, go32_can_run, go32_terminal_init)
11610 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11611 declarations.
11612
11613 2014-01-15 Tom Tromey <tromey@redhat.com>
11614
11615 * target.h (async_callback_ftype): New typedef.
11616 (struct target_ops) <to_async>: Use it.
11617
11618 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11619
11620 * python/py-value.c (get_field_type): Remove unnecessary curly
11621 braces for single-statement if block.
11622
11623 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11624
11625 * python/py-type.c (convert_field): Add missing empty line
11626 after declarations.
11627
11628 2014-01-14 Doug Evans <dje@google.com>
11629
11630 * symfile.h (expand_symtabs_matching): Renamed from
11631 expand_partial_symbol_names. Update prototype.
11632 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11633 * symfile.c (expand_symtabs_matching): Renamed from
11634 expand_partial_symbol_names. New args file_matcher, kind.
11635 Rename arg fun to symbol_matcher.
11636 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11637 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11638 ada_expand_partial_symbol_name.
11639 (ada_make_symbol_completion_list): Update to call
11640 expand_symtabs_matching.
11641 (ada_add_global_exceptions): Call expand_symtabs_matching.
11642 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11643 call map_symbol_filenames.
11644 * symtab.c (sources_info): Update to call map_symbol_filenames.
11645 (search_symbols): Call expand_symtabs_matching.
11646 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11647 (default_make_symbol_completion_list_break_on): Update to call
11648 expand_symtabs_matching.
11649 (make_source_files_completion_list): Update to call
11650 map_symbol_filenames.
11651
11652 2014-01-14 Doug Evans <dje@google.com>
11653
11654 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11655 (expand_symtabs_symbol_matcher_ftype): New typedef.
11656 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11657 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11658 * symfile.c (expand_partial_symbol_names): Update to use
11659 expand_symtabs_symbol_matcher_ftype.
11660 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11661 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11662 Arg name_matcher renamed to symbol_matcher.
11663 * psymtab.c (recursively_search_psymtabs): Update to use
11664 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11665 sym_matcher.
11666 (expand_symtabs_matching_via_partial): Update to use
11667 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11668 Arg name_matcher renamed to symbol_matcher.
11669
11670 2014-01-14 Doug Evans <dje@google.com>
11671
11672 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11673 (map_partial_symbol_filenames): Ditto.
11674 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11675 (map_partial_symbol_filenames): Ditto.
11676 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11677 (map_partial_symbol_filenames): Ditto.
11678 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11679 (map_partial_symbol_filenames): Ditto.
11680 * symtab.c: Delete #include "psymtab.h".
11681
11682 2014-01-14 Pedro Alves <palves@redhat.com>
11683 Tom Tromey <tromey@redhat.com>
11684
11685 * infrun.c (use_displaced_stepping): Use find_record_target
11686 instead of RECORD_IS_USED.
11687 (adjust_pc_after_break): Use record_full_is_used instead of
11688 RECORD_IS_USED.
11689 * record-btrace.c (record_btrace_open): Call record_preopen
11690 instead of checking RECORD_IS_USED.
11691 * record-full.c (record_full_shortname)
11692 (record_full_core_shortname): New globals.
11693 (record_full_is_used): New function.
11694 (find_full_open): Call record_preopen instead of checking
11695 RECORD_IS_USED.
11696 (init_record_full_ops): Set the target's shortname to
11697 record_full_shortname.
11698 (init_record_full_core_ops): Set the target's shortname to
11699 record_full_core_shortname.
11700 * record-full.h (record_full_is_used): Declare.
11701 * record.c (find_record_target): Make extern.
11702 (record_preopen): New function.
11703 * record.h (RECORD_IS_USED): Delete macro.
11704 (find_record_target, record_preopen): Declare functions.
11705
11706 2014-01-14 Yao Qi <yao@codesourcery.com>
11707
11708 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11709 'len''s type to ULONGEST.
11710 (core_xfer_shared_libraries_aix): Likewise.
11711 * gdbarch.c, gdbarch.h: Regenerated.
11712 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11713 Change type of 'len' to ULONGEST.
11714 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11715 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11716
11717 2014-01-14 Yao Qi <yao@codesourcery.com>
11718
11719 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11720 type of 'len' to ULONGEST.
11721 (linux_xfer_osdata_processgroups): Likewise.
11722 (linux_xfer_osdata_threads): Likewise.
11723 (linux_xfer_osdata_fds): Likewise.
11724 (linux_xfer_osdata_isockets): Likewise.
11725 (linux_xfer_osdata_shm): Likewise.
11726 (linux_xfer_osdata_sem): Likewise.
11727 (linux_xfer_osdata_msg): Likewise.
11728 (linux_common_xfer_osdata): Likewise.
11729 (struct osdata_type) <getter>: Likewise.
11730 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11731 the declaration.
11732
11733 2014-01-14 Yao Qi <yao@codesourcery.com>
11734
11735 * target.h (target_xfer_partial_ftype): Update.
11736 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11737 ULONGEST.
11738 * aix-thread.c (aix_thread_xfer_partial): Change type of
11739 argument 'len' to ULONGEST.
11740 * auxv.c (procfs_xfer_auxv): Likewise.
11741 (ld_so_xfer_auxv): Likewise.
11742 (memory_xfer_auxv): Likewise.
11743 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11744 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11745 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11746 * corelow.c (core_xfer_partial): Likewise.
11747 * ctf.c (ctf_xfer_partial): Likewise.
11748 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11749 '%u'.
11750 (darwin_read_dyld_info): Likewise.
11751 (darwin_xfer_partial): Likewise.
11752 * exec.c (section_table_xfer_memory_partial): Likewise.
11753 (exec_xfer_partial): Likewise.
11754 * exec.h (section_table_xfer_memory_partial): Update
11755 declaration.
11756 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11757 instead of plongest.
11758 (gnu_xfer_partial): Likewise.
11759 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11760 (ia64_hpux_xfer_solib_got): Likewise.
11761 (ia64_hpux_xfer_partial): Likewise.
11762 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11763 * inf-ptrace.c (inf_ptrace_xfer_partial):
11764 * inf-ttrace.c (inf_ttrace_xfer_partial):
11765 * linux-nat.c (linux_xfer_siginfo): Likewise.
11766 (linux_nat_xfer_partial): Likewise.
11767 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11768 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11769 * monitor.c (monitor_xfer_memory): Likewise.
11770 (monitor_xfer_partial): Likewise.
11771 * procfs.c (procfs_xfer_partial): Likewise.
11772 * record-full.c (record_full_xfer_partial): Likewise.
11773 (record_full_core_xfer_partial): Likewise.
11774 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11775 instead of plongest.
11776 (gdbsim_xfer_partial): Likewise.
11777 * remote.c (remote_xfer_partial): Likewise.
11778 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11779 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11780 declaration.
11781 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11782 (rs6000_xfer_shared_libraries): Likewise.
11783 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11784 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11785 (sparc_xfer_partial): Likewise.
11786 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11787 (spu_xfer_partial): Likewise.
11788 * spu-multiarch.c (spu_xfer_partial): Likewise.
11789 * target.c (target_read_live_memory): Likewise.
11790 (memory_xfer_live_readonly_partial): Likewise.
11791 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11792 (target_xfer_partial, default_xfer_partial): Likewise.
11793 (current_xfer_partial): Likewise.
11794 * tracepoint.c (tfile_xfer_partial): Likewise.
11795 * windows-nat.c (windows_xfer_memory): Likewise. Call
11796 pulongest instead of plongest.
11797 (windows_xfer_partial): Likewise.
11798 (windows_xfer_shared_libraries): Likewise.
11799
11800 2014-01-14 Yao Qi <yao@codesourcery.com>
11801
11802 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11803 target_xfer_partial_ftype.
11804
11805 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11806
11807 PR python/15464
11808 PR python/16113
11809 * valops.c (value_struct_elt_bitpos): New function
11810 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11811 object to 'None' if the field name is an empty string ("").
11812 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11813 attribute to look for a field when 'name' is 'None'.
11814 (get_field_type): New function
11815
11816 2014-01-13 Doug Evans <dje@google.com>
11817
11818 PR symtab/16426
11819 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11820 (try_open_dwop_file): Ditto.
11821 * gdb_bfd.c: #include "vec.h".
11822 (bfdp): New typedef.
11823 (struct gdb_bfd_data): New member included_bfds.
11824 (gdb_bfd_unref): Unref all included bfds.
11825 (gdb_bfd_record_inclusion): New function.
11826 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11827
11828 2014-01-13 Tom Tromey <tromey@redhat.com>
11829
11830 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11831
11832 2014-01-13 Tom Tromey <tromey@redhat.com>
11833
11834 * defs.h (use_windows): Remove.
11835 * gdb.c (main): Update.
11836 * main.c (captured_main, gdb_main): Update.
11837 * main.h (struct captured_main_args) <use_windows>: Remove.
11838 * top.c (use_windows): Remove.
11839
11840 2014-01-13 Tom Tromey <tromey@redhat.com>
11841
11842 * defs.h (deprecated_flush_hook): Remove.
11843
11844 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11845
11846 PR threads/16216
11847 * linux-thread-db.c (try_thread_db_load): Add parameter
11848 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11849 (try_thread_db_load_from_pdir_1): Move it there from here.
11850 (try_thread_db_load_from_sdir): Update caller.
11851 (try_thread_db_load_from_dir): Move it there from here.
11852
11853 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11854
11855 * regformats/regdat.sh: Always rewrite the register file.
11856
11857 2014-01-13 Pedro Alves <palves@redhat.com>
11858
11859 * Makefile.in (CHECK_HEADERS): New variable.
11860 (check-headers:): New rule.
11861
11862 2014-01-13 Tom Tromey <tromey@redhat.com>
11863
11864 * cli/cli-setshow.c (do_set_command): Update.
11865 * defs.h (deprecated_set_hook): Remove.
11866 * top.c (deprecated_set_hook): Remove.
11867
11868 2014-01-13 Pedro Alves <palves@redhat.com>
11869
11870 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11871 the tracepoint if the PC is a pseudo-register.
11872
11873 2014-01-13 Tom Tromey <tromey@redhat.com>
11874
11875 * defs.h (XCALLOC): Remove.
11876 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11877 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11878 * dwarf2loc.c (allocate_piece_closure): Likewise.
11879 * elfread.c (elf_symfile_segments): Likewise.
11880 (elf_symfile_segments): Likewise.
11881 * gdbtypes.c (copy_type_recursive): Likewise.
11882 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11883 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11884 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11885 XCALLOC.
11886 * mt-tdep.c (mt_gdbarch_init): Likewise.
11887 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11888 XCALLOC.
11889 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11890 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11891 * registry.c (registry_alloc_data): Likewise.
11892 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11893 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11894 * serial.c (serial_fdopen_ops): Likewise.
11895 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11896 XCALLOC.
11897 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11898 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11899 not XCALLOC.
11900
11901 2014-01-13 Tom Tromey <tromey@redhat.com>
11902
11903 * defs.h (XMALLOC): Remove.
11904 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11905 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11906 * cli-out.c (struct ui_out *): Likewise.
11907 * cli/cli-dump.c (add_dump_command): Likewise.
11908 (add_dump_command): Likewise.
11909 * complaints.c (get_complaints): Likewise.
11910 (find_complaint): Likewise.
11911 * dwarf2-frame.c (execute_cfa_program): Likewise.
11912 * dwarf2read.c (abbrev_table_read_table): Likewise.
11913 * gdbarch.sh: Likewise.
11914 * gdbarch.c: Rebuild.
11915 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11916 * interps.c (interp_new): Likewise.
11917 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11918 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11919 * mi/mi-console.c (mi_console_file_new): Likewise.
11920 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11921 * mi/mi-out.c (mi_out_new): Likewise.
11922 * mi/mi-parse.c (mi_parse): Likewise.
11923 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11924 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11925 * observer.c (xalloc_observer_list_node): Likewise.
11926 * regcache.c (regcache_xmalloc_1): Likewise.
11927 * reggroups.c (reggroup_new): Likewise.
11928 (_initialize_reggroup): Likewise.
11929 * registry.c (register_data_with_cleanup): Likewise.
11930 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11931 * ser-base.c (serial_ttystate): Likewise.
11932 * ser-mingw.c (make_pipe_state): Likewise.
11933 * ser-pipe.c (pipe_open): Likewise.
11934 * serial.c (serial_open): Likewise.
11935 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11936 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11937 (tui_alloc_win_info): Likewise.
11938 (tui_add_content_elements): Likewise.
11939 * tui/tui-file.c (tui_file_new): Likewise.
11940 * tui/tui-out.c (tui_out_new): Likewise.
11941 * ui-file.c (mem_file_new): Likewise.
11942 * ui-out.c (push_level): Likewise.
11943 (make_cleanup_ui_out_end): Likewise.
11944 (append_header_to_list): Likewise.
11945 (ui_out_new): Likewise.
11946 * user-regs.c (user_reg_add_builtin): Likewise.
11947
11948 2014-01-13 Tom Tromey <tromey@redhat.com>
11949
11950 * defs.h (XZALLOC): Remove.
11951 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11952 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11953 (get_ada_tasks_inferior_data): Likewise.
11954 * auto-load.c (get_auto_load_pspace_data): Likewise.
11955 * auxv.c (get_auxv_inferior_data): Likewise.
11956 * bfd-target.c (target_bfd_reopen): Likewise.
11957 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11958 (deprecated_insert_raw_breakpoint): Likewise.
11959 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11960 * corelow.c (core_open): Likewise.
11961 * darwin-nat.c (darwin_check_new_threads): Likewise.
11962 (darwin_attach_pid): Likewise.
11963 * dummy-frame.c (dummy_frame_push): Likewise.
11964 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11965 * dwarf2loc.c (allocate_piece_closure): Likewise.
11966 * elfread.c (elf_symfile_segments): Likewise.
11967 * eval.c (ptrmath_type_p): Likewise.
11968 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11969 * gdbtypes.c (alloc_type_arch): Likewise.
11970 (alloc_type_instance): Likewise.
11971 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11972 * inf-child.c (inf_child_can_use_agent): Likewise.
11973 * inflow.c (get_inflow_inferior_data): Likewise.
11974 * infrun.c (save_infcall_suspend_state): Likewise.
11975 * jit.c (jit_reader_load): Likewise.
11976 (get_jit_objfile_data): Likewise.
11977 (get_jit_program_space_data): Likewise.
11978 (jit_object_open_impl): Likewise.
11979 (jit_symtab_open_impl): Likewise.
11980 (jit_block_open_impl): Likewise.
11981 (jit_frame_sniffer): Likewise.
11982 * linux-fork.c (add_fork): Likewise.
11983 * maint.c (make_command_stats_cleanup): Likewise.
11984 * objfiles.c (get_objfile_pspace_data): Likewise.
11985 * opencl-lang.c (struct lval_closure): Likewise.
11986 * osdata.c (osdata_start_osdata): Likewise.
11987 * progspace.c (new_address_space): Likewise.
11988 (add_program_space): Likewise.
11989 * remote-sim.c (get_sim_inferior_data): Likewise.
11990 * sh-tdep.c (sh_gdbarch_init): Likewise.
11991 * skip.c (Ignore): Likewise.
11992 (skip_delete_command): Likewise.
11993 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11994 (library_list_start_library): Likewise.
11995 (solib_aix_current_sos): Likewise.
11996 * solib-darwin.c (get_darwin_info): Likewise.
11997 (darwin_current_sos): Likewise.
11998 * solib-dsbt.c (get_dsbt_info): Likewise.
11999 * solib-ia64-hpux.c (new_so_list): Likewise.
12000 (ia64_hpux_get_solib_linkage_addr): Likewise.
12001 * solib-spu.c (append_ocl_sos): Likewise.
12002 (spu_current_sos): Likewise.
12003 * solib-svr4.c (get_svr4_info): Likewise.
12004 (svr4_keep_data_in_core): Likewise.
12005 (library_list_start_library): Likewise.
12006 (svr4_default_sos): Likewise.
12007 (svr4_read_so_list): Likewise.
12008 * solib-target.c (library_list_start_library): Likewise.
12009 (solib_target_current_sos): Likewise.
12010 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12011 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12012 * symfile.c (default_symfile_segments): Likewise.
12013 * target-descriptions.c (tdesc_data_init): Likewise.
12014 (tdesc_create_reg): Likewise.
12015 (struct tdesc_type *): Likewise.
12016 (tdesc_create_vector): Likewise.
12017 (tdesc_set_struct_size): Likewise.
12018 (struct tdesc_type *): Likewise.
12019 (tdesc_free_feature): Likewise.
12020 (tdesc_create_feature): Likewise.
12021 * windows-nat.c (windows_add_thread): Likewise.
12022 (windows_make_so): Likewise.
12023 * xml-support.c (gdb_xml_body_text): Likewise.
12024 (gdb_xml_create_parser_and_cleanup): Likewise.
12025 (xml_process_xincludes): Likewise.
12026 * xml-syscall.c (allocate_syscalls_info): Likewise.
12027 (syscall_create_syscall_desc): Likewise.
12028
12029 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12030
12031 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12032 function, with code from i386_stap_parse_special_token.
12033 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12034 (i386_stap_parse_special_token): Move code to the two functions
12035 above; simplify it.
12036
12037 2014-01-09 Pedro Alves <palves@redhat.com>
12038 Hui Zhu <hui@codesourcery.com>
12039
12040 PR gdb/16101
12041 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12042 bp_err_string. Don't mark the location shlib_disabled if the
12043 error thrown wasn't a generic or memory error. Catch errors
12044 thrown while inserting breakpoints in overlayed code. Output
12045 error message of software breakpoints.
12046 * remote.c (remote_insert_breakpoint): If this breakpoint has
12047 target-side commands but this stub doesn't support Z0 packets,
12048 throw NOT_SUPPORTED_ERROR error.
12049 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12050 * target.h (target_insert_breakpoint): Extend comment.
12051 (target_insert_hw_breakpoint): Add comment.
12052
12053 2014-01-08 Pedro Alves <palves@redhat.com>
12054
12055 * remote.c (remote_add_thread): Add threads silently if starting
12056 up.
12057 (remote_notice_new_inferior): If in all-stop, and starting up,
12058 don't call notice_new_inferior.
12059 (get_current_thread): New function, factored out from ...
12060 (add_current_inferior_and_thread): ... this. Adjust.
12061 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12062 found any thread, then select the remote's current thread as GDB's
12063 current thread too.
12064
12065 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12066
12067 * NEWS: Create a new section for the next release branch.
12068 Rename the section of the current branch, now that it has
12069 been cut.
12070
12071 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12072
12073 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12074 * version.in: Bump version to 7.7.50.DATE-cvs.
12075
12076 2014-01-08 Yao Qi <yao@codesourcery.com>
12077
12078 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12079 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12080 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12081
12082 2014-01-08 Yao Qi <yao@codesourcery.com>
12083
12084 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12085 return value of bfd_get_filename to symbol_file_add_from_bfd.
12086
12087 2014-01-08 Pierre Muller <muller@sourceware.org>
12088
12089 Fix PR16201.
12090 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12091 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12092 to prim_record_mininal_symbol_and_info.
12093 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12094 in call to prim_record_minimal_symbol_and_info.
12095 (read_pe_exported_syms): Set index field of section_data.
12096
12097 2014-01-07 Andrew Pinski <apinski@cavium.com>
12098
12099 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12100 * features/aarch64.c: Regenerate.
12101
12102 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12103
12104 * target.c (return_null): Define.
12105 (update_current_target): Use it instead of return_zero for
12106 functions that return a pointer.
12107
12108 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12109
12110 * source.c (add_path): Fix check for duplicated paths in the previously
12111 included paths.
12112
12113 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12114
12115 * ada-lang.c: Remove duplicated include statements.
12116 * alphabsd-nat.c: Ditto.
12117 * amd64-darwin-tdep.c: Ditto.
12118 * amd64fbsd-nat.c: Ditto.
12119 * auto-load.c: Ditto.
12120 * ax-gdb.c: Ditto.
12121 * breakpoint.c: Ditto.
12122 * dbxread.c: Ditto.
12123 * fork-child.c: Ditto.
12124 * gdb_usleep.c: Ditto.
12125 * i386-darwin-tdep.c: Ditto.
12126 * i386fbsd-nat.c: Ditto.
12127 * infcmd.c: Ditto.
12128 * inferior.c: Ditto.
12129 * jv-lang.c: Ditto.
12130 * linux-nat.c: Ditto.
12131 * linux-tdep.c: Ditto.
12132 * m68kbsd-nat.c: Ditto.
12133 * m68klinux-nat.c: Ditto.
12134 * microblaze-tdep.c: Ditto.
12135 * mips-linux-tdep.c: Ditto.
12136 * mn10300-tdep.c: Ditto.
12137 * nto-tdep.c: Ditto.
12138 * opencl-lang.c: Ditto.
12139 * osdata.c: Ditto.
12140 * printcmd.c: Ditto.
12141 * regcache.c: Ditto.
12142 * remote-m32r-sdi.c: Ditto.
12143 * remote.c: Ditto.
12144 * symfile.c: Ditto.
12145 * symtab.c: Ditto.
12146 * tilegx-linux-nat.c: Ditto.
12147 * tilegx-tdep.c: Ditto.
12148 * tracepoint.c: Ditto.
12149 * valops.c: Ditto.
12150 * vaxbsd-nat.c: Ditto.
12151 * windows-nat.c: Ditto.
12152 * xtensa-tdep.c: Ditto.
12153
12154 2014-01-07 Yao Qi <yao@codesourcery.com>
12155
12156 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12157
12158 2014-01-07 Yao Qi <yao@codesourcery.com>
12159 Joel Brobecker <brobecker@adacore.com>
12160
12161 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12162 (pdc_write_regs): Likewise.
12163 (fetch_regs_kernel_thread): Likewise.
12164 (store_regs_kernel_thread): Likewise.
12165
12166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12167
12168 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12169 tagged type objects to their actual type.
12170
12171 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12172
12173 * ada-valprint.c (print_field_values): Add "language" parameter.
12174 Update calls to print_field_values and print_variant_part.
12175 Pass new parameter "language" in call to val_print instead
12176 of "current_language". Replace call to ada_val_print by call
12177 to val_print.
12178 (print_variant_part): Add "language" parameter.
12179 (ada_val_print_struct_union): Update call to print_field_values.
12180
12181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12182
12183 * ada-valprint.c (ui_memcpy): Delete.
12184 (ada_print_floating): Update documentation. Add empty line
12185 between between function documentation and implementation.
12186 Delete variable "buffer". Use ui_file_xstrdup in place of
12187 ui_file_put. Minor adjustments following this change.
12188
12189 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12190
12191 * ada-valprint.c (ada_val_print_string): New function,
12192 extracted from ada_val_print_array.
12193 (ada_val_print_array): Replace extracted code by call
12194 to ada_val_print_string followed by a return. Move
12195 "else" branch to the function's top block.
12196
12197 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12198
12199 * ada-valprint.c (ada_val_print_array): Move implementation
12200 down. Rename parameter "offset" and "val" into "offset_aligned"
12201 and "original_value" respectively. Add parameter "offset".
12202
12203 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12204
12205 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12206 re-organizing the code. Change the "???" message printed
12207 when target type is a TYPE_CODE_UNDEF into
12208 "<ref to undefined type>".
12209
12210 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12211
12212 * ada-valprint.c (print_record): Delete, implementation inlined...
12213 (ada_val_print_struct_union): ... here. Remove call to
12214 ada_check_typedef in inlined implementation.
12215
12216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12217
12218 * ada-valprint.c (ada_val_print_gnat_array): New function,
12219 extracted from ada_val_print_1;
12220 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12221 (ada_val_print_flt, ada_val_print_struct_union)
12222 (ada_val_print_ref): Likewise.
12223 (ada_val_print_1): Delete variables i and elttype.
12224 Replace extracted-out code by call to corresponding
12225 new functions.
12226
12227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12228
12229 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12230
12231 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12232
12233 * ada-valprint.c (ada_val_print_1): Replace calls to
12234 ada_val_print_1 by calls to val_print.
12235
12236 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12237
12238 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12239 Update calls to self accordingly. Replace calls to c_val_print
12240 by calls to val_print.
12241
12242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12243
12244 * ada-valprint.c (print_record): Delete declaration.
12245 (adjust_type_signedness, ada_val_print_1): Likewise.
12246 (ada_val_print): Move function implementation down.
12247 (print_variant_part, print_field_values, print_record):
12248 Move function implementation up.
12249
12250 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12251
12252 * python/py-type.c (typy_get_name): New function.
12253 (type_object_getset): Add entry for attribute "name".
12254 * NEWS: Add entry mentioning this new attribute.
12255
12256 2014-01-07 Yao Qi <yao@codesourcery.com>
12257
12258 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12259 statement.
12260
12261 2014-01-07 Yao Qi <yao@codesourcery.com>
12262
12263 * gnu-nat.c (info_port_rights): Add qualifier const to
12264 argument args.
12265
12266 2014-01-07 Yao Qi <yao@codesourcery.com>
12267
12268 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12269
12270 2014-01-07 Yao Qi <yao@codesourcery.com>
12271
12272 * gnu-nat.c (make_inf) Update declaration.
12273 (make_inf): Make it static.
12274 (inf_set_traced): Likewise.
12275 (inf_port_to_thread, inf_task_died_status): Likewise.
12276
12277 2014-01-07 Yao Qi <yao@codesourcery.com>
12278
12279 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12280
12281 2014-01-07 Yao Qi <yao@codesourcery.com>
12282
12283 * gnu-nat.c (_initialize_gnu_nat): Declare.
12284
12285 2014-01-07 Yao Qi <yao@codesourcery.com>
12286
12287 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12288 'enum bfd_endian'.
12289 (struct gdbarch_info) <byte_order>: Change type to
12290 'enum bfd_endian'.
12291 <byte_order_for_code>: Likewise.
12292 * gdbarch.c, gdbarch.h: Regenerated.
12293
12294 2014-01-06 Sasha Smundak <asmundak@google.com>
12295
12296 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12297
12298 2014-01-06 Tom Tromey <tromey@redhat.com>
12299
12300 * doublest.c (convert_doublest_to_floatformat): Use const, not
12301 CONST.
12302 * somread.c (som_symtab_read): Likewise.
12303
12304 2014-01-07 Hui Zhu <hui@codesourcery.com>
12305
12306 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12307 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12308 (gdb_bfd_fopen): Ditto.
12309 (gdb_bfd_openr): Ditto.
12310 (gdb_bfd_openw): Ditto.
12311 (gdb_bfd_openr_iovec): Ditto.
12312 (gdb_bfd_fdopenr): Ditto.
12313 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12314 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12315 with xstrdup.
12316 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12317 with xstrdup.
12318 * symfile-mem.c (symbol_file_add_from_memory): Removed
12319 gdb_bfd_stash_filename.
12320
12321 2014-01-03 Doug Evans <dje@google.com>
12322
12323 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12324 output.
12325
12326 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12327
12328 Update year range in copyright notice of all files.
12329
12330 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12331
12332 * top.c (print_gdb_version): Set copyright year to 2014.
12333
12334 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12335
12336 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12337
12338 For older changes see ChangeLog-2013.
12339 \f
12340 Local Variables:
12341 mode: change-log
12342 left-margin: 8
12343 fill-column: 74
12344 version-control: never
12345 coding: utf-8
12346 End:
This page took 0.419023 seconds and 5 git commands to generate.