809afe5e7335f65208f0ef80a186e98adca0a37b
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-08-29 Gary Benson <gbenson@redhat.com>
2
3 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4 pairs with calls to error. Wrap the message with _().
5
6 2014-08-29 Gary Benson <gbenson@redhat.com>
7
8 * utils.c (vwarning): Protect calls to target_terminal_ours
9 and wrap_here.
10
11 2014-08-29 Gary Benson <gbenson@redhat.com>
12
13 * exceptions.c (print_flush): Protect calls to
14 target_terminal_ours and wrap_here.
15
16 2014-08-29 Gary Benson <gbenson@redhat.com>
17
18 * utils.h (filtered_printing_initialized): New declaration.
19 * utils.c (abort_with_message): New function.
20 (internal_vproblem): Use abort_with_message for first level
21 recursive internal problems, and if gdb_stderr is not set up.
22 Protect calls to target_terminal_ours, begin_line and query.
23
24 2014-08-28 Doug Evans <dje@google.com>
25
26 * symtab.c (in_prologue): Move definition to better spot.
27 (skip_prologue_using_sal): Ditto.
28
29 2014-08-28 Doug Evans <dje@google.com>
30
31 * symtab.c (find_function_start_sal): Move definition to better spot.
32
33 2014-08-28 Yao Qi <yao@codesourcery.com>
34
35 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
36 found_stack_adjust in forward scan. Remove condition check
37 on found_stack_adjust which is always true. Indent the code.
38
39 2014-08-28 Yao Qi <yao@codesourcery.com>
40
41 * dwarf2read.c (dwarf_decode_lines): Update declaration.
42 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
43 (dwarf_decode_lines): Remove argument
44 want_line_info. Remove condition check on want_line_info.
45 Callers update.
46
47 2014-08-27 Doug Evans <dje@google.com>
48
49 * dwarf2read.c (dwarf_record_line): Fix typo.
50
51 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
52
53 * target.h (struct target_ops::to_terminal_save_ours): Remove
54 declaration.
55 (target_terminal_save_ours): Remove macro.
56 * target-delegates.c: Regenerate.
57 * inf-child.c (inf_child_target): Don't set the nonexistent
58 field to_terminal_save_ours.
59 * inferior.h (child_terminal_save_ours): Remove declaration.
60 * terminal.h (gdb_save_tty_state): New declaration.
61 * inflow.c (child_terminal_save_ours): Rename to ...
62 (gdb_save_tty_state): ... this.
63 * tui/tui.c: Include terminal.h.
64 (tui_enable): Use gdb_save_tty_state instead of
65 target_terminal_save_ours.
66 (tui_disable): Likewise.
67
68 2014-08-25 Doug Evans <dje@google.com>
69
70 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
71 Pass NULL instead of 0 for context pointer.
72
73 2014-08-25 Yao Qi <yao@codesourcery.com>
74
75 * dwarf2read.c: Fix grammatical error.
76
77 2014-08-24 Yao Qi <yao@codesourcery.com>
78
79 * dwarf2read.c (scan_partial_symbols): Update comments.
80 Rename argument 'need_pc' with 'set_addrmap'.
81 (add_partial_namespace): Rename argument 'need_pc' with
82 'set_addrmap'.
83 (add_partial_module): Likewise.
84 (add_partial_subprogram): Likewise. Update comments.
85 (dwarf2_name): Fix typo.
86
87 2014-08-22 Doug Evans <dje@google.com>
88
89 PR 17276
90 * dwarf2read.c (dwarf_record_line_p): New function.
91 (dwarf_decode_lines_1): Ignore subsequent line number entries
92 for the same line if any entry had a non-zero discriminator.
93
94 2014-08-22 Doug Evans <dje@google.com>
95
96 * buildsym.h (record_line_ftype): New typedef.
97 (record_line): Use it.
98 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
99 (dwarf_decode_lines_1): Call them.
100
101 2014-08-22 Yao Qi <yao@codesourcery.com>
102
103 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
104 (ctf_end): Remove code.
105
106 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
109 (linux_make_corefile_notes): call update_thread_list, protected against
110 exceptions.
111
112 2014-08-21 Pedro Alves <palves@redhat.com>
113
114 * infcmd.c (attach_command): Remove comment.
115
116 2014-08-21 Bin Cheng <bin.cheng@arm.com>
117
118 * aarch64-linux-nat.c (dr_changed_t): Change the type from
119 unsigned LONGEST to ULONGEST.
120
121 2014-08-20 Pedro Alves <palves@redhat.com>
122
123 * Makefile.in (check-read1): New rule.
124
125 2014-08-20 Joel Brobecker <brobecker@adacore.com>
126
127 * value.c (value_from_contents_and_address): Strip resolved_type's
128 typedef layers before checking its TYPE_DATA_LOCATION.
129
130 2014-08-20 Pedro Alves <palves@redhat.com>
131
132 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
133
134 2014-08-20 Yao Qi <yao@codesourcery.com>
135
136 * amd64-tdep.c (amd64_classify): Add a blank line after the
137 example. Move "*/" to a new line.
138 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
139 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
140 * dwarf2read.c (psymtab_include_file_name): Likewise.
141
142 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
143 Pedro Alves <palves@redhat.com>
144
145 PR symtab/14604
146 PR symtab/14605
147 * ada-lang.c (coerce_unspec_val_to_type): Use
148 value_contents_copy_raw.
149 * ada-valprint.c (val_print_packed_array_elements): Adjust.
150 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
151 * cp-valprint.c (cp_print_value_fields): Let the common printing
152 code handle optimized out values.
153 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
154 * d-valprint.c (dynamic_array_type): Use
155 value_bits_any_optimized_out.
156 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
157 check_any_valid fields.
158 (check_pieced_value_bits): Delete and inline ...
159 (check_pieced_synthetic_pointer): ... here.
160 (check_pieced_value_validity): Delete.
161 (check_pieced_value_invalid): Delete.
162 (pieced_value_funcs): Remove check_validity and check_any_valid
163 fields.
164 (read_pieced_value): Use mark_value_bits_optimized_out.
165 (write_pieced_value): Switch to use
166 mark_value_bytes_optimized_out.
167 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
168 of assuming the whole value is optimized out.
169 * findvar.c (read_frame_register_value): Remove special handling
170 of optimized out registers.
171 (value_from_register): Use mark_value_bytes_optimized_out.
172 * frame-unwind.c (frame_unwind_got_optimized): Use
173 mark_value_bytes_optimized_out.
174 * jv-valprint.c (java_value_print): Adjust.
175 (java_print_value_fields): Let the common printing code handle
176 optimized out values.
177 * mips-tdep.c (mips_print_register): Remove special handling of
178 optimized out registers.
179 * opencl-lang.c (lval_func_check_validity): Delete.
180 (lval_func_check_any_valid): Delete.
181 (opencl_value_funcs): Remove check_validity and check_any_valid
182 fields.
183 * p-valprint.c (pascal_object_print_value_fields): Let the common
184 printing code handle optimized out values.
185 * stack.c (read_frame_arg): Remove special handling of optimized
186 out values. Fetch both VAL and ENTRYVAL before comparing
187 contents. Adjust to value_available_contents_eq rename.
188 * valprint.c (valprint_check_validity)
189 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
190 (val_print_array_elements): Adjust.
191 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
192 (value_bits_any_optimized_out): New function.
193 (value_entirely_covered_by_range_vector): New function, factored
194 out from value_entirely_unavailable.
195 (value_entirely_unavailable): Reimplement.
196 (value_entirely_optimized_out): New function.
197 (insert_into_bit_range_vector): New function, factored out from
198 mark_value_bits_unavailable.
199 (mark_value_bits_unavailable): Reimplement.
200 (struct ranges_and_idx): New struct.
201 (find_first_range_overlap_and_match): New function, factored out
202 from value_available_contents_bits_eq.
203 (value_available_contents_bits_eq): Rename to ...
204 (value_contents_bits_eq): ... this. Check both unavailable
205 contents and optimized out contents.
206 (value_available_contents_eq): Rename to ...
207 (value_contents_eq): ... this.
208 (allocate_value_lazy): Remove reference to the old optimized_out
209 boolean.
210 (allocate_optimized_out_value): Use
211 mark_value_bytes_optimized_out.
212 (require_not_optimized_out): Adjust to check whether the
213 optimized_out vec is empty.
214 (ranges_copy_adjusted): New function, factored out from
215 value_contents_copy_raw.
216 (value_contents_copy_raw): Also copy the optimized out ranges.
217 Assert the destination ranges aren't optimized out.
218 (value_contents_copy): Update comment, remove call to
219 require_not_optimized_out.
220 (value_contents_equal): Adjust to check whether the optimized_out
221 vec is empty.
222 (set_value_optimized_out, value_optimized_out_const): Delete.
223 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
224 New functions.
225 (value_entirely_optimized_out, value_bits_valid): Delete.
226 (value_copy): Take a VEC copy of the 'optimized_out' field.
227 (value_primitive_field): Remove special handling of optimized out.
228 (value_fetch_lazy): Assert that lazy values have no unavailable
229 regions. Use value_bits_any_optimized_out. Remove some special
230 handling for optimized out values.
231 * value.h: Add intro comment about <optimized out> and
232 <unavailable>.
233 (struct lval_funcs): Remove check_validity and check_any_valid
234 fields.
235 (set_value_optimized_out, value_optimized_out_const): Remove.
236 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
237 New declarations.
238 (value_bits_any_optimized_out): New declaration.
239 (value_bits_valid): Delete declaration.
240 (value_available_contents_eq): Rename to ...
241 (value_contents_eq): ... this, and extend comments.
242
243 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
244
245 Fix -fsanitize=address on unreadable inferior strings.
246 * valprint.c (val_print_string): Fix access before BUFFER.
247
248 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
249
250 * target.c (target_struct_size): Remove.
251 (target_struct_allocsize): Remove.
252 (DEFAULT_ALLOCSIZE): Remove.
253 (target_ops_p): New typedef.
254 (DEF_VEC_P (target_ops_p)): New vector type.
255 (target_structs): Change type to VEC (target_ops_p).
256 (add_target_with_completer): Replace "push" code by VEC_safe_push.
257 (find_default_run_target): Rewrite for loop following changes to
258 target_structs.
259
260 2014-08-19 Joel Brobecker <brobecker@adacore.com>
261
262 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
263 Adjust code accordingly. Adjust function description comment.
264
265 2014-08-19 Yao Qi <yao@codesourcery.com>
266
267 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
268 types.
269
270 2014-08-19 Alan Modra <amodra@gmail.com>
271
272 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
273 * config.in: Regenerate.
274 * configure: Regenerate.
275
276 2014-08-19 Tom Tromey <tromey@redhat.com>
277 Gary Benson <gbenson@redhat.com>
278
279 * common/common-debug.h: New file.
280 * common/common-debug.c: Likewise.
281 * debug.c: Likewise.
282 * Makefile.in (SFILES): Add common/common-debug.c.
283 (HFILES_NO_SRCDIR): Add common/common-debug.h.
284 (COMMON_OBS): Add common-debug.o and debug.o.
285 (common-debug.o): New rule.
286 * common/common-defs.h: Include common-debug.h.
287 * common/agent.c (debug_agent_printf): New function.
288 (DEBUG_AGENT): Redefine.
289 * nat/i386-dregs.c (debug_printf): Undefine.
290
291 2014-08-19 Gary Benson <gbenson@redhat.com>
292
293 * common/common-defs.h: Include print-utils.h.
294 * utils.h: Do not include print-utils.h.
295
296 2014-08-19 Tom Tromey <tromey@redhat.com>
297 Gary Benson <gbenson@redhat.com>
298
299 * common/common-types.h: New file.
300 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
301 * common/common-defs.h: Include common-types.h.
302 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
303 (ULONGEST): Remove.
304
305 2014-08-19 Tom Tromey <tromey@redhat.com>
306 Gary Benson <gbenson@redhat.com>
307
308 * common/errors.h: New file.
309 * common/errors.c: Likewise.
310 * Makefile.in (SFILES): Add common/errors.c.
311 (HFILES_NO_SRCDIR): Add common/errors.h.
312 (COMMON_OBS): Add errors.o.
313 (errors.o): New rule.
314 * common/common-defs.h: Include errors.h.
315 * utils.h (perror_with_name, error, verror, warning, vwarning):
316 Don't declare.
317 * common/common-utils.h: (malloc_failure, internal_error):
318 Likewise.
319
320 2014-08-19 Gary Benson <gbenson@redhat.com>
321
322 * utils.c (internal_vproblem): Always print the message.
323
324 2014-08-18 Doug Evans <dje@google.com>
325
326 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
327
328 2014-08-18 Joel Brobecker <brobecker@adacore.com>
329
330 * ada-typeprint.c (type_is_full_subrange_of_target_type):
331 Return 0 if TYPE is dynamic.
332 (print_range): Add handling of dynamic ranges.
333
334 2014-08-18 Keven Boell <keven.boell@intel.com>
335 Joel Brobecker <brobecker@adacore.com>
336
337 * gdbtypes.h (struct main_type): Add field "data_location".
338 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
339 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
340 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
341 a dynamic data location.
342 (resolve_dynamic_type): Add DW_AT_data_location handling.
343 (copy_recursive, copy_type): Copy the data_location information
344 when present.
345 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
346 * value.c (value_from_contents_and_address): Add
347 DW_AT_data_location handling.
348
349 2014-08-18 Keven Boell <keven.boell@intel.com>
350 Joel Brobecker <brobecker@adacore.com>
351
352 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
353 field "get_object_address".
354 * dwarf2expr.c (execute_stack_op): Add handling for
355 DW_OP_push_object_address.
356 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
357 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
358 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
359 (dwarf_expr_get_obj_addr): New function.
360 (dwarf_expr_ctx_funcs): Add get_object_address field.
361 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
362 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
363 (dwarf2_evaluate_property): Add parameter "address". Use it.
364 (needs_get_obj_addr): New function.
365 (needs_frame_ctx_funcs): Add get_object_address field.
366 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
367 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
368 (resolve_dynamic_array): Likewise.
369
370 2014-08-18 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
373 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
374 fixed value for records and unions for which some GNAT encodings
375 are present.
376
377 2014-08-18 Joel Brobecker <brobecker@adacore.com>
378
379 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
380 rewrite to avoid "else if" and "else" constructs. Should be
381 a no-op in practice.
382
383 2014-08-18 Joel Brobecker <brobecker@adacore.com>
384
385 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
386 of lexical block.
387
388 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
389
390 PR c++/17132
391 * eval.c: Update all calls to find_overload_match.
392 * valarith.c: Likewise.
393 (value_user_defined_cpp_op, value_user_defined_op): New
394 argument NOSIDE. Update all callers.
395 * valops.c (find_overload_match): New argument NOSIDE.
396 * value.h (find_overload_match): Update signature.
397
398 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
399
400 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
401 'items' methods instead of 'iteritems' method on dictionaries.
402
403 2014-08-15 Doug Evans <dje@google.com>
404
405 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
406 closer to use.
407
408 2014-08-15 Doug Evans <dje@google.com>
409
410 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
411
412 2014-08-15 Doug Evans <dje@google.com>
413
414 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
415
416 2014-08-15 Doug Evans <dje@google.com>
417
418 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
419 unused.
420
421 2014-08-15 Eli Zaretskii <eliz@gnu.org>
422
423 * dcache.h: Include target.h, to avoid compile time warnings.
424
425 2014-08-15 Joel Brobecker <brobecker@adacore.com>
426
427 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
428 frame_info" partial declaration.
429 * gdbarch.h: Regenerate.
430
431 2014-08-15 Yao Qi <yao@codesourcery.com>
432
433 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
434 Add parameter 'decode_for_pst_p'. Callers update.
435
436 2014-08-13 Yao Qi <yao@codesourcery.com>
437
438 PR build/17104
439 * configure.ac: Use local variable 'pos'.
440 * configure: Regenerated.
441
442 2014-08-11 Doug Evans <dje@google.com>
443
444 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
445 message, it is redundant with "Reading symbols from ..." message.
446
447 2014-08-10 Doug Evans <xdje42@gmail.com>
448
449 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
450
451 2014-08-09 Yao Qi <yao@codesourcery.com>
452
453 PR remote/9053
454 * remote.c (remote_xfer_partial): Remove dead code.
455
456 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
457
458 * ia64-linux-tdep.c: Include "regset.h".
459 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
460 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
461 (ia64_linux_supply_fpregset): New function.
462 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
463 (ia64_linux_regset_from_core_section): New function.
464 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
465 method.
466
467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
468
469 * m68klinux-tdep.c: Include "regset.h".
470 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
471 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
472 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
473 (m68k_linux_regset_from_core_section): New function.
474 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
475 method.
476
477 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
478
479 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
480 function. Move logic to...
481 (tilegx_linux_regmap): ... this new register map.
482 (tilegx_linux_regset): Refer to register map, replace supply
483 method by regcache_supply_regset, and add collect method.
484 * tilegx-tdep.h (enum tilegx_regnum): New enum value
485 TILEGX_FIRST_EASY_REGNUM.
486
487 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
488
489 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
490 that calls regcache_supply_regset and handles the EPC register
491 separately. Move main logic to...
492 (score7_linux_gregmap): ... this new register map.
493 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
494 (score7_linux_gregset): Refer to register map. Add collect method.
495 (score7_linux_regset_from_core_section): Replace
496 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
497 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
498 (struct regset): Delete unused forward declaraction.
499 (struct pt_regs): Delete structure definition.
500 (elf_gregset_t): Delete typedef.
501
502 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
503
504 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
505 (nios2_core_regset): Add collect method.
506
507 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
508
509 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
510 platform-independent and don't write to read-only input buffer.
511 (m32r_linux_collect_gregset): New function.
512 (m32r_linux_gregset): Add collect method.
513
514 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * hppa-linux-tdep.c (greg_map): Rename to...
517 (hppa_linux_gregmap): ... this. Also convert to
518 regcache_map_entry format.
519 (hppa_linux_supply_regset): Delete function.
520 (hppa_linux_supply_fpregset): Delete function. Move logic to...
521 (hppa_linux_fpregmap): ... this new register map.
522 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
523 register map, replace supply method by regcache_supply_regset, and
524 add collect method regcache_collect_regset.
525
526 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
527
528 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
529 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
530 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
531 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
532 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
533 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
534 (frv_linux_supply_gregset): Replace main logic by call to
535 regcache_supply_regset, but keep clearing gr32-gr63.
536 (frv_linux_supply_fpregset): Delete function.
537 (frv_linux_gregset): Refer to appropriate register map and add
538 regcache_collect_regset as the collect method.
539 (frv_linux_fpregset): Likewise. Also exchange the supply method
540 by regcache_supply_regset.
541
542 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
543
544 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
545 by call to alpha_supply_int_regs.
546 (alpha_linux_collect_gregset): New function.
547 (alpha_linux_supply_fpregset): Replace logic by call to
548 alpha_supply_fp_regs.
549 (alpha_linux_collect_fpregset): New function.
550 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
551
552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
553
554 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
555 by call to regcache_collect_regset.
556 (supply_gregset, supply_fpregset): Call regcache_supply_regset
557 instead of aarch64_linux_supply_gregset/_fpregset.
558 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
559 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
560 header file instead.
561 (aarch64_linux_supply_gregset, supply_gregset_from_core)
562 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
563 functions. Move logic to ...
564 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
565 register maps.
566 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
567 refer to new register maps, replace *_regset_from_core by
568 regcache_supply_regset, and also use regcache_collect_regset.
569 * aarch64-linux-tdep.h: Include "regset.h".
570 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
571 Delete prototypes.
572 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
573 macros, moved from C source file.
574 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
575 variable declarations.
576
577 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
578
579 * s390-linux-nat.c: Include "regset.h".
580 (regmap_gregset): Delete macro.
581 (s390_64_regmap_gregset): New register map for
582 regcache_supply/_collect_regset.
583 (s390_64_gregset): New regset.
584 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
585 (regmap_fpregset): Delete macro.
586 (s390_native_supply, s390_native_collect): Delete functions.
587 (supply_gregset, fill_gregset): Replace s390-specific regmap
588 handling by a call to regcache_supply/_collect_regset.
589 (supply_fpregset, fill_fpregset): Call regcache_supply/
590 _collect_regset instead of s390_native_supply/_collect.
591 (fetch_regset, store_regset): Likewise. Also change the last
592 parameter to a regset instead of a regmap.
593 (s390_linux_fetch_inferior_registers)
594 (390_linux_store_inferior_registers): Adjust last parameter in
595 calls to fetch_regset and store_regset.
596 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
597 (s390_gregmap): ... this. Also make static const and convert to
598 regcache_map_entry format.
599 (s390x_regmap_gregset): Delete.
600 (s390_regmap_fpregset): Rename to...
601 (s390_fpregmap): ... this. Make static const and convert to
602 regcache_map_entry format.
603 (s390_regmap_upper, s390_regmap_last_break)
604 (s390x_regmap_last_break, s390_regmap_system_call)
605 (s390_regmap_tdb): Likewise.
606 (s390_supply_regset, s390_collect_regset): Remove functions.
607 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
608 s390_supply_regset.
609 (s390_gregset, s390_fpregset, s390_upper_regset)
610 (s390_last_break_regset, s390x_last_break_regset)
611 (s390_system_call_regset, s390_tdb_regset): Make global and
612 replace s390_supply/_collect_regset by regcache_supply/
613 _collect_regset.
614 (s390x_gregset): Delete.
615 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
616 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
617 (s390_regmap_fpregset, s390_regmap_last_break)
618 (s390x_regmap_last_break, s390_regmap_system_call)
619 (s390_regmap_tdb): Delete global variable declarations.
620 (s390_gregset, s390_fpregset, s390_last_break_regset)
621 (s390x_last_break_regset, s390_system_call_regset)
622 (s390_tdb_regset): New global variable declarations.
623
624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
625
626 * regcache.c: Include "regset.h".
627 (regcache_transfer_regset): New local function.
628 (regcache_supply_regset, regcache_collect_regset): New functions.
629 * regcache.h (struct regcache_map_entry): New structure.
630 (REGCACHE_MAP_SKIP): New enum value.
631 (regcache_supply_regset, regcache_collect_regset): New prototypes.
632
633 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
634
635 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
636 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
637 (ppc_linux_collect_gregset ): Likewise.
638 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
639 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
640 (ppc_collect_vrregset): Likewise.
641 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
642 Likewise.
643
644 2014-08-07 Yao Qi <yao@codesourcery.com>
645
646 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
647 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
648 * remote.c (remote_read_bytes): Likewise.
649
650 2014-08-07 Yao Qi <yao@codesourcery.com>
651
652 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
653
654 2014-08-07 Yao Qi <yao@codesourcery.com>
655
656 PR remote/17230
657 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
658 TARGET_XFER_OK instead of 0.
659
660 2014-08-07 Gary Benson <gbenson@redhat.com>
661
662 * common/common-defs.h: Include errno.h.
663 * defs.h: Do not include errno.h.
664 * ada-typeprint.c: Likewise.
665 * c-typeprint.c: Likewise.
666 * core-regset.c: Likewise.
667 * corefile.c: Likewise.
668 * corelow.c: Likewise.
669 * event-loop.c: Likewise.
670 * f-typeprint.c: Likewise.
671 * gnu-nat.c: Likewise.
672 * go32-nat.c: Likewise.
673 * i386gnu-nat.c: Likewise.
674 * m2-typeprint.c: Likewise.
675 * nat/linux-btrace.c: Likewise.
676 * p-typeprint.c: Likewise.
677 * procfs.c: Likewise.
678 * remote-sim.c: Likewise.
679 * rs6000-nat.c: Likewise.
680 * target.c: Likewise.
681 * typeprint.c: Likewise.
682 * ui-file.c: Likewise.
683 * valops.c: Likewise.
684 * valprint.c: Likewise.
685
686 2014-08-07 Gary Benson <gbenson@redhat.com>
687
688 * common/common-defs.h: Include string.h.
689 * aarch64-tdep.c: Do not include string.h.
690 * ada-exp.y: Likewise.
691 * ada-lang.c: Likewise.
692 * ada-lex.l: Likewise.
693 * ada-typeprint.c: Likewise.
694 * ada-valprint.c: Likewise.
695 * aix-thread.c: Likewise.
696 * alpha-linux-tdep.c: Likewise.
697 * alpha-mdebug-tdep.c: Likewise.
698 * alpha-nat.c: Likewise.
699 * alpha-osf1-tdep.c: Likewise.
700 * alpha-tdep.c: Likewise.
701 * alphanbsd-tdep.c: Likewise.
702 * amd64-dicos-tdep.c: Likewise.
703 * amd64-linux-tdep.c: Likewise.
704 * amd64-nat.c: Likewise.
705 * amd64-sol2-tdep.c: Likewise.
706 * amd64fbsd-tdep.c: Likewise.
707 * amd64obsd-tdep.c: Likewise.
708 * arch-utils.c: Likewise.
709 * arm-linux-nat.c: Likewise.
710 * arm-linux-tdep.c: Likewise.
711 * arm-tdep.c: Likewise.
712 * arm-wince-tdep.c: Likewise.
713 * armbsd-tdep.c: Likewise.
714 * armnbsd-nat.c: Likewise.
715 * armnbsd-tdep.c: Likewise.
716 * armobsd-tdep.c: Likewise.
717 * avr-tdep.c: Likewise.
718 * ax-gdb.c: Likewise.
719 * ax-general.c: Likewise.
720 * bcache.c: Likewise.
721 * bfin-tdep.c: Likewise.
722 * breakpoint.c: Likewise.
723 * build-id.c: Likewise.
724 * buildsym.c: Likewise.
725 * c-exp.y: Likewise.
726 * c-lang.c: Likewise.
727 * c-typeprint.c: Likewise.
728 * c-valprint.c: Likewise.
729 * charset.c: Likewise.
730 * cli-out.c: Likewise.
731 * cli/cli-cmds.c: Likewise.
732 * cli/cli-decode.c: Likewise.
733 * cli/cli-dump.c: Likewise.
734 * cli/cli-interp.c: Likewise.
735 * cli/cli-logging.c: Likewise.
736 * cli/cli-script.c: Likewise.
737 * cli/cli-setshow.c: Likewise.
738 * cli/cli-utils.c: Likewise.
739 * coffread.c: Likewise.
740 * common/agent.c: Likewise.
741 * common/buffer.c: Likewise.
742 * common/buffer.h: Likewise.
743 * common/common-utils.c: Likewise.
744 * common/filestuff.c: Likewise.
745 * common/filestuff.c: Likewise.
746 * common/format.c: Likewise.
747 * common/print-utils.c: Likewise.
748 * common/rsp-low.c: Likewise.
749 * common/signals.c: Likewise.
750 * common/vec.h: Likewise.
751 * common/xml-utils.c: Likewise.
752 * core-regset.c: Likewise.
753 * corefile.c: Likewise.
754 * corelow.c: Likewise.
755 * cp-abi.c: Likewise.
756 * cp-name-parser.y: Likewise.
757 * cp-support.c: Likewise.
758 * cp-valprint.c: Likewise.
759 * cris-tdep.c: Likewise.
760 * d-exp.y: Likewise.
761 * darwin-nat.c: Likewise.
762 * dbxread.c: Likewise.
763 * dcache.c: Likewise.
764 * demangle.c: Likewise.
765 * dicos-tdep.c: Likewise.
766 * disasm.c: Likewise.
767 * doublest.c: Likewise.
768 * dsrec.c: Likewise.
769 * dummy-frame.c: Likewise.
770 * dwarf2-frame.c: Likewise.
771 * dwarf2loc.c: Likewise.
772 * dwarf2read.c: Likewise.
773 * elfread.c: Likewise.
774 * environ.c: Likewise.
775 * eval.c: Likewise.
776 * event-loop.c: Likewise.
777 * exceptions.c: Likewise.
778 * exec.c: Likewise.
779 * expprint.c: Likewise.
780 * f-exp.y: Likewise.
781 * f-lang.c: Likewise.
782 * f-typeprint.c: Likewise.
783 * f-valprint.c: Likewise.
784 * fbsd-nat.c: Likewise.
785 * findcmd.c: Likewise.
786 * findvar.c: Likewise.
787 * fork-child.c: Likewise.
788 * frame.c: Likewise.
789 * frv-linux-tdep.c: Likewise.
790 * frv-tdep.c: Likewise.
791 * gdb.c: Likewise.
792 * gdb_bfd.c: Likewise.
793 * gdbarch.c: Likewise.
794 * gdbarch.sh: Likewise.
795 * gdbtypes.c: Likewise.
796 * gnu-nat.c: Likewise.
797 * gnu-v2-abi.c: Likewise.
798 * gnu-v3-abi.c: Likewise.
799 * go-exp.y: Likewise.
800 * go-lang.c: Likewise.
801 * go32-nat.c: Likewise.
802 * guile/guile.c: Likewise.
803 * guile/scm-auto-load.c: Likewise.
804 * hppa-hpux-tdep.c: Likewise.
805 * hppa-linux-nat.c: Likewise.
806 * hppanbsd-tdep.c: Likewise.
807 * hppaobsd-tdep.c: Likewise.
808 * i386-cygwin-tdep.c: Likewise.
809 * i386-dicos-tdep.c: Likewise.
810 * i386-linux-tdep.c: Likewise.
811 * i386-nto-tdep.c: Likewise.
812 * i386-sol2-tdep.c: Likewise.
813 * i386-tdep.c: Likewise.
814 * i386bsd-tdep.c: Likewise.
815 * i386gnu-nat.c: Likewise.
816 * i386nbsd-tdep.c: Likewise.
817 * i386obsd-tdep.c: Likewise.
818 * i387-tdep.c: Likewise.
819 * ia64-libunwind-tdep.c: Likewise.
820 * ia64-linux-nat.c: Likewise.
821 * inf-child.c: Likewise.
822 * inf-ptrace.c: Likewise.
823 * inf-ttrace.c: Likewise.
824 * infcall.c: Likewise.
825 * infcmd.c: Likewise.
826 * inflow.c: Likewise.
827 * infrun.c: Likewise.
828 * interps.c: Likewise.
829 * iq2000-tdep.c: Likewise.
830 * irix5-nat.c: Likewise.
831 * jv-exp.y: Likewise.
832 * jv-lang.c: Likewise.
833 * jv-typeprint.c: Likewise.
834 * jv-valprint.c: Likewise.
835 * language.c: Likewise.
836 * linux-fork.c: Likewise.
837 * linux-nat.c: Likewise.
838 * lm32-tdep.c: Likewise.
839 * m2-exp.y: Likewise.
840 * m2-typeprint.c: Likewise.
841 * m32c-tdep.c: Likewise.
842 * m32r-linux-nat.c: Likewise.
843 * m32r-linux-tdep.c: Likewise.
844 * m32r-rom.c: Likewise.
845 * m32r-tdep.c: Likewise.
846 * m68hc11-tdep.c: Likewise.
847 * m68k-tdep.c: Likewise.
848 * m68kbsd-tdep.c: Likewise.
849 * m68klinux-nat.c: Likewise.
850 * m68klinux-tdep.c: Likewise.
851 * m88k-tdep.c: Likewise.
852 * machoread.c: Likewise.
853 * macrocmd.c: Likewise.
854 * main.c: Likewise.
855 * mdebugread.c: Likewise.
856 * mem-break.c: Likewise.
857 * memattr.c: Likewise.
858 * memory-map.c: Likewise.
859 * mep-tdep.c: Likewise.
860 * mi/mi-cmd-break.c: Likewise.
861 * mi/mi-cmd-disas.c: Likewise.
862 * mi/mi-cmd-env.c: Likewise.
863 * mi/mi-cmd-stack.c: Likewise.
864 * mi/mi-cmd-var.c: Likewise.
865 * mi/mi-cmds.c: Likewise.
866 * mi/mi-console.c: Likewise.
867 * mi/mi-getopt.c: Likewise.
868 * mi/mi-interp.c: Likewise.
869 * mi/mi-main.c: Likewise.
870 * mi/mi-parse.c: Likewise.
871 * microblaze-rom.c: Likewise.
872 * microblaze-tdep.c: Likewise.
873 * mingw-hdep.c: Likewise.
874 * minidebug.c: Likewise.
875 * minsyms.c: Likewise.
876 * mips-irix-tdep.c: Likewise.
877 * mips-linux-tdep.c: Likewise.
878 * mips-tdep.c: Likewise.
879 * mips64obsd-tdep.c: Likewise.
880 * mipsnbsd-tdep.c: Likewise.
881 * mipsread.c: Likewise.
882 * mn10300-linux-tdep.c: Likewise.
883 * mn10300-tdep.c: Likewise.
884 * monitor.c: Likewise.
885 * moxie-tdep.c: Likewise.
886 * mt-tdep.c: Likewise.
887 * nat/linux-btrace.c: Likewise.
888 * nat/linux-osdata.c: Likewise.
889 * nat/linux-procfs.c: Likewise.
890 * nat/linux-ptrace.c: Likewise.
891 * nat/linux-waitpid.c: Likewise.
892 * nbsd-tdep.c: Likewise.
893 * nios2-linux-tdep.c: Likewise.
894 * nto-procfs.c: Likewise.
895 * nto-tdep.c: Likewise.
896 * objc-lang.c: Likewise.
897 * objfiles.c: Likewise.
898 * opencl-lang.c: Likewise.
899 * osabi.c: Likewise.
900 * osdata.c: Likewise.
901 * p-exp.y: Likewise.
902 * p-lang.c: Likewise.
903 * p-typeprint.c: Likewise.
904 * parse.c: Likewise.
905 * posix-hdep.c: Likewise.
906 * ppc-linux-nat.c: Likewise.
907 * ppc-sysv-tdep.c: Likewise.
908 * ppcfbsd-tdep.c: Likewise.
909 * ppcnbsd-tdep.c: Likewise.
910 * ppcobsd-tdep.c: Likewise.
911 * printcmd.c: Likewise.
912 * procfs.c: Likewise.
913 * prologue-value.c: Likewise.
914 * python/py-auto-load.c: Likewise.
915 * python/py-gdb-readline.c: Likewise.
916 * ravenscar-thread.c: Likewise.
917 * regcache.c: Likewise.
918 * registry.c: Likewise.
919 * remote-fileio.c: Likewise.
920 * remote-m32r-sdi.c: Likewise.
921 * remote-mips.c: Likewise.
922 * remote-notif.c: Likewise.
923 * remote-sim.c: Likewise.
924 * remote.c: Likewise.
925 * reverse.c: Likewise.
926 * rs6000-aix-tdep.c: Likewise.
927 * ser-base.c: Likewise.
928 * ser-go32.c: Likewise.
929 * ser-mingw.c: Likewise.
930 * ser-pipe.c: Likewise.
931 * ser-tcp.c: Likewise.
932 * ser-unix.c: Likewise.
933 * serial.c: Likewise.
934 * sh-tdep.c: Likewise.
935 * sh64-tdep.c: Likewise.
936 * shnbsd-tdep.c: Likewise.
937 * skip.c: Likewise.
938 * sol-thread.c: Likewise.
939 * solib-dsbt.c: Likewise.
940 * solib-frv.c: Likewise.
941 * solib-osf.c: Likewise.
942 * solib-som.c: Likewise.
943 * solib-spu.c: Likewise.
944 * solib-target.c: Likewise.
945 * solib.c: Likewise.
946 * somread.c: Likewise.
947 * source.c: Likewise.
948 * sparc-nat.c: Likewise.
949 * sparc-sol2-tdep.c: Likewise.
950 * sparc-tdep.c: Likewise.
951 * sparc64-tdep.c: Likewise.
952 * sparc64fbsd-tdep.c: Likewise.
953 * sparc64nbsd-tdep.c: Likewise.
954 * sparcnbsd-tdep.c: Likewise.
955 * spu-linux-nat.c: Likewise.
956 * spu-multiarch.c: Likewise.
957 * spu-tdep.c: Likewise.
958 * stabsread.c: Likewise.
959 * stack.c: Likewise.
960 * std-regs.c: Likewise.
961 * symfile.c: Likewise.
962 * symmisc.c: Likewise.
963 * symtab.c: Likewise.
964 * target.c: Likewise.
965 * thread.c: Likewise.
966 * tilegx-linux-nat.c: Likewise.
967 * tilegx-tdep.c: Likewise.
968 * top.c: Likewise.
969 * tracepoint.c: Likewise.
970 * tui/tui-command.c: Likewise.
971 * tui/tui-data.c: Likewise.
972 * tui/tui-disasm.c: Likewise.
973 * tui/tui-file.c: Likewise.
974 * tui/tui-layout.c: Likewise.
975 * tui/tui-out.c: Likewise.
976 * tui/tui-regs.c: Likewise.
977 * tui/tui-source.c: Likewise.
978 * tui/tui-stack.c: Likewise.
979 * tui/tui-win.c: Likewise.
980 * tui/tui-windata.c: Likewise.
981 * tui/tui-winsource.c: Likewise.
982 * typeprint.c: Likewise.
983 * ui-file.c: Likewise.
984 * ui-out.c: Likewise.
985 * user-regs.c: Likewise.
986 * utils.c: Likewise.
987 * v850-tdep.c: Likewise.
988 * valarith.c: Likewise.
989 * valops.c: Likewise.
990 * valprint.c: Likewise.
991 * value.c: Likewise.
992 * varobj.c: Likewise.
993 * vax-tdep.c: Likewise.
994 * vaxnbsd-tdep.c: Likewise.
995 * vaxobsd-tdep.c: Likewise.
996 * windows-nat.c: Likewise.
997 * xcoffread.c: Likewise.
998 * xml-support.c: Likewise.
999 * xstormy16-tdep.c: Likewise.
1000 * xtensa-linux-nat.c: Likewise.
1001
1002 2014-08-07 Gary Benson <gbenson@redhat.com>
1003
1004 * common/common-defs.h: Include gdb_assert.h.
1005 * aarch64-tdep.c: Do not include gdb_assert.h.
1006 * addrmap.c: Likewise.
1007 * aix-thread.c: Likewise.
1008 * alpha-linux-tdep.c: Likewise.
1009 * alpha-mdebug-tdep.c: Likewise.
1010 * alphanbsd-tdep.c: Likewise.
1011 * amd64-nat.c: Likewise.
1012 * amd64-tdep.c: Likewise.
1013 * amd64bsd-nat.c: Likewise.
1014 * amd64fbsd-nat.c: Likewise.
1015 * amd64fbsd-tdep.c: Likewise.
1016 * amd64nbsd-nat.c: Likewise.
1017 * amd64nbsd-tdep.c: Likewise.
1018 * amd64obsd-nat.c: Likewise.
1019 * amd64obsd-tdep.c: Likewise.
1020 * arch-utils.c: Likewise.
1021 * arm-tdep.c: Likewise.
1022 * armbsd-tdep.c: Likewise.
1023 * auxv.c: Likewise.
1024 * bcache.c: Likewise.
1025 * bfin-tdep.c: Likewise.
1026 * blockframe.c: Likewise.
1027 * breakpoint.c: Likewise.
1028 * bsd-kvm.c: Likewise.
1029 * bsd-uthread.c: Likewise.
1030 * buildsym.c: Likewise.
1031 * c-exp.y: Likewise.
1032 * c-lang.c: Likewise.
1033 * charset.c: Likewise.
1034 * cleanups.c: Likewise.
1035 * cli-out.c: Likewise.
1036 * cli/cli-decode.c: Likewise.
1037 * cli/cli-dump.c: Likewise.
1038 * cli/cli-logging.c: Likewise.
1039 * cli/cli-script.c: Likewise.
1040 * cli/cli-utils.c: Likewise.
1041 * coffread.c: Likewise.
1042 * common/common-utils.c: Likewise.
1043 * common/queue.h: Likewise.
1044 * common/signals.c: Likewise.
1045 * common/vec.h: Likewise.
1046 * complaints.c: Likewise.
1047 * completer.c: Likewise.
1048 * corelow.c: Likewise.
1049 * cp-abi.c: Likewise.
1050 * cp-name-parser.y: Likewise.
1051 * cp-namespace.c: Likewise.
1052 * cp-support.c: Likewise.
1053 * cris-tdep.c: Likewise.
1054 * dbxread.c: Likewise.
1055 * dictionary.c: Likewise.
1056 * doublest.c: Likewise.
1057 * dsrec.c: Likewise.
1058 * dummy-frame.c: Likewise.
1059 * dwarf2-frame-tailcall.c: Likewise.
1060 * dwarf2-frame.c: Likewise.
1061 * dwarf2expr.c: Likewise.
1062 * dwarf2loc.c: Likewise.
1063 * dwarf2read.c: Likewise.
1064 * eval.c: Likewise.
1065 * event-loop.c: Likewise.
1066 * exceptions.c: Likewise.
1067 * expprint.c: Likewise.
1068 * f-valprint.c: Likewise.
1069 * fbsd-nat.c: Likewise.
1070 * findvar.c: Likewise.
1071 * frame-unwind.c: Likewise.
1072 * frame.c: Likewise.
1073 * frv-tdep.c: Likewise.
1074 * gcore.c: Likewise.
1075 * gdb-dlfcn.c: Likewise.
1076 * gdb_bfd.c: Likewise.
1077 * gdbarch.c: Likewise.
1078 * gdbarch.sh: Likewise.
1079 * gdbtypes.c: Likewise.
1080 * gnu-nat.c: Likewise.
1081 * gnu-v3-abi.c: Likewise.
1082 * go-lang.c: Likewise.
1083 * guile/scm-exception.c: Likewise.
1084 * guile/scm-gsmob.c: Likewise.
1085 * guile/scm-lazy-string.c: Likewise.
1086 * guile/scm-math.c: Likewise.
1087 * guile/scm-pretty-print.c: Likewise.
1088 * guile/scm-safe-call.c: Likewise.
1089 * guile/scm-utils.c: Likewise.
1090 * guile/scm-value.c: Likewise.
1091 * h8300-tdep.c: Likewise.
1092 * hppa-hpux-nat.c: Likewise.
1093 * hppa-tdep.c: Likewise.
1094 * hppanbsd-tdep.c: Likewise.
1095 * hppaobsd-tdep.c: Likewise.
1096 * i386-darwin-nat.c: Likewise.
1097 * i386-darwin-tdep.c: Likewise.
1098 * i386-nto-tdep.c: Likewise.
1099 * i386-tdep.c: Likewise.
1100 * i386bsd-nat.c: Likewise.
1101 * i386fbsd-tdep.c: Likewise.
1102 * i386gnu-nat.c: Likewise.
1103 * i386nbsd-tdep.c: Likewise.
1104 * i386obsd-tdep.c: Likewise.
1105 * i387-tdep.c: Likewise.
1106 * ia64-libunwind-tdep.c: Likewise.
1107 * ia64-tdep.c: Likewise.
1108 * inf-ptrace.c: Likewise.
1109 * inf-ttrace.c: Likewise.
1110 * infcall.c: Likewise.
1111 * infcmd.c: Likewise.
1112 * infrun.c: Likewise.
1113 * inline-frame.c: Likewise.
1114 * interps.c: Likewise.
1115 * jv-lang.c: Likewise.
1116 * jv-typeprint.c: Likewise.
1117 * linux-fork.c: Likewise.
1118 * linux-nat.c: Likewise.
1119 * linux-thread-db.c: Likewise.
1120 * m32c-tdep.c: Likewise.
1121 * m32r-linux-nat.c: Likewise.
1122 * m32r-tdep.c: Likewise.
1123 * m68k-tdep.c: Likewise.
1124 * m68kbsd-nat.c: Likewise.
1125 * m68kbsd-tdep.c: Likewise.
1126 * m88k-tdep.c: Likewise.
1127 * machoread.c: Likewise.
1128 * macroexp.c: Likewise.
1129 * macrotab.c: Likewise.
1130 * maint.c: Likewise.
1131 * mdebugread.c: Likewise.
1132 * memory-map.c: Likewise.
1133 * mep-tdep.c: Likewise.
1134 * mi/mi-common.c: Likewise.
1135 * microblaze-tdep.c: Likewise.
1136 * mingw-hdep.c: Likewise.
1137 * mips-linux-nat.c: Likewise.
1138 * mips-linux-tdep.c: Likewise.
1139 * mips-tdep.c: Likewise.
1140 * mips64obsd-tdep.c: Likewise.
1141 * mipsnbsd-tdep.c: Likewise.
1142 * mn10300-linux-tdep.c: Likewise.
1143 * mn10300-tdep.c: Likewise.
1144 * moxie-tdep.c: Likewise.
1145 * mt-tdep.c: Likewise.
1146 * nat/linux-btrace.c: Likewise.
1147 * nat/linux-osdata.c: Likewise.
1148 * nat/linux-ptrace.c: Likewise.
1149 * nat/mips-linux-watch.c: Likewise.
1150 * nios2-linux-tdep.c: Likewise.
1151 * nios2-tdep.c: Likewise.
1152 * objc-lang.c: Likewise.
1153 * objfiles.c: Likewise.
1154 * obsd-nat.c: Likewise.
1155 * opencl-lang.c: Likewise.
1156 * osabi.c: Likewise.
1157 * parse.c: Likewise.
1158 * ppc-linux-nat.c: Likewise.
1159 * ppc-sysv-tdep.c: Likewise.
1160 * ppcfbsd-nat.c: Likewise.
1161 * ppcfbsd-tdep.c: Likewise.
1162 * ppcnbsd-nat.c: Likewise.
1163 * ppcnbsd-tdep.c: Likewise.
1164 * ppcobsd-nat.c: Likewise.
1165 * ppcobsd-tdep.c: Likewise.
1166 * printcmd.c: Likewise.
1167 * procfs.c: Likewise.
1168 * prologue-value.c: Likewise.
1169 * psymtab.c: Likewise.
1170 * python/py-lazy-string.c: Likewise.
1171 * python/py-value.c: Likewise.
1172 * regcache.c: Likewise.
1173 * reggroups.c: Likewise.
1174 * registry.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * remote.c: Likewise.
1177 * rs6000-aix-tdep.c: Likewise.
1178 * rs6000-tdep.c: Likewise.
1179 * s390-linux-tdep.c: Likewise.
1180 * score-tdep.c: Likewise.
1181 * ser-base.c: Likewise.
1182 * ser-mingw.c: Likewise.
1183 * sh-tdep.c: Likewise.
1184 * sh64-tdep.c: Likewise.
1185 * solib-darwin.c: Likewise.
1186 * solib-spu.c: Likewise.
1187 * solib-svr4.c: Likewise.
1188 * source.c: Likewise.
1189 * sparc-nat.c: Likewise.
1190 * sparc-sol2-tdep.c: Likewise.
1191 * sparc-tdep.c: Likewise.
1192 * sparc64-sol2-tdep.c: Likewise.
1193 * sparc64-tdep.c: Likewise.
1194 * sparc64fbsd-tdep.c: Likewise.
1195 * sparc64nbsd-tdep.c: Likewise.
1196 * sparc64obsd-tdep.c: Likewise.
1197 * sparcnbsd-tdep.c: Likewise.
1198 * sparcobsd-tdep.c: Likewise.
1199 * spu-multiarch.c: Likewise.
1200 * spu-tdep.c: Likewise.
1201 * stabsread.c: Likewise.
1202 * stack.c: Likewise.
1203 * symfile.c: Likewise.
1204 * symtab.c: Likewise.
1205 * target-descriptions.c: Likewise.
1206 * target-memory.c: Likewise.
1207 * target.c: Likewise.
1208 * tic6x-linux-tdep.c: Likewise.
1209 * tic6x-tdep.c: Likewise.
1210 * tilegx-linux-nat.c: Likewise.
1211 * tilegx-tdep.c: Likewise.
1212 * top.c: Likewise.
1213 * tramp-frame.c: Likewise.
1214 * tui/tui-out.c: Likewise.
1215 * tui/tui-winsource.c: Likewise.
1216 * ui-out.c: Likewise.
1217 * user-regs.c: Likewise.
1218 * utils.c: Likewise.
1219 * v850-tdep.c: Likewise.
1220 * valops.c: Likewise.
1221 * value.c: Likewise.
1222 * varobj.c: Likewise.
1223 * vax-nat.c: Likewise.
1224 * xml-syscall.c: Likewise.
1225 * xml-tdesc.c: Likewise.
1226 * xstormy16-tdep.c: Likewise.
1227 * xtensa-linux-nat.c: Likewise.
1228 * xtensa-tdep.c: Likewise.
1229
1230 2014-08-07 Gary Benson <gbenson@redhat.com>
1231
1232 * common/common-defs.h: Include common-utils.h.
1233 * defs.h: Do not include common-utils.h.
1234 * common/gdb_assert.h: Likewise.
1235 * darwin-nat.h: Likewise.
1236 * nat/linux-btrace.c: Likewise.
1237 * target/waitstatus.h: Likewise.
1238
1239 2014-08-07 Gary Benson <gbenson@redhat.com>
1240
1241 * common/common-defs.h: Include ptid.h.
1242 * defs.h: Do not include ptid.h.
1243 * inferior.h: Likewise.
1244 * infrun.h: Likewise.
1245 * nat/linux-btrace.h: Likewise.
1246 * nat/linux-osdata.h: Likewise.
1247 * target/waitstatus.h: Likewise.
1248
1249 2014-08-07 Gary Benson <gbenson@redhat.com>
1250
1251 * common/common-defs.h: Include gdb_locale.h.
1252 * defs.h: Do not include gdb_locale.h.
1253
1254 2014-08-07 Gary Benson <gbenson@redhat.com>
1255
1256 * common/common-defs.h: Include gdb/signals.h.
1257 * defs.h: Do not include gdb/signals.h.
1258
1259 2014-08-07 Gary Benson <gbenson@redhat.com>
1260
1261 * common/common-defs.h: Include pathmax.h.
1262 * defs.h: Do not include pathmax.h.
1263
1264 2014-08-07 Gary Benson <gbenson@redhat.com>
1265
1266 * common/common-defs.h: Include libiberty.h.
1267 * defs.h: Do not include libiberty.h.
1268 * common/queue.h: Likewise.
1269 * cp-name-parser.y: Likewise.
1270 * mi/mi-cmd-catch.c: Likewise.
1271 * python/python.c: Likewise.
1272
1273 2014-08-07 Gary Benson <gbenson@redhat.com>
1274
1275 * common/common-defs.h: Include ansidecl.h.
1276 * defs.h: Do not include ansidecl.h.
1277 * common/buffer.h: Likewise.
1278 * common/common-utils.h: Likewise.
1279
1280 2014-08-07 Gary Benson <gbenson@redhat.com>
1281
1282 * common/common-defs.h: Include stddef.h.
1283 * defs.h: Do not include stddef.h.
1284 * common/common-utils.h: Likewise.
1285 * amd64fbsd-nat.c: Likewise.
1286 * bcache.c: Likewise.
1287 * charset.c: Likewise.
1288 * common/buffer.h: Likewise.
1289 * common/vec.h: Likewise.
1290 * i386bsd-nat.c: Likewise.
1291 * nat/linux-btrace.h: Likewise.
1292 * ppcfbsd-nat.c: Likewise.
1293 * ppcnbsd-tdep.h: Likewise.
1294 * ppcobsd-nat.c: Likewise.
1295 * ppcobsd-tdep.h: Likewise.
1296 * python/py-gdb-readline.c: Likewise.
1297
1298 2014-08-07 Gary Benson <gbenson@redhat.com>
1299
1300 * common/common-defs.h: Include stdarg.h.
1301 * defs.h: Do not include stdarg.h.
1302 * ada-lang.c: Likewise.
1303 * common/common-utils.h: Likewise.
1304 * guile/scm-string.c: Likewise.
1305 * guile/scm-utils.c: Likewise.
1306 * m32c-tdep.c: Likewise.
1307
1308 2014-08-07 Gary Benson <gbenson@redhat.com>
1309
1310 * common/common-defs.h: Include stdlib.h.
1311 * defs.h: Do not include stdlib.h.
1312 * addrmap.c: Likewise.
1313 * bcache.c: Likewise.
1314 * common/buffer.c: Likewise.
1315 * common/common-utils.c: Likewise.
1316 * cp-name-parser.y: Likewise.
1317 * go32-nat.c: Likewise.
1318 * mn10300-linux-tdep.c: Likewise.
1319 * nat/linux-osdata.c: Likewise.
1320 * tui/tui.c: Likewise.
1321 * windows-nat.c: Likewise.
1322
1323 2014-08-07 Gary Benson <gbenson@redhat.com>
1324
1325 * common/common-defs.h: Include stdio.h.
1326 * defs.h: Do not include stdio.h.
1327 * ada-lang.c: Likewise.
1328 * common/buffer.c: Likewise.
1329 * common/common-utils.c: Likewise.
1330 * cp-name-parser.y: Likewise.
1331 * gnu-nat.c: Likewise.
1332 * go32-nat.c: Likewise.
1333 * i386gnu-nat.c: Likewise.
1334 * proc-api.c: Likewise.
1335 * proc-events.c: Likewise.
1336 * proc-flags.c: Likewise.
1337 * proc-why.c: Likewise.
1338 * python/python-internal.h: Likewise.
1339 * target-memory.c: Likewise.
1340 * tui/tui-io.c: Likewise.
1341 * tui/tui.c: Likewise.
1342
1343 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1344
1345 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1346 (scan_dyntag_auxv): Same.
1347
1348 2014-08-06 Yao Qi <yao@codesourcery.com>
1349
1350 * amd64-linux-nat.c: Remove duplicated include
1351 "x86-linux-nat.h".
1352 * i386-linux-nat.c: Likewise.
1353
1354 2014-08-06 Yao Qi <yao@codesourcery.com>
1355
1356 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1357 operand" with "Special opcode" in comments.
1358
1359 2014-08-05 Gary Benson <gbenson@redhat.com>
1360
1361 * interps.c (initialize_interps): Remove prototype.
1362 (interpreter_initialized): Remove static global.
1363 (interp_add): Do not call initialize_interps.
1364 (initialize_interps): Remove function.
1365
1366 2014-08-05 Gary Benson <gbenson@redhat.com>
1367
1368 * utils.c (vwarning): Remove spurious va_end.
1369
1370 2014-08-05 Alan Modra <amodra@gmail.com>
1371
1372 * charset.c (convert_between_encodings): Cast result of obstack_base.
1373 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1374 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1375 (read_unwind_info): Use size_t for some locals.
1376 * jit.c (finalize_symtab): Likewise.
1377 * utils.c (hashtab_obstack_allocate): Likewise.
1378 * symmisc.c (print_objfile_statistics): Update format strings.
1379
1380 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1381
1382 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1383 (Changes in GDB 7.8): ... here.
1384
1385 2014-08-04 Tom Tromey <tromey@redhat.com>
1386
1387 * target.c (set_targetdebug): New function.
1388 (initialize_targets): Pass set_targetdebug when creating "set
1389 debug target".
1390
1391 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1392
1393 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1394 if detecting a variable-sized field that is not the last field.
1395 Fix struct type length computation.
1396
1397 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1398
1399 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1400 Add debug trace.
1401
1402 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1403
1404 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1405 Remove "+ 8" offset in computation of CHAIN_VMA.
1406
1407 2014-07-31 Doug Evans <dje@google.com>
1408
1409 * inflow.c (child_terminal_inferior): Add comment.
1410 (child_terminal_ours_for_output): Add comment.
1411 (child_terminal_ours): Add comment.
1412 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1413 (linux_nat_terminal_ours): Add comment.
1414
1415 2014-07-31 Gary Benson <gbenson@redhat.com>
1416
1417 * common/btrace-common.h: Do not include defs.h or server.h.
1418 * nat/mips-linux-watch.h: Likewise.
1419 * gdb-dlfcn.h: Do not include defs.h.
1420 * tracefile.h: Likewise.
1421
1422 2014-07-30 Roland McGrath <mcgrathr@google.com>
1423
1424 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1425
1426 2014-07-30 Tom Tromey <tromey@redhat.com>
1427
1428 * bsd-kvm.c (bsd_kvm_open): Constify.
1429 * corelow.c (core_open): Constify.
1430 * ctf.c (ctf_open): Constify.
1431 * dbug-rom.c (dbug_open): Constify.
1432 * exec.c (exec_open): Constify.
1433 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1434 * microblaze-rom.c (picobug_open): Constify.
1435 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1436 Constify.
1437 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1438 * record-btrace.c (record_btrace_open): Constify.
1439 * record-full.c (record_full_core_open_1, record_full_open_1)
1440 (record_full_open): Constify.
1441 * remote-m32r-sdi.c (m32r_open): Constify.
1442 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1443 (rockhopper_open, lsi_open): Constify.
1444 * remote-sim.c (gdbsim_open): Constify.
1445 * remote.c (remote_open, extended_remote_open, remote_open_1):
1446 Constify.
1447 * target.h (struct target_ops) <to_open>: Make "arg" const.
1448 * tracefile-tfile.c (tfile_open): Constify.
1449
1450 2014-07-30 Tom Tromey <tromey@redhat.com>
1451
1452 * breakpoint.c (map_breakpoint_numbers): Update.
1453 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1454 (get_number_const): New function.
1455 (get_number): Rewrite using get_number_const.
1456 (init_number_or_range): Make "string" const.
1457 (number_is_in_list): Make "list" const.
1458 * cli/cli-utils.h (get_number_const): Declare.
1459 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1460 (init_number_or_range, number_is_in_list): Update.
1461 * printcmd.c (map_display_numbers): Update.
1462 * value.c (value_from_history_ref): Constify.
1463 * value.h (value_from_history_ref): Update.
1464
1465 2014-07-30 Tom Tromey <tromey@redhat.com>
1466
1467 * corefile.c (hook_type, call_extra_exec_file_hooks)
1468 (specify_exec_file_hook): Constify.
1469 * exec.c (exec_file_attach): Make "filename" const.
1470 * gdbcore.h (deprecated_exec_file_display_hook)
1471 (specify_exec_file_hook, exec_file_attach): Constify.
1472 * main.c (captured_main): Use catch_command_errors_const.
1473
1474 2014-07-30 Tom Tromey <tromey@redhat.com>
1475
1476 * target.c (open_target): New function.
1477 (add_target_with_completer, add_deprecated_target_alias): Use
1478 set_cmd_sfunc, set_cmd_context.
1479 (debug_to_open): Remove.
1480 (setup_target_debug): Update.
1481
1482 2014-07-30 Yao Qi <yao@codesourcery.com>
1483
1484 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1485 comments.
1486 * parse.c (exp_iterate): Update comments.
1487
1488 2014-07-30 Gary Benson <gbenson@redhat.com>
1489
1490 * common/common-defs.h: New file.
1491 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1492 * defs.h: Include common-defs.h.
1493 Do not include config.h or build-gnulib/config.h.
1494
1495 2014-07-30 Gary Benson <gbenson@redhat.com>
1496
1497 * common/common-utils.h: Do not include config.h.
1498 * nat/linux-btrace.h: Likewise.
1499
1500 2014-07-30 Gary Benson <gbenson@redhat.com>
1501
1502 * btrace.c: Include defs.h.
1503 * common/ptid.c: Include defs.h or server.h as appropriate.
1504 * nat/mips-linux-watch.c: Likewise.
1505
1506 2014-07-29 Tom Tromey <tromey@redhat.com>
1507
1508 * target.c (target_is_pushed): Simplify.
1509
1510 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1511
1512 GDB 7.8 released.
1513
1514 2014-07-29 Yao Qi <yao@codesourcery.com>
1515
1516 PR gdb/17206
1517 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1518
1519 2014-07-28 Doug Evans <xdje42@gmail.com>
1520
1521 PR guile/17203
1522 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1523 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1524 parameters.
1525
1526 2014-07-28 Will Newton <will.newton@linaro.org>
1527
1528 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1529 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1530 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1531 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1532 (THUMB2_EABI_SYSCALL): Likewise.
1533 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1534 struct tramp_frame.
1535 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1536 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1537
1538 2014-07-27 Doug Evans <xdje42@gmail.com>
1539
1540 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1541
1542 2014-07-27 Doug Evans <xdje42@gmail.com>
1543
1544 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1545
1546 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1547 Doug Evans <xdje42@gmail.com>
1548
1549 PR guile/17146
1550 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1551 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1552 * configure.ac: Try to use guild to compile an scm file, if it fails
1553 then disable guile support.
1554 * configure: Regenerate.
1555 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1556 GUILE_FILE_LIST.
1557 (GUILE_COMPILED_FILES): New variable.
1558 (GUILE_FILES) Update.
1559 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1560 (stamp-guile): Compile scm files.
1561 * guile/guile.c (boot_guile_support): New function.
1562 (standard_throw_args_p): New function.
1563 (print_standard_throw_error, print_throw_error): New functions.
1564 (handle_boot_error): New function.
1565 (initialize_scheme_side): Rewrite to call boot_guile_support.
1566 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1567 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1568
1569 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1570 Doug Evans <xdje42@gmail.com>
1571
1572 PR guile/17146
1573 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1574 * guile/lib/gdb/support.scm: New file.
1575 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1576 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1577 All uses updated.
1578 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1579 All uses updated.
1580 (%assert-type): Ditto, and renamed to assert-type.
1581 (%exception-print-style): Delete.
1582
1583 2014-07-26 Doug Evans <xdje42@gmail.com>
1584
1585 PR build/17105
1586 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1587 * configure: Regenerate.
1588 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1589 PYTHON_FILES.
1590 (PYTHON_FILES): New variable.
1591 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1592 (GUILE_FILES): New variable.
1593 (stamp-python, install-python, uninstall-python): Handle empty
1594 file list.
1595 (stamp-guile, install-guile, uninstall-guile): Ditto.
1596
1597 2014-07-26 Doug Evans <xdje42@gmail.com>
1598
1599 PR guile/17177
1600 * guile/lib/gdb.scm (pretty-printers): Export.
1601 (set-pretty-printers!): Export.
1602 * guile/lib/gdb/printing.scm (gdb module): Update.
1603 (prepend-pretty-printer!, append-pretty-printer!): Update.
1604 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1605 (pretty_printer_list_var): Delete.
1606 (pretty_printer_list): New static global.
1607 (gdbscm_pretty_printers): New function.
1608 (gdbscm_set_pretty_printers_x): New function.
1609 (ppscm_find_pretty_printer_from_gdb): Update.
1610 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1611 (gdbscm_initialize_pretty_printers): Update.
1612
1613 2014-07-26 Doug Evans <xdje42@gmail.com>
1614
1615 PR 17185
1616 * configure.ac: Add check for header gc/gc.h.
1617 Add check for function setenv.
1618 * configure: Regenerate.
1619 * config.in: Regenerate.
1620 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1621
1622 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1623
1624 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1625 variation in gdbarch matching.
1626
1627 2014-07-25 Tom Tromey <tromey@redhat.com>
1628
1629 * exec.c (using_exec_ops): Remove.
1630 (exec_close_1): Update. Remove extraneous block, reindent.
1631 (add_target_sections): Use target_is_pushed.
1632
1633 2014-07-25 Pedro Alves <palves@redhat.com>
1634
1635 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1636 * monitor.c (monitor_create_inferior): Likewise.
1637 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1638 * remote-sim.c (gdbsim_create_inferior): Likewise.
1639 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1640 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1641 * windows-nat.c (do_initial_windows_stuff): Likewise.
1642
1643 2014-07-25 Pedro Alves <palves@redhat.com>
1644
1645 * NEWS: Mention signal passing and "signal" command changes.
1646 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1647 comment.
1648 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1649 call.
1650 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1651 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1652 (jump_command): Adjust clear_proceed_status call.
1653 (signal_command): Warn if other thread that are resumed have
1654 signals that will be delivered. Adjust clear_proceed_status call.
1655 (until_next_command, finish_command)
1656 (proceed_after_attach_callback, attach_command_post_wait)
1657 (attach_command): Adjust clear_proceed_status call.
1658 * infrun.c (proceed_after_vfork_done): Likewise.
1659 (proceed_after_attach_callback): Adjust comment.
1660 (clear_proceed_status_thread): Clear stop_signal if not in pass
1661 state.
1662 (clear_proceed_status_callback): Delete.
1663 (clear_proceed_status): New 'step' parameter. Only clear the
1664 proceed status of threads the command being prepared is about to
1665 resume.
1666 (proceed): If passed in an explicit signal, override stop_signal
1667 with it. Don't pass the last stop signal to the thread we're
1668 resuming.
1669 (init_wait_for_inferior): Adjust clear_proceed_status call.
1670 (switch_back_to_stepped_thread): Clear the signal if it should not
1671 be passed.
1672 * infrun.h (clear_proceed_status): New 'step' parameter.
1673 (user_visible_resume_ptid): Add comment.
1674 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1675 signal is in pass state.
1676 * remote.c (append_pending_thread_resumptions): Likewise.
1677 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1678
1679 2014-07-25 Tom Tromey <tromey@redhat.com>
1680
1681 * target.h (target_stopped_data_address)
1682 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1683 parentheses.
1684
1685 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1686
1687 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1688 comments.
1689 (avr_pointer_to_address): Likewise.
1690
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1692
1693 * monitor.c (compile_pattern): Update.
1694 * target.h (struct target_ops) <to_shortname, to_longname,
1695 to_doc>: Now const.
1696
1697 2014-07-24 Tom Tromey <tromey@redhat.com>
1698
1699 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1700 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1701 (add_info_alias, add_com): Make "doc" const.
1702 (print_doc_line): Make "str" const.
1703 (delete_cmd): Update.
1704 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1705 (print_doc_line): Update.
1706 * cli/cli-script.c (document_command): Update.
1707 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1708 (add_com, add_info, add_info_alias): Update.
1709 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1710 * python/py-cmd.c (cmdpy_destroyer): Update.
1711
1712 2014-07-24 Tom Tromey <tromey@redhat.com>
1713
1714 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1715 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1716 (help_cmd_list): Constify.
1717 (lookup_cmd): Update.
1718 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1719 const.
1720 (help_cmd_list, apropos_cmd): Update.
1721 * cli/cli-script.c (show_user): Update.
1722 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1723 * cli/cli-setshow.h (cmd_show_list): Update.
1724 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1725 (cmd_show_list): Update.
1726 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1727 * python/py-cmd.c (cmdpy_destroyer): Update.
1728
1729 2014-07-24 Tom Tromey <tromey@redhat.com>
1730
1731 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1732 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1733 const.
1734 * command.h (deprecate_cmd): Update.
1735 * maint.c (maintenance_do_deprecate): Add casts.
1736
1737 2014-07-24 Tom Tromey <tromey@redhat.com>
1738
1739 * cli/cli-decode.c (help_cmd): Make parameter "const".
1740 * cli/cli-decode.h (help_cmd): Update.
1741
1742 2014-07-24 Tom Tromey <tromey@redhat.com>
1743
1744 * stack.c (up_silently_base, down_silently_base): Make argument
1745 const.
1746
1747 2014-07-24 Tom Tromey <tromey@redhat.com>
1748
1749 * solib.c (solib_add): Make "pattern" const.
1750 * solib.h (solib_add): Update.
1751
1752 2014-07-24 Tom Tromey <tromey@redhat.com>
1753
1754 * remote.c (remote_serial_open, print_packet, putpkt)
1755 (putpkt_binary): Constify.
1756 * remote.h (putpkt): Update.
1757
1758 2014-07-24 Tom Tromey <tromey@redhat.com>
1759
1760 * monitor.c (monitor_open): Make "args" const.
1761 * monitor.h (monitor_open): Update.
1762
1763 2014-07-24 Tom Tromey <tromey@redhat.com>
1764
1765 * maint.c (match_bfd_flags): Make "string" const.
1766 (print_bfd_section_info): Remove casts.
1767 (print_objfile_section_info): Make "string" const.
1768
1769 2014-07-24 Tom Tromey <tromey@redhat.com>
1770
1771 * inf-child.c (inf_child_open_target): Make "arg" const.
1772 * inf-child.h (inf_child_open_target): Update.
1773
1774 2014-07-24 Tom Tromey <tromey@redhat.com>
1775
1776 * environ.c (unset_in_environ): Make "var" const.
1777 * environ.h (unset_in_environ): Update.
1778
1779 2014-07-24 Tom Tromey <tromey@redhat.com>
1780
1781 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1782 Make "cmd" const.
1783 (scan_filename_with_cleanup): Likewise.
1784 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1785 Make arguments const.
1786 (restore_command): Update.
1787
1788 2014-07-24 Pedro Alves <palves@redhat.com>
1789
1790 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1791
1792 2014-07-24 Tom Tromey <tromey@redhat.com>
1793 Gary Benson <gbenson@redhat.com>
1794
1795 * nat/linux-ptrace.c (additional_flags): New global.
1796 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1797 additional_flags; don't check GDBSERVER.
1798 (linux_ptrace_set_additional_flags): New function.
1799 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1800 Declare.
1801 * linux-nat.c (_initialize_linux_nat): Call
1802 linux_ptrace_set_additional_flags.
1803
1804 2014-07-24 Tom Tromey <tromey@redhat.com>
1805
1806 * make-target-delegates (munge_type, write_debugmethod): New
1807 functions.
1808 (debug_names): New global.
1809 ($TARGET_DEBUG_PRINTER): New global.
1810 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1811 name.
1812 Write debug methods. Generate init_debug_target.
1813 * target-debug.h: New file.
1814 * target-delegates.c: Rebuild.
1815 * target.c: Include target-debug.h.
1816 (debug_target): Hoist definition.
1817 (target_kill, target_get_section_table, target_memory_map)
1818 (target_flash_erase, target_flash_done, target_detach)
1819 (target_disconnect, target_wait, target_resume)
1820 (target_pass_signals, target_program_signals, target_follow_fork)
1821 (target_mourn_inferior, target_search_memory)
1822 (target_thread_address_space, target_close)
1823 (target_find_new_threads, target_core_of_thread)
1824 (target_verify_memory, target_insert_mask_watchpoint)
1825 (target_remove_mask_watchpoint): Remove targetdebug code.
1826 (debug_to_post_attach, debug_to_prepare_to_store)
1827 (debug_to_files_info, debug_to_insert_breakpoint)
1828 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1829 (debug_to_region_ok_for_hw_watchpoint)
1830 (debug_to_can_accel_watchpoint_condition)
1831 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1832 (debug_to_watchpoint_addr_within_range)
1833 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1834 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1835 (debug_to_terminal_init, debug_to_terminal_inferior)
1836 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1837 (debug_to_terminal_save_ours, debug_to_terminal_info)
1838 (debug_to_load, debug_to_post_startup_inferior)
1839 (debug_to_insert_fork_catchpoint)
1840 (debug_to_remove_fork_catchpoint)
1841 (debug_to_insert_vfork_catchpoint)
1842 (debug_to_remove_vfork_catchpoint)
1843 (debug_to_insert_exec_catchpoint)
1844 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1845 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1846 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1847 (setup_target_debug): Call init_debug_target.
1848 * target.h (TARGET_DEBUG_PRINTER): New macro.
1849 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1850 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1851
1852 2014-07-24 Gary Benson <gbenson@redhat.com>
1853
1854 * exceptions.h (throw_vfatal): Renamed to...
1855 (throw_vquit): New declaration.
1856 (throw_quit): Likewise.
1857 * exceptions.c (throw_vfatal): Renamed to...
1858 (throw_vquit): New function.
1859 (throw_quit): Likewise.
1860 (throw_error): Call throw_verror rather than throw_it.
1861 * utils.h (vfatal): Removed.
1862 (fatal): Likewise.
1863 * utils.c (vfatal): Removed.
1864 (fatal): Likewise.
1865 (internal_verror): Replaced call to fatal with call to throw_quit.
1866 (quit): Replaced calls to fatal with calls to throw_quit.
1867
1868 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1869
1870 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1871 target_read_code.
1872
1873 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1874
1875 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1876 less than zero in conditional expression.
1877
1878 2014-07-23 Tom Tromey <tromey@redhat.com>
1879
1880 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1881 ($INTRO_PART): Don't match whitespace.
1882 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1883 argument matching.
1884 ($METHOD): Add $METHOD_TRAILER.
1885 (trim): Rewrite.
1886 (scan_target_h): New sub.
1887 Change main loop not to collect state.
1888 * target-delegates.c: Rebuild.
1889
1890 2014-07-23 Gary Benson <gbenson@redhat.com>
1891
1892 * cp-support.c (gdb_demangle): Fix build on systems without
1893 sigaltstack.
1894
1895 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1896
1897 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1898 for reference entry value target data value.
1899
1900 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1901
1902 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1903 value_available_contents_eq.
1904
1905 2014-07-22 Pedro Alves <palves@redhat.com>
1906
1907 * value.c (allocate_optimized_out_value): Don't mark value as
1908 non-lazy.
1909
1910 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1911
1912 * MAINTAINERS (Write After Approval): Update my email address.
1913
1914 2014-07-20 Doug Evans <dje@google.com>
1915
1916 PR server/17147
1917 * remote.c (putpkt_binary): Add text to error message.
1918
1919 2014-07-20 Yao Qi <yao@codesourcery.com>
1920
1921 * eval.c: Remove "Chill" from comments.
1922 * gdbtypes.h: Likewise.
1923 * symtab.h: Likewise.
1924
1925 2014-07-20 Yao Qi <yao@codesourcery.com>
1926
1927 * std-operator.def: Update comments to TERNOP_SLICE.
1928
1929 2014-07-20 Yao Qi <yao@codesourcery.com>
1930
1931 * std-operator.def: Remove BINOP_RANGE.
1932 * breakpoint.c (watchpoint_exp_is_const): Update.
1933 * expprint.c (dump_subexp_body_standard): Likewise.
1934 * eval.c (init_array_element): Remove dead code.
1935 (evaluate_subexp_standard): Likewise.
1936
1937 2014-07-20 Yao Qi <yao@codesourcery.com>
1938
1939 * std-operator.def: Remove BINOP_IN.
1940 * breakpoint.c (watchpoint_exp_is_const): Update.
1941 * eval.c (evaluate_subexp_standard): Likewise.
1942 * expprint.c (dump_subexp_body_standard): Likewise.
1943
1944 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1945
1946 * microblaze-tdep.c (microblaze_register_names): Add
1947 the rshr and rslr register names.
1948 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1949 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1950 Use of tdesc_numbered_register. Use of
1951 microblaze_register_g_packet_guesses. Use of
1952 tdesc_use_registers. Use of set_gdbarch_register_type.
1953 (microblaze_register_g_packet_guesses): New.
1954 * microblaze-tdep.h (microblaze_reg_num): Add
1955 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1956 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1957 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1958 * features/microblaze-core.xml: New file.
1959 * features/microblaze-stack-protect.xml: New file.
1960 * features/microblaze-with-stack-protect.c: New file.
1961 * features/microblaze-with-stack-protect.xml: New file.
1962 * features/microblaze.xml: New file.
1963 * features/microblaze.c: New file.
1964 * features/Makefile (microblaze-with-stack-protect): Add
1965 microblaze-with-stack-protect microblaze and microblaze-expedite.
1966 * regformats/microblaze-with-stack-protect.dat: New file.
1967 * regformats/microblaze.dat: New file.
1968 * doc/gdb.texinfo (MicroBlaze Features): Added.
1969
1970 2014-07-18 Tom Tromey <tromey@redhat.com>
1971
1972 * exec.c (exec_ops): Now static.
1973 * exec.h (exec_ops): Don't declare.
1974
1975 2014-07-18 Tom Tromey <tromey@redhat.com>
1976
1977 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1978 to find_target_beneath.
1979 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1980 find_target_beneath.
1981 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1982
1983 2014-07-18 Tom Tromey <tromey@redhat.com>
1984
1985 PR gdb/17130:
1986 * utils.c (quit): Use target_supports_terminal_ours.
1987 * target.h (target_supports_terminal_ours): Declare.
1988 * target.c (target_supports_delete_record): Don't check
1989 to_delete_record against NULL.
1990 (target_supports_terminal_ours): New function.
1991
1992 2014-07-18 Tom Tromey <tromey@redhat.com>
1993
1994 PR gdb/17130:
1995 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1996 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1997 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1998 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1999 * windows-nat.c (windows_xfer_partial): Always delegate.
2000 * record-btrace.c (record_btrace_xfer_partial): Simplify
2001 delegation.
2002 (record_btrace_fetch_registers, record_btrace_store_registers)
2003 (record_btrace_prepare_to_store, record_btrace_resume)
2004 (record_btrace_wait, record_btrace_find_new_threads)
2005 (record_btrace_thread_alive): Likewise.
2006 * procfs.c (procfs_xfer_partial): Always delegate.
2007 * corelow.c (core_xfer_partial): Always delegate.
2008 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2009
2010 2014-07-18 Tom Tromey <tromey@redhat.com>
2011
2012 * exec.c (exec_make_note_section): Move earlier.
2013
2014 2014-07-17 Doug Evans <dje@google.com>
2015
2016 PR gdb/17170
2017 * maint.c (count_symtabs_and_blocks): Handle NULL
2018 current_program_space.
2019 (report_command_stats): Check global enabled flag in addition to
2020 recorded enabled flag.
2021 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2022
2023 2014-07-16 Pedro Alves <palves@redhat.com>
2024
2025 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2026
2027 2014-07-16 Tom Tromey <tromey@redhat.com>
2028
2029 * target.h (struct target_ops) <to_delete_record>: Reformat
2030 comment.
2031
2032 2014-07-16 Tom Tromey <tromey@redhat.com>
2033
2034 * target-delegates.c: Rebuild.
2035
2036 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2037
2038 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2039 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2040 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2041 (avr_pointer_to_address): Likewise.
2042 (avr_address_class_type_flags): New function.
2043 (avr_address_class_type_flags_to_name): Likewise.
2044 (avr_address_class_name_to_type_flags): Likewise.
2045 (avr_gdbarch_init): Set address_class_type_flags,
2046 address_class_type_flags_to_name and
2047 address_class_name_to_type_flags.
2048
2049 2014-07-15 Pedro Alves <palves@redhat.com>
2050
2051 * linux-nat.c (kill_callback): Save errno and work with saved
2052 copy.
2053
2054 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2055
2056 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2057
2058 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2059
2060 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2061 breakpoint support correctly.
2062
2063 2014-07-14 Pedro Alves <palves@redhat.com>
2064
2065 * utils.c (prompt_for_continue): Call target_terminal_ours.
2066
2067 2014-07-14 Pedro Alves <palves@redhat.com>
2068
2069 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2070 catch_errors. Don't re-enable stdin or notify observers where,
2071 and rethrow error.
2072 (fetch_inferior_event_wrapper): Delete.
2073
2074 2014-07-14 Pedro Alves <palves@redhat.com>
2075
2076 PR gdb/17072
2077 * top.c: Include "inf-loop.h".
2078 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2079 field.
2080 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2081 was async before.
2082 (gdb_readline_wrapper): Store whether the target is async, and
2083 make it sync.
2084
2085 2014-07-14 Pedro Alves <palves@redhat.com>
2086
2087 PR gdb/17072
2088 * top.c (gdb_readline_wrapper_line): Tweak comment.
2089 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2090 the input handler callback.
2091
2092 2014-07-14 Pedro Alves <palves@redhat.com>
2093
2094 PR gdb/17072
2095 * main.c: Include event-top.h.
2096 (handle_command_errors): New function.
2097 (catch_command_errors, catch_command_errors_const): Use it.
2098
2099 2014-07-14 Pedro Alves <palves@redhat.com>
2100
2101 * exceptions.c (catch_command_errors, catch_command_errors_const):
2102 Moved to main.c.
2103 * exceptions.h (catch_command_errors_ftype)
2104 (catch_command_errors_const_ftype): Moved to main.c.
2105 (catch_command_errors, catch_command_errors_const): Delete
2106 declarations.
2107 * main.c (catch_command_errors_ftype)
2108 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2109 (catch_command_errors, catch_command_errors_const)): Moved here
2110 from exceptions.c and make static.
2111
2112 2014-07-14 Pedro Alves <palves@redhat.com>
2113
2114 * exceptions.c (print_any_exception): Delete.
2115 (catch_exceptions_with_msg): Use exception_print instead of
2116 print_any_exception.
2117 (catch_errors): Use exception_fprintf instead of
2118 print_any_exception.
2119 (catch_command_errors, catch_command_errors_const): Use
2120 exception_print instead of print_any_exception.
2121
2122 2014-07-14 Pedro Alves <palves@redhat.com>
2123
2124 * infcall.c (run_inferior_call): Set 'sync_execution' while
2125 running the inferior call.
2126
2127 2014-07-14 Pedro Alves <palves@redhat.com>
2128
2129 * value.c (value_contents_equal): Delete function.
2130 * value.h (value_contents_equal): Delete declaration.
2131
2132 2014-07-14 Tom Tromey <tromey@redhat.com>
2133
2134 PR exp/17106:
2135 * gdbtypes.c (is_dynamic_type_internal): New function, from
2136 is_dynamic_type.
2137 (is_dynamic_type): Rewrite.
2138 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2139 (resolve_dynamic_struct): Likewise.
2140 (resolve_dynamic_type_internal): New function, from
2141 resolve_dynamic_type.
2142 (resolve_dynamic_type): Rewrite.
2143
2144 2014-07-14 Tom Tromey <tromey@redhat.com>
2145
2146 * target.c (target_require_runnable): Also check record_stratum.
2147 Update comment.
2148
2149 2014-07-11 Yao Qi <yao@codesourcery.com>
2150
2151 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2152 thumb_instruction_restores_sp return true.
2153
2154 2014-07-11 Yao Qi <yao@codesourcery.com>
2155
2156 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2157 (thumb_in_function_epilogue_p): Call
2158 thumb_instruction_restores_sp.
2159
2160 2014-07-11 Yao Qi <yao@codesourcery.com>
2161
2162 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2163 'add sp, #imm'.
2164 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2165
2166 2014-07-11 Gary Benson <gbenson@redhat.com>
2167
2168 * amd64-linux-nat.c (gdbcore.h): Remove include.
2169 (regset.h): Likewise.
2170 (nat/linux-btrace.h): Likewise.
2171 (btrace.h): Likewise.
2172 (gdb_assert.h): Likewise.
2173 (string.h): Likewise.
2174 (sys/uio.h): Likewise.
2175 (sys/debugreg.h): Likewise.
2176 (sys/syscall.h): Likewise.
2177 (sys/procfs.h): Likewise.
2178 (sys/user.h): Likewise.
2179 (asm/ptrace.h): Likewise.
2180 (i386-nat.h): Likewise.
2181 * i386-linux-nat.c (i386-nat.h): Likewise.
2182 (regset.h): Likewise.
2183 (target.h): Likewise.
2184 (linux-nat.h): Likewise.
2185 (nat/linux-btrace.h): Likewise.
2186 (btrace.h): Likewise.
2187 (gdb_assert.h): Likewise.
2188 (string.h): Likewise.
2189 (sys/uio.h): Likewise.
2190 (sys/user.h): Likewise.
2191 (sys/procfs.h): Likewise.
2192 (sys/reg.h): Likewise.
2193 (sys/debugreg.h): Likewise.
2194 (ORIG_EAX): Remove definition.
2195
2196 2014-07-11 Gary Benson <gbenson@redhat.com>
2197
2198 * i386-linux-nat.h: New file.
2199 * x86-linux-nat.h: Likewise.
2200 * x86-linux-nat.c: Likewise.
2201 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2202 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2203 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2204 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2205 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2206 (PTRACE_SETREGSET): Likewise.
2207 (arch_lwp_info): Now in x86-linux-nat.c.
2208 (have_ptrace_getregset): Now in x86-linux-nat.h.
2209 (x86_linux_dr_get): Now in x86-linux-nat.c.
2210 (x86_linux_dr_set): Likewise.
2211 (x86_linux_dr_get_addr): Likewise.
2212 (x86_linux_dr_get_control): Likewise.
2213 (x86_linux_dr_get_status): Likewise.
2214 (update_debug_registers_callback): Likewise.
2215 (x86_linux_dr_set_control): Likewise.
2216 (x86_linux_dr_set_addr): Likewise.
2217 (x86_linux_prepare_to_resume): Likewise.
2218 (x86_linux_new_thread): Likewise.
2219 (x86_linux_new_fork): Likewise.
2220 (x86_linux_get_thread_area): Likewise.
2221 (super_post_startup_inferior): Likewise.
2222 (x86_linux_child_post_startup_inferior): Likewise.
2223 (AMD64_LINUX_USER64_CS): Likewise.
2224 (AMD64_LINUX_X32_DS): Likewise.
2225 (x86_linux_read_description): Likewise.
2226 (x86_linux_enable_btrace): Likewise.
2227 (x86_linux_disable_btrace): Likewise.
2228 (x86_linux_teardown_btrace): Likewise.
2229 (x86_linux_read_btrace): Likewise.
2230 (x86_linux_create_target): Likewise.
2231 (x86_linux_add_target): Likewise.
2232 * i386-linux-nat.c (x86-linux-nat.h): New include.
2233 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2234 (PTRACE_SETREGSET): Likewise.
2235 (arch_lwp_info): Now in x86-linux-nat.c.
2236 (have_ptrace_getregset): Now in x86-linux-nat.h.
2237 (x86_linux_dr_get): Now in x86-linux-nat.c.
2238 (x86_linux_dr_set): Likewise.
2239 (x86_linux_dr_get_addr): Likewise.
2240 (x86_linux_dr_get_control): Likewise.
2241 (x86_linux_dr_get_status): Likewise.
2242 (update_debug_registers_callback): Likewise.
2243 (x86_linux_dr_set_control): Likewise.
2244 (x86_linux_dr_set_addr): Likewise.
2245 (x86_linux_prepare_to_resume): Likewise.
2246 (x86_linux_new_thread): Likewise.
2247 (x86_linux_new_fork): Likewise.
2248 (x86_linux_get_thread_area): Likewise.
2249 (super_post_startup_inferior): Likewise.
2250 (x86_linux_child_post_startup_inferior): Likewise.
2251 (AMD64_LINUX_USER64_CS): Likewise.
2252 (AMD64_LINUX_X32_DS): Likewise.
2253 (x86_linux_read_description): Likewise.
2254 (x86_linux_enable_btrace): Likewise.
2255 (x86_linux_disable_btrace): Likewise.
2256 (x86_linux_teardown_btrace): Likewise.
2257 (x86_linux_read_btrace): Likewise.
2258 (x86_linux_create_target): Likewise.
2259 (x86_linux_add_target): Likewise.
2260
2261 2014-07-11 Gary Benson <gbenson@redhat.com>
2262
2263 * amd64-linux-nat.c: Comment and whitespace changes.
2264 * i386-linux-nat.c: Comment and whitespace changes.
2265
2266 2014-07-11 Gary Benson <gbenson@redhat.com>
2267
2268 * amd64-linux-nat.c (x86_linux_create_target): New function.
2269 (x86_linux_add_target): Likewise.
2270 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2271 * i386-linux-nat.c (x86_linux_create_target): New function.
2272 (x86_linux_add_target): Likewise.
2273 (_initialize_i386_linux_nat): Delegate to the above new functions.
2274
2275 2014-07-11 Gary Benson <gbenson@redhat.com>
2276
2277 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2278 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2279 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2280 (ps_get_thread_area): Delegate to the above.
2281
2282 2014-07-11 Gary Benson <gbenson@redhat.com>
2283
2284 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2285 x86_linux_read_description. All uses updated. amd64-specific
2286 code conditionalized. Conditionalized i386-specific code added.
2287 Redundant cast removed.
2288 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2289 x86_linux_read_description. All uses updated. i386-specific
2290 code conditionalized. Conditionalized amd64-specific code added.
2291 One sizeof replaced with the actual type it is describing.
2292
2293 2014-07-11 Gary Benson <gbenson@redhat.com>
2294
2295 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2296 x86_linux_dr_get. All uses updated.
2297 (amd64_linux_dr_set): Renamed to
2298 x86_linux_dr_set. All uses updated.
2299 (amd64_linux_dr_get_addr): Renamed to
2300 x86_linux_dr_get_addr. All uses updated.
2301 (amd64_linux_dr_get_control): Renamed to
2302 x86_linux_dr_get_control. All uses updated.
2303 (amd64_linux_dr_get_status): Renamed to
2304 x86_linux_dr_get_status. All uses updated.
2305 (amd64_linux_dr_set_control): Renamed to
2306 x86_linux_dr_set_control. All uses updated.
2307 (amd64_linux_dr_set_addr): Renamed to
2308 x86_linux_dr_set_addr. All uses updated.
2309 (amd64_linux_prepare_to_resume): Renamed to
2310 x86_linux_prepare_to_resume. All uses updated.
2311 (amd64_linux_new_thread): Renamed to
2312 x86_linux_new_thread. All uses updated.
2313 (amd64_linux_new_fork): Renamed to
2314 x86_linux_new_fork. All uses updated.
2315 (amd64_linux_child_post_startup_inferior): Renamed to
2316 x86_linux_child_post_startup_inferior. All uses updated.
2317 (amd64_linux_enable_btrace): Renamed to
2318 x86_linux_enable_btrace. All uses updated.
2319 (amd64_linux_disable_btrace): Renamed to
2320 x86_linux_disable_btrace. All uses updated.
2321 (amd64_linux_teardown_btrace): Renamed to
2322 x86_linux_teardown_btrace. All uses updated.
2323 (amd64_linux_read_btrace): Renamed to
2324 x86_linux_read_btrace. All uses updated.
2325 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2326 x86_linux_dr_get. All uses updated.
2327 (i386_linux_dr_set): Renamed to
2328 x86_linux_dr_set. All uses updated.
2329 (i386_linux_dr_get_addr): Renamed to
2330 x86_linux_dr_get_addr. All uses updated.
2331 (i386_linux_dr_get_control): Renamed to
2332 x86_linux_dr_get_control. All uses updated.
2333 (i386_linux_dr_get_status): Renamed to
2334 x86_linux_dr_get_status. All uses updated.
2335 (i386_linux_dr_set_control): Renamed to
2336 x86_linux_dr_set_control. All uses updated.
2337 (i386_linux_dr_set_addr): Renamed to
2338 x86_linux_dr_set_addr. All uses updated.
2339 (i386_linux_prepare_to_resume): Renamed to
2340 x86_linux_prepare_to_resume. All uses updated.
2341 (i386_linux_new_thread): Renamed to
2342 x86_linux_new_thread. All uses updated.
2343 (i386_linux_new_fork): Renamed to
2344 x86_linux_new_fork. All uses updated.
2345 (i386_linux_child_post_startup_inferior): Renamed to
2346 x86_linux_child_post_startup_inferior. All uses updated.
2347 (i386_linux_enable_btrace): Renamed to
2348 x86_linux_enable_btrace. All uses updated.
2349 (i386_linux_disable_btrace): Renamed to
2350 x86_linux_disable_btrace. All uses updated.
2351 (i386_linux_teardown_btrace): Renamed to
2352 x86_linux_teardown_btrace. All uses updated.
2353 (i386_linux_read_btrace): Renamed to
2354 x86_linux_read_btrace. All uses updated.
2355
2356 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2357
2358 * remote.c (extended_remote_post_attach): New function.
2359 (init_extended_remote_ops): Install it as to_post_attach method.
2360
2361 2014-07-09 Pedro Alves <palves@redhat.com>
2362
2363 * infcmd.c (attach_command_post_wait): Don't call
2364 target_terminal_inferior here.
2365 (attach_command): Call it here instead.
2366
2367 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2370 field.
2371 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2372 from varobj.c, with additional checks.
2373 (c_varobj_ops): Fill in is_path_expr_parent field.
2374 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2375 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2376 field.
2377 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2378 ops method.
2379 (varobj_default_is_path_expr_parent): New function.
2380 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2381 (varobj_default_is_path_expr_parent): Declare new function.
2382
2383 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2384
2385 * infcmd.c (finish_backward): Turn internal error into normal error.
2386
2387 2014-07-07 Pedro Alves <palves@redhat.com>
2388
2389 PR gdb/17096
2390 * remote.c (async_handle_remote_sigint)
2391 (async_handle_remote_sigint_twice): Call
2392 gdb_call_async_signal_handler instead of
2393 mark_async_signal_handler.
2394
2395 2014-07-07 Tom Tromey <tromey@redhat.com>
2396
2397 * target-delegates.c: Rebuild.
2398 * target.c (target_info_record): Remove.
2399 * record.c (info_record_command): Unconditionally call
2400 to_info_record.
2401 * target.h (struct target_ops) <to_info_record>: Use
2402 TARGET_DEFAULT_IGNORE.
2403 (target_info_record): Remove.
2404
2405 2014-07-07 Tom Tromey <tromey@redhat.com>
2406
2407 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2408 TARGET_DEFAULT_NORETURN.
2409 * target.c (generic_tls_error): New function.
2410 (target_translate_tls_address): Don't search target stack.
2411 * target-delegates.c: Rebuild.
2412 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2413 stack.
2414 * linux-thread-db.c (thread_db_get_thread_local_address):
2415 Unconditionally call beneath target.
2416
2417 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2418
2419 * cli/cli-logging.c (pop_output_files): Assign targerr to
2420 gdb_stdtargerr.
2421
2422 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * MAINTAINERS (Write After Approval): Update my email address.
2425
2426 2014-07-02 Gary Benson <gbenson@redhat.com>
2427
2428 * proc-service.c (ps_xfer_memory): Update comment.
2429 (ps_pstop): Remove unused function.
2430 (ps_pcontinue): Likewise.
2431 (ps_lstop): Likewise.
2432 (ps_lcontinue): Likewise.
2433 (ps_lgetxregsize): Likewise.
2434 (ps_lgetxregs): Likewise.
2435 (ps_lsetxregs): Likewise.
2436 (ps_plog): Likewise.
2437 (ps_ptread): Likewise.
2438 (ps_ptwrite): Likewise.
2439
2440 2014-07-01 Mark Wielaard <mjw@redhat.com>
2441
2442 * dwarf2read.c (add_array_cv_type): New function.
2443 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2444 (read_tag_volatile_type): Likewise.
2445
2446 2014-07-01 Tom Tromey <tromey@redhat.com>
2447
2448 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2449 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2450 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2451 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2452 * command.h (cmd_cfunc_ftype): Move earlier.
2453 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2454 (add_com, add_info): Use cmd_cfunc_ftype.
2455
2456 2014-06-30 Tom Tromey <tromey@redhat.com>
2457
2458 * symtab.c (operator_chars): Make parameters and return type
2459 const.
2460 (file_matches): Make "files" const.
2461 (struct search_symbols_data) <files>: Now const.
2462 (search_symbols): Make "regexp" and "files" parameters const.
2463 Update.
2464 (symtab_symbol_info): Remove cast.
2465 (rbreak_command): Update.
2466 * symtab.h (search_symbols): Update.
2467
2468 2014-06-27 Yao Qi <yao@codesourcery.com>
2469
2470 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2471 Change parameter type to 'struct thread_info *'. Caller
2472 updated.
2473 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2474 Update declaration.
2475 * dummy-frame.c (struct dummy_frame_id): New.
2476 (dummy_frame_id_eq): New function.
2477 (struct dummy_frame) <id>: Change its type to 'struct
2478 dummy_frame_id'.
2479 (dummy_frame_push): Add parameter ptid and save it in
2480 dummy_frame_id.
2481 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2482 inferior_ptid.
2483 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2484 to inferior_ptid.
2485 (lookup_dummy_frame): Change parameter type to 'struct
2486 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2487 instead of frame_id_eq.
2488 (dummy_frame_pop): Add parameter ptid. Callers updated.
2489 Update comments. Compose dummy_frame_id and pass it to
2490 lookup_dummy_frame.
2491 (dummy_frame_discard): Add parameter ptid.
2492 (dummy_frame_sniffer): Compose dummy_frame_id and call
2493 dummy_frame_id_eq instead of frame_id_eq.
2494 (fprint_dummy_frames): Print ptid.
2495 * dummy-frame.h: Remove comments.
2496 (dummy_frame_push): Add ptid in declaration.
2497 (dummy_frame_pop, dummy_frame_discard): Likewise.
2498
2499 2014-06-26 Tom Tromey <tromey@redhat.com>
2500
2501 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2502 * command.h (error_no_arg): Update.
2503
2504 2014-06-26 Tom Tromey <tromey@redhat.com>
2505
2506 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2507 (do_show_command): Make "arg" const.
2508 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2509
2510 2014-06-26 Tom Tromey <tromey@redhat.com>
2511
2512 * record-full.c (record_full_get_bookmark): Make "args" const.
2513 (record_full_goto_bookmark): Make "raw_bookmark" const.
2514 * record.c (record_goto): New function.
2515 (cmd_record_goto): Use it. Now static.
2516 * record.h (record_goto): Declare.
2517 (cmd_record_goto): Remove declaration.
2518 * target-delegates.c: Rebuild.
2519 * target.h (struct target_ops) <to_get_bookmark,
2520 to_goto_bookmark>: Make parameter const.
2521
2522 2014-06-26 Tom Tromey <tromey@redhat.com>
2523
2524 * defs.h (generic_load): Update.
2525 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2526 * monitor.c (monitor_load): Make "args" const.
2527 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2528 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2529 const.
2530 (mips_load): Make "file" const.
2531 * remote-sim.c (gdbsim_load): Make "args" const.
2532 * remote.c (remote_load): Make "name" const.
2533 * symfile.c (generic_load): Make "args" const.
2534 * target-delegates.c: Rebuild.
2535 * target.c (target_load): Make "arg" const.
2536 (debug_to_load): Make "args" const.
2537 * target.h (struct target_ops) <to_load>: Make parameter const.
2538 (target_load): Update.
2539
2540 2014-06-26 Tom Tromey <tromey@redhat.com>
2541
2542 PR symtab/16902:
2543 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2544 (dwarf2_physname, read_partial_die)
2545 (guess_partial_die_structure_name, fixup_partial_die)
2546 (guess_full_die_structure_name, anonymous_struct_prefix)
2547 (dwarf2_name): Use per-BFD obstack.
2548
2549 2014-06-26 Yao Qi <yao@codesourcery.com>
2550
2551 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2552 dummyframe and this_id into inner block below.
2553
2554 2014-06-26 Yao Qi <yao@codesourcery.com>
2555
2556 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2557 with "signal_pass[0]" in the initialization of signal_pass.
2558
2559 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2560
2561 * record-btrace.c (record_btrace_generating_corefile)
2562 (record_btrace_prepare_to_generate_core)
2563 (record_btrace_done_generating_core): New.
2564 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2565 (record_btrace_store_registers, record_btrace_prepare_to_store):
2566 Forward request when generating a core file.
2567 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2568 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2569 to_done_generating_core.
2570
2571 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2572
2573 * target.h (target_ops) <to_prepare_to_generate_core>
2574 <to_done_generating_core>: New.
2575 (target_prepare_to_generate_core, target_done_generating_core): New.
2576 * target.c (target_prepare_to_generate_core)
2577 (target_done_generating_core): New.
2578 * target-delegates.c: Regenerate.
2579 * gcore.c: (write_gcore_file): Rename to ...
2580 (write_gcore_file_1): ...this.
2581 (write_gcore_file): Call target_prepare_to_generate_core
2582 and target_done_generating_core.
2583
2584 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2585
2586 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2587 * gcore.c (write_gcore_file): Free memory returned from
2588 make_corefile_notes.
2589 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2590 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2591
2592 2014-06-24 Yao Qi <yao@codesourcery.com>
2593
2594 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2595 (arm_linux_init_abi): Set skip_trampoline_code with
2596 gdbarch_skip_trampoline_code instead of
2597 find_solib_trampoline_target.
2598
2599 2014-06-24 Yao Qi <yao@codesourcery.com>
2600
2601 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2602 arm_skip_bx_reg returns non-zero.
2603
2604 2014-06-24 Yao Qi <yao@codesourcery.com>
2605
2606 * arm-tdep.c (arm_skip_bx_reg): New function.
2607 (arm_skip_stub): Call arm_skip_bx_reg.
2608
2609 2014-06-23 Don Breazeal <donb@codesourcery.com>
2610
2611 * MAINTAINERS: Add myself as write-after-approval maintainer.
2612
2613 2014-06-23 Pedro Alves <palves@redhat.com>
2614
2615 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2616 DR_CONTROL before setting DR0..DR3.
2617 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2618 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2619 bits of DR_CONTROL related to the debug register slot being
2620 disabled. If all slots are vacant, clear local slowdown as well,
2621 and assert DR_CONTROL is 0.
2622
2623 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2624
2625 * python/lib/gdb/command/xmethods.py
2626 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2627 current progspace only if the string "progspace" matches LOCUS_RE.
2628
2629 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2630
2631 Fix --with-system-readline with readline-6.3 patch 5.
2632 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2633 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2634 types.
2635
2636 2014-06-20 Tom Tromey <tromey@redhat.com>
2637
2638 * dwarf2read.c (dw2_get_real_path): Use correct type in
2639 OBSTACK_CALLOC.
2640 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2641
2642 2014-06-20 Gary Benson <gbenson@redhat.com>
2643
2644 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2645 * common/glibc_thread_db.h: Likewise.
2646 * common/i386-cpuid.h: Likewise.
2647 * common/i386-gcc-cpuid.h: Likewise.
2648 * common/linux-btrace.h: Likewise.
2649 * common/linux-osdata.h: Likewise.
2650 * common/linux-procfs.h: Likewise.
2651 * common/linux-ptrace.h: Likewise.
2652 * common/mips-linux-watch.h: Likewise.
2653 * common/linux-btrace.c: Moved to nat.
2654 * common/linux-osdata.c: Likewise.
2655 * common/linux-procfs.c: Likewise.
2656 * common/linux-ptrace.c: Likewise.
2657 * common/mips-linux-watch.c: Likewise.
2658 * nat/gdb_thread_db.h: Moved from common.
2659 * nat/glibc_thread_db.h: Likewise.
2660 * nat/i386-cpuid.h: Likewise.
2661 * nat/i386-gcc-cpuid.h: Likewise.
2662 * nat/linux-btrace.c: Likewise.
2663 * nat/linux-btrace.h: Likewise.
2664 * nat/linux-osdata.c: Likewise.
2665 * nat/linux-osdata.h: Likewise.
2666 * nat/linux-procfs.c: Likewise.
2667 * nat/linux-procfs.h: Likewise.
2668 * nat/linux-ptrace.c: Likewise.
2669 * nat/linux-ptrace.h: Likewise.
2670 * nat/mips-linux-watch.c: Likewise.
2671 * nat/mips-linux-watch.h: Likewise.
2672 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2673 (object file files): Reordered.
2674 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2675 of glibc_thread_db.h.
2676
2677 2014-06-20 Gary Benson <gbenson@redhat.com>
2678
2679 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2680 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2681 (i386_dr_low): Likewise.
2682 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2683 (i386_dr_low_set_addr): Likewise.
2684 (i386_dr_low_get_addr): Likewise.
2685 (i386_dr_low_can_set_control): Likewise.
2686 (i386_dr_low_set_control): Likewise.
2687 (i386_dr_low_get_control): Likewise.
2688 (i386_dr_low_get_status): Likewise.
2689 (i386_get_debug_register_length): Likewise.
2690 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2691 (i386_dr_low): Likewise.
2692 * nat/i386-dregs.c (i386-low.h): Remove include.
2693 (i386-nat.h): Likewise.
2694 (nat/i386-dregs.h): New include.
2695 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2696 (i386_dr_low_set_addr): Likewise.
2697 (i386_dr_low_get_addr): Likewise.
2698 (i386_dr_low_can_set_control): Likewise.
2699 (i386_dr_low_set_control): Likewise.
2700 (i386_dr_low_get_control): Likewise.
2701 (i386_dr_low_get_status): Likewise.
2702 (i386_get_debug_register_length): Likewise.
2703 (debug_hw_points): Likewise.
2704
2705 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2706
2707 * Makefile.in (SFILES): Add d-exp.y.
2708 (YYFILES): Add d-exp.c.
2709 (YYOBJ): Add d-exp.o.
2710 (local-maintainer-clean): Delete d-exp.c.
2711 * d-exp.y: New file.
2712 * d-lang.h (d_parse): New declaration.
2713 (d_error): New declaration.
2714 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2715 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2716 PREC_ORDER operators.
2717 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2718
2719 2014-06-19 Yao Qi <yao@codesourcery.com>
2720
2721 * gdbthread.h (any_running): Remove the declaration.
2722 * thread.c (any_running): Remove.
2723
2724 2014-06-19 Yao Qi <yao@codesourcery.com>
2725
2726 * gdbthread.h (struct thread_info) <state>: Change its type to
2727 'enum thread_state'. Update comments.
2728
2729 2014-06-19 Pedro Alves <palves@redhat.com>
2730
2731 * gdbthread.h (ALL_THREADS): Delete.
2732 (ALL_NON_EXITED_THREADS): New macro.
2733 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2734 instead of ALL_THREADS.
2735 * infrun.c (find_thread_needs_step_over)
2736 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2737 instead of ALL_THREADS.
2738 * record-btrace.c (record_btrace_open)
2739 (record_btrace_stop_recording, record_btrace_close)
2740 (record_btrace_is_replaying, record_btrace_resume)
2741 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2742 * remote.c (append_pending_thread_resumptions): Likewise.
2743 * thread.c (thread_apply_all_command): Likewise.
2744
2745 2014-06-19 Gary Benson <gbenson@redhat.com>
2746
2747 * i386-nat.c (i386_stopped_by_watchpoint):
2748 Use i386_dr_stopped_by_watchpoint.
2749 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2750 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2751
2752 2014-06-19 Gary Benson <gbenson@redhat.com>
2753
2754 * nat/i386-dregs.c: New file.
2755 * Makefile.in (i386-dregs.o): New rule.
2756 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2757 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2758 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2759 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2760 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2761 * config/i386/go32.mh (NATDEPFILES): Likewise.
2762 * config/i386/linux.mh (NATDEPFILES): Likewise.
2763 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2764 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2765 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2766 * i386-nat.h (debug_hw_points): New declaration.
2767 * i386-nat.c (breakpoint.h): Remove include.
2768 (command.h): Likewise.
2769 (target.h): Likewise.
2770 (gdb_assert.h): Likewise.
2771 (debug_hw_points): Made nonstatic.
2772 (debug_printf): Now in i386-dregs.c.
2773 (TARGET_HAS_DR_LEN_8): Likewise.
2774 (DR_CONTROL_SHIFT): Likewise.
2775 (DR_CONTROL_SIZE): Likewise.
2776 (DR_RW_EXECUTE): Likewise.
2777 (DR_RW_WRITE): Likewise.
2778 (DR_RW_READ): Likewise.
2779 (DR_RW_IORW): Likewise.
2780 (DR_LEN_1): Likewise.
2781 (DR_LEN_2): Likewise.
2782 (DR_LEN_4): Likewise.
2783 (DR_LEN_8): Likewise.
2784 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2785 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2786 (DR_ENABLE_SIZE): Likewise.
2787 (DR_LOCAL_SLOWDOWN): Likewise.
2788 (DR_GLOBAL_SLOWDOWN): Likewise.
2789 (DR_CONTROL_RESERVED): Likewise.
2790 (I386_DR_CONTROL_MASK): Likewise.
2791 (I386_DR_VACANT): Likewise.
2792 (I386_DR_LOCAL_ENABLE): Likewise.
2793 (I386_DR_GLOBAL_ENABLE): Likewise.
2794 (I386_DR_DISABLE): Likewise.
2795 (I386_DR_SET_RW_LEN): Likewise.
2796 (I386_DR_GET_RW_LEN): Likewise.
2797 (I386_DR_WATCH_HIT): Likewise.
2798 (i386_wp_op_t): Likewise.
2799 (i386_show_dr): Likewise.
2800 (i386_length_and_rw_bits): Likewise.
2801 (i386_insert_aligned_watchpoint): Likewise.
2802 (i386_remove_aligned_watchpoint): Likewise.
2803 (i386_handle_nonaligned_watchpoint): Likewise.
2804 (i386_update_inferior_debug_regs): Likewise.
2805 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2806 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2807 (i386_region_ok_for_watchpoint):
2808 Use i386_dr_region_ok_for_watchpoint.
2809 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2810
2811 2014-06-19 Gary Benson <gbenson@redhat.com>
2812
2813 * i386-nat.c (i386_insert_hw_breakpoint): Use
2814 i386_insert_watchpoint.
2815 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2816
2817 2014-06-19 Gary Benson <gbenson@redhat.com>
2818
2819 * i386-nat.c (i386_dr_show): Renamed to
2820 i386_show_dr and made static. All uses updated.
2821 (i386_dr_length_and_rw_bits): Renamed to
2822 i386_length_and_rw_bits and made static.
2823 All uses updated.
2824 (i386_dr_insert_aligned_watchpoint): Renamed to
2825 i386_insert_aligned_watchpoint and made static.
2826 All uses updated.
2827 (i386_dr_remove_aligned_watchpoint): Renamed to
2828 i386_remove_aligned_watchpoint and made static.
2829 All uses updated.
2830 (i386_dr_update_inferior_debug_regs): Renamed to
2831 i386_update_inferior_debug_regs and made static.
2832 All uses updated.
2833 * nat/i386-dregs.h (i386_dr_show): Removed.
2834 (i386_dr_length_and_rw_bits): Likewise.
2835 (i386_dr_insert_aligned_watchpoint): Likewise.
2836 (i386_dr_remove_aligned_watchpoint): Likewise.
2837 (i386_dr_update_inferior_debug_regs): Likewise.
2838
2839 2014-06-19 Gary Benson <gbenson@redhat.com>
2840
2841 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2842 * configure: Regenerate.
2843 * config.in: Likewise.
2844 * main.c (signal.h): New include.
2845 (setup_alternate_signal_stack): New function.
2846 (captured_main): Call the above.
2847 * cp-support.c (signal.h): New include.
2848 (catch_demangler_crashes): New flag.
2849 (SIGJMP_BUF): New define.
2850 (SIGSETJMP): Likewise.
2851 (SIGLONGJMP): Likewise.
2852 (gdb_demangle_jmp_buf): New static global.
2853 (gdb_demangle_attempt_core_dump): Likewise.
2854 (gdb_demangle_signal_handler): New function.
2855 (gdb_demangle): If catch_demangler_crashes is set, install the
2856 above signal handler before calling bfd_demangle, and restore
2857 the original signal handler afterwards. Display the offending
2858 symbol and call demangler_warning the first time a segmentation
2859 fault is caught.
2860 (_initialize_cp_support): New maint set/show command.
2861
2862 2014-06-19 Gary Benson <gbenson@redhat.com>
2863
2864 * utils.h (resource_limit_kind): New enum.
2865 (can_dump_core): New declaration.
2866 (warn_cant_dump_core): Likewise.
2867 (dump_core): Likewise.
2868 * utils.c (dump_core): Made nonstatic. Added new
2869 parameter "limit_kind".
2870 (can_dump_core): Made nonstatic. Moved printing code to...
2871 (warn_cant_dump_core): New function.
2872 (can_dump_core_warn): Likewise.
2873 (internal_vproblem): Replace calls to can_dump_core with
2874 calls to can_dump_core_warn. Supply new argument to each.
2875
2876 2014-06-19 Gary Benson <gbenson@redhat.com>
2877
2878 * utils.h (demangler_vwarning): New declaration.
2879 (demangler_warning): Likewise.
2880 * utils.c (struct internal_problem)
2881 <user_settable_should_quit>: New field.
2882 <user_settable_should_dump_core>: Likewise
2883 (internal_error_problem): Add values for above new fields.
2884 (internal_warning_problem): Likewise.
2885 (demangler_warning_problem): New static global.
2886 (demangler_vwarning): New function.
2887 (demangler_warning): Likewise.
2888 (add_internal_problem_command): Selectively add commands.
2889 (_initialize_utils): New internal problem command.
2890 * maint.c (maintenance_demangler_warning): New function.
2891 (_initialize_maint_cmds): New command.
2892
2893 2014-06-18 Tom Tromey <tromey@redhat.com>
2894
2895 * f-valprint.c (info_common_command_for_block): Update.
2896 * symtab.h (struct general_symbol_info) <common_block>: Now
2897 const.
2898
2899 2014-06-18 Tom Tromey <tromey@redhat.com>
2900
2901 * symtab.h (struct symtab) <blockvector>: Now const.
2902 * ada-lang.c (ada_add_global_exceptions): Update.
2903 * buildsym.c (augment_type_symtab): Update.
2904 * dwarf2read.c (dw2_lookup_symbol): Update.
2905 * jit.c (finalize_symtab): Update.
2906 * jv-lang.c (add_class_symtab_symbol): Update.
2907 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2908 Update.
2909 * objfiles.c (objfile_relocate1): Update.
2910 * psymtab.c (lookup_symbol_aux_psymtabs)
2911 (maintenance_check_psymtabs): Update.
2912 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2913 Update.
2914 * spu-tdep.c (spu_catch_start): Update.
2915 * symmisc.c (dump_symtab_1): Update.
2916 * symtab.c (lookup_global_symbol_from_objfile)
2917 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2918 (basic_lookup_transparent_type_quick)
2919 (basic_lookup_transparent_type, find_pc_sect_symtab)
2920 (find_pc_sect_line, search_symbols): Update.
2921 * block.c (find_block_in_blockvector): Make "bl" const.
2922 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2923 const.
2924 (blockvector_contains_pc): Make "bv" const.
2925 (block_for_pc_sect): Update.
2926 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2927 (blockvector_contains_pc): Update.
2928 * breakpoint.c (resolve_sal_pc): Update.
2929 * inline-frame.c (block_starting_point_at): Update.
2930
2931 2014-06-18 Tom Tromey <tromey@redhat.com>
2932
2933 * completer.c (complete_line): Make "line_buffer" const.
2934 * completer.h (complete_line): Update.
2935
2936 2014-06-18 Tom Tromey <tromey@redhat.com>
2937
2938 * symtab.c (add_macro_name): Remove unneeded cast.
2939
2940 2014-06-18 Tom Tromey <tromey@redhat.com>
2941
2942 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2943 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2944
2945 2014-06-18 Tom Tromey <tromey@redhat.com>
2946
2947 * probe.c (info_probes_for_ops): Make "arg" const.
2948 * probe.h (info_probes_for_ops): Update.
2949
2950 2014-06-18 Tom Tromey <tromey@redhat.com>
2951
2952 * varobj.c (varobj_create): Update.
2953 * valops.c (value_of_this): Update.
2954 * tracepoint.c (add_local_symbols, scope_info): Update.
2955 * symtab.h (struct general_symbol_info) <block>: Now const.
2956 * symtab.c (skip_prologue_sal)
2957 (default_make_symbol_completion_list_break_on)
2958 (skip_prologue_using_sal): Update.
2959 * stack.h (iterate_over_block_locals)
2960 (iterate_over_block_local_vars): Update.
2961 * stack.c (print_frame_args): Update.
2962 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2963 parameter const.
2964 (get_selected_block): Make return type const.
2965 * python/py-frame.c (frapy_block): Update.
2966 * python/py-block.c (gdbpy_block_for_pc): Update.
2967 * p-exp.y (%union) <bval>: Now const.
2968 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2969 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2970 * m2-exp.y (%union) <bval>: Now const.
2971 * linespec.c (get_current_search_block): Make return type const.
2972 (create_sals_line_offset, find_label_symbols): Update.
2973 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2974 Update.
2975 (block_starting_point_at): Make "block" const.
2976 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2977 (check_exception_resume): Update.
2978 * guile/scm-frame.c (gdbscm_frame_block): Update.
2979 * guile/scm-block.c (gdbscm_lookup_block): Update.
2980 * frame.h (get_frame_block): Update.
2981 (get_selected_block): Make return type const.
2982 * frame.c (frame_id_inner): Update.
2983 * f-valprint.c (info_common_command_for_block)
2984 (info_common_command): Update.
2985 * dwarf2loc.c (dwarf2_find_location_expression)
2986 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2987 (locexpr_describe_location_piece): Update.
2988 * c-exp.y (%union) <bval>: Now const.
2989 * breakpoint.c (resolve_sal_pc): Update.
2990 * blockframe.c (get_frame_block):Make return type const.
2991 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2992 (block_innermost_frame): Update.
2993 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2994 (block_for_pc, block_for_pc_sect): Update.
2995 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2996 'pblock' const.
2997 (block_for_pc_sect, block_for_pc): Make return type const.
2998 * ax-gdb.c (gen_expr): Update.
2999 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3000 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3001 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3002 (ada_read_var_value): Update.
3003 * ada-exp.y (struct name_info) <block>: Now const.
3004 (%union): Likewise.
3005 (block_lookup): Constify.
3006
3007 2014-06-18 Gary Benson <gbenson@redhat.com>
3008
3009 * nat/i386-dregs.h: New file.
3010 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3011 * i386-nat.h (i386-dregs.h): New include.
3012 (DR_FIRSTADDR): Now in i386-dregs.h.
3013 (DR_LASTADDR): Likewise.
3014 (DR_NADDR): Likewise.
3015 (DR_STATUS): Likewise.
3016 (DR_CONTROL): Likewise.
3017 (i386_debug_reg_state): Likewise.
3018 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3019
3020 2014-06-18 Don Breazeal <donb@codesourcery.com>
3021
3022 * breakpoint.c (set_longjmp_breakpoint): Call
3023 momentary_breakpoint_from_master with additional argument.
3024 (set_longjmp_breakpoint_for_call_dummy): Call
3025 momentary_breakpoint_from_master with additional argument.
3026 (set_std_terminate_breakpoint): Call
3027 momentary_breakpoint_from_master with additional argument.
3028 (momentary_breakpoint_from_master): Add argument to function
3029 definition and use it to initialize structure member flag.
3030 (clone_momentary_breakpoint): Call
3031 momentary_breakpoint_from_master with additional argument.
3032 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3033 member flags set in momentary_breakpoint_from_master.
3034
3035 2014-06-18 Gary Benson <gbenson@redhat.com>
3036
3037 * i386-nat.c (i386_show_dr): Renamed to
3038 i386_dr_show and made nonstatic. All uses updated.
3039 (i386_length_and_rw_bits): Renamed to
3040 i386_dr_length_and_rw_bits and made nonstatic.
3041 All uses updated.
3042 (i386_insert_aligned_watchpoint): Renamed to
3043 i386_dr_insert_aligned_watchpoint and made nonstatic.
3044 All uses updated.
3045 (i386_remove_aligned_watchpoint): Renamed to
3046 i386_dr_remove_aligned_watchpoint and made nonstatic.
3047 All uses updated.
3048 (i386_update_inferior_debug_regs): Renamed to
3049 i386_dr_update_inferior_debug_regs and made nonstatic.
3050 All uses updated.
3051
3052 2014-06-18 Gary Benson <gbenson@redhat.com>
3053
3054 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3055 (i386_dr_low_can_set_control): Likewise.
3056 (i386_dr_low_set_addr): Likewise.
3057 (i386_dr_low_set_control): Likewise.
3058 (i386_dr_low_get_addr): Likewise.
3059 (i386_dr_low_get_status): Likewise.
3060 (i386_dr_low_get_control): Likewise.
3061 (i386_insert_aligned_watchpoint): Use new macros.
3062 (i386_update_inferior_debug_regs): Likewise.
3063 (i386_stopped_data_address): Likewise.
3064
3065 2014-06-18 Gary Benson <gbenson@redhat.com>
3066
3067 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3068 New parameter. All uses updated.
3069
3070 2014-06-18 Gary Benson <gbenson@redhat.com>
3071
3072 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3073 All uses updated.
3074
3075 2014-06-18 Gary Benson <gbenson@redhat.com>
3076
3077 * i386-nat.c (debug_printf): New macro.
3078 (i386_get_debug_register_length): Likewise.
3079 (TARGET_HAS_DR_LEN_8): Use above macro.
3080 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3081 and printf_unfiltered. Use phex to format values.
3082
3083 2014-06-18 Gary Benson <gbenson@redhat.com>
3084
3085 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3086 Make const.
3087
3088 2014-06-18 Gary Benson <gbenson@redhat.com>
3089
3090 * i386-nat.c: Comment changes.
3091
3092 2014-06-18 Gary Benson <gbenson@redhat.com>
3093
3094 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3095
3096 2014-06-18 Gary Benson <gbenson@redhat.com>
3097
3098 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3099 (i386_insert_aligned_watchpoint): Likewise.
3100 (i386_remove_aligned_watchpoint): Likewise.
3101 (i386_handle_nonaligned_watchpoint): Likewise.
3102
3103 2014-06-18 Gary Benson <gbenson@redhat.com>
3104
3105 * i386-nat.c: Whitespace changes.
3106
3107 2014-06-17 Samuel Bronson <naesten@gmail.com>
3108
3109 * MAINTAINERS: Update Roland McGrath's email address.
3110 Thanks to Sergio Durigan Junior for pointing out that he left
3111 Red Hat a while ago, and giving me a current address.
3112
3113 2014-06-17 Tom Tromey <tromey@redhat.com>
3114
3115 * utils.h (savestring): Remove declaration.
3116
3117 2014-06-17 Tom Tromey <tromey@redhat.com>
3118
3119 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3120
3121 2014-06-16 Keith Seitz <keiths@redhat.com>
3122
3123 PR mi/15863
3124 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3125 to update the varobj if inferior_ptid is null_ptid.
3126
3127 2014-06-16 Tom Tromey <tromey@redhat.com>
3128
3129 * target.h (struct target_ops) <to_info_proc>: Make parameter
3130 const.
3131 (target_info_proc): Update.
3132 * target.c (target_info_proc): Make "args" const.
3133 * procfs.c (procfs_info_proc): Update.
3134 * linux-tdep.c (linux_info_proc): Update.
3135 (linux_core_info_proc_mappings): Make "args" const.
3136 (linux_core_info_proc): Update.
3137 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3138 * gdbarch.c: Rebuild.
3139 * gdbarch.h: Rebuild.
3140 * corelow.c (core_info_proc): Update.
3141
3142 2014-06-16 Tom Tromey <tromey@redhat.com>
3143
3144 * target.h (struct target_ops) <to_disconnect>: Make parameter
3145 const.
3146 (target_disconnect): Update.
3147 * target.c (target_disconnect): Make "args" const.
3148 * target-delegates.c: Rebuild.
3149 * remote.c (remote_disconnect): Update.
3150 * record.h (record_disconnect): Update.
3151 * record.c (record_disconnect): Update.
3152 * inf-child.c (inf_child_disconnect): Update.
3153
3154 2014-06-16 Tom Tromey <tromey@redhat.com>
3155
3156 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3157 * target.c (debug_to_rcmd, default_rcmd): Update.
3158 * target-delegates.c: Rebuild.
3159 * remote.c (remote_rcmd): Update.
3160 * monitor.c (monitor_rcmd): Update.
3161
3162 2014-06-16 Pedro Alves <palves@redhat.com>
3163
3164 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3165 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3166 have OBJF_SHARED set.
3167 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3168 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3169 instead of OBJF_USERLOADED.
3170 * objfiles.h (OBJF_SHARED): Update comment.
3171 (userloaded_objfile_contains_address_p): Rename to ...
3172 (shared_objfile_contains_address_p): ... this, and update
3173 comments.
3174 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3175 new objfile.
3176 (remove_symbol_file_command): Skip objfiles that don't have
3177 OBJF_SHARED set.
3178
3179 2014-06-16 Tom Tromey <tromey@redhat.com>
3180
3181 * minsyms.h (prim_record_minimal_symbol)
3182 (prim_record_minimal_symbol_and_info): Update comments.
3183
3184 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3185
3186 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3187 or --without-guile, according to how GDB was built.
3188
3189 2014-06-13 Tom Tromey <tromey@redhat.com>
3190
3191 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3192 to help_list.
3193 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3194 to help_list.
3195 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3196 help_list.
3197 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3198 help_list.Pass all_commands, not -1, to help_list.
3199 * cli/cli-dump.c (dump_command, append_command)
3200 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3201 (binary_dump_command, binary_append_command): Pass all_commands,
3202 not -1, to help_list.
3203 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3204 -1, to help_list.
3205 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3206 -1, to help_list.
3207 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3208 help_list.
3209 * top.c (set_history): Pass all_commands, not -1, to help_list.
3210 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3211 all_commands, not -1, to help_list.
3212 * symfile.c (overlay_command): Pass all_commands, not -1, to
3213 help_list.
3214 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3215 help_list.
3216 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3217 help_list.
3218 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3219 -1, to help_list.
3220 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3221 not -1, to help_list.
3222 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3223 not -1, to help_list.
3224 * maint.c (maintenance_command, maintenance_info_command)
3225 (maintenance_print_command, maintenance_set_cmd): Pass
3226 all_commands, not -1, to help_list.
3227 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3228 help_list.
3229 * language.c (set_check): Pass all_commands, not -1, to help_list.
3230 * infcmd.c (unset_command): Pass all_commands, not -1, to
3231 help_list.
3232 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3233 help_list.
3234 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3235 help_list.
3236 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3237 help_list.
3238 * breakpoint.c (save_command): Pass all_commands, not -1, to
3239 help_list.
3240 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3241 all_commands, not -1, to help_list.
3242
3243 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3244
3245 * regcache.c (struct register_to_invalidate): New structure.
3246 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3247 functions.
3248 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3249
3250 2014-06-12 Yao Qi <yao@codesourcery.com>
3251
3252 * varobj.c (varobj_get_num_children): Call
3253 varobj_is_dynamic_p.
3254 (varobj_list_children): Likewise.
3255 (varobj_update): Likewise. Update comments.
3256
3257 2014-06-12 Yao Qi <yao@codesourcery.com>
3258
3259 * varobj.c (varobj_pretty_printed_p): Rename to ...
3260 (varobj_is_dynamic_p): ... this. New function.
3261 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3262 (varobj_is_dynamic_p): Declare.
3263 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3264 (mi_print_value_p, varobj_update_one): Likewise.
3265
3266 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3267 Yao Qi <yao@codesourcery.com>
3268
3269 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3270 (varobj_get_iterator): Wrap up code for pretty-printer by
3271 "#if HAVE_PYTHON" and "#endif".
3272 (update_dynamic_varobj_children): Likewise.
3273
3274 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3275 Yao Qi <yao@codesourcery.com>
3276
3277 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3278 gdb_python_initialized is false. Move some code from varobj.c.
3279 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3280 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3281 (struct varobj_item): Moved to varobj-iter.h".
3282 (varobj_clear_saved_item): New function.
3283 (update_dynamic_varobj_children): Move python-related code to
3284 py-varobj.c.
3285 (free_variable): Call varobj_clear_saved_item and
3286 varobj_iter_delete.
3287
3288 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3289 Yao Qi <yao@codesourcery.com>
3290
3291 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3292 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3293 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3294 (py-varobj.o): New rule.
3295 * python/py-varobj.c: New file.
3296 * python/python-internal.h (py_varobj_get_iterator): Declare.
3297 * varobj-iter.h: New file.
3298 * varobj.c: Include "varobj-iter.h"
3299 (struct varobj) <child_iter>: Change its type from "PyObject *"
3300 to "struct varobj_iter *".
3301 <saved_item>: Likewise.
3302 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3303 [HAVE_PYTHON] (varobj_get_iterator): New function.
3304 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3305 python-specific code to python/py-varobj.c.
3306 (install_visualizer): Call varobj_iter_delete instead of
3307 Py_XDECREF.
3308 * varobj.h (varobj_ensure_python_env): Declare.
3309
3310 2014-06-12 Yao Qi <yao@codesourcery.com>
3311
3312 * varobj.c (struct varobj_item): New structure.
3313 (create_child_with_value): Update declaration.
3314 (varobj_add_child): Replace arguments 'name' and 'value' with
3315 'item'. All callers updated.
3316 (install_dynamic_child): Likewise.
3317 (update_dynamic_varobj_children): Likewise.
3318 (varobj_add_child): Likewise.
3319 (create_child_with_value): Likewise.
3320
3321 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3322
3323 * NEWS: Create a new section for the next release branch.
3324 Rename the section of the current branch, now that it has
3325 been cut.
3326
3327 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3328
3329 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3330 * version.in: Bump version to 7.8.50.DATE-cvs.
3331
3332 2014-06-11 Pedro Alves <palves@redhat.com>
3333
3334 PR remote/17028
3335 * ser-mingw.c (net_windows_socket_check_pending): New function.
3336 (net_windows_select_thread): Ignore spurious wakeups. Use
3337 net_windows_socket_check_pending.
3338 (net_windows_wait_handle): Check for pending events with
3339 ioctlsocket, through net_windows_socket_check_pending, instead of
3340 checking the socket's event.
3341
3342 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3343
3344 * python/python-internal.h (gdb_PyObject_GetAttrString)
3345 (gdb_PyObject_HasAttrString): New inline function definitions.
3346 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3347 char * of the second argument to PyObject_GetAttrString.
3348
3349 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3350
3351 * serial.c (serial_write): Fix index of character to be printed
3352 in call to serial_logchar when serial debug traces are enabled.
3353
3354 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3355
3356 * gdbtypes (resolve_dynamic_range): Add function description.
3357
3358 2014-06-09 Pedro Alves <palves@redhat.com>
3359
3360 * linux-nat.c (linux_child_follow_fork): Initialize status with
3361 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3362 inner block. Only pass the signal to PTRACE_DETACH if in pass
3363 state.
3364
3365 2014-06-09 Gary Benson <gbenson@redhat.com>
3366
3367 * common/signals.c (gdb_signal_from_host): Reorder to separate
3368 the always-available ANSI-standard signals from the signals that
3369 require checking.
3370 (do_gdb_signal_to_host): Likewise.
3371 * proc-events.c (signal_table): Likewise.
3372
3373 2014-06-08 Hui Zhu <hui@codesourcery.com>
3374
3375 * common/linux-ptrace.c (linux_disable_event_reporting): New
3376 function.
3377 * common/linux-ptrace.h (linux_disable_event_reporting): New
3378 declaration.
3379 * linux-nat.c (linux_child_follow_fork): Do a single step before
3380 detach.
3381
3382 2014-06-07 Keith Seitz <keiths@redhat.com>
3383
3384 Revert:
3385 PR c++/16253
3386 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3387 from symbol_matches_domain in symtab.c. All local callers
3388 of symbol_matches_domain updated.
3389 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3390 search STRUCT_DOMAIN.
3391 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3392 independently. standard_lookup will do that automatically.
3393 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3394 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3395 (cp_lookup_symbol_in_namespace): Likewise.
3396 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3397 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3398 may return a STRUCT_DOMAIN match.
3399 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3400 * cp-support.c: Include language.h.
3401 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3402 VAR_DOMAIN.
3403 * psymtab.c (match_partial_symbol): Compare the requested
3404 domain with the symbol's domain directly.
3405 (lookup_partial_symbol): Likewise.
3406 * symtab.c (lookup_symbol_in_language): Explain when/why
3407 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3408 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3409 appropriate languages.
3410 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3411 and moved to ada-lang.c
3412 (lookup_block_symbol): Explain that this function only returns
3413 symbol matching the requested DOMAIN.
3414 Compare the requested domain with the symbol's domain directly.
3415 (iterate_over_symbols): Compare the requested domain with the
3416 symbol's domain directly.
3417 * symtab.h (symbol_matches_domain): Remove.
3418
3419 2014-06-06 Doug Evans <xdje42@gmail.com>
3420
3421 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3422 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3423 (gdbscm_guile_version_is_at_least): Declare.
3424 (gdbscm_scm_string_to_int): Declare.
3425 * guile/guile.c (gdbscm_guile_major_version): New global.
3426 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3427 (guile_datadir): New static global.
3428 (gdbscm_guile_data_directory): New function.
3429 (initialize_scheme_side): Update.
3430 (misc_guile_functions): Add guile-data-directory.
3431 (initialize_gdb_module): Fetch guile version number.
3432 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3433 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3434 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3435 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3436 comments.
3437 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3438 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3439 * guile/scm-value.c (gdbscm_value_to_string): Only call
3440 scm_port_conversion_strategy if Guile version >= 2.0.6.
3441
3442 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3443
3444 * main.c (print_gdb_help): Add -q and --silent.
3445
3446 2014-06-06 Gary Benson <gbenson@redhat.com>
3447
3448 * common/signals.c: Remove preprocessor conditionals for
3449 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3450 SIGSEGV and SIGTERM.
3451 * proc-events.c: Likewise.
3452
3453 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3454
3455 * symfile.c (symfile_free_objfile): Remove restriction to
3456 OBJF_USERLOADED.
3457 * symfile-mem.c (symbol_file_add_from_memory): Call
3458 add_target_sections_of_objfile.
3459
3460 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3461
3462 * guile/scm-value.c (gdbscm_history_append_x): Use
3463 'vlscm_get_value_smob_arg_unsafe' instead of
3464 'vlscm_scm_to_value'.
3465
3466 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3467
3468 PR mi/15806
3469 * utils.c (printchar): Don't escape at all if quoter is NUL.
3470 Update function documentation to clarify effect of parameter
3471 QUOTER.
3472 * remote.c (escape_buffer): Pass '\\' as the quoter to
3473 fputstrn_unfiltered.
3474 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3475 generate the output.
3476 (mi_solib_unloaded): Same.
3477
3478 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3479
3480 * development.sh: Delete.
3481 * Makefile.in (config.status): Adjust dependency on development.sh.
3482 * configure.ac: Adjust development.sh source call.
3483 * configure: Regenerate.
3484
3485 2014-06-04 Doug Evans <xdje42@gmail.com>
3486
3487 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3488 is_scheme_bkpt, spec.
3489 (bpscm_make_breakpoint_smob): Initialize new members.
3490 (gdbscm_create_breakpoint_x): Split into two ...
3491 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3492 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3493 (scheme_function breakpoint_functions): Update.
3494 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3495 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3496 register-breakpoint!.
3497
3498 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3499
3500 PR server/17023
3501 * mem-break.c (z_type_supported): Return zero if
3502 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3503
3504 2014-06-04 Tom Tromey <tromey@redhat.com>
3505
3506 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3507 value_from_contents_and_address_unresolved.
3508 (ada_template_to_fixed_record_type_1): Likewise.
3509 (ada_which_variant_applies): Likewise.
3510 * value.h (value_from_contents_and_address_unresolved): Declare.
3511 * value.c (value_from_contents_and_address_unresolved): New
3512 function.
3513 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3514 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3515 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3516
3517 2014-06-04 Tom Tromey <tromey@redhat.com>
3518
3519 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3520
3521 2014-06-04 Tom Tromey <tromey@redhat.com>
3522
3523 * procfs.c (procfs_attach): Make "args" const.
3524 * windows-nat.c (windows_attach): Make "args" const.
3525 * nto-procfs.c (procfs_attach): Make "args" const.
3526 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3527 * go32-nat.c (go32_attach): Make "args" const.
3528 * gnu-nat.c (gnu_attach): Make "args" const.
3529 * darwin-nat.c (darwin_attach): Make "args" const.
3530 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3531 * linux-nat.c (linux_nat_attach): Make "args" const.
3532 * remote.c (extended_remote_attach_1, extended_remote_attach):
3533 Make "args" const.
3534 * target.h (struct target_ops) <to_attach>: Make "args" const.
3535 (find_default_attach): Likewise.
3536 * utils.c (parse_pid_to_attach): Make "args" const.
3537 * utils.h (parse_pid_to_attach): Update.
3538
3539 2014-06-04 Tom Tromey <tromey@redhat.com>
3540
3541 * target-delegates.c: Rebuild.
3542 * target.c (default_thread_address_space): New function.
3543 (target_thread_address_space): Simplify.
3544 * target.h (struct target_ops) <to_thread_address_space>: Add
3545 TARGET_DEFAULT_FUNC.
3546
3547 2014-06-04 Doug Evans <xdje42@gmail.com>
3548
3549 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3550
3551 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3552
3553 * record-btrace.c: Include event-loop.h and inf-loop.h.
3554 (record_btrace_resume_exec_dir)
3555 (record_btrace_async_inferior_event_handler)
3556 (record_btrace_handle_async_inferior_event): New.
3557 (record_btrace_open): Create async event handler.
3558 (record_btrace_close): Delete async event handler.
3559 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3560 Mark async event handler.
3561 (record_btrace_execution_direction): New.
3562 (init_record_btrace_ops): Initialize to_execution_direction.
3563
3564 2014-06-03 Doug Evans <xdje42@gmail.com>
3565
3566 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3567 (gdbscm_make_parameter): Ditto.
3568
3569 2014-06-03 Doug Evans <dje@google.com>
3570
3571 * exec.c (exec_close_1): Call clear_section_table instead of
3572 resize_section_table.
3573 (clear_section_table): New function.
3574 (resize_section_table): Make static. Rename arg num_added to
3575 adjustment.
3576 * exec.h (clear_section_table): Declare.
3577 (resize_section_table): Delete.
3578 * progspace.c (release_program_space): Call clear_section_table
3579 instead of resize_section_table.
3580
3581 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3582
3583 * NEWS (Python Scripting): Add entry about the new xmethods
3584 feature.
3585
3586 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3587
3588 * python/py-xmethods.c: New file.
3589 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3590 (objfpy_dealloc): XDECREF on the new xmethods field.
3591 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3592 field.
3593 (objfpy_get_xmethods): New function.
3594 (objfile_getset): New entry 'xmethods'.
3595 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3596 (pspy_dealloc): XDECREF on the new xmethods field.
3597 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3598 field.
3599 (pspy_get_xmethods): New function.
3600 (pspace_getset): New entry 'xmethods'.
3601 * python/python-internal.h: Add declarations for new functions.
3602 * python/python.c (_initialize_python): Invoke
3603 gdbpy_initialize_xmethods.
3604 * python/lib/gdb/__init__.py (xmethods): New
3605 attribute.
3606 * python/lib/gdb/xmethod.py: New file.
3607 * python/lib/gdb/command/xmethods.py: New file.
3608
3609 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3610
3611 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3612 best match method returned by find_overload_match is an xmethod.
3613 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3614 the best matching operator returned by find_overload_match is an
3615 xmethod.
3616 * valops.c: #include "extension.h".
3617 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3618 Return void. The list of matching source methods is returned in
3619 "fn_list" and a vector of matching debug method workers is
3620 returned in "xm_worker_vec". Update all callers.
3621 (value_find_oload_method_list): Likewise.
3622 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3623 non-NULL, then the index of the best matching method in this
3624 vector is returned. Update all callers.
3625 (find_overload_match): Include xmethods while performing overload
3626 resolution.
3627
3628 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3629
3630 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3631 * extension-priv.h (struct extension_language_ops): Add the
3632 xmethod interface.
3633 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3634 get_matching_xmethod_workers, get_xmethod_argtypes,
3635 invoke_xmethod, free_xmethod_worker,
3636 free_xmethod_worker_vec): New functions.
3637 * extension.h: #include "common/vec.h".
3638 New function declarations.
3639 (struct xmethod_worker): New struct.
3640 (VEC (xmethod_worker_ptr)): New vector type.
3641 (xmethod_worker_ptr): New typedef.
3642 (xmethod_worker_vec): Likewise.
3643 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3644 builtin_type.
3645 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3646 (struct builtin_type): New field "xmethod".
3647 * valarith.c (value_ptradd): Assert that the value argument is not
3648 lval_xcallable.
3649 * valops.c (value_must_coerce_to_target): Return 0 for
3650 lval_xcallable values.
3651 * value.c (struct value): New field XM_WORKER in the field
3652 LOCATION.
3653 (value_address, value_raw_address): Return 0 for lval_xcallable
3654 values.
3655 (set_value_address): Assert that the value is not an
3656 lval_xcallable.
3657 (value_free): Free the associated xmethod worker when freeing
3658 lval_xcallable values.
3659 (set_value_component_location): Assert that the WHOLE value is not
3660 lval_xcallable.
3661 (value_of_xmethod, call_xmethod): New functions.
3662 * value.h: Declare "struct xmethod_worker".
3663 Declare new functions value_of_xmethod, call_xmethod.
3664
3665 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3666 Pedro Alves <palves@redhat.com>
3667
3668 PR breakpoints/17000
3669 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3670 New function, extracted from software_breakpoint_inserted_here_p.
3671 (software_breakpoint_inserted_here_p): Replace factored out code
3672 by call to find_non_raw_software_breakpoint_inserted_here.
3673 (bp_target_info_copy_insertion_state): New function.
3674 (bkpt_insert_location): Handle the case of a single-step
3675 breakpoint already inserted at the same address.
3676 (bkpt_remove_location): Handle the case of a single-step
3677 breakpoint still inserted at the same address.
3678 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3679 breakpoint already inserted at the same address.
3680 (deprecated_remove_raw_breakpoint): Handle the case of a
3681 non-raw breakpoint still inserted at the same address.
3682 (find_single_step_breakpoint): New function, extracted from
3683 single_step_breakpoint_inserted_here_p.
3684 (find_single_step_breakpoint): New function,
3685 factored out from single_step_breakpoint_inserted_here_p.
3686 (single_step_breakpoint_inserted_here_p): Reimplement.
3687
3688 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3689
3690 Pushed by Joel Brobecker <brobecker@adacore.com>
3691 * source.c (show_substitute_path_command): Fix display of matching
3692 substitution rules.
3693
3694 2014-06-03 Gary Benson <gbenson@redhat.com>
3695
3696 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3697
3698 2014-06-02 Doug Evans <xdje42@gmail.com>
3699
3700 Add parameter support for Guile.
3701 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3702 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3703 (scm-param.o): New rule.
3704 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3705 (gdbscm_misc_error): Declare.
3706 (gdbscm_canonicalize_command_name): Declare.
3707 (gdbscm_scm_to_host_string): Declare.
3708 (gdbscm_scm_from_host_string): Declare.
3709 (gdbscm_initialize_parameters): Declare.
3710 * guile/guile.c (initialize_gdb_module): Call
3711 gdbscm_initialize_parameters.
3712 * guile/lib/gdb.scm: Export parameter symbols.
3713 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3714 cmdscm_canonicalize_name and made public. All callers updated.
3715 * guile/scm-exception.c (gdbscm_misc_error): New function.
3716 * guile/scm-param.c: New file.
3717 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3718 (gdbscm_scm_to_host_string): New function.
3719 (gdbscm_scm_from_host_string): New function.
3720 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3721
3722 2014-06-02 Doug Evans <xdje42@gmail.com>
3723
3724 Add command support for Guile.
3725 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3726 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3727 (scm-cmd.o): New rule.
3728 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3729 (gdbscm_user_error_p): Declare.
3730 (gdbscm_parse_command_name): Declare.
3731 (gdbscm_valid_command_class_p): Declare.
3732 (gdbscm_initialize_commands): Declare.
3733 * guile/guile.c (initialize_gdb_module): Call
3734 gdbscm_initialize_commands.
3735 * guile/lib/gdb.scm: Export command symbols.
3736 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3737 (throw-user-error): New function.
3738 * guile/scm-cmd.c: New file.
3739 * guile/scm-exception.c (user_error_symbol): New static global.
3740 (gdbscm_user_error_p): New function.
3741 (gdbscm_initialize_exceptions): Set user_error_symbol.
3742 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3743
3744 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3745
3746 * top.c (command_loop): Handle comments here...
3747 (command_line_input): ... not here.
3748
3749 2014-06-02 Doug Evans <xdje42@gmail.com>
3750
3751 Add progspace support for Guile.
3752 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3753 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3754 (scm-progspace.o): New rule.
3755 * guile/guile-internal.h (pspace_smob): New typedef.
3756 (psscm_pspace_smob_pretty_printers): Declare.
3757 (psscm_pspace_smob_from_pspace): Declare.
3758 (psscm_scm_from_pspace): Declare.
3759 * guile/guile.c (initialize_gdb_module): Call
3760 gdbscm_initialize_pspaces.
3761 * guile/lib/gdb.scm: Export progspace symbols.
3762 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3763 support.
3764 (append-pretty-printer!): Ditto.
3765 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3766 Implement.
3767 * guile/scm-progspace.c: New file.
3768
3769 2014-06-03 Alan Modra <amodra@gmail.com>
3770
3771 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3772 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3773
3774 2014-06-02 Doug Evans <dje@google.com>
3775
3776 Add support for skeletonless type units.
3777 * dwarf2read.c (struct dwarf2_per_objfile): New member
3778 n_allocated_type_units.
3779 (struct dwarf2_per_objfile) <tu_stats>: New member
3780 nr_all_type_units_reallocs.
3781 (create_signatured_type_table_from_index): Initialize
3782 n_allocated_type_units
3783 (create_all_type_units): Ditto.
3784 (add_type_unit): Move up in file. New arg slot.
3785 All callers updated. Increase space for all_type_units more
3786 efficiently.
3787 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3788 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3789 (lookup_dwp_signatured_type): Ditto.
3790 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3791 All callers updated.
3792 (build_type_psymtabs_1): Leave type_unit_groups as
3793 NULL if no TUs present.
3794 (print_tu_stats): New function.
3795 (process_skeletonless_type_unit): New function.
3796 (process_dwo_file_for_skeletonless_type_units): New
3797 function.
3798 (process_skeletonless_type_units): New function.
3799 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3800 Call print tu_stats if debugging enabled.
3801
3802 2014-06-02 Pedro Alves <palves@redhat.com>
3803
3804 * breakpoint.c (build_target_command_list): Don't build a command
3805 list if we have any duplicate location that isn't a dprintf.
3806
3807 2014-06-02 Pedro Alves <palves@redhat.com>
3808
3809 * breakpoint.c (dprintf_breakpoint_hit): New function.
3810 (initialize_breakpoint_ops): Install it as dprintf's
3811 breakpoint_hit method.
3812
3813 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3814
3815 * source.c (substitute_path_rule_matches): Simplify using
3816 filename_ncmp instead of FILENAME_CMP.
3817
3818 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3819
3820 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3821
3822 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3823
3824 * configure.ac: When Guile is available, check for the
3825 availability of 'scm_new_smob'.
3826 * configure, config.h.in: Regenerate.
3827 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3828 function.
3829
3830 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3831
3832 * frame.c (struct frame_info): Add stop_string field.
3833 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3834 (get_prev_frame_always): Old content moved into
3835 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3836 TRY_CATCH, handle MEMORY_ERROR exceptions.
3837 (frame_stop_reason_string): New function definition.
3838 * frame.h (unwind_stop_reason_to_string): Extend comment to
3839 mention frame_stop_reason_string.
3840 (frame_stop_reason_string): New function declaration.
3841 * stack.c (frame_info): Switch to frame_stop_reason_string.
3842 (backtrace_command_1): Switch to frame_stop_reason_string.
3843 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3844 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3845 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3846
3847 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3848
3849 * frame.c (frame_stop_reason_string): Rename to ...
3850 (unwind_stop_reason_to_string): this.
3851 * frame.h (frame_stop_reason_string): Rename to ...
3852 (unwind_stop_reason_to_string): this.
3853 * stack.c (frame_info): Update call to frame_stop_reason_string.
3854 (backtrace_command_1): Likewise.
3855 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3856 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3857
3858 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3859
3860 * frame.c (remove_prev_frame): New function.
3861 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3862 remove_prev_frame.
3863
3864 2014-05-29 Pedro Alves <palves@redhat.com>
3865
3866 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3867 and make it const. When a single-step decays to a continue,
3868 clear 'step', not 'hw_step'. Pass whether the caller wanted
3869 to step to user_visible_resume_ptid, not what we ask the
3870 target to do.
3871
3872 2014-05-29 Pedro Alves <palves@redhat.com>
3873
3874 * infrun.c (process_event_stop_test, handle_step_into_function)
3875 (handle_step_into_function_backward): Adjust.
3876 Don't set the even thread's stop_step and call stop_waiting before
3877 calling end_stepping_range. Instead do that ...
3878 (end_stepping_range): ... here. Take an ecs pointer parameter.
3879
3880 2014-05-29 Pedro Alves <palves@redhat.com>
3881
3882 * infrun.c (stop_stepping): Rename to ...
3883 (stop_waiting): ... this.
3884 (proceed): Update comment.
3885 (process_event_stop_test, handle_inferior_event)
3886 (handle_signal_stop, handle_step_into_function)
3887 (handle_step_into_function_backward): Update.
3888
3889 2014-05-29 Pedro Alves <palves@redhat.com>
3890
3891 * infcall.c (run_inferior_call): Don't check whether the current
3892 thread is running after the proceed call.
3893
3894 2014-05-29 Pedro Alves <palves@redhat.com>
3895 Tom Tromey <tromey@redhat.com>
3896
3897 * NEWS: Mention "maint set target-async", "set mi-async", and that
3898 background execution commands are now always available.
3899 * target.h (target_async_permitted): Update comment.
3900 * target.c (target_async_permitted, target_async_permitted_1):
3901 Default to 1.
3902 (set_target_async_command): Rename to ...
3903 (maint_set_target_async_command): ... this.
3904 (show_target_async_command): Rename to ...
3905 (maint_show_target_async_command): ... this.
3906 (_initialize_target): Adjust.
3907 * infcmd.c (prepare_execution_command): Make extern.
3908 * inferior.h (prepare_execution_command): Declare.
3909 * infrun.c (set_observer_mode): Leave target async alone.
3910 * mi/mi-interp.c (mi_interpreter_init): Install
3911 mi_on_sync_execution_done as sync_execution_done observer.
3912 (mi_on_sync_execution_done): New function.
3913 (mi_execute_command_input_handler): Don't print the prompt if we
3914 just started a synchronous command with an async target.
3915 (mi_on_resume): Check sync_execution before printing prompt.
3916 * mi/mi-main.h (mi_async_p): Declare.
3917 * mi/mi-main.c: Include gdbcmd.h.
3918 (mi_async_p): New function.
3919 (mi_async, mi_async_1): New globals.
3920 (set_mi_async_command, show_mi_async_command, mi_async): New
3921 functions.
3922 (exec_continue): Call prepare_execution_command.
3923 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3924 (mi_execute_async_cli_command): Use mi_async_p.
3925 (_initialize_mi_main): Install "set mi-async". Make
3926 "target-async" a deprecated alias.
3927
3928 2014-05-29 Pedro Alves <palves@redhat.com>
3929
3930 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3931 (_initialize_cli_interp): Adjust.
3932 * event-loop.c: Include "observer.h".
3933 (start_event_loop): Notify 'command_error' observers instead of
3934 calling display_gdb_prompt. Remove FIXME comment.
3935 * event-top.c (display_gdb_prompt): Remove call into the
3936 interpreters.
3937 * inf-loop.c: Include "observer.h".
3938 (inferior_event_handler): Notify 'command_error' observers instead
3939 of calling display_gdb_prompt.
3940 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3941 observers instead of calling display_gdb_prompt.
3942 * interps.c (interp_set): Don't call display_gdb_prompt.
3943 (current_interp_display_prompt_p): Delete.
3944 * interps.h (interp_prompt_p): Delete declaration.
3945 (interp_prompt_p_ftype): Delete.
3946 (struct interp_procs) <prompt_proc_p>: Delete field.
3947 (current_interp_display_prompt_p): Delete declaration.
3948 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3949 (_initialize_mi_interp): Adjust.
3950 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3951 'command_error' observers.
3952 (tui_on_sync_execution_done, tui_on_command_error): New
3953 functions.
3954 (tui_display_prompt_p): Delete.
3955 (_initialize_tui_interp): Adjust.
3956
3957 2014-05-29 Pedro Alves <palves@redhat.com>
3958
3959 PR gdb/13860
3960 * cli/cli-interp.c: Include infrun.h and observer.h.
3961 (cli_uiout, cli_interp): New globals.
3962 (cli_on_signal_received, cli_on_end_stepping_range)
3963 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3964 functions.
3965 (cli_interpreter_init): Install them as 'end_stepping_range',
3966 'signal_received' 'signal_exited', 'exited' and 'no_history'
3967 observers.
3968 (_initialize_cli_interp): Remove cli_interp local.
3969 * infrun.c (handle_inferior_event): Call the several stop reason
3970 observers instead of printing the stop reason directly.
3971 (end_stepping_range): New function.
3972 (print_end_stepping_range_reason, print_signal_exited_reason)
3973 (print_exited_reason, print_signal_received_reason)
3974 (print_no_history_reason): Make static, and add an uiout
3975 parameter. Print to that instead of to CURRENT_UIOUT.
3976 * infrun.h (print_end_stepping_range_reason)
3977 (print_signal_exited_reason, print_exited_reason)
3978 (print_signal_received_reason print_no_history_reason): New
3979 declarations.
3980 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3981 'mi_uiout'.
3982 <cli_uiout>: New field.
3983 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3984 uiout for CLI output. Install 'signal_received',
3985 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3986 observers.
3987 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3988 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3989 (mi_on_no_history): New functions.
3990 (ui_out_free_cleanup): Delete function.
3991 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3992 instead use the one already stored in the MI interpreter data.
3993 (mi_ui_out): Adjust.
3994 * tui/tui-interp.c: Include infrun.h and observer.h.
3995 (tui_interp): New global.
3996 (tui_on_signal_received, tui_on_end_stepping_range)
3997 (tui_on_signal_exited, tui_on_exited)
3998 (tui_on_no_history): New functions.
3999 (tui_init): Install them as 'end_stepping_range',
4000 'signal_received' 'signal_exited', 'exited' and 'no_history'
4001 observers.
4002 (_initialize_tui_interp): Delete tui_interp local.
4003
4004 2014-05-29 Pedro Alves <palves@redhat.com>
4005
4006 PR gdb/15713
4007 * linux-nat.c (linux_nat_resume_callback): Rename the second
4008 parameter to 'except'. Skip LP if it points to EXCEPT.
4009 (linux_nat_resume): Don't mark the event lwp as not stopped
4010 before resuming sibling lwps. Instead ask
4011 linux_nat_resume_callback to skip the event lwp. Mark it as not
4012 stopped after actually resuming it.
4013 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4014 resuming it.
4015 (wait_lwp): Mark the lwp as stopped here.
4016 (stop_wait_callback): Mark the lwp as not stopped right after
4017 resuming it. Don't mark lwps as stopped here.
4018 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4019 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4020
4021 2014-05-29 Pedro Alves <palves@redhat.com>
4022
4023 PR PR15693
4024 * infrun.c (resume): Determine how much to resume depending on
4025 whether the caller wanted a step, not whether we can hardware step
4026 the target. Mark all threads that we intend to run as running,
4027 unless we're calling an inferior function.
4028 (normal_stop): If the thread is running an infcall, don't finish
4029 thread state.
4030 * target.c (target_resume): Don't mark threads as running here.
4031
4032 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4033
4034 * serial.c (_initialize_serial): Remove support for
4035 the "set remotebaud" and "show remotebaud" commands.
4036 * NEWS: Add entry documenting the removal of that command.
4037
4038 2014-05-28 Yao Qi <yao@codesourcery.com>
4039
4040 * charset.c: Fix typo in comments.
4041
4042 2014-05-27 Gary Benson <gbenson@redhat.com>
4043
4044 * utils.c (internal_vproblem): Prompt for a bug report.
4045
4046 2014-05-26 Andy Wingo <wingo@igalia.com>
4047
4048 * guile/scm-arch.c (arscm_mark_arch_smob):
4049 * guile/scm-block.c (bkscm_mark_block_smob)
4050 (bkscm_mark_block_syms_progress_smob):
4051 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4052 * guile/scm-exception.c (exscm_mark_exception_smob):
4053 * guile/scm-frame.c (frscm_mark_frame_smob):
4054 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4055 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4056 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4057 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4058 (ppscm_mark_pretty_printer_worker_smob):
4059 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4060 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4061 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4062 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4063 mark functions.
4064 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4065 function.
4066
4067 2014-05-26 Andy Wingo <wingo@igalia.com>
4068 Doug Evans <xdje42@gmail.com>
4069
4070 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4071 empty_base_class. All uses updated.
4072 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4073 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4074 Adapt all callers.
4075 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4076 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4077 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4078 (gdbscm_gsmob_has_property_p, add_property_name)
4079 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4080 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4081 (gdb-object-has-property?, gdb-object-properties): Remove.
4082 (gdb-object-kind): Renamed from gsmob-kind.
4083
4084 2014-05-26 Andy Wingo <wingo@igalia.com>
4085
4086 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4087 * configure: Regenerate.
4088
4089 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4090
4091 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4092
4093 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4094
4095 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4096 (replay_memory_access_read_only, replay_memory_access_read_write)
4097 (replay_memory_access_types, replay_memory_access)
4098 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4099 (cmd_set_record_btrace, cmd_show_record_btrace)
4100 (cmd_show_replay_memory_access): New.
4101 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4102 (record_btrace_remove_breakpoint): Replace
4103 record_btrace_allow_memory_access with replay_memory_access.
4104 (_initialize_record_btrace): Add commands.
4105 * NEWS: Announce it.
4106
4107 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4108
4109 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4110
4111 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4112
4113 * MAINTAINERS (Write After Approval): Move self back from
4114 paper trail.
4115
4116 2014-05-22 Pedro Alves <palves@redhat.com>
4117
4118 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4119 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4120 (disable_randomization, enum exec_direction_kind)
4121 (execution_direction, stop_registers, start_remote)
4122 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4123 (wait_for_inferior, normal_stop, get_last_target_status)
4124 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4125 (insert_step_resume_breakpoint_at_sal)
4126 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4127 (set_step_info, print_stop_event, signal_stop_state)
4128 (signal_print_state, signal_pass_state, signal_stop_update)
4129 (signal_print_update, signal_pass_update)
4130 (update_signals_program_target, clear_exit_convenience_vars)
4131 (displaced_step_dump_bytes, update_observer_mode)
4132 (signal_catch_update, gdb_signal_from_command): Move
4133 declarations ...
4134 * infrun.h: ... to this new file.
4135 * amd64-tdep.c: Include infrun.h.
4136 * annotate.c: Include infrun.h.
4137 * arch-utils.c: Include infrun.h.
4138 * arm-linux-tdep.c: Include infrun.h.
4139 * arm-tdep.c: Include infrun.h.
4140 * break-catch-sig.c: Include infrun.h.
4141 * breakpoint.c: Include infrun.h.
4142 * common/agent.c: Include infrun.h instead of inferior.h.
4143 * corelow.c: Include infrun.h.
4144 * event-top.c: Include infrun.h.
4145 * go32-nat.c: Include infrun.h.
4146 * i386-tdep.c: Include infrun.h.
4147 * inf-loop.c: Include infrun.h.
4148 * infcall.c: Include infrun.h.
4149 * infcmd.c: Include infrun.h.
4150 * infrun.c: Include infrun.h.
4151 * linux-fork.c: Include infrun.h.
4152 * linux-nat.c: Include infrun.h.
4153 * linux-thread-db.c: Include infrun.h.
4154 * monitor.c: Include infrun.h.
4155 * nto-tdep.c: Include infrun.h.
4156 * procfs.c: Include infrun.h.
4157 * record-btrace.c: Include infrun.h.
4158 * record-full.c: Include infrun.h.
4159 * remote-m32r-sdi.c: Include infrun.h.
4160 * remote-mips.c: Include infrun.h.
4161 * remote-notif.c: Include infrun.h.
4162 * remote-sim.c: Include infrun.h.
4163 * remote.c: Include infrun.h.
4164 * reverse.c: Include infrun.h.
4165 * rs6000-tdep.c: Include infrun.h.
4166 * s390-linux-tdep.c: Include infrun.h.
4167 * solib-irix.c: Include infrun.h.
4168 * solib-osf.c: Include infrun.h.
4169 * solib-svr4.c: Include infrun.h.
4170 * target.c: Include infrun.h.
4171 * top.c: Include infrun.h.
4172 * windows-nat.c: Include infrun.h.
4173 * mi/mi-interp.c: Include infrun.h.
4174 * mi/mi-main.c: Include infrun.h.
4175 * python/py-threadevent.c: Include infrun.h.
4176
4177 2014-05-22 Pedro Alves <palves@redhat.com>
4178
4179 * infrun.c (handle_inferior_event): Store the exit code for
4180 --return-child-result here, instead of ...
4181 (print_exited_reason): ... here.
4182
4183 2014-05-21 Pedro Alves <palves@redhat.com>
4184
4185 PR gdb/13860
4186 * gdbthread.h (struct thread_control_state): New field
4187 `command_interp'.
4188 * infrun.c (follow_fork): Copy the new thread control field to the
4189 child fork thread.
4190 (clear_proceed_status_thread): Clear the new thread control field.
4191 (proceed): Set the new thread control field.
4192 * interps.h (command_interp): Declare.
4193 * interps.c (command_interpreter): New global.
4194 (command_interp): New function.
4195 (interp_exec): Set `command_interpreter' while here.
4196 * cli-out.c (cli_uiout_dtor): New function.
4197 (cli_ui_out_impl): Install it.
4198 * mi/mi-interp.c: Include cli-out.h.
4199 (mi_cmd_interpreter_exec): Add comment.
4200 (restore_current_uiout_cleanup): New function.
4201 (ui_out_free_cleanup): New function.
4202 (mi_on_normal_stop): If finishing an execution command started by
4203 a CLI command, or any kind of breakpoint-like event triggered,
4204 print the stop event to the output (CLI) stream.
4205 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4206
4207 2014-05-21 Pedro Alves <palves@redhat.com>
4208
4209 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4210 current source line having changed.
4211 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4212 * infrun.c (normal_stop): Adjust call to
4213 set_current_sal_from_frame.
4214 * source.c (clear_lines_listed_range): New function.
4215 (set_current_source_symtab_and_line, identify_source_line): Clear
4216 the lines listed range.
4217 (line_info): Handle the first "info line" after the current source
4218 line having changed.
4219 * stack.c (print_stack_frame): Remove center handling.
4220 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4221 center sal.line.
4222
4223 2014-05-21 Pedro Alves <palves@redhat.com>
4224
4225 * inf-child.c (inf_child_mourn_inferior): New function.
4226 * inf-child.h (inf_child_mourn_inferior): New declaration.
4227 * darwin-nat.c (darwin_mourn_inferior): Use
4228 inf_child_mourn_inferior.
4229 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4230 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4231 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4232 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4233 * windows-nat.c (windows_mourn_inferior): Likewise.
4234
4235 2014-05-21 Doug Evans <xdje42@gmail.com>
4236
4237 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4238
4239 2014-05-21 Doug Evans <xdje42@gmail.com>
4240
4241 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4242 (gdbscm_out_of_range_error): Ditto.
4243 (gdbscm_memory_error): Ditto.
4244 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4245 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4246 (gdbscm_out_of_range_error): Update.
4247 (gdbscm_memory_error): Update.
4248 (gdbscm_scm_to_target_string_unsafe): Delete.
4249
4250 2014-05-21 Pedro Alves <palves@redhat.com>
4251
4252 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4253 globals.
4254 (inf_child_open_target): New function.
4255 (inf_child_open): Use inf_child_open_target to push the target
4256 instead of erroring out.
4257 (inf_child_disconnect, inf_child_close)
4258 (inf_child_maybe_unpush_target): New functions.
4259 (inf_child_target): Install inf_child_disconnect and
4260 inf_child_close. Store a pointer to the returned object.
4261 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4262 declarations.
4263 * target.c (auto_connect_native_target): New global.
4264 (show_default_run_target): New function.
4265 (find_default_run_target): Return NULL if automatically connecting
4266 to the native target is disabled.
4267 (_initialize_target): Install set/show auto-connect-native-target.
4268 * NEWS: Mention "set auto-connect-native-target", and "target
4269 native".
4270 * linux-nat.c (super_close): New global.
4271 (linux_nat_close): Call super_close.
4272 (linux_nat_add_target): Store a pointer to the base class's
4273 to_close method.
4274 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4275 inf_child_maybe_unpush.
4276 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4277 already pushed.
4278 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4279 the inferior. Use inf_child_maybe_unpush_target.
4280 (inf_ttrace_attach): Don't push the target if it is already
4281 pushed.
4282 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4283 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4284 after mourning the inferior. Use inf_child_maybe_unpush_target.
4285 (darwin_attach_pid): Don't push the target if it is already
4286 pushed.
4287 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4288 mourning the inferior. Use inf_child_maybe_unpush_target.
4289 (gnu_detach): Use inf_child_maybe_unpush_target.
4290 * go32-nat.c (go32_create_inferior): Don't push the target if it
4291 is already pushed.
4292 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4293 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4294 (procfs_open): Rename to ...
4295 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4296 comments. Can target_preopen before changing node. Call
4297 inf_child_open_target to push the target explicitly.
4298 (procfs_attach): Don't push the target if it is already pushed.
4299 (procfs_detach): Use inf_child_maybe_unpush_target.
4300 (procfs_create_inferior): Don't push the target if it is already
4301 pushed.
4302 (nto_native_ops): New global.
4303 (procfs_open): Reimplement.
4304 (procfs_native_open): New function.
4305 (init_procfs_targets): Install procfs_native_open as to_open of
4306 "target native". Store a pointer to the "native" target in
4307 nto_native_ops.
4308 * procfs.c (procfs_attach): Don't push the target if it is already
4309 pushed.
4310 (procfs_detach): Use inf_child_maybe_unpush_target.
4311 (procfs_mourn_inferior): Only unpush the target after mourning the
4312 inferior. Use inf_child_maybe_unpush_target.
4313 (procfs_init_inferior): Don't push the target if it is already
4314 pushed.
4315 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4316 if it is already pushed.
4317
4318 2014-05-21 Pedro Alves <palves@redhat.com>
4319
4320 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4321 and "procfs" targets are now called "native" instead.
4322
4323 2014-05-21 Pedro Alves <palves@redhat.com>
4324
4325 * go32-nat.c (go32_open): Delete.
4326 (go32_target): Don't override the to_open method.
4327
4328 2014-05-21 Pedro Alves <palves@redhat.com>
4329
4330 * nto-procfs.c (procfs_can_run): New function.
4331 (nto_procfs_ops): New global.
4332 (init_procfs_targets): New, based on procfs_target. Install
4333 "target native" in addition to "target procfs".
4334 (_initialize_procfs): Call init_procfs_targets instead of adding
4335 the target here.
4336
4337 2014-05-21 Pedro Alves <palves@redhat.com>
4338
4339 * windows-nat.c (windows_target): Don't override to_shortname,
4340 to_longname or to_doc.
4341
4342 2014-05-21 Pedro Alves <palves@redhat.com>
4343
4344 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4345 to_doc.
4346
4347 2014-05-21 Pedro Alves <palves@redhat.com>
4348
4349 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4350 to_shortname, to_longname or to_doc.
4351
4352 2014-05-21 Pedro Alves <palves@redhat.com>
4353
4354 * go32-nat.c (go32_target): Don't override to_shortname,
4355 to_longname or to_doc.
4356
4357 2014-05-21 Pedro Alves <palves@redhat.com>
4358
4359 * inf-child.c (inf_child_open): Remove mention of "child".
4360 (inf_child_target): Rename target to "native" instead of "child".
4361
4362 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4363
4364 * Makefile.in (SFILES): Delete "regset.c".
4365 (COMMON_OBS): Delete "regset.o".
4366 * regset.c: Remove.
4367 * regset.h (regset_alloc): Delete prototype.
4368
4369 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4370
4371 * sparc-linux-tdep.c (sparc32_linux_gregset)
4372 (sparc32_linux_fpregset): New static regset structures.
4373 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4374 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4375 'fpregset' fields.
4376 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4377 (sparc64_linux_fpregset): New static regset structures.
4378 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4379 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4380 New static regset structures.
4381 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4382 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4383 New static regset structures.
4384 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4385 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4386 New static regset structures.
4387 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4388 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4389 New static regset structures.
4390 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4391
4392 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4393
4394 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4395 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4396 register maps ("regmaps") from "*regset" to "*regmap". Do this
4397 for all regmap types and variables.
4398 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4399 (sparc32_linux_supply_core_gregset)
4400 (sparc32_linux_collect_core_gregset)
4401 (sparc32_linux_supply_core_fpregset)
4402 (sparc32_linux_collect_core_fpregset): Likewise.
4403 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4404 (sparc_gregmap, sparc_fpregmap): ... these.
4405 (sparc_supply_gregset, sparc_collect_gregset)
4406 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4407 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4408 (_initialize_sparc_nat): Rename regmaps.
4409 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4410 (sparc_gregmap, sparc_fpregmap): ... these.
4411 (sparc_supply_gregset, sparc_collect_gregset)
4412 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4413 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4414 Rename macros to...
4415 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4416 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4417 Likewise.
4418 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4419 Rename to...
4420 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4421 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4422 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4423 regmaps.
4424 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4425 (sparc32_bsd_fpregset): Rename to...
4426 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4427 (sparc32_bsd_fpregmap): ... these.
4428 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4429 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4430 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4431 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4432 (struct sparc_gregmap, struct sparc_fpregmap)
4433 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4434 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4435 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4436 (sparc32_supply_regset, sparc32_collect_gregset)
4437 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4438 prototypes.
4439 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4440 (sparc64_linux_ptrace_gregmap): ... this.
4441 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4442 (_initialize_sparc64_linux_nat): Rename regmaps.
4443 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4444 (sparc64_linux_core_gregmap): ... this.
4445 (sparc64_linux_supply_core_gregset)
4446 (sparc64_linux_collect_core_gregset)
4447 (sparc64_linux_supply_core_fpregset)
4448 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4449 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4450 (sparc64_sol2_fpregset): Rename to...
4451 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4452 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4453 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4454 regmaps.
4455 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4456 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4457 (sparc64_bsd_fpregset): Rename to...
4458 (struct sparc_gregmap, sparc64_sol2_gregmap)
4459 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4460 (sparc64_bsd_fpregmap): ... these.
4461 (sparc64_supply_gregset, sparc64_collect_gregset)
4462 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4463 prototypes.
4464 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4465 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4466 (sparc64fbsd_gregmap): ... this.
4467 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4468 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4469 Rename regmaps.
4470 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4471 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4472 (sparc64nbsd_collect_fpregset): Likewise.
4473 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4474 (sparc64nbsd_gregmap): ... this.
4475 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4476 regmaps.
4477 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4478 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4479 (sparc64obsd_gregmap): ... this.
4480 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4481 regmaps.
4482 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4483 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4484 (sparc32nbsd_gregmap): ... this.
4485 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4486 regmaps.
4487
4488 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4489
4490 * score-tdep.c (score7_linux_gregset): New static regset
4491 structure.
4492 (score7_linux_regset_from_core_section): Remove dynamic regset
4493 allocation.
4494 (score_gdbarch_init): Drop allocation of tdep structure.
4495 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4496
4497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4498
4499 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4500 regset structures.
4501 (am33_regset_from_core_section): Remove dynamic regset
4502 allocations.
4503
4504 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4505
4506 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4507 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4508 structures.
4509 (mips_linux_regset_from_core_section): Remove dynamic regset
4510 allocations.
4511 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4512 'gregset64', 'fpregset', and 'fpregset64'.
4513 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4514 deleted tdep fields.
4515
4516 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4517
4518 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4519 regset structures.
4520 (amd64_regset_from_core_section): Remove dynamic regset
4521 allocations.
4522 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4523 structure.
4524 (amd64obsd_regset_from_core_section): Remove dynamic regset
4525 allocation.
4526 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4527 Likewise.
4528 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4529 x86-common regset supply function.
4530 * i386-tdep.c (i386_collect_gregset): Make static.
4531 (i386_gregset): New global regset structure.
4532 (i386_fpregset, i386_xstateregset): New static regset structures.
4533 (i386_regset_from_core_section): Remove dynamic regset
4534 allocations.
4535 (i386_gdbarch_init): Remove initialization of tdep fields
4536 'gregset', 'fpregset', and 'xstateregset'.
4537 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4538 'fpregset', and 'xstateregset'.
4539 (i386_collect_gregset): Remove prototype.
4540 (i386_gregset): New declaration.
4541 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4542 structure.
4543 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4544 allocation.
4545
4546 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4547
4548 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4549 (arm_linux_vfpregset): New static regset structures.
4550 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4551 regset structures.
4552 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4553 and 'vfpregset' fields.
4554
4555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4556
4557 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4558 (aarch64_linux_fpregset): New static regset structures.
4559 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4560 of regset structures.
4561 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4562 'fpregset' fields.
4563
4564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4565
4566 * regset.h (struct regset): Remove gdbarch field.
4567 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4568 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4569 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4570 Likewise.
4571 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4572 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4573 (ppc32_linux_vsxregset): Likewise.
4574 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4575 via the regcache instead of the regset.
4576 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4577 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4578 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4579 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4580 Likewise.
4581
4582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4583
4584 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4585 Constify structures.
4586 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4587 (alphanbsd_aout_gregset): Likewise.
4588 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4589 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4590 Likewise.
4591 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4592 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4593 Likewise.
4594 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4595 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4596 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4597 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4598 * m88k-tdep.c (m88k_gregset): Likewise.
4599 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4600 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4601 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4602 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4603 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4604 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4605 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4606 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4607 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4608 Likewise.
4609 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4610 * sh-tdep.h (sh_corefile_gregset): Likewise.
4611 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4612 * vax-tdep.c (vax_gregset): Likewise.
4613
4614 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4615
4616 Fix TLS access for -static -pthread.
4617 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4618 (try_thread_db_load_1): Initialize it.
4619 (thread_db_get_thread_local_address): Call it if LM is zero.
4620 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4621 * target.h (struct target_ops) (to_get_thread_local_address): Add
4622 load_module_addr comment.
4623
4624 2014-05-21 Pedro Alves <palves@redhat.com>
4625
4626 * dcache.c (dcache_read_memory_partial): If reading the cache line
4627 fails, fallback to reading just the memory the caller wanted.
4628
4629 2014-05-20 Doug Evans <dje@google.com>
4630
4631 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4632 instead of get_current_arch.
4633
4634 2014-05-20 Pedro Alves <palves@redhat.com>
4635
4636 * NEWS: Mention that compare-sections now works with all targets.
4637
4638 * remote.c (PACKET_qCRC): New enum value.
4639 (remote_verify_memory): Don't send qCRC if the target has no
4640 execution. Use packet_support/packet_ok. If the target doesn't
4641 support the qCRC packet, fallback to a deep memory copy.
4642 (compare_sections_command): Say "target image" instead of "remote
4643 executable".
4644 (_initialize_remote): Add PACKET_qCRC to the list of config
4645 packets that have no associated command. Extend comment.
4646 * target.c (simple_verify_memory, default_verify_memory): New
4647 function.
4648 * target.h (struct target_ops) <to_verify_memory>: Default to
4649 default_verify_memory.
4650 (simple_verify_memory): New declaration.
4651 * target-delegates.c: Regenerate.
4652
4653 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4654
4655 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4656
4657 2014-05-20 Hui Zhu <hui@codesourcery.com>
4658 Yao Qi <yao@codesourcery.com>
4659
4660 PR backtrace/16558
4661 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4662 and change address of sp and pc.
4663
4664 2014-05-19 Tom Tromey <tromey@redhat.com>
4665
4666 * gdbtypes.c (rank_function): Use XNEWVEC.
4667 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4668
4669 2014-05-19 Doug Evans <dje@google.com>
4670
4671 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4672 build_type_unit_groups and moved closer to only caller. Remove
4673 arguments. All references updated. Remove outdated .gdb_index
4674 comment.
4675 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4676 build_type_psymtabs_1.
4677
4678 2014-05-19 Doug Evans <dje@google.com>
4679
4680 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4681 n_type_unit_groups, all_type_unit_groups. All uses removed.
4682 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4683 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4684 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4685 (add_type_unit_group_to_table): Delete.
4686
4687 2014-05-19 Doug Evans <dje@google.com>
4688
4689 * eval.c (evaluate_subexp_standard): Add some comments.
4690
4691 2014-05-17 Doug Evans <xdje42@gmail.com>
4692
4693 * progspace.c (remove_program_space): Delete, unused.
4694 * progspace.h (remove_program_space): Ditto.
4695
4696 2014-05-17 Doug Evans <xdje42@gmail.com>
4697
4698 * inferior.c (prune_inferiors): Fix comment.
4699 (remove_inferior_command): Call prune_program_spaces.
4700
4701 2014-05-16 Doug Evans <dje@google.com>
4702
4703 New command line option -D.
4704 * NEWS: Mention it.
4705 * main.c (set_gdb_data_directory): New function.
4706 (captured_main): Recognize -D. Flag error for --data-directory "".
4707 Call set_gdb_data_directory.
4708 (print_gdb_help): Print --data-directory, -D.
4709 * main.h (set_gdb_data_directory): Declare.
4710 * top.c (staged_gdb_datadir): New static global.
4711 (set_gdb_datadir): Call set_gdb_data_directory
4712 (show_gdb_datadir): New function.
4713 (init_main): Update init of data-directory parameter.
4714
4715 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4716
4717 Import the "dirfd" gnulib module.
4718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4719 * gnulib/aclocal.m4: Update.
4720 * gnulib/config.in: Update.
4721 * gnulib/configure: Update.
4722 * gnulib/import/Makefile.am: Update.
4723 * gnulib/import/Makefile.in: Update.
4724 * gnulib/import/dirfd.c: New.
4725 * gnulib/import/m4/dirfd.m4: New.
4726 * gnulib/import/m4/gnulib-cache.m4: Update.
4727 * gnulib/import/m4/gnulib-comp.m4: Update.
4728
4729 2014-05-16 Pierre Muller <muller@sourceware.org>
4730 Yao Qi <yao@codesourcery.com>
4731
4732 * valprint.c (print_wchar): Move the code on checking whether
4733 W is a printable wide char to the default branch of switch
4734 statement below. Call wchar_printable instead of gdb_iswprint.
4735
4736 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4737
4738 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4739 ldr.w and ldrd instructions.
4740
4741 2014-05-15 Doug Evans <dje@google.com>
4742
4743 * dwarf2read.c (read_structure_type): Delete outdated comments.
4744
4745 2014-05-14 Tom Tromey <tromey@redhat.com>
4746
4747 * macrocmd.c (print_macro_definition): Reindent.
4748
4749 2014-05-13 Doug Evans <xdje42@gmail.com>
4750
4751 * python/py-cmd.c (cmdpy_completer): Add comment.
4752 (completers): Make const.
4753
4754 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4755
4756 * infrun.c (resume): Remove should_resume (unused). Move up
4757 declaration of resume_ptid.
4758
4759 2014-05-13 Tom Tromey <tromey@redhat.com>
4760
4761 * language.h (unop_type_check): Remove.
4762 (binop_type_check): Don't declare.
4763
4764 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4765
4766 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4767 call to regcache_raw_collect.
4768
4769 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4770
4771 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4772 mi_console->quote as the quoting character.
4773
4774 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4775
4776 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4777
4778 2014-04-29 Tom Tromey <tromey@redhat.com>
4779
4780 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4781 "show debug varobj".
4782
4783 2014-05-07 Kyle McMartin <kyle@redhat.com>
4784
4785 Pushed by Joel Brobecker <brobecker@adacore.com>.
4786 * aarch64-tdep.c (aarch64_software_single_step): New function.
4787 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4788 with aarch64_software_single_step.
4789
4790 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4791
4792 GDB 7.7.1 released.
4793
4794 2014-05-05 Keith Seitz <keiths@redhat.com>
4795
4796 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4797 variable or history value is successfully parsed.
4798
4799 2014-05-05 Yao Qi <yao@codesourcery.com>
4800 Pedro Alves <palves@redhat.com>
4801
4802 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4803 address of blocks that intersects the requested range. Trim
4804 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4805 sections.
4806 * ctf.c (ctf_xfer_partial): Likewise.
4807
4808 2014-05-05 Yao Qi <yao@codesourcery.com>
4809
4810 * printcmd.c (display_command): Remove the check to
4811 target_has_execution.
4812
4813 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4814
4815 * ppcobsd-nat.c: Include "obsd-nat.h".
4816 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4817 add_target.
4818 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4819
4820 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4821
4822 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4823 and 16-bit signed and unsigned arguments. Update comment.
4824 (stap_parse_probe_arguments): Extend code to handle such
4825 arguments. Use warning instead of complaint to notify about
4826 unrecognized bitness.
4827
4828 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4829
4830 PR breakpoints/16889
4831 * stap-probe.c (stap_parse_probe_arguments): Simplify
4832 check for non-prefixed probes (i.e., probes whose
4833 arguments do not start with "N@"). Always set the
4834 argument type to a sane value.
4835
4836 2014-05-01 David Taylor <dtaylor@emc.com>
4837
4838 * remote.c (compare_sections_command): Add -r option to compare
4839 all loadable read-only sections.
4840
4841 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4842
4843 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4844 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4845 Update all callers.
4846 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4847 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4848 Remove unused CORE_ADDR argument. Update all callers.
4849
4850 2014-04-29 Pedro Alves <palves@redhat.com>
4851
4852 * remote.c (struct packet_config) <detect>: Extend comment.
4853 (add_packet_config_cmd): Don't set the config's detect or support
4854 fields here.
4855 (init_all_packet_configs): Also initialize the config's 'detect'
4856 field.
4857 (reset_all_packet_configs_support): New function.
4858 (remote_open_1): Call reset_all_packet_configs_support instead of
4859 init_all_packet_configs.
4860 (_initialize_remote): Initialize all packet configs. Assert that
4861 all packets have an associated command, except a few known
4862 outliers.
4863
4864 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4865
4866 * dwarf2read.c (read_subrange_type): Handle dynamic
4867 DW_AT_lower_bound attributes.
4868
4869 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4870
4871 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4872 dynamic bounds before computing its upper bound.
4873 (ada_discrete_type_low_bound): Same as above with the lower bound.
4874
4875 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4876
4877 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4878 range types. Adjust the array handling implementation to
4879 take advantage of this change.
4880 (resolve_dynamic_range): New function, mostly extracted from
4881 resolve_dynamic_bounds.
4882 (resolve_dynamic_array): New function, mostly extracted from
4883 resolve_dynamic_bounds.
4884 (resolve_dynamic_bounds): Delete.
4885 (resolve_dynamic_type): Reimplement. Add handling of
4886 TYPE_CODE_RANGE types.
4887
4888 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4889
4890 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4891 handling of parallel ___XA types.
4892
4893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4894
4895 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4896 unnecessary second call to static_unwrap_type.
4897
4898 2014-04-27 Hui Zhu <hui@codesourcery.com>
4899
4900 * stack.c (print_frame_info): Call do_gdb_disassembly with
4901 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4902
4903 2014-04-26 Doug Evans <xdje42@gmail.com>
4904
4905 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4906
4907 2014-04-25 Pedro Alves <palves@redhat.com>
4908
4909 PR server/16255
4910 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4911 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4912 and newline from built string.
4913 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4914 (linux_ptrace_attach_fail_reason): ... this.
4915 * linux-nat.c (linux_nat_attach): Adjust to use
4916 linux_ptrace_attach_fail_reason.
4917
4918 2014-04-25 Pedro Alves <palves@redhat.com>
4919
4920 * remote.c (struct remote_state): Remove multi_process_aware,
4921 non_stop_aware, cond_tracepoints, cond_breakpoints,
4922 breakpoint_commands, fast_tracepoints, static_tracepoints,
4923 install_in_trace, disconnected_tracing,
4924 enable_disable_tracepoints, string_tracing, and
4925 augmented_libraries_svr4_read fields.
4926 (remote_multi_process_p): Move further below in the file.
4927 (struct packet_config): Add comments.
4928 (update_packet_config): Delete function.
4929 (show_packet_config_cmd): Use packet_config_support.
4930 (add_packet_config_cmd): Use NULL as set callback.
4931 (packet_ok): "set remote foo-packet"-style commands no longer
4932 change config->supported -- adjust.
4933 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4934 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4935 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4936 (PACKET_QNonStop, PACKET_multiprocess_feature)
4937 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4938 (PACKET_DisconnectedTracing_feature)
4939 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4940 (set_remote_protocol_packet_cmd): Delete function.
4941 (packet_config_support, packet_support): New functions.
4942 (set_remote_protocol_Z_packet_cmd): Don't call
4943 update_packet_config.
4944 (remote_query_attached, remote_pass_signals)
4945 (remote_program_signals, remote_threads_info)
4946 (remote_threads_extra_info, remote_start_remote): Use
4947 packet_support.
4948 (remote_start_remote): Use packet_config_support and
4949 packet_support.
4950 (init_all_packet_configs): Set all packets to unknown support,
4951 instead of calling update_packet_config.
4952 (remote_check_symbols): Use packet_support.
4953 (remote_supported_packet): Unconditionally set the packet config's
4954 support status.
4955 (remote_multi_process_feature, remote_non_stop_feature)
4956 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4957 (remote_breakpoint_commands_feature)
4958 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4959 (remote_install_in_trace_feature)
4960 (remote_disconnected_tracing_feature)
4961 (remote_enable_disable_tracepoint_feature)
4962 (remote_string_tracing_feature)
4963 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4964 (remote_protocol_features): Adjust to use remote_supported_packet
4965 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4966 "ConditionalTracepoints", "ConditionalBreakpoints",
4967 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4968 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4969 "EnableDisableTracepoints", and "tracenz".
4970 (remote_query_supported): Use packet_support.
4971 (remote_open_1): Adjust.
4972 (extended_remote_attach_1): Use packet_support. Switch on the
4973 result of packet_ok instead of checking whether the packet ended
4974 up disabled.
4975 (remote_vcont_resume): Use packet_support.
4976 (remote_resume, remote_stop_ns, fetch_register_using_p)
4977 (remote_prepare_to_store, store_register_using_P)
4978 (check_binary_download, remote_write_bytes): Use packet_support.
4979 (remote_vkill): Use packet_support. Switch on the result of
4980 packet_ok instead of checking whether the packet ended up
4981 disabled.
4982 (extended_remote_supports_disable_randomization): Use
4983 packet_support.
4984 (extended_remote_run): Switch on the result of packet_ok instead
4985 of checking whether the packet ended up disabled.
4986 (remote_insert_breakpoint, remote_remove_breakpoint)
4987 (remote_insert_watchpoint, remote_remove_watchpoint)
4988 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4989 packet_support.
4990 (remote_search_memory): Use packet_config_support.
4991 (remote_get_thread_local_address, remote_get_tib_address)
4992 (remote_hostio_send_command, remote_can_execute_reverse): Use
4993 packet_support.
4994 (remote_supports_cond_tracepoints)
4995 (remote_supports_cond_breakpoints)
4996 (remote_supports_fast_tracepoints)
4997 (remote_supports_static_tracepoints)
4998 (remote_supports_install_in_trace)
4999 (remote_supports_enable_disable_tracepoint)
5000 (remote_supports_string_tracing)
5001 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5002 the packet config says the feature is enabled or disabled.
5003 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5004 (remote_get_trace_status): Use packet_support.
5005 (remote_set_disconnected_tracing): Adjust to check whether the
5006 feature is enabled with packet_support.
5007 (remote_set_trace_buffer_size, remote_use_agent)
5008 (remote_can_use_agent, remote_supports_btrace): Use
5009 packet_support.
5010 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5011 Use packet_config_support.
5012 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5013 the packet config says the feature is enabled or disabled.
5014 (set_range_stepping): Use packet_support.
5015
5016 2014-04-25 Tom Tromey <tromey@redhat.com>
5017
5018 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5019 argument.
5020
5021 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5022
5023 * NEWS: Mention support for C99 variable length arrays.
5024
5025 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5026
5027 * ada-lang.c (standard_exc): Expand introductory comment.
5028
5029 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5030 Walfred Tedeschi <walfred.tedeschi@intel.com>
5031
5032 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5033 AVX512 registers.
5034 (amd64_linux_read_description): Add code to handle AVX512 xstate
5035 mask and return respective tdesc.
5036 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5037 and features/i386/x32-avx512-linux.c.
5038 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5039 (amd64_linux_core_read_description): Add code to handle AVX512
5040 xstate mask and return respective tdesc.
5041 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5042 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5043 calculation.
5044 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5045 (tdesc_amd64_avx512_linux): New prototype.
5046 (tdesc_x32_avx512_linux): Likewise.
5047 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5048 features/i386/x32-avx512.c.
5049 (amd64_ymm_avx512_names): New register names for pseudo
5050 registers YMM16-31.
5051 (amd64_ymmh_avx512_names): New register names for raw registers
5052 YMMH16-31.
5053 (amd64_k_names): New register names for K registers.
5054 (amd64_zmmh_names): New register names for ZMM raw registers.
5055 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5056 (amd64_xmm_avx512_names): New register names for XMM16-31
5057 registers.
5058 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5059 registers.
5060 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5061 if feature is present.
5062 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5063 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5064 (AMD64_NUM_REGS): Adjust to new number of registers.
5065 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5066 registers supplied via XSTATE by AVX512 registers.
5067 (i386_linux_read_description): Add case for AVX512.
5068 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5069 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5070 (i386_linux_core_read_description): Add case for AVX512.
5071 (i386_linux_init_abi): Install supported register note section
5072 for AVX512.
5073 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5074 AVX512.
5075 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5076 registers to be number of zmm7h + 1.
5077 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5078 * i386-tdep.c: Include features/i386/i386-avx512.c.
5079 (i386_zmm_names): Add ZMM pseudo register names array.
5080 (i386_zmmh_names): Add ZMM raw register names array.
5081 (i386_k_names): Add K raw register names array.
5082 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5083 registers. AVX512 has 16 more ZMM registers than there are YMM
5084 registers.
5085 (i386_zmmh_regnum_p): Add function to look up register number of
5086 ZMM raw registers.
5087 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5088 (i386_k_regnum_p): Likewise for K raw registers.
5089 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5090 registers added by AVX512.
5091 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5092 registers added by AVX512.
5093 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5094 added by AVX512.
5095 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5096 (i386_pseudo_register_name): Add ZMM pseudo registers.
5097 (i386_zmm_type): Construct and return vector registers type for ZMM
5098 registers.
5099 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5100 ZMM0-31 pseudo registers and K registers.
5101 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5102 and YMM16-31 registers from register cache.
5103 (i386_pseudo_register_write): Add code to write K, ZMM and
5104 YMM16-31 registers.
5105 (i386_register_reggroup_p): Add code to include/exclude AVX512
5106 registers in/from respective register groups.
5107 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5108 registers if feature is present in xcr0.
5109 (i386_gdbarch_init): Add code to initialize AVX512 feature
5110 variables in tdep structure, wire in pseudo registers and call
5111 initialize_tdesc_i386_avx512.
5112 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5113 variables.
5114 (i386_regnum): Add AVX512 registers.
5115 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5116 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5117 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5118 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5119 512 bits wide.
5120 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5121 (i386_ymm_avx512_regnum_p): Likewise.
5122 (i386_k_regnum_p): Likewise.
5123 (i386_zmm_regnum_p): Likewise.
5124 (i386_zmmh_regnum_p): Likewise.
5125 * i387-tdep.c : Update year in copyright notice.
5126 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5127 XSAVE buffer.
5128 (XSAVE_YMM_AVX512_ADDR): New macro.
5129 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5130 XSAVE buffer.
5131 (XSAVE_XMM_AVX512_ADDR): New macro.
5132 (xsave_avx512_k_offset): New table for K register offsets in
5133 XSAVE buffer.
5134 (XSAVE_AVX512_K_ADDR): New macro.
5135 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5136 in XSAVE buffer.
5137 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5138 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5139 buffer.
5140 (i387_collect_xsave): Add code to collect AVX512 registers from
5141 XSAVE buffer.
5142 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5143 of XMM16-31 registers.
5144 (I387_NUM_K_REGS): New define for number of K registers.
5145 (I387_K0_REGNUM): New define for K0 register number.
5146 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5147 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5148 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5149 registers.
5150 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5151 (I387_XMM16_REGNUM): New define for XMM16 register number.
5152 (I387_YMM0_REGNUM): New define for YMM0 register number.
5153 (I387_KEND_REGNUM): New define for last K register number.
5154 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5155 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5156 number.
5157 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5158 number.
5159 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5160 size.
5161 * features/Makefile: Add AVX512 related files.
5162 * features/i386/32bit-avx512.xml: New file.
5163 * features/i386/64bit-avx512.xml: Likewise.
5164 * features/i386/amd64-avx512-linux.c: Likewise.
5165 * features/i386/amd64-avx512-linux.xml: Likewise.
5166 * features/i386/amd64-avx512.c: Likewise.
5167 * features/i386/amd64-avx512.xml: Likewise.
5168 * features/i386/i386-avx512-linux.c: Likewise.
5169 * features/i386/i386-avx512-linux.xml: Likewise.
5170 * features/i386/i386-avx512.c: Likewise.
5171 * features/i386/i386-avx512.xml: Likewise.
5172 * features/i386/x32-avx512-linux.c: Likewise.
5173 * features/i386/x32-avx512-linux.xml: Likewise.
5174 * features/i386/x32-avx512.c: Likewise.
5175 * features/i386/x32-avx512.xml: Likewise.
5176 * regformats/i386/amd64-avx512-linux.dat: New file.
5177 * regformats/i386/amd64-avx512.dat: Likewise.
5178 * regformats/i386/i386-avx512-linux.dat: Likewise.
5179 * regformats/i386/i386-avx512.dat: Likewise.
5180 * regformats/i386/x32-avx512-linux.dat: Likewise.
5181 * regformats/i386/x32-avx512.dat: Likewise.
5182 * NEWS: Add note about new support for AVX512.
5183
5184
5185 2014-04-23 Pedro Alves <palves@redhat.com>
5186
5187 * breakpoint.c (insert_bp_location): Tolerate errors if the
5188 breakpoint is set in a user-loaded objfile.
5189 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5190 location is marked shlib_disabled. If the breakpoint is set in a
5191 user-loaded objfile is a GDB-side memory breakpoint, validate it
5192 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5193 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5194 flag.
5195 * mem-break.c (memory_validate_breakpoint): New function.
5196 * objfiles.c (userloaded_objfile_contains_address_p): New
5197 function.
5198 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5199 * target.h (memory_validate_breakpoint): New declaration.
5200
5201 2014-04-23 Pedro Alves <palves@redhat.com>
5202
5203 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5204 the breakpoint is set in a shared library, only suppress
5205 errors for software breakpoints, not hardware breakpoints.
5206
5207 2014-04-22 Pedro Alves <palves@redhat.com>
5208
5209 * infrun.c (schedlock_applies): New function, factored out from
5210 find_thread_needs_step_over.
5211 (find_thread_needs_step_over): Use it.
5212 (switch_back_to_stepped_thread): Always clear trap_expected if the
5213 step over is finished. Return early if scheduler locking applies.
5214 Look for the stepping thread and a potential step-over thread with
5215 a single loop.
5216 (currently_stepping_or_nexting_callback): Delete.
5217
5218 2014-04-22 Nick Clifton <nickc@redhat.com>
5219
5220 * NEWS: Mention that ARM sim now supports tracing.
5221
5222 2014-04-22 Yao Qi <yao@codesourcery.com>
5223
5224 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5225 to ...
5226 * tracefile.c (tracefile_fetch_registers): ... it. New
5227 function.
5228 * tracefile.h (tracefile_fetch_registers): Declare.
5229 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5230 tracefile_fetch_registers.
5231
5232 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5233
5234 PR gdb/14018
5235 * windows-nat.c (thread_rec): Don't display a warning when
5236 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5237 fails for any reason, set th->suspended to -1, so that we don't
5238 try to resume such a thread. Also, don't return NULL in these
5239 cases, to avoid completely ruin the session due to "PC register is
5240 not available" error.
5241 (do_windows_fetch_inferior_registers): Check errors in
5242 GetThreadContext call.
5243 (windows_continue): Accept an additional argument KILLED; if not
5244 zero, ignore errors in the SetThreadContext call, since the
5245 inferior was killed and is shutting down.
5246 (windows_resume, get_windows_debug_event)
5247 (windows_create_inferior, windows_mourn_inferior)
5248 (windows_kill_inferior): All callers of windows_continue changed
5249 to adjust to its new calling sequence.
5250
5251 2014-04-19 Yao Qi <yao@codesourcery.com>
5252
5253 * ctf.c (ctf_open): Call post_create_inferior.
5254
5255 2014-04-19 Yao Qi <yao@codesourcery.com>
5256
5257 * ctf.c (handle_id): New static variable.
5258 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5259 value. Get the declaration of event "register" and get length
5260 of field "contents".
5261
5262 2014-04-19 Yao Qi <yao@codesourcery.com>
5263
5264 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5265
5266 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5267
5268 * valops.c (oload_method_static): Remove unnecessary argument
5269 METHOD. Update all callers.
5270
5271 2014-04-18 Pedro alves <palves@redhat.com>
5272 Tom Tromey <tromey@redhat.com>
5273
5274 PR backtrace/15558
5275 * frame.c (get_prev_frame_1): Rename to ...
5276 (get_prev_frame_always): ... this, and make extern. Adjust.
5277 (skip_artificial_frames): Use get_prev_frame_always.
5278 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5279 (get_frame_unwind_stop_reason): Adjust to rename.
5280 * frame.h (get_prev_frame_always): Declare.
5281 * inline-frame.c: Include frame.h.
5282 (inline_frame_this_id): Use get_prev_frame_always.
5283
5284 2014-04-18 Tristan Gingold <gingold@adacore.com>
5285
5286 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5287 code by using bfd_mach_o_get_base_address.
5288
5289 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5290
5291 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5292 (spu_ax_pseudo_register_collect): New function.
5293 (spu_ax_pseudo_register_push_stack): Likewise.
5294 (spu_dwarf_reg_to_regnum): Likewise.
5295 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5296
5297 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5298
5299 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5300 Replace FRAME argument with FRAME_ID.
5301 * gdbarch.c, gdbarch.h: Regenerate.
5302 * findvar.c (default_value_from_register): Add GDBARCH argument;
5303 replace FRAME by FRAME_ID. No longer call get_frame_id.
5304 (value_from_register): Update call to gdbarch_value_from_register.
5305 * value.h (default_value_from_register): Update prototype.
5306 * s390-linux-tdep.c (s390_value_from_register): Update interface
5307 and call to default_value_from_register.
5308 * spu-tdep.c (spu_value_from_register): Likewise.
5309
5310 * findvar.c (address_from_register): Remove TYPE argument.
5311 Do not call value_from_register; use gdbarch_value_from_register
5312 with null_frame_id instead.
5313 * value.h (address_from_register): Update prototype.
5314 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5315 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5316 address_from_register interface change.
5317
5318 2014-04-17 Yao Qi <yao@codesourcery.com>
5319
5320 * gdbtypes.h: Update comments to link to types and macros'
5321 definitions.
5322
5323 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5324
5325 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5326
5327 2014-04-16 Keith Seitz <keiths@redhat.com>
5328
5329 PR gdb/15827
5330 * dwarf2read.c (skip_one_die): Check that all relative-offset
5331 sibling DIEs fall within range of the current reader's buffer.
5332 (read_partial_die): Likewise.
5333
5334 2014-04-16 Keith Seitz <keiths@redhat.com>
5335
5336 PR c++/16597
5337 * cp-namespace.c (lookup_symbol_file): If the type name of
5338 `this' is NULL, return immediately.
5339
5340 2014-04-14 Keith Seitz <keiths@redhat.com>
5341
5342 PR c++/16253
5343 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5344 from symbol_matches_domain in symtab.c. All local callers
5345 of symbol_matches_domain updated.
5346 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5347 search STRUCT_DOMAIN.
5348 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5349 independently. standard_lookup will do that automatically.
5350 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5351 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5352 (cp_lookup_symbol_in_namespace): Likewise.
5353 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5354 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5355 may return a STRUCT_DOMAIN match.
5356 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5357 * cp-support.c: Include language.h.
5358 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5359 VAR_DOMAIN.
5360 * psymtab.c (match_partial_symbol): Compare the requested
5361 domain with the symbol's domain directly.
5362 (lookup_partial_symbol): Likewise.
5363 * symtab.c (lookup_symbol_in_language): Explain when/why
5364 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5365 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5366 appropriate languages.
5367 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5368 and moved to ada-lang.c
5369 (lookup_block_symbol): Explain that this function only returns
5370 symbol matching the requested DOMAIN.
5371 Compare the requested domain with the symbol's domain directly.
5372 (iterate_over_symbols): Compare the requested domain with the
5373 symbol's domain directly.
5374 * symtab.h (symbol_matches_domain): Remove.
5375
5376 2014-04-14 Tom Tromey <tromey@redhat.com>
5377
5378 PR c++/15246:
5379 * c-exp.y (type_aggregate_p): New function.
5380 (qualified_name, classify_inner_name): Use it.
5381 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5382 and TYPE_TARGET_TYPE of an enum type.
5383 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5384 an enum type.
5385 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5386 handle TYPE_DECLARED_CLASS.
5387 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5388 types.
5389 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5390 * valops.c (enum_constant_from_type): New function.
5391 (value_aggregate_elt): Use it.
5392 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5393 TYPE_CODE_ENUM.
5394
5395 2014-04-14 Tom Tromey <tromey@redhat.com>
5396
5397 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5398 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5399 const.
5400 * value.h (value_aggregate_elt): Update.
5401
5402 2014-04-14 Tom Tromey <tromey@redhat.com>
5403
5404 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5405
5406 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5407
5408 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5409 (evaluate_subexp_standard): Pass noside argument.
5410 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5411 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5412 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5413 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5414 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5415
5416 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5417
5418 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5419 points to a constant blob.
5420
5421 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5422
5423 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5424 property and store it as the high bound and flag the range accordingly.
5425 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5426 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5427 * gdbtypes.h (enum range_flags): New enum.
5428 (struct range_bounds): Add flags member.
5429
5430 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5431
5432 * c-typeprint.c (c_type_print_varspec_suffix): Added
5433 check for not yet resolved high bound. If unresolved, print
5434 "variable length" string to the console instead of random
5435 length.
5436
5437 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5438
5439 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5440 value.
5441 (ada_template_to_fixed_record_type_1): Likewise.
5442 (ada_to_fixed_type_1): Likewise.
5443 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5444 (cp_print_value): Likewise.
5445 * d-valprint.c (dynamic_array_type): Likewise.
5446 * findvar.c (address_of_variable): Likewise.
5447 * jv-valprint.c (java_value_print): Likewise.
5448 * valops.c (value_ind): Likewise.
5449 * value.c (coerce_ref): Likewise.
5450
5451 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5452
5453 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5454 value and retrieve the dynamic type size.
5455
5456 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5457
5458 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5459 passed to sizeof is dynamic evaluate the argument to compute the length.
5460
5461 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5462 Joel Brobecker <brobecker@adacore.com>
5463
5464 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5465 (dwarf2_evaluate_property): New function.
5466 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5467 * dwarf2read.c (attr_to_dynamic_prop): New function.
5468 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5469 attribute.
5470 * gdbtypes.c: Include dwarf2loc.h.
5471 (is_dynamic_type): New function.
5472 (resolve_dynamic_type): New function.
5473 (resolve_dynamic_bounds): New function.
5474 (get_type_length): New function.
5475 (check_typedef): Use get_type_length to compute type length.
5476 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5477 (TYPE_LOW_BOUND_KIND): New macro.
5478 (is_dynamic_type): New function prototype.
5479 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5480 to resolve dynamic properties of the type. Update comment.
5481 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5482
5483 2014-04-14 Richard Henderson <rth@redhat.com>
5484
5485 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5486
5487 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5488 Doug Evans <xdje42@gmail.com>
5489
5490 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5491 dereference TYPE_CODE_REF values.
5492
5493 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5494
5495 Revert the following changes due to regressions:
5496
5497 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5498 (dwarf2_evaluate_property): New function.
5499 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5500 * dwarf2read.c (attr_to_dynamic_prop): New function.
5501 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5502 attribute.
5503 * gdbtypes.c: Include dwarf2loc.h.
5504 (is_dynamic_type): New function.
5505 (resolve_dynamic_type): New function.
5506 (resolve_dynamic_bounds): New function.
5507 (get_type_length): New function.
5508 (check_typedef): Use get_type_length to compute type length.
5509 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5510 (TYPE_LOW_BOUND_KIND): New macro.
5511 (is_dynamic_type): New function prototype.
5512 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5513 to resolve dynamic properties of the type. Update comment.
5514 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5515
5516 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5517 passed to sizeof is dynamic evaluate the argument to compute the length.
5518
5519 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5520 value and retrieve the dynamic type size.
5521
5522 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5523 (ada_template_to_fixed_record_type_1): Likewise.
5524 (ada_to_fixed_type_1): Likewise.
5525 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5526 (cp_print_value): Likewise.
5527 * d-valprint.c (dynamic_array_type): Likewise.
5528 * eval.c (evaluate_subexp_with_coercion): Likewise.
5529 * findvar.c (address_of_variable): Likewise.
5530 * jv-valprint.c (java_value_print): Likewise.
5531 * valops.c (value_ind): Likewise.
5532 * value.c (coerce_ref): Likewise.
5533
5534 * c-typeprint.c (c_type_print_varspec_suffix): Added
5535 check for not yet resolved high bound. If unresolved, print
5536 "variable length" string to the console instead of random
5537 length.
5538
5539 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5540 property and store it as the high bound and flag the range accordingly.
5541 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5542 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5543 * gdbtypes.h (enum range_flags): New enum.
5544 (struct range_bounds): Add flags member.
5545
5546 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5547 points to a constant blob.
5548
5549 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5550 (evaluate_subexp_standard): Pass noside argument.
5551 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5552 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5553 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5554 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5555 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5556
5557 2014-04-11 Keith Seitz <keiths@redhat.com>
5558
5559 PR c++/16675
5560 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5561 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5562 reference types.
5563
5564 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5565
5566 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5567 (evaluate_subexp_standard): Pass noside argument.
5568 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5569 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5570 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5571 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5572 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5573
5574 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5575
5576 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5577 points to a constant blob.
5578
5579 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5580
5581 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5582 property and store it as the high bound and flag the range accordingly.
5583 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5584 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5585 * gdbtypes.h (enum range_flags): New enum.
5586 (struct range_bounds): Add flags member.
5587
5588 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5589
5590 * c-typeprint.c (c_type_print_varspec_suffix): Added
5591 check for not yet resolved high bound. If unresolved, print
5592 "variable length" string to the console instead of random
5593 length.
5594
5595 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5596
5597 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5598 (ada_template_to_fixed_record_type_1): Likewise.
5599 (ada_to_fixed_type_1): Likewise.
5600 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5601 (cp_print_value): Likewise.
5602 * d-valprint.c (dynamic_array_type): Likewise.
5603 * eval.c (evaluate_subexp_with_coercion): Likewise.
5604 * findvar.c (address_of_variable): Likewise.
5605 * jv-valprint.c (java_value_print): Likewise.
5606 * valops.c (value_ind): Likewise.
5607 * value.c (coerce_ref): Likewise.
5608
5609 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5610
5611 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5612 value and retrieve the dynamic type size.
5613
5614 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5615
5616 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5617 passed to sizeof is dynamic evaluate the argument to compute the length.
5618
5619 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5620
5621 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5622 (dwarf2_evaluate_property): New function.
5623 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5624 * dwarf2read.c (attr_to_dynamic_prop): New function.
5625 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5626 attribute.
5627 * gdbtypes.c: Include dwarf2loc.h.
5628 (is_dynamic_type): New function.
5629 (resolve_dynamic_type): New function.
5630 (resolve_dynamic_bounds): New function.
5631 (get_type_length): New function.
5632 (check_typedef): Use get_type_length to compute type length.
5633 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5634 (TYPE_LOW_BOUND_KIND): New macro.
5635 (is_dynamic_type): New function prototype.
5636 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5637 to resolve dynamic properties of the type. Update comment.
5638 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5639
5640 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5641
5642 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5643 declaring high/low bounds and change uses accordingly. Call
5644 create_range_type instead of create_static_range_type.
5645 * gdbtypes.c (create_range_type): New function.
5646 (create_range_type): Convert bounds into struct bound_prop and pass
5647 them to create_range_type.
5648 * gdbtypes.h (struct bound_prop): New struct.
5649 (create_range_type): New function prototype.
5650 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5651 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5652 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5653 part of the bound.
5654 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5655
5656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5657
5658 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5659 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5660 * ada-lang.c: All uses of create_range_type updated.
5661 * coffread.c: All uses of create_range_type updated.
5662 * dwarf2read.c: All uses of create_range_type updated.
5663 * f-exp.y: All uses of create_range_type updated.
5664 * m2-valprint.c: All uses of create_range_type updated.
5665 * mdebugread.c: All uses of create_range_type updated.
5666 * stabsread.c: All uses of create_range_type updated.
5667 * valops.c: All uses of create_range_type updated.
5668 * valprint.c: All uses of create_range_type updated.
5669
5670 2014-04-10 Pedro Alves <palves@redhat.com>
5671
5672 * breakpoint.c (single_step_breakpoints)
5673 (single_step_gdbarch): Move up in the file.
5674 (one_breakpoint_xfer_memory): New function, factored out from ...
5675 (breakpoint_xfer_memory): ... here. Also process single-step
5676 breakpoints.
5677
5678 2014-04-09 Tristan Gingold <gingold@adacore.com>
5679
5680 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5681 comments.
5682 (darwin_decode_exception_message): Free port only after use.
5683
5684 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5685
5686 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5687 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5688 when setting the size of call_length.
5689
5690 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5691
5692 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5693 dereference TYPE_CODE_REF values.
5694
5695 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5696
5697 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5698 end of warning message.
5699
5700 2014-04-03 Doug Evans <dje@google.com>
5701
5702 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5703 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5704
5705 2014-04-02 Alan Modra <amodra@gmail.com>
5706
5707 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5708 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5709 (struct symbol_file_add_from_memory_args): Add size field.
5710 (find_vdso_size): New function.
5711 (add_vsyscall_page): Attempt to find vdso size.
5712
5713 2014-04-01 Doug Evans <dje@google.com>
5714
5715 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5716
5717 2014-04-01 Tristan Gingold <gingold@adacore.com>
5718
5719 * darwin-nat.c (darwin_encode_reply): Add prototype.
5720 (darwin_decode_exception_message): Reply to unknown inferiors.
5721 (darwin_decode_message): Handle message by id. Ignore message
5722 to unknown inferior.
5723 (darwin_wait): Discard unknown messages, add debug trace.
5724
5725 2014-03-31 Doug Evans <dje@google.com>
5726
5727 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5728 comp_dir_string.
5729
5730 2014-03-31 Doug Evans <dje@google.com>
5731
5732 New option "set print symbol-loading".
5733 * NEWS: Mention it.
5734 * solib.c (solib_read_symbols): Only print symbol loading messages
5735 if requested.
5736 (solib_add): If symbol loading is in "brief" mode, notify user
5737 symbols are being loaded.
5738 (reload_shared_libraries_1): Ditto.
5739 * symfile.c (print_symbol_loading_off): New static global.
5740 (print_symbol_loading_brief): New static global.
5741 (print_symbol_loading_full): New static global.
5742 (print_symbol_loading_enums): New static global.
5743 (print_symbol_loading): New static global.
5744 (print_symbol_loading_p): New function.
5745 (symbol_file_add_with_addrs): Only print symbol loading messages
5746 if requested.
5747 (_initialize_symfile): Register "print symbol-loading" set/show
5748 command.
5749 * symfile.h (print_symbol_loading_p): Declare.
5750
5751 2014-03-30 Doug Evans <xdje42@gmail.com>
5752
5753 * infrun.c (set_last_target_status): New function.
5754 (handle_inferior_event): Call it.
5755
5756 2014-03-30 Doug Evans <xdje42@gmail.com>
5757
5758 * inferior.h (enum stop_kind): Improve comment.
5759
5760 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5761
5762 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5763 a reference, strip the reference layer before calling
5764 the lang_ops value_has_mutated callback.
5765
5766 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5767
5768 Remove some globals from our parser.
5769 * language.c (unk_lang_parser): Add "struct parser_state"
5770 argument.
5771 * language.h (struct language_defn) <la_parser>: Likewise.
5772 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5773 (initialize_expout): Add "struct parser_state" argument.
5774 Rewrite function to use the parser state.
5775 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5776 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5777 write_exp_elt_longcst, write_exp_elt_dblcst,
5778 write_exp_elt_decfloatcst, write_exp_elt_type,
5779 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5780 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5781 write_dollar_variable): Likewise.
5782 (parse_exp_in_context_1): Use parser state.
5783 (insert_type_address_space): Add "struct parser_state" argument.
5784 Use parser state.
5785 (increase_expout_size): New function.
5786 * parser-defs.h: Forward declare "struct language_defn" and
5787 "struct parser_state".
5788 (expout, expout_size, expout_ptr): Remove extern declarations.
5789 (parse_gdbarch, parse_language): Rewrite macro declarations to
5790 accept the parser state.
5791 (struct parser_state): New struct.
5792 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5793 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5794 write_exp_elt_decfloatcst, write_exp_elt_type,
5795 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5796 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5797 write_exp_msymbol, write_dollar_variable,
5798 mark_struct_expression, insert_type_address_space): Add "struct
5799 parser_state" argument.
5800 (increase_expout_size): New function.
5801 * utils.c (do_clear_parser_state): New function.
5802 (make_cleanup_clear_parser_state): Likewise.
5803 * utils.h (make_cleanup_clear_parser_state): New function
5804 prototype.
5805 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5806 Update calls to write_exp* in order to pass the parser state.
5807 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5808 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5809 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5810 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5811 * stap-probe.c (stap_parse_register_operand): Likewise.
5812 (stap_parse_single_operand): Likewise.
5813 (stap_parse_argument_1): Likewise.
5814 (stap_parse_argument): Use parser state.
5815 * stap-probe.h: Include "parser-defs.h".
5816 (struct stap_parse_info) <pstate>: New field.
5817 * c-exp.y (parse_type): Rewrite to use parser state.
5818 (yyparse): Redefine to c_parse_internal.
5819 (pstate): New global variable.
5820 (parse_number): Add "struct parser_state" argument.
5821 (write_destructor_name): Likewise.
5822 (type_exp): Update calls to write_exp* and similars in order to
5823 use parser state.
5824 (exp1, exp, variable, qualified_name, space_identifier,
5825 typename, typebase): Likewise.
5826 (write_destructor_name, parse_number, lex_one_token,
5827 classify_name, classify_inner_name, c_parse): Add "struct
5828 parser_state" argument. Update function to use parser state.
5829 * c-lang.h: Forward declare "struct parser_state".
5830 (c_parse): Add "struct parser_state" argument.
5831 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5832 (yyparse): Redefine macro to ada_parse_internal.
5833 (pstate): New variable.
5834 (write_int, write_object_renaming, write_var_or_type,
5835 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5836 type_int, type_long, type_long_long, type_float, type_double,
5837 type_long_double, type_char, type_boolean, type_system_address):
5838 Add "struct parser_state" argument.
5839 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5840 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5841 var_or_type, aggregate, aggregate_component_list,
5842 positional_list, others, component_group,
5843 component_associations): Update calls to write_exp* and similar
5844 functions in order to use parser state.
5845 (ada_parse, write_var_from_sym, write_int,
5846 write_exp_op_with_string, write_object_renaming,
5847 find_primitive_type, write_selectors, write_ambiguous_var,
5848 write_var_or_type, write_name_assoc, type_int, type_long,
5849 type_long_long, type_float, type_double, type_long_double,
5850 type_char, type_boolean, type_system_address): Add "struct
5851 parser_state" argument. Adjust function to use parser state.
5852 * ada-lang.c (parse): Likewise.
5853 * ada-lang.h: Forward declare "struct parser_state".
5854 (ada_parse): Add "struct parser_state" argument.
5855 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5856 calls to both functions.
5857 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5858 parser state.
5859 (yyparse): Redefine macro to f_parse_internal.
5860 (pstate): New variable.
5861 (parse_number): Add "struct parser_state" argument.
5862 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5863 and similars in order to use parser state.
5864 (parse_number): Adjust code to use parser state.
5865 (yylex): Likewise.
5866 (f_parse): New function.
5867 * f-lang.h: Forward declare "struct parser_state".
5868 (f_parse): Add "struct parser_state" argument.
5869 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5870 parser state.
5871 (yyparse): Redefine macro for java_parse_internal.
5872 (pstate): New variable.
5873 (push_expression_name, push_expression_name, insert_exp): Add
5874 "struct parser_state" argument.
5875 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5876 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5877 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5878 PostIncrementExpression, PostDecrementExpression,
5879 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5880 UnaryExpressionNotPlusMinus, CastExpression,
5881 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5882 RelationalExpression, EqualityExpression, AndExpression,
5883 ExclusiveOrExpression, InclusiveOrExpression,
5884 ConditionalAndExpression, ConditionalOrExpression,
5885 ConditionalExpression, Assignment, LeftHandSide): Update
5886 calls to write_exp* and similars in order to use parser state.
5887 (parse_number): Ajust code to use parser state.
5888 (yylex): Likewise.
5889 (java_parse): New function.
5890 (push_variable): Add "struct parser_state" argument. Adjust
5891 code to user parser state.
5892 (push_fieldnames, push_qualified_expression_name,
5893 push_expression_name, insert_exp): Likewise.
5894 * jv-lang.h: Forward declare "struct parser_state".
5895 (java_parse): Add "struct parser_state" argument.
5896 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5897 parser state.
5898 (yyparse): Redefine macro to m2_parse_internal.
5899 (pstate): New variable.
5900 (type_exp, exp, fblock, variable, type): Update calls to
5901 write_exp* and similars to use parser state.
5902 (yylex): Likewise.
5903 (m2_parse): New function.
5904 * m2-lang.h: Forward declare "struct parser_state".
5905 (m2_parse): Add "struct parser_state" argument.
5906 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5907 * objc-lang.h: Forward declare "struct parser_state".
5908 (end_msglist): Add "struct parser_state" argument.
5909 * p-exp.y (parse_type): Rewrite macro to use parser state.
5910 (yyparse): Redefine macro to pascal_parse_internal.
5911 (pstate): New variable.
5912 (parse_number): Add "struct parser_state" argument.
5913 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5914 write_exp* and similars in order to use parser state.
5915 (parse_number, yylex): Adjust code to use parser state.
5916 (pascal_parse): New function.
5917 * p-lang.h: Forward declare "struct parser_state".
5918 (pascal_parse): Add "struct parser_state" argument.
5919 * go-exp.y (parse_type): Rewrite macro to use parser state.
5920 (yyparse): Redefine macro to go_parse_internal.
5921 (pstate): New variable.
5922 (parse_number): Add "struct parser_state" argument.
5923 (type_exp, exp1, exp, variable, type): Update calls to
5924 write_exp* and similars in order to use parser state.
5925 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5926 to use parser state.
5927 (go_parse): Likewise.
5928 * go-lang.h: Forward declare "struct parser_state".
5929 (go_parse): Add "struct parser_state" argument.
5930
5931 2014-03-27 Doug Evans <dje@google.com>
5932
5933 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5934
5935 2014-03-27 Doug Evans <dje@google.com>
5936
5937 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5938 Remove argument abbrev_section. All callers updated.
5939
5940 2014-03-27 Doug Evans <dje@google.com>
5941
5942 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5943 addr_base, ranges_base.
5944
5945 2014-03-26 Keith Seitz <keiths@redhat.com>
5946
5947 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5948 types, not VAR_DOMAIN.
5949
5950 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5951
5952 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5953 "ra" registers.
5954 * features/nios2-linux.c: Regenerated.
5955 * features/nios2.c: Regenerated.
5956
5957 2014-03-25 Pedro Alves <palves@redhat.com>
5958
5959 * cli/cli-script.c (script_from_file): Force the interpreter to
5960 sync mode.
5961
5962 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5963
5964 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5965 small stack allocation.
5966
5967 2014-03-24 Tristan Gingold <gingold@adacore.com>
5968
5969 * darwin-nat.c (exc_server): Remove unused prototype.
5970 (darwin_dump_message): Correctly display data on x86_64.
5971 (darwin_encode_reply): Fix style.
5972 Add comments and fix indentation.
5973
5974 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5975
5976 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5977
5978 2014-03-22 Doug Evans <xdje42@gmail.com>
5979
5980 * infcmd.c: Whitespace fixes.
5981 (interrupt_command): Merge two function comments into one.
5982
5983 2014-03-22 Doug Evans <xdje42@gmail.com>
5984
5985 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5986 All uses updated.
5987
5988 2014-03-22 Yao Qi <yao@codesourcery.com>
5989
5990 * remote.c (target_read_live_memory): Remove.
5991 (memory_xfer_live_readonly_partial): Rename it to
5992 remote_xfer_live_readonly_partial. Remove argument 'object'.
5993 All callers updated. Call remote_read_bytes_1
5994 instead of target_read_live_memory.
5995 * tracepoint.c (set_traceframe_number): Remove.
5996 (make_cleanup_restore_traceframe_number): Likewise .
5997 * tracepoint.h (set_traceframe_number): Remove declaration.
5998 (make_cleanup_restore_traceframe_number): Likewise.
5999
6000 2014-03-22 Yao Qi <yao@codesourcery.com>
6001
6002 * remote.c (remote_read_bytes): Move code on reading from the
6003 remote stub to ...
6004 (remote_read_bytes_1): ... here. New function.
6005
6006 2014-03-22 Yao Qi <yao@codesourcery.com>
6007
6008 * ctf.c (ctf_xfer_partial): Check the return value of
6009 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6010 return TARGET_XFER_UNAVAILABLE.
6011 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6012 * target.c (target_read_live_memory): Move it to remote.c.
6013 (memory_xfer_live_readonly_partial): Likewise.
6014 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6015 * remote.c (target_read_live_memory): Moved from target.c.
6016 (memory_xfer_live_readonly_partial): Likewise.
6017 (remote_read_bytes): Factored out from
6018 memory_xfer_partial_1.
6019
6020 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6021
6022 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6023 NULL pointer.
6024
6025 2014-03-21 Pedro Alves <palves@redhat.com>
6026
6027 * infrun.c (normal_stop): Extend comment.
6028
6029 2014-03-21 Hui Zhu <hui@codesourcery.com>
6030 Pedro Alves <palves@redhat.com>
6031
6032 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6033 static buffer.
6034 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6035 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6036 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6037
6038 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6039
6040 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6041 `z' formatted output modifier.
6042
6043 2014-03-20 Tom Tromey <tromey@redhat.com>
6044 Sergio Durigan Junior <sergiodj@redhat.com>
6045
6046 * probe.c (parse_probes): Turn assert into an ordinary error.
6047 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6048 exceptions when parsing probes. Rearrange the code for clarity.
6049
6050 2014-03-20 Tom Tromey <tromey@redhat.com>
6051
6052 PR gdb/14135
6053 * top.c (execute_command): Only dispatch events if the command
6054 started the target.
6055
6056 2014-03-20 Tom Tromey <tromey@redhat.com>
6057
6058 PR cli/15718
6059 * infcall.c: Include event-top.h.
6060 (run_inferior_call): Call async_disable_stdin if needed.
6061
6062 2014-03-20 Pedro Alves <palves@redhat.com>
6063
6064 * infrun.c (prepare_to_proceed): Delete.
6065 (thread_still_needs_step_over): New function.
6066 (find_thread_needs_step_over): New function.
6067 (proceed): If the current thread needs a step-over, set its
6068 steping_over_breakpoint flag. Adjust to use
6069 find_thread_needs_step_over instead of prepare_to_proceed.
6070 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6071 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6072 breakpoint.
6073 (switch_back_to_stepped_thread): Step over breakpoints of all
6074 threads not the stepping thread, before switching back to the
6075 stepping thread.
6076
6077 2014-03-20 Pedro Alves <palves@redhat.com>
6078
6079 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6080 extern.
6081 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6082 * infrun.c (saved_singlestep_ptid)
6083 (stepping_past_singlestep_breakpoint): Delete.
6084 (resume): Remove stepping_past_singlestep_breakpoint handling.
6085 (proceed): Store the prev_pc of the stepping thread too.
6086 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6087 singlestep_pc.
6088 (enum infwait_states): Delete infwait_thread_hop_state.
6089 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6090 field.
6091 (handle_inferior_event): Adjust.
6092 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6093 handling and the thread-hop code. Before removing single-step
6094 breakpoints, check whether the thread hit a single-step breakpoint
6095 of another thread. If it did, the trap is not a random signal.
6096 (switch_back_to_stepped_thread): If the event thread hit a
6097 single-step breakpoint, unblock it before switching to the
6098 stepping thread. Handle the case of the stepped thread having
6099 advanced already.
6100 (keep_going): Handle the case of the current thread moving past a
6101 single-step breakpoint.
6102
6103 2014-03-20 Pedro Alves <palves@redhat.com>
6104
6105 PR breakpoints/7143
6106 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6107 are being stepped over.
6108 (breakpoint_address_match): Make extern.
6109 * breakpoint.h (breakpoint_address_match): New declaration.
6110 * inferior.h (stepping_past_instruction_at): New declaration.
6111 * infrun.c (struct step_over_info): New type.
6112 (step_over_info): New global.
6113 (set_step_over_info, clear_step_over_info)
6114 (stepping_past_instruction_at): New functions.
6115 (handle_inferior_event): Clear the step-over info when
6116 trap_expected is cleared.
6117 (resume): Remove now stale comment.
6118 (clear_proceed_status): Clear step-over info.
6119 (proceed): Adjust step-over handling to set or clear the step-over
6120 info instead of removing all breakpoints.
6121 (handle_signal_stop): When setting up a thread-hop, don't remove
6122 breakpoints here.
6123 (stop_stepping): Clear step-over info.
6124 (keep_going): Adjust step-over handling to set or clear step-over
6125 info and then always inserting breakpoints, instead of removing
6126 all breakpoints when stepping over one.
6127
6128 2014-03-20 Pedro Alves <palves@redhat.com>
6129
6130 * infrun.c (previous_inferior_ptid): Adjust comment.
6131 (deferred_step_ptid): Delete.
6132 (infrun_thread_ptid_changed, prepare_to_proceed)
6133 (init_wait_for_inferior): Adjust.
6134 (handle_signal_stop): Delete deferred_step_ptid handling.
6135
6136 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6137
6138 PR gdb/15358
6139 * defs.h (sync_quit_force_run): New declaration.
6140 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6141 * event-top.c (async_sigterm_handler): New declaration.
6142 (async_sigterm_token): New variable.
6143 (async_init_signals): Create also async_sigterm_token.
6144 (async_sigterm_handler): New function.
6145 (sync_quit_force_run): New variable.
6146 (handle_sigterm): Replace quit_force call by other calls.
6147 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6148
6149 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6150
6151 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6152 offset into SPE pseudo registers.
6153
6154 2014-03-18 Pedro Alves <palves@redhat.com>
6155
6156 PR gdb/13860
6157 * inferior.h (print_stop_event): Declare.
6158 * infrun.c (print_stop_event): New, factored out from ...
6159 (normal_stop): ... this.
6160 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6161 of bpstat_print/print_stack_frame.
6162
6163 2014-03-17 Tom Tromey <tromey@redhat.com>
6164
6165 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6166
6167 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6168
6169 * ada-lang.c (decode_constrained_packed_array): Perform a
6170 minimal coercion for reference with coerce_ref instead of
6171 ada_coerce_ref.
6172
6173 2014-03-17 Tristan Gingold <gingold@adacore.com>
6174
6175 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6176 (darwin_solib_create_inferior_hook): Emit a warning if version
6177 is unhandled.
6178
6179 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6180
6181 * python/py-value.c (get_field_flag): Cast flag_name argument to
6182 PyObject_GetAttrString to support Python 2.4.
6183
6184 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6185
6186 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6187 (Global Maintainers): Remove Jan Kratochvil.
6188
6189 2014-03-14 Pedro Alves <palves@redhat.com>
6190
6191 * inferior.h (terminal_ours_for_output): Rename to ...
6192 (child_terminal_ours_for_output): ... this.
6193 (terminal_save_ours): Rename to ...
6194 (child_terminal_save_ours): ... this.
6195 (terminal_ours): Rename to ...
6196 (child_terminal_ours): ... this.
6197 (terminal_inferior): Rename to ...
6198 (child_terminal_inferior): ... this.
6199 (terminal_init_inferior): Rename to ...
6200 (child_terminal_init_inferior): ... this.
6201 (terminal_init_inferior_with_pgrp): Rename to ...
6202 (child_terminal_init_inferior_with_pgrp): ... this.
6203 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6204 (child_terminal_init_with_pgrp): ... this.
6205 (terminal_save_ours): Rename to ...
6206 (child_terminal_save_ours): ... this.
6207 (terminal_init_inferior): Rename to ...
6208 (child_terminal_init): ... this. Adjust.
6209 (terminal_inferior): Rename to ...
6210 (child_terminal_inferior): ... this.
6211 (terminal_ours_for_output): Rename to ...
6212 (child_terminal_ours_for_output): ... this. Adjust.
6213 (terminal_ours): Rename to ...
6214 (child_terminal_ours): ... this.
6215 (terminal_ours_1): Rename to ...
6216 (child_terminal_ours_1): ... this. Adjust.
6217 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6218 * windows-nat.c (do_initial_windows_stuff): Adjust.
6219 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6220 (gnu_terminal_init): ... this. Adjust.
6221 (gnu_target): Adjust.
6222 * inf-child.c (inf_child_target): Adjust.
6223
6224 2014-03-13 Doug Evans <xdje42@gmail.com>
6225
6226 PR guile/16612
6227 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6228 new eq?-hashtab.
6229
6230 2014-03-13 Doug Evans <xdje42@gmail.com>
6231
6232 * value.c (record_latest_value): Call release_value_or_incref
6233 instead of release_value.
6234
6235 2014-03-13 Pedro Alves <palves@redhat.com>
6236
6237 * procfs.c (procfs_target): Don't override to_shortname,
6238 to_longname or to_doc.
6239
6240 2014-03-13 Pedro Alves <palves@redhat.com>
6241
6242 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6243 Unix in user visible strings.
6244
6245 2014-03-12 Stan Shebs <stan@codesourcery.com>
6246
6247 * gdbtypes.h: Annotate comments for Doxygen, add a page
6248 block comment with some general info.
6249
6250 2014-03-12 Pedro Alves <palves@redhat.com>
6251
6252 * infcmd.c (prepare_execution_command): New function, factored out
6253 from several execution commands.
6254 (run_command_1, continue_command, step_1, jump_command)
6255 (signal_command, until_command, advance_command, finish_command)
6256 (attach_command): Use prepare_execution_command.
6257
6258 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6259
6260 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6261 (MAX_BPTS): Define.
6262 (MAX_WPTS): Define.
6263 (struct arm_linux_thread_points): Removed.
6264 (struct arm_linux_process_info): New.
6265 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6266 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6267 (arm_linux_find_breakpoints_by_tid): Removed.
6268 (struct arch_lwp_info): New.
6269 (arm_linux_find_process_pid): New functions.
6270 (arm_linux_add_process): New functions.
6271 (arm_linux_process_info_get): New functions.
6272 (arm_linux_forget_process): New function.
6273 (arm_linux_get_debug_reg_state): New function.
6274 (struct update_registers_data): New.
6275 (update_registers_callback): New function.
6276 (arm_linux_insert_hw_breakpoint1): Updated.
6277 (arm_linux_remove_hw_breakpoint1): Updated.
6278 (arm_linux_insert_hw_breakpoint): Updated.
6279 (arm_linux_remove_hw_breakpoint): Updated.
6280 (arm_linux_insert_watchpoint): Updated.
6281 (arm_linux_remove_watchpoint): Updated.
6282 (arm_linux_new_thread): Updated.
6283 (arm_linux_prepare_to_resume): New function.
6284 (arm_linux_new_fork): New function.
6285 (_initialize_arm_linux_nat): Updated.
6286
6287 2014-03-12 Pedro Alves <palves@redhat.com>
6288
6289 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6290
6291 2014-03-12 Tom Tromey <tromey@redhat.com>
6292
6293 * inf-child.c (return_zero): New function.
6294 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6295 * aix-thread.c (aix_thread_inferior_created): New function.
6296 (aix_thread_attach): Remove.
6297 (init_aix_thread_ops): Don't set to_attach.
6298 (_initialize_aix_thread): Register inferior_created observer.
6299 * corelow.c (init_core_ops): Don't set to_attach or
6300 to_create_inferior.
6301 * exec.c (init_exec_ops): Don't set to_attach or
6302 to_create_inferior.
6303 * infcmd.c (run_command_1): Use find_run_target. Make direct
6304 target calls.
6305 (attach_command): Use find_attach_target. Make direct target
6306 calls.
6307 * record-btrace.c (init_record_btrace_ops): Don't set
6308 to_create_inferior.
6309 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6310 Remove.
6311 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6312 set to_create_inferior.
6313 * target.c (complete_target_initialization): Add assertion.
6314 (target_create_inferior): Remove.
6315 (find_default_attach, find_default_create_inferior): Remove.
6316 (find_attach_target, find_run_target): New functions.
6317 (find_default_is_async_p, find_default_can_async_p)
6318 (target_supports_non_stop, target_attach): Remove.
6319 (init_dummy_target): Don't set to_create_inferior or
6320 to_supports_non_stop.
6321 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6322 TARGET_DEFAULT_FUNC.
6323 <to_create_inferior>: Add comment.
6324 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6325 TARGET_DEFAULT_RETURN.
6326 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6327 (find_attach_target, find_run_target): Declare.
6328 (target_create_inferior): Remove.
6329 (target_has_execution_1): Update comment.
6330 (target_supports_non_stop): Remove.
6331 * target-delegates.c: Rebuild.
6332
6333 2014-03-12 Pedro Alves <palves@redhat.com>
6334
6335 * inf-child.h: Update comment to not mention Unix.
6336
6337 2014-03-12 Pedro Alves <palves@redhat.com>
6338
6339 * inf-child.c: Update top comment to not mention Unix. Add
6340 generic comment describing how this target is meant to be used.
6341 (inf_child_post_attach, inf_child_post_startup_inferior)
6342 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6343 Unix in comment.
6344
6345 2014-03-12 Pedro Alves <palves@redhat.com>
6346
6347 * nto-procfs.c: Include inf-child.h.
6348 (procfs_ops): Delete global.
6349 (procfs_can_run): Delete method.
6350 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6351 target pointer instead of referencing procfs_ops.
6352 (procfs_prepare_to_store): Delete.
6353 (init_procfs_ops): Delete function.
6354 (procfs_target): New function, based on init_procfs_ops, but
6355 inherit inf_child_target.
6356 (_initialize_procfs): Use procfs_target.
6357
6358 2014-03-12 Pedro Alves <palves@redhat.com>
6359
6360 * windows-nat.c: Include inf-child.h.
6361 (windows_ops): Delete global.
6362 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6363 methods.
6364 (init_windows_ops): Delete function.
6365 (windows_target): New function, based on init_windows_ops, but
6366 inherit inf_child_target.
6367 (_initialize_windows_nat): Use windows_target. Install x86
6368 specific target methods here.
6369
6370 2014-03-10 Doug Evans <xdje42@gmail.com>
6371
6372 * guile/guile.c (call_initialize_gdb_module): New function.
6373 (initialize_guile): Replace call to scm_init_guile with call to
6374 scm_with_guile.
6375
6376 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6377
6378 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6379 in call to TYPE_CODE macro.
6380
6381 2014-03-10 Jerome Guitton <guitton@adacore.com>
6382
6383 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6384 Resolve tagged types to full view.
6385
6386 2014-03-10 Hui Zhu <hui@codesourcery.com>
6387
6388 * target.h (target_insert_breakpoint): Remove "hardware" from its
6389 comments.
6390
6391 2014-03-07 Doug Evans <dje@google.com>
6392
6393 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6394
6395 2014-03-07 Doug Evans <dje@google.com>
6396
6397 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6398 Remove unused local comp_dir_attr. Assert exactly one of
6399 stub_comp_unit_die, stub_comp_dir is non-NULL.
6400
6401 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6402
6403 * target.h (complete_target_initialization, add_target):
6404 Add comment.
6405
6406 2014-03-07 Pedro Alves <palves@redhat.com>
6407
6408 * go32-nat.c: Include inf-child.h.
6409 (go32_ops): Delete global.
6410 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6411 Delete methods.
6412 (go32_create_inferior): Push the passed in target pointer instead
6413 of referencing go32_ops.
6414 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6415 (go32_target): New function, based on init_go32_ops, but inherit
6416 inf_child_target.
6417 (_initialize_go32_nat): Use go32_target. Move parts of
6418 init_go32_ops here.
6419
6420 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6421
6422 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6423 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6424 SYMBOL_VALUE_ADDRESS.
6425 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6426
6427 2014-03-06 Yao Qi <yao@codesourcery.com>
6428
6429 * breakpoint.c (get_tracepoint_by_number): Remove argument
6430 optional_p. All callers updated. Adjust comments. Update
6431 output message.
6432 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6433
6434 2014-03-06 Yao Qi <yao@codesourcery.com>
6435
6436 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6437 early if get_number returns zero. Use 'p' instead of 'args'.
6438
6439 2014-03-06 Yao Qi <yao@codesourcery.com>
6440
6441 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6442 message.
6443
6444 2014-03-06 Yao Qi <yao@codesourcery.com>
6445
6446 PR breakpoints/16508
6447 * tracepoint.c (check_trace_running): New function.
6448 (trace_find_command): Move code to check_trace_running and
6449 call check_trace_running.
6450 (trace_find_pc_command): Likewise.
6451 (trace_find_tracepoint_command): Likewise.
6452 (trace_find_line_command): Likewise.
6453 (trace_find_range_command): Likewise.
6454 * tracepoint.h (check_trace_running): Likewise.
6455 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6456
6457 2014-03-06 Yao Qi <yao@codesourcery.com>
6458
6459 * target.h (struct target_ops) <to_traceframe_info>: Use
6460 TARGET_DEFAULT_NORETURN (tcomplain ()).
6461 * target-delegates.c: Regenerated.
6462
6463 2014-03-05 Pedro Alves <palves@redhat.com>
6464
6465 PR gdb/16575
6466 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6467 void. Update comment.
6468 (dcache_xfer_memory): Delete.
6469 (dcache_read_memory_partial): New, based on the read bits of
6470 dcache_xfer_memory.
6471 (dcache_update): Add status parameter. Use ULONGEST for len, and
6472 adjust. Discard cache lines if the reason for the update was
6473 error.
6474 * dcache.h (dcache_xfer_memory): Delete declaration.
6475 (dcache_read_memory_partial): New declaration.
6476 (dcache_update): Update prototype.
6477 * target.c (raw_memory_xfer_partial): Update the dcache here.
6478 (memory_xfer_partial_1): Don't handle dcache writes here.
6479
6480 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6481
6482 * remote-sim.c (gdbsim_load): Add const to prog.
6483
6484 2014-03-03 Tom Tromey <tromey@redhat.com>
6485
6486 * elfread.c (probe_key): Change to bfd_data.
6487 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6488 now per-BFD, not per-objfile.
6489 * stap-probe.c (stap_probe_destroy): Update comment.
6490 (handle_stap_probe): Allocate on the per-BFD obstack.
6491
6492 2014-03-03 Tom Tromey <tromey@redhat.com>
6493
6494 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6495 * breakpoint.c (create_longjmp_master_breakpoint): Use
6496 get_probe_address.
6497 (add_location_to_breakpoint, bkpt_probe_insert_location)
6498 (bkpt_probe_remove_location): Update.
6499 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6500 * elfread.c (elf_symfile_relocate_probe): Remove.
6501 (elf_probe_fns): Update.
6502 (insert_exception_resume_breakpoint): Change type of "probe"
6503 parameter to bound_probe.
6504 (check_exception_resume): Update.
6505 * objfiles.c (objfile_relocate1): Don't relocate probes.
6506 * probe.c (bound_probe_s): New typedef.
6507 (parse_probes): Use get_probe_address. Set sal's objfile.
6508 (find_probe_by_pc): Return a bound_probe.
6509 (collect_probes): Return a VEC(bound_probe_s).
6510 (compare_probes): Update.
6511 (gen_ui_out_table_header_info): Change type of "probes"
6512 parameter. Update.
6513 (info_probes_for_ops): Update.
6514 (get_probe_address): New function.
6515 (probe_safe_evaluate_at_pc): Update.
6516 * probe.h (struct probe_ops) <get_probe_address>: New field.
6517 <set_semaphore, clear_semaphore>: Add objfile parameter.
6518 (struct probe) <objfile>: Remove field.
6519 <arch>: New field.
6520 <address>: Update comment.
6521 (struct bound_probe): New.
6522 (find_probe_by_pc): Return a bound_probe.
6523 (get_probe_address): Declare.
6524 * solib-svr4.c (struct probe_and_action) <address>: New field.
6525 (hash_probe_and_action, equal_probe_and_action): Update.
6526 (register_solib_event_probe): Add address parameter.
6527 (solib_event_probe_at): Update.
6528 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6529 get_probe_address.
6530 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6531 (stap_get_probe_address): New function.
6532 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6533 (compile_probe_arg): Update.
6534 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6535 address.
6536 (handle_stap_probe): Don't relocate the probe.
6537 (stap_relocate): Remove.
6538 (stap_gen_info_probes_table_values): Update.
6539 (stap_probe_ops): Remove stap_relocate.
6540 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6541 (debug_sym_probe_fns): Update.
6542 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6543 * symtab.c (init_sal): Use memset.
6544 * symtab.h (struct symtab_and_line) <objfile>: New field.
6545 * tracepoint.c (start_tracing, stop_tracing): Update.
6546
6547 2014-03-03 Tom Tromey <tromey@redhat.com>
6548
6549 * probe.h (parse_probes, find_probe_by_pc)
6550 (find_probes_in_objfile): Fix comments.
6551
6552 2014-03-02 Doug Evans <xdje42@gmail.com>
6553
6554 * infrun.c (handle_signal_stop): Replace test for
6555 TARGET_WAITKIND_STOPPED with an assert.
6556
6557 2014-03-02 Doug Evans <xdje42@gmail.com>
6558
6559 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6560
6561 2014-03-02 Doug Evans <xdje42@gmail.com>
6562
6563 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6564
6565 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6566
6567 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6568
6569 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6570
6571 * i386obsd-nat.c: Include "obsd-nat.h".
6572 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6573 add_target.
6574 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6575
6576 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6577
6578 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6579
6580 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6581
6582 * mips64obsd-nat.c: Include "obsd-nath".
6583 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6584 add_target
6585 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6586
6587 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6588
6589 * amd64obsd-nat.c: Include "obsd-nat,h.
6590 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6591 add_target.
6592 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6593
6594 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6595
6596 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6597 (find_overload_match): Update call to find_oload_champ.
6598 (find_oload_champ_namespace_loop): Likewise
6599
6600 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6601
6602 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6603
6604 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6605 * config/sparc/obsd64.mh: New file.
6606 * sparc64obsd-nat.c: New file.
6607
6608 * obsd-nat.h: New file.
6609 * obsd-nat.c: New file.
6610 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6611 (ALLDEPFILES): Add obsd-nat.c.
6612
6613 2014-02-28 Tom Tromey <tromey@redhat.com>
6614
6615 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6616 * cli-out.h (cli_ui_out_impl): Now const.
6617 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6618 * ui-out.c (struct ui_out) <impl>: Now const.
6619 (default_ui_out_impl): Now const.
6620 (ui_out_new): Make 'impl' parameter const.
6621 * ui-out.h (ui_out_new): Update.
6622
6623 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6624
6625 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6626
6627 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6628
6629 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6630
6631 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6632
6633 Additional PR 8882 fix.
6634 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6635
6636 2014-02-27 Pedro Alves <palves@redhat.com>
6637
6638 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6639 isn't set.
6640
6641 2014-02-27 Pedro Alves <palves@redhat.com>
6642
6643 PR 12702
6644 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6645 * nat/linux-waitpid.c: Include string.h.
6646 (status_to_str): Moved here and made extern.
6647 * nat/linux-waitpid.h (status_to_str): New declaration.
6648
6649 2014-02-27 Hui Zhu <hui@codesourcery.com>
6650
6651 PR 12702
6652 * infrun.c (ptid_match): Move ...
6653 * common/ptid.c (ptid_match): ... here.
6654 * inferior.h (ptid_match): Move ...
6655 * common/ptid.h (ptid_match): ... here.
6656
6657 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6658
6659 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6660 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6661 gdb_target_obs.
6662
6663 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6664
6665 * obsd-tdep.c (obsd_auxv_parse): New function.
6666 (obsd_init_abi): Set auxv_parse.
6667
6668 * gdbarch.sh (auxv_parse): New.
6669 * gdbarch.h: Regenerated.
6670 * gdbarch.c: Regenerated.
6671 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6672
6673 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6674
6675 * guile/scm-value.c (gdbscm_history_append_x): New function.
6676 (value_functions): Add it.
6677
6678 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6679
6680 * dwarf2read.c (attr_value_as_address): New function.
6681 (dwarf2_find_base_address, read_call_site_scope): Use
6682 attr_value_as_address in place of DW_ADDR.
6683 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6684 the low and high addresses. Slight rework of the handling
6685 of the high pc being a constant form, and limit it to
6686 DWARF verson 4 or higher.
6687 (dwarf2_record_block_ranges): Likewise.
6688 (read_partial_die): Likewise.
6689 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6690
6691 2014-02-26 Tom Tromey <tromey@redhat.com>
6692
6693 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6694
6695 2014-02-26 Tom Tromey <tromey@redhat.com>
6696
6697 * elfread.c (elf_read_minimal_symbols): Return early if
6698 minimal symbols have already been read. Add "ei" parameter.
6699 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6700 * minsyms.c (prim_record_minimal_symbol_full): Update.
6701 * objfiles.h (struct objstats) <n_minsyms>: Move...
6702 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6703 * symmisc.c (print_objfile_statistics): Update.
6704
6705 2014-02-26 Tom Tromey <tromey@redhat.com>
6706
6707 * elfread.c (elf_read_minimal_symbols): New function, from
6708 elf_symfile_read.
6709 (elf_symfile_read): Call it.
6710
6711 2014-02-26 Tom Tromey <tromey@redhat.com>
6712
6713 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6714 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6715 (lookup_minimal_symbol_solib_trampoline)
6716 (lookup_minimal_symbol_by_pc_section_1)
6717 (lookup_minimal_symbol_and_objfile): Update.
6718 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6719 Don't allocate a minimal symbol if minsyms have already been read.
6720 (build_minimal_symbol_hash_tables): Update.
6721 (install_minimal_symbols): Do nothing if minsyms already read.
6722 Use the per-BFD obstack.
6723 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6724 * objfiles.c (allocate_objfile): Call
6725 terminate_minimal_symbol_table later.
6726 (have_minimal_symbols): Update.
6727 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6728 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6729 Move from struct objfile.
6730 <minsyms_read>: New field.
6731 (struct objfile) <msymbols, minimal_symbol_count,
6732 msymbol_hash, msymbol_demangled_hash>: Move.
6733 (ALL_OBJFILE_MSYMBOLS): Update.
6734 * symfile.c (read_symbols): Set minsyms_read.
6735 (reread_symbols): Update.
6736 * symmisc.c (dump_objfile, dump_msymbols): Update.
6737
6738 2014-02-26 Tom Tromey <tromey@redhat.com>
6739
6740 * minsyms.c (msymbols_sort): Remove.
6741 * minsyms.h (msymbols_sort): Remove.
6742 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6743 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6744 * elfread.c (elf_symtab_read): Don't add section offsets.
6745 * xcoffread.c (record_minimal_symbol): Don't add section offset
6746 to minimal symbol address.
6747 * somread.c (text_offset, data_offset): Remove.
6748 (som_symtab_read): Don't add section offsets to minimal symbol
6749 addresses.
6750 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6751 Don't add section offsets to minimal symbols.
6752 * coffread.c (coff_symtab_read): Don't add section offsets
6753 to minimal symbol addresses.
6754 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6755 to minimal symbol addresses.
6756 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6757 section offset to minimal symbol addresses.
6758 * mdebugread.c (parse_partial_symbols): Don't add section
6759 offset to minimal symbol addresses.
6760 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6761 offset to minimal symbol addresses.
6762
6763 2014-02-26 Tom Tromey <tromey@redhat.com>
6764
6765 * ada-lang.c (ada_main_name): Update.
6766 (ada_add_standard_exceptions): Update.
6767 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6768 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6769 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6770 * auxv.c (ld_so_xfer_auxv): Update.
6771 * avr-tdep.c (avr_scan_prologue): Update.
6772 * ax-gdb.c (gen_var_ref): Update.
6773 * blockframe.c (get_pc_function_start)
6774 (find_pc_partial_function_gnu_ifunc): Update.
6775 * breakpoint.c (create_overlay_event_breakpoint)
6776 (create_longjmp_master_breakpoint)
6777 (create_std_terminate_master_breakpoint)
6778 (create_exception_master_breakpoint): Update.
6779 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6780 * c-valprint.c (c_val_print): Update.
6781 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6782 * common/agent.c (agent_look_up_symbols): Update.
6783 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6784 * dwarf2loc.c (call_site_to_target_addr): Update.
6785 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6786 * elfread.c (elf_gnu_ifunc_record_cache)
6787 (elf_gnu_ifunc_resolve_by_got): Update.
6788 * findvar.c (default_read_var_value): Update.
6789 * frame.c (inside_main_func): Update.
6790 * frv-tdep.c (frv_frame_this_id): Update.
6791 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6792 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6793 Update.
6794 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6795 (hppa_hpux_find_dummy_bpaddr): Update.
6796 * hppa-tdep.c (hppa_symbol_address): Update.
6797 * infcmd.c (until_next_command): Update.
6798 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6799 Update.
6800 * linespec.c (minsym_found, add_minsym): Update.
6801 * linux-nat.c (get_signo): Update.
6802 * linux-thread-db.c (inferior_has_bug): Update.
6803 * m32c-tdep.c (m32c_return_value)
6804 (m32c_m16c_address_to_pointer): Update.
6805 * m32r-tdep.c (m32r_frame_this_id): Update.
6806 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6807 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6808 * maint.c (maintenance_translate_address): Update.
6809 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6810 (frob_address): New function.
6811 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6812 frob_address. Rename parameter to "pc_in".
6813 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6814 addresses.
6815 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6816 Update.
6817 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6818 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6819 * objc-lang.c (find_objc_msgsend): Update.
6820 * objfiles.c (objfile_relocate1): Update.
6821 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6822 * p-valprint.c (pascal_val_print): Update.
6823 * parse.c (write_exp_msymbol): Update.
6824 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6825 (ppc_elfv2_skip_entrypoint): Update.
6826 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6827 * printcmd.c (build_address_symbolic, msym_info)
6828 (address_info): Update.
6829 * proc-service.c (ps_pglobal_lookup): Update.
6830 * psymtab.c (find_pc_sect_psymtab_closer)
6831 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6832 Change msymbol parameter to bound_minimal_symbol.
6833 * ravenscar-thread.c (get_running_thread_id): Update.
6834 * remote.c (remote_check_symbols): Update.
6835 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6836 address.
6837 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6838 * solib-dsbt.c (lm_base): Update.
6839 * solib-frv.c (lm_base, main_got): Update.
6840 * solib-irix.c (locate_base): Update.
6841 * solib-som.c (som_solib_create_inferior_hook)
6842 (link_map_start): Update.
6843 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6844 * solib-svr4.c (elf_locate_base, enable_break): Update.
6845 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6846 (flush_ea_cache): Update.
6847 * stabsread.c (define_symbol, scan_file_globals): Update.
6848 * stack.c (find_frame_funname): Update.
6849 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6850 (debug_qf_find_pc_sect_symtab): Update.
6851 * symfile.c (simple_read_overlay_table)
6852 (simple_overlay_update): Update.
6853 * symfile.h (struct quick_symbol_functions)
6854 <find_pc_sect_symtab>: Change type of msymbol to
6855 bound_minimal_symbol.
6856 * symmisc.c (dump_msymbols): Update.
6857 * symtab.c (find_pc_sect_symtab_via_partial)
6858 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6859 (search_symbols, print_msymbol_info): Update.
6860 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6861 (MSYMBOL_VALUE_ADDRESS): Redefine.
6862 (BMSYMBOL_VALUE_ADDRESS): New macro.
6863 * tracepoint.c (scope_info): Update.
6864 * tui/tui-disasm.c (tui_find_disassembly_address)
6865 (tui_get_begin_asm_address): Update.
6866 * valops.c (find_function_in_inferior): Update.
6867 * value.c (value_static_field, value_fn_field): Update.
6868
6869 2014-02-26 Tom Tromey <tromey@redhat.com>
6870
6871 * ada-lang.c (ada_update_initial_language): Update.
6872 (ada_main_name, ada_has_this_exception_support): Update.
6873 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6874 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6875 * arm-tdep.c (arm_skip_stub): Update.
6876 * auxv.c (ld_so_xfer_auxv): Update.
6877 * avr-tdep.c (avr_scan_prologue): Update.
6878 * ax-gdb.c (gen_var_ref): Update.
6879 * breakpoint.c (struct breakpoint_objfile_data)
6880 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6881 type to bound_minimal_symbol.
6882 (create_overlay_event_breakpoint)
6883 (create_longjmp_master_breakpoint)
6884 (create_std_terminate_master_breakpoint)
6885 (create_exception_master_breakpoint): Update.
6886 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6887 * c-exp.y (classify_name): Update.
6888 * coffread.c (coff_symfile_read): Update.
6889 * common/agent.c (agent_look_up_symbols): Update.
6890 * d-lang.c (d_main_name): Update.
6891 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6892 * dec-thread.c (enable_dec_thread): Update.
6893 * dwarf2loc.c (call_site_to_target_addr): Update.
6894 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6895 * eval.c (evaluate_subexp_standard): Update.
6896 * findvar.c (struct minsym_lookup_data) <result>: Change type
6897 to bound_minimal_symbol.
6898 <objfile>: Remove.
6899 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6900 * frame.c (inside_main_func): Update.
6901 * frv-tdep.c (frv_frame_this_id): Update.
6902 * gcore.c (call_target_sbrk): Update.
6903 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6904 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6905 Update.
6906 * go-lang.c (go_main_name): Update.
6907 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6908 (hppa_hpux_find_import_stub_for_addr): Update.
6909 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6910 Update. Change return type.
6911 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6912 type.
6913 * jit.c (jit_breakpoint_re_set_internal): Update.
6914 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6915 Update.
6916 * linux-nat.c (get_signo): Update.
6917 * linux-thread-db.c (inferior_has_bug): Update
6918 * m32c-tdep.c (m32c_return_value)
6919 (m32c_m16c_address_to_pointer): Update.
6920 * m32r-tdep.c (m32r_frame_this_id): Update.
6921 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6922 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6923 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6924 lookup_minimal_symbol. Change return type.
6925 (lookup_minimal_symbol): Remove.
6926 (lookup_bound_minimal_symbol): Update.
6927 (lookup_minimal_symbol_text): Change return type.
6928 (lookup_minimal_symbol_solib_trampoline): Change return type.
6929 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6930 (lookup_minimal_symbol_solib_trampoline): Change return type.
6931 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6932 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6933 (value_nsstring, find_imps): Update.
6934 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6935 * p-lang.c (pascal_main_name): Update.
6936 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6937 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6938 * proc-service.c (ps_pglobal_lookup): Update.
6939 * ravenscar-thread.c (get_running_thread_msymbol): Change
6940 return type.
6941 (has_ravenscar_runtime, get_running_thread_id): Update.
6942 * remote.c (remote_check_symbols): Update.
6943 * sol-thread.c (ps_pglobal_lookup): Update.
6944 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6945 * solib-dsbt.c (lm_base): Update.
6946 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6947 Update.
6948 * solib-irix.c (locate_base): Update.
6949 * solib-som.c (som_solib_create_inferior_hook)
6950 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6951 Update.
6952 * solib-spu.c (spu_enable_break): Update.
6953 * solib-svr4.c (elf_locate_base, enable_break): Update.
6954 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6955 (flush_ea_cache): Update.
6956 * stabsread.c (define_symbol): Update.
6957 * symfile.c (simple_read_overlay_table): Update.
6958 * symtab.c (find_pc_sect_line): Update.
6959 * tracepoint.c (scope_info): Update.
6960 * tui-disasm.c (tui_get_begin_asm_address): Update.
6961 * value.c (value_static_field): Update.
6962
6963 2014-02-26 Tom Tromey <tromey@redhat.com>
6964
6965 * minsyms.c (prim_record_minimal_symbol_full): Use
6966 SET_MSYMBOL_VALUE_ADDRESS.
6967 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6968 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6969 SET_MSYMBOL_VALUE_ADDRESS.
6970 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6971 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6972
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6974
6975 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6976 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6977 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6978 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6979 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6980 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6981 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6982 * ada-lang.c (ada_main_name): Update.
6983 (ada_lookup_simple_minsym): Update.
6984 (ada_make_symbol_completion_list): Update.
6985 (ada_add_standard_exceptions): Update.
6986 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6987 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6988 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6989 * arm-tdep.c (skip_prologue_function): Update.
6990 (arm_skip_stack_protector, arm_skip_stub): Update.
6991 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6992 (arm_wince_skip_main_prologue): Update.
6993 * auxv.c (ld_so_xfer_auxv): Update.
6994 * avr-tdep.c (avr_scan_prologue): Update.
6995 * ax-gdb.c (gen_var_ref): Update.
6996 * block.c (call_site_for_pc): Update.
6997 * blockframe.c (get_pc_function_start): Update.
6998 (find_pc_partial_function_gnu_ifunc): Update.
6999 * breakpoint.c (create_overlay_event_breakpoint): Update.
7000 (create_longjmp_master_breakpoint): Update.
7001 (create_std_terminate_master_breakpoint): Update.
7002 (create_exception_master_breakpoint): Update.
7003 (resolve_sal_pc): Update.
7004 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7005 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7006 Update.
7007 * c-valprint.c (c_val_print): Update.
7008 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7009 * coffread.c (coff_symfile_read): Update.
7010 * common/agent.c (agent_look_up_symbols): Update.
7011 * dbxread.c (find_stab_function_addr): Update.
7012 (end_psymtab): Update.
7013 * dwarf2loc.c (call_site_to_target_addr): Update.
7014 (func_verify_no_selftailcall): Update.
7015 (tailcall_dump): Update.
7016 (call_site_find_chain_1): Update.
7017 (dwarf_expr_reg_to_entry_parameter): Update.
7018 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7019 (elf_gnu_ifunc_resolve_by_got): Update.
7020 * f-valprint.c (info_common_command): Update.
7021 * findvar.c (read_var_value): Update.
7022 * frame.c (get_prev_frame_1): Update.
7023 (inside_main_func): Update.
7024 * frv-tdep.c (frv_skip_main_prologue): Update.
7025 (frv_frame_this_id): Update.
7026 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7027 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7028 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7029 (gnuv3_skip_trampoline): Update.
7030 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7031 (hppa64_hpux_in_solib_call_trampoline): Update.
7032 (hppa_hpux_skip_trampoline_code): Update.
7033 (hppa64_hpux_search_dummy_call_sequence): Update.
7034 (hppa_hpux_find_import_stub_for_addr): Update.
7035 (hppa_hpux_find_dummy_bpaddr): Update.
7036 * hppa-tdep.c (hppa_symbol_address)
7037 (hppa_lookup_stub_minimal_symbol): Update.
7038 * i386-tdep.c (i386_skip_main_prologue): Update.
7039 (i386_pe_skip_trampoline_code): Update.
7040 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7041 * infcall.c (get_function_name): Update.
7042 * infcmd.c (until_next_command): Update.
7043 * jit.c (jit_breakpoint_re_set_internal): Update.
7044 (jit_inferior_init): Update.
7045 * linespec.c (minsym_found): Update.
7046 (add_minsym): Update.
7047 * linux-fork.c (info_checkpoints_command): Update.
7048 * linux-nat.c (get_signo): Update.
7049 * linux-thread-db.c (inferior_has_bug): Update.
7050 * m32c-tdep.c (m32c_return_value): Update.
7051 (m32c_m16c_address_to_pointer): Update.
7052 (m32c_m16c_pointer_to_address): Update.
7053 * m32r-tdep.c (m32r_frame_this_id): Update.
7054 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7055 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7056 * maint.c (maintenance_translate_address): Update.
7057 * minsyms.c (add_minsym_to_hash_table): Update.
7058 (add_minsym_to_demangled_hash_table): Update.
7059 (msymbol_objfile): Update.
7060 (lookup_minimal_symbol): Update.
7061 (iterate_over_minimal_symbols): Update.
7062 (lookup_minimal_symbol_text): Update.
7063 (lookup_minimal_symbol_by_pc_name): Update.
7064 (lookup_minimal_symbol_solib_trampoline): Update.
7065 (lookup_minimal_symbol_by_pc_section_1): Update.
7066 (lookup_minimal_symbol_and_objfile): Update.
7067 (prim_record_minimal_symbol_full): Update.
7068 (compare_minimal_symbols): Update.
7069 (compact_minimal_symbols): Update.
7070 (build_minimal_symbol_hash_tables): Update.
7071 (install_minimal_symbols): Update.
7072 (terminate_minimal_symbol_table): Update.
7073 (find_solib_trampoline_target): Update.
7074 (minimal_symbol_upper_bound): Update.
7075 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7076 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7077 (mips_skip_pic_trampoline_code): Update.
7078 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7079 * objc-lang.c (selectors_info): Update.
7080 (classes_info): Update.
7081 (find_methods): Update.
7082 (find_imps): Update.
7083 (find_objc_msgsend): Update.
7084 * objfiles.c (objfile_relocate1): Update.
7085 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7086 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7087 * p-valprint.c (pascal_val_print): Update.
7088 * parse.c (write_exp_msymbol): Update.
7089 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7090 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7091 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7092 * printcmd.c (build_address_symbolic): Update.
7093 (sym_info): Update.
7094 (address_info): Update.
7095 * proc-service.c (ps_pglobal_lookup): Update.
7096 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7097 (find_pc_sect_psymtab): Update.
7098 * python/py-framefilter.c (py_print_frame): Update.
7099 * ravenscar-thread.c (get_running_thread_id): Update.
7100 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7101 Update.
7102 * remote.c (remote_check_symbols): Update.
7103 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7104 (rs6000_skip_trampoline_code): Update.
7105 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7106 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7107 * solib-dsbt.c (lm_base): Update.
7108 * solib-frv.c (lm_base): Update.
7109 (main_got): Update.
7110 * solib-irix.c (locate_base): Update.
7111 * solib-som.c (som_solib_create_inferior_hook): Update.
7112 (som_solib_desire_dynamic_linker_symbols): Update.
7113 (link_map_start): Update.
7114 * solib-spu.c (spu_enable_break): Update.
7115 (ocl_enable_break): Update.
7116 * solib-svr4.c (elf_locate_base): Update.
7117 (enable_break): Update.
7118 * spu-tdep.c (spu_get_overlay_table): Update.
7119 (spu_catch_start): Update.
7120 (flush_ea_cache): Update.
7121 * stabsread.c (define_symbol): Update.
7122 (scan_file_globals): Update.
7123 * stack.c (find_frame_funname): Update.
7124 (frame_info): Update.
7125 * symfile.c (simple_read_overlay_table): Update.
7126 (simple_overlay_update): Update.
7127 * symmisc.c (dump_msymbols): Update.
7128 * symtab.c (fixup_section): Update.
7129 (find_pc_sect_line): Update.
7130 (skip_prologue_sal): Update.
7131 (search_symbols): Update.
7132 (print_msymbol_info): Update.
7133 (rbreak_command): Update.
7134 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7135 (completion_list_objc_symbol): Update.
7136 (default_make_symbol_completion_list_break_on): Update.
7137 * tracepoint.c (scope_info): Update.
7138 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7139 (tui_get_begin_asm_address): Update.
7140 * valops.c (find_function_in_inferior): Update.
7141 * value.c (value_static_field): Update.
7142 (value_fn_field): Update.
7143
7144 2014-02-26 Tom Tromey <tromey@redhat.com>
7145
7146 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7147 bound minimal symbols. Move code that knows about minsym
7148 table layout...
7149 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7150 function.
7151 * minsyms.h (minimal_symbol_upper_bound): Declare.
7152 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7153 minimal_symbol_upper_bound.
7154
7155 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7156
7157 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7158 Use the type's name if its basic type does not have a tag.
7159
7160 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7161
7162 * dwarf2read.c (read_subrange_type): Add comment.
7163
7164 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7165
7166 * dwarf2read.c (update_enumeration_type_from_children): New
7167 function, mostly extracted from process_structure_scope.
7168 (read_enumeration_type): Call update_enumeration_type_from_children.
7169 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7170 and flag_flag_enum fields.
7171
7172 2014-02-26 Pedro Alves <palves@redhat.com>
7173
7174 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7175 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7176 to_xfer_partial method.
7177
7178 2014-02-26 Pedro Alves <palves@redhat.com>
7179
7180 * target.c (complete_target_initialization): Don't install
7181 default_xfer_partial as to_xfer_partial hook.
7182 (nomemory): Delete.
7183 (update_current_target): Don't INHERIT nor de_fault
7184 deprecated_xfer_memory. Delete de_fault macro.
7185 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7186 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7187 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7188 field.
7189
7190 2014-02-26 Pedro Alves <palves@redhat.com>
7191
7192 * go32-nat.c (my_write_child): New function.
7193 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7194 (go32_xfer_partial): New function.
7195 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7196 Instead install a to_xfer_partial hook.
7197
7198 2014-02-26 Pedro Alves <palves@redhat.com>
7199
7200 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7201 to_xfer_partial helper. Rewrite.
7202 (procfs_xfer_partial): New function.
7203 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7204 Install a to_xfer_partial hook.
7205
7206 2014-02-26 Pedro Alves <palves@redhat.com>
7207
7208 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7209 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7210 (m32r_xfer_partial): New function.
7211 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7212 Install a to_xfer_partial hook.
7213
7214 2014-02-26 Pedro Alves <palves@redhat.com>
7215
7216 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7217 helper.
7218 (mips_xfer_partial): New function.
7219 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7220 hook. Install a to_xfer_partial hook.
7221
7222 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7223
7224 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7225 * gdbtypes.c (create_array_type_with_stride): New function,
7226 renaming create_array_type, but with an added parameter
7227 called "bit_stride".
7228 (create_array_type): Re-implement using
7229 create_array_type_with_stride.
7230 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7231 and DW_AT_bit_stride attributes.
7232
7233 2014-02-26 Pedro Alves <palves@redhat.com>
7234
7235 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7236 task-specific breakpoints.
7237
7238 2014-02-25 Pedro Alves <palves@redhat.com>
7239
7240 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7241 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7242
7243 2014-02-25 Stan Shebs <stan@codesourcery.com>
7244
7245 * defs.h: Annotate comments for Doxygen.
7246
7247 2014-02-25 Tom Tromey <tromey@redhat.com>
7248
7249 * target.h (target_ignore): Don't declare.
7250 * target.c (target_ignore): Remove.
7251
7252 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7253
7254 PR gdb/16626
7255 * auto-load.c (auto_load_objfile_script_1): Change filename to
7256 debugfile.
7257
7258 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7259
7260 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7261 documentation. Adjust prototype to match the target_ops
7262 to_xfer_partial method. Adjust implementation accordingly.
7263
7264 2014-02-25 Hui Zhu <hui@codesourcery.com>
7265
7266 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7267 to_traceframe_info.
7268
7269 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7270
7271 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7272 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7273 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7274 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7275 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7276 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7277 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7278 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7279 New constants.
7280 (rl78_register_type): Use a data pointer type for SP and
7281 new pseudo registers mentioned above. Use a 16 bit integer
7282 type for all other register pairs.
7283 (rl78_register_name, rl78_g10_register_name): Update for
7284 new pseudo registers.
7285 (rl78_pseudo_register_read): Likewise.
7286 (rl78_pseudo_register_write): Likewise.
7287 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7288 to the newly added pseudo registers.
7289
7290 2014-02-24 Doug Evans <dje@google.com>
7291
7292 * value.c (record_latest_value): Fix comment.
7293 * printcmd.c (print_command_1): Remove code to handle -1 return from
7294 record_latest_value.
7295
7296 2014-02-24 Pedro Alves <palves@redhat.com>
7297
7298 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7299 deprecated_xfer_memory hook.
7300 (procfs_xfer_partial): Call procfs_xfer_memory instead
7301 of the deprecated_xfer_memory target hook.
7302 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7303 helper.
7304
7305 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7306
7307 * windows-nat.c (windows_xfer_shared_libraries): Return
7308 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7309 requested object is TARGET_OBJECT_LIBRARIES.
7310
7311 2014-02-24 Yao Qi <yao@codesourcery.com>
7312
7313 * target.h (enum target_xfer_status)
7314 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7315 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7316 explicitly. New.
7317 * corefile.c (memory_error_message): User updated.
7318 * exec.c (section_table_read_available_memory): Likewise.
7319 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7320 * target.c (target_xfer_status_to_string): Likewise.
7321 (raw_memory_xfer_partial): Likewise.
7322 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7323 * valops.c (read_value_memory): Likewise.
7324 * exec.h: Update comments.
7325
7326 2014-02-24 Yao Qi <yao@codesourcery.com>
7327
7328 * target.c (target_xfer_status_to_string): Rename argument err
7329 to status.
7330 * target.h (target_xfer_status_to_string): Update declaration.
7331 Replace target_xfer_error_to_string with
7332 target_xfer_status_to_string in comment.
7333
7334 2014-02-24 Yao Qi <yao@codesourcery.com>
7335
7336 * mips-linux-nat.c (super_close): Update its type.
7337 (mips_linux_close): Pass 'self' to super_close.
7338
7339 2014-02-24 Yao Qi <yao@codesourcery.com>
7340
7341 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7342 * corefile.c (read_memory): Adjusted.
7343 * target.c (target_write_with_progress): Adjusted.
7344
7345 2014-02-23 Yao Qi <yao@codesourcery.com>
7346
7347 Revert two patches:
7348
7349 2013-10-25 Yao Qi <yao@codesourcery.com>
7350
7351 * remote.c (remote_traceframe_info): Return early if
7352 traceframe is not selected.
7353
7354 2013-07-19 Yao Qi <yao@codesourcery.com>
7355
7356 * target.c (update_current_target): Change the default action
7357 of 'to_traceframe_info' from tcomplain to return_zero.
7358 * target.h (struct target_ops) <to_traceframe_info>: Add more
7359 comments.
7360
7361 2014-02-23 Yao Qi <yao@codesourcery.com>
7362
7363 * valops.c (read_value_memory): Rewrite it. Call
7364 target_xfer_partial in a loop.
7365 * exec.h (section_table_available_memory): Remove declaration.
7366 Move comments to ...
7367 * exec.c (section_table_available_memory): ... here. Make it
7368 static.
7369
7370 2014-02-23 Yao Qi <yao@codesourcery.com>
7371
7372 * exec.c (section_table_read_available_memory): New function.
7373 * exec.h (section_table_read_available_memory): Declare.
7374 * ctf.c (ctf_xfer_partial): Call
7375 section_table_read_available_memory.
7376 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7377
7378 2014-02-23 Yao Qi <yao@codesourcery.com>
7379
7380 * ctf.c (ctf_xfer_partial): Move code to ...
7381 * exec.c (exec_read_partial_read_only): ... it. New function.
7382 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7383 * tracefile.c: Include "exec.h".
7384 * exec.h (exec_read_partial_read_only): Declare.
7385
7386 2014-02-23 Yao Qi <yao@codesourcery.com>
7387
7388 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7389 (tfile_has_memory): Remove.
7390 (init_tfile_ops): Don't set fields to_has_all_memory and
7391 to_has_memory of tfile_ops.
7392 * tracefile.c (tracefile_has_all_memory): New function.
7393 (tracefile_has_memory): New function.
7394 (init_tracefile_ops): Initialize fields to_has_all_memory and
7395 to_has_memory of 'ops'.
7396
7397 2014-02-23 Yao Qi <yao@codesourcery.com>
7398
7399 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7400 (ctf_thread_alive, ctf_get_trace_status): Remove.
7401 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7402 init_tracefile_ops.
7403 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7404 (tfile_has_stack, tfile_has_registers): Remove.
7405 (tfile_thread_alive): Remove.
7406 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7407 init_tracefile_ops.
7408 * tracefile.c (tracefile_has_stack): New function.
7409 (tracefile_has_registers): New function.
7410 (tracefile_thread_alive): New function.
7411 (tracefile_get_trace_status): New function.
7412 (init_tracefile_ops): New function.
7413 * tracefile.h (init_tracefile_ops): Declare.
7414
7415 2014-02-23 Yao Qi <yao@codesourcery.com>
7416
7417 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7418 (O_LARGEFILE): Likewise.
7419 (tfile_ops): Likewise.
7420 (TRACE_HEADER_SIZE): Likewise.
7421 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7422 (cur_data_size): Likewise.
7423 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7424 (tfile_close, tfile_files_info): Likewise.
7425 (tfile_get_trace_status): Likewise.
7426 (tfile_get_tracepoint_status): Likewise.
7427 (tfile_get_traceframe_address): Likewise.
7428 (tfile_trace_find, match_blocktype): Likewise.
7429 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7430 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7431 (tfile_get_trace_state_variable_value): Likewise.
7432 (tfile_has_all_memory, tfile_has_memory): Likewise.
7433 (tfile_has_stack, tfile_has_registers): Likewise.
7434 (tfile_thread_alive, build_traceframe_info): Likewise.
7435 (tfile_traceframe_info, init_tfile_ops): Likewise.
7436 (_initialize_tracepoint): Don't call init_tfile_ops
7437 and add_target_with_completer.
7438 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7439 exec.h, completer.h and filenames.h.
7440 (_initialize_tracefile_tfile): New function.
7441
7442 2014-02-23 Yao Qi <yao@codesourcery.com>
7443
7444 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7445 tracefile-tfile.o.
7446 (HFILES_NO_SRCDIR): Add tracefile.h.
7447 * ctf.c: Include "tracefile.h".
7448 * tracefile.h: New file.
7449 * tracefile.c: New file
7450 * tracefile-tfile.c: New file.
7451 * tracepoint.c: Include "tracefile.h".
7452 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7453 (stop_reason_names): Add const.
7454 (trace_file_writer_xfree): Move it to tracefile.c.
7455 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7456 (trace_save_ctf): Likewise.
7457 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7458 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7459 (tfile_write_header, tfile_write_regblock_type): Likewise.
7460 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7461 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7462 (tfile_write_raw_data, tfile_end): Likewise.
7463 (tfile_trace_file_writer_new): Likewise.
7464 (free_uploaded_tp): Make it extern.
7465 (free_uploaded_tsv): Make it extern.
7466 (_initialize_tracepoint): Move code to register command 'tsave'
7467 to tracefile.c.
7468 * tracepoint.h (stop_reason_names): Declare.
7469 (struct trace_frame_write_ops): Move it to tracefile.h.
7470 (struct trace_file_write_ops): Likewise.
7471 (struct trace_file_writer): Likewise.
7472 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7473
7474 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7475
7476 PR gdb/16594
7477 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7478 process name.
7479 (get_cores_used_by_process): New parameter num_cores, use it.
7480 (linux_xfer_osdata_processes): Pass num_cores to it.
7481 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7482 process name.
7483
7484 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7485
7486 * target.c (memory_xfer_partial): Fix length arg in call to
7487 breakpoint_xfer_memory.
7488
7489 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7490
7491 PR tdep/16397
7492 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7493 number comes after the + or - signs. Adjust length of register
7494 name to be extracted.
7495
7496 2014-02-20 Tom Tromey <tromey@redhat.com>
7497
7498 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7499 (ada_varobj_ops): Mark "extern".
7500
7501 2014-02-20 Tom Tromey <tromey@redhat.com>
7502
7503 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7504
7505 2014-02-20 Doug Evans <xdje42@gmail.com>
7506
7507 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7508 All callers updated.
7509 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7510 All callers updated.
7511 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7512 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7513
7514 2014-02-20 lin zuojian <manjian2006@gmail.com>
7515 Joel Brobecker <brobecker@adacore.com>
7516 Doug Evans <xdje42@gmail.com>
7517
7518 PR symtab/16581
7519 * dwarf2read.c (struct die_info): New member in_process.
7520 (reset_die_in_process): New function.
7521 (process_die): Set it at the start, reset when returning.
7522 (inherit_abstract_dies): Only call process_die if origin_child_die
7523 not already being processed.
7524
7525 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7526
7527 * windows-nat.c (handle_unload_dll): Add function documentation.
7528 (do_initial_windows_stuff): Add comment explaining why we wait
7529 until after inferior initialization has finished before
7530 processing all DLLs.
7531
7532 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7533
7534 * windows-nat.c (get_module_name): Delete.
7535 (windows_get_exec_module_filename): New function, mostly
7536 inspired from get_module_name.
7537 (windows_pid_to_exec_file): Replace call to get_module_name
7538 by call to windows_get_exec_module_filename.
7539
7540 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7541
7542 * windows-nat.c (handle_load_dll): Rewrite this function's
7543 introductory comment. Remove code using get_module_name
7544 to get the DLL's name.
7545
7546 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7547
7548 * windows-nat.c (get_windows_debug_event): Ignore
7549 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7550 if windows_initialization_done == 0.
7551 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7552 Adjust implementation to always load all DLLs.
7553 (do_initial_windows_stuff): Replace call to
7554 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7555
7556 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7557
7558 * windows-nat.c (_initialize_windows_nat): Deprecate the
7559 "dll-symbols" command. Turn the "add-shared-symbol-files"
7560 and "assf" aliases into commands, and deprecate them as well.
7561 * NEWS: Add entry explaining that "dll-symbols" and its two
7562 aliases are now deprecated.
7563
7564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7565
7566 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7567 new-line in debug string. Remove trailing spaces.
7568
7569 2014-02-19 Stan Shebs <stan@codesourcery.com>
7570
7571 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7572
7573 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7574
7575 * NEWS: Add entry for the new feature
7576 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7577 and class values.
7578
7579 2014-02-19 Stan Shebs <stan@codesourcery.com>
7580
7581 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7582
7583 2014-02-19 Pedro Alves <palves@redhat.com>
7584
7585 * common/ptid.h (struct ptid): Mention that process_stratum
7586 targets should prefer ptid.lwp.
7587
7588 2014-02-19 Pedro Alves <palves@redhat.com>
7589
7590 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7591 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7592 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7593 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7594 store remote thread ids rather than ptid.tid.
7595 (_initialize_remote): Adjust.
7596
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7598
7599 * target.c (target_get_unwinder): Rewrite.
7600 (target_get_tailcall_unwinder): Rewrite.
7601 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7602 (record_btrace_to_get_tailcall_unwinder): New function.
7603 (init_record_btrace_ops): Update.
7604 * target.h (struct target_ops) <to_get_unwinder,
7605 to_get_tailcall_unwinder>: Now function pointers. Use
7606 TARGET_DEFAULT_RETURN.
7607
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7609
7610 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7611 argument.
7612 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7613
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7617 directly.
7618 * target-delegates.c: Rebuild.
7619 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7620 TARGET_DEFAULT_FUNC.
7621 * target.c (default_target_decr_pc_after_break): Rename from
7622 forward_target_decr_pc_after_break. Simplify.
7623 (target_decr_pc_after_break): Rely on delegation.
7624
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target.c (update_current_target): Do not INHERIT to_doc or
7628 to_magic. Do not de_fault to_open or to_close.
7629
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * gcore.h (objfile_find_memory_regions): Declare.
7633 * gcore.c (objfile_find_memory_regions): No longer static. Add
7634 "self" argument.
7635 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7636 * exec.c: Include gcore.h.
7637 (exec_set_find_memory_regions): Remove.
7638 (exec_find_memory_regions): Remove.
7639 (exec_do_find_memory_regions): Remove.
7640 (init_exec_ops): Update.
7641 * defs.h (exec_set_find_memory_regions): Remove.
7642
7643 2014-02-19 Tom Tromey <tromey@redhat.com>
7644
7645 * target-delegates.c: Rebuild.
7646 * target.h (struct target_ops) <to_extra_thread_info,
7647 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7648 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7649 not 0, in TARGET_DEFAULT_RETURN.
7650
7651 2014-02-19 Tom Tromey <tromey@redhat.com>
7652
7653 * target.c (complete_target_initialization): Remove casts. Use
7654 return_zero_has_execution.
7655 (return_zero): Add "ignore" argument.
7656 (return_zero_has_execution): New function.
7657 (init_dummy_target): Remove casts. Use
7658 return_zero_has_execution.
7659
7660 2014-02-19 Tom Tromey <tromey@redhat.com>
7661
7662 * target.c (update_current_target): Update comments. Do not
7663 INHERIT to_stratum.
7664
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7668 needed.
7669 * corelow.c (core_read_description): Delegate when needed.
7670 * remote.c (remote_read_description): Delegate when needed.
7671 * target-delegates.c: Rebuild.
7672 * target.c (target_read_description): Rewrite.
7673 * target.h (struct target_ops) <to_read_description>: Update
7674 comment. Use TARGET_DEFAULT_RETURN.
7675
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * target-delegates.c: Rebuild.
7679 * target.c (update_current_target): Don't inherit or default
7680 to_can_run.
7681 (find_default_run_target): Check against delegate_can_run.
7682 * target.h (struct target_ops) <to_can_run>: Use
7683 TARGET_DEFAULT_RETURN.
7684
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7686
7687 * target-delegates.c: Rebuild.
7688 * target.c (target_disconnect): Unconditionally delegate.
7689 * target.h (struct target_ops) <to_disconnect>: Use
7690 TARGET_DEFAULT_NORETURN.
7691
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7693
7694 * record.c (record_stop): Unconditionally delegate.
7695 * target-delegates.c: Rebuild.
7696 * target.c (target_stop_recording): Unconditionally delegate.
7697 * target.h (struct target_ops) <to_stop_recording>: Use
7698 TARGET_DEFAULT_IGNORE.
7699
7700 2014-02-19 Tom Tromey <tromey@redhat.com>
7701
7702 * target-delegates.c: Rebuild.
7703 * target.c (target_enable_btrace): Unconditionally delegate.
7704 * target.h (struct target_ops) <to_enable_btrace>: Use
7705 TARGET_DEFAULT_NORETURN.
7706
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7708
7709 * target-delegates.c: Rebuild.
7710 * target.c (target_read_btrace): Unconditionally delegate.
7711 * target.h (struct target_ops) <to_read_btrace>: Use
7712 TARGET_DEFAULT_NORETURN.
7713
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (target_teardown_btrace): Unconditionally delegate.
7718 * target.h (struct target_ops) <to_teardown_btrace>: Use
7719 TARGET_DEFAULT_NORETURN.
7720
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7722
7723 * target-delegates.c: Rebuild.
7724 * target.c (target_disable_btrace): Unconditionally delegate.
7725 * target.h (struct target_ops) <to_disable_btrace>: Use
7726 TARGET_DEFAULT_NORETURN.
7727
7728 2014-02-19 Tom Tromey <tromey@redhat.com>
7729
7730 * target-delegates.c: Rebuild.
7731 * target.c (default_search_memory): New function.
7732 (simple_search_memory): Update comment.
7733 (target_search_memory): Unconditionally delegate.
7734 * target.h (struct target_ops) <to_search_memory>: Use
7735 TARGET_DEFAULT_FUNC.
7736
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * auxv.c (default_auxv_parse): No longer static.
7740 (target_auxv_parse): Unconditionally delegate.
7741 * auxv.h (default_auxv_parse): Declare.
7742 * target-delegates.c: Rebuild.
7743 * target.c: Include auxv.h.
7744 * target.h (struct target_ops) <to_auxv_parse>: Use
7745 TARGET_DEFAULT_FUNC.
7746
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (target_memory_map): Unconditionally delegate.
7751 * target.h (struct target_ops) <to_memory_map>: Use
7752 TARGET_DEFAULT_RETURN.
7753
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7755
7756 * target-delegates.c: Rebuild.
7757 * target.c (target_thread_alive): Unconditionally delegate.
7758 * target.h (struct target_ops) <to_thread_alive>: Use
7759 TARGET_DEFAULT_RETURN.
7760
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * target-delegates.c: Rebuild.
7764 * target.c (target_save_record): Unconditionally delegate.
7765 * target.h (struct target_ops) <to_save_record>: Use
7766 TARGET_DEFAULT_NORETURN.
7767
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7769
7770 * target-delegates.c: Rebuild.
7771 * target.c (target_delete_record): Unconditionally delegate.
7772 * target.h (struct target_ops) <to_delete_record>: Use
7773 TARGET_DEFAULT_NORETURN.
7774
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7776
7777 * target-delegates.c: Rebuild.
7778 * target.c (target_record_is_replaying): Unconditionally
7779 delegate.
7780 * target.h (struct target_ops) <to_record_is_replaying>: Use
7781 TARGET_DEFAULT_RETURN.
7782
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7784
7785 * target-delegates.c: Rebuild.
7786 * target.c (target_goto_record_begin): Unconditionally delegate.
7787 * target.h (struct target_ops) <to_goto_record_begin>: Use
7788 TARGET_DEFAULT_NORETURN.
7789
7790 2014-02-19 Tom Tromey <tromey@redhat.com>
7791
7792 * target-delegates.c: Rebuild.
7793 * target.c (target_goto_record_end): Unconditionally delegate.
7794 * target.h (struct target_ops) <to_goto_record_end>: Use
7795 TARGET_DEFAULT_NORETURN.
7796
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (target_goto_record): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_goto_record>: Use
7802 TARGET_DEFAULT_NORETURN.
7803
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (target_insn_history): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_insn_history>: Use
7809 TARGET_DEFAULT_NORETURN.
7810
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_insn_history_from): Unconditionally delegate.
7815 * target.h (struct target_ops) <to_insn_history_from>: Use
7816 TARGET_DEFAULT_NORETURN.
7817
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_insn_history_range): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_insn_history_range>: Use
7823 TARGET_DEFAULT_NORETURN.
7824
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7826
7827 * target-delegates.c: Rebuild.
7828 * target.c (target_call_history): Unconditionally delegate.
7829 * target.h (struct target_ops) <to_call_history>: Use
7830 TARGET_DEFAULT_NORETURN.
7831
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target-delegates.c: Rebuild.
7835 * target.c (target_call_history_from): Unconditionally delegate.
7836 * target.h (struct target_ops) <to_call_history_from>: Use
7837 TARGET_DEFAULT_NORETURN.
7838
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target-delegates.c: Rebuild.
7842 * target.c (target_call_history_range): Unconditionally delegate.
7843 * target.h (struct target_ops) <to_call_history_range>: Use
7844 TARGET_DEFAULT_NORETURN.
7845
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7847
7848 * target-delegates.c: Rebuild.
7849 * target.c (target_verify_memory): Unconditionally delegate.
7850 * target.h (struct target_ops) <to_verify_memory>: Use
7851 TARGET_DEFAULT_NORETURN.
7852
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_core_of_thread): Unconditionally delegate.
7857 * target.h (struct target_ops) <to_core_of_thread>: Use
7858 TARGET_DEFAULT_RETURN.
7859
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target-delegates.c: Rebuild.
7863 * target.c (target_flash_done): Unconditionally delegate.
7864 * target.h (struct target_ops) <to_flash_done>: Use
7865 TARGET_DEFAULT_NORETURN.
7866
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_flash_erase): Unconditionally delegate.
7871 * target.h (struct target_ops) <to_flash_erase>: Use
7872 TARGET_DEFAULT_NORETURN.
7873
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target-delegates.c: Rebuild.
7877 * target.c (target_get_section_table): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_get_section_table>: Use
7879 TARGET_DEFAULT_RETURN.
7880
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (target_pid_to_str): Unconditionally delegate.
7885 (init_dummy_target): Don't initialize to_pid_to_str.
7886 (default_pid_to_str): Rename from dummy_pid_to_str.
7887 * target.h (struct target_ops) <to_pid_to_str>: Use
7888 TARGET_DEFAULT_FUNC.
7889
7890 2014-02-19 Tom Tromey <tromey@redhat.com>
7891
7892 * target-delegates.c: Rebuild.
7893 * target.c (target_find_new_threads): Unconditionally delegate.
7894 * target.h (struct target_ops) <to_find_new_threads>: Use
7895 TARGET_DEFAULT_RETURN.
7896
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target-delegates.c: Rebuild.
7900 * target.c (target_program_signals): Unconditionally delegate.
7901 * target.h (struct target_ops) <to_program_signals>: Use
7902 TARGET_DEFAULT_IGNORE.
7903
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_pass_signals): Unconditionally delegate.
7908 * target.h (struct target_ops) <to_pass_signals>: Use
7909 TARGET_DEFAULT_IGNORE.
7910
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (default_mourn_inferior): New function.
7915 (target_mourn_inferior): Unconditionally delegate.
7916 * target.h (struct target_ops) <to_mourn_inferior>: Use
7917 TARGET_DEFAULT_FUNC.
7918
7919 2014-02-19 Tom Tromey <tromey@redhat.com>
7920
7921 * target-delegates.c: Rebuild.
7922 * target.c (default_follow_fork): New function.
7923 (target_follow_fork): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_follow_fork>: Use
7925 TARGET_DEFAULT_FUNC.
7926
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7928
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_kill): Unconditionally delegate.
7931 * target.h (struct target_ops) <to_kill>: Use
7932 TARGET_DEFAULT_NORETURN.
7933
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7935
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_masked_watch_num_registers): Unconditionally
7938 delegate.
7939 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7940 Use TARGET_DEFAULT_RETURN.
7941
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7943
7944 * target-delegates.c: Rebuild.
7945 * target.c (target_remove_mask_watchpoint): Unconditionally
7946 delegate.
7947 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7948 TARGET_DEFAULT_RETURN.
7949
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target-delegates.c: Rebuild.
7953 * target.c (target_insert_mask_watchpoint): Unconditionally
7954 delegate.
7955 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7956 TARGET_DEFAULT_RETURN.
7957
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target-delegates.c: Rebuild.
7961 * target.c (target_ranged_break_num_registers): Unconditionally
7962 delegate.
7963 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7964 Use TARGET_DEFAULT_RETURN.
7965
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7967
7968 * target-delegates.c: Rebuild.
7969 * target.c (target_fetch_registers): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_fetch_registers>: Use
7971 TARGET_DEFAULT_NORETURN.
7972
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_stop.
7978 * target.h (struct target_ops) <to_stop>: Use
7979 TARGET_DEFAULT_IGNORE.
7980
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_can_run_breakpoint_commands.
7986 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7987 Use TARGET_DEFAULT_RETURN.
7988
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * target-delegates.c: Rebuild.
7992 * target.c (update_current_target): Don't inherit or default
7993 to_supports_evaluation_of_breakpoint_conditions.
7994 * target.h (struct target_ops)
7995 <to_supports_evaluation_of_breakpoint_conditions>: Use
7996 TARGET_DEFAULT_RETURN.
7997
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_augmented_libraries_svr4_read.
8003 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8004 Use TARGET_DEFAULT_RETURN.
8005
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_can_use_agent.
8011 * target.h (struct target_ops) <to_can_use_agent>: Use
8012 TARGET_DEFAULT_RETURN.
8013
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_use_agent.
8019 * target.h (struct target_ops) <to_use_agent>: Use
8020 TARGET_DEFAULT_NORETURN.
8021
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * target-delegates.c: Rebuild.
8025 * target.c (update_current_target): Don't inherit or default
8026 to_traceframe_info.
8027 (return_null): Remove.
8028 * target.h (struct target_ops) <to_traceframe_info>: Use
8029 TARGET_DEFAULT_RETURN.
8030
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target-delegates.c: Rebuild.
8034 * target.c (update_current_target): Don't inherit or default
8035 to_static_tracepoint_markers_by_strid.
8036 * target.h (struct target_ops)
8037 <to_static_tracepoint_markers_by_strid>: Use
8038 TARGET_DEFAULT_NORETURN.
8039
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target-delegates.c: Rebuild.
8043 * target.c (update_current_target): Don't inherit or default
8044 to_static_tracepoint_marker_at.
8045 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8046 Use TARGET_DEFAULT_RETURN.
8047
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * target-delegates.c: Rebuild.
8051 * target.c (update_current_target): Don't inherit or default
8052 to_set_permissions.
8053 * target.h (struct target_ops) <to_set_permissions>: Use
8054 TARGET_DEFAULT_IGNORE.
8055
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8057
8058 * target-delegates.c: Rebuild.
8059 * target.c (update_current_target): Don't inherit or default
8060 to_get_tib_address.
8061 * target.h (struct target_ops) <to_get_tib_address>: Use
8062 TARGET_DEFAULT_NORETURN.
8063
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8065
8066 * target-delegates.c: Rebuild.
8067 * target.c (update_current_target): Don't inherit or default
8068 to_set_trace_notes.
8069 * target.h (struct target_ops) <to_set_trace_notes>: Use
8070 TARGET_DEFAULT_RETURN.
8071
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8073
8074 * target-delegates.c: Rebuild.
8075 * target.c (update_current_target): Don't initialize
8076 to_set_trace_buffer_size.
8077 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8078 TARGET_DEFAULT_IGNORE.
8079
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_set_circular_trace_buffer.
8085 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8086 TARGET_DEFAULT_IGNORE.
8087
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_set_disconnected_tracing.
8093 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8094 TARGET_DEFAULT_IGNORE.
8095
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8097
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_get_min_fast_tracepoint_insn_len.
8101 (return_minus_one): Remove.
8102 * target.h (struct target_ops)
8103 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8104
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_get_raw_trace_data.
8110 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8111 TARGET_DEFAULT_NORETURN.
8112
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8114
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8117 to_upload_trace_state_variables.
8118 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8119 Use TARGET_DEFAULT_RETURN.
8120
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8125 to_upload_tracepoints.
8126 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8127 TARGET_DEFAULT_RETURN.
8128
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8133 to_save_trace_data.
8134 * target.h (struct target_ops) <to_save_trace_data>: Use
8135 TARGET_DEFAULT_NORETURN.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_get_trace_state_variable_value.
8142 * target.h (struct target_ops)
8143 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8144
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target-delegates.c: Rebuild.
8148 * target.c (update_current_target): Don't inherit or default
8149 to_trace_find.
8150 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8151
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_trace_stop.
8157 * target.h (struct target_ops) <to_trace_stop>: Use
8158 TARGET_DEFAULT_NORETURN.
8159
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_get_tracepoint_status.
8165 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8166 TARGET_DEFAULT_NORETURN.
8167
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_get_trace_status.
8173 * target.h (struct target_ops) <to_get_trace_status>: Use
8174 TARGET_DEFAULT_RETURN.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_trace_start.
8181 * target.h (struct target_ops) <to_trace_start>: Use
8182 TARGET_DEFAULT_NORETURN.
8183
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8188 to_trace_set_readonly_regions.
8189 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8190 Use TARGET_DEFAULT_NORETURN.
8191
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (update_current_target): Don't inherit or default
8196 to_disable_tracepoint.
8197 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8198 TARGET_DEFAULT_NORETURN.
8199
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target-delegates.c: Rebuild.
8203 * target.c (update_current_target): Don't inherit or default
8204 to_enable_tracepoint.
8205 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8206 TARGET_DEFAULT_NORETURN.
8207
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_download_trace_state_variable.
8213 * target.h (struct target_ops) <to_download_trace_state_variable>:
8214 Use TARGET_DEFAULT_NORETURN.
8215
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_can_download_tracepoint.
8221 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8222 TARGET_DEFAULT_RETURN.
8223
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_download_tracepoint.
8229 * target.h (struct target_ops) <to_download_tracepoint>: Use
8230 TARGET_DEFAULT_NORETURN.
8231
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_trace_init.
8237 * target.h (struct target_ops) <to_trace_init>: Use
8238 TARGET_DEFAULT_RETURN.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_supports_string_tracing.
8245 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8246 TARGET_DEFAULT_RETURN.
8247
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_supports_enable_disable_tracepoint.
8253 * target.h (struct target_ops)
8254 <to_supports_enable_disable_tracepoint>: Use
8255 TARGET_DEFAULT_RETURN.
8256
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_supports_multi_process.
8262 * target.h (struct target_ops) <to_supports_multi_process>: Use
8263 TARGET_DEFAULT_RETURN.
8264
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_get_ada_task_ptid.
8270 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8271 TARGET_DEFAULT_FUNC.
8272
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_thread_architecture.
8278 * target.h (struct target_ops) <to_thread_architecture>: Use
8279 TARGET_DEFAULT_FUNC.
8280
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8285 to_execution_direction.
8286 * target.h (struct target_ops) <to_execution_direction>: 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_can_execute_reverse.
8294 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8295 TARGET_DEFAULT_RETURN.
8296 (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
8303 (dummy_goto_bookmark): Remove.
8304 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8305 * target.h (struct target_ops) <to_goto_bookmark>: Use
8306 TARGET_DEFAULT_NORETURN.
8307
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_get_bookmark.
8313 (dummy_get_bookmark): Remove.
8314 (init_dummy_target): Don't inherit or default to_get_bookmark.
8315 * target.h (struct target_ops) <to_get_bookmark>: Use
8316 TARGET_DEFAULT_NORETURN
8317
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8319
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8322 to_make_corefile_notes.
8323 (init_dummy_target): Don't initialize to_make_corefile_notes.
8324 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8325 TARGET_DEFAULT_FUNC.
8326
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_find_memory_regions.
8332 (init_dummy_target): Don't initialize to_find_memory_regions.
8333 * target.h (struct target_ops) <to_find_memory_regions>: Use
8334 TARGET_DEFAULT_FUNC.
8335
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8340 to_log_command.
8341 * target.h (struct target_ops) <to_log_command>: Use
8342 TARGET_DEFAULT_IGNORE.
8343 (target_log_command): Unconditionally delegate.
8344
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_pid_to_exec_file.
8350 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8351 TARGET_DEFAULT_RETURN.
8352
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target-delegates.c: Rebuild.
8356 * target.c (update_current_target): Don't inherit or default
8357 to_thread_name.
8358 (target_thread_name): Unconditionally delegate.
8359 * target.h (struct target_ops) <to_thread_name>: Use
8360 TARGET_DEFAULT_RETURN.
8361
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_extra_thread_info.
8367 * target.h (struct target_ops) <to_extra_thread_info>: Use
8368 TARGET_DEFAULT_RETURN.
8369
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_has_exited.
8375 * target.h (struct target_ops) <to_has_exited>: Use
8376 TARGET_DEFAULT_RETURN..
8377
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_set_syscall_catchpoint.
8383 (return_one): Remove.
8384 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8385 TARGET_DEFAULT_RETURN.
8386
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_insert_exec_catchpoint.
8392 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8393 TARGET_DEFAULT_RETURN.
8394
8395 2014-01-08 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_insert_exec_catchpoint.
8400 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8401 TARGET_DEFAULT_RETURN.
8402
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_remove_vfork_catchpoint.
8408 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8409 TARGET_DEFAULT_RETURN.
8410
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_insert_vfork_catchpoint.
8416 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8417 TARGET_DEFAULT_RETURN.
8418
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_remove_fork_catchpoint.
8424 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8425 TARGET_DEFAULT_RETURN.
8426
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_insert_fork_catchpoint.
8432 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8433 TARGET_DEFAULT_RETURN.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_post_startup_inferior.
8440 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8441 TARGET_DEFAULT_IGNORE.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_load.
8448 * target.h (struct target_ops) <to_load>: Use
8449 TARGET_DEFAULT_NORETURN.
8450
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8452
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_terminal_info.
8456 * target.h (struct target_ops) <to_terminal_info>: Use
8457 TARGET_DEFAULT_FUNC.
8458
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_terminal_save_ours.
8464 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8465 TARGET_DEFAULT_IGNORE.
8466
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_terminal_ours.
8472 * target.h (struct target_ops) <to_terminal_ours>: Use
8473 TARGET_DEFAULT_IGNORE.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_terminal_ours_for_output.
8480 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8481 TARGET_DEFAULT_IGNORE.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_terminal_inferior.
8488 * target.h (struct target_ops) <to_terminal_inferior>: Use
8489 TARGET_DEFAULT_IGNORE.
8490
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_terminal_init.
8496 * target.h (struct target_ops) <to_terminal_init>: Use
8497 TARGET_DEFAULT_IGNORE.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_can_accel_watchpoint_condition.
8504 * target.h (struct target_ops)
8505 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_region_ok_for_hw_watchpoint.
8512 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8513 Use TARGET_DEFAULT_FUNC.
8514
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_watchpoint_addr_within_range.
8520 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8521 Use TARGET_DEFAULT_FUNC.
8522
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_remove_watchpoint.
8528 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8529 TARGET_DEFAULT_NORETURN.
8530
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8535 to_insert_watchpoint.
8536 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8537 TARGET_DEFAULT_RETURN.
8538
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target-delegates.c: Rebuild.
8542 * target.c (update_current_target): Don't inherit or default
8543 to_remove_hw_breakpoint.
8544 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8545 TARGET_DEFAULT_RETURN.
8546
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target-delegates.c: Rebuild.
8550 * target.c (update_current_target): Don't inherit or default
8551 to_insert_hw_breakpoint.
8552 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8553 TARGET_DEFAULT_RETURN.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8559 to_can_use_hw_breakpoint.
8560 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8561 TARGET_DEFAULT_RETURN.
8562
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8567 to_files_info.
8568 * target.h (struct target_ops) <to_files_info>: Use
8569 TARGET_DEFAULT_IGNORE.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_store.
8576 * target.h (struct target_ops) <to_store>: Use
8577 TARGET_DEFAULT_NORETURN.
8578
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_post_attach.
8584 * target.h (struct target_ops) <to_post_attach>: Use
8585 TARGET_DEFAULT_IGNORE.
8586
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8591 to_rcmd.
8592 (default_rcmd): New function.
8593 (do_monitor_command): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_rmcd>: Use
8595 TARGET_DEFAULT_FUNC.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (init_dummy_target): Don't initialize to_attach.
8601 (target_attach): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_attach>: Use
8603 TARGET_DEFAULT_FUNC.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (target_detach): Unconditionally delegate.
8609 (init_dummy_target): Don't initialize to_detach.
8610 * target.h (struct target_ops) <to_detach>: Use
8611 TARGET_DEFAULT_IGNORE.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8616 Add argument.
8617 (target_augmented_libraries_svr4_read): Add argument.
8618 * target.c (update_current_target): Update.
8619 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8620 argument.
8621
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target.h (struct target_ops) <to_call_history_range>: Add
8625 argument.
8626 * target.c (target_call_history_range): Add argument.
8627 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8628 argument.
8629 (record_btrace_call_history_from): Update.
8630
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8632
8633 * target.h (struct target_ops) <to_call_history_from>: Add
8634 argument.
8635 * target.c (target_call_history_from): Add argument.
8636 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8637 argument.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target.h (struct target_ops) <to_call_history>: Add argument.
8642 * target.c (target_call_history): Add argument.
8643 * record-btrace.c (record_btrace_call_history): Add 'self'
8644 argument.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target.h (struct target_ops) <to_insn_history_range>: Add
8649 argument.
8650 * target.c (target_insn_history_range): Add argument.
8651 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8652 argument.
8653 (record_btrace_insn_history_from): Update.
8654
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target.h (struct target_ops) <to_insn_history_from>: Add
8658 argument.
8659 * target.c (target_insn_history_from): Add argument.
8660 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8661 argument.
8662
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8664
8665 * target.h (struct target_ops) <to_insn_history>: Add argument.
8666 * target.c (target_insn_history): Add argument.
8667 * record-btrace.c (record_btrace_insn_history): Add 'self'
8668 argument.
8669
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_goto_record>: Add argument.
8673 * target.c (target_goto_record): Add argument.
8674 * record-full.c (record_full_goto): Add 'self' argument.
8675 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8680 * target.c (target_goto_record_end): Add argument.
8681 * record-full.c (record_full_goto_end): Add 'self' argument.
8682 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target.h (struct target_ops) <to_goto_record_begin>: Add
8687 argument.
8688 * target.c (target_goto_record_begin): Add argument.
8689 * record-full.c (record_full_goto_begin): Add 'self' argument.
8690 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8691 argument.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target.h (struct target_ops) <to_record_is_replaying>: Add
8696 argument.
8697 * target.c (target_record_is_replaying): Add argument.
8698 * record-full.c (record_full_is_replaying): Add 'self' argument.
8699 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8700 argument.
8701 (record_btrace_xfer_partial, record_btrace_store_registers)
8702 (record_btrace_prepare_to_store, record_btrace_resume)
8703 (record_btrace_wait, record_btrace_decr_pc_after_break)
8704 (record_btrace_find_new_threads, record_btrace_thread_alive):
8705 Update.
8706
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8708
8709 * target.h (struct target_ops) <to_delete_record>: Add argument.
8710 * target.c (target_delete_record): Add argument.
8711 * record-full.c (record_full_delete): Add 'self' argument.
8712
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops) <to_save_record>: Add argument.
8716 * target.c (target_save_record): Add argument.
8717 * record-full.c (record_full_save): Add 'self' argument.
8718 (record_full_save): Add 'self' argument.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target.h (struct target_ops) <to_info_record>: Add argument.
8723 * target.c (target_info_record): Add argument.
8724 * record.c (info_record_command): Add argument.
8725 * record-full.c (record_full_info): Add 'self' argument.
8726 * record-btrace.c (record_btrace_info): Add 'self' argument.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8731 * target.c (target_stop_recording): Add argument.
8732 * record.c (record_stop): Add argument.
8733 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8734 argument.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8739 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8740 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8741 argument.
8742 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8743 (_initialize_amd64_linux_nat): Use it.
8744 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8745 (_initialize_i386_linux_nat): Use it.
8746
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8750 * target.c (target_teardown_btrace): Add argument.
8751 * remote.c (remote_teardown_btrace): Add 'self' argument.
8752 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8753 argument.
8754 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8755 argument.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8760 * target.c (target_disable_btrace): Add argument.
8761 * remote.c (remote_disable_btrace): Add 'self' argument.
8762 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8763 argument.
8764 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8765 argument.
8766
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8770 * target.c (target_enable_btrace): Add argument.
8771 * remote.c (remote_enable_btrace): Add 'self' argument.
8772 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8773 argument.
8774 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8775 argument.
8776
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8778
8779 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8780 (target_can_use_agent): Add argument.
8781 * target.c (update_current_target): Update.
8782 * remote.c (remote_can_use_agent): Add 'self' argument.
8783 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target.h (struct target_ops) <to_use_agent>: Add argument.
8788 (target_use_agent): Add argument.
8789 * target.c (update_current_target): Update.
8790 * remote.c (remote_use_agent): Add 'self' argument.
8791 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8792
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8796 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8797 (target_traceframe_info): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_traceframe_info): Add 'self' argument.
8800 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8801
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (target_static_tracepoint_markers_by_strid): Add
8805 argument.
8806 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8807 'self' argument.
8808 * target.c (update_current_target): Update.
8809 * remote.c (struct target_ops)
8810 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8811 * linux-nat.c (struct target_ops)
8812 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8813
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8817 Add argument.
8818 (target_static_tracepoint_marker_at): Add argument.
8819 * target.c (update_current_target): Update.
8820 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8821 argument.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8826 (target_set_permissions): Add argument.
8827 * target.c (update_current_target): Update.
8828 * remote.c (remote_set_permissions): Add 'self' argument.
8829 (remote_start_remote): Update.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8834 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8835 (target_get_tib_address): Add argument.
8836 * target.c (update_current_target): Update.
8837 * remote.c (remote_get_tib_address): Add 'self' argument.
8838
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8842 (target_set_trace_notes): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_set_trace_notes): Add 'self' argument.
8845
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8849 argument.
8850 (target_set_trace_buffer_size): Add argument.
8851 * target.c (update_current_target): Update.
8852 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8853
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8857 argument.
8858 (target_set_circular_trace_buffer): Add argument.
8859 * target.c (update_current_target): Update.
8860 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8861 argument.
8862
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8866 argument.
8867 (target_set_disconnected_tracing): Add argument.
8868 * target.c (update_current_target): Update.
8869 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8870
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target.h (struct target_ops)
8874 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8875 (target_get_min_fast_tracepoint_insn_len): Add argument.
8876 * target.c (update_current_target): Update.
8877 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8878 argument.
8879
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8883 argument.
8884 (target_get_raw_trace_data): Add argument.
8885 * target.c (update_current_target): Update.
8886 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8887
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8891 Add argument.
8892 (target_upload_trace_state_variables): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_upload_trace_state_variables): Add 'self'
8895 argument.
8896 (remote_start_remote): Update.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8901 argument.
8902 (target_upload_tracepoints): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8905 (remote_start_remote): Update.
8906
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8910 (target_save_trace_data): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_save_trace_data): Add 'self' argument.
8913
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8917 argument.
8918 * target.h (struct target_ops)
8919 <to_get_trace_state_variable_value>: Add argument.
8920 (target_get_trace_state_variable_value): Add argument.
8921 * target.c (update_current_target): Update.
8922 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8923 argument.
8924 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8929 * target.h (struct target_ops) <to_trace_find>: Add argument.
8930 (target_trace_find): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_trace_find): Add 'self' argument.
8933 * ctf.c (ctf_trace_find): Add 'self' argument.
8934
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8938 (target_trace_stop): Add argument.
8939 * target.c (update_current_target): Update.
8940 * remote.c (remote_trace_stop): Add 'self' argument.
8941
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8945 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8946 argument.
8947 (target_get_tracepoint_status): Add argument.
8948 * target.c (update_current_target): Update.
8949 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8950
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8954 * target.h (struct target_ops) <to_get_trace_status>: Add
8955 argument.
8956 (target_get_trace_status): Add argument.
8957 * target.c (update_current_target): Update.
8958 * remote.c (remote_get_trace_status): Add 'self' argument.
8959 (remote_start_remote, remote_can_download_tracepoint): Update.
8960 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_trace_start>: Add argument.
8965 (target_trace_start): Add argument.
8966 * target.c (update_current_target): Update.
8967 * remote.c (remote_trace_start): Add 'self' argument.
8968
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8970
8971 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8972 Add argument.
8973 (target_trace_set_readonly_regions): Add argument.
8974 * target.c (update_current_target): Update.
8975 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8976 argument.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8981 argument.
8982 (target_disable_tracepoint): Add argument.
8983 * target.c (update_current_target): Update.
8984 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8985
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8989 argument.
8990 (target_enable_tracepoint): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target.h (struct target_ops) <to_download_trace_state_variable>:
8997 Add argument.
8998 (target_download_trace_state_variable): Add argument.
8999 * target.c (update_current_target): Update.
9000 * remote.c (remote_download_trace_state_variable): Add 'self'
9001 argument.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9006 argument.
9007 (target_can_download_tracepoint): Add argument.
9008 * target.c (update_current_target): Update.
9009 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_download_tracepoint>: Add
9014 argument.
9015 (target_download_tracepoint): Add argument.
9016 * target.c (update_current_target): Update.
9017 * remote.c (remote_download_tracepoint): Add 'self' argument.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_trace_init>: Add argument.
9022 (target_trace_init): Add argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_trace_init): Add 'self' argument.
9025
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9029 * target.c (target_fileio_readlink): Add argument.
9030 * remote.c (remote_hostio_readlink): Add 'self' argument.
9031 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9032
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9036 * target.c (target_fileio_unlink): Add argument.
9037 * remote.c (remote_hostio_unlink): Add 'self' argument.
9038 (remote_file_delete): Update.
9039 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9040
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9042
9043 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9044 * target.c (target_fileio_close): Add argument.
9045 * remote.c (remote_hostio_close): Add 'self' argument.
9046 (remote_hostio_close_cleanup): Update.
9047 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9048 Update.
9049 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9054 * target.c (target_fileio_pread): Add argument.
9055 * remote.c (remote_hostio_pread): Add 'self' argument.
9056 (remote_bfd_iovec_pread, remote_file_get): Update.
9057 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9062 * target.c (target_fileio_pwrite): Add argument.
9063 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9064 (remote_file_put): Update.
9065 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9070 * target.c (target_fileio_open): Add argument.
9071 * remote.c (remote_hostio_open): Add 'self' argument.
9072 (remote_bfd_iovec_open): Add 'self' argument.
9073 (remote_file_put): Add 'self' argument.
9074 (remote_file_get): Add 'self' argument.
9075 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9076
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9080 Add argument.
9081 (target_can_run_breakpoint_commands): Add argument.
9082 * target.c (update_current_target): Update.
9083 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9084 argument.
9085 (remote_insert_breakpoint): Add 'self' argument.
9086 (remote_insert_hw_breakpoint): Add 'self' argument.
9087 (remote_can_run_breakpoint_commands): Add 'self' argument.
9088
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops)
9092 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9093 (target_supports_evaluation_of_breakpoint_conditions): Add
9094 argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9097 argument.
9098 (remote_insert_breakpoint): Add 'self' argument.
9099 (remote_insert_hw_breakpoint): Add 'self' argument.
9100 (remote_supports_cond_breakpoints): Add 'self' argument.
9101
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9103
9104 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9105 argument.
9106 (target_supports_string_tracing): Add argument.
9107 * target.c (update_current_target): Update.
9108 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9109
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target.h (struct target_ops)
9113 <to_supports_disable_randomization>: Add argument.
9114 * target.c (find_default_supports_disable_randomization): Add
9115 argument.
9116 (target_supports_disable_randomization): Add argument.
9117 (find_default_supports_disable_randomization): Add 'self'
9118 argument.
9119 * remote.c (extended_remote_supports_disable_randomization): Add
9120 'self' argument.
9121 (remote_supports_disable_randomization): Add 'self' argument.
9122 (extended_remote_create_inferior): Update.
9123 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9124 'self' argument.
9125
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops)
9129 <to_supports_enable_disable_tracepoint>: Add argument.
9130 (target_supports_enable_disable_tracepoint): Add argument.
9131 * target.c (update_current_target): Update.
9132 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9133 argument.
9134
9135 2014-02-19 Tom Tromey <tromey@redhat.com>
9136
9137 * target.h (struct target_ops) <to_supports_multi_process>: Add
9138 argument.
9139 (target_supports_multi_process): Add argument.
9140 * target.c (update_current_target): Update.
9141 * remote.c (remote_supports_multi_process): Add 'self' argument.
9142 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9143 argument.
9144 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9145 argument.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target.h (struct target_ops) <to_execution_direction>: Add
9150 argument.
9151 (target_execution_direction): Add argument.
9152 * target.c (default_execution_direction): Add 'self' argument.
9153 * record-full.c (record_full_execution_direction): Add 'self'
9154 argument.
9155
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9159 argument.
9160 (target_can_execute_reverse): Add argument.
9161 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9162 * record-full.c (record_full_can_execute_reverse): Add 'self'
9163 argument.
9164 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9165 argument.
9166
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9170 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9171 argument.
9172 (target_get_ada_task_ptid): Add argument.
9173 * target.c (update_current_target): Update.
9174 (default_get_ada_task_ptid): Add 'self' argument.
9175 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9176 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9177 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9178 argument.
9179 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9180 argument.
9181 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9182 argument.
9183 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9184 argument.
9185 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9186 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9187 argument.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9192 (target_goto_bookmark): Add argument.
9193 * target.c (dummy_goto_bookmark): Add 'self' argument.
9194 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9199 (target_get_bookmark): Add argument.
9200 * target.c (dummy_get_bookmark): Add 'self' argument.
9201 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9202
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9206 argument.
9207 (target_make_corefile_notes): Add argument.
9208 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9209 * procfs.c (procfs_make_note_section): Add 'self' argument.
9210 (procfs_make_note_section): Add 'self' argument.
9211 (procfs_make_note_section): Add 'self' argument.
9212 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9213 argument.
9214 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9215 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9216 * exec.c (exec_make_note_section): Add 'self' argument.
9217 (exec_make_note_section): Add 'self' argument.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_find_memory_regions>: Add
9222 argument.
9223 (target_find_memory_regions): Add argument.
9224 * target.c (dummy_find_memory_regions): Add 'self' argument.
9225 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9226 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9227 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9228 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9229 * exec. (exec_do_find_memory_regions): New global.
9230 (exec_set_find_memory_regions): Rewrite.
9231 (exec_find_memory_regions): New function.
9232 (init_exec_ops): Use exec_find_memory_regions.
9233
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target.h (struct target_ops) <to_supports_non_stop>: Add
9237 argument.
9238 * target.c (find_default_supports_non_stop): Add argument.
9239 (target_supports_non_stop): Add argument.
9240 (find_default_supports_non_stop): Add 'self' argument.
9241 * remote.c (remote_supports_non_stop): Add 'self' argument.
9242 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9243
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_log_command>: Add argument.
9247 (target_log_command): Add argument.
9248 * serial.h (serial_log_command): Add 'self' argument.
9249 * serial.c (serial_log_command): Add 'self' argument.
9250
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9254 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9255 argument.
9256 (target_pid_to_exec_file): Add argument.
9257 * target.c (debug_to_pid_to_exec_file): Add argument.
9258 (update_current_target): Update.
9259 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9260 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9261 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9262 (linux_handle_extended_wait): Update.
9263 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9264 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9265 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9266 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9267
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target.h (struct target_ops) <to_rcmd>: Add argument.
9271 (target_rcmd): Add argument.
9272 * target.c (debug_to_rcmd): Add argument.
9273 (update_current_target, do_monitor_command): Update.
9274 * remote.c (remote_rcmd): Add 'self' argument.
9275 * monitor.c (monitor_rcmd): Add 'self' argument.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * windows-nat.c (windows_stop): Add 'self' argument.
9280 * target.h (struct target_ops) <to_stop>: Add argument.
9281 * target.c (target_stop): Add argument.
9282 (debug_to_stop): Add argument.
9283 (update_current_target): Update.
9284 * remote.c (remote_stop): Add 'self' argument.
9285 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9286 (gdbsim_cntrl_c): Update.
9287 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9288 * procfs.c (procfs_stop): Add 'self' argument.
9289 * nto-procfs.c (procfs_stop): Add 'self' argument.
9290 * monitor.c (monitor_stop): Add 'self' argument.
9291 (monitor_open): Update.
9292 * linux-nat.c (linux_nat_stop): Add argument.
9293 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9294 * gnu-nat.c (gnu_stop): Add 'self' argument.
9295 * darwin-nat.c (darwin_stop): Add 'self' argument.
9296
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_thread_name>: Add argument.
9300 * target.c (target_thread_name): Add argument.
9301 (update_current_target): Update.
9302 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9303
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9305
9306 * target.h (struct target_ops) <to_extra_thread_info>: Add
9307 argument.
9308 (target_extra_thread_info): Add argument.
9309 * target.c (update_current_target): Update.
9310 * remote.c (remote_threads_extra_info): Add 'self' argument.
9311 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9312 argument.
9313 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9314 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9315 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9316 argument.
9317 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9318 argument.
9319 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9320 argument.
9321 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9322 argument.
9323
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target.h (struct target_ops) <to_program_signals>: Add argument.
9327 * target.c (target_program_signals): Add argument.
9328 * remote.c (remote_program_signals): Add 'self' argument.
9329
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9333 * target.c (target_pass_signals): Add argument.
9334 * remote.c (remote_pass_signals): Add 'self' argument.
9335 (remote_start_remote): Update.
9336 * procfs.c (procfs_pass_signals): Add 'self' argument.
9337 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9338 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9339 (linux_nat_create_inferior, linux_nat_attach): Update.
9340
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * windows-nat.c (windows_can_run): Add 'self' argument.
9344 * target.h (struct target_ops) <to_can_run>: Add argument.
9345 (target_can_run): Add argument.
9346 * target.c (debug_to_can_run): Add argument.
9347 (update_current_target): Update.
9348 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9349 * inf-child.c (inf_child_can_run): Add 'self' argument.
9350 * go32-nat.c (go32_can_run): Add 'self' argument.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops) <to_has_exited>: Add argument.
9355 (target_has_exited): Add argument.
9356 * target.c (debug_to_has_exited): Add argument.
9357 (update_current_target): Update.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9362 argument.
9363 (target_set_syscall_catchpoint): Add argument.
9364 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9365 argument.
9366 * target.c (update_current_target): Update.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9371 argument.
9372 (target_remove_exec_catchpoint): Add argument.
9373 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9374 (update_current_target): Update.
9375 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9376 argument.
9377
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9381 argument.
9382 (target_insert_exec_catchpoint): Add argument.
9383 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9384 (update_current_target): Update.
9385 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9386 argument.
9387
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9389
9390 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9391 argument.
9392 (target_remove_vfork_catchpoint): Add argument.
9393 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9394 (update_current_target): Update.
9395 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9396 argument.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9401 argument.
9402 (target_insert_vfork_catchpoint): Add argument.
9403 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9404 (update_current_target): Update.
9405 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9406 argument.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9411 argument.
9412 (target_remove_fork_catchpoint): Add argument.
9413 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9414 (update_current_target): Update.
9415 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9416 argument.
9417
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9421 argument.
9422 (target_insert_fork_catchpoint): Add argument.
9423 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9424 (update_current_target): Update.
9425 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9426 argument.
9427
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9429
9430 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9431 argument.
9432 (target_post_startup_inferior): Add argument.
9433 * target.c (debug_to_post_startup_inferior): Add argument.
9434 (update_current_target): Update.
9435 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9436 argument.
9437 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9438 argument.
9439 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9440 argument.
9441 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9442 argument.
9443 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9444 'self' argument.
9445 (super_post_startup_inferior): Likewise.
9446 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9447 'self' argument.
9448 (super_post_startup_inferior): Likewise.
9449 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9450 Add 'self' argument.
9451 (super_post_startup_inferior): Likewise.
9452
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target.h (struct target_ops) <to_load>: Add argument.
9456 * target.c (target_load): Add argument.
9457 (debug_to_load): Add argument.
9458 (update_current_target): Update.
9459 * remote.c (remote_load): Add 'self' argument.
9460 * remote-sim.c (gdbsim_load): Add 'self' argument.
9461 * remote-mips.c (mips_load): Add 'self' argument.
9462 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9463 * monitor.c (monitor_load): Add 'self' argument.
9464 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9469 (target_terminal_info): Add argument.
9470 * target.c (debug_to_terminal_info): Add argument.
9471 (default_terminal_info): Likewise.
9472 * inflow.c (child_terminal_info): Add 'self' argument.
9473 * inferior.h (child_terminal_info): Add 'self' argument.
9474 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9475
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9477
9478 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9479 argument.
9480 (target_terminal_save_ours): Add argument.
9481 * target.c (debug_to_terminal_save_ours): Add argument.
9482 (update_current_target): Update.
9483 * inflow.c (terminal_save_ours): Add 'self' argument.
9484 * inferior.h (terminal_save_ours): Add 'self' argument.
9485
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9489 (target_terminal_ours): Add argument.
9490 * target.c (debug_to_terminal_ours): Add argument.
9491 (update_current_target): Update.
9492 * remote.c (remote_terminal_ours): Add 'self' argument.
9493 (remote_close): Update.
9494 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9495 * inflow.c (terminal_ours): Add 'self' argument.
9496 * inferior.h (terminal_ours): Add 'self' argument.
9497 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9498
9499 2014-02-19 Pedro Alves <palves@redhat.com>
9500 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9503 argument.
9504 (target_terminal_ours_for_output): Add argument.
9505 * target.c (debug_to_terminal_ours_for_output): Add argument.
9506 (update_current_target): Update.
9507 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9508 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9509 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9510
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target.h (struct target_ops) <to_terminal_inferior>: Add
9514 argument.
9515 * target.c (target_terminal_inferior): Add argument.
9516 (update_current_target): Update.
9517 * remote.c (remote_terminal_inferior): Add 'self' argument.
9518 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9519 * inflow.c (terminal_inferior): Add 'self' argument.
9520 * inferior.h (terminal_inferior): Add 'self' argument.
9521 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9522 (go32_terminal_inferior): Add 'self' argument.
9523
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9525
9526 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9527 (target_terminal_init): Add argument.
9528 * target.c (debug_to_terminal_init): Add argument.
9529 (update_current_target): Update.
9530 * inflow.c (terminal_init_inferior): Add 'self' argument.
9531 * inferior.h (terminal_init_inferior): Add 'self' argument.
9532 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9533 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9534
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target.h (struct target_ops)
9538 <to_can_accel_watchpoint_condition>: Add argument.
9539 (target_can_accel_watchpoint_condition): Add argument.
9540 * target.c (debug_to_can_accel_watchpoint_condition): Add
9541 argument.
9542 (update_current_target): Update.
9543 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9544 'self' argument.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9549 Add argument.
9550 (target_region_ok_for_hw_watchpoint): Add argument.
9551 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9552 (default_region_ok_for_hw_watchpoint): Add argument.
9553 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9554 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9555 argument.
9556 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9557 argument.
9558 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9559 argument.
9560 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9561 'self' argument.
9562 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9563 'self' argument.
9564 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9565 'self' argument.
9566 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9567 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9568 'self' argument.
9569 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9570 Add 'self' argument.
9571
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9575 argument.
9576 (target_insert_watchpoint): Add argument.
9577 * target.c (debug_to_insert_watchpoint): Add argument.
9578 (update_current_target): Update.
9579 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9580 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9581 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9582 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9583 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9584 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9585 argument.
9586 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9587 (procfs_insert_hw_watchpoint): Add 'self' argument.
9588 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9589 argument.
9590 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9591 argument.
9592 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9593 argument.
9594 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9595 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9596 argument.
9597 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9598 'self' argument.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9603 argument.
9604 (target_remove_watchpoint): Add argument.
9605 * target.c (debug_to_remove_watchpoint): Add argument.
9606 (update_current_target): Update.
9607 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9608 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9609 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9610 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9611 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9612 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9613 argument.
9614 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9615 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9616 argument.
9617 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9618 argument.
9619 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9620 argument.
9621 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9622 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9623 argument.
9624 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9625 'self' argument.
9626
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9630 argument.
9631 (target_remove_hw_breakpoint): Add argument.
9632 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9633 (update_current_target): Update.
9634 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9635 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9636 argument.
9637 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9638 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9639 argument.
9640 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9641 'self' argument.
9642
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9646 argument.
9647 (target_insert_hw_breakpoint): Add argument.
9648 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9649 (update_current_target): Update.
9650 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9651 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9652 argument.
9653 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9654 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9655 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9656 argument.
9657 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9658 'self' argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9663 argument.
9664 (target_can_use_hardware_watchpoint): Add argument.
9665 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9666 (update_current_target): Update.
9667 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9668 argument.
9669 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9670 argument.
9671 * remote.c (remote_check_watch_resources): Add 'self' argument.
9672 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9673 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9674 argument.
9675 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9676 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9677 argument.
9678 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9679 argument.
9680 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9681 argument.
9682 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9683 argument.
9684 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9685 argument.
9686 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9687 argument.
9688 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9689 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9690 argument.
9691 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9692 'self' argument.
9693
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target.h (struct target_ops) <to_post_attach>: Add argument.
9697 (target_post_attach): Add argument.
9698 * target.c (debug_to_post_attach): Add argument.
9699 (update_current_target): Update.
9700 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9701 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9702 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9703 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9704 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * windows-nat.c (windows_close): Add 'self' argument.
9709 * tracepoint.c (tfile_close): Add 'self' argument.
9710 * target.h (struct target_ops) <to_close>: Add argument.
9711 * target.c (target_close): Add argument.
9712 (update_current_target): Update.
9713 * remote.c (remote_close): Add 'self' argument.
9714 * remote-sim.c (gdbsim_close): Add 'self' argument.
9715 * remote-mips.c (mips_close): Add 'self' argument.
9716 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9717 * record-full.c (record_full_close): Add 'self' argument.
9718 * record-btrace.c (record_btrace_close): Add 'self' argument.
9719 * monitor.h (monitor_close): Add 'self' argument.
9720 * monitor.c (monitor_close): Add 'self' argument.
9721 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9722 * linux-nat.c (linux_nat_close): Add argument.
9723 * go32-nat.c (go32_close): Add 'self' argument.
9724 * exec.c (exec_close_1): Add 'self' argument.
9725 * ctf.c (ctf_close): Add 'self' argument.
9726 * corelow.c (core_close): Add 'self' argument.
9727 (core_close_cleanup): Update.
9728 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9729 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * remote.c (remote_load): New function.
9734 (init_remote_ops): Use it.
9735
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9739 argument.
9740 * common/linux-btrace.h (linux_supports_btrace): Update.
9741 * remote.c (remote_supports_btrace): Add "self" argument.
9742 * target-delegates.c: Rebuild.
9743 * target.c (target_supports_btrace): Remove.
9744 * target.h (struct target_ops) <to_supports_btrace>: Add
9745 target_ops argument.
9746 (target_supports_btrace): New define.
9747
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * record-full.c (record_full_beneath_to_resume_ops)
9751 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9752 (record_full_beneath_to_wait)
9753 (record_full_beneath_to_store_registers_ops)
9754 (record_full_beneath_to_store_registers)
9755 (record_full_beneath_to_xfer_partial_ops)
9756 (record_full_beneath_to_xfer_partial)
9757 (record_full_beneath_to_insert_breakpoint_ops)
9758 (record_full_beneath_to_insert_breakpoint)
9759 (record_full_beneath_to_remove_breakpoint_ops)
9760 (record_full_beneath_to_remove_breakpoint)
9761 (record_full_beneath_to_stopped_by_watchpoint)
9762 (record_full_beneath_to_stopped_data_address)
9763 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9764 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9765 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9766 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9767 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9768 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9769 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9770 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9771 (record_full_resume, record_full_wait_1)
9772 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9773 (record_full_store_registers, record_full_xfer_partial)
9774 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9775 (record_full_async, record_full_core_xfer_partial): Use target
9776 delegation.
9777 * target-delegates.c: Rebuild.
9778 * target.c (current_xfer_partial): Remove.
9779 (update_current_target): Do not INHERIT or de_fault
9780 to_insert_breakpoint, to_remove_breakpoint,
9781 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9782 to_is_async_p, to_async. Do not set to_xfer_partial field.
9783 (default_xfer_partial): Simplify.
9784 (current_xfer_partial): Remove.
9785 (target_wait, target_resume): Simplify.
9786 (find_default_can_async_p, find_default_is_async_p): Update.
9787 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9788 to_xfer_partial, to_stopped_by_watchpoint,
9789 to_stopped_data_address.
9790 (target_store_registers): Simplify.
9791 (forward_target_remove_breakpoint)
9792 (forward_target_insert_breakpoint): Remove.
9793 (target_remove_breakpoint, target_insert_breakpoint)
9794 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9795 * target.h (struct target_ops) <to_resume, to_wait,
9796 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9797 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9798 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9799 markup.
9800 (forward_target_remove_breakpoint)
9801 (forward_target_insert_breakpoint): Remove.
9802 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9803 directly.
9804 (record_btrace_insert_breakpoint): Delegate directly.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 PR build/7701:
9809 * target-delegates.c: New file.
9810 * target.c: Include target-delegates.c.
9811 (init_dummy_target): Call install_dummy_methods.
9812 (complete_target_initialization): Call install_delegators.
9813 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9814 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9815 * make-target-delegates: New file.
9816
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * record.c (find_record_target): Use find_target_at.
9820 * target.c (find_target_at): New function.
9821 * target.h (find_target_at): Declare.
9822
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9826 Add 'ops' argument.
9827 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9828 'ops' argument.
9829 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9830 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9831 'ops' argument.
9832 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9833 argument.
9834 * linux-nat.c (save_sigtrap): Update.
9835 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9836 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9837 (linux_nat_close): Update.
9838 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9839 argument.
9840 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9841 argument.
9842 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9843 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9844 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9845 (tmp_to_async): Add 'ops' argument.
9846 (record_full_stopped_by_watchpoint, record_full_async)
9847 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9848 argument.
9849 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9850 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9851 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9852 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9853 (remote_is_async_p, remote_async): Add 'ops' argument.
9854 (remote_stopped_data_address): Update.
9855 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9856 * target.c (update_current_target)
9857 (find_default_can_async_p, find_default_is_async_p): Update.
9858 (init_dummy_target): Update.
9859 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9860 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9861 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9862 (target_can_async_p, target_is_async_p, target_async)
9863 (target_stopped_by_watchpoint): Update.
9864
9865 2014-02-19 Yao Qi <yao@codesourcery.com>
9866
9867 PR gdb/16220
9868 * gdbarch.sh: Remove startup_gdbarch.
9869 * gdbarch.c: Regenerated.
9870 * gdbarch.h: Likewise.
9871
9872 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9873
9874 * rl78-tdep.c (rl78_g10_register_name): New function.
9875 (rl78_return_value): Add g10 support.
9876 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9877 g10.
9878
9879 2014-02-17 Doug Evans <xdje42@gmail.com>
9880
9881 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9882 (SUBDIR_GUILE_SRCS): Ditto.
9883 (scm-gsmob.o): Ditto.
9884
9885 2014-02-17 Yao Qi <yao@codesourcery.com>
9886
9887 * gnu-nat.c (ILL_RPC): Declare defined function.
9888
9889 2014-02-17 Yao Qi <yao@codesourcery.com>
9890
9891 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9892 mach_msg_type_number_t.
9893 (gnu_write_inferior): Likewise.
9894
9895 2014-02-17 Yao Qi <yao@codesourcery.com>
9896
9897 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9898 in format string.
9899 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9900 (inf_validate_procs, inf_signal): Likewise.
9901 (S_exception_raise_request): Likewise.
9902 (do_mach_notify_dead_name): Likewise.
9903 (steal_exc_port): Likewise.
9904 (gnu_read_inferior): Change 'copy_count''s type to
9905 mach_msg_type_number_t.
9906 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9907 format string.
9908
9909 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9910
9911 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9912 flag. Adjust all users; in particular...
9913 (gnu_wait): ..., don't decrement its value in here...
9914 (gnu_create_inferior): ..., and instead set the flag in here,
9915 around the startup_inferior call, and call that one with
9916 START_INFERIOR_TRAPS_EXPECTED.
9917
9918 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9919 (ILL_RPC): ... new macro.
9920 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9921 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9922 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9923 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9924 functions with ILL_RPC macro.
9925 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9926 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9927 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9928 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9929 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9930 (S_proc_getlogin_reply, S_proc_getsid_reply)
9931 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9932 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9933 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9934 (S_proc_getnports_reply, S_proc_is_important_reply)
9935 (S_proc_get_code_reply): New stub functions, generated with
9936 ILL_RPC macro.
9937
9938 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9939 collected the type check structures.
9940
9941 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9942
9943 2014-02-14 Doug Evans <dje@google.com>
9944
9945 * target.c (target_write_partial): Fix result type.
9946
9947 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9948
9949 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9950 the proper offsets to access fpregset_t.
9951
9952 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9953
9954 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9955 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9956 * h8300-tdep.c (setmachinelist): Remove global.
9957 * hppa-tdep.c (hppa_sigtramp): Remove global.
9958 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9959 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9960 * ravenscar-thread.c (update_target_observer): Remove global.
9961 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9962
9963 2014-02-12 Tom Tromey <tromey@redhat.com>
9964
9965 * common/rsp-low.c: Update comments.
9966 * common/rsp-low.h: Update comments.
9967
9968 2014-02-12 Tom Tromey <tromey@redhat.com>
9969
9970 * common/rsp-low.c (convert_ascii_to_int): Remove.
9971 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9972
9973 2014-02-12 Tom Tromey <tromey@redhat.com>
9974
9975 * common/rsp-low.h (unhexify): Don't declare.
9976 * common/rsp-low.c (unhexify): Remove.
9977
9978 2014-02-12 Tom Tromey <tromey@redhat.com>
9979
9980 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9981 * common/rsp-low.c (convert_int_to_ascii): Remove.
9982
9983 2014-02-12 Tom Tromey <tromey@redhat.com>
9984
9985 * common/rsp-low.h (hexify): Don't declare.
9986 * common/rsp-low.c (hexify): Remove.
9987
9988 2014-02-12 Tom Tromey <tromey@redhat.com>
9989
9990 * common/rsp-low.c (hexify): Never take strlen of argument.
9991
9992 2014-02-12 Tom Tromey <tromey@redhat.com>
9993
9994 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9995 * remote.c (extended_remote_run, remote_rcmd)
9996 (remote_download_trace_state_variable, remote_save_trace_data)
9997 (remote_set_trace_notes): Update.
9998 * tracepoint.c (encode_source_string, tfile_write_status)
9999 (tfile_write_uploaded_tsv): Update.
10000
10001 2014-02-12 Tom Tromey <tromey@redhat.com>
10002
10003 * tracepoint.c: Include rsp-low.h.
10004 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10005 * remote.c: Include rsp-low.h.
10006 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10007 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10008 (remote_unescape_input): Move to common/rsp-low.c.
10009 * common/rsp-low.h: New file.
10010 * common/rsp-low.c: New file.
10011 * Makefile.in (SFILES): Add common/rsp-low.c.
10012 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10013 (COMMON_OBS): Add rsp-low.o.
10014 (rsp-low.o): New target.
10015
10016 2014-02-12 Tom Tromey <tromey@redhat.com>
10017
10018 * utils.h: Include print-utils.h.
10019 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10020 (int_string, core_addr_to_string, core_addr_to_string_nz)
10021 (hex_string, hex_string_custom): Don't declare.
10022 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10023 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10024 (hex_string_custom, int_string, core_addr_to_string)
10025 (core_addr_to_string_nz, host_address_to_string): Move to
10026 common/print-utils.c.
10027 * common/print-utils.h: New file.
10028 * common/print-utils.c: New file
10029 * Makefile.in (SFILES): Add common/print-utils.c.
10030 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10031 (COMMON_OBS): Add print-utils.o.
10032 (print-utils.o): New target.
10033
10034 2014-02-12 Tom Tromey <tromey@redhat.com>
10035
10036 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10037
10038 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10039
10040 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10041
10042 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10043
10044 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10045 if a PT_IO ptrace request returns sucessfully but indicates that 0
10046 bytes were transferred.
10047
10048 2014-02-12 Pedro Alves <palves@redhat.com>
10049 Kevin Buettner <kevinb@redhat.com>
10050
10051 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10052 TYPE_INSTANCE_FLAG_CODE_SPACE.
10053
10054 2014-02-12 Pedro Alves <palves@redhat.com>
10055
10056 * h8300-tdep.c (pseudo_from_raw_register)
10057 (raw_from_pseudo_register): New functions.
10058 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10059 them.
10060
10061 2014-02-12 Pedro Alves <palves@redhat.com>
10062
10063 * h8300-tdep.c (h8300_register_sim_regno): New function.
10064 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10065 gdbarch_register_sim_regno hook.
10066
10067 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10068
10069 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10070
10071 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10072
10073 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10074
10075 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10076
10077 * obsd-tdep.h (obsd_init_abi): New prototype.
10078 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10079 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10080 (obsd_init_abi): New functions.
10081 * i386obsd-tdep.c: Include "obsd-tdep.h".
10082 (i386obsd_init_abi): Call obsd_init_abi.
10083 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10084 (amd64obsd_init_abi): Call obsd_init_abi.
10085 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10086 obsd-tdep.c to gdb_target_obs.
10087
10088 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10089
10090 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10091 double float arguments to 16-byte in the argument slots.
10092
10093 2014-02-11 Doug Evans <xdje42@gmail.com>
10094
10095 * configure.ac: Don't crash if pkg-config is not found and guile
10096 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10097 in guile checks.
10098 * configure: Regenerate.
10099
10100 2014-02-11 Yao Qi <yao@codesourcery.com>
10101
10102 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10103 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10104 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10105 * gnu-nat.c (gnu_xfer_memory): Likewise.
10106 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10107 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10108 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10109 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10110
10111 2014-02-11 Yao Qi <yao@codesourcery.com>
10112
10113 * target.h (enum target_xfer_error): Rename to ...
10114 (enum target_xfer_status): ... it. New. All users updated.
10115 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10116 New.
10117 (TARGET_XFER_STATUS_ERROR_P): New macro.
10118 (target_xfer_error_to_string): Remove declaration.
10119 (target_xfer_status_to_string): Declare.
10120 (target_xfer_partial_ftype): Adjust it.
10121 (struct target_ops) <to_xfer_partial>: Return
10122 target_xfer_status. Add argument xfered_len. Update
10123 comments.
10124 * target.c (target_xfer_error_to_string): Rename to ...
10125 (target_xfer_status_to_string): ... it. New. All callers
10126 updated.
10127 (target_read_live_memory): Likewise. Call target_xfer_partial
10128 instead of target_read.
10129 (memory_xfer_live_readonly_partial): Return
10130 target_xfer_status. Add argument xfered_len.
10131 (raw_memory_xfer_partial): Likewise.
10132 (memory_xfer_partial_1): Likewise.
10133 (memory_xfer_partial): Likewise.
10134 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10135 properly. Update debug message.
10136 (default_xfer_partial, current_xfer_partial): Likewise.
10137 (target_write_partial): Likewise.
10138 (target_read_partial): Likewise. All callers updated.
10139 (read_whatever_is_readable): Likewise.
10140 (target_write_with_progress): Likewise.
10141 (target_read_alloc_1): Likewise.
10142
10143 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10144 * auxv.c (procfs_xfer_auxv): Likewise.
10145 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10146 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10147 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10148 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10149 * corefile.c (read_memory): Adjust.
10150 * corelow.c (core_xfer_partial): Likewise.
10151 * ctf.c (ctf_xfer_partial): Likewise.
10152 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10153 updated.
10154 (darwin_xfer_partial): Likewise.
10155 * exec.c (section_table_xfer_memory_partial): Likewise. All
10156 callers updated.
10157 (exec_xfer_partial): Likewise.
10158 * exec.h (section_table_xfer_memory_partial): Update
10159 declaration.
10160 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10161 negative.
10162 (gnu_xfer_partial): Likewise.
10163 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10164 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10165 (ia64_hpux_xfer_solib_got): Likewise.
10166 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10167 type of 'partial_len' to ULONGEST.
10168 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10169 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10170 (linux_nat_xfer_partial): Likewise.
10171 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10172 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10173 * monitor.c (monitor_xfer_memory): Likewise.
10174 (monitor_xfer_partial): Likewise.
10175 * procfs.c (procfs_xfer_partial): Likewise.
10176 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10177 * record-full.c (record_full_xfer_partial): Likewise.
10178 (record_full_core_xfer_partial): Likewise.
10179 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10180 (gdbsim_xfer_partial): Likewise.
10181 * remote.c (remote_write_bytes_aux): Likewise. All callers
10182 updated.
10183 (remote_write_bytes, remote_read_bytes): Likewise. All
10184 callers updated.
10185 (remote_flash_erase): Likewise. All callers updated.
10186 (remote_write_qxfer): Likewise. All callers updated.
10187 (remote_read_qxfer): Likewise. All callers updated.
10188 (remote_xfer_partial): Likewise.
10189 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10190 (rs6000_xfer_shared_libraries): Likewise.
10191 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10192 (sol_thread_xfer_partial): Likewise.
10193 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10194 (sparc_xfer_partial): Likewise.
10195 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10196 updated.
10197 (spu_xfer_partial): Likewise.
10198 * spu-multiarch.c (spu_xfer_partial): Likewise.
10199 * tracepoint.c (tfile_xfer_partial): Likewise.
10200 * windows-nat.c (windows_xfer_memory): Likewise.
10201 (windows_xfer_shared_libraries): Likewise.
10202 (windows_xfer_partial): Likewise.
10203 * valprint.c: Replace 'target_xfer_error' with
10204 'target_xfer_status' in comments.
10205
10206 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10207
10208 Checked in by Joel Brobecker <brobecker@adacore.com>.
10209 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10210
10211 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10212
10213 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10214 function parameters.
10215
10216 2014-02-10 Will Newton <will.newton@linaro.org>
10217
10218 * elfread.c (elf_rel_plt_read): Look for a .got section if
10219 looking up .got.plt fails.
10220 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10221 on address passed to elf_gnu_ifunc_record_cache.
10222 (elf_gnu_ifunc_resolve_addr): Likewise.
10223 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10224
10225 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10226
10227 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10228 (X_RETTURN): New macro.
10229 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10230
10231 * sparc64-tdep.c (sparc64_init_abi): Hook
10232 sparc_in_function_epilogue_p.
10233
10234 2014-02-10 Gary Benson <gbenson@redhat.com>
10235
10236 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10237 Rename name_matcher to symbol_matcher.
10238
10239 2014-02-10 Gary Benson <gbenson@redhat.com>
10240
10241 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10242 Use expand_symtabs_file_matcher_ftype and
10243 expand_symtabs_symbol_matcher_ftype.
10244
10245 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10246
10247 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10248 (struct ada_symbol_cache): New.
10249 (ada_free_symbol_cache): Forward declare.
10250 (struct ada_pspace_data): New.
10251 (ada_pspace_data_handle): New static global.
10252 (get_ada_pspace_data, ada_pspace_data_cleanup)
10253 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10254 (cache_space, cache): Delete, now folded inside struct
10255 ada_pspace_data.
10256 (ada_get_symbol_cache): New function.
10257 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10258 implementation.
10259 (_initialize_ada_language): Remove initialization of cache_space.
10260 Move call to observer_attach_inferior_exit up, grouping it
10261 with the other observer registrations inside this function.
10262 Rename command to be more general. Add call to
10263 register_program_space_data_with_cleanup.
10264
10265 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10266
10267 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10268 ada_new_objfile_observer.
10269 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10270 (_initialize_tasks): Update uses of ada_new_objfile_observer
10271 and ada_tasks_normal_stop_observer.
10272
10273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10274
10275 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10276 returned by the 'Length attribute to integer.
10277
10278 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10279
10280 * ada-lang.c (_initialize_ada_language): Initialize
10281 cache_space obstack.
10282
10283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10284
10285 * ada-lang.c (HASH_SIZE): New macro.
10286 (struct cache_entry): New type.
10287 (cache_space, cache): New static globals.
10288 (ada_clear_symbol_cache, find_entry): New functions.
10289 (lookup_cached_symbol, cache_symbol): Implement.
10290 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10291 (_initialize_ada_language): Attach ada_new_objfile_observer
10292 and ada_free_objfile_observer.
10293
10294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10295
10296 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10297 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10298 struct block * parameter.
10299 (ada_lookup_symbol_list_worker): Constify local variable "block".
10300 Remove cast which is no longer necessary.
10301
10302 2014-02-10 Doug Evans <xdje42@gmail.com>
10303
10304 Add Guile as an extension language.
10305 * NEWS: Mention Guile scripting.
10306 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10307 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10308 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10309 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10310 (CLIBS): Add GUILE_LIBS.
10311 (install-guile): New rule.
10312 (guile.o): New rule.
10313 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10314 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10315 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10316 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10317 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10318 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10319 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10320 * configure.ac: New option --with-guile.
10321 * configure: Regenerate.
10322 * config.in: Regenerate.
10323 * auto-load.c: Remove #include "python/python.h". Add #include
10324 "gdb/section-scripts.h".
10325 (source_section_scripts): Handle Guile scripts.
10326 (_initialize_auto_load): Add name of Guile objfile script to
10327 scripts-directory help text.
10328 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10329 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10330 (struct breakpoint): New member scm_bp_object.
10331 * defs.h (enum command_control_type): New value guile_control.
10332 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10333 "extension.h".
10334 (show_user): Update comment.
10335 (_initialize_cli_cmds): Update help text for "show user". Update help
10336 text for max-user-call-depth.
10337 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10338 "extension.h".
10339 (multi_line_command_p): Add guile_control.
10340 (print_command_lines): Handle guile_control.
10341 (execute_control_command, recurse_read_control_structure): Ditto.
10342 (process_next_line): Recognize "guile" commands.
10343 * disasm.c (gdb_disassemble_info): Make non-static.
10344 * disasm.h: #include "dis-asm.h".
10345 (struct gdbarch): Add forward decl.
10346 (gdb_disassemble_info): Declare.
10347 * extension.c: #include "guile/guile.h".
10348 (extension_languages): Add guile.
10349 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10350 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10351 * gdbtypes.c (get_unsigned_type_max): New function.
10352 (get_signed_type_minmax): New function.
10353 * gdbtypes.h (get_unsigned_type_max): Declare.
10354 (get_signed_type_minmax): Declare.
10355 * guile/README: New file.
10356 * guile/guile-internal.h: New file.
10357 * guile/guile.c: New file.
10358 * guile/guile.h: New file.
10359 * guile/scm-arch.c: New file.
10360 * guile/scm-auto-load.c: New file.
10361 * guile/scm-block.c: New file.
10362 * guile/scm-breakpoint.c: New file.
10363 * guile/scm-disasm.c: New file.
10364 * guile/scm-exception.c: New file.
10365 * guile/scm-frame.c: New file.
10366 * guile/scm-gsmob.c: New file.
10367 * guile/scm-iterator.c: New file.
10368 * guile/scm-lazy-string.c: New file.
10369 * guile/scm-math.c: New file.
10370 * guile/scm-objfile.c: New file.
10371 * guile/scm-ports.c: New file.
10372 * guile/scm-pretty-print.c: New file.
10373 * guile/scm-safe-call.c: New file.
10374 * guile/scm-string.c: New file.
10375 * guile/scm-symbol.c: New file.
10376 * guile/scm-symtab.c: New file.
10377 * guile/scm-type.c: New file.
10378 * guile/scm-utils.c: New file.
10379 * guile/scm-value.c: New file.
10380 * guile/lib/gdb.scm: New file.
10381 * guile/lib/gdb/boot.scm: New file.
10382 * guile/lib/gdb/experimental.scm: New file.
10383 * guile/lib/gdb/init.scm: New file.
10384 * guile/lib/gdb/iterator.scm: New file.
10385 * guile/lib/gdb/printing.scm: New file.
10386 * guile/lib/gdb/types.scm: New file.
10387 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10388 (VPATH): Add $(GUILE_SRCDIR).
10389 (GUILE_DIR): New variable.
10390 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10391 (all): Add stamp-guile dependency.
10392 (stamp-guile): New rule.
10393 (clean-guile, install-guile, uninstall-guile): New rules.
10394 (install-only): Add install-guile dependency.
10395 (uninstall): Add uninstall-guile dependency.
10396 (clean): Add clean-guile dependency.
10397
10398 2014-02-09 Doug Evans <xdje42@gmail.com>
10399
10400 Revert this patch (which I approved, mea culpa).
10401
10402 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10403
10404 * Makefile.in (all-lib): Remove.
10405 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10406
10407 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10408
10409 Fix Python stack corruption.
10410 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10411 gdb_py_longest.
10412
10413 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10414
10415 * Makefile.in (all-lib): Remove.
10416 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10417
10418 2014-02-07 Doug Evans <dje@google.com>
10419
10420 * extension-priv.h (extension_language_script_ops): Add comment.
10421 (extension_language_ops): Add comment.
10422 (active_ext_lang_state): Fix typo in comment.
10423
10424 2014-02-07 Pedro Alves <palves@redhat.com>
10425
10426 PR breakpoints/16292
10427 * infrun.c (handle_signal_stop) <signal arrives while stepping
10428 over a breakpoint>: Switch back to the stepping thread.
10429
10430 2014-02-07 Yao Qi <yao@codesourcery.com>
10431
10432 * target.c (target_xfer_partial): Return zero if LEN is zero.
10433
10434 2014-02-07 Yao Qi <yao@codesourcery.com>
10435
10436 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10437 (ld_so_xfer_auxv): Likewise.
10438 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10439 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10440 * corelow.c (core_xfer_partial): Likewise.
10441 * ctf.c (ctf_xfer_partial): Likewise.
10442 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10443 (darwin_xfer_partial): Likewise.
10444 * exec.c (exec_xfer_partial): Likewise.
10445 * gnu-nat.c (gnu_xfer_partial): Likewise.
10446 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10447 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10448 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10449 * linux-nat.c (linux_xfer_siginfo): Likewise.
10450 (linux_proc_xfer_spu): Likewise.
10451 * procfs.c (procfs_xfer_partial): Likewise.
10452 * record-full.c (record_full_xfer_partial): Likewise.
10453 (record_full_core_xfer_partial): Likewise.
10454 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10455 * remote.c (remote_write_qxfer): Likewise.
10456 (remote_write_qxfer, remote_read_qxfer): Likewise.
10457 (remote_xfer_partial): Likewise.
10458 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10459 (rs6000_xfer_shared_libraries): Likewise.
10460 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10461 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10462 (spu_xfer_partial): Likewise.
10463 * target.c (memory_xfer_partial_1): Likewise.
10464 * tracepoint.c (tfile_xfer_partial): Likewise.
10465 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10466 (windows_xfer_partial): Likewise.
10467
10468 2014-02-07 Yao Qi <yao@codesourcery.com>
10469
10470 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10471 comments.
10472 (core_xfer_shared_libraries_aix): Likewise.
10473 * gdbarch.c, gdbarch.h: Regenerated.
10474 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10475 ULONGEST. Change 'len_avail' type to ULONGEST.
10476 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10477 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10478 declaration.
10479 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10480
10481 2014-02-07 Yao Qi <yao@codesourcery.com>
10482
10483 * corefile.c (memory_error): Get 'exception' from ERR and pass
10484 'exception' to throw_error.
10485
10486 2014-02-06 Doug Evans <xdje42@gmail.com>
10487
10488 * configure.ac (libpython checking): Remove all but python.o from
10489 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10490 * configure: Regenerate.
10491
10492 * Makefile.in (SFILES): Add extension.c.
10493 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10494 (COMMON_OBS): Add extension.o.
10495 * extension.h: New file.
10496 * extension-priv.h: New file.
10497 * extension.c: New file.
10498
10499 * python/python-internal.h: #include "extension.h".
10500 (gdbpy_auto_load_enabled): Declare.
10501 (gdbpy_apply_val_pretty_printer): Declare.
10502 (gdbpy_apply_frame_filter): Declare.
10503 (gdbpy_preserve_values): Declare.
10504 (gdbpy_breakpoint_cond_says_stop): Declare.
10505 (gdbpy_breakpoint_has_cond): Declare.
10506 (void source_python_script_for_objfile): Delete.
10507 * python/python.c: #include "extension-priv.h".
10508 Delete inclusion of "observer.h".
10509 (extension_language_python): Moved here and renamed from
10510 script_language_python in py-auto-load.c.
10511 Redefined to be of type extension_language_defn.
10512 (python_extension_script_ops): New global.
10513 (python_extension_ops): New global.
10514 (struct python_env): New member previous_active.
10515 (restore_python_env): Call restore_active_ext_lang.
10516 (ensure_python_env): Call set_active_ext_lang.
10517 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10518 New arg extlang.
10519 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10520 New arg extlang.
10521 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10522 New arg extlang.
10523 (gdbpy_eval_from_control_command): Renamed from
10524 eval_python_from_control_command, made static. New arg extlang.
10525 (gdbpy_source_script) Renamed from source_python_script, made static.
10526 New arg extlang.
10527 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10528 result to int. New arg extlang.
10529 (gdbpy_source_objfile_script): Renamed from
10530 source_python_script_for_objfile, made static. New arg extlang.
10531 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10532 static. New args extlang, extlang_printers. Change result type to
10533 "void".
10534 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10535 static. New arg extlang. Rename arg printers to extlang_printers
10536 and change type to ext_lang_type_printers *.
10537 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10538 static. Replace argument arg with extlang, extlang_printers.
10539 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10540 (!HAVE_PYTHON, source_python_script): Delete.
10541 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10542 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10543 (!HAVE_PYTHON, start_type_printers): Delete.
10544 (!HAVE_PYTHON, apply_type_printers): Delete.
10545 (!HAVE_PYTHON, free_type_printers): Delete.
10546 (_initialize_python): Delete call to observer_attach_before_prompt.
10547 (finalize_python): Set/restore active extension language.
10548 (gdbpy_finish_initialization) Renamed from
10549 finish_python_initialization, made static. New arg extlang.
10550 (gdbpy_initialized): New function.
10551 * python/python.h: #include "extension.h". Delete #include
10552 "value.h", "mi/mi-cmds.h".
10553 (extension_language_python): Declare.
10554 (GDBPY_AUTO_FILE_NAME): Delete.
10555 (enum py_bt_status): Moved to extension.h and renamed to
10556 ext_lang_bt_status.
10557 (enum frame_filter_flags): Moved to extension.h.
10558 (enum py_frame_args): Moved to extension.h and renamed to
10559 ext_lang_frame_args.
10560 (finish_python_initialization): Delete.
10561 (eval_python_from_control_command): Delete.
10562 (source_python_script): Delete.
10563 (apply_val_pretty_printer): Delete.
10564 (apply_frame_filter): Delete.
10565 (preserve_python_values): Delete.
10566 (gdbpy_script_language_defn): Delete.
10567 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10568 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10569
10570 * auto-load.c: #include "extension.h".
10571 (GDB_AUTO_FILE_NAME): Delete.
10572 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10573 (script_language_gdb): Delete, moved to extension.c and renamed to
10574 extension_language_gdb.
10575 (source_gdb_script_for_objfile): Delete.
10576 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10577 (loaded_script): Change type of language member to
10578 struct extension_language_defn *.
10579 (init_loaded_scripts_info): Initialize
10580 unsupported_script_warning_printed.
10581 (maybe_add_script): Make static. Change type of language arg to
10582 struct extension_language_defn *.
10583 (clear_section_scripts): Reset unsupported_script_warning_printed.
10584 (auto_load_objfile_script_1): Rewrite to use extension language API.
10585 (auto_load_objfile_script): Make public. Remove support-compiled-in
10586 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10587 (source_section_scripts): Rewrite to use extension language API.
10588 (load_auto_scripts_for_objfile): Rewrite to use
10589 auto_load_scripts_for_objfile.
10590 (collect_matching_scripts_data): Change type of language member to
10591 struct extension_language_defn *.
10592 (auto_load_info_scripts): Change type of language arg to
10593 struct extension_language_defn *.
10594 (unsupported_script_warning_print): New function.
10595 (script_not_found_warning_print): Make static.
10596 (_initialize_auto_load): Rewrite construction of scripts-directory
10597 help.
10598 * auto-load.h (struct objfile): Add forward decl.
10599 (struct script_language): Delete.
10600 (struct auto_load_pspace_info): Add forward decl.
10601 (struct extension_language_defn): Add forward decl.
10602 (maybe_add_script): Delete.
10603 (auto_load_objfile_script): Declare.
10604 (script_not_found_warning_print): Delete.
10605 (auto_load_info_scripts): Update prototype.
10606 (auto_load_gdb_scripts_enabled): Declare.
10607 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10608 auto_load_python_scripts_enabled and made public.
10609 (script_language_python): Delete, moved to python.c.
10610 (gdbpy_script_language_defn): Delete.
10611 (info_auto_load_python_scripts): Update to use
10612 extension_language_python.
10613
10614 * breakpoint.c (condition_command): Replace call to
10615 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10616 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10617 with call to breakpoint_ext_lang_cond_says_stop.
10618 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10619 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10620 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10621 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10622 New arg slang.
10623 (local_setattro): Print name of extension language with existing
10624 stop condition.
10625
10626 * valprint.c (val_print, value_print): Update to call
10627 apply_ext_lang_val_pretty_printer.
10628 * cp-valprint.c (cp_print_value): Update call to
10629 apply_ext_lang_val_pretty_printer.
10630 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10631 (gdbpy_apply_val_pretty_printer): Renamed from
10632 apply_val_pretty_printer. New arg extlang.
10633 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10634
10635 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10636 extension language API.
10637 * cli/cli-script.c (execute_control_command): Update to call
10638 eval_ext_lang_from_control_command.
10639
10640 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10641 enum ext_lang_bt_status values. Update call to
10642 apply_ext_lang_frame_filter.
10643 (mi_cmd_stack_list_locals): Ditto.
10644 (mi_cmd_stack_list_args): Ditto.
10645 (mi_cmd_stack_list_variables): Ditto.
10646 * mi/mi-main.c: Delete #include "python/python-internal.h".
10647 Add #include "extension.h".
10648 (mi_cmd_list_features): Replace reference to python internal variable
10649 gdb_python_initialized with call to ext_lang_initialized_p.
10650
10651 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10652 Update to use enum ext_lang_frame_args. Update to call
10653 apply_ext_lang_frame_filter.
10654 * python/py-framefilter.c (extract_sym): Update to use enum
10655 ext_lang_bt_status.
10656 (extract_value, py_print_type, py_print_value): Ditto.
10657 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10658 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10659 (py_print_frame): Ditto.
10660 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10661 New arg extlang. Update to use enum ext_lang_bt_status.
10662
10663 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10664 finish_python_initialization. Replace with call to
10665 finish_ext_lang_initialization.
10666
10667 * typeprint.c (do_free_global_table): Update to call
10668 free_ext_lang_type_printers.
10669 (create_global_typedef_table): Update to call
10670 start_ext_lang_type_printers.
10671 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10672 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10673 (type_print_options): Change type of global_printers from "void *"
10674 to "struct ext_lang_type_printers *".
10675
10676 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10677 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10678 (gdbpy_preserve_values): Renamed from preserve_python_values.
10679 New arg extlang.
10680 (!HAVE_PYTHON, preserve_python_values): Delete.
10681
10682 * utils.c (quit_flag): Delete, moved to extension.c.
10683 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10684 extension.c.
10685
10686 * eval.c: Delete #include "python/python.h".
10687 * main.c: Delete #include "python/python.h".
10688
10689 * defs.h: Update comment.
10690
10691 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10692
10693 GDB 7.7 released.
10694
10695 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10696
10697 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10698 defined.
10699
10700 2014-02-05 Yao Qi <yao@codesourcery.com>
10701
10702 * remote.c (remote_pass_signals): Remove local 'buf' and use
10703 rs->buf.
10704 (remote_program_signals): Likewise.
10705
10706 2014-02-05 Yao Qi <yao@codesourcery.com>
10707
10708 * ctf.c: Include "inferior.h" and "gdbthread.h".
10709 (CTF_PID): A new macro.
10710 (ctf_open): Call inferior_appeared and add_thread_silent.
10711 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10712 (ctf_thread_alive): New function.
10713 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10714
10715 2014-02-05 Yao Qi <yao@codesourcery.com>
10716
10717 Revert this patch:
10718
10719 2013-05-24 Yao Qi <yao@codesourcery.com>
10720
10721 * tracepoint.c (TFILE_PID): Remove.
10722 (tfile_open): Don't add thread and inferior.
10723 (tfile_close): Don't set 'inferior_ptid'. Don't call
10724 exit_inferior_silent.
10725 (tfile_thread_alive): Remove.
10726 (init_tfile_ops): Don't set field 'to_thread_alive' of
10727 tfile_ops.
10728
10729 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10730
10731 * remote.c (remote_start_remote): Call remote_check_symbols even
10732 if only symbol-file (not file) has been given.
10733
10734 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10735
10736 * gdbarch.sh (skip_entrypoint): New callback.
10737 * gdbarch.c, gdbarch.h: Regenerate.
10738 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10739 * infrun.c (fill_in_stop_func): Likewise.
10740 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10741 (ppc_elfv2_elf_make_msymbol_special): New function.
10742 (ppc_elfv2_skip_entrypoint): Likewise.
10743 (ppc_linux_init_abi): Install them for ELFv2.
10744
10745 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10746
10747 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10748 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10749 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10750 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10751 structures returned in GPRs.
10752
10753 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10754
10755 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10756 offset to the stack parameter list for the ELFv2 ABI.
10757
10758 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10759
10760 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10761 set_gdbarch_convert_from_func_ptr_addr and
10762 set_gdbarch_elf_make_msymbol_special for ELFv1.
10763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10764 function descriptors on ELFv1.
10765 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10766 set up r12 at function entry.
10767
10768 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10769
10770 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10771 (struct gdbarch_tdep): New member elf_abi.
10772
10773 * rs6000-tdep.c: Include "elf/ppc64.h".
10774 (rs6000_gdbarch_init): Detect ELF ABI version.
10775
10776 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10777
10778 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10779 within a register pair holding a DFP 128-bit value on little-endian.
10780 (ppc64_sysv_abi_return_value_base): Likewise.
10781 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10782 (dfp_pseudo_register_write): Likewise.
10783
10784 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10785
10786 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10787 offset on little-endian when passing _Decimal32.
10788 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10789
10790 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10791
10792 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10793 of the overlapped FP register within the VSX register on little-
10794 endian platforms.
10795 (efpr_pseudo_register_write): Likewise.
10796
10797 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10798
10799 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10800 offset on little-endian when passing small structures.
10801
10802 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10803
10804 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10805 (struct ppc64_sysv_argpos): New data structure.
10806 (ppc64_sysv_abi_push_float): Remove.
10807 (ppc64_sysv_abi_push_val): New function.
10808 (ppc64_sysv_abi_push_integer): Likewise.
10809 (ppc64_sysv_abi_push_freg): Likewise.
10810 (ppc64_sysv_abi_push_vreg): Likewise.
10811 (ppc64_sysv_abi_push_param): Likewise.
10812 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10813 (ppc64_sysv_abi_return_value_base): New function.
10814 (ppc64_sysv_abi_return_value): Refactor to use it.
10815
10816 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10817
10818 * NEWS: Document new target powerpc64le-*-linux*.
10819
10820 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10821
10822 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10823 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10824 core dumps.
10825 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10826 register set used in ELF core dumps. Add floating-point register set.
10827
10828 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10829
10830 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10831 dwarf2_to_gdb[] table using symbolic constants. Adjust
10832 penultimate entry from number representing the PC register
10833 to symbolic constant representing the MDR register. Add
10834 constant for the PC register to the end of the table.
10835
10836 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10837
10838 * bsd-kvm.c: Include <sys/param.h>
10839
10840 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10841
10842 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10843
10844 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10845
10846 * ada-lang.h (clear_ada_sym_cache): Delete.
10847
10848 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10849
10850 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10851
10852 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10853
10854 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10855 the sigreturn register save area only if the syscall is
10856 sigreturn.
10857
10858 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10859
10860 * valops.c (value_slice): Minor reformatting.
10861
10862 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10863
10864 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10865
10866 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10867
10868 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10869 New static globals.
10870 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10871 (ada_ignore_descriptive_types_p): New static global.
10872 (find_parallel_type_by_descriptive_type): Return immediately
10873 if ada_ignore_descriptive_types_p is set.
10874 (_initialize_ada_language): Register new commands "maintenance
10875 set ada", "maintenance show ada", "maintenance set ada
10876 ignore-descriptive-types" and "maintenance show ada
10877 ignore-descriptive-types".
10878 * NEWS: Add entry for new "maint ada set/show
10879 ignore-descriptive-types" commands.
10880
10881 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10882
10883 * record-btrace.c (record_btrace_close): Call btrace_teardown
10884 for all threads.
10885
10886 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10887
10888 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10889 "ui-out.h".
10890
10891 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10892
10893 * ada-typeprint (type_is_full_subrange_of_target_type):
10894 New function.
10895 (print_range): Add parameter bounds_prefered_p. If not set,
10896 try printing range types using the name of their base type.
10897 (print_range_type): Add parameter bounds_prefered_p.
10898 Use it in call to print_range.
10899 (print_array_type, ada_print_type): Update calls to print_range
10900 and print_range_type.
10901
10902 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10903
10904 * ada-typeprint.c (print_array_type, print_choices, print_range)
10905 (print_range_bound, print_dynamic_range_bound, print_range_type):
10906 Remove declaration.
10907
10908 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10909
10910 * ada-typeprint.c (print_range): Add missing empty line
10911 after local declaration.
10912
10913 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10914
10915 * ada-valprint.c (print_optional_low_bound): Get index_type's
10916 target type for as long as it is a TYPE_CODE_RANGE.
10917
10918 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10919
10920 * procfs.c (procfs_make_note_section): Remove assertion and
10921 associated comment.
10922
10923 2014-01-24 Yao Qi <yao@codesourcery.com>
10924
10925 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10926 * corelow.c (get_core_siginfo): Likewise.
10927
10928 2014-01-24 Yao Qi <yao@codesourcery.com>
10929
10930 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10931 ULONGEST. Don't check 'len' is negative.
10932 (remote_write_bytes): Change type of 'len' to ULONGEST.
10933
10934 2014-01-23 Tom Tromey <tromey@redhat.com>
10935
10936 PR python/16485:
10937 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10938 Handle exception from frame.block.
10939 (FrameVars.fetch_frame_locals): Likewise.
10940
10941 2014-01-23 Tom Tromey <tromey@redhat.com>
10942
10943 PR python/16487:
10944 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10945 on a NULL pointer. Move "goto error" to correct place.
10946
10947 2014-01-23 Tom Tromey <tromey@redhat.com>
10948
10949 PR python/16491:
10950 * python/py-framefilter.c (apply_frame_filter): Call
10951 ensure_python_env after computing gdbarch.
10952
10953 2014-01-23 Yao Qi <yao@codesourcery.com>
10954
10955 * target.c (raw_memory_xfer_partial): Change argument type
10956 from void * to gdb_byte *.
10957 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10958
10959 2014-01-22 Doug Evans <dje@google.com>
10960
10961 New gdbserver option --debug-format=timestamp.
10962 * NEWS: Mention it.
10963
10964 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10965
10966 * syscalls/s390x-linux.xml: New file.
10967 * syscalls/s390-linux.xml: New file.
10968 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10969 (XML_SYSCALL_FILENAME_S390X): Likewise.
10970 (op_svc): New enum value for SVC opcode.
10971 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10972 (s390_linux_get_syscall_number): New function.
10973 (s390_gdbarch_init): Register '*get_syscall_number' and the
10974 syscall xml file name.
10975 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10976 "s390-linux.xml" and "s390x-linux.xml".
10977 * NEWS: Announce new feature.
10978
10979 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10980
10981 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10982
10983 2014-01-22 Pedro Alves <palves@redhat.com>
10984
10985 * xtensa-config.c: Include defs.h.
10986
10987 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10988
10989 * common/common-utils.h: Add "ARI:" comment beside __func__
10990 reference.
10991
10992 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10993
10994 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10995 documentation a bit.
10996
10997 2014-01-21 Roland McGrath <mcgrathr@google.com>
10998
10999 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11000 * configure: Regenerate.
11001 * aclocal.m4: Regenerate.
11002 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11003 New substituted variables.
11004 (install-strip): New target.
11005 (INSTALL_SCRIPT): New substituted variable.
11006 (FLAGS_TO_PASS): Add it.
11007 (install-only): Use $(INSTALL_SCRIPT) rather than
11008 $(INSTALL_PROGRAM) for gcore.
11009
11010 2014-01-20 Tom Tromey <tromey@redhat.com>
11011
11012 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11013 together.
11014
11015 2014-01-20 Tom Tromey <tromey@redhat.com>
11016
11017 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11018 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11019 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11020 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11021 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11022 (struct cmd_list_element) <flags>: Remove.
11023 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11024 doc_allocated>: New fields.
11025 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11026 bitfields.
11027 * maint.c (maintenance_do_deprecate): Update.
11028 * top.c (execute_command): Update.
11029
11030 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11031
11032 * xtensa-linux-nat.c: Include asm/ptrace.h.
11033
11034 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11035
11036 * Makefile.in (SFILES): Add d-support.c.
11037 (COMMON_OBS): Add d-support.o.
11038 * d-lang.h (d_parse_symbol): Add comment, now defined in
11039 d-support.c.
11040 * d-lang.c (parse_call_convention)
11041 (parse_attributes, parse_function_types)
11042 (parse_function_args, parse_type, parse_identifier)
11043 (call_convention_p, d_parse_symbol): Move functions to ...
11044 * d-support.c: ... New file.
11045
11046 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11047
11048 * d-lang.h (d_parse_symbol): Add declaration.
11049 * d-lang.c (extract_identifiers)
11050 (extract_type_info): Remove functions.
11051 (parse_call_convention, parse_attributes)
11052 (parse_function_types, parse_function_args)
11053 (parse_type, parse_identifier, call_convention_p)
11054 (d_parse_symbol): New functions.
11055 (d_demangle): Use d_parse_symbol to demangle D symbols.
11056
11057 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11058
11059 * d-lang.h (struct builtin_d_type): New data type.
11060 (builtin_d_type): Add declaration.
11061 * d-lang.c (d_language_arch_info, build_d_types)
11062 (builtin_d_type): New functions.
11063 (enum d_primitive_types): New data type.
11064 (d_language_defn): Change c_language_arch_info to
11065 d_language_arch_info.
11066 (d_type_data): New static variable.
11067 (_initialize_d_language): Initialize d_type_data.
11068
11069 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11070
11071 * d-lang.h (d_main_name): Add declaration.
11072 * d-lang.c (d_main_name): New function.
11073 * symtab.c (find_main_name): Add call to d_main_name.
11074
11075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11076
11077 * d-lang.c (d_language_defn): Change macro_expansion_c to
11078 macro_expansion_no.
11079
11080 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11081
11082 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11083
11084 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11085
11086 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11087 gdb_exception" declaration.
11088 * remote.c (getpkt_or_notif_sane): Likewise.
11089
11090 2014-01-17 Doug Evans <dje@google.com>
11091
11092 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11093 function, contents of dirnames_to_char_ptr_vec_append moved here.
11094 (delim_string_to_char_ptr_vec): New function.
11095 (dirnames_to_char_ptr_vec_append): Rewrite.
11096 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11097
11098 2014-01-17 Doug Evans <dje@google.com>
11099
11100 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11101 and moved here ...
11102 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11103 #include "common-utils.h".
11104 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11105 * common/vec.h (VEC_ASSERT_PASS): Update.
11106 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11107 (MACH_CHECK_ERROR): Update.
11108
11109 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11110
11111 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11112 comments.
11113 * gdbarch.h: Regenerate.
11114
11115 2014-01-16 Tom Tromey <tromey@redhat.com>
11116
11117 * value.c (struct value) <regnum>: Move earlier.
11118
11119 2014-01-16 Tom Tromey <tromey@redhat.com>
11120
11121 * remote.c (extended_remote_create_inferior): Rename from
11122 extended_remote_create_inferior_1. Add "ops" argument. Remove
11123 old implementation.
11124
11125 2014-01-16 Pedro Alves <palves@redhat.com>
11126
11127 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11128 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11129 the backchain.
11130
11131 2014-01-16 Doug Evans <dje@google.com>
11132
11133 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11134
11135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11136
11137 * btrace.h (btrace_thread_flag): New.
11138 (struct btrace_thread_info) <flags>: New.
11139 * record-btrace.c (record_btrace_resume_thread)
11140 (record_btrace_find_thread_to_move, btrace_step_no_history)
11141 (btrace_step_stopped, record_btrace_start_replaying)
11142 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11143 (record_btrace_find_resume_thread): New.
11144 (record_btrace_resume, record_btrace_wait): Extend.
11145 (record_btrace_can_execute_reverse): New.
11146 (record_btrace_open): Fail in non-stop mode.
11147 (record_btrace_set_replay): Split into this, ...
11148 (record_btrace_stop_replaying): ... this, ...
11149 (record_btrace_clear_histories): ... and this.
11150 (init_record_btrace_ops): Init to_can_execute_reverse.
11151 * NEWS: Announce it.
11152
11153 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11154
11155 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11156 (forward_target_decr_pc_after_break)
11157 (target_decr_pc_after_break): New.
11158 * target.c (forward_target_decr_pc_after_break)
11159 (target_decr_pc_after_break): New.
11160 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11161 instead of gdbarch_decr_pc_after_break.
11162 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11163 instead of gdbarch_decr_pc_after_break.
11164 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11165 instead of gdbarch_decr_pc_after_break.
11166 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11167 instead of gdbarch_decr_pc_after_break.
11168 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11169 instead of gdbarch_decr_pc_after_break.
11170 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11171 instead of gdbarch_decr_pc_after_break.
11172
11173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11174
11175 * btrace.c: Include regcache.h.
11176 (btrace_add_pc): New.
11177 (btrace_enable): Call btrace_add_pc.
11178 (btrace_is_empty): New.
11179 * btrace.h (btrace_is_empty): New.
11180 * record-btrace.c (require_btrace, record_btrace_info): Call
11181 btrace_is_empty.
11182
11183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11184
11185 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11186 Support delta reads.
11187 (linux_disable_btrace): Change return type.
11188 * common/linux-btrace.h (linux_read_btrace): Change parameters
11189 and return type to allow error reporting. Update users.
11190 (linux_disable_btrace): Change return type. Update users.
11191 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11192 New.
11193 (btrace_error): New.
11194 (btrace_block) <begin>: Comment on BEGIN == 0.
11195 * btrace.c (btrace_compute_ftrace): Start from the end of
11196 the current trace.
11197 (btrace_stitch_trace, btrace_clear_history): New.
11198 (btrace_fetch): Read delta trace, return if replaying.
11199 (btrace_clear): Move clear history code to btrace_clear_history.
11200 (parse_xml_btrace): Throw an error if parsing failed.
11201 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11202 and return type to allow error reporting.
11203 (target_read_btrace): Change parameters and return type to allow
11204 error reporting.
11205 * target.c (target_read_btrace): Update.
11206 * remote.c (remote_read_btrace): Support delta reads. Pass
11207 errors on.
11208 * NEWS: Announce it.
11209
11210 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11211
11212 * record.h (record_btrace_frame_unwind)
11213 (record_btrace_tailcall_frame_unwind): New declarations.
11214 * dwarf2-frame: Include record.h
11215 (dwarf2_frame_cfa): Throw an error for btrace frames.
11216 * record-btrace.c: Include hashtab.h.
11217 (btrace_get_bfun_name): New.
11218 (btrace_call_history): Call btrace_get_bfun_name.
11219 (struct btrace_frame_cache): New.
11220 (bfcache): New.
11221 (bfcache_hash, bfcache_eq, bfcache_new): New.
11222 (btrace_get_frame_function): New.
11223 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11224 (record_btrace_frame_this_id): Compute own id.
11225 (record_btrace_frame_prev_register): Provide PC, throw_error
11226 for all other registers.
11227 (record_btrace_frame_sniffer): Detect btrace frames.
11228 (record_btrace_tailcall_frame_sniffer): New.
11229 (record_btrace_frame_dealloc_cache): New.
11230 (record_btrace_frame_unwind): Add new functions.
11231 (record_btrace_tailcall_frame_unwind): New.
11232 (_initialize_record_btrace): Allocate cache.
11233 * btrace.c (btrace_clear): Call reinit_frame_cache.
11234 * NEWS: Announce it.
11235
11236 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11237
11238 * record-btrace.c (record_btrace_set_replay)
11239 (record_btrace_goto_begin, record_btrace_goto_end)
11240 (record_btrace_goto): New.
11241 (init_record_btrace_ops): Initialize them.
11242 * NEWS: Announce it.
11243
11244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11245
11246 * record-btrace.c (record_btrace_find_new_threads)
11247 (record_btrace_thread_alive): New.
11248 (init_record_btrace_ops): Initialize to_find_new_threads and
11249 to_thread_alive.
11250
11251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11252
11253 * record-btrace.c (record_btrace_resume): New.
11254 (record_btrace_wait): New.
11255 (init_record_btrace_ops): Initialize to_wait and to_resume.
11256
11257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11258
11259 * record-btrace.c (record_btrace_xfer_partial)
11260 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11261 (record_btrace_allow_memory_access): New.
11262 (init_record_btrace_ops): Initialize new methods.
11263 * target.c (raw_memory_xfer_partial): Bail out if target reports
11264 that this memory is not available.
11265
11266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11267
11268 * target.h (target_ops) <to_insert_breakpoint>
11269 <to_remove_breakpoint>: Add target_ops parameter.
11270 (forward_target_insert_breakpoint): New.
11271 (forward_target_remove_breakpoint): New.
11272 (memory_remove_breakpoint, memory_insert_breakpoint):
11273 Add target_ops parameter.
11274 * target.c (target_insert_breakpoint): Split into this and ...
11275 (forward_target_insert_breakpoint): ... this.
11276 (target_remove_breakpoint): Split into this and ...
11277 (forward_target_remove_breakpoint): ... this.
11278 (debug_to_insert_breakpoint): Add target_ops parameter.
11279 Call forward_target_insert_breakpoint.
11280 (debug_to_remove_breakpoint): Add target_ops parameter.
11281 Call forward_target_remove_breakpoint.
11282 (update_current_target): Do not inherit or default to_insert_breakpoint
11283 and to_remove_breakpoint.
11284 * corelow.c (ignore): Add target_ops parameter.
11285 * exec.c (ignore): Add target_ops parameter.
11286 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11287 Add target_ops parameter.
11288 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11289 Add target_ops parameter.
11290 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11291 Add target_ops parameter.
11292 * record-full.c (record_full_beneath_to_insert_breakpoint)
11293 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11294 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11295 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11296 (record_full_core_remove_breakpoint): Add target_ops parameter.
11297 Update users.
11298 (record_full_beneath_to_insert_breakpoint_ops)
11299 (record_full_beneath_to_remove_breakpoint_ops)
11300 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11301 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11302 tmp_to_remove_breakpoint_ops,
11303 record_full_beneath_to_insert_breakpoint_ops, and
11304 record_full_beneath_to_remove_breakpoint_ops.
11305 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11306 (m32r_remove_breakpoint): Add target_ops parameter.
11307 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11308 Add target_ops parameter.
11309 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11310 Add target_ops parameter.
11311
11312 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11313 Markus Metzger <markus.t.metzger@intel.com>
11314
11315 * record-btrace.c: Include frame-unwind.h.
11316 (record_btrace_frame_unwind_stop_reason)
11317 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11318 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11319 New.
11320 (init_record_btrace_ops): Install it.
11321
11322 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11323
11324 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11325 get_prev_frame_1.
11326
11327 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11328
11329 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11330 earlier.
11331
11332 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 * frame-unwind.c: Include target.h.
11335 (frame_unwind_try_unwinder): New function with code from ...
11336 (frame_unwind_find_by_frame): ... here. New variable
11337 unwinder_from_target, call also target_get_unwinder)
11338 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11339 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11340 * target.h (struct target_ops): New fields to_get_unwinder and
11341 to_get_tailcall_unwinder.
11342 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11343
11344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11345
11346 * record-btrace.c (record_btrace_fetch_registers)
11347 (record_btrace_store_registers)
11348 (record_btrace_to_prepare_to_store): New.
11349 (init_record_btrace_ops): Add the above.
11350
11351 2014-01-16 Tom Tromey <tromey@redhat.com>
11352
11353 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11354 * target.h (struct target_ops) <to_prepare_to_store>: Add
11355 argument.
11356 (target_prepare_to_store): Add argument.
11357 * target.c (debug_to_prepare_to_store): Add argument.
11358 (update_current_target): Update.
11359 * remote.c (remote_prepare_to_store): Add 'self' argument.
11360 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11361 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11362 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11363 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11364 argument.
11365 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11366 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11367 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11368 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11369 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11370
11371 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11372
11373 * btrace.h (replay) <replay>: New.
11374 (btrace_is_replaying): New.
11375 * btrace.c (btrace_clear): Free replay iterator.
11376 (btrace_is_replaying): New.
11377 * record-btrace.c (record_btrace_is_replaying): New.
11378 (record_btrace_info): Print insn number if replaying.
11379 (record_btrace_insn_history): Start at replay position.
11380 (record_btrace_call_history): Start at replay position.
11381 (init_record_btrace_ops): Init to_record_is_replaying.
11382
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11384
11385 * record-btrace.c (record_btrace_insn_history_range): Include
11386 end.
11387 (record_btrace_insn_history_from): Adjust range.
11388 (record_btrace_call_history_range): Include
11389 end.
11390 (record_btrace_call_history_from): Adjust range.
11391 * NEWS: Announce changes.
11392
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11394
11395 * record.h (enum record_print_flag)
11396 <record_print_indent_calls>: New.
11397 * record.c (get_call_history_modifiers): Recognize /c modifier.
11398 (_initialize_record): Document /c modifier.
11399 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11400 Reorder fields. Optionally indent the function name. Update
11401 all users.
11402 * NEWS: Announce changes.
11403
11404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11405
11406 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11407
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11409
11410 * btrace.c (ftrace_new_function): Start counting at one.
11411 * record-btrace.c (record_btrace_info): Adjust number of calls
11412 and insns.
11413 * NEWS: Announce it.
11414
11415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11416
11417 * record-btrace.c (btrace_call_history_insn_range): Print
11418 insn range as [begin, end].
11419
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11421
11422 * btrace.h (struct btrace_func_link): New.
11423 (enum btrace_function_flag): New.
11424 (struct btrace_inst): Rename to ...
11425 (struct btrace_insn): ...this. Update all users.
11426 (struct btrace_func) <ibegin, iend>: Remove.
11427 (struct btrace_func_link): New.
11428 (struct btrace_func): Rename to ...
11429 (struct btrace_function): ...this. Update all users.
11430 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11431 (number, level, flags>: New.
11432 (struct btrace_insn_iterator): Rename to ...
11433 (struct btrace_insn_history): ...this.
11434 Update all users.
11435 (struct btrace_insn_iterator, btrace_call_iterator): New.
11436 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11437 (struct btrace_target_info) <begin, end, level>
11438 <insn_history, call_history>: New.
11439 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11440 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11441 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11442 (btrace_call_number, btrace_call_begin, btrace_call_end)
11443 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11444 (btrace_find_function_by_number, btrace_set_insn_history)
11445 (btrace_set_call_history): New.
11446 * btrace.c (btrace_init_insn_iterator)
11447 (btrace_init_func_iterator, compute_itrace): Remove.
11448 (ftrace_print_function_name, ftrace_print_filename)
11449 (ftrace_skip_file): Change
11450 parameter to const.
11451 (ftrace_init_func): Remove.
11452 (ftrace_debug): Use new btrace_function fields.
11453 (ftrace_function_switched): Also consider gaining and
11454 losing symbol information).
11455 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11456 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11457 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11458 New.
11459 (ftrace_new_function): Move. Remove debug print.
11460 (ftrace_update_lines, ftrace_update_insns): New.
11461 (ftrace_update_function): Check for call, ret, and jump.
11462 (compute_ftrace): Renamed to ...
11463 (btrace_compute_ftrace): ...this. Rewritten to compute call
11464 stack.
11465 (btrace_fetch, btrace_clear): Updated.
11466 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11467 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11468 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11469 (btrace_call_number, btrace_call_begin, btrace_call_end)
11470 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11471 (btrace_find_function_by_number, btrace_set_insn_history)
11472 (btrace_set_call_history): New.
11473 * record-btrace.c (require_btrace): Use new btrace thread
11474 info fields.
11475 (record_btrace_info, btrace_insn_history)
11476 (record_btrace_insn_history, record_btrace_insn_history_range):
11477 Use new btrace thread info fields and new iterator.
11478 (btrace_func_history_src_line): Rename to ...
11479 (btrace_call_history_src_line): ...this. Use new btrace
11480 thread info fields.
11481 (btrace_func_history): Rename to ...
11482 (btrace_call_history): ...this. Use new btrace thread info
11483 fields and new iterator.
11484 (record_btrace_call_history, record_btrace_call_history_range):
11485 Use new btrace thread info fields and new iterator.
11486
11487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11488
11489 * frame.h (frame_id_build_unavailable_stack_special): New.
11490 * frame.c (frame_id_build_unavailable_stack_special): New.
11491
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11495 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11496 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11497 to gdbarch.
11498 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11499 (i386_insn_is_jump, i386_jmp_p): New.
11500 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11501 insn_is_jump to gdbarch.
11502 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11503 * gdbarch.h: Regenerated.
11504 * gdbarch.c: Regenerated.
11505 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11506 (default_insn_is_jump): New.
11507 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11508 (default_insn_is_jump): New.
11509
11510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11511
11512 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11513 Change to ...
11514 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11515 (btrace_read_type) <btrace_read_new>: Change to ...
11516 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11517
11518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11519
11520 * common/linux-btrace.c (linux_read_btrace): Free trace from
11521 previous iteration.
11522
11523 2014-01-15 Doug Evans <dje@google.com>
11524
11525 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11526 uint32_t.
11527
11528 2014-01-15 Tom Tromey <tromey@redhat.com>
11529
11530 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11531 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11532 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11533 (set_objfile_main_name): New function.
11534 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11535 language_of_main>: New fields.
11536 (set_objfile_main_name): Declare.
11537 * symtab.c (find_main_name): Loop over objfiles to find the main
11538 name and language.
11539 (set_main_name): Now static.
11540 (get_main_info): Add comment.
11541 * symtab.h (set_main_name): Don't declare.
11542
11543 2014-01-15 Tom Tromey <tromey@redhat.com>
11544
11545 * symtab.c (main_progspace_key): New global.
11546 (struct main_info): New.
11547 (name_of_main, language_of_main): Remove.
11548 (get_main_info, main_info_cleanup): New function.
11549 (set_main_name, main_name, main_language): Use get_main_info.
11550 (_initialize_symtab): Initialize main_progspace_key.
11551
11552 2014-01-15 Tom Tromey <tromey@redhat.com>
11553
11554 * dbxread.c (process_one_symbol): Update.
11555 * dwarf2read.c (read_partial_die): Update.
11556 * symfile.c (set_initial_language): Call main_language.
11557 * symtab.c (language_of_main): Now static.
11558 (set_main_name): Add 'lang' parameter.
11559 (find_main_name): Update.
11560 (main_language): New function.
11561 (symtab_observer_executable_changed): Update.
11562 * symtab.h (set_main_name): Update.
11563 (language_of_main): Remove.
11564 (main_language): Declare.
11565
11566 2014-01-15 Tom Tromey <tromey@redhat.com>
11567
11568 * symfile.c (init_entry_point_info): Use new "initialized" field.
11569 Update.
11570 * objfiles.h (struct entry_point) <initialized>: New field.
11571 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11572 (struct objfile) <ei>: ...here. Remove.
11573 * objfiles.c (entry_point_address_query): Update.
11574
11575 2014-01-15 Tom Tromey <tromey@redhat.com>
11576
11577 * objfiles.c (entry_point_address_query): Relocate entry point
11578 address.
11579 (objfile_relocate1): Do not relocate entry point address.
11580 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11581 <the_bfd_section_index>: New field.
11582 * symfile.c (init_entry_point_info): Find the entry point's
11583 section.
11584
11585 2014-01-15 Tom Tromey <tromey@redhat.com>
11586
11587 * solib-frv.c (enable_break): Use entry_point_address_query.
11588
11589 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11590
11591 * NEWS: Add note on improved process record-replay on
11592 arm*-linux* targets.
11593
11594 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11595
11596 * arm-tdep.c (enum arm_record_result): New enum.
11597 (arm_record_unsupported_insn): New function.
11598 (arm_record_coproc_data_proc): Removed.
11599 (thumb2_record_ld_st_multiple): New function.
11600 (thumb2_record_ld_st_dual_ex_tbb): New function.
11601 (thumb2_record_data_proc_sreg_mimm): New function.
11602 (thumb2_record_ps_dest_generic): New function.
11603 (thumb2_record_branch_misc_cntrl): New function.
11604 (thumb2_record_str_single_data): New function.
11605 (thumb2_record_ld_mem_hints): New function.
11606 (thumb2_record_ld_word): New function.
11607 (thumb2_record_lmul_lmla_div): New function.
11608 (thumb2_record_decode_insn_handler): New function.
11609 (decode_insn): Add thumb32 instruction handlers.
11610
11611 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11612
11613 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11614 (struct arm_linux_record_tdep): Declare.
11615 (arm_canonicalize_syscall): New function.
11616 (arm_all_but_pc_registers_record): New function.
11617 (arm_linux_syscall_record): New function.
11618 (arm_linux_init_abi): Add syscall recording constructs.
11619 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11620 decoding. (arm_record_coproc_data_proc): Update arm syscall
11621 decoding.
11622 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11623 <arm_syscall_record>: New field.
11624 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11625 gdb_target_obs.
11626
11627 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11628
11629 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11630 register for push instruction recording.
11631
11632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11633
11634 * arm-tdep.c (thumb_record_misc): Update to correct logical
11635 error while recording ldm, ldmia and pop instructions.
11636
11637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11638
11639 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11640
11641 2014-01-15 Pedro Alves <palves@redhat.com>
11642
11643 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11644 (go32_resume, go32_fetch_registers, store_register)
11645 (go32_store_registers, go32_prepare_to_store)
11646 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11647 (go32_create_inferior, go32_can_run, go32_terminal_init)
11648 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11649 declarations.
11650
11651 2014-01-15 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (async_callback_ftype): New typedef.
11654 (struct target_ops) <to_async>: Use it.
11655
11656 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11657
11658 * python/py-value.c (get_field_type): Remove unnecessary curly
11659 braces for single-statement if block.
11660
11661 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11662
11663 * python/py-type.c (convert_field): Add missing empty line
11664 after declarations.
11665
11666 2014-01-14 Doug Evans <dje@google.com>
11667
11668 * symfile.h (expand_symtabs_matching): Renamed from
11669 expand_partial_symbol_names. Update prototype.
11670 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11671 * symfile.c (expand_symtabs_matching): Renamed from
11672 expand_partial_symbol_names. New args file_matcher, kind.
11673 Rename arg fun to symbol_matcher.
11674 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11675 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11676 ada_expand_partial_symbol_name.
11677 (ada_make_symbol_completion_list): Update to call
11678 expand_symtabs_matching.
11679 (ada_add_global_exceptions): Call expand_symtabs_matching.
11680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11681 call map_symbol_filenames.
11682 * symtab.c (sources_info): Update to call map_symbol_filenames.
11683 (search_symbols): Call expand_symtabs_matching.
11684 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11685 (default_make_symbol_completion_list_break_on): Update to call
11686 expand_symtabs_matching.
11687 (make_source_files_completion_list): Update to call
11688 map_symbol_filenames.
11689
11690 2014-01-14 Doug Evans <dje@google.com>
11691
11692 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11693 (expand_symtabs_symbol_matcher_ftype): New typedef.
11694 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11695 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11696 * symfile.c (expand_partial_symbol_names): Update to use
11697 expand_symtabs_symbol_matcher_ftype.
11698 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11699 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11700 Arg name_matcher renamed to symbol_matcher.
11701 * psymtab.c (recursively_search_psymtabs): Update to use
11702 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11703 sym_matcher.
11704 (expand_symtabs_matching_via_partial): Update to use
11705 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11706 Arg name_matcher renamed to symbol_matcher.
11707
11708 2014-01-14 Doug Evans <dje@google.com>
11709
11710 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11711 (map_partial_symbol_filenames): Ditto.
11712 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11713 (map_partial_symbol_filenames): Ditto.
11714 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11715 (map_partial_symbol_filenames): Ditto.
11716 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11717 (map_partial_symbol_filenames): Ditto.
11718 * symtab.c: Delete #include "psymtab.h".
11719
11720 2014-01-14 Pedro Alves <palves@redhat.com>
11721 Tom Tromey <tromey@redhat.com>
11722
11723 * infrun.c (use_displaced_stepping): Use find_record_target
11724 instead of RECORD_IS_USED.
11725 (adjust_pc_after_break): Use record_full_is_used instead of
11726 RECORD_IS_USED.
11727 * record-btrace.c (record_btrace_open): Call record_preopen
11728 instead of checking RECORD_IS_USED.
11729 * record-full.c (record_full_shortname)
11730 (record_full_core_shortname): New globals.
11731 (record_full_is_used): New function.
11732 (find_full_open): Call record_preopen instead of checking
11733 RECORD_IS_USED.
11734 (init_record_full_ops): Set the target's shortname to
11735 record_full_shortname.
11736 (init_record_full_core_ops): Set the target's shortname to
11737 record_full_core_shortname.
11738 * record-full.h (record_full_is_used): Declare.
11739 * record.c (find_record_target): Make extern.
11740 (record_preopen): New function.
11741 * record.h (RECORD_IS_USED): Delete macro.
11742 (find_record_target, record_preopen): Declare functions.
11743
11744 2014-01-14 Yao Qi <yao@codesourcery.com>
11745
11746 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11747 'len''s type to ULONGEST.
11748 (core_xfer_shared_libraries_aix): Likewise.
11749 * gdbarch.c, gdbarch.h: Regenerated.
11750 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11751 Change type of 'len' to ULONGEST.
11752 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11753 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11754
11755 2014-01-14 Yao Qi <yao@codesourcery.com>
11756
11757 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11758 type of 'len' to ULONGEST.
11759 (linux_xfer_osdata_processgroups): Likewise.
11760 (linux_xfer_osdata_threads): Likewise.
11761 (linux_xfer_osdata_fds): Likewise.
11762 (linux_xfer_osdata_isockets): Likewise.
11763 (linux_xfer_osdata_shm): Likewise.
11764 (linux_xfer_osdata_sem): Likewise.
11765 (linux_xfer_osdata_msg): Likewise.
11766 (linux_common_xfer_osdata): Likewise.
11767 (struct osdata_type) <getter>: Likewise.
11768 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11769 the declaration.
11770
11771 2014-01-14 Yao Qi <yao@codesourcery.com>
11772
11773 * target.h (target_xfer_partial_ftype): Update.
11774 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11775 ULONGEST.
11776 * aix-thread.c (aix_thread_xfer_partial): Change type of
11777 argument 'len' to ULONGEST.
11778 * auxv.c (procfs_xfer_auxv): Likewise.
11779 (ld_so_xfer_auxv): Likewise.
11780 (memory_xfer_auxv): Likewise.
11781 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11782 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11783 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11784 * corelow.c (core_xfer_partial): Likewise.
11785 * ctf.c (ctf_xfer_partial): Likewise.
11786 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11787 '%u'.
11788 (darwin_read_dyld_info): Likewise.
11789 (darwin_xfer_partial): Likewise.
11790 * exec.c (section_table_xfer_memory_partial): Likewise.
11791 (exec_xfer_partial): Likewise.
11792 * exec.h (section_table_xfer_memory_partial): Update
11793 declaration.
11794 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11795 instead of plongest.
11796 (gnu_xfer_partial): Likewise.
11797 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11798 (ia64_hpux_xfer_solib_got): Likewise.
11799 (ia64_hpux_xfer_partial): Likewise.
11800 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11801 * inf-ptrace.c (inf_ptrace_xfer_partial):
11802 * inf-ttrace.c (inf_ttrace_xfer_partial):
11803 * linux-nat.c (linux_xfer_siginfo): Likewise.
11804 (linux_nat_xfer_partial): Likewise.
11805 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11806 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11807 * monitor.c (monitor_xfer_memory): Likewise.
11808 (monitor_xfer_partial): Likewise.
11809 * procfs.c (procfs_xfer_partial): Likewise.
11810 * record-full.c (record_full_xfer_partial): Likewise.
11811 (record_full_core_xfer_partial): Likewise.
11812 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11813 instead of plongest.
11814 (gdbsim_xfer_partial): Likewise.
11815 * remote.c (remote_xfer_partial): Likewise.
11816 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11817 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11818 declaration.
11819 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11820 (rs6000_xfer_shared_libraries): Likewise.
11821 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11822 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11823 (sparc_xfer_partial): Likewise.
11824 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11825 (spu_xfer_partial): Likewise.
11826 * spu-multiarch.c (spu_xfer_partial): Likewise.
11827 * target.c (target_read_live_memory): Likewise.
11828 (memory_xfer_live_readonly_partial): Likewise.
11829 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11830 (target_xfer_partial, default_xfer_partial): Likewise.
11831 (current_xfer_partial): Likewise.
11832 * tracepoint.c (tfile_xfer_partial): Likewise.
11833 * windows-nat.c (windows_xfer_memory): Likewise. Call
11834 pulongest instead of plongest.
11835 (windows_xfer_partial): Likewise.
11836 (windows_xfer_shared_libraries): Likewise.
11837
11838 2014-01-14 Yao Qi <yao@codesourcery.com>
11839
11840 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11841 target_xfer_partial_ftype.
11842
11843 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11844
11845 PR python/15464
11846 PR python/16113
11847 * valops.c (value_struct_elt_bitpos): New function
11848 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11849 object to 'None' if the field name is an empty string ("").
11850 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11851 attribute to look for a field when 'name' is 'None'.
11852 (get_field_type): New function
11853
11854 2014-01-13 Doug Evans <dje@google.com>
11855
11856 PR symtab/16426
11857 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11858 (try_open_dwop_file): Ditto.
11859 * gdb_bfd.c: #include "vec.h".
11860 (bfdp): New typedef.
11861 (struct gdb_bfd_data): New member included_bfds.
11862 (gdb_bfd_unref): Unref all included bfds.
11863 (gdb_bfd_record_inclusion): New function.
11864 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11865
11866 2014-01-13 Tom Tromey <tromey@redhat.com>
11867
11868 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11869
11870 2014-01-13 Tom Tromey <tromey@redhat.com>
11871
11872 * defs.h (use_windows): Remove.
11873 * gdb.c (main): Update.
11874 * main.c (captured_main, gdb_main): Update.
11875 * main.h (struct captured_main_args) <use_windows>: Remove.
11876 * top.c (use_windows): Remove.
11877
11878 2014-01-13 Tom Tromey <tromey@redhat.com>
11879
11880 * defs.h (deprecated_flush_hook): Remove.
11881
11882 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11883
11884 PR threads/16216
11885 * linux-thread-db.c (try_thread_db_load): Add parameter
11886 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11887 (try_thread_db_load_from_pdir_1): Move it there from here.
11888 (try_thread_db_load_from_sdir): Update caller.
11889 (try_thread_db_load_from_dir): Move it there from here.
11890
11891 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11892
11893 * regformats/regdat.sh: Always rewrite the register file.
11894
11895 2014-01-13 Pedro Alves <palves@redhat.com>
11896
11897 * Makefile.in (CHECK_HEADERS): New variable.
11898 (check-headers:): New rule.
11899
11900 2014-01-13 Tom Tromey <tromey@redhat.com>
11901
11902 * cli/cli-setshow.c (do_set_command): Update.
11903 * defs.h (deprecated_set_hook): Remove.
11904 * top.c (deprecated_set_hook): Remove.
11905
11906 2014-01-13 Pedro Alves <palves@redhat.com>
11907
11908 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11909 the tracepoint if the PC is a pseudo-register.
11910
11911 2014-01-13 Tom Tromey <tromey@redhat.com>
11912
11913 * defs.h (XCALLOC): Remove.
11914 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11915 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11916 * dwarf2loc.c (allocate_piece_closure): Likewise.
11917 * elfread.c (elf_symfile_segments): Likewise.
11918 (elf_symfile_segments): Likewise.
11919 * gdbtypes.c (copy_type_recursive): Likewise.
11920 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11921 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11922 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11923 XCALLOC.
11924 * mt-tdep.c (mt_gdbarch_init): Likewise.
11925 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11926 XCALLOC.
11927 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11928 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11929 * registry.c (registry_alloc_data): Likewise.
11930 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11931 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11932 * serial.c (serial_fdopen_ops): Likewise.
11933 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11934 XCALLOC.
11935 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11936 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11937 not XCALLOC.
11938
11939 2014-01-13 Tom Tromey <tromey@redhat.com>
11940
11941 * defs.h (XMALLOC): Remove.
11942 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11943 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11944 * cli-out.c (struct ui_out *): Likewise.
11945 * cli/cli-dump.c (add_dump_command): Likewise.
11946 (add_dump_command): Likewise.
11947 * complaints.c (get_complaints): Likewise.
11948 (find_complaint): Likewise.
11949 * dwarf2-frame.c (execute_cfa_program): Likewise.
11950 * dwarf2read.c (abbrev_table_read_table): Likewise.
11951 * gdbarch.sh: Likewise.
11952 * gdbarch.c: Rebuild.
11953 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11954 * interps.c (interp_new): Likewise.
11955 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11956 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11957 * mi/mi-console.c (mi_console_file_new): Likewise.
11958 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11959 * mi/mi-out.c (mi_out_new): Likewise.
11960 * mi/mi-parse.c (mi_parse): Likewise.
11961 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11962 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11963 * observer.c (xalloc_observer_list_node): Likewise.
11964 * regcache.c (regcache_xmalloc_1): Likewise.
11965 * reggroups.c (reggroup_new): Likewise.
11966 (_initialize_reggroup): Likewise.
11967 * registry.c (register_data_with_cleanup): Likewise.
11968 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11969 * ser-base.c (serial_ttystate): Likewise.
11970 * ser-mingw.c (make_pipe_state): Likewise.
11971 * ser-pipe.c (pipe_open): Likewise.
11972 * serial.c (serial_open): Likewise.
11973 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11974 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11975 (tui_alloc_win_info): Likewise.
11976 (tui_add_content_elements): Likewise.
11977 * tui/tui-file.c (tui_file_new): Likewise.
11978 * tui/tui-out.c (tui_out_new): Likewise.
11979 * ui-file.c (mem_file_new): Likewise.
11980 * ui-out.c (push_level): Likewise.
11981 (make_cleanup_ui_out_end): Likewise.
11982 (append_header_to_list): Likewise.
11983 (ui_out_new): Likewise.
11984 * user-regs.c (user_reg_add_builtin): Likewise.
11985
11986 2014-01-13 Tom Tromey <tromey@redhat.com>
11987
11988 * defs.h (XZALLOC): Remove.
11989 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11990 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11991 (get_ada_tasks_inferior_data): Likewise.
11992 * auto-load.c (get_auto_load_pspace_data): Likewise.
11993 * auxv.c (get_auxv_inferior_data): Likewise.
11994 * bfd-target.c (target_bfd_reopen): Likewise.
11995 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11996 (deprecated_insert_raw_breakpoint): Likewise.
11997 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11998 * corelow.c (core_open): Likewise.
11999 * darwin-nat.c (darwin_check_new_threads): Likewise.
12000 (darwin_attach_pid): Likewise.
12001 * dummy-frame.c (dummy_frame_push): Likewise.
12002 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12003 * dwarf2loc.c (allocate_piece_closure): Likewise.
12004 * elfread.c (elf_symfile_segments): Likewise.
12005 * eval.c (ptrmath_type_p): Likewise.
12006 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12007 * gdbtypes.c (alloc_type_arch): Likewise.
12008 (alloc_type_instance): Likewise.
12009 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12010 * inf-child.c (inf_child_can_use_agent): Likewise.
12011 * inflow.c (get_inflow_inferior_data): Likewise.
12012 * infrun.c (save_infcall_suspend_state): Likewise.
12013 * jit.c (jit_reader_load): Likewise.
12014 (get_jit_objfile_data): Likewise.
12015 (get_jit_program_space_data): Likewise.
12016 (jit_object_open_impl): Likewise.
12017 (jit_symtab_open_impl): Likewise.
12018 (jit_block_open_impl): Likewise.
12019 (jit_frame_sniffer): Likewise.
12020 * linux-fork.c (add_fork): Likewise.
12021 * maint.c (make_command_stats_cleanup): Likewise.
12022 * objfiles.c (get_objfile_pspace_data): Likewise.
12023 * opencl-lang.c (struct lval_closure): Likewise.
12024 * osdata.c (osdata_start_osdata): Likewise.
12025 * progspace.c (new_address_space): Likewise.
12026 (add_program_space): Likewise.
12027 * remote-sim.c (get_sim_inferior_data): Likewise.
12028 * sh-tdep.c (sh_gdbarch_init): Likewise.
12029 * skip.c (Ignore): Likewise.
12030 (skip_delete_command): Likewise.
12031 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12032 (library_list_start_library): Likewise.
12033 (solib_aix_current_sos): Likewise.
12034 * solib-darwin.c (get_darwin_info): Likewise.
12035 (darwin_current_sos): Likewise.
12036 * solib-dsbt.c (get_dsbt_info): Likewise.
12037 * solib-ia64-hpux.c (new_so_list): Likewise.
12038 (ia64_hpux_get_solib_linkage_addr): Likewise.
12039 * solib-spu.c (append_ocl_sos): Likewise.
12040 (spu_current_sos): Likewise.
12041 * solib-svr4.c (get_svr4_info): Likewise.
12042 (svr4_keep_data_in_core): Likewise.
12043 (library_list_start_library): Likewise.
12044 (svr4_default_sos): Likewise.
12045 (svr4_read_so_list): Likewise.
12046 * solib-target.c (library_list_start_library): Likewise.
12047 (solib_target_current_sos): Likewise.
12048 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12049 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12050 * symfile.c (default_symfile_segments): Likewise.
12051 * target-descriptions.c (tdesc_data_init): Likewise.
12052 (tdesc_create_reg): Likewise.
12053 (struct tdesc_type *): Likewise.
12054 (tdesc_create_vector): Likewise.
12055 (tdesc_set_struct_size): Likewise.
12056 (struct tdesc_type *): Likewise.
12057 (tdesc_free_feature): Likewise.
12058 (tdesc_create_feature): Likewise.
12059 * windows-nat.c (windows_add_thread): Likewise.
12060 (windows_make_so): Likewise.
12061 * xml-support.c (gdb_xml_body_text): Likewise.
12062 (gdb_xml_create_parser_and_cleanup): Likewise.
12063 (xml_process_xincludes): Likewise.
12064 * xml-syscall.c (allocate_syscalls_info): Likewise.
12065 (syscall_create_syscall_desc): Likewise.
12066
12067 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12068
12069 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12070 function, with code from i386_stap_parse_special_token.
12071 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12072 (i386_stap_parse_special_token): Move code to the two functions
12073 above; simplify it.
12074
12075 2014-01-09 Pedro Alves <palves@redhat.com>
12076 Hui Zhu <hui@codesourcery.com>
12077
12078 PR gdb/16101
12079 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12080 bp_err_string. Don't mark the location shlib_disabled if the
12081 error thrown wasn't a generic or memory error. Catch errors
12082 thrown while inserting breakpoints in overlayed code. Output
12083 error message of software breakpoints.
12084 * remote.c (remote_insert_breakpoint): If this breakpoint has
12085 target-side commands but this stub doesn't support Z0 packets,
12086 throw NOT_SUPPORTED_ERROR error.
12087 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12088 * target.h (target_insert_breakpoint): Extend comment.
12089 (target_insert_hw_breakpoint): Add comment.
12090
12091 2014-01-08 Pedro Alves <palves@redhat.com>
12092
12093 * remote.c (remote_add_thread): Add threads silently if starting
12094 up.
12095 (remote_notice_new_inferior): If in all-stop, and starting up,
12096 don't call notice_new_inferior.
12097 (get_current_thread): New function, factored out from ...
12098 (add_current_inferior_and_thread): ... this. Adjust.
12099 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12100 found any thread, then select the remote's current thread as GDB's
12101 current thread too.
12102
12103 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12104
12105 * NEWS: Create a new section for the next release branch.
12106 Rename the section of the current branch, now that it has
12107 been cut.
12108
12109 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12110
12111 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12112 * version.in: Bump version to 7.7.50.DATE-cvs.
12113
12114 2014-01-08 Yao Qi <yao@codesourcery.com>
12115
12116 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12117 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12118 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12119
12120 2014-01-08 Yao Qi <yao@codesourcery.com>
12121
12122 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12123 return value of bfd_get_filename to symbol_file_add_from_bfd.
12124
12125 2014-01-08 Pierre Muller <muller@sourceware.org>
12126
12127 Fix PR16201.
12128 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12129 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12130 to prim_record_mininal_symbol_and_info.
12131 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12132 in call to prim_record_minimal_symbol_and_info.
12133 (read_pe_exported_syms): Set index field of section_data.
12134
12135 2014-01-07 Andrew Pinski <apinski@cavium.com>
12136
12137 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12138 * features/aarch64.c: Regenerate.
12139
12140 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12141
12142 * target.c (return_null): Define.
12143 (update_current_target): Use it instead of return_zero for
12144 functions that return a pointer.
12145
12146 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12147
12148 * source.c (add_path): Fix check for duplicated paths in the previously
12149 included paths.
12150
12151 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12152
12153 * ada-lang.c: Remove duplicated include statements.
12154 * alphabsd-nat.c: Ditto.
12155 * amd64-darwin-tdep.c: Ditto.
12156 * amd64fbsd-nat.c: Ditto.
12157 * auto-load.c: Ditto.
12158 * ax-gdb.c: Ditto.
12159 * breakpoint.c: Ditto.
12160 * dbxread.c: Ditto.
12161 * fork-child.c: Ditto.
12162 * gdb_usleep.c: Ditto.
12163 * i386-darwin-tdep.c: Ditto.
12164 * i386fbsd-nat.c: Ditto.
12165 * infcmd.c: Ditto.
12166 * inferior.c: Ditto.
12167 * jv-lang.c: Ditto.
12168 * linux-nat.c: Ditto.
12169 * linux-tdep.c: Ditto.
12170 * m68kbsd-nat.c: Ditto.
12171 * m68klinux-nat.c: Ditto.
12172 * microblaze-tdep.c: Ditto.
12173 * mips-linux-tdep.c: Ditto.
12174 * mn10300-tdep.c: Ditto.
12175 * nto-tdep.c: Ditto.
12176 * opencl-lang.c: Ditto.
12177 * osdata.c: Ditto.
12178 * printcmd.c: Ditto.
12179 * regcache.c: Ditto.
12180 * remote-m32r-sdi.c: Ditto.
12181 * remote.c: Ditto.
12182 * symfile.c: Ditto.
12183 * symtab.c: Ditto.
12184 * tilegx-linux-nat.c: Ditto.
12185 * tilegx-tdep.c: Ditto.
12186 * tracepoint.c: Ditto.
12187 * valops.c: Ditto.
12188 * vaxbsd-nat.c: Ditto.
12189 * windows-nat.c: Ditto.
12190 * xtensa-tdep.c: Ditto.
12191
12192 2014-01-07 Yao Qi <yao@codesourcery.com>
12193
12194 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12195
12196 2014-01-07 Yao Qi <yao@codesourcery.com>
12197 Joel Brobecker <brobecker@adacore.com>
12198
12199 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12200 (pdc_write_regs): Likewise.
12201 (fetch_regs_kernel_thread): Likewise.
12202 (store_regs_kernel_thread): Likewise.
12203
12204 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12205
12206 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12207 tagged type objects to their actual type.
12208
12209 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12210
12211 * ada-valprint.c (print_field_values): Add "language" parameter.
12212 Update calls to print_field_values and print_variant_part.
12213 Pass new parameter "language" in call to val_print instead
12214 of "current_language". Replace call to ada_val_print by call
12215 to val_print.
12216 (print_variant_part): Add "language" parameter.
12217 (ada_val_print_struct_union): Update call to print_field_values.
12218
12219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12220
12221 * ada-valprint.c (ui_memcpy): Delete.
12222 (ada_print_floating): Update documentation. Add empty line
12223 between between function documentation and implementation.
12224 Delete variable "buffer". Use ui_file_xstrdup in place of
12225 ui_file_put. Minor adjustments following this change.
12226
12227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12228
12229 * ada-valprint.c (ada_val_print_string): New function,
12230 extracted from ada_val_print_array.
12231 (ada_val_print_array): Replace extracted code by call
12232 to ada_val_print_string followed by a return. Move
12233 "else" branch to the function's top block.
12234
12235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12236
12237 * ada-valprint.c (ada_val_print_array): Move implementation
12238 down. Rename parameter "offset" and "val" into "offset_aligned"
12239 and "original_value" respectively. Add parameter "offset".
12240
12241 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12242
12243 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12244 re-organizing the code. Change the "???" message printed
12245 when target type is a TYPE_CODE_UNDEF into
12246 "<ref to undefined type>".
12247
12248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12249
12250 * ada-valprint.c (print_record): Delete, implementation inlined...
12251 (ada_val_print_struct_union): ... here. Remove call to
12252 ada_check_typedef in inlined implementation.
12253
12254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12255
12256 * ada-valprint.c (ada_val_print_gnat_array): New function,
12257 extracted from ada_val_print_1;
12258 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12259 (ada_val_print_flt, ada_val_print_struct_union)
12260 (ada_val_print_ref): Likewise.
12261 (ada_val_print_1): Delete variables i and elttype.
12262 Replace extracted-out code by call to corresponding
12263 new functions.
12264
12265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12266
12267 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12268
12269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12270
12271 * ada-valprint.c (ada_val_print_1): Replace calls to
12272 ada_val_print_1 by calls to val_print.
12273
12274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12275
12276 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12277 Update calls to self accordingly. Replace calls to c_val_print
12278 by calls to val_print.
12279
12280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12281
12282 * ada-valprint.c (print_record): Delete declaration.
12283 (adjust_type_signedness, ada_val_print_1): Likewise.
12284 (ada_val_print): Move function implementation down.
12285 (print_variant_part, print_field_values, print_record):
12286 Move function implementation up.
12287
12288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12289
12290 * python/py-type.c (typy_get_name): New function.
12291 (type_object_getset): Add entry for attribute "name".
12292 * NEWS: Add entry mentioning this new attribute.
12293
12294 2014-01-07 Yao Qi <yao@codesourcery.com>
12295
12296 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12297 statement.
12298
12299 2014-01-07 Yao Qi <yao@codesourcery.com>
12300
12301 * gnu-nat.c (info_port_rights): Add qualifier const to
12302 argument args.
12303
12304 2014-01-07 Yao Qi <yao@codesourcery.com>
12305
12306 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12307
12308 2014-01-07 Yao Qi <yao@codesourcery.com>
12309
12310 * gnu-nat.c (make_inf) Update declaration.
12311 (make_inf): Make it static.
12312 (inf_set_traced): Likewise.
12313 (inf_port_to_thread, inf_task_died_status): Likewise.
12314
12315 2014-01-07 Yao Qi <yao@codesourcery.com>
12316
12317 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12318
12319 2014-01-07 Yao Qi <yao@codesourcery.com>
12320
12321 * gnu-nat.c (_initialize_gnu_nat): Declare.
12322
12323 2014-01-07 Yao Qi <yao@codesourcery.com>
12324
12325 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12326 'enum bfd_endian'.
12327 (struct gdbarch_info) <byte_order>: Change type to
12328 'enum bfd_endian'.
12329 <byte_order_for_code>: Likewise.
12330 * gdbarch.c, gdbarch.h: Regenerated.
12331
12332 2014-01-06 Sasha Smundak <asmundak@google.com>
12333
12334 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12335
12336 2014-01-06 Tom Tromey <tromey@redhat.com>
12337
12338 * doublest.c (convert_doublest_to_floatformat): Use const, not
12339 CONST.
12340 * somread.c (som_symtab_read): Likewise.
12341
12342 2014-01-07 Hui Zhu <hui@codesourcery.com>
12343
12344 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12345 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12346 (gdb_bfd_fopen): Ditto.
12347 (gdb_bfd_openr): Ditto.
12348 (gdb_bfd_openw): Ditto.
12349 (gdb_bfd_openr_iovec): Ditto.
12350 (gdb_bfd_fdopenr): Ditto.
12351 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12352 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12353 with xstrdup.
12354 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12355 with xstrdup.
12356 * symfile-mem.c (symbol_file_add_from_memory): Removed
12357 gdb_bfd_stash_filename.
12358
12359 2014-01-03 Doug Evans <dje@google.com>
12360
12361 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12362 output.
12363
12364 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12365
12366 Update year range in copyright notice of all files.
12367
12368 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12369
12370 * top.c (print_gdb_version): Set copyright year to 2014.
12371
12372 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12373
12374 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12375
12376 For older changes see ChangeLog-2013.
12377 \f
12378 Local Variables:
12379 mode: change-log
12380 left-margin: 8
12381 fill-column: 74
12382 version-control: never
12383 coding: utf-8
12384 End:
This page took 0.284445 seconds and 4 git commands to generate.