Fix dwarf2loc.h::dwarf2_evaluate_property function description.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2
3 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4 description fix.
5
6 2014-09-02 Doug Evans <dje@google.com>
7
8 * typeprint.c (find_global_typedef): Fix comment.
9
10 2014-09-02 Gary Benson <gbenson@redhat.com>
11
12 * i386-nat.h: Renamed as...
13 * x86-nat.h: New file. All type, function and variable name
14 prefixes changed from "i386_" to "x86_". All references updated.
15 * i386-nat.c: Renamed as...
16 * x86-nat.c: New file. All type, function and variable name
17 prefixes changed from "i386_" to "x86_". All references updated.
18 * common/i386-xstate.h: Renamed as...
19 * common/x86-xstate.h: New file. All type, function and variable
20 name prefixes changed from "i386_" to "x86_". All references
21 updated.
22 * nat/i386-cpuid.h: Renamed as...
23 * nat/x86-cpuid.h: New file. All type, function and variable name
24 prefixes changed from "i386_" to "x86_". All references updated.
25 * nat/i386-gcc-cpuid.h: Renamed as...
26 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
27 name prefixes changed from "i386_" to "x86_". All references
28 updated.
29 * nat/i386-dregs.h: Renamed as...
30 * nat/x86-dregs.h: New file. All type, function and variable name
31 prefixes changed from "i386_" to "x86_". All references updated.
32 * nat/i386-dregs.c: Renamed as...
33 * nat/x86-dregs.c: New file. All type, function and variable name
34 prefixes changed from "i386_" to "x86_". All references updated.
35
36 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
37
38 * varobj.c (_initialize_varobj): Move to the end of file.
39
40 2014-08-29 Gary Benson <gbenson@redhat.com>
41
42 * common/common-exceptions.h: New file.
43 * common/common-exceptions.c: Likewise.
44 * Makefile.in (SFILES): Add common/common-exceptions.c.
45 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
46 (COMMON_OBS): Add common-exceptions.o.
47 (common-exceptions.o): New rule.
48 * exceptions.h (common-exceptions.h): Include.
49 (gdb_setjmp.h): Do not include.
50 (return_reason): Moved to common-exceptions.h.
51 (enum return_reason): Likewise.
52 (RETURN_MASK): Likewise.
53 (typedef return_mask): Likewise.
54 (enum errors): Likewise.
55 (struct gdb_exception): Likewise.
56 (exceptions_state_mc_init): Likewise.
57 (exceptions_state_mc_action_iter): Likewise.
58 (exceptions_state_mc_action_iter_1): Likewise.
59 (TRY_CATCH): Likewise.
60 (throw_exception): Likewise.
61 (throw_verror): Likewise.
62 (throw_vquit): Likewise.
63 (throw_error): Likewise.
64 (throw_quit): Likewise.
65 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
66 (enum catcher_action): Likewise.
67 (struct catcher): Likewise.
68 (current_catcher): Likewise.
69 (catcher_list_size): Likewise.
70 (exceptions_state_mc_init): Likewise.
71 (catcher_pop): Likewise.
72 (exceptions_state_mc): Likewise.
73 (exceptions_state_mc_action_iter): Likewise.
74 (exceptions_state_mc_action_iter_1): Likewise.
75 (throw_exception): Likewise.
76 (exception_messages): Likewise.
77 (exception_messages_size): Likewise.
78 (throw_it): Likewise.
79 (throw_verror): Likewise.
80 (throw_vquit): Likewise.
81 (throw_error): Likewise.
82 (throw_quit): Likewise.
83 (prepare_to_throw_exception): New function.
84
85 2014-08-29 Gary Benson <gbenson@redhat.com>
86
87 * common/gdb_setjmp.h: New file.
88 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
89 * configure.ac: Move sigsetjmp check...
90 * common/common.m4: ...here.
91 * configure: Regenerate.
92 * cp-support.c (SIGJMP_BUF): Delete.
93 (SIGSETJMP): Likewise.
94 (SIGLONGJMP): Likewise.
95 * exceptions.h (gdb_setjmp.h): Include.
96 (setjmp.h): Do not include.
97 (EXCEPTIONS_SIGJMP_BUF): Delete.
98 (EXCEPTIONS_SIGSETJMP): Likewise.
99 (EXCEPTIONS_SIGLONGJMP): Likewise.
100 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
101 from gdb_setjmp.h.
102 * exceptions.c: Likewise.
103
104 2014-08-29 Gary Benson <gbenson@redhat.com>
105
106 * cleanups.h: Moved to...
107 * common/cleanups.h: New file.
108 * cleanups.c: Moved to...
109 * common/cleanups.c: New file. Include common-defs.h and
110 cleanups.h. Do not include defs.h.
111 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
112 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
113 (cleanups.o): New rule.
114
115 2014-08-29 Gary Benson <gbenson@redhat.com>
116
117 * common/errors.h (internal_warning): New declaration.
118 (internal_vwarning): Likewise.
119 * common/errors.c (internal_warning): New function.
120 * utils.h (internal_warning): Don't declare.
121 (internal_vwarning): Likewise.
122 * utils.c (internal_warning): Removed.
123
124 2014-08-29 Gary Benson <gbenson@redhat.com>
125
126 * main.c (captured_main): Use warning during startup.
127 Prefix startup warning messages with command name.
128
129 2014-08-29 Gary Benson <gbenson@redhat.com>
130
131 * main.c (captured_main): Handle usage errors with error.
132
133 2014-08-29 Gary Benson <gbenson@redhat.com>
134
135 * go32-nat.c (go32_create_inferior): Replace a fprintf/
136 exit pair with a call to error. Wrap the message with _().
137
138 2014-08-29 Gary Benson <gbenson@redhat.com>
139
140 * main.c (captured_main): Replace a fprintf/exit
141 pair with a call to error. Wrap the message with _().
142
143 2014-08-29 Gary Benson <gbenson@redhat.com>
144
145 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
146 pairs with calls to error. Wrap the message with _().
147
148 2014-08-29 Gary Benson <gbenson@redhat.com>
149
150 * utils.c (vwarning): Protect calls to target_terminal_ours
151 and wrap_here.
152
153 2014-08-29 Gary Benson <gbenson@redhat.com>
154
155 * exceptions.c (print_flush): Protect calls to
156 target_terminal_ours and wrap_here.
157
158 2014-08-29 Gary Benson <gbenson@redhat.com>
159
160 * utils.h (filtered_printing_initialized): New declaration.
161 * utils.c (abort_with_message): New function.
162 (internal_vproblem): Use abort_with_message for first level
163 recursive internal problems, and if gdb_stderr is not set up.
164 Protect calls to target_terminal_ours, begin_line and query.
165
166 2014-08-28 Doug Evans <dje@google.com>
167
168 * symtab.c (in_prologue): Move definition to better spot.
169 (skip_prologue_using_sal): Ditto.
170
171 2014-08-28 Doug Evans <dje@google.com>
172
173 * symtab.c (find_function_start_sal): Move definition to better spot.
174
175 2014-08-28 Yao Qi <yao@codesourcery.com>
176
177 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
178 found_stack_adjust in forward scan. Remove condition check
179 on found_stack_adjust which is always true. Indent the code.
180
181 2014-08-28 Yao Qi <yao@codesourcery.com>
182
183 * dwarf2read.c (dwarf_decode_lines): Update declaration.
184 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
185 (dwarf_decode_lines): Remove argument
186 want_line_info. Remove condition check on want_line_info.
187 Callers update.
188
189 2014-08-27 Doug Evans <dje@google.com>
190
191 * dwarf2read.c (dwarf_record_line): Fix typo.
192
193 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
194
195 * target.h (struct target_ops::to_terminal_save_ours): Remove
196 declaration.
197 (target_terminal_save_ours): Remove macro.
198 * target-delegates.c: Regenerate.
199 * inf-child.c (inf_child_target): Don't set the nonexistent
200 field to_terminal_save_ours.
201 * inferior.h (child_terminal_save_ours): Remove declaration.
202 * terminal.h (gdb_save_tty_state): New declaration.
203 * inflow.c (child_terminal_save_ours): Rename to ...
204 (gdb_save_tty_state): ... this.
205 * tui/tui.c: Include terminal.h.
206 (tui_enable): Use gdb_save_tty_state instead of
207 target_terminal_save_ours.
208 (tui_disable): Likewise.
209
210 2014-08-25 Doug Evans <dje@google.com>
211
212 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
213 Pass NULL instead of 0 for context pointer.
214
215 2014-08-25 Yao Qi <yao@codesourcery.com>
216
217 * dwarf2read.c: Fix grammatical error.
218
219 2014-08-24 Yao Qi <yao@codesourcery.com>
220
221 * dwarf2read.c (scan_partial_symbols): Update comments.
222 Rename argument 'need_pc' with 'set_addrmap'.
223 (add_partial_namespace): Rename argument 'need_pc' with
224 'set_addrmap'.
225 (add_partial_module): Likewise.
226 (add_partial_subprogram): Likewise. Update comments.
227 (dwarf2_name): Fix typo.
228
229 2014-08-22 Doug Evans <dje@google.com>
230
231 PR 17276
232 * dwarf2read.c (dwarf_record_line_p): New function.
233 (dwarf_decode_lines_1): Ignore subsequent line number entries
234 for the same line if any entry had a non-zero discriminator.
235
236 2014-08-22 Doug Evans <dje@google.com>
237
238 * buildsym.h (record_line_ftype): New typedef.
239 (record_line): Use it.
240 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
241 (dwarf_decode_lines_1): Call them.
242
243 2014-08-22 Yao Qi <yao@codesourcery.com>
244
245 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
246 (ctf_end): Remove code.
247
248 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
249
250 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
251 (linux_make_corefile_notes): call update_thread_list, protected against
252 exceptions.
253
254 2014-08-21 Pedro Alves <palves@redhat.com>
255
256 * infcmd.c (attach_command): Remove comment.
257
258 2014-08-21 Bin Cheng <bin.cheng@arm.com>
259
260 * aarch64-linux-nat.c (dr_changed_t): Change the type from
261 unsigned LONGEST to ULONGEST.
262
263 2014-08-20 Pedro Alves <palves@redhat.com>
264
265 * Makefile.in (check-read1): New rule.
266
267 2014-08-20 Joel Brobecker <brobecker@adacore.com>
268
269 * value.c (value_from_contents_and_address): Strip resolved_type's
270 typedef layers before checking its TYPE_DATA_LOCATION.
271
272 2014-08-20 Pedro Alves <palves@redhat.com>
273
274 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
275
276 2014-08-20 Yao Qi <yao@codesourcery.com>
277
278 * amd64-tdep.c (amd64_classify): Add a blank line after the
279 example. Move "*/" to a new line.
280 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
281 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
282 * dwarf2read.c (psymtab_include_file_name): Likewise.
283
284 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
285 Pedro Alves <palves@redhat.com>
286
287 PR symtab/14604
288 PR symtab/14605
289 * ada-lang.c (coerce_unspec_val_to_type): Use
290 value_contents_copy_raw.
291 * ada-valprint.c (val_print_packed_array_elements): Adjust.
292 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
293 * cp-valprint.c (cp_print_value_fields): Let the common printing
294 code handle optimized out values.
295 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
296 * d-valprint.c (dynamic_array_type): Use
297 value_bits_any_optimized_out.
298 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
299 check_any_valid fields.
300 (check_pieced_value_bits): Delete and inline ...
301 (check_pieced_synthetic_pointer): ... here.
302 (check_pieced_value_validity): Delete.
303 (check_pieced_value_invalid): Delete.
304 (pieced_value_funcs): Remove check_validity and check_any_valid
305 fields.
306 (read_pieced_value): Use mark_value_bits_optimized_out.
307 (write_pieced_value): Switch to use
308 mark_value_bytes_optimized_out.
309 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
310 of assuming the whole value is optimized out.
311 * findvar.c (read_frame_register_value): Remove special handling
312 of optimized out registers.
313 (value_from_register): Use mark_value_bytes_optimized_out.
314 * frame-unwind.c (frame_unwind_got_optimized): Use
315 mark_value_bytes_optimized_out.
316 * jv-valprint.c (java_value_print): Adjust.
317 (java_print_value_fields): Let the common printing code handle
318 optimized out values.
319 * mips-tdep.c (mips_print_register): Remove special handling of
320 optimized out registers.
321 * opencl-lang.c (lval_func_check_validity): Delete.
322 (lval_func_check_any_valid): Delete.
323 (opencl_value_funcs): Remove check_validity and check_any_valid
324 fields.
325 * p-valprint.c (pascal_object_print_value_fields): Let the common
326 printing code handle optimized out values.
327 * stack.c (read_frame_arg): Remove special handling of optimized
328 out values. Fetch both VAL and ENTRYVAL before comparing
329 contents. Adjust to value_available_contents_eq rename.
330 * valprint.c (valprint_check_validity)
331 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
332 (val_print_array_elements): Adjust.
333 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
334 (value_bits_any_optimized_out): New function.
335 (value_entirely_covered_by_range_vector): New function, factored
336 out from value_entirely_unavailable.
337 (value_entirely_unavailable): Reimplement.
338 (value_entirely_optimized_out): New function.
339 (insert_into_bit_range_vector): New function, factored out from
340 mark_value_bits_unavailable.
341 (mark_value_bits_unavailable): Reimplement.
342 (struct ranges_and_idx): New struct.
343 (find_first_range_overlap_and_match): New function, factored out
344 from value_available_contents_bits_eq.
345 (value_available_contents_bits_eq): Rename to ...
346 (value_contents_bits_eq): ... this. Check both unavailable
347 contents and optimized out contents.
348 (value_available_contents_eq): Rename to ...
349 (value_contents_eq): ... this.
350 (allocate_value_lazy): Remove reference to the old optimized_out
351 boolean.
352 (allocate_optimized_out_value): Use
353 mark_value_bytes_optimized_out.
354 (require_not_optimized_out): Adjust to check whether the
355 optimized_out vec is empty.
356 (ranges_copy_adjusted): New function, factored out from
357 value_contents_copy_raw.
358 (value_contents_copy_raw): Also copy the optimized out ranges.
359 Assert the destination ranges aren't optimized out.
360 (value_contents_copy): Update comment, remove call to
361 require_not_optimized_out.
362 (value_contents_equal): Adjust to check whether the optimized_out
363 vec is empty.
364 (set_value_optimized_out, value_optimized_out_const): Delete.
365 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
366 New functions.
367 (value_entirely_optimized_out, value_bits_valid): Delete.
368 (value_copy): Take a VEC copy of the 'optimized_out' field.
369 (value_primitive_field): Remove special handling of optimized out.
370 (value_fetch_lazy): Assert that lazy values have no unavailable
371 regions. Use value_bits_any_optimized_out. Remove some special
372 handling for optimized out values.
373 * value.h: Add intro comment about <optimized out> and
374 <unavailable>.
375 (struct lval_funcs): Remove check_validity and check_any_valid
376 fields.
377 (set_value_optimized_out, value_optimized_out_const): Remove.
378 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
379 New declarations.
380 (value_bits_any_optimized_out): New declaration.
381 (value_bits_valid): Delete declaration.
382 (value_available_contents_eq): Rename to ...
383 (value_contents_eq): ... this, and extend comments.
384
385 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 Fix -fsanitize=address on unreadable inferior strings.
388 * valprint.c (val_print_string): Fix access before BUFFER.
389
390 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
391
392 * target.c (target_struct_size): Remove.
393 (target_struct_allocsize): Remove.
394 (DEFAULT_ALLOCSIZE): Remove.
395 (target_ops_p): New typedef.
396 (DEF_VEC_P (target_ops_p)): New vector type.
397 (target_structs): Change type to VEC (target_ops_p).
398 (add_target_with_completer): Replace "push" code by VEC_safe_push.
399 (find_default_run_target): Rewrite for loop following changes to
400 target_structs.
401
402 2014-08-19 Joel Brobecker <brobecker@adacore.com>
403
404 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
405 Adjust code accordingly. Adjust function description comment.
406
407 2014-08-19 Yao Qi <yao@codesourcery.com>
408
409 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
410 types.
411
412 2014-08-19 Alan Modra <amodra@gmail.com>
413
414 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
415 * config.in: Regenerate.
416 * configure: Regenerate.
417
418 2014-08-19 Tom Tromey <tromey@redhat.com>
419 Gary Benson <gbenson@redhat.com>
420
421 * common/common-debug.h: New file.
422 * common/common-debug.c: Likewise.
423 * debug.c: Likewise.
424 * Makefile.in (SFILES): Add common/common-debug.c.
425 (HFILES_NO_SRCDIR): Add common/common-debug.h.
426 (COMMON_OBS): Add common-debug.o and debug.o.
427 (common-debug.o): New rule.
428 * common/common-defs.h: Include common-debug.h.
429 * common/agent.c (debug_agent_printf): New function.
430 (DEBUG_AGENT): Redefine.
431 * nat/i386-dregs.c (debug_printf): Undefine.
432
433 2014-08-19 Gary Benson <gbenson@redhat.com>
434
435 * common/common-defs.h: Include print-utils.h.
436 * utils.h: Do not include print-utils.h.
437
438 2014-08-19 Tom Tromey <tromey@redhat.com>
439 Gary Benson <gbenson@redhat.com>
440
441 * common/common-types.h: New file.
442 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
443 * common/common-defs.h: Include common-types.h.
444 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
445 (ULONGEST): Remove.
446
447 2014-08-19 Tom Tromey <tromey@redhat.com>
448 Gary Benson <gbenson@redhat.com>
449
450 * common/errors.h: New file.
451 * common/errors.c: Likewise.
452 * Makefile.in (SFILES): Add common/errors.c.
453 (HFILES_NO_SRCDIR): Add common/errors.h.
454 (COMMON_OBS): Add errors.o.
455 (errors.o): New rule.
456 * common/common-defs.h: Include errors.h.
457 * utils.h (perror_with_name, error, verror, warning, vwarning):
458 Don't declare.
459 * common/common-utils.h: (malloc_failure, internal_error):
460 Likewise.
461
462 2014-08-19 Gary Benson <gbenson@redhat.com>
463
464 * utils.c (internal_vproblem): Always print the message.
465
466 2014-08-18 Doug Evans <dje@google.com>
467
468 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
469
470 2014-08-18 Joel Brobecker <brobecker@adacore.com>
471
472 * ada-typeprint.c (type_is_full_subrange_of_target_type):
473 Return 0 if TYPE is dynamic.
474 (print_range): Add handling of dynamic ranges.
475
476 2014-08-18 Keven Boell <keven.boell@intel.com>
477 Joel Brobecker <brobecker@adacore.com>
478
479 * gdbtypes.h (struct main_type): Add field "data_location".
480 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
481 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
482 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
483 a dynamic data location.
484 (resolve_dynamic_type): Add DW_AT_data_location handling.
485 (copy_recursive, copy_type): Copy the data_location information
486 when present.
487 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
488 * value.c (value_from_contents_and_address): Add
489 DW_AT_data_location handling.
490
491 2014-08-18 Keven Boell <keven.boell@intel.com>
492 Joel Brobecker <brobecker@adacore.com>
493
494 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
495 field "get_object_address".
496 * dwarf2expr.c (execute_stack_op): Add handling for
497 DW_OP_push_object_address.
498 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
499 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
500 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
501 (dwarf_expr_get_obj_addr): New function.
502 (dwarf_expr_ctx_funcs): Add get_object_address field.
503 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
504 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
505 (dwarf2_evaluate_property): Add parameter "address". Use it.
506 (needs_get_obj_addr): New function.
507 (needs_frame_ctx_funcs): Add get_object_address field.
508 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
509 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
510 (resolve_dynamic_array): Likewise.
511
512 2014-08-18 Joel Brobecker <brobecker@adacore.com>
513
514 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
515 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
516 fixed value for records and unions for which some GNAT encodings
517 are present.
518
519 2014-08-18 Joel Brobecker <brobecker@adacore.com>
520
521 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
522 rewrite to avoid "else if" and "else" constructs. Should be
523 a no-op in practice.
524
525 2014-08-18 Joel Brobecker <brobecker@adacore.com>
526
527 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
528 of lexical block.
529
530 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
531
532 PR c++/17132
533 * eval.c: Update all calls to find_overload_match.
534 * valarith.c: Likewise.
535 (value_user_defined_cpp_op, value_user_defined_op): New
536 argument NOSIDE. Update all callers.
537 * valops.c (find_overload_match): New argument NOSIDE.
538 * value.h (find_overload_match): Update signature.
539
540 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
541
542 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
543 'items' methods instead of 'iteritems' method on dictionaries.
544
545 2014-08-15 Doug Evans <dje@google.com>
546
547 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
548 closer to use.
549
550 2014-08-15 Doug Evans <dje@google.com>
551
552 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
553
554 2014-08-15 Doug Evans <dje@google.com>
555
556 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
557
558 2014-08-15 Doug Evans <dje@google.com>
559
560 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
561 unused.
562
563 2014-08-15 Eli Zaretskii <eliz@gnu.org>
564
565 * dcache.h: Include target.h, to avoid compile time warnings.
566
567 2014-08-15 Joel Brobecker <brobecker@adacore.com>
568
569 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
570 frame_info" partial declaration.
571 * gdbarch.h: Regenerate.
572
573 2014-08-15 Yao Qi <yao@codesourcery.com>
574
575 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
576 Add parameter 'decode_for_pst_p'. Callers update.
577
578 2014-08-13 Yao Qi <yao@codesourcery.com>
579
580 PR build/17104
581 * configure.ac: Use local variable 'pos'.
582 * configure: Regenerated.
583
584 2014-08-11 Doug Evans <dje@google.com>
585
586 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
587 message, it is redundant with "Reading symbols from ..." message.
588
589 2014-08-10 Doug Evans <xdje42@gmail.com>
590
591 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
592
593 2014-08-09 Yao Qi <yao@codesourcery.com>
594
595 PR remote/9053
596 * remote.c (remote_xfer_partial): Remove dead code.
597
598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
599
600 * ia64-linux-tdep.c: Include "regset.h".
601 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
602 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
603 (ia64_linux_supply_fpregset): New function.
604 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
605 (ia64_linux_regset_from_core_section): New function.
606 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
607 method.
608
609 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
610
611 * m68klinux-tdep.c: Include "regset.h".
612 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
613 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
614 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
615 (m68k_linux_regset_from_core_section): New function.
616 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
617 method.
618
619 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
620
621 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
622 function. Move logic to...
623 (tilegx_linux_regmap): ... this new register map.
624 (tilegx_linux_regset): Refer to register map, replace supply
625 method by regcache_supply_regset, and add collect method.
626 * tilegx-tdep.h (enum tilegx_regnum): New enum value
627 TILEGX_FIRST_EASY_REGNUM.
628
629 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
632 that calls regcache_supply_regset and handles the EPC register
633 separately. Move main logic to...
634 (score7_linux_gregmap): ... this new register map.
635 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
636 (score7_linux_gregset): Refer to register map. Add collect method.
637 (score7_linux_regset_from_core_section): Replace
638 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
639 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
640 (struct regset): Delete unused forward declaraction.
641 (struct pt_regs): Delete structure definition.
642 (elf_gregset_t): Delete typedef.
643
644 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
645
646 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
647 (nios2_core_regset): Add collect method.
648
649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
650
651 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
652 platform-independent and don't write to read-only input buffer.
653 (m32r_linux_collect_gregset): New function.
654 (m32r_linux_gregset): Add collect method.
655
656 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
657
658 * hppa-linux-tdep.c (greg_map): Rename to...
659 (hppa_linux_gregmap): ... this. Also convert to
660 regcache_map_entry format.
661 (hppa_linux_supply_regset): Delete function.
662 (hppa_linux_supply_fpregset): Delete function. Move logic to...
663 (hppa_linux_fpregmap): ... this new register map.
664 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
665 register map, replace supply method by regcache_supply_regset, and
666 add collect method regcache_collect_regset.
667
668 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
669
670 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
671 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
672 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
673 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
674 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
675 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
676 (frv_linux_supply_gregset): Replace main logic by call to
677 regcache_supply_regset, but keep clearing gr32-gr63.
678 (frv_linux_supply_fpregset): Delete function.
679 (frv_linux_gregset): Refer to appropriate register map and add
680 regcache_collect_regset as the collect method.
681 (frv_linux_fpregset): Likewise. Also exchange the supply method
682 by regcache_supply_regset.
683
684 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
685
686 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
687 by call to alpha_supply_int_regs.
688 (alpha_linux_collect_gregset): New function.
689 (alpha_linux_supply_fpregset): Replace logic by call to
690 alpha_supply_fp_regs.
691 (alpha_linux_collect_fpregset): New function.
692 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
693
694 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
695
696 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
697 by call to regcache_collect_regset.
698 (supply_gregset, supply_fpregset): Call regcache_supply_regset
699 instead of aarch64_linux_supply_gregset/_fpregset.
700 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
701 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
702 header file instead.
703 (aarch64_linux_supply_gregset, supply_gregset_from_core)
704 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
705 functions. Move logic to ...
706 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
707 register maps.
708 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
709 refer to new register maps, replace *_regset_from_core by
710 regcache_supply_regset, and also use regcache_collect_regset.
711 * aarch64-linux-tdep.h: Include "regset.h".
712 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
713 Delete prototypes.
714 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
715 macros, moved from C source file.
716 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
717 variable declarations.
718
719 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
720
721 * s390-linux-nat.c: Include "regset.h".
722 (regmap_gregset): Delete macro.
723 (s390_64_regmap_gregset): New register map for
724 regcache_supply/_collect_regset.
725 (s390_64_gregset): New regset.
726 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
727 (regmap_fpregset): Delete macro.
728 (s390_native_supply, s390_native_collect): Delete functions.
729 (supply_gregset, fill_gregset): Replace s390-specific regmap
730 handling by a call to regcache_supply/_collect_regset.
731 (supply_fpregset, fill_fpregset): Call regcache_supply/
732 _collect_regset instead of s390_native_supply/_collect.
733 (fetch_regset, store_regset): Likewise. Also change the last
734 parameter to a regset instead of a regmap.
735 (s390_linux_fetch_inferior_registers)
736 (390_linux_store_inferior_registers): Adjust last parameter in
737 calls to fetch_regset and store_regset.
738 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
739 (s390_gregmap): ... this. Also make static const and convert to
740 regcache_map_entry format.
741 (s390x_regmap_gregset): Delete.
742 (s390_regmap_fpregset): Rename to...
743 (s390_fpregmap): ... this. Make static const and convert to
744 regcache_map_entry format.
745 (s390_regmap_upper, s390_regmap_last_break)
746 (s390x_regmap_last_break, s390_regmap_system_call)
747 (s390_regmap_tdb): Likewise.
748 (s390_supply_regset, s390_collect_regset): Remove functions.
749 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
750 s390_supply_regset.
751 (s390_gregset, s390_fpregset, s390_upper_regset)
752 (s390_last_break_regset, s390x_last_break_regset)
753 (s390_system_call_regset, s390_tdb_regset): Make global and
754 replace s390_supply/_collect_regset by regcache_supply/
755 _collect_regset.
756 (s390x_gregset): Delete.
757 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
758 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
759 (s390_regmap_fpregset, s390_regmap_last_break)
760 (s390x_regmap_last_break, s390_regmap_system_call)
761 (s390_regmap_tdb): Delete global variable declarations.
762 (s390_gregset, s390_fpregset, s390_last_break_regset)
763 (s390x_last_break_regset, s390_system_call_regset)
764 (s390_tdb_regset): New global variable declarations.
765
766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
767
768 * regcache.c: Include "regset.h".
769 (regcache_transfer_regset): New local function.
770 (regcache_supply_regset, regcache_collect_regset): New functions.
771 * regcache.h (struct regcache_map_entry): New structure.
772 (REGCACHE_MAP_SKIP): New enum value.
773 (regcache_supply_regset, regcache_collect_regset): New prototypes.
774
775 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
776
777 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
778 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
779 (ppc_linux_collect_gregset ): Likewise.
780 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
781 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
782 (ppc_collect_vrregset): Likewise.
783 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
784 Likewise.
785
786 2014-08-07 Yao Qi <yao@codesourcery.com>
787
788 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
789 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
790 * remote.c (remote_read_bytes): Likewise.
791
792 2014-08-07 Yao Qi <yao@codesourcery.com>
793
794 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
795
796 2014-08-07 Yao Qi <yao@codesourcery.com>
797
798 PR remote/17230
799 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
800 TARGET_XFER_OK instead of 0.
801
802 2014-08-07 Gary Benson <gbenson@redhat.com>
803
804 * common/common-defs.h: Include errno.h.
805 * defs.h: Do not include errno.h.
806 * ada-typeprint.c: Likewise.
807 * c-typeprint.c: Likewise.
808 * core-regset.c: Likewise.
809 * corefile.c: Likewise.
810 * corelow.c: Likewise.
811 * event-loop.c: Likewise.
812 * f-typeprint.c: Likewise.
813 * gnu-nat.c: Likewise.
814 * go32-nat.c: Likewise.
815 * i386gnu-nat.c: Likewise.
816 * m2-typeprint.c: Likewise.
817 * nat/linux-btrace.c: Likewise.
818 * p-typeprint.c: Likewise.
819 * procfs.c: Likewise.
820 * remote-sim.c: Likewise.
821 * rs6000-nat.c: Likewise.
822 * target.c: Likewise.
823 * typeprint.c: Likewise.
824 * ui-file.c: Likewise.
825 * valops.c: Likewise.
826 * valprint.c: Likewise.
827
828 2014-08-07 Gary Benson <gbenson@redhat.com>
829
830 * common/common-defs.h: Include string.h.
831 * aarch64-tdep.c: Do not include string.h.
832 * ada-exp.y: Likewise.
833 * ada-lang.c: Likewise.
834 * ada-lex.l: Likewise.
835 * ada-typeprint.c: Likewise.
836 * ada-valprint.c: Likewise.
837 * aix-thread.c: Likewise.
838 * alpha-linux-tdep.c: Likewise.
839 * alpha-mdebug-tdep.c: Likewise.
840 * alpha-nat.c: Likewise.
841 * alpha-osf1-tdep.c: Likewise.
842 * alpha-tdep.c: Likewise.
843 * alphanbsd-tdep.c: Likewise.
844 * amd64-dicos-tdep.c: Likewise.
845 * amd64-linux-tdep.c: Likewise.
846 * amd64-nat.c: Likewise.
847 * amd64-sol2-tdep.c: Likewise.
848 * amd64fbsd-tdep.c: Likewise.
849 * amd64obsd-tdep.c: Likewise.
850 * arch-utils.c: Likewise.
851 * arm-linux-nat.c: Likewise.
852 * arm-linux-tdep.c: Likewise.
853 * arm-tdep.c: Likewise.
854 * arm-wince-tdep.c: Likewise.
855 * armbsd-tdep.c: Likewise.
856 * armnbsd-nat.c: Likewise.
857 * armnbsd-tdep.c: Likewise.
858 * armobsd-tdep.c: Likewise.
859 * avr-tdep.c: Likewise.
860 * ax-gdb.c: Likewise.
861 * ax-general.c: Likewise.
862 * bcache.c: Likewise.
863 * bfin-tdep.c: Likewise.
864 * breakpoint.c: Likewise.
865 * build-id.c: Likewise.
866 * buildsym.c: Likewise.
867 * c-exp.y: Likewise.
868 * c-lang.c: Likewise.
869 * c-typeprint.c: Likewise.
870 * c-valprint.c: Likewise.
871 * charset.c: Likewise.
872 * cli-out.c: Likewise.
873 * cli/cli-cmds.c: Likewise.
874 * cli/cli-decode.c: Likewise.
875 * cli/cli-dump.c: Likewise.
876 * cli/cli-interp.c: Likewise.
877 * cli/cli-logging.c: Likewise.
878 * cli/cli-script.c: Likewise.
879 * cli/cli-setshow.c: Likewise.
880 * cli/cli-utils.c: Likewise.
881 * coffread.c: Likewise.
882 * common/agent.c: Likewise.
883 * common/buffer.c: Likewise.
884 * common/buffer.h: Likewise.
885 * common/common-utils.c: Likewise.
886 * common/filestuff.c: Likewise.
887 * common/filestuff.c: Likewise.
888 * common/format.c: Likewise.
889 * common/print-utils.c: Likewise.
890 * common/rsp-low.c: Likewise.
891 * common/signals.c: Likewise.
892 * common/vec.h: Likewise.
893 * common/xml-utils.c: Likewise.
894 * core-regset.c: Likewise.
895 * corefile.c: Likewise.
896 * corelow.c: Likewise.
897 * cp-abi.c: Likewise.
898 * cp-name-parser.y: Likewise.
899 * cp-support.c: Likewise.
900 * cp-valprint.c: Likewise.
901 * cris-tdep.c: Likewise.
902 * d-exp.y: Likewise.
903 * darwin-nat.c: Likewise.
904 * dbxread.c: Likewise.
905 * dcache.c: Likewise.
906 * demangle.c: Likewise.
907 * dicos-tdep.c: Likewise.
908 * disasm.c: Likewise.
909 * doublest.c: Likewise.
910 * dsrec.c: Likewise.
911 * dummy-frame.c: Likewise.
912 * dwarf2-frame.c: Likewise.
913 * dwarf2loc.c: Likewise.
914 * dwarf2read.c: Likewise.
915 * elfread.c: Likewise.
916 * environ.c: Likewise.
917 * eval.c: Likewise.
918 * event-loop.c: Likewise.
919 * exceptions.c: Likewise.
920 * exec.c: Likewise.
921 * expprint.c: Likewise.
922 * f-exp.y: Likewise.
923 * f-lang.c: Likewise.
924 * f-typeprint.c: Likewise.
925 * f-valprint.c: Likewise.
926 * fbsd-nat.c: Likewise.
927 * findcmd.c: Likewise.
928 * findvar.c: Likewise.
929 * fork-child.c: Likewise.
930 * frame.c: Likewise.
931 * frv-linux-tdep.c: Likewise.
932 * frv-tdep.c: Likewise.
933 * gdb.c: Likewise.
934 * gdb_bfd.c: Likewise.
935 * gdbarch.c: Likewise.
936 * gdbarch.sh: Likewise.
937 * gdbtypes.c: Likewise.
938 * gnu-nat.c: Likewise.
939 * gnu-v2-abi.c: Likewise.
940 * gnu-v3-abi.c: Likewise.
941 * go-exp.y: Likewise.
942 * go-lang.c: Likewise.
943 * go32-nat.c: Likewise.
944 * guile/guile.c: Likewise.
945 * guile/scm-auto-load.c: Likewise.
946 * hppa-hpux-tdep.c: Likewise.
947 * hppa-linux-nat.c: Likewise.
948 * hppanbsd-tdep.c: Likewise.
949 * hppaobsd-tdep.c: Likewise.
950 * i386-cygwin-tdep.c: Likewise.
951 * i386-dicos-tdep.c: Likewise.
952 * i386-linux-tdep.c: Likewise.
953 * i386-nto-tdep.c: Likewise.
954 * i386-sol2-tdep.c: Likewise.
955 * i386-tdep.c: Likewise.
956 * i386bsd-tdep.c: Likewise.
957 * i386gnu-nat.c: Likewise.
958 * i386nbsd-tdep.c: Likewise.
959 * i386obsd-tdep.c: Likewise.
960 * i387-tdep.c: Likewise.
961 * ia64-libunwind-tdep.c: Likewise.
962 * ia64-linux-nat.c: Likewise.
963 * inf-child.c: Likewise.
964 * inf-ptrace.c: Likewise.
965 * inf-ttrace.c: Likewise.
966 * infcall.c: Likewise.
967 * infcmd.c: Likewise.
968 * inflow.c: Likewise.
969 * infrun.c: Likewise.
970 * interps.c: Likewise.
971 * iq2000-tdep.c: Likewise.
972 * irix5-nat.c: Likewise.
973 * jv-exp.y: Likewise.
974 * jv-lang.c: Likewise.
975 * jv-typeprint.c: Likewise.
976 * jv-valprint.c: Likewise.
977 * language.c: Likewise.
978 * linux-fork.c: Likewise.
979 * linux-nat.c: Likewise.
980 * lm32-tdep.c: Likewise.
981 * m2-exp.y: Likewise.
982 * m2-typeprint.c: Likewise.
983 * m32c-tdep.c: Likewise.
984 * m32r-linux-nat.c: Likewise.
985 * m32r-linux-tdep.c: Likewise.
986 * m32r-rom.c: Likewise.
987 * m32r-tdep.c: Likewise.
988 * m68hc11-tdep.c: Likewise.
989 * m68k-tdep.c: Likewise.
990 * m68kbsd-tdep.c: Likewise.
991 * m68klinux-nat.c: Likewise.
992 * m68klinux-tdep.c: Likewise.
993 * m88k-tdep.c: Likewise.
994 * machoread.c: Likewise.
995 * macrocmd.c: Likewise.
996 * main.c: Likewise.
997 * mdebugread.c: Likewise.
998 * mem-break.c: Likewise.
999 * memattr.c: Likewise.
1000 * memory-map.c: Likewise.
1001 * mep-tdep.c: Likewise.
1002 * mi/mi-cmd-break.c: Likewise.
1003 * mi/mi-cmd-disas.c: Likewise.
1004 * mi/mi-cmd-env.c: Likewise.
1005 * mi/mi-cmd-stack.c: Likewise.
1006 * mi/mi-cmd-var.c: Likewise.
1007 * mi/mi-cmds.c: Likewise.
1008 * mi/mi-console.c: Likewise.
1009 * mi/mi-getopt.c: Likewise.
1010 * mi/mi-interp.c: Likewise.
1011 * mi/mi-main.c: Likewise.
1012 * mi/mi-parse.c: Likewise.
1013 * microblaze-rom.c: Likewise.
1014 * microblaze-tdep.c: Likewise.
1015 * mingw-hdep.c: Likewise.
1016 * minidebug.c: Likewise.
1017 * minsyms.c: Likewise.
1018 * mips-irix-tdep.c: Likewise.
1019 * mips-linux-tdep.c: Likewise.
1020 * mips-tdep.c: Likewise.
1021 * mips64obsd-tdep.c: Likewise.
1022 * mipsnbsd-tdep.c: Likewise.
1023 * mipsread.c: Likewise.
1024 * mn10300-linux-tdep.c: Likewise.
1025 * mn10300-tdep.c: Likewise.
1026 * monitor.c: Likewise.
1027 * moxie-tdep.c: Likewise.
1028 * mt-tdep.c: Likewise.
1029 * nat/linux-btrace.c: Likewise.
1030 * nat/linux-osdata.c: Likewise.
1031 * nat/linux-procfs.c: Likewise.
1032 * nat/linux-ptrace.c: Likewise.
1033 * nat/linux-waitpid.c: Likewise.
1034 * nbsd-tdep.c: Likewise.
1035 * nios2-linux-tdep.c: Likewise.
1036 * nto-procfs.c: Likewise.
1037 * nto-tdep.c: Likewise.
1038 * objc-lang.c: Likewise.
1039 * objfiles.c: Likewise.
1040 * opencl-lang.c: Likewise.
1041 * osabi.c: Likewise.
1042 * osdata.c: Likewise.
1043 * p-exp.y: Likewise.
1044 * p-lang.c: Likewise.
1045 * p-typeprint.c: Likewise.
1046 * parse.c: Likewise.
1047 * posix-hdep.c: Likewise.
1048 * ppc-linux-nat.c: Likewise.
1049 * ppc-sysv-tdep.c: Likewise.
1050 * ppcfbsd-tdep.c: Likewise.
1051 * ppcnbsd-tdep.c: Likewise.
1052 * ppcobsd-tdep.c: Likewise.
1053 * printcmd.c: Likewise.
1054 * procfs.c: Likewise.
1055 * prologue-value.c: Likewise.
1056 * python/py-auto-load.c: Likewise.
1057 * python/py-gdb-readline.c: Likewise.
1058 * ravenscar-thread.c: Likewise.
1059 * regcache.c: Likewise.
1060 * registry.c: Likewise.
1061 * remote-fileio.c: Likewise.
1062 * remote-m32r-sdi.c: Likewise.
1063 * remote-mips.c: Likewise.
1064 * remote-notif.c: Likewise.
1065 * remote-sim.c: Likewise.
1066 * remote.c: Likewise.
1067 * reverse.c: Likewise.
1068 * rs6000-aix-tdep.c: Likewise.
1069 * ser-base.c: Likewise.
1070 * ser-go32.c: Likewise.
1071 * ser-mingw.c: Likewise.
1072 * ser-pipe.c: Likewise.
1073 * ser-tcp.c: Likewise.
1074 * ser-unix.c: Likewise.
1075 * serial.c: Likewise.
1076 * sh-tdep.c: Likewise.
1077 * sh64-tdep.c: Likewise.
1078 * shnbsd-tdep.c: Likewise.
1079 * skip.c: Likewise.
1080 * sol-thread.c: Likewise.
1081 * solib-dsbt.c: Likewise.
1082 * solib-frv.c: Likewise.
1083 * solib-osf.c: Likewise.
1084 * solib-som.c: Likewise.
1085 * solib-spu.c: Likewise.
1086 * solib-target.c: Likewise.
1087 * solib.c: Likewise.
1088 * somread.c: Likewise.
1089 * source.c: Likewise.
1090 * sparc-nat.c: Likewise.
1091 * sparc-sol2-tdep.c: Likewise.
1092 * sparc-tdep.c: Likewise.
1093 * sparc64-tdep.c: Likewise.
1094 * sparc64fbsd-tdep.c: Likewise.
1095 * sparc64nbsd-tdep.c: Likewise.
1096 * sparcnbsd-tdep.c: Likewise.
1097 * spu-linux-nat.c: Likewise.
1098 * spu-multiarch.c: Likewise.
1099 * spu-tdep.c: Likewise.
1100 * stabsread.c: Likewise.
1101 * stack.c: Likewise.
1102 * std-regs.c: Likewise.
1103 * symfile.c: Likewise.
1104 * symmisc.c: Likewise.
1105 * symtab.c: Likewise.
1106 * target.c: Likewise.
1107 * thread.c: Likewise.
1108 * tilegx-linux-nat.c: Likewise.
1109 * tilegx-tdep.c: Likewise.
1110 * top.c: Likewise.
1111 * tracepoint.c: Likewise.
1112 * tui/tui-command.c: Likewise.
1113 * tui/tui-data.c: Likewise.
1114 * tui/tui-disasm.c: Likewise.
1115 * tui/tui-file.c: Likewise.
1116 * tui/tui-layout.c: Likewise.
1117 * tui/tui-out.c: Likewise.
1118 * tui/tui-regs.c: Likewise.
1119 * tui/tui-source.c: Likewise.
1120 * tui/tui-stack.c: Likewise.
1121 * tui/tui-win.c: Likewise.
1122 * tui/tui-windata.c: Likewise.
1123 * tui/tui-winsource.c: Likewise.
1124 * typeprint.c: Likewise.
1125 * ui-file.c: Likewise.
1126 * ui-out.c: Likewise.
1127 * user-regs.c: Likewise.
1128 * utils.c: Likewise.
1129 * v850-tdep.c: Likewise.
1130 * valarith.c: Likewise.
1131 * valops.c: Likewise.
1132 * valprint.c: Likewise.
1133 * value.c: Likewise.
1134 * varobj.c: Likewise.
1135 * vax-tdep.c: Likewise.
1136 * vaxnbsd-tdep.c: Likewise.
1137 * vaxobsd-tdep.c: Likewise.
1138 * windows-nat.c: Likewise.
1139 * xcoffread.c: Likewise.
1140 * xml-support.c: Likewise.
1141 * xstormy16-tdep.c: Likewise.
1142 * xtensa-linux-nat.c: Likewise.
1143
1144 2014-08-07 Gary Benson <gbenson@redhat.com>
1145
1146 * common/common-defs.h: Include gdb_assert.h.
1147 * aarch64-tdep.c: Do not include gdb_assert.h.
1148 * addrmap.c: Likewise.
1149 * aix-thread.c: Likewise.
1150 * alpha-linux-tdep.c: Likewise.
1151 * alpha-mdebug-tdep.c: Likewise.
1152 * alphanbsd-tdep.c: Likewise.
1153 * amd64-nat.c: Likewise.
1154 * amd64-tdep.c: Likewise.
1155 * amd64bsd-nat.c: Likewise.
1156 * amd64fbsd-nat.c: Likewise.
1157 * amd64fbsd-tdep.c: Likewise.
1158 * amd64nbsd-nat.c: Likewise.
1159 * amd64nbsd-tdep.c: Likewise.
1160 * amd64obsd-nat.c: Likewise.
1161 * amd64obsd-tdep.c: Likewise.
1162 * arch-utils.c: Likewise.
1163 * arm-tdep.c: Likewise.
1164 * armbsd-tdep.c: Likewise.
1165 * auxv.c: Likewise.
1166 * bcache.c: Likewise.
1167 * bfin-tdep.c: Likewise.
1168 * blockframe.c: Likewise.
1169 * breakpoint.c: Likewise.
1170 * bsd-kvm.c: Likewise.
1171 * bsd-uthread.c: Likewise.
1172 * buildsym.c: Likewise.
1173 * c-exp.y: Likewise.
1174 * c-lang.c: Likewise.
1175 * charset.c: Likewise.
1176 * cleanups.c: Likewise.
1177 * cli-out.c: Likewise.
1178 * cli/cli-decode.c: Likewise.
1179 * cli/cli-dump.c: Likewise.
1180 * cli/cli-logging.c: Likewise.
1181 * cli/cli-script.c: Likewise.
1182 * cli/cli-utils.c: Likewise.
1183 * coffread.c: Likewise.
1184 * common/common-utils.c: Likewise.
1185 * common/queue.h: Likewise.
1186 * common/signals.c: Likewise.
1187 * common/vec.h: Likewise.
1188 * complaints.c: Likewise.
1189 * completer.c: Likewise.
1190 * corelow.c: Likewise.
1191 * cp-abi.c: Likewise.
1192 * cp-name-parser.y: Likewise.
1193 * cp-namespace.c: Likewise.
1194 * cp-support.c: Likewise.
1195 * cris-tdep.c: Likewise.
1196 * dbxread.c: Likewise.
1197 * dictionary.c: Likewise.
1198 * doublest.c: Likewise.
1199 * dsrec.c: Likewise.
1200 * dummy-frame.c: Likewise.
1201 * dwarf2-frame-tailcall.c: Likewise.
1202 * dwarf2-frame.c: Likewise.
1203 * dwarf2expr.c: Likewise.
1204 * dwarf2loc.c: Likewise.
1205 * dwarf2read.c: Likewise.
1206 * eval.c: Likewise.
1207 * event-loop.c: Likewise.
1208 * exceptions.c: Likewise.
1209 * expprint.c: Likewise.
1210 * f-valprint.c: Likewise.
1211 * fbsd-nat.c: Likewise.
1212 * findvar.c: Likewise.
1213 * frame-unwind.c: Likewise.
1214 * frame.c: Likewise.
1215 * frv-tdep.c: Likewise.
1216 * gcore.c: Likewise.
1217 * gdb-dlfcn.c: Likewise.
1218 * gdb_bfd.c: Likewise.
1219 * gdbarch.c: Likewise.
1220 * gdbarch.sh: Likewise.
1221 * gdbtypes.c: Likewise.
1222 * gnu-nat.c: Likewise.
1223 * gnu-v3-abi.c: Likewise.
1224 * go-lang.c: Likewise.
1225 * guile/scm-exception.c: Likewise.
1226 * guile/scm-gsmob.c: Likewise.
1227 * guile/scm-lazy-string.c: Likewise.
1228 * guile/scm-math.c: Likewise.
1229 * guile/scm-pretty-print.c: Likewise.
1230 * guile/scm-safe-call.c: Likewise.
1231 * guile/scm-utils.c: Likewise.
1232 * guile/scm-value.c: Likewise.
1233 * h8300-tdep.c: Likewise.
1234 * hppa-hpux-nat.c: Likewise.
1235 * hppa-tdep.c: Likewise.
1236 * hppanbsd-tdep.c: Likewise.
1237 * hppaobsd-tdep.c: Likewise.
1238 * i386-darwin-nat.c: Likewise.
1239 * i386-darwin-tdep.c: Likewise.
1240 * i386-nto-tdep.c: Likewise.
1241 * i386-tdep.c: Likewise.
1242 * i386bsd-nat.c: Likewise.
1243 * i386fbsd-tdep.c: Likewise.
1244 * i386gnu-nat.c: Likewise.
1245 * i386nbsd-tdep.c: Likewise.
1246 * i386obsd-tdep.c: Likewise.
1247 * i387-tdep.c: Likewise.
1248 * ia64-libunwind-tdep.c: Likewise.
1249 * ia64-tdep.c: Likewise.
1250 * inf-ptrace.c: Likewise.
1251 * inf-ttrace.c: Likewise.
1252 * infcall.c: Likewise.
1253 * infcmd.c: Likewise.
1254 * infrun.c: Likewise.
1255 * inline-frame.c: Likewise.
1256 * interps.c: Likewise.
1257 * jv-lang.c: Likewise.
1258 * jv-typeprint.c: Likewise.
1259 * linux-fork.c: Likewise.
1260 * linux-nat.c: Likewise.
1261 * linux-thread-db.c: Likewise.
1262 * m32c-tdep.c: Likewise.
1263 * m32r-linux-nat.c: Likewise.
1264 * m32r-tdep.c: Likewise.
1265 * m68k-tdep.c: Likewise.
1266 * m68kbsd-nat.c: Likewise.
1267 * m68kbsd-tdep.c: Likewise.
1268 * m88k-tdep.c: Likewise.
1269 * machoread.c: Likewise.
1270 * macroexp.c: Likewise.
1271 * macrotab.c: Likewise.
1272 * maint.c: Likewise.
1273 * mdebugread.c: Likewise.
1274 * memory-map.c: Likewise.
1275 * mep-tdep.c: Likewise.
1276 * mi/mi-common.c: Likewise.
1277 * microblaze-tdep.c: Likewise.
1278 * mingw-hdep.c: Likewise.
1279 * mips-linux-nat.c: Likewise.
1280 * mips-linux-tdep.c: Likewise.
1281 * mips-tdep.c: Likewise.
1282 * mips64obsd-tdep.c: Likewise.
1283 * mipsnbsd-tdep.c: Likewise.
1284 * mn10300-linux-tdep.c: Likewise.
1285 * mn10300-tdep.c: Likewise.
1286 * moxie-tdep.c: Likewise.
1287 * mt-tdep.c: Likewise.
1288 * nat/linux-btrace.c: Likewise.
1289 * nat/linux-osdata.c: Likewise.
1290 * nat/linux-ptrace.c: Likewise.
1291 * nat/mips-linux-watch.c: Likewise.
1292 * nios2-linux-tdep.c: Likewise.
1293 * nios2-tdep.c: Likewise.
1294 * objc-lang.c: Likewise.
1295 * objfiles.c: Likewise.
1296 * obsd-nat.c: Likewise.
1297 * opencl-lang.c: Likewise.
1298 * osabi.c: Likewise.
1299 * parse.c: Likewise.
1300 * ppc-linux-nat.c: Likewise.
1301 * ppc-sysv-tdep.c: Likewise.
1302 * ppcfbsd-nat.c: Likewise.
1303 * ppcfbsd-tdep.c: Likewise.
1304 * ppcnbsd-nat.c: Likewise.
1305 * ppcnbsd-tdep.c: Likewise.
1306 * ppcobsd-nat.c: Likewise.
1307 * ppcobsd-tdep.c: Likewise.
1308 * printcmd.c: Likewise.
1309 * procfs.c: Likewise.
1310 * prologue-value.c: Likewise.
1311 * psymtab.c: Likewise.
1312 * python/py-lazy-string.c: Likewise.
1313 * python/py-value.c: Likewise.
1314 * regcache.c: Likewise.
1315 * reggroups.c: Likewise.
1316 * registry.c: Likewise.
1317 * remote-sim.c: Likewise.
1318 * remote.c: Likewise.
1319 * rs6000-aix-tdep.c: Likewise.
1320 * rs6000-tdep.c: Likewise.
1321 * s390-linux-tdep.c: Likewise.
1322 * score-tdep.c: Likewise.
1323 * ser-base.c: Likewise.
1324 * ser-mingw.c: Likewise.
1325 * sh-tdep.c: Likewise.
1326 * sh64-tdep.c: Likewise.
1327 * solib-darwin.c: Likewise.
1328 * solib-spu.c: Likewise.
1329 * solib-svr4.c: Likewise.
1330 * source.c: Likewise.
1331 * sparc-nat.c: Likewise.
1332 * sparc-sol2-tdep.c: Likewise.
1333 * sparc-tdep.c: Likewise.
1334 * sparc64-sol2-tdep.c: Likewise.
1335 * sparc64-tdep.c: Likewise.
1336 * sparc64fbsd-tdep.c: Likewise.
1337 * sparc64nbsd-tdep.c: Likewise.
1338 * sparc64obsd-tdep.c: Likewise.
1339 * sparcnbsd-tdep.c: Likewise.
1340 * sparcobsd-tdep.c: Likewise.
1341 * spu-multiarch.c: Likewise.
1342 * spu-tdep.c: Likewise.
1343 * stabsread.c: Likewise.
1344 * stack.c: Likewise.
1345 * symfile.c: Likewise.
1346 * symtab.c: Likewise.
1347 * target-descriptions.c: Likewise.
1348 * target-memory.c: Likewise.
1349 * target.c: Likewise.
1350 * tic6x-linux-tdep.c: Likewise.
1351 * tic6x-tdep.c: Likewise.
1352 * tilegx-linux-nat.c: Likewise.
1353 * tilegx-tdep.c: Likewise.
1354 * top.c: Likewise.
1355 * tramp-frame.c: Likewise.
1356 * tui/tui-out.c: Likewise.
1357 * tui/tui-winsource.c: Likewise.
1358 * ui-out.c: Likewise.
1359 * user-regs.c: Likewise.
1360 * utils.c: Likewise.
1361 * v850-tdep.c: Likewise.
1362 * valops.c: Likewise.
1363 * value.c: Likewise.
1364 * varobj.c: Likewise.
1365 * vax-nat.c: Likewise.
1366 * xml-syscall.c: Likewise.
1367 * xml-tdesc.c: Likewise.
1368 * xstormy16-tdep.c: Likewise.
1369 * xtensa-linux-nat.c: Likewise.
1370 * xtensa-tdep.c: Likewise.
1371
1372 2014-08-07 Gary Benson <gbenson@redhat.com>
1373
1374 * common/common-defs.h: Include common-utils.h.
1375 * defs.h: Do not include common-utils.h.
1376 * common/gdb_assert.h: Likewise.
1377 * darwin-nat.h: Likewise.
1378 * nat/linux-btrace.c: Likewise.
1379 * target/waitstatus.h: Likewise.
1380
1381 2014-08-07 Gary Benson <gbenson@redhat.com>
1382
1383 * common/common-defs.h: Include ptid.h.
1384 * defs.h: Do not include ptid.h.
1385 * inferior.h: Likewise.
1386 * infrun.h: Likewise.
1387 * nat/linux-btrace.h: Likewise.
1388 * nat/linux-osdata.h: Likewise.
1389 * target/waitstatus.h: Likewise.
1390
1391 2014-08-07 Gary Benson <gbenson@redhat.com>
1392
1393 * common/common-defs.h: Include gdb_locale.h.
1394 * defs.h: Do not include gdb_locale.h.
1395
1396 2014-08-07 Gary Benson <gbenson@redhat.com>
1397
1398 * common/common-defs.h: Include gdb/signals.h.
1399 * defs.h: Do not include gdb/signals.h.
1400
1401 2014-08-07 Gary Benson <gbenson@redhat.com>
1402
1403 * common/common-defs.h: Include pathmax.h.
1404 * defs.h: Do not include pathmax.h.
1405
1406 2014-08-07 Gary Benson <gbenson@redhat.com>
1407
1408 * common/common-defs.h: Include libiberty.h.
1409 * defs.h: Do not include libiberty.h.
1410 * common/queue.h: Likewise.
1411 * cp-name-parser.y: Likewise.
1412 * mi/mi-cmd-catch.c: Likewise.
1413 * python/python.c: Likewise.
1414
1415 2014-08-07 Gary Benson <gbenson@redhat.com>
1416
1417 * common/common-defs.h: Include ansidecl.h.
1418 * defs.h: Do not include ansidecl.h.
1419 * common/buffer.h: Likewise.
1420 * common/common-utils.h: Likewise.
1421
1422 2014-08-07 Gary Benson <gbenson@redhat.com>
1423
1424 * common/common-defs.h: Include stddef.h.
1425 * defs.h: Do not include stddef.h.
1426 * common/common-utils.h: Likewise.
1427 * amd64fbsd-nat.c: Likewise.
1428 * bcache.c: Likewise.
1429 * charset.c: Likewise.
1430 * common/buffer.h: Likewise.
1431 * common/vec.h: Likewise.
1432 * i386bsd-nat.c: Likewise.
1433 * nat/linux-btrace.h: Likewise.
1434 * ppcfbsd-nat.c: Likewise.
1435 * ppcnbsd-tdep.h: Likewise.
1436 * ppcobsd-nat.c: Likewise.
1437 * ppcobsd-tdep.h: Likewise.
1438 * python/py-gdb-readline.c: Likewise.
1439
1440 2014-08-07 Gary Benson <gbenson@redhat.com>
1441
1442 * common/common-defs.h: Include stdarg.h.
1443 * defs.h: Do not include stdarg.h.
1444 * ada-lang.c: Likewise.
1445 * common/common-utils.h: Likewise.
1446 * guile/scm-string.c: Likewise.
1447 * guile/scm-utils.c: Likewise.
1448 * m32c-tdep.c: Likewise.
1449
1450 2014-08-07 Gary Benson <gbenson@redhat.com>
1451
1452 * common/common-defs.h: Include stdlib.h.
1453 * defs.h: Do not include stdlib.h.
1454 * addrmap.c: Likewise.
1455 * bcache.c: Likewise.
1456 * common/buffer.c: Likewise.
1457 * common/common-utils.c: Likewise.
1458 * cp-name-parser.y: Likewise.
1459 * go32-nat.c: Likewise.
1460 * mn10300-linux-tdep.c: Likewise.
1461 * nat/linux-osdata.c: Likewise.
1462 * tui/tui.c: Likewise.
1463 * windows-nat.c: Likewise.
1464
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1466
1467 * common/common-defs.h: Include stdio.h.
1468 * defs.h: Do not include stdio.h.
1469 * ada-lang.c: Likewise.
1470 * common/buffer.c: Likewise.
1471 * common/common-utils.c: Likewise.
1472 * cp-name-parser.y: Likewise.
1473 * gnu-nat.c: Likewise.
1474 * go32-nat.c: Likewise.
1475 * i386gnu-nat.c: Likewise.
1476 * proc-api.c: Likewise.
1477 * proc-events.c: Likewise.
1478 * proc-flags.c: Likewise.
1479 * proc-why.c: Likewise.
1480 * python/python-internal.h: Likewise.
1481 * target-memory.c: Likewise.
1482 * tui/tui-io.c: Likewise.
1483 * tui/tui.c: Likewise.
1484
1485 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1486
1487 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1488 (scan_dyntag_auxv): Same.
1489
1490 2014-08-06 Yao Qi <yao@codesourcery.com>
1491
1492 * amd64-linux-nat.c: Remove duplicated include
1493 "x86-linux-nat.h".
1494 * i386-linux-nat.c: Likewise.
1495
1496 2014-08-06 Yao Qi <yao@codesourcery.com>
1497
1498 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1499 operand" with "Special opcode" in comments.
1500
1501 2014-08-05 Gary Benson <gbenson@redhat.com>
1502
1503 * interps.c (initialize_interps): Remove prototype.
1504 (interpreter_initialized): Remove static global.
1505 (interp_add): Do not call initialize_interps.
1506 (initialize_interps): Remove function.
1507
1508 2014-08-05 Gary Benson <gbenson@redhat.com>
1509
1510 * utils.c (vwarning): Remove spurious va_end.
1511
1512 2014-08-05 Alan Modra <amodra@gmail.com>
1513
1514 * charset.c (convert_between_encodings): Cast result of obstack_base.
1515 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1516 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1517 (read_unwind_info): Use size_t for some locals.
1518 * jit.c (finalize_symtab): Likewise.
1519 * utils.c (hashtab_obstack_allocate): Likewise.
1520 * symmisc.c (print_objfile_statistics): Update format strings.
1521
1522 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1525 (Changes in GDB 7.8): ... here.
1526
1527 2014-08-04 Tom Tromey <tromey@redhat.com>
1528
1529 * target.c (set_targetdebug): New function.
1530 (initialize_targets): Pass set_targetdebug when creating "set
1531 debug target".
1532
1533 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1534
1535 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1536 if detecting a variable-sized field that is not the last field.
1537 Fix struct type length computation.
1538
1539 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1540
1541 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1542 Add debug trace.
1543
1544 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1545
1546 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1547 Remove "+ 8" offset in computation of CHAIN_VMA.
1548
1549 2014-07-31 Doug Evans <dje@google.com>
1550
1551 * inflow.c (child_terminal_inferior): Add comment.
1552 (child_terminal_ours_for_output): Add comment.
1553 (child_terminal_ours): Add comment.
1554 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1555 (linux_nat_terminal_ours): Add comment.
1556
1557 2014-07-31 Gary Benson <gbenson@redhat.com>
1558
1559 * common/btrace-common.h: Do not include defs.h or server.h.
1560 * nat/mips-linux-watch.h: Likewise.
1561 * gdb-dlfcn.h: Do not include defs.h.
1562 * tracefile.h: Likewise.
1563
1564 2014-07-30 Roland McGrath <mcgrathr@google.com>
1565
1566 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1567
1568 2014-07-30 Tom Tromey <tromey@redhat.com>
1569
1570 * bsd-kvm.c (bsd_kvm_open): Constify.
1571 * corelow.c (core_open): Constify.
1572 * ctf.c (ctf_open): Constify.
1573 * dbug-rom.c (dbug_open): Constify.
1574 * exec.c (exec_open): Constify.
1575 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1576 * microblaze-rom.c (picobug_open): Constify.
1577 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1578 Constify.
1579 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1580 * record-btrace.c (record_btrace_open): Constify.
1581 * record-full.c (record_full_core_open_1, record_full_open_1)
1582 (record_full_open): Constify.
1583 * remote-m32r-sdi.c (m32r_open): Constify.
1584 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1585 (rockhopper_open, lsi_open): Constify.
1586 * remote-sim.c (gdbsim_open): Constify.
1587 * remote.c (remote_open, extended_remote_open, remote_open_1):
1588 Constify.
1589 * target.h (struct target_ops) <to_open>: Make "arg" const.
1590 * tracefile-tfile.c (tfile_open): Constify.
1591
1592 2014-07-30 Tom Tromey <tromey@redhat.com>
1593
1594 * breakpoint.c (map_breakpoint_numbers): Update.
1595 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1596 (get_number_const): New function.
1597 (get_number): Rewrite using get_number_const.
1598 (init_number_or_range): Make "string" const.
1599 (number_is_in_list): Make "list" const.
1600 * cli/cli-utils.h (get_number_const): Declare.
1601 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1602 (init_number_or_range, number_is_in_list): Update.
1603 * printcmd.c (map_display_numbers): Update.
1604 * value.c (value_from_history_ref): Constify.
1605 * value.h (value_from_history_ref): Update.
1606
1607 2014-07-30 Tom Tromey <tromey@redhat.com>
1608
1609 * corefile.c (hook_type, call_extra_exec_file_hooks)
1610 (specify_exec_file_hook): Constify.
1611 * exec.c (exec_file_attach): Make "filename" const.
1612 * gdbcore.h (deprecated_exec_file_display_hook)
1613 (specify_exec_file_hook, exec_file_attach): Constify.
1614 * main.c (captured_main): Use catch_command_errors_const.
1615
1616 2014-07-30 Tom Tromey <tromey@redhat.com>
1617
1618 * target.c (open_target): New function.
1619 (add_target_with_completer, add_deprecated_target_alias): Use
1620 set_cmd_sfunc, set_cmd_context.
1621 (debug_to_open): Remove.
1622 (setup_target_debug): Update.
1623
1624 2014-07-30 Yao Qi <yao@codesourcery.com>
1625
1626 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1627 comments.
1628 * parse.c (exp_iterate): Update comments.
1629
1630 2014-07-30 Gary Benson <gbenson@redhat.com>
1631
1632 * common/common-defs.h: New file.
1633 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1634 * defs.h: Include common-defs.h.
1635 Do not include config.h or build-gnulib/config.h.
1636
1637 2014-07-30 Gary Benson <gbenson@redhat.com>
1638
1639 * common/common-utils.h: Do not include config.h.
1640 * nat/linux-btrace.h: Likewise.
1641
1642 2014-07-30 Gary Benson <gbenson@redhat.com>
1643
1644 * btrace.c: Include defs.h.
1645 * common/ptid.c: Include defs.h or server.h as appropriate.
1646 * nat/mips-linux-watch.c: Likewise.
1647
1648 2014-07-29 Tom Tromey <tromey@redhat.com>
1649
1650 * target.c (target_is_pushed): Simplify.
1651
1652 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1653
1654 GDB 7.8 released.
1655
1656 2014-07-29 Yao Qi <yao@codesourcery.com>
1657
1658 PR gdb/17206
1659 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1660
1661 2014-07-28 Doug Evans <xdje42@gmail.com>
1662
1663 PR guile/17203
1664 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1665 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1666 parameters.
1667
1668 2014-07-28 Will Newton <will.newton@linaro.org>
1669
1670 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1671 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1672 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1673 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1674 (THUMB2_EABI_SYSCALL): Likewise.
1675 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1676 struct tramp_frame.
1677 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1678 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1679
1680 2014-07-27 Doug Evans <xdje42@gmail.com>
1681
1682 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1683
1684 2014-07-27 Doug Evans <xdje42@gmail.com>
1685
1686 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1687
1688 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1689 Doug Evans <xdje42@gmail.com>
1690
1691 PR guile/17146
1692 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1693 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1694 * configure.ac: Try to use guild to compile an scm file, if it fails
1695 then disable guile support.
1696 * configure: Regenerate.
1697 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1698 GUILE_FILE_LIST.
1699 (GUILE_COMPILED_FILES): New variable.
1700 (GUILE_FILES) Update.
1701 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1702 (stamp-guile): Compile scm files.
1703 * guile/guile.c (boot_guile_support): New function.
1704 (standard_throw_args_p): New function.
1705 (print_standard_throw_error, print_throw_error): New functions.
1706 (handle_boot_error): New function.
1707 (initialize_scheme_side): Rewrite to call boot_guile_support.
1708 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1709 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1710
1711 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1712 Doug Evans <xdje42@gmail.com>
1713
1714 PR guile/17146
1715 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1716 * guile/lib/gdb/support.scm: New file.
1717 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1718 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1719 All uses updated.
1720 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1721 All uses updated.
1722 (%assert-type): Ditto, and renamed to assert-type.
1723 (%exception-print-style): Delete.
1724
1725 2014-07-26 Doug Evans <xdje42@gmail.com>
1726
1727 PR build/17105
1728 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1729 * configure: Regenerate.
1730 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1731 PYTHON_FILES.
1732 (PYTHON_FILES): New variable.
1733 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1734 (GUILE_FILES): New variable.
1735 (stamp-python, install-python, uninstall-python): Handle empty
1736 file list.
1737 (stamp-guile, install-guile, uninstall-guile): Ditto.
1738
1739 2014-07-26 Doug Evans <xdje42@gmail.com>
1740
1741 PR guile/17177
1742 * guile/lib/gdb.scm (pretty-printers): Export.
1743 (set-pretty-printers!): Export.
1744 * guile/lib/gdb/printing.scm (gdb module): Update.
1745 (prepend-pretty-printer!, append-pretty-printer!): Update.
1746 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1747 (pretty_printer_list_var): Delete.
1748 (pretty_printer_list): New static global.
1749 (gdbscm_pretty_printers): New function.
1750 (gdbscm_set_pretty_printers_x): New function.
1751 (ppscm_find_pretty_printer_from_gdb): Update.
1752 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1753 (gdbscm_initialize_pretty_printers): Update.
1754
1755 2014-07-26 Doug Evans <xdje42@gmail.com>
1756
1757 PR 17185
1758 * configure.ac: Add check for header gc/gc.h.
1759 Add check for function setenv.
1760 * configure: Regenerate.
1761 * config.in: Regenerate.
1762 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1763
1764 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1765
1766 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1767 variation in gdbarch matching.
1768
1769 2014-07-25 Tom Tromey <tromey@redhat.com>
1770
1771 * exec.c (using_exec_ops): Remove.
1772 (exec_close_1): Update. Remove extraneous block, reindent.
1773 (add_target_sections): Use target_is_pushed.
1774
1775 2014-07-25 Pedro Alves <palves@redhat.com>
1776
1777 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1778 * monitor.c (monitor_create_inferior): Likewise.
1779 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1780 * remote-sim.c (gdbsim_create_inferior): Likewise.
1781 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1782 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1783 * windows-nat.c (do_initial_windows_stuff): Likewise.
1784
1785 2014-07-25 Pedro Alves <palves@redhat.com>
1786
1787 * NEWS: Mention signal passing and "signal" command changes.
1788 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1789 comment.
1790 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1791 call.
1792 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1793 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1794 (jump_command): Adjust clear_proceed_status call.
1795 (signal_command): Warn if other thread that are resumed have
1796 signals that will be delivered. Adjust clear_proceed_status call.
1797 (until_next_command, finish_command)
1798 (proceed_after_attach_callback, attach_command_post_wait)
1799 (attach_command): Adjust clear_proceed_status call.
1800 * infrun.c (proceed_after_vfork_done): Likewise.
1801 (proceed_after_attach_callback): Adjust comment.
1802 (clear_proceed_status_thread): Clear stop_signal if not in pass
1803 state.
1804 (clear_proceed_status_callback): Delete.
1805 (clear_proceed_status): New 'step' parameter. Only clear the
1806 proceed status of threads the command being prepared is about to
1807 resume.
1808 (proceed): If passed in an explicit signal, override stop_signal
1809 with it. Don't pass the last stop signal to the thread we're
1810 resuming.
1811 (init_wait_for_inferior): Adjust clear_proceed_status call.
1812 (switch_back_to_stepped_thread): Clear the signal if it should not
1813 be passed.
1814 * infrun.h (clear_proceed_status): New 'step' parameter.
1815 (user_visible_resume_ptid): Add comment.
1816 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1817 signal is in pass state.
1818 * remote.c (append_pending_thread_resumptions): Likewise.
1819 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1820
1821 2014-07-25 Tom Tromey <tromey@redhat.com>
1822
1823 * target.h (target_stopped_data_address)
1824 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1825 parentheses.
1826
1827 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1828
1829 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1830 comments.
1831 (avr_pointer_to_address): Likewise.
1832
1833 2014-07-24 Tom Tromey <tromey@redhat.com>
1834
1835 * monitor.c (compile_pattern): Update.
1836 * target.h (struct target_ops) <to_shortname, to_longname,
1837 to_doc>: Now const.
1838
1839 2014-07-24 Tom Tromey <tromey@redhat.com>
1840
1841 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1842 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1843 (add_info_alias, add_com): Make "doc" const.
1844 (print_doc_line): Make "str" const.
1845 (delete_cmd): Update.
1846 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1847 (print_doc_line): Update.
1848 * cli/cli-script.c (document_command): Update.
1849 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1850 (add_com, add_info, add_info_alias): Update.
1851 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1852 * python/py-cmd.c (cmdpy_destroyer): Update.
1853
1854 2014-07-24 Tom Tromey <tromey@redhat.com>
1855
1856 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1857 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1858 (help_cmd_list): Constify.
1859 (lookup_cmd): Update.
1860 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1861 const.
1862 (help_cmd_list, apropos_cmd): Update.
1863 * cli/cli-script.c (show_user): Update.
1864 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1865 * cli/cli-setshow.h (cmd_show_list): Update.
1866 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1867 (cmd_show_list): Update.
1868 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1869 * python/py-cmd.c (cmdpy_destroyer): Update.
1870
1871 2014-07-24 Tom Tromey <tromey@redhat.com>
1872
1873 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1874 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1875 const.
1876 * command.h (deprecate_cmd): Update.
1877 * maint.c (maintenance_do_deprecate): Add casts.
1878
1879 2014-07-24 Tom Tromey <tromey@redhat.com>
1880
1881 * cli/cli-decode.c (help_cmd): Make parameter "const".
1882 * cli/cli-decode.h (help_cmd): Update.
1883
1884 2014-07-24 Tom Tromey <tromey@redhat.com>
1885
1886 * stack.c (up_silently_base, down_silently_base): Make argument
1887 const.
1888
1889 2014-07-24 Tom Tromey <tromey@redhat.com>
1890
1891 * solib.c (solib_add): Make "pattern" const.
1892 * solib.h (solib_add): Update.
1893
1894 2014-07-24 Tom Tromey <tromey@redhat.com>
1895
1896 * remote.c (remote_serial_open, print_packet, putpkt)
1897 (putpkt_binary): Constify.
1898 * remote.h (putpkt): Update.
1899
1900 2014-07-24 Tom Tromey <tromey@redhat.com>
1901
1902 * monitor.c (monitor_open): Make "args" const.
1903 * monitor.h (monitor_open): Update.
1904
1905 2014-07-24 Tom Tromey <tromey@redhat.com>
1906
1907 * maint.c (match_bfd_flags): Make "string" const.
1908 (print_bfd_section_info): Remove casts.
1909 (print_objfile_section_info): Make "string" const.
1910
1911 2014-07-24 Tom Tromey <tromey@redhat.com>
1912
1913 * inf-child.c (inf_child_open_target): Make "arg" const.
1914 * inf-child.h (inf_child_open_target): Update.
1915
1916 2014-07-24 Tom Tromey <tromey@redhat.com>
1917
1918 * environ.c (unset_in_environ): Make "var" const.
1919 * environ.h (unset_in_environ): Update.
1920
1921 2014-07-24 Tom Tromey <tromey@redhat.com>
1922
1923 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1924 Make "cmd" const.
1925 (scan_filename_with_cleanup): Likewise.
1926 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1927 Make arguments const.
1928 (restore_command): Update.
1929
1930 2014-07-24 Pedro Alves <palves@redhat.com>
1931
1932 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1933
1934 2014-07-24 Tom Tromey <tromey@redhat.com>
1935 Gary Benson <gbenson@redhat.com>
1936
1937 * nat/linux-ptrace.c (additional_flags): New global.
1938 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1939 additional_flags; don't check GDBSERVER.
1940 (linux_ptrace_set_additional_flags): New function.
1941 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1942 Declare.
1943 * linux-nat.c (_initialize_linux_nat): Call
1944 linux_ptrace_set_additional_flags.
1945
1946 2014-07-24 Tom Tromey <tromey@redhat.com>
1947
1948 * make-target-delegates (munge_type, write_debugmethod): New
1949 functions.
1950 (debug_names): New global.
1951 ($TARGET_DEBUG_PRINTER): New global.
1952 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1953 name.
1954 Write debug methods. Generate init_debug_target.
1955 * target-debug.h: New file.
1956 * target-delegates.c: Rebuild.
1957 * target.c: Include target-debug.h.
1958 (debug_target): Hoist definition.
1959 (target_kill, target_get_section_table, target_memory_map)
1960 (target_flash_erase, target_flash_done, target_detach)
1961 (target_disconnect, target_wait, target_resume)
1962 (target_pass_signals, target_program_signals, target_follow_fork)
1963 (target_mourn_inferior, target_search_memory)
1964 (target_thread_address_space, target_close)
1965 (target_find_new_threads, target_core_of_thread)
1966 (target_verify_memory, target_insert_mask_watchpoint)
1967 (target_remove_mask_watchpoint): Remove targetdebug code.
1968 (debug_to_post_attach, debug_to_prepare_to_store)
1969 (debug_to_files_info, debug_to_insert_breakpoint)
1970 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1971 (debug_to_region_ok_for_hw_watchpoint)
1972 (debug_to_can_accel_watchpoint_condition)
1973 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1974 (debug_to_watchpoint_addr_within_range)
1975 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1976 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1977 (debug_to_terminal_init, debug_to_terminal_inferior)
1978 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1979 (debug_to_terminal_save_ours, debug_to_terminal_info)
1980 (debug_to_load, debug_to_post_startup_inferior)
1981 (debug_to_insert_fork_catchpoint)
1982 (debug_to_remove_fork_catchpoint)
1983 (debug_to_insert_vfork_catchpoint)
1984 (debug_to_remove_vfork_catchpoint)
1985 (debug_to_insert_exec_catchpoint)
1986 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1987 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1988 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1989 (setup_target_debug): Call init_debug_target.
1990 * target.h (TARGET_DEBUG_PRINTER): New macro.
1991 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1992 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1993
1994 2014-07-24 Gary Benson <gbenson@redhat.com>
1995
1996 * exceptions.h (throw_vfatal): Renamed to...
1997 (throw_vquit): New declaration.
1998 (throw_quit): Likewise.
1999 * exceptions.c (throw_vfatal): Renamed to...
2000 (throw_vquit): New function.
2001 (throw_quit): Likewise.
2002 (throw_error): Call throw_verror rather than throw_it.
2003 * utils.h (vfatal): Removed.
2004 (fatal): Likewise.
2005 * utils.c (vfatal): Removed.
2006 (fatal): Likewise.
2007 (internal_verror): Replaced call to fatal with call to throw_quit.
2008 (quit): Replaced calls to fatal with calls to throw_quit.
2009
2010 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2011
2012 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2013 target_read_code.
2014
2015 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2016
2017 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2018 less than zero in conditional expression.
2019
2020 2014-07-23 Tom Tromey <tromey@redhat.com>
2021
2022 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2023 ($INTRO_PART): Don't match whitespace.
2024 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2025 argument matching.
2026 ($METHOD): Add $METHOD_TRAILER.
2027 (trim): Rewrite.
2028 (scan_target_h): New sub.
2029 Change main loop not to collect state.
2030 * target-delegates.c: Rebuild.
2031
2032 2014-07-23 Gary Benson <gbenson@redhat.com>
2033
2034 * cp-support.c (gdb_demangle): Fix build on systems without
2035 sigaltstack.
2036
2037 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2040 for reference entry value target data value.
2041
2042 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2043
2044 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2045 value_available_contents_eq.
2046
2047 2014-07-22 Pedro Alves <palves@redhat.com>
2048
2049 * value.c (allocate_optimized_out_value): Don't mark value as
2050 non-lazy.
2051
2052 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2053
2054 * MAINTAINERS (Write After Approval): Update my email address.
2055
2056 2014-07-20 Doug Evans <dje@google.com>
2057
2058 PR server/17147
2059 * remote.c (putpkt_binary): Add text to error message.
2060
2061 2014-07-20 Yao Qi <yao@codesourcery.com>
2062
2063 * eval.c: Remove "Chill" from comments.
2064 * gdbtypes.h: Likewise.
2065 * symtab.h: Likewise.
2066
2067 2014-07-20 Yao Qi <yao@codesourcery.com>
2068
2069 * std-operator.def: Update comments to TERNOP_SLICE.
2070
2071 2014-07-20 Yao Qi <yao@codesourcery.com>
2072
2073 * std-operator.def: Remove BINOP_RANGE.
2074 * breakpoint.c (watchpoint_exp_is_const): Update.
2075 * expprint.c (dump_subexp_body_standard): Likewise.
2076 * eval.c (init_array_element): Remove dead code.
2077 (evaluate_subexp_standard): Likewise.
2078
2079 2014-07-20 Yao Qi <yao@codesourcery.com>
2080
2081 * std-operator.def: Remove BINOP_IN.
2082 * breakpoint.c (watchpoint_exp_is_const): Update.
2083 * eval.c (evaluate_subexp_standard): Likewise.
2084 * expprint.c (dump_subexp_body_standard): Likewise.
2085
2086 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2087
2088 * microblaze-tdep.c (microblaze_register_names): Add
2089 the rshr and rslr register names.
2090 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2091 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2092 Use of tdesc_numbered_register. Use of
2093 microblaze_register_g_packet_guesses. Use of
2094 tdesc_use_registers. Use of set_gdbarch_register_type.
2095 (microblaze_register_g_packet_guesses): New.
2096 * microblaze-tdep.h (microblaze_reg_num): Add
2097 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2098 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2099 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2100 * features/microblaze-core.xml: New file.
2101 * features/microblaze-stack-protect.xml: New file.
2102 * features/microblaze-with-stack-protect.c: New file.
2103 * features/microblaze-with-stack-protect.xml: New file.
2104 * features/microblaze.xml: New file.
2105 * features/microblaze.c: New file.
2106 * features/Makefile (microblaze-with-stack-protect): Add
2107 microblaze-with-stack-protect microblaze and microblaze-expedite.
2108 * regformats/microblaze-with-stack-protect.dat: New file.
2109 * regformats/microblaze.dat: New file.
2110 * doc/gdb.texinfo (MicroBlaze Features): Added.
2111
2112 2014-07-18 Tom Tromey <tromey@redhat.com>
2113
2114 * exec.c (exec_ops): Now static.
2115 * exec.h (exec_ops): Don't declare.
2116
2117 2014-07-18 Tom Tromey <tromey@redhat.com>
2118
2119 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2120 to find_target_beneath.
2121 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2122 find_target_beneath.
2123 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2124
2125 2014-07-18 Tom Tromey <tromey@redhat.com>
2126
2127 PR gdb/17130:
2128 * utils.c (quit): Use target_supports_terminal_ours.
2129 * target.h (target_supports_terminal_ours): Declare.
2130 * target.c (target_supports_delete_record): Don't check
2131 to_delete_record against NULL.
2132 (target_supports_terminal_ours): New function.
2133
2134 2014-07-18 Tom Tromey <tromey@redhat.com>
2135
2136 PR gdb/17130:
2137 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2138 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2139 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2140 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2141 * windows-nat.c (windows_xfer_partial): Always delegate.
2142 * record-btrace.c (record_btrace_xfer_partial): Simplify
2143 delegation.
2144 (record_btrace_fetch_registers, record_btrace_store_registers)
2145 (record_btrace_prepare_to_store, record_btrace_resume)
2146 (record_btrace_wait, record_btrace_find_new_threads)
2147 (record_btrace_thread_alive): Likewise.
2148 * procfs.c (procfs_xfer_partial): Always delegate.
2149 * corelow.c (core_xfer_partial): Always delegate.
2150 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2151
2152 2014-07-18 Tom Tromey <tromey@redhat.com>
2153
2154 * exec.c (exec_make_note_section): Move earlier.
2155
2156 2014-07-17 Doug Evans <dje@google.com>
2157
2158 PR gdb/17170
2159 * maint.c (count_symtabs_and_blocks): Handle NULL
2160 current_program_space.
2161 (report_command_stats): Check global enabled flag in addition to
2162 recorded enabled flag.
2163 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2164
2165 2014-07-16 Pedro Alves <palves@redhat.com>
2166
2167 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2168
2169 2014-07-16 Tom Tromey <tromey@redhat.com>
2170
2171 * target.h (struct target_ops) <to_delete_record>: Reformat
2172 comment.
2173
2174 2014-07-16 Tom Tromey <tromey@redhat.com>
2175
2176 * target-delegates.c: Rebuild.
2177
2178 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2179
2180 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2181 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2182 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2183 (avr_pointer_to_address): Likewise.
2184 (avr_address_class_type_flags): New function.
2185 (avr_address_class_type_flags_to_name): Likewise.
2186 (avr_address_class_name_to_type_flags): Likewise.
2187 (avr_gdbarch_init): Set address_class_type_flags,
2188 address_class_type_flags_to_name and
2189 address_class_name_to_type_flags.
2190
2191 2014-07-15 Pedro Alves <palves@redhat.com>
2192
2193 * linux-nat.c (kill_callback): Save errno and work with saved
2194 copy.
2195
2196 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2197
2198 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2199
2200 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2201
2202 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2203 breakpoint support correctly.
2204
2205 2014-07-14 Pedro Alves <palves@redhat.com>
2206
2207 * utils.c (prompt_for_continue): Call target_terminal_ours.
2208
2209 2014-07-14 Pedro Alves <palves@redhat.com>
2210
2211 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2212 catch_errors. Don't re-enable stdin or notify observers where,
2213 and rethrow error.
2214 (fetch_inferior_event_wrapper): Delete.
2215
2216 2014-07-14 Pedro Alves <palves@redhat.com>
2217
2218 PR gdb/17072
2219 * top.c: Include "inf-loop.h".
2220 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2221 field.
2222 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2223 was async before.
2224 (gdb_readline_wrapper): Store whether the target is async, and
2225 make it sync.
2226
2227 2014-07-14 Pedro Alves <palves@redhat.com>
2228
2229 PR gdb/17072
2230 * top.c (gdb_readline_wrapper_line): Tweak comment.
2231 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2232 the input handler callback.
2233
2234 2014-07-14 Pedro Alves <palves@redhat.com>
2235
2236 PR gdb/17072
2237 * main.c: Include event-top.h.
2238 (handle_command_errors): New function.
2239 (catch_command_errors, catch_command_errors_const): Use it.
2240
2241 2014-07-14 Pedro Alves <palves@redhat.com>
2242
2243 * exceptions.c (catch_command_errors, catch_command_errors_const):
2244 Moved to main.c.
2245 * exceptions.h (catch_command_errors_ftype)
2246 (catch_command_errors_const_ftype): Moved to main.c.
2247 (catch_command_errors, catch_command_errors_const): Delete
2248 declarations.
2249 * main.c (catch_command_errors_ftype)
2250 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2251 (catch_command_errors, catch_command_errors_const)): Moved here
2252 from exceptions.c and make static.
2253
2254 2014-07-14 Pedro Alves <palves@redhat.com>
2255
2256 * exceptions.c (print_any_exception): Delete.
2257 (catch_exceptions_with_msg): Use exception_print instead of
2258 print_any_exception.
2259 (catch_errors): Use exception_fprintf instead of
2260 print_any_exception.
2261 (catch_command_errors, catch_command_errors_const): Use
2262 exception_print instead of print_any_exception.
2263
2264 2014-07-14 Pedro Alves <palves@redhat.com>
2265
2266 * infcall.c (run_inferior_call): Set 'sync_execution' while
2267 running the inferior call.
2268
2269 2014-07-14 Pedro Alves <palves@redhat.com>
2270
2271 * value.c (value_contents_equal): Delete function.
2272 * value.h (value_contents_equal): Delete declaration.
2273
2274 2014-07-14 Tom Tromey <tromey@redhat.com>
2275
2276 PR exp/17106:
2277 * gdbtypes.c (is_dynamic_type_internal): New function, from
2278 is_dynamic_type.
2279 (is_dynamic_type): Rewrite.
2280 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2281 (resolve_dynamic_struct): Likewise.
2282 (resolve_dynamic_type_internal): New function, from
2283 resolve_dynamic_type.
2284 (resolve_dynamic_type): Rewrite.
2285
2286 2014-07-14 Tom Tromey <tromey@redhat.com>
2287
2288 * target.c (target_require_runnable): Also check record_stratum.
2289 Update comment.
2290
2291 2014-07-11 Yao Qi <yao@codesourcery.com>
2292
2293 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2294 thumb_instruction_restores_sp return true.
2295
2296 2014-07-11 Yao Qi <yao@codesourcery.com>
2297
2298 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2299 (thumb_in_function_epilogue_p): Call
2300 thumb_instruction_restores_sp.
2301
2302 2014-07-11 Yao Qi <yao@codesourcery.com>
2303
2304 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2305 'add sp, #imm'.
2306 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2307
2308 2014-07-11 Gary Benson <gbenson@redhat.com>
2309
2310 * amd64-linux-nat.c (gdbcore.h): Remove include.
2311 (regset.h): Likewise.
2312 (nat/linux-btrace.h): Likewise.
2313 (btrace.h): Likewise.
2314 (gdb_assert.h): Likewise.
2315 (string.h): Likewise.
2316 (sys/uio.h): Likewise.
2317 (sys/debugreg.h): Likewise.
2318 (sys/syscall.h): Likewise.
2319 (sys/procfs.h): Likewise.
2320 (sys/user.h): Likewise.
2321 (asm/ptrace.h): Likewise.
2322 (i386-nat.h): Likewise.
2323 * i386-linux-nat.c (i386-nat.h): Likewise.
2324 (regset.h): Likewise.
2325 (target.h): Likewise.
2326 (linux-nat.h): Likewise.
2327 (nat/linux-btrace.h): Likewise.
2328 (btrace.h): Likewise.
2329 (gdb_assert.h): Likewise.
2330 (string.h): Likewise.
2331 (sys/uio.h): Likewise.
2332 (sys/user.h): Likewise.
2333 (sys/procfs.h): Likewise.
2334 (sys/reg.h): Likewise.
2335 (sys/debugreg.h): Likewise.
2336 (ORIG_EAX): Remove definition.
2337
2338 2014-07-11 Gary Benson <gbenson@redhat.com>
2339
2340 * i386-linux-nat.h: New file.
2341 * x86-linux-nat.h: Likewise.
2342 * x86-linux-nat.c: Likewise.
2343 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2344 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2345 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2346 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2347 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2348 (PTRACE_SETREGSET): Likewise.
2349 (arch_lwp_info): Now in x86-linux-nat.c.
2350 (have_ptrace_getregset): Now in x86-linux-nat.h.
2351 (x86_linux_dr_get): Now in x86-linux-nat.c.
2352 (x86_linux_dr_set): Likewise.
2353 (x86_linux_dr_get_addr): Likewise.
2354 (x86_linux_dr_get_control): Likewise.
2355 (x86_linux_dr_get_status): Likewise.
2356 (update_debug_registers_callback): Likewise.
2357 (x86_linux_dr_set_control): Likewise.
2358 (x86_linux_dr_set_addr): Likewise.
2359 (x86_linux_prepare_to_resume): Likewise.
2360 (x86_linux_new_thread): Likewise.
2361 (x86_linux_new_fork): Likewise.
2362 (x86_linux_get_thread_area): Likewise.
2363 (super_post_startup_inferior): Likewise.
2364 (x86_linux_child_post_startup_inferior): Likewise.
2365 (AMD64_LINUX_USER64_CS): Likewise.
2366 (AMD64_LINUX_X32_DS): Likewise.
2367 (x86_linux_read_description): Likewise.
2368 (x86_linux_enable_btrace): Likewise.
2369 (x86_linux_disable_btrace): Likewise.
2370 (x86_linux_teardown_btrace): Likewise.
2371 (x86_linux_read_btrace): Likewise.
2372 (x86_linux_create_target): Likewise.
2373 (x86_linux_add_target): Likewise.
2374 * i386-linux-nat.c (x86-linux-nat.h): New include.
2375 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2376 (PTRACE_SETREGSET): Likewise.
2377 (arch_lwp_info): Now in x86-linux-nat.c.
2378 (have_ptrace_getregset): Now in x86-linux-nat.h.
2379 (x86_linux_dr_get): Now in x86-linux-nat.c.
2380 (x86_linux_dr_set): Likewise.
2381 (x86_linux_dr_get_addr): Likewise.
2382 (x86_linux_dr_get_control): Likewise.
2383 (x86_linux_dr_get_status): Likewise.
2384 (update_debug_registers_callback): Likewise.
2385 (x86_linux_dr_set_control): Likewise.
2386 (x86_linux_dr_set_addr): Likewise.
2387 (x86_linux_prepare_to_resume): Likewise.
2388 (x86_linux_new_thread): Likewise.
2389 (x86_linux_new_fork): Likewise.
2390 (x86_linux_get_thread_area): Likewise.
2391 (super_post_startup_inferior): Likewise.
2392 (x86_linux_child_post_startup_inferior): Likewise.
2393 (AMD64_LINUX_USER64_CS): Likewise.
2394 (AMD64_LINUX_X32_DS): Likewise.
2395 (x86_linux_read_description): Likewise.
2396 (x86_linux_enable_btrace): Likewise.
2397 (x86_linux_disable_btrace): Likewise.
2398 (x86_linux_teardown_btrace): Likewise.
2399 (x86_linux_read_btrace): Likewise.
2400 (x86_linux_create_target): Likewise.
2401 (x86_linux_add_target): Likewise.
2402
2403 2014-07-11 Gary Benson <gbenson@redhat.com>
2404
2405 * amd64-linux-nat.c: Comment and whitespace changes.
2406 * i386-linux-nat.c: Comment and whitespace changes.
2407
2408 2014-07-11 Gary Benson <gbenson@redhat.com>
2409
2410 * amd64-linux-nat.c (x86_linux_create_target): New function.
2411 (x86_linux_add_target): Likewise.
2412 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2413 * i386-linux-nat.c (x86_linux_create_target): New function.
2414 (x86_linux_add_target): Likewise.
2415 (_initialize_i386_linux_nat): Delegate to the above new functions.
2416
2417 2014-07-11 Gary Benson <gbenson@redhat.com>
2418
2419 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2420 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2421 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2422 (ps_get_thread_area): Delegate to the above.
2423
2424 2014-07-11 Gary Benson <gbenson@redhat.com>
2425
2426 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2427 x86_linux_read_description. All uses updated. amd64-specific
2428 code conditionalized. Conditionalized i386-specific code added.
2429 Redundant cast removed.
2430 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2431 x86_linux_read_description. All uses updated. i386-specific
2432 code conditionalized. Conditionalized amd64-specific code added.
2433 One sizeof replaced with the actual type it is describing.
2434
2435 2014-07-11 Gary Benson <gbenson@redhat.com>
2436
2437 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2438 x86_linux_dr_get. All uses updated.
2439 (amd64_linux_dr_set): Renamed to
2440 x86_linux_dr_set. All uses updated.
2441 (amd64_linux_dr_get_addr): Renamed to
2442 x86_linux_dr_get_addr. All uses updated.
2443 (amd64_linux_dr_get_control): Renamed to
2444 x86_linux_dr_get_control. All uses updated.
2445 (amd64_linux_dr_get_status): Renamed to
2446 x86_linux_dr_get_status. All uses updated.
2447 (amd64_linux_dr_set_control): Renamed to
2448 x86_linux_dr_set_control. All uses updated.
2449 (amd64_linux_dr_set_addr): Renamed to
2450 x86_linux_dr_set_addr. All uses updated.
2451 (amd64_linux_prepare_to_resume): Renamed to
2452 x86_linux_prepare_to_resume. All uses updated.
2453 (amd64_linux_new_thread): Renamed to
2454 x86_linux_new_thread. All uses updated.
2455 (amd64_linux_new_fork): Renamed to
2456 x86_linux_new_fork. All uses updated.
2457 (amd64_linux_child_post_startup_inferior): Renamed to
2458 x86_linux_child_post_startup_inferior. All uses updated.
2459 (amd64_linux_enable_btrace): Renamed to
2460 x86_linux_enable_btrace. All uses updated.
2461 (amd64_linux_disable_btrace): Renamed to
2462 x86_linux_disable_btrace. All uses updated.
2463 (amd64_linux_teardown_btrace): Renamed to
2464 x86_linux_teardown_btrace. All uses updated.
2465 (amd64_linux_read_btrace): Renamed to
2466 x86_linux_read_btrace. All uses updated.
2467 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2468 x86_linux_dr_get. All uses updated.
2469 (i386_linux_dr_set): Renamed to
2470 x86_linux_dr_set. All uses updated.
2471 (i386_linux_dr_get_addr): Renamed to
2472 x86_linux_dr_get_addr. All uses updated.
2473 (i386_linux_dr_get_control): Renamed to
2474 x86_linux_dr_get_control. All uses updated.
2475 (i386_linux_dr_get_status): Renamed to
2476 x86_linux_dr_get_status. All uses updated.
2477 (i386_linux_dr_set_control): Renamed to
2478 x86_linux_dr_set_control. All uses updated.
2479 (i386_linux_dr_set_addr): Renamed to
2480 x86_linux_dr_set_addr. All uses updated.
2481 (i386_linux_prepare_to_resume): Renamed to
2482 x86_linux_prepare_to_resume. All uses updated.
2483 (i386_linux_new_thread): Renamed to
2484 x86_linux_new_thread. All uses updated.
2485 (i386_linux_new_fork): Renamed to
2486 x86_linux_new_fork. All uses updated.
2487 (i386_linux_child_post_startup_inferior): Renamed to
2488 x86_linux_child_post_startup_inferior. All uses updated.
2489 (i386_linux_enable_btrace): Renamed to
2490 x86_linux_enable_btrace. All uses updated.
2491 (i386_linux_disable_btrace): Renamed to
2492 x86_linux_disable_btrace. All uses updated.
2493 (i386_linux_teardown_btrace): Renamed to
2494 x86_linux_teardown_btrace. All uses updated.
2495 (i386_linux_read_btrace): Renamed to
2496 x86_linux_read_btrace. All uses updated.
2497
2498 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2499
2500 * remote.c (extended_remote_post_attach): New function.
2501 (init_extended_remote_ops): Install it as to_post_attach method.
2502
2503 2014-07-09 Pedro Alves <palves@redhat.com>
2504
2505 * infcmd.c (attach_command_post_wait): Don't call
2506 target_terminal_inferior here.
2507 (attach_command): Call it here instead.
2508
2509 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2512 field.
2513 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2514 from varobj.c, with additional checks.
2515 (c_varobj_ops): Fill in is_path_expr_parent field.
2516 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2517 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2518 field.
2519 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2520 ops method.
2521 (varobj_default_is_path_expr_parent): New function.
2522 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2523 (varobj_default_is_path_expr_parent): Declare new function.
2524
2525 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2526
2527 * infcmd.c (finish_backward): Turn internal error into normal error.
2528
2529 2014-07-07 Pedro Alves <palves@redhat.com>
2530
2531 PR gdb/17096
2532 * remote.c (async_handle_remote_sigint)
2533 (async_handle_remote_sigint_twice): Call
2534 gdb_call_async_signal_handler instead of
2535 mark_async_signal_handler.
2536
2537 2014-07-07 Tom Tromey <tromey@redhat.com>
2538
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_info_record): Remove.
2541 * record.c (info_record_command): Unconditionally call
2542 to_info_record.
2543 * target.h (struct target_ops) <to_info_record>: Use
2544 TARGET_DEFAULT_IGNORE.
2545 (target_info_record): Remove.
2546
2547 2014-07-07 Tom Tromey <tromey@redhat.com>
2548
2549 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2550 TARGET_DEFAULT_NORETURN.
2551 * target.c (generic_tls_error): New function.
2552 (target_translate_tls_address): Don't search target stack.
2553 * target-delegates.c: Rebuild.
2554 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2555 stack.
2556 * linux-thread-db.c (thread_db_get_thread_local_address):
2557 Unconditionally call beneath target.
2558
2559 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2560
2561 * cli/cli-logging.c (pop_output_files): Assign targerr to
2562 gdb_stdtargerr.
2563
2564 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * MAINTAINERS (Write After Approval): Update my email address.
2567
2568 2014-07-02 Gary Benson <gbenson@redhat.com>
2569
2570 * proc-service.c (ps_xfer_memory): Update comment.
2571 (ps_pstop): Remove unused function.
2572 (ps_pcontinue): Likewise.
2573 (ps_lstop): Likewise.
2574 (ps_lcontinue): Likewise.
2575 (ps_lgetxregsize): Likewise.
2576 (ps_lgetxregs): Likewise.
2577 (ps_lsetxregs): Likewise.
2578 (ps_plog): Likewise.
2579 (ps_ptread): Likewise.
2580 (ps_ptwrite): Likewise.
2581
2582 2014-07-01 Mark Wielaard <mjw@redhat.com>
2583
2584 * dwarf2read.c (add_array_cv_type): New function.
2585 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2586 (read_tag_volatile_type): Likewise.
2587
2588 2014-07-01 Tom Tromey <tromey@redhat.com>
2589
2590 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2591 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2592 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2593 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2594 * command.h (cmd_cfunc_ftype): Move earlier.
2595 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2596 (add_com, add_info): Use cmd_cfunc_ftype.
2597
2598 2014-06-30 Tom Tromey <tromey@redhat.com>
2599
2600 * symtab.c (operator_chars): Make parameters and return type
2601 const.
2602 (file_matches): Make "files" const.
2603 (struct search_symbols_data) <files>: Now const.
2604 (search_symbols): Make "regexp" and "files" parameters const.
2605 Update.
2606 (symtab_symbol_info): Remove cast.
2607 (rbreak_command): Update.
2608 * symtab.h (search_symbols): Update.
2609
2610 2014-06-27 Yao Qi <yao@codesourcery.com>
2611
2612 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2613 Change parameter type to 'struct thread_info *'. Caller
2614 updated.
2615 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2616 Update declaration.
2617 * dummy-frame.c (struct dummy_frame_id): New.
2618 (dummy_frame_id_eq): New function.
2619 (struct dummy_frame) <id>: Change its type to 'struct
2620 dummy_frame_id'.
2621 (dummy_frame_push): Add parameter ptid and save it in
2622 dummy_frame_id.
2623 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2624 inferior_ptid.
2625 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2626 to inferior_ptid.
2627 (lookup_dummy_frame): Change parameter type to 'struct
2628 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2629 instead of frame_id_eq.
2630 (dummy_frame_pop): Add parameter ptid. Callers updated.
2631 Update comments. Compose dummy_frame_id and pass it to
2632 lookup_dummy_frame.
2633 (dummy_frame_discard): Add parameter ptid.
2634 (dummy_frame_sniffer): Compose dummy_frame_id and call
2635 dummy_frame_id_eq instead of frame_id_eq.
2636 (fprint_dummy_frames): Print ptid.
2637 * dummy-frame.h: Remove comments.
2638 (dummy_frame_push): Add ptid in declaration.
2639 (dummy_frame_pop, dummy_frame_discard): Likewise.
2640
2641 2014-06-26 Tom Tromey <tromey@redhat.com>
2642
2643 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2644 * command.h (error_no_arg): Update.
2645
2646 2014-06-26 Tom Tromey <tromey@redhat.com>
2647
2648 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2649 (do_show_command): Make "arg" const.
2650 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2651
2652 2014-06-26 Tom Tromey <tromey@redhat.com>
2653
2654 * record-full.c (record_full_get_bookmark): Make "args" const.
2655 (record_full_goto_bookmark): Make "raw_bookmark" const.
2656 * record.c (record_goto): New function.
2657 (cmd_record_goto): Use it. Now static.
2658 * record.h (record_goto): Declare.
2659 (cmd_record_goto): Remove declaration.
2660 * target-delegates.c: Rebuild.
2661 * target.h (struct target_ops) <to_get_bookmark,
2662 to_goto_bookmark>: Make parameter const.
2663
2664 2014-06-26 Tom Tromey <tromey@redhat.com>
2665
2666 * defs.h (generic_load): Update.
2667 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2668 * monitor.c (monitor_load): Make "args" const.
2669 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2670 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2671 const.
2672 (mips_load): Make "file" const.
2673 * remote-sim.c (gdbsim_load): Make "args" const.
2674 * remote.c (remote_load): Make "name" const.
2675 * symfile.c (generic_load): Make "args" const.
2676 * target-delegates.c: Rebuild.
2677 * target.c (target_load): Make "arg" const.
2678 (debug_to_load): Make "args" const.
2679 * target.h (struct target_ops) <to_load>: Make parameter const.
2680 (target_load): Update.
2681
2682 2014-06-26 Tom Tromey <tromey@redhat.com>
2683
2684 PR symtab/16902:
2685 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2686 (dwarf2_physname, read_partial_die)
2687 (guess_partial_die_structure_name, fixup_partial_die)
2688 (guess_full_die_structure_name, anonymous_struct_prefix)
2689 (dwarf2_name): Use per-BFD obstack.
2690
2691 2014-06-26 Yao Qi <yao@codesourcery.com>
2692
2693 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2694 dummyframe and this_id into inner block below.
2695
2696 2014-06-26 Yao Qi <yao@codesourcery.com>
2697
2698 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2699 with "signal_pass[0]" in the initialization of signal_pass.
2700
2701 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2702
2703 * record-btrace.c (record_btrace_generating_corefile)
2704 (record_btrace_prepare_to_generate_core)
2705 (record_btrace_done_generating_core): New.
2706 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2707 (record_btrace_store_registers, record_btrace_prepare_to_store):
2708 Forward request when generating a core file.
2709 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2710 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2711 to_done_generating_core.
2712
2713 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2714
2715 * target.h (target_ops) <to_prepare_to_generate_core>
2716 <to_done_generating_core>: New.
2717 (target_prepare_to_generate_core, target_done_generating_core): New.
2718 * target.c (target_prepare_to_generate_core)
2719 (target_done_generating_core): New.
2720 * target-delegates.c: Regenerate.
2721 * gcore.c: (write_gcore_file): Rename to ...
2722 (write_gcore_file_1): ...this.
2723 (write_gcore_file): Call target_prepare_to_generate_core
2724 and target_done_generating_core.
2725
2726 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2727
2728 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2729 * gcore.c (write_gcore_file): Free memory returned from
2730 make_corefile_notes.
2731 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2732 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2733
2734 2014-06-24 Yao Qi <yao@codesourcery.com>
2735
2736 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2737 (arm_linux_init_abi): Set skip_trampoline_code with
2738 gdbarch_skip_trampoline_code instead of
2739 find_solib_trampoline_target.
2740
2741 2014-06-24 Yao Qi <yao@codesourcery.com>
2742
2743 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2744 arm_skip_bx_reg returns non-zero.
2745
2746 2014-06-24 Yao Qi <yao@codesourcery.com>
2747
2748 * arm-tdep.c (arm_skip_bx_reg): New function.
2749 (arm_skip_stub): Call arm_skip_bx_reg.
2750
2751 2014-06-23 Don Breazeal <donb@codesourcery.com>
2752
2753 * MAINTAINERS: Add myself as write-after-approval maintainer.
2754
2755 2014-06-23 Pedro Alves <palves@redhat.com>
2756
2757 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2758 DR_CONTROL before setting DR0..DR3.
2759 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2760 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2761 bits of DR_CONTROL related to the debug register slot being
2762 disabled. If all slots are vacant, clear local slowdown as well,
2763 and assert DR_CONTROL is 0.
2764
2765 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2766
2767 * python/lib/gdb/command/xmethods.py
2768 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2769 current progspace only if the string "progspace" matches LOCUS_RE.
2770
2771 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2772
2773 Fix --with-system-readline with readline-6.3 patch 5.
2774 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2775 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2776 types.
2777
2778 2014-06-20 Tom Tromey <tromey@redhat.com>
2779
2780 * dwarf2read.c (dw2_get_real_path): Use correct type in
2781 OBSTACK_CALLOC.
2782 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2783
2784 2014-06-20 Gary Benson <gbenson@redhat.com>
2785
2786 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2787 * common/glibc_thread_db.h: Likewise.
2788 * common/i386-cpuid.h: Likewise.
2789 * common/i386-gcc-cpuid.h: Likewise.
2790 * common/linux-btrace.h: Likewise.
2791 * common/linux-osdata.h: Likewise.
2792 * common/linux-procfs.h: Likewise.
2793 * common/linux-ptrace.h: Likewise.
2794 * common/mips-linux-watch.h: Likewise.
2795 * common/linux-btrace.c: Moved to nat.
2796 * common/linux-osdata.c: Likewise.
2797 * common/linux-procfs.c: Likewise.
2798 * common/linux-ptrace.c: Likewise.
2799 * common/mips-linux-watch.c: Likewise.
2800 * nat/gdb_thread_db.h: Moved from common.
2801 * nat/glibc_thread_db.h: Likewise.
2802 * nat/i386-cpuid.h: Likewise.
2803 * nat/i386-gcc-cpuid.h: Likewise.
2804 * nat/linux-btrace.c: Likewise.
2805 * nat/linux-btrace.h: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * nat/linux-osdata.h: Likewise.
2808 * nat/linux-procfs.c: Likewise.
2809 * nat/linux-procfs.h: Likewise.
2810 * nat/linux-ptrace.c: Likewise.
2811 * nat/linux-ptrace.h: Likewise.
2812 * nat/mips-linux-watch.c: Likewise.
2813 * nat/mips-linux-watch.h: Likewise.
2814 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2815 (object file files): Reordered.
2816 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2817 of glibc_thread_db.h.
2818
2819 2014-06-20 Gary Benson <gbenson@redhat.com>
2820
2821 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2822 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2823 (i386_dr_low): Likewise.
2824 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2825 (i386_dr_low_set_addr): Likewise.
2826 (i386_dr_low_get_addr): Likewise.
2827 (i386_dr_low_can_set_control): Likewise.
2828 (i386_dr_low_set_control): Likewise.
2829 (i386_dr_low_get_control): Likewise.
2830 (i386_dr_low_get_status): Likewise.
2831 (i386_get_debug_register_length): Likewise.
2832 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2833 (i386_dr_low): Likewise.
2834 * nat/i386-dregs.c (i386-low.h): Remove include.
2835 (i386-nat.h): Likewise.
2836 (nat/i386-dregs.h): New include.
2837 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2838 (i386_dr_low_set_addr): Likewise.
2839 (i386_dr_low_get_addr): Likewise.
2840 (i386_dr_low_can_set_control): Likewise.
2841 (i386_dr_low_set_control): Likewise.
2842 (i386_dr_low_get_control): Likewise.
2843 (i386_dr_low_get_status): Likewise.
2844 (i386_get_debug_register_length): Likewise.
2845 (debug_hw_points): Likewise.
2846
2847 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2848
2849 * Makefile.in (SFILES): Add d-exp.y.
2850 (YYFILES): Add d-exp.c.
2851 (YYOBJ): Add d-exp.o.
2852 (local-maintainer-clean): Delete d-exp.c.
2853 * d-exp.y: New file.
2854 * d-lang.h (d_parse): New declaration.
2855 (d_error): New declaration.
2856 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2857 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2858 PREC_ORDER operators.
2859 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2860
2861 2014-06-19 Yao Qi <yao@codesourcery.com>
2862
2863 * gdbthread.h (any_running): Remove the declaration.
2864 * thread.c (any_running): Remove.
2865
2866 2014-06-19 Yao Qi <yao@codesourcery.com>
2867
2868 * gdbthread.h (struct thread_info) <state>: Change its type to
2869 'enum thread_state'. Update comments.
2870
2871 2014-06-19 Pedro Alves <palves@redhat.com>
2872
2873 * gdbthread.h (ALL_THREADS): Delete.
2874 (ALL_NON_EXITED_THREADS): New macro.
2875 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2876 instead of ALL_THREADS.
2877 * infrun.c (find_thread_needs_step_over)
2878 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2879 instead of ALL_THREADS.
2880 * record-btrace.c (record_btrace_open)
2881 (record_btrace_stop_recording, record_btrace_close)
2882 (record_btrace_is_replaying, record_btrace_resume)
2883 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2884 * remote.c (append_pending_thread_resumptions): Likewise.
2885 * thread.c (thread_apply_all_command): Likewise.
2886
2887 2014-06-19 Gary Benson <gbenson@redhat.com>
2888
2889 * i386-nat.c (i386_stopped_by_watchpoint):
2890 Use i386_dr_stopped_by_watchpoint.
2891 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2892 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2893
2894 2014-06-19 Gary Benson <gbenson@redhat.com>
2895
2896 * nat/i386-dregs.c: New file.
2897 * Makefile.in (i386-dregs.o): New rule.
2898 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2899 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2900 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2901 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2902 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2903 * config/i386/go32.mh (NATDEPFILES): Likewise.
2904 * config/i386/linux.mh (NATDEPFILES): Likewise.
2905 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2906 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2907 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2908 * i386-nat.h (debug_hw_points): New declaration.
2909 * i386-nat.c (breakpoint.h): Remove include.
2910 (command.h): Likewise.
2911 (target.h): Likewise.
2912 (gdb_assert.h): Likewise.
2913 (debug_hw_points): Made nonstatic.
2914 (debug_printf): Now in i386-dregs.c.
2915 (TARGET_HAS_DR_LEN_8): Likewise.
2916 (DR_CONTROL_SHIFT): Likewise.
2917 (DR_CONTROL_SIZE): Likewise.
2918 (DR_RW_EXECUTE): Likewise.
2919 (DR_RW_WRITE): Likewise.
2920 (DR_RW_READ): Likewise.
2921 (DR_RW_IORW): Likewise.
2922 (DR_LEN_1): Likewise.
2923 (DR_LEN_2): Likewise.
2924 (DR_LEN_4): Likewise.
2925 (DR_LEN_8): Likewise.
2926 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2927 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2928 (DR_ENABLE_SIZE): Likewise.
2929 (DR_LOCAL_SLOWDOWN): Likewise.
2930 (DR_GLOBAL_SLOWDOWN): Likewise.
2931 (DR_CONTROL_RESERVED): Likewise.
2932 (I386_DR_CONTROL_MASK): Likewise.
2933 (I386_DR_VACANT): Likewise.
2934 (I386_DR_LOCAL_ENABLE): Likewise.
2935 (I386_DR_GLOBAL_ENABLE): Likewise.
2936 (I386_DR_DISABLE): Likewise.
2937 (I386_DR_SET_RW_LEN): Likewise.
2938 (I386_DR_GET_RW_LEN): Likewise.
2939 (I386_DR_WATCH_HIT): Likewise.
2940 (i386_wp_op_t): Likewise.
2941 (i386_show_dr): Likewise.
2942 (i386_length_and_rw_bits): Likewise.
2943 (i386_insert_aligned_watchpoint): Likewise.
2944 (i386_remove_aligned_watchpoint): Likewise.
2945 (i386_handle_nonaligned_watchpoint): Likewise.
2946 (i386_update_inferior_debug_regs): Likewise.
2947 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2948 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2949 (i386_region_ok_for_watchpoint):
2950 Use i386_dr_region_ok_for_watchpoint.
2951 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2952
2953 2014-06-19 Gary Benson <gbenson@redhat.com>
2954
2955 * i386-nat.c (i386_insert_hw_breakpoint): Use
2956 i386_insert_watchpoint.
2957 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2958
2959 2014-06-19 Gary Benson <gbenson@redhat.com>
2960
2961 * i386-nat.c (i386_dr_show): Renamed to
2962 i386_show_dr and made static. All uses updated.
2963 (i386_dr_length_and_rw_bits): Renamed to
2964 i386_length_and_rw_bits and made static.
2965 All uses updated.
2966 (i386_dr_insert_aligned_watchpoint): Renamed to
2967 i386_insert_aligned_watchpoint and made static.
2968 All uses updated.
2969 (i386_dr_remove_aligned_watchpoint): Renamed to
2970 i386_remove_aligned_watchpoint and made static.
2971 All uses updated.
2972 (i386_dr_update_inferior_debug_regs): Renamed to
2973 i386_update_inferior_debug_regs and made static.
2974 All uses updated.
2975 * nat/i386-dregs.h (i386_dr_show): Removed.
2976 (i386_dr_length_and_rw_bits): Likewise.
2977 (i386_dr_insert_aligned_watchpoint): Likewise.
2978 (i386_dr_remove_aligned_watchpoint): Likewise.
2979 (i386_dr_update_inferior_debug_regs): Likewise.
2980
2981 2014-06-19 Gary Benson <gbenson@redhat.com>
2982
2983 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2984 * configure: Regenerate.
2985 * config.in: Likewise.
2986 * main.c (signal.h): New include.
2987 (setup_alternate_signal_stack): New function.
2988 (captured_main): Call the above.
2989 * cp-support.c (signal.h): New include.
2990 (catch_demangler_crashes): New flag.
2991 (SIGJMP_BUF): New define.
2992 (SIGSETJMP): Likewise.
2993 (SIGLONGJMP): Likewise.
2994 (gdb_demangle_jmp_buf): New static global.
2995 (gdb_demangle_attempt_core_dump): Likewise.
2996 (gdb_demangle_signal_handler): New function.
2997 (gdb_demangle): If catch_demangler_crashes is set, install the
2998 above signal handler before calling bfd_demangle, and restore
2999 the original signal handler afterwards. Display the offending
3000 symbol and call demangler_warning the first time a segmentation
3001 fault is caught.
3002 (_initialize_cp_support): New maint set/show command.
3003
3004 2014-06-19 Gary Benson <gbenson@redhat.com>
3005
3006 * utils.h (resource_limit_kind): New enum.
3007 (can_dump_core): New declaration.
3008 (warn_cant_dump_core): Likewise.
3009 (dump_core): Likewise.
3010 * utils.c (dump_core): Made nonstatic. Added new
3011 parameter "limit_kind".
3012 (can_dump_core): Made nonstatic. Moved printing code to...
3013 (warn_cant_dump_core): New function.
3014 (can_dump_core_warn): Likewise.
3015 (internal_vproblem): Replace calls to can_dump_core with
3016 calls to can_dump_core_warn. Supply new argument to each.
3017
3018 2014-06-19 Gary Benson <gbenson@redhat.com>
3019
3020 * utils.h (demangler_vwarning): New declaration.
3021 (demangler_warning): Likewise.
3022 * utils.c (struct internal_problem)
3023 <user_settable_should_quit>: New field.
3024 <user_settable_should_dump_core>: Likewise
3025 (internal_error_problem): Add values for above new fields.
3026 (internal_warning_problem): Likewise.
3027 (demangler_warning_problem): New static global.
3028 (demangler_vwarning): New function.
3029 (demangler_warning): Likewise.
3030 (add_internal_problem_command): Selectively add commands.
3031 (_initialize_utils): New internal problem command.
3032 * maint.c (maintenance_demangler_warning): New function.
3033 (_initialize_maint_cmds): New command.
3034
3035 2014-06-18 Tom Tromey <tromey@redhat.com>
3036
3037 * f-valprint.c (info_common_command_for_block): Update.
3038 * symtab.h (struct general_symbol_info) <common_block>: Now
3039 const.
3040
3041 2014-06-18 Tom Tromey <tromey@redhat.com>
3042
3043 * symtab.h (struct symtab) <blockvector>: Now const.
3044 * ada-lang.c (ada_add_global_exceptions): Update.
3045 * buildsym.c (augment_type_symtab): Update.
3046 * dwarf2read.c (dw2_lookup_symbol): Update.
3047 * jit.c (finalize_symtab): Update.
3048 * jv-lang.c (add_class_symtab_symbol): Update.
3049 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3050 Update.
3051 * objfiles.c (objfile_relocate1): Update.
3052 * psymtab.c (lookup_symbol_aux_psymtabs)
3053 (maintenance_check_psymtabs): Update.
3054 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3055 Update.
3056 * spu-tdep.c (spu_catch_start): Update.
3057 * symmisc.c (dump_symtab_1): Update.
3058 * symtab.c (lookup_global_symbol_from_objfile)
3059 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3060 (basic_lookup_transparent_type_quick)
3061 (basic_lookup_transparent_type, find_pc_sect_symtab)
3062 (find_pc_sect_line, search_symbols): Update.
3063 * block.c (find_block_in_blockvector): Make "bl" const.
3064 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3065 const.
3066 (blockvector_contains_pc): Make "bv" const.
3067 (block_for_pc_sect): Update.
3068 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3069 (blockvector_contains_pc): Update.
3070 * breakpoint.c (resolve_sal_pc): Update.
3071 * inline-frame.c (block_starting_point_at): Update.
3072
3073 2014-06-18 Tom Tromey <tromey@redhat.com>
3074
3075 * completer.c (complete_line): Make "line_buffer" const.
3076 * completer.h (complete_line): Update.
3077
3078 2014-06-18 Tom Tromey <tromey@redhat.com>
3079
3080 * symtab.c (add_macro_name): Remove unneeded cast.
3081
3082 2014-06-18 Tom Tromey <tromey@redhat.com>
3083
3084 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3085 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3086
3087 2014-06-18 Tom Tromey <tromey@redhat.com>
3088
3089 * probe.c (info_probes_for_ops): Make "arg" const.
3090 * probe.h (info_probes_for_ops): Update.
3091
3092 2014-06-18 Tom Tromey <tromey@redhat.com>
3093
3094 * varobj.c (varobj_create): Update.
3095 * valops.c (value_of_this): Update.
3096 * tracepoint.c (add_local_symbols, scope_info): Update.
3097 * symtab.h (struct general_symbol_info) <block>: Now const.
3098 * symtab.c (skip_prologue_sal)
3099 (default_make_symbol_completion_list_break_on)
3100 (skip_prologue_using_sal): Update.
3101 * stack.h (iterate_over_block_locals)
3102 (iterate_over_block_local_vars): Update.
3103 * stack.c (print_frame_args): Update.
3104 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3105 parameter const.
3106 (get_selected_block): Make return type const.
3107 * python/py-frame.c (frapy_block): Update.
3108 * python/py-block.c (gdbpy_block_for_pc): Update.
3109 * p-exp.y (%union) <bval>: Now const.
3110 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3111 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3112 * m2-exp.y (%union) <bval>: Now const.
3113 * linespec.c (get_current_search_block): Make return type const.
3114 (create_sals_line_offset, find_label_symbols): Update.
3115 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3116 Update.
3117 (block_starting_point_at): Make "block" const.
3118 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3119 (check_exception_resume): Update.
3120 * guile/scm-frame.c (gdbscm_frame_block): Update.
3121 * guile/scm-block.c (gdbscm_lookup_block): Update.
3122 * frame.h (get_frame_block): Update.
3123 (get_selected_block): Make return type const.
3124 * frame.c (frame_id_inner): Update.
3125 * f-valprint.c (info_common_command_for_block)
3126 (info_common_command): Update.
3127 * dwarf2loc.c (dwarf2_find_location_expression)
3128 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3129 (locexpr_describe_location_piece): Update.
3130 * c-exp.y (%union) <bval>: Now const.
3131 * breakpoint.c (resolve_sal_pc): Update.
3132 * blockframe.c (get_frame_block):Make return type const.
3133 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3134 (block_innermost_frame): Update.
3135 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3136 (block_for_pc, block_for_pc_sect): Update.
3137 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3138 'pblock' const.
3139 (block_for_pc_sect, block_for_pc): Make return type const.
3140 * ax-gdb.c (gen_expr): Update.
3141 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3142 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3143 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3144 (ada_read_var_value): Update.
3145 * ada-exp.y (struct name_info) <block>: Now const.
3146 (%union): Likewise.
3147 (block_lookup): Constify.
3148
3149 2014-06-18 Gary Benson <gbenson@redhat.com>
3150
3151 * nat/i386-dregs.h: New file.
3152 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3153 * i386-nat.h (i386-dregs.h): New include.
3154 (DR_FIRSTADDR): Now in i386-dregs.h.
3155 (DR_LASTADDR): Likewise.
3156 (DR_NADDR): Likewise.
3157 (DR_STATUS): Likewise.
3158 (DR_CONTROL): Likewise.
3159 (i386_debug_reg_state): Likewise.
3160 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3161
3162 2014-06-18 Don Breazeal <donb@codesourcery.com>
3163
3164 * breakpoint.c (set_longjmp_breakpoint): Call
3165 momentary_breakpoint_from_master with additional argument.
3166 (set_longjmp_breakpoint_for_call_dummy): Call
3167 momentary_breakpoint_from_master with additional argument.
3168 (set_std_terminate_breakpoint): Call
3169 momentary_breakpoint_from_master with additional argument.
3170 (momentary_breakpoint_from_master): Add argument to function
3171 definition and use it to initialize structure member flag.
3172 (clone_momentary_breakpoint): Call
3173 momentary_breakpoint_from_master with additional argument.
3174 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3175 member flags set in momentary_breakpoint_from_master.
3176
3177 2014-06-18 Gary Benson <gbenson@redhat.com>
3178
3179 * i386-nat.c (i386_show_dr): Renamed to
3180 i386_dr_show and made nonstatic. All uses updated.
3181 (i386_length_and_rw_bits): Renamed to
3182 i386_dr_length_and_rw_bits and made nonstatic.
3183 All uses updated.
3184 (i386_insert_aligned_watchpoint): Renamed to
3185 i386_dr_insert_aligned_watchpoint and made nonstatic.
3186 All uses updated.
3187 (i386_remove_aligned_watchpoint): Renamed to
3188 i386_dr_remove_aligned_watchpoint and made nonstatic.
3189 All uses updated.
3190 (i386_update_inferior_debug_regs): Renamed to
3191 i386_dr_update_inferior_debug_regs and made nonstatic.
3192 All uses updated.
3193
3194 2014-06-18 Gary Benson <gbenson@redhat.com>
3195
3196 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3197 (i386_dr_low_can_set_control): Likewise.
3198 (i386_dr_low_set_addr): Likewise.
3199 (i386_dr_low_set_control): Likewise.
3200 (i386_dr_low_get_addr): Likewise.
3201 (i386_dr_low_get_status): Likewise.
3202 (i386_dr_low_get_control): Likewise.
3203 (i386_insert_aligned_watchpoint): Use new macros.
3204 (i386_update_inferior_debug_regs): Likewise.
3205 (i386_stopped_data_address): Likewise.
3206
3207 2014-06-18 Gary Benson <gbenson@redhat.com>
3208
3209 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3210 New parameter. All uses updated.
3211
3212 2014-06-18 Gary Benson <gbenson@redhat.com>
3213
3214 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3215 All uses updated.
3216
3217 2014-06-18 Gary Benson <gbenson@redhat.com>
3218
3219 * i386-nat.c (debug_printf): New macro.
3220 (i386_get_debug_register_length): Likewise.
3221 (TARGET_HAS_DR_LEN_8): Use above macro.
3222 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3223 and printf_unfiltered. Use phex to format values.
3224
3225 2014-06-18 Gary Benson <gbenson@redhat.com>
3226
3227 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3228 Make const.
3229
3230 2014-06-18 Gary Benson <gbenson@redhat.com>
3231
3232 * i386-nat.c: Comment changes.
3233
3234 2014-06-18 Gary Benson <gbenson@redhat.com>
3235
3236 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3237
3238 2014-06-18 Gary Benson <gbenson@redhat.com>
3239
3240 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3241 (i386_insert_aligned_watchpoint): Likewise.
3242 (i386_remove_aligned_watchpoint): Likewise.
3243 (i386_handle_nonaligned_watchpoint): Likewise.
3244
3245 2014-06-18 Gary Benson <gbenson@redhat.com>
3246
3247 * i386-nat.c: Whitespace changes.
3248
3249 2014-06-17 Samuel Bronson <naesten@gmail.com>
3250
3251 * MAINTAINERS: Update Roland McGrath's email address.
3252 Thanks to Sergio Durigan Junior for pointing out that he left
3253 Red Hat a while ago, and giving me a current address.
3254
3255 2014-06-17 Tom Tromey <tromey@redhat.com>
3256
3257 * utils.h (savestring): Remove declaration.
3258
3259 2014-06-17 Tom Tromey <tromey@redhat.com>
3260
3261 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3262
3263 2014-06-16 Keith Seitz <keiths@redhat.com>
3264
3265 PR mi/15863
3266 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3267 to update the varobj if inferior_ptid is null_ptid.
3268
3269 2014-06-16 Tom Tromey <tromey@redhat.com>
3270
3271 * target.h (struct target_ops) <to_info_proc>: Make parameter
3272 const.
3273 (target_info_proc): Update.
3274 * target.c (target_info_proc): Make "args" const.
3275 * procfs.c (procfs_info_proc): Update.
3276 * linux-tdep.c (linux_info_proc): Update.
3277 (linux_core_info_proc_mappings): Make "args" const.
3278 (linux_core_info_proc): Update.
3279 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3280 * gdbarch.c: Rebuild.
3281 * gdbarch.h: Rebuild.
3282 * corelow.c (core_info_proc): Update.
3283
3284 2014-06-16 Tom Tromey <tromey@redhat.com>
3285
3286 * target.h (struct target_ops) <to_disconnect>: Make parameter
3287 const.
3288 (target_disconnect): Update.
3289 * target.c (target_disconnect): Make "args" const.
3290 * target-delegates.c: Rebuild.
3291 * remote.c (remote_disconnect): Update.
3292 * record.h (record_disconnect): Update.
3293 * record.c (record_disconnect): Update.
3294 * inf-child.c (inf_child_disconnect): Update.
3295
3296 2014-06-16 Tom Tromey <tromey@redhat.com>
3297
3298 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3299 * target.c (debug_to_rcmd, default_rcmd): Update.
3300 * target-delegates.c: Rebuild.
3301 * remote.c (remote_rcmd): Update.
3302 * monitor.c (monitor_rcmd): Update.
3303
3304 2014-06-16 Pedro Alves <palves@redhat.com>
3305
3306 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3307 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3308 have OBJF_SHARED set.
3309 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3310 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3311 instead of OBJF_USERLOADED.
3312 * objfiles.h (OBJF_SHARED): Update comment.
3313 (userloaded_objfile_contains_address_p): Rename to ...
3314 (shared_objfile_contains_address_p): ... this, and update
3315 comments.
3316 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3317 new objfile.
3318 (remove_symbol_file_command): Skip objfiles that don't have
3319 OBJF_SHARED set.
3320
3321 2014-06-16 Tom Tromey <tromey@redhat.com>
3322
3323 * minsyms.h (prim_record_minimal_symbol)
3324 (prim_record_minimal_symbol_and_info): Update comments.
3325
3326 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3327
3328 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3329 or --without-guile, according to how GDB was built.
3330
3331 2014-06-13 Tom Tromey <tromey@redhat.com>
3332
3333 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3334 to help_list.
3335 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3336 to help_list.
3337 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3338 help_list.
3339 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3340 help_list.Pass all_commands, not -1, to help_list.
3341 * cli/cli-dump.c (dump_command, append_command)
3342 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3343 (binary_dump_command, binary_append_command): Pass all_commands,
3344 not -1, to help_list.
3345 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3346 -1, to help_list.
3347 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3348 -1, to help_list.
3349 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3350 help_list.
3351 * top.c (set_history): Pass all_commands, not -1, to help_list.
3352 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3353 all_commands, not -1, to help_list.
3354 * symfile.c (overlay_command): Pass all_commands, not -1, to
3355 help_list.
3356 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3357 help_list.
3358 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3359 help_list.
3360 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3361 -1, to help_list.
3362 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3363 not -1, to help_list.
3364 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3365 not -1, to help_list.
3366 * maint.c (maintenance_command, maintenance_info_command)
3367 (maintenance_print_command, maintenance_set_cmd): Pass
3368 all_commands, not -1, to help_list.
3369 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3370 help_list.
3371 * language.c (set_check): Pass all_commands, not -1, to help_list.
3372 * infcmd.c (unset_command): Pass all_commands, not -1, to
3373 help_list.
3374 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3375 help_list.
3376 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3377 help_list.
3378 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3379 help_list.
3380 * breakpoint.c (save_command): Pass all_commands, not -1, to
3381 help_list.
3382 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3383 all_commands, not -1, to help_list.
3384
3385 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3386
3387 * regcache.c (struct register_to_invalidate): New structure.
3388 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3389 functions.
3390 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3391
3392 2014-06-12 Yao Qi <yao@codesourcery.com>
3393
3394 * varobj.c (varobj_get_num_children): Call
3395 varobj_is_dynamic_p.
3396 (varobj_list_children): Likewise.
3397 (varobj_update): Likewise. Update comments.
3398
3399 2014-06-12 Yao Qi <yao@codesourcery.com>
3400
3401 * varobj.c (varobj_pretty_printed_p): Rename to ...
3402 (varobj_is_dynamic_p): ... this. New function.
3403 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3404 (varobj_is_dynamic_p): Declare.
3405 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3406 (mi_print_value_p, varobj_update_one): Likewise.
3407
3408 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3409 Yao Qi <yao@codesourcery.com>
3410
3411 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3412 (varobj_get_iterator): Wrap up code for pretty-printer by
3413 "#if HAVE_PYTHON" and "#endif".
3414 (update_dynamic_varobj_children): Likewise.
3415
3416 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3417 Yao Qi <yao@codesourcery.com>
3418
3419 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3420 gdb_python_initialized is false. Move some code from varobj.c.
3421 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3422 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3423 (struct varobj_item): Moved to varobj-iter.h".
3424 (varobj_clear_saved_item): New function.
3425 (update_dynamic_varobj_children): Move python-related code to
3426 py-varobj.c.
3427 (free_variable): Call varobj_clear_saved_item and
3428 varobj_iter_delete.
3429
3430 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3431 Yao Qi <yao@codesourcery.com>
3432
3433 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3434 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3435 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3436 (py-varobj.o): New rule.
3437 * python/py-varobj.c: New file.
3438 * python/python-internal.h (py_varobj_get_iterator): Declare.
3439 * varobj-iter.h: New file.
3440 * varobj.c: Include "varobj-iter.h"
3441 (struct varobj) <child_iter>: Change its type from "PyObject *"
3442 to "struct varobj_iter *".
3443 <saved_item>: Likewise.
3444 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3445 [HAVE_PYTHON] (varobj_get_iterator): New function.
3446 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3447 python-specific code to python/py-varobj.c.
3448 (install_visualizer): Call varobj_iter_delete instead of
3449 Py_XDECREF.
3450 * varobj.h (varobj_ensure_python_env): Declare.
3451
3452 2014-06-12 Yao Qi <yao@codesourcery.com>
3453
3454 * varobj.c (struct varobj_item): New structure.
3455 (create_child_with_value): Update declaration.
3456 (varobj_add_child): Replace arguments 'name' and 'value' with
3457 'item'. All callers updated.
3458 (install_dynamic_child): Likewise.
3459 (update_dynamic_varobj_children): Likewise.
3460 (varobj_add_child): Likewise.
3461 (create_child_with_value): Likewise.
3462
3463 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3464
3465 * NEWS: Create a new section for the next release branch.
3466 Rename the section of the current branch, now that it has
3467 been cut.
3468
3469 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3470
3471 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3472 * version.in: Bump version to 7.8.50.DATE-cvs.
3473
3474 2014-06-11 Pedro Alves <palves@redhat.com>
3475
3476 PR remote/17028
3477 * ser-mingw.c (net_windows_socket_check_pending): New function.
3478 (net_windows_select_thread): Ignore spurious wakeups. Use
3479 net_windows_socket_check_pending.
3480 (net_windows_wait_handle): Check for pending events with
3481 ioctlsocket, through net_windows_socket_check_pending, instead of
3482 checking the socket's event.
3483
3484 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3485
3486 * python/python-internal.h (gdb_PyObject_GetAttrString)
3487 (gdb_PyObject_HasAttrString): New inline function definitions.
3488 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3489 char * of the second argument to PyObject_GetAttrString.
3490
3491 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3492
3493 * serial.c (serial_write): Fix index of character to be printed
3494 in call to serial_logchar when serial debug traces are enabled.
3495
3496 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3497
3498 * gdbtypes (resolve_dynamic_range): Add function description.
3499
3500 2014-06-09 Pedro Alves <palves@redhat.com>
3501
3502 * linux-nat.c (linux_child_follow_fork): Initialize status with
3503 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3504 inner block. Only pass the signal to PTRACE_DETACH if in pass
3505 state.
3506
3507 2014-06-09 Gary Benson <gbenson@redhat.com>
3508
3509 * common/signals.c (gdb_signal_from_host): Reorder to separate
3510 the always-available ANSI-standard signals from the signals that
3511 require checking.
3512 (do_gdb_signal_to_host): Likewise.
3513 * proc-events.c (signal_table): Likewise.
3514
3515 2014-06-08 Hui Zhu <hui@codesourcery.com>
3516
3517 * common/linux-ptrace.c (linux_disable_event_reporting): New
3518 function.
3519 * common/linux-ptrace.h (linux_disable_event_reporting): New
3520 declaration.
3521 * linux-nat.c (linux_child_follow_fork): Do a single step before
3522 detach.
3523
3524 2014-06-07 Keith Seitz <keiths@redhat.com>
3525
3526 Revert:
3527 PR c++/16253
3528 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3529 from symbol_matches_domain in symtab.c. All local callers
3530 of symbol_matches_domain updated.
3531 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3532 search STRUCT_DOMAIN.
3533 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3534 independently. standard_lookup will do that automatically.
3535 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3536 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3537 (cp_lookup_symbol_in_namespace): Likewise.
3538 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3539 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3540 may return a STRUCT_DOMAIN match.
3541 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3542 * cp-support.c: Include language.h.
3543 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3544 VAR_DOMAIN.
3545 * psymtab.c (match_partial_symbol): Compare the requested
3546 domain with the symbol's domain directly.
3547 (lookup_partial_symbol): Likewise.
3548 * symtab.c (lookup_symbol_in_language): Explain when/why
3549 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3550 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3551 appropriate languages.
3552 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3553 and moved to ada-lang.c
3554 (lookup_block_symbol): Explain that this function only returns
3555 symbol matching the requested DOMAIN.
3556 Compare the requested domain with the symbol's domain directly.
3557 (iterate_over_symbols): Compare the requested domain with the
3558 symbol's domain directly.
3559 * symtab.h (symbol_matches_domain): Remove.
3560
3561 2014-06-06 Doug Evans <xdje42@gmail.com>
3562
3563 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3564 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3565 (gdbscm_guile_version_is_at_least): Declare.
3566 (gdbscm_scm_string_to_int): Declare.
3567 * guile/guile.c (gdbscm_guile_major_version): New global.
3568 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3569 (guile_datadir): New static global.
3570 (gdbscm_guile_data_directory): New function.
3571 (initialize_scheme_side): Update.
3572 (misc_guile_functions): Add guile-data-directory.
3573 (initialize_gdb_module): Fetch guile version number.
3574 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3575 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3576 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3577 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3578 comments.
3579 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3580 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3581 * guile/scm-value.c (gdbscm_value_to_string): Only call
3582 scm_port_conversion_strategy if Guile version >= 2.0.6.
3583
3584 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3585
3586 * main.c (print_gdb_help): Add -q and --silent.
3587
3588 2014-06-06 Gary Benson <gbenson@redhat.com>
3589
3590 * common/signals.c: Remove preprocessor conditionals for
3591 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3592 SIGSEGV and SIGTERM.
3593 * proc-events.c: Likewise.
3594
3595 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3596
3597 * symfile.c (symfile_free_objfile): Remove restriction to
3598 OBJF_USERLOADED.
3599 * symfile-mem.c (symbol_file_add_from_memory): Call
3600 add_target_sections_of_objfile.
3601
3602 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3603
3604 * guile/scm-value.c (gdbscm_history_append_x): Use
3605 'vlscm_get_value_smob_arg_unsafe' instead of
3606 'vlscm_scm_to_value'.
3607
3608 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3609
3610 PR mi/15806
3611 * utils.c (printchar): Don't escape at all if quoter is NUL.
3612 Update function documentation to clarify effect of parameter
3613 QUOTER.
3614 * remote.c (escape_buffer): Pass '\\' as the quoter to
3615 fputstrn_unfiltered.
3616 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3617 generate the output.
3618 (mi_solib_unloaded): Same.
3619
3620 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3621
3622 * development.sh: Delete.
3623 * Makefile.in (config.status): Adjust dependency on development.sh.
3624 * configure.ac: Adjust development.sh source call.
3625 * configure: Regenerate.
3626
3627 2014-06-04 Doug Evans <xdje42@gmail.com>
3628
3629 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3630 is_scheme_bkpt, spec.
3631 (bpscm_make_breakpoint_smob): Initialize new members.
3632 (gdbscm_create_breakpoint_x): Split into two ...
3633 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3634 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3635 (scheme_function breakpoint_functions): Update.
3636 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3637 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3638 register-breakpoint!.
3639
3640 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3641
3642 PR server/17023
3643 * mem-break.c (z_type_supported): Return zero if
3644 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3645
3646 2014-06-04 Tom Tromey <tromey@redhat.com>
3647
3648 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3649 value_from_contents_and_address_unresolved.
3650 (ada_template_to_fixed_record_type_1): Likewise.
3651 (ada_which_variant_applies): Likewise.
3652 * value.h (value_from_contents_and_address_unresolved): Declare.
3653 * value.c (value_from_contents_and_address_unresolved): New
3654 function.
3655 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3656 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3657 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3658
3659 2014-06-04 Tom Tromey <tromey@redhat.com>
3660
3661 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3662
3663 2014-06-04 Tom Tromey <tromey@redhat.com>
3664
3665 * procfs.c (procfs_attach): Make "args" const.
3666 * windows-nat.c (windows_attach): Make "args" const.
3667 * nto-procfs.c (procfs_attach): Make "args" const.
3668 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3669 * go32-nat.c (go32_attach): Make "args" const.
3670 * gnu-nat.c (gnu_attach): Make "args" const.
3671 * darwin-nat.c (darwin_attach): Make "args" const.
3672 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3673 * linux-nat.c (linux_nat_attach): Make "args" const.
3674 * remote.c (extended_remote_attach_1, extended_remote_attach):
3675 Make "args" const.
3676 * target.h (struct target_ops) <to_attach>: Make "args" const.
3677 (find_default_attach): Likewise.
3678 * utils.c (parse_pid_to_attach): Make "args" const.
3679 * utils.h (parse_pid_to_attach): Update.
3680
3681 2014-06-04 Tom Tromey <tromey@redhat.com>
3682
3683 * target-delegates.c: Rebuild.
3684 * target.c (default_thread_address_space): New function.
3685 (target_thread_address_space): Simplify.
3686 * target.h (struct target_ops) <to_thread_address_space>: Add
3687 TARGET_DEFAULT_FUNC.
3688
3689 2014-06-04 Doug Evans <xdje42@gmail.com>
3690
3691 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3692
3693 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3694
3695 * record-btrace.c: Include event-loop.h and inf-loop.h.
3696 (record_btrace_resume_exec_dir)
3697 (record_btrace_async_inferior_event_handler)
3698 (record_btrace_handle_async_inferior_event): New.
3699 (record_btrace_open): Create async event handler.
3700 (record_btrace_close): Delete async event handler.
3701 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3702 Mark async event handler.
3703 (record_btrace_execution_direction): New.
3704 (init_record_btrace_ops): Initialize to_execution_direction.
3705
3706 2014-06-03 Doug Evans <xdje42@gmail.com>
3707
3708 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3709 (gdbscm_make_parameter): Ditto.
3710
3711 2014-06-03 Doug Evans <dje@google.com>
3712
3713 * exec.c (exec_close_1): Call clear_section_table instead of
3714 resize_section_table.
3715 (clear_section_table): New function.
3716 (resize_section_table): Make static. Rename arg num_added to
3717 adjustment.
3718 * exec.h (clear_section_table): Declare.
3719 (resize_section_table): Delete.
3720 * progspace.c (release_program_space): Call clear_section_table
3721 instead of resize_section_table.
3722
3723 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3724
3725 * NEWS (Python Scripting): Add entry about the new xmethods
3726 feature.
3727
3728 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3729
3730 * python/py-xmethods.c: New file.
3731 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3732 (objfpy_dealloc): XDECREF on the new xmethods field.
3733 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3734 field.
3735 (objfpy_get_xmethods): New function.
3736 (objfile_getset): New entry 'xmethods'.
3737 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3738 (pspy_dealloc): XDECREF on the new xmethods field.
3739 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3740 field.
3741 (pspy_get_xmethods): New function.
3742 (pspace_getset): New entry 'xmethods'.
3743 * python/python-internal.h: Add declarations for new functions.
3744 * python/python.c (_initialize_python): Invoke
3745 gdbpy_initialize_xmethods.
3746 * python/lib/gdb/__init__.py (xmethods): New
3747 attribute.
3748 * python/lib/gdb/xmethod.py: New file.
3749 * python/lib/gdb/command/xmethods.py: New file.
3750
3751 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3752
3753 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3754 best match method returned by find_overload_match is an xmethod.
3755 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3756 the best matching operator returned by find_overload_match is an
3757 xmethod.
3758 * valops.c: #include "extension.h".
3759 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3760 Return void. The list of matching source methods is returned in
3761 "fn_list" and a vector of matching debug method workers is
3762 returned in "xm_worker_vec". Update all callers.
3763 (value_find_oload_method_list): Likewise.
3764 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3765 non-NULL, then the index of the best matching method in this
3766 vector is returned. Update all callers.
3767 (find_overload_match): Include xmethods while performing overload
3768 resolution.
3769
3770 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3771
3772 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3773 * extension-priv.h (struct extension_language_ops): Add the
3774 xmethod interface.
3775 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3776 get_matching_xmethod_workers, get_xmethod_argtypes,
3777 invoke_xmethod, free_xmethod_worker,
3778 free_xmethod_worker_vec): New functions.
3779 * extension.h: #include "common/vec.h".
3780 New function declarations.
3781 (struct xmethod_worker): New struct.
3782 (VEC (xmethod_worker_ptr)): New vector type.
3783 (xmethod_worker_ptr): New typedef.
3784 (xmethod_worker_vec): Likewise.
3785 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3786 builtin_type.
3787 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3788 (struct builtin_type): New field "xmethod".
3789 * valarith.c (value_ptradd): Assert that the value argument is not
3790 lval_xcallable.
3791 * valops.c (value_must_coerce_to_target): Return 0 for
3792 lval_xcallable values.
3793 * value.c (struct value): New field XM_WORKER in the field
3794 LOCATION.
3795 (value_address, value_raw_address): Return 0 for lval_xcallable
3796 values.
3797 (set_value_address): Assert that the value is not an
3798 lval_xcallable.
3799 (value_free): Free the associated xmethod worker when freeing
3800 lval_xcallable values.
3801 (set_value_component_location): Assert that the WHOLE value is not
3802 lval_xcallable.
3803 (value_of_xmethod, call_xmethod): New functions.
3804 * value.h: Declare "struct xmethod_worker".
3805 Declare new functions value_of_xmethod, call_xmethod.
3806
3807 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3808 Pedro Alves <palves@redhat.com>
3809
3810 PR breakpoints/17000
3811 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3812 New function, extracted from software_breakpoint_inserted_here_p.
3813 (software_breakpoint_inserted_here_p): Replace factored out code
3814 by call to find_non_raw_software_breakpoint_inserted_here.
3815 (bp_target_info_copy_insertion_state): New function.
3816 (bkpt_insert_location): Handle the case of a single-step
3817 breakpoint already inserted at the same address.
3818 (bkpt_remove_location): Handle the case of a single-step
3819 breakpoint still inserted at the same address.
3820 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3821 breakpoint already inserted at the same address.
3822 (deprecated_remove_raw_breakpoint): Handle the case of a
3823 non-raw breakpoint still inserted at the same address.
3824 (find_single_step_breakpoint): New function, extracted from
3825 single_step_breakpoint_inserted_here_p.
3826 (find_single_step_breakpoint): New function,
3827 factored out from single_step_breakpoint_inserted_here_p.
3828 (single_step_breakpoint_inserted_here_p): Reimplement.
3829
3830 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3831
3832 Pushed by Joel Brobecker <brobecker@adacore.com>
3833 * source.c (show_substitute_path_command): Fix display of matching
3834 substitution rules.
3835
3836 2014-06-03 Gary Benson <gbenson@redhat.com>
3837
3838 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3839
3840 2014-06-02 Doug Evans <xdje42@gmail.com>
3841
3842 Add parameter support for Guile.
3843 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3844 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3845 (scm-param.o): New rule.
3846 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3847 (gdbscm_misc_error): Declare.
3848 (gdbscm_canonicalize_command_name): Declare.
3849 (gdbscm_scm_to_host_string): Declare.
3850 (gdbscm_scm_from_host_string): Declare.
3851 (gdbscm_initialize_parameters): Declare.
3852 * guile/guile.c (initialize_gdb_module): Call
3853 gdbscm_initialize_parameters.
3854 * guile/lib/gdb.scm: Export parameter symbols.
3855 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3856 cmdscm_canonicalize_name and made public. All callers updated.
3857 * guile/scm-exception.c (gdbscm_misc_error): New function.
3858 * guile/scm-param.c: New file.
3859 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3860 (gdbscm_scm_to_host_string): New function.
3861 (gdbscm_scm_from_host_string): New function.
3862 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3863
3864 2014-06-02 Doug Evans <xdje42@gmail.com>
3865
3866 Add command support for Guile.
3867 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3868 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3869 (scm-cmd.o): New rule.
3870 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3871 (gdbscm_user_error_p): Declare.
3872 (gdbscm_parse_command_name): Declare.
3873 (gdbscm_valid_command_class_p): Declare.
3874 (gdbscm_initialize_commands): Declare.
3875 * guile/guile.c (initialize_gdb_module): Call
3876 gdbscm_initialize_commands.
3877 * guile/lib/gdb.scm: Export command symbols.
3878 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3879 (throw-user-error): New function.
3880 * guile/scm-cmd.c: New file.
3881 * guile/scm-exception.c (user_error_symbol): New static global.
3882 (gdbscm_user_error_p): New function.
3883 (gdbscm_initialize_exceptions): Set user_error_symbol.
3884 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3885
3886 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3887
3888 * top.c (command_loop): Handle comments here...
3889 (command_line_input): ... not here.
3890
3891 2014-06-02 Doug Evans <xdje42@gmail.com>
3892
3893 Add progspace support for Guile.
3894 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3895 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3896 (scm-progspace.o): New rule.
3897 * guile/guile-internal.h (pspace_smob): New typedef.
3898 (psscm_pspace_smob_pretty_printers): Declare.
3899 (psscm_pspace_smob_from_pspace): Declare.
3900 (psscm_scm_from_pspace): Declare.
3901 * guile/guile.c (initialize_gdb_module): Call
3902 gdbscm_initialize_pspaces.
3903 * guile/lib/gdb.scm: Export progspace symbols.
3904 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3905 support.
3906 (append-pretty-printer!): Ditto.
3907 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3908 Implement.
3909 * guile/scm-progspace.c: New file.
3910
3911 2014-06-03 Alan Modra <amodra@gmail.com>
3912
3913 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3914 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3915
3916 2014-06-02 Doug Evans <dje@google.com>
3917
3918 Add support for skeletonless type units.
3919 * dwarf2read.c (struct dwarf2_per_objfile): New member
3920 n_allocated_type_units.
3921 (struct dwarf2_per_objfile) <tu_stats>: New member
3922 nr_all_type_units_reallocs.
3923 (create_signatured_type_table_from_index): Initialize
3924 n_allocated_type_units
3925 (create_all_type_units): Ditto.
3926 (add_type_unit): Move up in file. New arg slot.
3927 All callers updated. Increase space for all_type_units more
3928 efficiently.
3929 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3930 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3931 (lookup_dwp_signatured_type): Ditto.
3932 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3933 All callers updated.
3934 (build_type_psymtabs_1): Leave type_unit_groups as
3935 NULL if no TUs present.
3936 (print_tu_stats): New function.
3937 (process_skeletonless_type_unit): New function.
3938 (process_dwo_file_for_skeletonless_type_units): New
3939 function.
3940 (process_skeletonless_type_units): New function.
3941 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3942 Call print tu_stats if debugging enabled.
3943
3944 2014-06-02 Pedro Alves <palves@redhat.com>
3945
3946 * breakpoint.c (build_target_command_list): Don't build a command
3947 list if we have any duplicate location that isn't a dprintf.
3948
3949 2014-06-02 Pedro Alves <palves@redhat.com>
3950
3951 * breakpoint.c (dprintf_breakpoint_hit): New function.
3952 (initialize_breakpoint_ops): Install it as dprintf's
3953 breakpoint_hit method.
3954
3955 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3956
3957 * source.c (substitute_path_rule_matches): Simplify using
3958 filename_ncmp instead of FILENAME_CMP.
3959
3960 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3961
3962 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3963
3964 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3965
3966 * configure.ac: When Guile is available, check for the
3967 availability of 'scm_new_smob'.
3968 * configure, config.h.in: Regenerate.
3969 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3970 function.
3971
3972 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3973
3974 * frame.c (struct frame_info): Add stop_string field.
3975 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3976 (get_prev_frame_always): Old content moved into
3977 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3978 TRY_CATCH, handle MEMORY_ERROR exceptions.
3979 (frame_stop_reason_string): New function definition.
3980 * frame.h (unwind_stop_reason_to_string): Extend comment to
3981 mention frame_stop_reason_string.
3982 (frame_stop_reason_string): New function declaration.
3983 * stack.c (frame_info): Switch to frame_stop_reason_string.
3984 (backtrace_command_1): Switch to frame_stop_reason_string.
3985 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3986 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3987 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3988
3989 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3990
3991 * frame.c (frame_stop_reason_string): Rename to ...
3992 (unwind_stop_reason_to_string): this.
3993 * frame.h (frame_stop_reason_string): Rename to ...
3994 (unwind_stop_reason_to_string): this.
3995 * stack.c (frame_info): Update call to frame_stop_reason_string.
3996 (backtrace_command_1): Likewise.
3997 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3998 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3999
4000 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4001
4002 * frame.c (remove_prev_frame): New function.
4003 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4004 remove_prev_frame.
4005
4006 2014-05-29 Pedro Alves <palves@redhat.com>
4007
4008 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4009 and make it const. When a single-step decays to a continue,
4010 clear 'step', not 'hw_step'. Pass whether the caller wanted
4011 to step to user_visible_resume_ptid, not what we ask the
4012 target to do.
4013
4014 2014-05-29 Pedro Alves <palves@redhat.com>
4015
4016 * infrun.c (process_event_stop_test, handle_step_into_function)
4017 (handle_step_into_function_backward): Adjust.
4018 Don't set the even thread's stop_step and call stop_waiting before
4019 calling end_stepping_range. Instead do that ...
4020 (end_stepping_range): ... here. Take an ecs pointer parameter.
4021
4022 2014-05-29 Pedro Alves <palves@redhat.com>
4023
4024 * infrun.c (stop_stepping): Rename to ...
4025 (stop_waiting): ... this.
4026 (proceed): Update comment.
4027 (process_event_stop_test, handle_inferior_event)
4028 (handle_signal_stop, handle_step_into_function)
4029 (handle_step_into_function_backward): Update.
4030
4031 2014-05-29 Pedro Alves <palves@redhat.com>
4032
4033 * infcall.c (run_inferior_call): Don't check whether the current
4034 thread is running after the proceed call.
4035
4036 2014-05-29 Pedro Alves <palves@redhat.com>
4037 Tom Tromey <tromey@redhat.com>
4038
4039 * NEWS: Mention "maint set target-async", "set mi-async", and that
4040 background execution commands are now always available.
4041 * target.h (target_async_permitted): Update comment.
4042 * target.c (target_async_permitted, target_async_permitted_1):
4043 Default to 1.
4044 (set_target_async_command): Rename to ...
4045 (maint_set_target_async_command): ... this.
4046 (show_target_async_command): Rename to ...
4047 (maint_show_target_async_command): ... this.
4048 (_initialize_target): Adjust.
4049 * infcmd.c (prepare_execution_command): Make extern.
4050 * inferior.h (prepare_execution_command): Declare.
4051 * infrun.c (set_observer_mode): Leave target async alone.
4052 * mi/mi-interp.c (mi_interpreter_init): Install
4053 mi_on_sync_execution_done as sync_execution_done observer.
4054 (mi_on_sync_execution_done): New function.
4055 (mi_execute_command_input_handler): Don't print the prompt if we
4056 just started a synchronous command with an async target.
4057 (mi_on_resume): Check sync_execution before printing prompt.
4058 * mi/mi-main.h (mi_async_p): Declare.
4059 * mi/mi-main.c: Include gdbcmd.h.
4060 (mi_async_p): New function.
4061 (mi_async, mi_async_1): New globals.
4062 (set_mi_async_command, show_mi_async_command, mi_async): New
4063 functions.
4064 (exec_continue): Call prepare_execution_command.
4065 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4066 (mi_execute_async_cli_command): Use mi_async_p.
4067 (_initialize_mi_main): Install "set mi-async". Make
4068 "target-async" a deprecated alias.
4069
4070 2014-05-29 Pedro Alves <palves@redhat.com>
4071
4072 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4073 (_initialize_cli_interp): Adjust.
4074 * event-loop.c: Include "observer.h".
4075 (start_event_loop): Notify 'command_error' observers instead of
4076 calling display_gdb_prompt. Remove FIXME comment.
4077 * event-top.c (display_gdb_prompt): Remove call into the
4078 interpreters.
4079 * inf-loop.c: Include "observer.h".
4080 (inferior_event_handler): Notify 'command_error' observers instead
4081 of calling display_gdb_prompt.
4082 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4083 observers instead of calling display_gdb_prompt.
4084 * interps.c (interp_set): Don't call display_gdb_prompt.
4085 (current_interp_display_prompt_p): Delete.
4086 * interps.h (interp_prompt_p): Delete declaration.
4087 (interp_prompt_p_ftype): Delete.
4088 (struct interp_procs) <prompt_proc_p>: Delete field.
4089 (current_interp_display_prompt_p): Delete declaration.
4090 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4091 (_initialize_mi_interp): Adjust.
4092 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4093 'command_error' observers.
4094 (tui_on_sync_execution_done, tui_on_command_error): New
4095 functions.
4096 (tui_display_prompt_p): Delete.
4097 (_initialize_tui_interp): Adjust.
4098
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4100
4101 PR gdb/13860
4102 * cli/cli-interp.c: Include infrun.h and observer.h.
4103 (cli_uiout, cli_interp): New globals.
4104 (cli_on_signal_received, cli_on_end_stepping_range)
4105 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4106 functions.
4107 (cli_interpreter_init): Install them as 'end_stepping_range',
4108 'signal_received' 'signal_exited', 'exited' and 'no_history'
4109 observers.
4110 (_initialize_cli_interp): Remove cli_interp local.
4111 * infrun.c (handle_inferior_event): Call the several stop reason
4112 observers instead of printing the stop reason directly.
4113 (end_stepping_range): New function.
4114 (print_end_stepping_range_reason, print_signal_exited_reason)
4115 (print_exited_reason, print_signal_received_reason)
4116 (print_no_history_reason): Make static, and add an uiout
4117 parameter. Print to that instead of to CURRENT_UIOUT.
4118 * infrun.h (print_end_stepping_range_reason)
4119 (print_signal_exited_reason, print_exited_reason)
4120 (print_signal_received_reason print_no_history_reason): New
4121 declarations.
4122 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4123 'mi_uiout'.
4124 <cli_uiout>: New field.
4125 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4126 uiout for CLI output. Install 'signal_received',
4127 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4128 observers.
4129 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4130 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4131 (mi_on_no_history): New functions.
4132 (ui_out_free_cleanup): Delete function.
4133 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4134 instead use the one already stored in the MI interpreter data.
4135 (mi_ui_out): Adjust.
4136 * tui/tui-interp.c: Include infrun.h and observer.h.
4137 (tui_interp): New global.
4138 (tui_on_signal_received, tui_on_end_stepping_range)
4139 (tui_on_signal_exited, tui_on_exited)
4140 (tui_on_no_history): New functions.
4141 (tui_init): Install them as 'end_stepping_range',
4142 'signal_received' 'signal_exited', 'exited' and 'no_history'
4143 observers.
4144 (_initialize_tui_interp): Delete tui_interp local.
4145
4146 2014-05-29 Pedro Alves <palves@redhat.com>
4147
4148 PR gdb/15713
4149 * linux-nat.c (linux_nat_resume_callback): Rename the second
4150 parameter to 'except'. Skip LP if it points to EXCEPT.
4151 (linux_nat_resume): Don't mark the event lwp as not stopped
4152 before resuming sibling lwps. Instead ask
4153 linux_nat_resume_callback to skip the event lwp. Mark it as not
4154 stopped after actually resuming it.
4155 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4156 resuming it.
4157 (wait_lwp): Mark the lwp as stopped here.
4158 (stop_wait_callback): Mark the lwp as not stopped right after
4159 resuming it. Don't mark lwps as stopped here.
4160 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4161 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4162
4163 2014-05-29 Pedro Alves <palves@redhat.com>
4164
4165 PR PR15693
4166 * infrun.c (resume): Determine how much to resume depending on
4167 whether the caller wanted a step, not whether we can hardware step
4168 the target. Mark all threads that we intend to run as running,
4169 unless we're calling an inferior function.
4170 (normal_stop): If the thread is running an infcall, don't finish
4171 thread state.
4172 * target.c (target_resume): Don't mark threads as running here.
4173
4174 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4175
4176 * serial.c (_initialize_serial): Remove support for
4177 the "set remotebaud" and "show remotebaud" commands.
4178 * NEWS: Add entry documenting the removal of that command.
4179
4180 2014-05-28 Yao Qi <yao@codesourcery.com>
4181
4182 * charset.c: Fix typo in comments.
4183
4184 2014-05-27 Gary Benson <gbenson@redhat.com>
4185
4186 * utils.c (internal_vproblem): Prompt for a bug report.
4187
4188 2014-05-26 Andy Wingo <wingo@igalia.com>
4189
4190 * guile/scm-arch.c (arscm_mark_arch_smob):
4191 * guile/scm-block.c (bkscm_mark_block_smob)
4192 (bkscm_mark_block_syms_progress_smob):
4193 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4194 * guile/scm-exception.c (exscm_mark_exception_smob):
4195 * guile/scm-frame.c (frscm_mark_frame_smob):
4196 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4197 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4198 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4199 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4200 (ppscm_mark_pretty_printer_worker_smob):
4201 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4202 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4203 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4204 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4205 mark functions.
4206 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4207 function.
4208
4209 2014-05-26 Andy Wingo <wingo@igalia.com>
4210 Doug Evans <xdje42@gmail.com>
4211
4212 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4213 empty_base_class. All uses updated.
4214 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4215 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4216 Adapt all callers.
4217 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4218 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4219 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4220 (gdbscm_gsmob_has_property_p, add_property_name)
4221 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4222 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4223 (gdb-object-has-property?, gdb-object-properties): Remove.
4224 (gdb-object-kind): Renamed from gsmob-kind.
4225
4226 2014-05-26 Andy Wingo <wingo@igalia.com>
4227
4228 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4229 * configure: Regenerate.
4230
4231 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4232
4233 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4234
4235 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4236
4237 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4238 (replay_memory_access_read_only, replay_memory_access_read_write)
4239 (replay_memory_access_types, replay_memory_access)
4240 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4241 (cmd_set_record_btrace, cmd_show_record_btrace)
4242 (cmd_show_replay_memory_access): New.
4243 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4244 (record_btrace_remove_breakpoint): Replace
4245 record_btrace_allow_memory_access with replay_memory_access.
4246 (_initialize_record_btrace): Add commands.
4247 * NEWS: Announce it.
4248
4249 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4250
4251 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4252
4253 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4254
4255 * MAINTAINERS (Write After Approval): Move self back from
4256 paper trail.
4257
4258 2014-05-22 Pedro Alves <palves@redhat.com>
4259
4260 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4261 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4262 (disable_randomization, enum exec_direction_kind)
4263 (execution_direction, stop_registers, start_remote)
4264 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4265 (wait_for_inferior, normal_stop, get_last_target_status)
4266 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4267 (insert_step_resume_breakpoint_at_sal)
4268 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4269 (set_step_info, print_stop_event, signal_stop_state)
4270 (signal_print_state, signal_pass_state, signal_stop_update)
4271 (signal_print_update, signal_pass_update)
4272 (update_signals_program_target, clear_exit_convenience_vars)
4273 (displaced_step_dump_bytes, update_observer_mode)
4274 (signal_catch_update, gdb_signal_from_command): Move
4275 declarations ...
4276 * infrun.h: ... to this new file.
4277 * amd64-tdep.c: Include infrun.h.
4278 * annotate.c: Include infrun.h.
4279 * arch-utils.c: Include infrun.h.
4280 * arm-linux-tdep.c: Include infrun.h.
4281 * arm-tdep.c: Include infrun.h.
4282 * break-catch-sig.c: Include infrun.h.
4283 * breakpoint.c: Include infrun.h.
4284 * common/agent.c: Include infrun.h instead of inferior.h.
4285 * corelow.c: Include infrun.h.
4286 * event-top.c: Include infrun.h.
4287 * go32-nat.c: Include infrun.h.
4288 * i386-tdep.c: Include infrun.h.
4289 * inf-loop.c: Include infrun.h.
4290 * infcall.c: Include infrun.h.
4291 * infcmd.c: Include infrun.h.
4292 * infrun.c: Include infrun.h.
4293 * linux-fork.c: Include infrun.h.
4294 * linux-nat.c: Include infrun.h.
4295 * linux-thread-db.c: Include infrun.h.
4296 * monitor.c: Include infrun.h.
4297 * nto-tdep.c: Include infrun.h.
4298 * procfs.c: Include infrun.h.
4299 * record-btrace.c: Include infrun.h.
4300 * record-full.c: Include infrun.h.
4301 * remote-m32r-sdi.c: Include infrun.h.
4302 * remote-mips.c: Include infrun.h.
4303 * remote-notif.c: Include infrun.h.
4304 * remote-sim.c: Include infrun.h.
4305 * remote.c: Include infrun.h.
4306 * reverse.c: Include infrun.h.
4307 * rs6000-tdep.c: Include infrun.h.
4308 * s390-linux-tdep.c: Include infrun.h.
4309 * solib-irix.c: Include infrun.h.
4310 * solib-osf.c: Include infrun.h.
4311 * solib-svr4.c: Include infrun.h.
4312 * target.c: Include infrun.h.
4313 * top.c: Include infrun.h.
4314 * windows-nat.c: Include infrun.h.
4315 * mi/mi-interp.c: Include infrun.h.
4316 * mi/mi-main.c: Include infrun.h.
4317 * python/py-threadevent.c: Include infrun.h.
4318
4319 2014-05-22 Pedro Alves <palves@redhat.com>
4320
4321 * infrun.c (handle_inferior_event): Store the exit code for
4322 --return-child-result here, instead of ...
4323 (print_exited_reason): ... here.
4324
4325 2014-05-21 Pedro Alves <palves@redhat.com>
4326
4327 PR gdb/13860
4328 * gdbthread.h (struct thread_control_state): New field
4329 `command_interp'.
4330 * infrun.c (follow_fork): Copy the new thread control field to the
4331 child fork thread.
4332 (clear_proceed_status_thread): Clear the new thread control field.
4333 (proceed): Set the new thread control field.
4334 * interps.h (command_interp): Declare.
4335 * interps.c (command_interpreter): New global.
4336 (command_interp): New function.
4337 (interp_exec): Set `command_interpreter' while here.
4338 * cli-out.c (cli_uiout_dtor): New function.
4339 (cli_ui_out_impl): Install it.
4340 * mi/mi-interp.c: Include cli-out.h.
4341 (mi_cmd_interpreter_exec): Add comment.
4342 (restore_current_uiout_cleanup): New function.
4343 (ui_out_free_cleanup): New function.
4344 (mi_on_normal_stop): If finishing an execution command started by
4345 a CLI command, or any kind of breakpoint-like event triggered,
4346 print the stop event to the output (CLI) stream.
4347 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4348
4349 2014-05-21 Pedro Alves <palves@redhat.com>
4350
4351 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4352 current source line having changed.
4353 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4354 * infrun.c (normal_stop): Adjust call to
4355 set_current_sal_from_frame.
4356 * source.c (clear_lines_listed_range): New function.
4357 (set_current_source_symtab_and_line, identify_source_line): Clear
4358 the lines listed range.
4359 (line_info): Handle the first "info line" after the current source
4360 line having changed.
4361 * stack.c (print_stack_frame): Remove center handling.
4362 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4363 center sal.line.
4364
4365 2014-05-21 Pedro Alves <palves@redhat.com>
4366
4367 * inf-child.c (inf_child_mourn_inferior): New function.
4368 * inf-child.h (inf_child_mourn_inferior): New declaration.
4369 * darwin-nat.c (darwin_mourn_inferior): Use
4370 inf_child_mourn_inferior.
4371 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4372 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4373 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4374 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4375 * windows-nat.c (windows_mourn_inferior): Likewise.
4376
4377 2014-05-21 Doug Evans <xdje42@gmail.com>
4378
4379 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4380
4381 2014-05-21 Doug Evans <xdje42@gmail.com>
4382
4383 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4384 (gdbscm_out_of_range_error): Ditto.
4385 (gdbscm_memory_error): Ditto.
4386 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4387 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4388 (gdbscm_out_of_range_error): Update.
4389 (gdbscm_memory_error): Update.
4390 (gdbscm_scm_to_target_string_unsafe): Delete.
4391
4392 2014-05-21 Pedro Alves <palves@redhat.com>
4393
4394 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4395 globals.
4396 (inf_child_open_target): New function.
4397 (inf_child_open): Use inf_child_open_target to push the target
4398 instead of erroring out.
4399 (inf_child_disconnect, inf_child_close)
4400 (inf_child_maybe_unpush_target): New functions.
4401 (inf_child_target): Install inf_child_disconnect and
4402 inf_child_close. Store a pointer to the returned object.
4403 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4404 declarations.
4405 * target.c (auto_connect_native_target): New global.
4406 (show_default_run_target): New function.
4407 (find_default_run_target): Return NULL if automatically connecting
4408 to the native target is disabled.
4409 (_initialize_target): Install set/show auto-connect-native-target.
4410 * NEWS: Mention "set auto-connect-native-target", and "target
4411 native".
4412 * linux-nat.c (super_close): New global.
4413 (linux_nat_close): Call super_close.
4414 (linux_nat_add_target): Store a pointer to the base class's
4415 to_close method.
4416 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4417 inf_child_maybe_unpush.
4418 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4419 already pushed.
4420 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4421 the inferior. Use inf_child_maybe_unpush_target.
4422 (inf_ttrace_attach): Don't push the target if it is already
4423 pushed.
4424 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4425 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4426 after mourning the inferior. Use inf_child_maybe_unpush_target.
4427 (darwin_attach_pid): Don't push the target if it is already
4428 pushed.
4429 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4430 mourning the inferior. Use inf_child_maybe_unpush_target.
4431 (gnu_detach): Use inf_child_maybe_unpush_target.
4432 * go32-nat.c (go32_create_inferior): Don't push the target if it
4433 is already pushed.
4434 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4435 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4436 (procfs_open): Rename to ...
4437 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4438 comments. Can target_preopen before changing node. Call
4439 inf_child_open_target to push the target explicitly.
4440 (procfs_attach): Don't push the target if it is already pushed.
4441 (procfs_detach): Use inf_child_maybe_unpush_target.
4442 (procfs_create_inferior): Don't push the target if it is already
4443 pushed.
4444 (nto_native_ops): New global.
4445 (procfs_open): Reimplement.
4446 (procfs_native_open): New function.
4447 (init_procfs_targets): Install procfs_native_open as to_open of
4448 "target native". Store a pointer to the "native" target in
4449 nto_native_ops.
4450 * procfs.c (procfs_attach): Don't push the target if it is already
4451 pushed.
4452 (procfs_detach): Use inf_child_maybe_unpush_target.
4453 (procfs_mourn_inferior): Only unpush the target after mourning the
4454 inferior. Use inf_child_maybe_unpush_target.
4455 (procfs_init_inferior): Don't push the target if it is already
4456 pushed.
4457 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4458 if it is already pushed.
4459
4460 2014-05-21 Pedro Alves <palves@redhat.com>
4461
4462 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4463 and "procfs" targets are now called "native" instead.
4464
4465 2014-05-21 Pedro Alves <palves@redhat.com>
4466
4467 * go32-nat.c (go32_open): Delete.
4468 (go32_target): Don't override the to_open method.
4469
4470 2014-05-21 Pedro Alves <palves@redhat.com>
4471
4472 * nto-procfs.c (procfs_can_run): New function.
4473 (nto_procfs_ops): New global.
4474 (init_procfs_targets): New, based on procfs_target. Install
4475 "target native" in addition to "target procfs".
4476 (_initialize_procfs): Call init_procfs_targets instead of adding
4477 the target here.
4478
4479 2014-05-21 Pedro Alves <palves@redhat.com>
4480
4481 * windows-nat.c (windows_target): Don't override to_shortname,
4482 to_longname or to_doc.
4483
4484 2014-05-21 Pedro Alves <palves@redhat.com>
4485
4486 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4487 to_doc.
4488
4489 2014-05-21 Pedro Alves <palves@redhat.com>
4490
4491 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4492 to_shortname, to_longname or to_doc.
4493
4494 2014-05-21 Pedro Alves <palves@redhat.com>
4495
4496 * go32-nat.c (go32_target): Don't override to_shortname,
4497 to_longname or to_doc.
4498
4499 2014-05-21 Pedro Alves <palves@redhat.com>
4500
4501 * inf-child.c (inf_child_open): Remove mention of "child".
4502 (inf_child_target): Rename target to "native" instead of "child".
4503
4504 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4505
4506 * Makefile.in (SFILES): Delete "regset.c".
4507 (COMMON_OBS): Delete "regset.o".
4508 * regset.c: Remove.
4509 * regset.h (regset_alloc): Delete prototype.
4510
4511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4512
4513 * sparc-linux-tdep.c (sparc32_linux_gregset)
4514 (sparc32_linux_fpregset): New static regset structures.
4515 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4516 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4517 'fpregset' fields.
4518 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4519 (sparc64_linux_fpregset): New static regset structures.
4520 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4521 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4522 New static regset structures.
4523 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4524 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4525 New static regset structures.
4526 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4527 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4528 New static regset structures.
4529 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4530 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4531 New static regset structures.
4532 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4533
4534 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4535
4536 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4537 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4538 register maps ("regmaps") from "*regset" to "*regmap". Do this
4539 for all regmap types and variables.
4540 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4541 (sparc32_linux_supply_core_gregset)
4542 (sparc32_linux_collect_core_gregset)
4543 (sparc32_linux_supply_core_fpregset)
4544 (sparc32_linux_collect_core_fpregset): Likewise.
4545 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4546 (sparc_gregmap, sparc_fpregmap): ... these.
4547 (sparc_supply_gregset, sparc_collect_gregset)
4548 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4549 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4550 (_initialize_sparc_nat): Rename regmaps.
4551 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4552 (sparc_gregmap, sparc_fpregmap): ... these.
4553 (sparc_supply_gregset, sparc_collect_gregset)
4554 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4555 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4556 Rename macros to...
4557 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4558 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4559 Likewise.
4560 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4561 Rename to...
4562 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4563 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4564 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4565 regmaps.
4566 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4567 (sparc32_bsd_fpregset): Rename to...
4568 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4569 (sparc32_bsd_fpregmap): ... these.
4570 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4571 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4572 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4573 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4574 (struct sparc_gregmap, struct sparc_fpregmap)
4575 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4576 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4577 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4578 (sparc32_supply_regset, sparc32_collect_gregset)
4579 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4580 prototypes.
4581 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4582 (sparc64_linux_ptrace_gregmap): ... this.
4583 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4584 (_initialize_sparc64_linux_nat): Rename regmaps.
4585 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4586 (sparc64_linux_core_gregmap): ... this.
4587 (sparc64_linux_supply_core_gregset)
4588 (sparc64_linux_collect_core_gregset)
4589 (sparc64_linux_supply_core_fpregset)
4590 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4591 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4592 (sparc64_sol2_fpregset): Rename to...
4593 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4594 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4595 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4596 regmaps.
4597 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4598 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4599 (sparc64_bsd_fpregset): Rename to...
4600 (struct sparc_gregmap, sparc64_sol2_gregmap)
4601 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4602 (sparc64_bsd_fpregmap): ... these.
4603 (sparc64_supply_gregset, sparc64_collect_gregset)
4604 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4605 prototypes.
4606 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4607 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4608 (sparc64fbsd_gregmap): ... this.
4609 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4610 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4611 Rename regmaps.
4612 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4613 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4614 (sparc64nbsd_collect_fpregset): Likewise.
4615 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4616 (sparc64nbsd_gregmap): ... this.
4617 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4618 regmaps.
4619 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4620 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4621 (sparc64obsd_gregmap): ... this.
4622 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4623 regmaps.
4624 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4625 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4626 (sparc32nbsd_gregmap): ... this.
4627 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4628 regmaps.
4629
4630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4631
4632 * score-tdep.c (score7_linux_gregset): New static regset
4633 structure.
4634 (score7_linux_regset_from_core_section): Remove dynamic regset
4635 allocation.
4636 (score_gdbarch_init): Drop allocation of tdep structure.
4637 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4638
4639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640
4641 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4642 regset structures.
4643 (am33_regset_from_core_section): Remove dynamic regset
4644 allocations.
4645
4646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4647
4648 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4649 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4650 structures.
4651 (mips_linux_regset_from_core_section): Remove dynamic regset
4652 allocations.
4653 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4654 'gregset64', 'fpregset', and 'fpregset64'.
4655 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4656 deleted tdep fields.
4657
4658 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4659
4660 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4661 regset structures.
4662 (amd64_regset_from_core_section): Remove dynamic regset
4663 allocations.
4664 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4665 structure.
4666 (amd64obsd_regset_from_core_section): Remove dynamic regset
4667 allocation.
4668 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4669 Likewise.
4670 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4671 x86-common regset supply function.
4672 * i386-tdep.c (i386_collect_gregset): Make static.
4673 (i386_gregset): New global regset structure.
4674 (i386_fpregset, i386_xstateregset): New static regset structures.
4675 (i386_regset_from_core_section): Remove dynamic regset
4676 allocations.
4677 (i386_gdbarch_init): Remove initialization of tdep fields
4678 'gregset', 'fpregset', and 'xstateregset'.
4679 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4680 'fpregset', and 'xstateregset'.
4681 (i386_collect_gregset): Remove prototype.
4682 (i386_gregset): New declaration.
4683 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4684 structure.
4685 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4686 allocation.
4687
4688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4689
4690 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4691 (arm_linux_vfpregset): New static regset structures.
4692 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4693 regset structures.
4694 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4695 and 'vfpregset' fields.
4696
4697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4698
4699 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4700 (aarch64_linux_fpregset): New static regset structures.
4701 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4702 of regset structures.
4703 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4704 'fpregset' fields.
4705
4706 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4707
4708 * regset.h (struct regset): Remove gdbarch field.
4709 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4710 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4711 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4712 Likewise.
4713 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4714 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4715 (ppc32_linux_vsxregset): Likewise.
4716 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4717 via the regcache instead of the regset.
4718 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4719 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4720 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4721 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4722 Likewise.
4723
4724 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4725
4726 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4727 Constify structures.
4728 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4729 (alphanbsd_aout_gregset): Likewise.
4730 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4731 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4732 Likewise.
4733 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4734 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4735 Likewise.
4736 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4737 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4738 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4739 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4740 * m88k-tdep.c (m88k_gregset): Likewise.
4741 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4742 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4743 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4744 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4745 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4746 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4747 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4748 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4749 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4750 Likewise.
4751 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4752 * sh-tdep.h (sh_corefile_gregset): Likewise.
4753 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4754 * vax-tdep.c (vax_gregset): Likewise.
4755
4756 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4757
4758 Fix TLS access for -static -pthread.
4759 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4760 (try_thread_db_load_1): Initialize it.
4761 (thread_db_get_thread_local_address): Call it if LM is zero.
4762 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4763 * target.h (struct target_ops) (to_get_thread_local_address): Add
4764 load_module_addr comment.
4765
4766 2014-05-21 Pedro Alves <palves@redhat.com>
4767
4768 * dcache.c (dcache_read_memory_partial): If reading the cache line
4769 fails, fallback to reading just the memory the caller wanted.
4770
4771 2014-05-20 Doug Evans <dje@google.com>
4772
4773 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4774 instead of get_current_arch.
4775
4776 2014-05-20 Pedro Alves <palves@redhat.com>
4777
4778 * NEWS: Mention that compare-sections now works with all targets.
4779
4780 * remote.c (PACKET_qCRC): New enum value.
4781 (remote_verify_memory): Don't send qCRC if the target has no
4782 execution. Use packet_support/packet_ok. If the target doesn't
4783 support the qCRC packet, fallback to a deep memory copy.
4784 (compare_sections_command): Say "target image" instead of "remote
4785 executable".
4786 (_initialize_remote): Add PACKET_qCRC to the list of config
4787 packets that have no associated command. Extend comment.
4788 * target.c (simple_verify_memory, default_verify_memory): New
4789 function.
4790 * target.h (struct target_ops) <to_verify_memory>: Default to
4791 default_verify_memory.
4792 (simple_verify_memory): New declaration.
4793 * target-delegates.c: Regenerate.
4794
4795 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4796
4797 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4798
4799 2014-05-20 Hui Zhu <hui@codesourcery.com>
4800 Yao Qi <yao@codesourcery.com>
4801
4802 PR backtrace/16558
4803 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4804 and change address of sp and pc.
4805
4806 2014-05-19 Tom Tromey <tromey@redhat.com>
4807
4808 * gdbtypes.c (rank_function): Use XNEWVEC.
4809 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4810
4811 2014-05-19 Doug Evans <dje@google.com>
4812
4813 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4814 build_type_unit_groups and moved closer to only caller. Remove
4815 arguments. All references updated. Remove outdated .gdb_index
4816 comment.
4817 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4818 build_type_psymtabs_1.
4819
4820 2014-05-19 Doug Evans <dje@google.com>
4821
4822 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4823 n_type_unit_groups, all_type_unit_groups. All uses removed.
4824 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4825 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4826 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4827 (add_type_unit_group_to_table): Delete.
4828
4829 2014-05-19 Doug Evans <dje@google.com>
4830
4831 * eval.c (evaluate_subexp_standard): Add some comments.
4832
4833 2014-05-17 Doug Evans <xdje42@gmail.com>
4834
4835 * progspace.c (remove_program_space): Delete, unused.
4836 * progspace.h (remove_program_space): Ditto.
4837
4838 2014-05-17 Doug Evans <xdje42@gmail.com>
4839
4840 * inferior.c (prune_inferiors): Fix comment.
4841 (remove_inferior_command): Call prune_program_spaces.
4842
4843 2014-05-16 Doug Evans <dje@google.com>
4844
4845 New command line option -D.
4846 * NEWS: Mention it.
4847 * main.c (set_gdb_data_directory): New function.
4848 (captured_main): Recognize -D. Flag error for --data-directory "".
4849 Call set_gdb_data_directory.
4850 (print_gdb_help): Print --data-directory, -D.
4851 * main.h (set_gdb_data_directory): Declare.
4852 * top.c (staged_gdb_datadir): New static global.
4853 (set_gdb_datadir): Call set_gdb_data_directory
4854 (show_gdb_datadir): New function.
4855 (init_main): Update init of data-directory parameter.
4856
4857 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4858
4859 Import the "dirfd" gnulib module.
4860 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4861 * gnulib/aclocal.m4: Update.
4862 * gnulib/config.in: Update.
4863 * gnulib/configure: Update.
4864 * gnulib/import/Makefile.am: Update.
4865 * gnulib/import/Makefile.in: Update.
4866 * gnulib/import/dirfd.c: New.
4867 * gnulib/import/m4/dirfd.m4: New.
4868 * gnulib/import/m4/gnulib-cache.m4: Update.
4869 * gnulib/import/m4/gnulib-comp.m4: Update.
4870
4871 2014-05-16 Pierre Muller <muller@sourceware.org>
4872 Yao Qi <yao@codesourcery.com>
4873
4874 * valprint.c (print_wchar): Move the code on checking whether
4875 W is a printable wide char to the default branch of switch
4876 statement below. Call wchar_printable instead of gdb_iswprint.
4877
4878 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4879
4880 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4881 ldr.w and ldrd instructions.
4882
4883 2014-05-15 Doug Evans <dje@google.com>
4884
4885 * dwarf2read.c (read_structure_type): Delete outdated comments.
4886
4887 2014-05-14 Tom Tromey <tromey@redhat.com>
4888
4889 * macrocmd.c (print_macro_definition): Reindent.
4890
4891 2014-05-13 Doug Evans <xdje42@gmail.com>
4892
4893 * python/py-cmd.c (cmdpy_completer): Add comment.
4894 (completers): Make const.
4895
4896 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4897
4898 * infrun.c (resume): Remove should_resume (unused). Move up
4899 declaration of resume_ptid.
4900
4901 2014-05-13 Tom Tromey <tromey@redhat.com>
4902
4903 * language.h (unop_type_check): Remove.
4904 (binop_type_check): Don't declare.
4905
4906 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4907
4908 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4909 call to regcache_raw_collect.
4910
4911 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4912
4913 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4914 mi_console->quote as the quoting character.
4915
4916 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4917
4918 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4919
4920 2014-04-29 Tom Tromey <tromey@redhat.com>
4921
4922 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4923 "show debug varobj".
4924
4925 2014-05-07 Kyle McMartin <kyle@redhat.com>
4926
4927 Pushed by Joel Brobecker <brobecker@adacore.com>.
4928 * aarch64-tdep.c (aarch64_software_single_step): New function.
4929 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4930 with aarch64_software_single_step.
4931
4932 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4933
4934 GDB 7.7.1 released.
4935
4936 2014-05-05 Keith Seitz <keiths@redhat.com>
4937
4938 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4939 variable or history value is successfully parsed.
4940
4941 2014-05-05 Yao Qi <yao@codesourcery.com>
4942 Pedro Alves <palves@redhat.com>
4943
4944 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4945 address of blocks that intersects the requested range. Trim
4946 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4947 sections.
4948 * ctf.c (ctf_xfer_partial): Likewise.
4949
4950 2014-05-05 Yao Qi <yao@codesourcery.com>
4951
4952 * printcmd.c (display_command): Remove the check to
4953 target_has_execution.
4954
4955 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4956
4957 * ppcobsd-nat.c: Include "obsd-nat.h".
4958 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4959 add_target.
4960 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4961
4962 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4963
4964 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4965 and 16-bit signed and unsigned arguments. Update comment.
4966 (stap_parse_probe_arguments): Extend code to handle such
4967 arguments. Use warning instead of complaint to notify about
4968 unrecognized bitness.
4969
4970 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4971
4972 PR breakpoints/16889
4973 * stap-probe.c (stap_parse_probe_arguments): Simplify
4974 check for non-prefixed probes (i.e., probes whose
4975 arguments do not start with "N@"). Always set the
4976 argument type to a sane value.
4977
4978 2014-05-01 David Taylor <dtaylor@emc.com>
4979
4980 * remote.c (compare_sections_command): Add -r option to compare
4981 all loadable read-only sections.
4982
4983 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4984
4985 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4986 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4987 Update all callers.
4988 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4989 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4990 Remove unused CORE_ADDR argument. Update all callers.
4991
4992 2014-04-29 Pedro Alves <palves@redhat.com>
4993
4994 * remote.c (struct packet_config) <detect>: Extend comment.
4995 (add_packet_config_cmd): Don't set the config's detect or support
4996 fields here.
4997 (init_all_packet_configs): Also initialize the config's 'detect'
4998 field.
4999 (reset_all_packet_configs_support): New function.
5000 (remote_open_1): Call reset_all_packet_configs_support instead of
5001 init_all_packet_configs.
5002 (_initialize_remote): Initialize all packet configs. Assert that
5003 all packets have an associated command, except a few known
5004 outliers.
5005
5006 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5007
5008 * dwarf2read.c (read_subrange_type): Handle dynamic
5009 DW_AT_lower_bound attributes.
5010
5011 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5012
5013 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5014 dynamic bounds before computing its upper bound.
5015 (ada_discrete_type_low_bound): Same as above with the lower bound.
5016
5017 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5018
5019 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5020 range types. Adjust the array handling implementation to
5021 take advantage of this change.
5022 (resolve_dynamic_range): New function, mostly extracted from
5023 resolve_dynamic_bounds.
5024 (resolve_dynamic_array): New function, mostly extracted from
5025 resolve_dynamic_bounds.
5026 (resolve_dynamic_bounds): Delete.
5027 (resolve_dynamic_type): Reimplement. Add handling of
5028 TYPE_CODE_RANGE types.
5029
5030 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5031
5032 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5033 handling of parallel ___XA types.
5034
5035 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5036
5037 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5038 unnecessary second call to static_unwrap_type.
5039
5040 2014-04-27 Hui Zhu <hui@codesourcery.com>
5041
5042 * stack.c (print_frame_info): Call do_gdb_disassembly with
5043 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5044
5045 2014-04-26 Doug Evans <xdje42@gmail.com>
5046
5047 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5048
5049 2014-04-25 Pedro Alves <palves@redhat.com>
5050
5051 PR server/16255
5052 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5053 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5054 and newline from built string.
5055 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5056 (linux_ptrace_attach_fail_reason): ... this.
5057 * linux-nat.c (linux_nat_attach): Adjust to use
5058 linux_ptrace_attach_fail_reason.
5059
5060 2014-04-25 Pedro Alves <palves@redhat.com>
5061
5062 * remote.c (struct remote_state): Remove multi_process_aware,
5063 non_stop_aware, cond_tracepoints, cond_breakpoints,
5064 breakpoint_commands, fast_tracepoints, static_tracepoints,
5065 install_in_trace, disconnected_tracing,
5066 enable_disable_tracepoints, string_tracing, and
5067 augmented_libraries_svr4_read fields.
5068 (remote_multi_process_p): Move further below in the file.
5069 (struct packet_config): Add comments.
5070 (update_packet_config): Delete function.
5071 (show_packet_config_cmd): Use packet_config_support.
5072 (add_packet_config_cmd): Use NULL as set callback.
5073 (packet_ok): "set remote foo-packet"-style commands no longer
5074 change config->supported -- adjust.
5075 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5076 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5077 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5078 (PACKET_QNonStop, PACKET_multiprocess_feature)
5079 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5080 (PACKET_DisconnectedTracing_feature)
5081 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5082 (set_remote_protocol_packet_cmd): Delete function.
5083 (packet_config_support, packet_support): New functions.
5084 (set_remote_protocol_Z_packet_cmd): Don't call
5085 update_packet_config.
5086 (remote_query_attached, remote_pass_signals)
5087 (remote_program_signals, remote_threads_info)
5088 (remote_threads_extra_info, remote_start_remote): Use
5089 packet_support.
5090 (remote_start_remote): Use packet_config_support and
5091 packet_support.
5092 (init_all_packet_configs): Set all packets to unknown support,
5093 instead of calling update_packet_config.
5094 (remote_check_symbols): Use packet_support.
5095 (remote_supported_packet): Unconditionally set the packet config's
5096 support status.
5097 (remote_multi_process_feature, remote_non_stop_feature)
5098 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5099 (remote_breakpoint_commands_feature)
5100 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5101 (remote_install_in_trace_feature)
5102 (remote_disconnected_tracing_feature)
5103 (remote_enable_disable_tracepoint_feature)
5104 (remote_string_tracing_feature)
5105 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5106 (remote_protocol_features): Adjust to use remote_supported_packet
5107 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5108 "ConditionalTracepoints", "ConditionalBreakpoints",
5109 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5110 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5111 "EnableDisableTracepoints", and "tracenz".
5112 (remote_query_supported): Use packet_support.
5113 (remote_open_1): Adjust.
5114 (extended_remote_attach_1): Use packet_support. Switch on the
5115 result of packet_ok instead of checking whether the packet ended
5116 up disabled.
5117 (remote_vcont_resume): Use packet_support.
5118 (remote_resume, remote_stop_ns, fetch_register_using_p)
5119 (remote_prepare_to_store, store_register_using_P)
5120 (check_binary_download, remote_write_bytes): Use packet_support.
5121 (remote_vkill): Use packet_support. Switch on the result of
5122 packet_ok instead of checking whether the packet ended up
5123 disabled.
5124 (extended_remote_supports_disable_randomization): Use
5125 packet_support.
5126 (extended_remote_run): Switch on the result of packet_ok instead
5127 of checking whether the packet ended up disabled.
5128 (remote_insert_breakpoint, remote_remove_breakpoint)
5129 (remote_insert_watchpoint, remote_remove_watchpoint)
5130 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5131 packet_support.
5132 (remote_search_memory): Use packet_config_support.
5133 (remote_get_thread_local_address, remote_get_tib_address)
5134 (remote_hostio_send_command, remote_can_execute_reverse): Use
5135 packet_support.
5136 (remote_supports_cond_tracepoints)
5137 (remote_supports_cond_breakpoints)
5138 (remote_supports_fast_tracepoints)
5139 (remote_supports_static_tracepoints)
5140 (remote_supports_install_in_trace)
5141 (remote_supports_enable_disable_tracepoint)
5142 (remote_supports_string_tracing)
5143 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5144 the packet config says the feature is enabled or disabled.
5145 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5146 (remote_get_trace_status): Use packet_support.
5147 (remote_set_disconnected_tracing): Adjust to check whether the
5148 feature is enabled with packet_support.
5149 (remote_set_trace_buffer_size, remote_use_agent)
5150 (remote_can_use_agent, remote_supports_btrace): Use
5151 packet_support.
5152 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5153 Use packet_config_support.
5154 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5155 the packet config says the feature is enabled or disabled.
5156 (set_range_stepping): Use packet_support.
5157
5158 2014-04-25 Tom Tromey <tromey@redhat.com>
5159
5160 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5161 argument.
5162
5163 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5164
5165 * NEWS: Mention support for C99 variable length arrays.
5166
5167 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ada-lang.c (standard_exc): Expand introductory comment.
5170
5171 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5172 Walfred Tedeschi <walfred.tedeschi@intel.com>
5173
5174 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5175 AVX512 registers.
5176 (amd64_linux_read_description): Add code to handle AVX512 xstate
5177 mask and return respective tdesc.
5178 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5179 and features/i386/x32-avx512-linux.c.
5180 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5181 (amd64_linux_core_read_description): Add code to handle AVX512
5182 xstate mask and return respective tdesc.
5183 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5184 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5185 calculation.
5186 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5187 (tdesc_amd64_avx512_linux): New prototype.
5188 (tdesc_x32_avx512_linux): Likewise.
5189 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5190 features/i386/x32-avx512.c.
5191 (amd64_ymm_avx512_names): New register names for pseudo
5192 registers YMM16-31.
5193 (amd64_ymmh_avx512_names): New register names for raw registers
5194 YMMH16-31.
5195 (amd64_k_names): New register names for K registers.
5196 (amd64_zmmh_names): New register names for ZMM raw registers.
5197 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5198 (amd64_xmm_avx512_names): New register names for XMM16-31
5199 registers.
5200 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5201 registers.
5202 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5203 if feature is present.
5204 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5205 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5206 (AMD64_NUM_REGS): Adjust to new number of registers.
5207 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5208 registers supplied via XSTATE by AVX512 registers.
5209 (i386_linux_read_description): Add case for AVX512.
5210 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5211 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5212 (i386_linux_core_read_description): Add case for AVX512.
5213 (i386_linux_init_abi): Install supported register note section
5214 for AVX512.
5215 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5216 AVX512.
5217 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5218 registers to be number of zmm7h + 1.
5219 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5220 * i386-tdep.c: Include features/i386/i386-avx512.c.
5221 (i386_zmm_names): Add ZMM pseudo register names array.
5222 (i386_zmmh_names): Add ZMM raw register names array.
5223 (i386_k_names): Add K raw register names array.
5224 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5225 registers. AVX512 has 16 more ZMM registers than there are YMM
5226 registers.
5227 (i386_zmmh_regnum_p): Add function to look up register number of
5228 ZMM raw registers.
5229 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5230 (i386_k_regnum_p): Likewise for K raw registers.
5231 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5232 registers added by AVX512.
5233 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5234 registers added by AVX512.
5235 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5236 added by AVX512.
5237 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5238 (i386_pseudo_register_name): Add ZMM pseudo registers.
5239 (i386_zmm_type): Construct and return vector registers type for ZMM
5240 registers.
5241 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5242 ZMM0-31 pseudo registers and K registers.
5243 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5244 and YMM16-31 registers from register cache.
5245 (i386_pseudo_register_write): Add code to write K, ZMM and
5246 YMM16-31 registers.
5247 (i386_register_reggroup_p): Add code to include/exclude AVX512
5248 registers in/from respective register groups.
5249 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5250 registers if feature is present in xcr0.
5251 (i386_gdbarch_init): Add code to initialize AVX512 feature
5252 variables in tdep structure, wire in pseudo registers and call
5253 initialize_tdesc_i386_avx512.
5254 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5255 variables.
5256 (i386_regnum): Add AVX512 registers.
5257 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5258 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5259 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5260 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5261 512 bits wide.
5262 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5263 (i386_ymm_avx512_regnum_p): Likewise.
5264 (i386_k_regnum_p): Likewise.
5265 (i386_zmm_regnum_p): Likewise.
5266 (i386_zmmh_regnum_p): Likewise.
5267 * i387-tdep.c : Update year in copyright notice.
5268 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5269 XSAVE buffer.
5270 (XSAVE_YMM_AVX512_ADDR): New macro.
5271 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5272 XSAVE buffer.
5273 (XSAVE_XMM_AVX512_ADDR): New macro.
5274 (xsave_avx512_k_offset): New table for K register offsets in
5275 XSAVE buffer.
5276 (XSAVE_AVX512_K_ADDR): New macro.
5277 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5278 in XSAVE buffer.
5279 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5280 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5281 buffer.
5282 (i387_collect_xsave): Add code to collect AVX512 registers from
5283 XSAVE buffer.
5284 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5285 of XMM16-31 registers.
5286 (I387_NUM_K_REGS): New define for number of K registers.
5287 (I387_K0_REGNUM): New define for K0 register number.
5288 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5289 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5290 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5291 registers.
5292 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5293 (I387_XMM16_REGNUM): New define for XMM16 register number.
5294 (I387_YMM0_REGNUM): New define for YMM0 register number.
5295 (I387_KEND_REGNUM): New define for last K register number.
5296 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5297 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5298 number.
5299 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5300 number.
5301 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5302 size.
5303 * features/Makefile: Add AVX512 related files.
5304 * features/i386/32bit-avx512.xml: New file.
5305 * features/i386/64bit-avx512.xml: Likewise.
5306 * features/i386/amd64-avx512-linux.c: Likewise.
5307 * features/i386/amd64-avx512-linux.xml: Likewise.
5308 * features/i386/amd64-avx512.c: Likewise.
5309 * features/i386/amd64-avx512.xml: Likewise.
5310 * features/i386/i386-avx512-linux.c: Likewise.
5311 * features/i386/i386-avx512-linux.xml: Likewise.
5312 * features/i386/i386-avx512.c: Likewise.
5313 * features/i386/i386-avx512.xml: Likewise.
5314 * features/i386/x32-avx512-linux.c: Likewise.
5315 * features/i386/x32-avx512-linux.xml: Likewise.
5316 * features/i386/x32-avx512.c: Likewise.
5317 * features/i386/x32-avx512.xml: Likewise.
5318 * regformats/i386/amd64-avx512-linux.dat: New file.
5319 * regformats/i386/amd64-avx512.dat: Likewise.
5320 * regformats/i386/i386-avx512-linux.dat: Likewise.
5321 * regformats/i386/i386-avx512.dat: Likewise.
5322 * regformats/i386/x32-avx512-linux.dat: Likewise.
5323 * regformats/i386/x32-avx512.dat: Likewise.
5324 * NEWS: Add note about new support for AVX512.
5325
5326
5327 2014-04-23 Pedro Alves <palves@redhat.com>
5328
5329 * breakpoint.c (insert_bp_location): Tolerate errors if the
5330 breakpoint is set in a user-loaded objfile.
5331 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5332 location is marked shlib_disabled. If the breakpoint is set in a
5333 user-loaded objfile is a GDB-side memory breakpoint, validate it
5334 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5335 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5336 flag.
5337 * mem-break.c (memory_validate_breakpoint): New function.
5338 * objfiles.c (userloaded_objfile_contains_address_p): New
5339 function.
5340 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5341 * target.h (memory_validate_breakpoint): New declaration.
5342
5343 2014-04-23 Pedro Alves <palves@redhat.com>
5344
5345 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5346 the breakpoint is set in a shared library, only suppress
5347 errors for software breakpoints, not hardware breakpoints.
5348
5349 2014-04-22 Pedro Alves <palves@redhat.com>
5350
5351 * infrun.c (schedlock_applies): New function, factored out from
5352 find_thread_needs_step_over.
5353 (find_thread_needs_step_over): Use it.
5354 (switch_back_to_stepped_thread): Always clear trap_expected if the
5355 step over is finished. Return early if scheduler locking applies.
5356 Look for the stepping thread and a potential step-over thread with
5357 a single loop.
5358 (currently_stepping_or_nexting_callback): Delete.
5359
5360 2014-04-22 Nick Clifton <nickc@redhat.com>
5361
5362 * NEWS: Mention that ARM sim now supports tracing.
5363
5364 2014-04-22 Yao Qi <yao@codesourcery.com>
5365
5366 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5367 to ...
5368 * tracefile.c (tracefile_fetch_registers): ... it. New
5369 function.
5370 * tracefile.h (tracefile_fetch_registers): Declare.
5371 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5372 tracefile_fetch_registers.
5373
5374 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5375
5376 PR gdb/14018
5377 * windows-nat.c (thread_rec): Don't display a warning when
5378 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5379 fails for any reason, set th->suspended to -1, so that we don't
5380 try to resume such a thread. Also, don't return NULL in these
5381 cases, to avoid completely ruin the session due to "PC register is
5382 not available" error.
5383 (do_windows_fetch_inferior_registers): Check errors in
5384 GetThreadContext call.
5385 (windows_continue): Accept an additional argument KILLED; if not
5386 zero, ignore errors in the SetThreadContext call, since the
5387 inferior was killed and is shutting down.
5388 (windows_resume, get_windows_debug_event)
5389 (windows_create_inferior, windows_mourn_inferior)
5390 (windows_kill_inferior): All callers of windows_continue changed
5391 to adjust to its new calling sequence.
5392
5393 2014-04-19 Yao Qi <yao@codesourcery.com>
5394
5395 * ctf.c (ctf_open): Call post_create_inferior.
5396
5397 2014-04-19 Yao Qi <yao@codesourcery.com>
5398
5399 * ctf.c (handle_id): New static variable.
5400 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5401 value. Get the declaration of event "register" and get length
5402 of field "contents".
5403
5404 2014-04-19 Yao Qi <yao@codesourcery.com>
5405
5406 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5407
5408 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5409
5410 * valops.c (oload_method_static): Remove unnecessary argument
5411 METHOD. Update all callers.
5412
5413 2014-04-18 Pedro alves <palves@redhat.com>
5414 Tom Tromey <tromey@redhat.com>
5415
5416 PR backtrace/15558
5417 * frame.c (get_prev_frame_1): Rename to ...
5418 (get_prev_frame_always): ... this, and make extern. Adjust.
5419 (skip_artificial_frames): Use get_prev_frame_always.
5420 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5421 (get_frame_unwind_stop_reason): Adjust to rename.
5422 * frame.h (get_prev_frame_always): Declare.
5423 * inline-frame.c: Include frame.h.
5424 (inline_frame_this_id): Use get_prev_frame_always.
5425
5426 2014-04-18 Tristan Gingold <gingold@adacore.com>
5427
5428 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5429 code by using bfd_mach_o_get_base_address.
5430
5431 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5432
5433 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5434 (spu_ax_pseudo_register_collect): New function.
5435 (spu_ax_pseudo_register_push_stack): Likewise.
5436 (spu_dwarf_reg_to_regnum): Likewise.
5437 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5438
5439 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5440
5441 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5442 Replace FRAME argument with FRAME_ID.
5443 * gdbarch.c, gdbarch.h: Regenerate.
5444 * findvar.c (default_value_from_register): Add GDBARCH argument;
5445 replace FRAME by FRAME_ID. No longer call get_frame_id.
5446 (value_from_register): Update call to gdbarch_value_from_register.
5447 * value.h (default_value_from_register): Update prototype.
5448 * s390-linux-tdep.c (s390_value_from_register): Update interface
5449 and call to default_value_from_register.
5450 * spu-tdep.c (spu_value_from_register): Likewise.
5451
5452 * findvar.c (address_from_register): Remove TYPE argument.
5453 Do not call value_from_register; use gdbarch_value_from_register
5454 with null_frame_id instead.
5455 * value.h (address_from_register): Update prototype.
5456 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5457 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5458 address_from_register interface change.
5459
5460 2014-04-17 Yao Qi <yao@codesourcery.com>
5461
5462 * gdbtypes.h: Update comments to link to types and macros'
5463 definitions.
5464
5465 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5466
5467 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5468
5469 2014-04-16 Keith Seitz <keiths@redhat.com>
5470
5471 PR gdb/15827
5472 * dwarf2read.c (skip_one_die): Check that all relative-offset
5473 sibling DIEs fall within range of the current reader's buffer.
5474 (read_partial_die): Likewise.
5475
5476 2014-04-16 Keith Seitz <keiths@redhat.com>
5477
5478 PR c++/16597
5479 * cp-namespace.c (lookup_symbol_file): If the type name of
5480 `this' is NULL, return immediately.
5481
5482 2014-04-14 Keith Seitz <keiths@redhat.com>
5483
5484 PR c++/16253
5485 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5486 from symbol_matches_domain in symtab.c. All local callers
5487 of symbol_matches_domain updated.
5488 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5489 search STRUCT_DOMAIN.
5490 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5491 independently. standard_lookup will do that automatically.
5492 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5493 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5494 (cp_lookup_symbol_in_namespace): Likewise.
5495 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5496 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5497 may return a STRUCT_DOMAIN match.
5498 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5499 * cp-support.c: Include language.h.
5500 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5501 VAR_DOMAIN.
5502 * psymtab.c (match_partial_symbol): Compare the requested
5503 domain with the symbol's domain directly.
5504 (lookup_partial_symbol): Likewise.
5505 * symtab.c (lookup_symbol_in_language): Explain when/why
5506 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5507 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5508 appropriate languages.
5509 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5510 and moved to ada-lang.c
5511 (lookup_block_symbol): Explain that this function only returns
5512 symbol matching the requested DOMAIN.
5513 Compare the requested domain with the symbol's domain directly.
5514 (iterate_over_symbols): Compare the requested domain with the
5515 symbol's domain directly.
5516 * symtab.h (symbol_matches_domain): Remove.
5517
5518 2014-04-14 Tom Tromey <tromey@redhat.com>
5519
5520 PR c++/15246:
5521 * c-exp.y (type_aggregate_p): New function.
5522 (qualified_name, classify_inner_name): Use it.
5523 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5524 and TYPE_TARGET_TYPE of an enum type.
5525 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5526 an enum type.
5527 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5528 handle TYPE_DECLARED_CLASS.
5529 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5530 types.
5531 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5532 * valops.c (enum_constant_from_type): New function.
5533 (value_aggregate_elt): Use it.
5534 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5535 TYPE_CODE_ENUM.
5536
5537 2014-04-14 Tom Tromey <tromey@redhat.com>
5538
5539 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5540 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5541 const.
5542 * value.h (value_aggregate_elt): Update.
5543
5544 2014-04-14 Tom Tromey <tromey@redhat.com>
5545
5546 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5547
5548 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5549
5550 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5551 (evaluate_subexp_standard): Pass noside argument.
5552 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5553 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5554 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5555 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5556 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5557
5558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5559
5560 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5561 points to a constant blob.
5562
5563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5564
5565 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5566 property and store it as the high bound and flag the range accordingly.
5567 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5568 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5569 * gdbtypes.h (enum range_flags): New enum.
5570 (struct range_bounds): Add flags member.
5571
5572 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5573
5574 * c-typeprint.c (c_type_print_varspec_suffix): Added
5575 check for not yet resolved high bound. If unresolved, print
5576 "variable length" string to the console instead of random
5577 length.
5578
5579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5580
5581 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5582 value.
5583 (ada_template_to_fixed_record_type_1): Likewise.
5584 (ada_to_fixed_type_1): Likewise.
5585 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5586 (cp_print_value): Likewise.
5587 * d-valprint.c (dynamic_array_type): Likewise.
5588 * findvar.c (address_of_variable): Likewise.
5589 * jv-valprint.c (java_value_print): Likewise.
5590 * valops.c (value_ind): Likewise.
5591 * value.c (coerce_ref): Likewise.
5592
5593 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5594
5595 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5596 value and retrieve the dynamic type size.
5597
5598 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5599
5600 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5601 passed to sizeof is dynamic evaluate the argument to compute the length.
5602
5603 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5604 Joel Brobecker <brobecker@adacore.com>
5605
5606 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5607 (dwarf2_evaluate_property): New function.
5608 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5609 * dwarf2read.c (attr_to_dynamic_prop): New function.
5610 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5611 attribute.
5612 * gdbtypes.c: Include dwarf2loc.h.
5613 (is_dynamic_type): New function.
5614 (resolve_dynamic_type): New function.
5615 (resolve_dynamic_bounds): New function.
5616 (get_type_length): New function.
5617 (check_typedef): Use get_type_length to compute type length.
5618 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5619 (TYPE_LOW_BOUND_KIND): New macro.
5620 (is_dynamic_type): New function prototype.
5621 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5622 to resolve dynamic properties of the type. Update comment.
5623 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5624
5625 2014-04-14 Richard Henderson <rth@redhat.com>
5626
5627 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5628
5629 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5630 Doug Evans <xdje42@gmail.com>
5631
5632 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5633 dereference TYPE_CODE_REF values.
5634
5635 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5636
5637 Revert the following changes due to regressions:
5638
5639 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5640 (dwarf2_evaluate_property): New function.
5641 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5642 * dwarf2read.c (attr_to_dynamic_prop): New function.
5643 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5644 attribute.
5645 * gdbtypes.c: Include dwarf2loc.h.
5646 (is_dynamic_type): New function.
5647 (resolve_dynamic_type): New function.
5648 (resolve_dynamic_bounds): New function.
5649 (get_type_length): New function.
5650 (check_typedef): Use get_type_length to compute type length.
5651 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5652 (TYPE_LOW_BOUND_KIND): New macro.
5653 (is_dynamic_type): New function prototype.
5654 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5655 to resolve dynamic properties of the type. Update comment.
5656 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5657
5658 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5659 passed to sizeof is dynamic evaluate the argument to compute the length.
5660
5661 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5662 value and retrieve the dynamic type size.
5663
5664 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5665 (ada_template_to_fixed_record_type_1): Likewise.
5666 (ada_to_fixed_type_1): Likewise.
5667 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5668 (cp_print_value): Likewise.
5669 * d-valprint.c (dynamic_array_type): Likewise.
5670 * eval.c (evaluate_subexp_with_coercion): Likewise.
5671 * findvar.c (address_of_variable): Likewise.
5672 * jv-valprint.c (java_value_print): Likewise.
5673 * valops.c (value_ind): Likewise.
5674 * value.c (coerce_ref): Likewise.
5675
5676 * c-typeprint.c (c_type_print_varspec_suffix): Added
5677 check for not yet resolved high bound. If unresolved, print
5678 "variable length" string to the console instead of random
5679 length.
5680
5681 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5682 property and store it as the high bound and flag the range accordingly.
5683 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5684 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5685 * gdbtypes.h (enum range_flags): New enum.
5686 (struct range_bounds): Add flags member.
5687
5688 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5689 points to a constant blob.
5690
5691 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5692 (evaluate_subexp_standard): Pass noside argument.
5693 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5694 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5695 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5696 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5697 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5698
5699 2014-04-11 Keith Seitz <keiths@redhat.com>
5700
5701 PR c++/16675
5702 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5703 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5704 reference types.
5705
5706 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5707
5708 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5709 (evaluate_subexp_standard): Pass noside argument.
5710 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5711 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5712 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5713 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5714 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5715
5716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5717
5718 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5719 points to a constant blob.
5720
5721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5722
5723 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5724 property and store it as the high bound and flag the range accordingly.
5725 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5726 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5727 * gdbtypes.h (enum range_flags): New enum.
5728 (struct range_bounds): Add flags member.
5729
5730 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5731
5732 * c-typeprint.c (c_type_print_varspec_suffix): Added
5733 check for not yet resolved high bound. If unresolved, print
5734 "variable length" string to the console instead of random
5735 length.
5736
5737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5738
5739 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5740 (ada_template_to_fixed_record_type_1): Likewise.
5741 (ada_to_fixed_type_1): Likewise.
5742 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5743 (cp_print_value): Likewise.
5744 * d-valprint.c (dynamic_array_type): Likewise.
5745 * eval.c (evaluate_subexp_with_coercion): Likewise.
5746 * findvar.c (address_of_variable): Likewise.
5747 * jv-valprint.c (java_value_print): Likewise.
5748 * valops.c (value_ind): Likewise.
5749 * value.c (coerce_ref): Likewise.
5750
5751 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5752
5753 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5754 value and retrieve the dynamic type size.
5755
5756 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5757
5758 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5759 passed to sizeof is dynamic evaluate the argument to compute the length.
5760
5761 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5762
5763 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5764 (dwarf2_evaluate_property): New function.
5765 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5766 * dwarf2read.c (attr_to_dynamic_prop): New function.
5767 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5768 attribute.
5769 * gdbtypes.c: Include dwarf2loc.h.
5770 (is_dynamic_type): New function.
5771 (resolve_dynamic_type): New function.
5772 (resolve_dynamic_bounds): New function.
5773 (get_type_length): New function.
5774 (check_typedef): Use get_type_length to compute type length.
5775 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5776 (TYPE_LOW_BOUND_KIND): New macro.
5777 (is_dynamic_type): New function prototype.
5778 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5779 to resolve dynamic properties of the type. Update comment.
5780 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5781
5782 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5783
5784 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5785 declaring high/low bounds and change uses accordingly. Call
5786 create_range_type instead of create_static_range_type.
5787 * gdbtypes.c (create_range_type): New function.
5788 (create_range_type): Convert bounds into struct bound_prop and pass
5789 them to create_range_type.
5790 * gdbtypes.h (struct bound_prop): New struct.
5791 (create_range_type): New function prototype.
5792 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5793 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5794 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5795 part of the bound.
5796 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5797
5798 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5799
5800 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5801 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5802 * ada-lang.c: All uses of create_range_type updated.
5803 * coffread.c: All uses of create_range_type updated.
5804 * dwarf2read.c: All uses of create_range_type updated.
5805 * f-exp.y: All uses of create_range_type updated.
5806 * m2-valprint.c: All uses of create_range_type updated.
5807 * mdebugread.c: All uses of create_range_type updated.
5808 * stabsread.c: All uses of create_range_type updated.
5809 * valops.c: All uses of create_range_type updated.
5810 * valprint.c: All uses of create_range_type updated.
5811
5812 2014-04-10 Pedro Alves <palves@redhat.com>
5813
5814 * breakpoint.c (single_step_breakpoints)
5815 (single_step_gdbarch): Move up in the file.
5816 (one_breakpoint_xfer_memory): New function, factored out from ...
5817 (breakpoint_xfer_memory): ... here. Also process single-step
5818 breakpoints.
5819
5820 2014-04-09 Tristan Gingold <gingold@adacore.com>
5821
5822 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5823 comments.
5824 (darwin_decode_exception_message): Free port only after use.
5825
5826 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5827
5828 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5829 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5830 when setting the size of call_length.
5831
5832 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5833
5834 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5835 dereference TYPE_CODE_REF values.
5836
5837 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5838
5839 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5840 end of warning message.
5841
5842 2014-04-03 Doug Evans <dje@google.com>
5843
5844 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5845 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5846
5847 2014-04-02 Alan Modra <amodra@gmail.com>
5848
5849 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5850 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5851 (struct symbol_file_add_from_memory_args): Add size field.
5852 (find_vdso_size): New function.
5853 (add_vsyscall_page): Attempt to find vdso size.
5854
5855 2014-04-01 Doug Evans <dje@google.com>
5856
5857 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5858
5859 2014-04-01 Tristan Gingold <gingold@adacore.com>
5860
5861 * darwin-nat.c (darwin_encode_reply): Add prototype.
5862 (darwin_decode_exception_message): Reply to unknown inferiors.
5863 (darwin_decode_message): Handle message by id. Ignore message
5864 to unknown inferior.
5865 (darwin_wait): Discard unknown messages, add debug trace.
5866
5867 2014-03-31 Doug Evans <dje@google.com>
5868
5869 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5870 comp_dir_string.
5871
5872 2014-03-31 Doug Evans <dje@google.com>
5873
5874 New option "set print symbol-loading".
5875 * NEWS: Mention it.
5876 * solib.c (solib_read_symbols): Only print symbol loading messages
5877 if requested.
5878 (solib_add): If symbol loading is in "brief" mode, notify user
5879 symbols are being loaded.
5880 (reload_shared_libraries_1): Ditto.
5881 * symfile.c (print_symbol_loading_off): New static global.
5882 (print_symbol_loading_brief): New static global.
5883 (print_symbol_loading_full): New static global.
5884 (print_symbol_loading_enums): New static global.
5885 (print_symbol_loading): New static global.
5886 (print_symbol_loading_p): New function.
5887 (symbol_file_add_with_addrs): Only print symbol loading messages
5888 if requested.
5889 (_initialize_symfile): Register "print symbol-loading" set/show
5890 command.
5891 * symfile.h (print_symbol_loading_p): Declare.
5892
5893 2014-03-30 Doug Evans <xdje42@gmail.com>
5894
5895 * infrun.c (set_last_target_status): New function.
5896 (handle_inferior_event): Call it.
5897
5898 2014-03-30 Doug Evans <xdje42@gmail.com>
5899
5900 * inferior.h (enum stop_kind): Improve comment.
5901
5902 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5903
5904 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5905 a reference, strip the reference layer before calling
5906 the lang_ops value_has_mutated callback.
5907
5908 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5909
5910 Remove some globals from our parser.
5911 * language.c (unk_lang_parser): Add "struct parser_state"
5912 argument.
5913 * language.h (struct language_defn) <la_parser>: Likewise.
5914 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5915 (initialize_expout): Add "struct parser_state" argument.
5916 Rewrite function to use the parser state.
5917 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5918 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5919 write_exp_elt_longcst, write_exp_elt_dblcst,
5920 write_exp_elt_decfloatcst, write_exp_elt_type,
5921 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5922 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5923 write_dollar_variable): Likewise.
5924 (parse_exp_in_context_1): Use parser state.
5925 (insert_type_address_space): Add "struct parser_state" argument.
5926 Use parser state.
5927 (increase_expout_size): New function.
5928 * parser-defs.h: Forward declare "struct language_defn" and
5929 "struct parser_state".
5930 (expout, expout_size, expout_ptr): Remove extern declarations.
5931 (parse_gdbarch, parse_language): Rewrite macro declarations to
5932 accept the parser state.
5933 (struct parser_state): New struct.
5934 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5935 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5936 write_exp_elt_decfloatcst, write_exp_elt_type,
5937 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5938 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5939 write_exp_msymbol, write_dollar_variable,
5940 mark_struct_expression, insert_type_address_space): Add "struct
5941 parser_state" argument.
5942 (increase_expout_size): New function.
5943 * utils.c (do_clear_parser_state): New function.
5944 (make_cleanup_clear_parser_state): Likewise.
5945 * utils.h (make_cleanup_clear_parser_state): New function
5946 prototype.
5947 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5948 Update calls to write_exp* in order to pass the parser state.
5949 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5950 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5951 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5952 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5953 * stap-probe.c (stap_parse_register_operand): Likewise.
5954 (stap_parse_single_operand): Likewise.
5955 (stap_parse_argument_1): Likewise.
5956 (stap_parse_argument): Use parser state.
5957 * stap-probe.h: Include "parser-defs.h".
5958 (struct stap_parse_info) <pstate>: New field.
5959 * c-exp.y (parse_type): Rewrite to use parser state.
5960 (yyparse): Redefine to c_parse_internal.
5961 (pstate): New global variable.
5962 (parse_number): Add "struct parser_state" argument.
5963 (write_destructor_name): Likewise.
5964 (type_exp): Update calls to write_exp* and similars in order to
5965 use parser state.
5966 (exp1, exp, variable, qualified_name, space_identifier,
5967 typename, typebase): Likewise.
5968 (write_destructor_name, parse_number, lex_one_token,
5969 classify_name, classify_inner_name, c_parse): Add "struct
5970 parser_state" argument. Update function to use parser state.
5971 * c-lang.h: Forward declare "struct parser_state".
5972 (c_parse): Add "struct parser_state" argument.
5973 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5974 (yyparse): Redefine macro to ada_parse_internal.
5975 (pstate): New variable.
5976 (write_int, write_object_renaming, write_var_or_type,
5977 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5978 type_int, type_long, type_long_long, type_float, type_double,
5979 type_long_double, type_char, type_boolean, type_system_address):
5980 Add "struct parser_state" argument.
5981 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5982 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5983 var_or_type, aggregate, aggregate_component_list,
5984 positional_list, others, component_group,
5985 component_associations): Update calls to write_exp* and similar
5986 functions in order to use parser state.
5987 (ada_parse, write_var_from_sym, write_int,
5988 write_exp_op_with_string, write_object_renaming,
5989 find_primitive_type, write_selectors, write_ambiguous_var,
5990 write_var_or_type, write_name_assoc, type_int, type_long,
5991 type_long_long, type_float, type_double, type_long_double,
5992 type_char, type_boolean, type_system_address): Add "struct
5993 parser_state" argument. Adjust function to use parser state.
5994 * ada-lang.c (parse): Likewise.
5995 * ada-lang.h: Forward declare "struct parser_state".
5996 (ada_parse): Add "struct parser_state" argument.
5997 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5998 calls to both functions.
5999 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6000 parser state.
6001 (yyparse): Redefine macro to f_parse_internal.
6002 (pstate): New variable.
6003 (parse_number): Add "struct parser_state" argument.
6004 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6005 and similars in order to use parser state.
6006 (parse_number): Adjust code to use parser state.
6007 (yylex): Likewise.
6008 (f_parse): New function.
6009 * f-lang.h: Forward declare "struct parser_state".
6010 (f_parse): Add "struct parser_state" argument.
6011 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6012 parser state.
6013 (yyparse): Redefine macro for java_parse_internal.
6014 (pstate): New variable.
6015 (push_expression_name, push_expression_name, insert_exp): Add
6016 "struct parser_state" argument.
6017 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6018 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6019 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6020 PostIncrementExpression, PostDecrementExpression,
6021 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6022 UnaryExpressionNotPlusMinus, CastExpression,
6023 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6024 RelationalExpression, EqualityExpression, AndExpression,
6025 ExclusiveOrExpression, InclusiveOrExpression,
6026 ConditionalAndExpression, ConditionalOrExpression,
6027 ConditionalExpression, Assignment, LeftHandSide): Update
6028 calls to write_exp* and similars in order to use parser state.
6029 (parse_number): Ajust code to use parser state.
6030 (yylex): Likewise.
6031 (java_parse): New function.
6032 (push_variable): Add "struct parser_state" argument. Adjust
6033 code to user parser state.
6034 (push_fieldnames, push_qualified_expression_name,
6035 push_expression_name, insert_exp): Likewise.
6036 * jv-lang.h: Forward declare "struct parser_state".
6037 (java_parse): Add "struct parser_state" argument.
6038 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6039 parser state.
6040 (yyparse): Redefine macro to m2_parse_internal.
6041 (pstate): New variable.
6042 (type_exp, exp, fblock, variable, type): Update calls to
6043 write_exp* and similars to use parser state.
6044 (yylex): Likewise.
6045 (m2_parse): New function.
6046 * m2-lang.h: Forward declare "struct parser_state".
6047 (m2_parse): Add "struct parser_state" argument.
6048 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6049 * objc-lang.h: Forward declare "struct parser_state".
6050 (end_msglist): Add "struct parser_state" argument.
6051 * p-exp.y (parse_type): Rewrite macro to use parser state.
6052 (yyparse): Redefine macro to pascal_parse_internal.
6053 (pstate): New variable.
6054 (parse_number): Add "struct parser_state" argument.
6055 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6056 write_exp* and similars in order to use parser state.
6057 (parse_number, yylex): Adjust code to use parser state.
6058 (pascal_parse): New function.
6059 * p-lang.h: Forward declare "struct parser_state".
6060 (pascal_parse): Add "struct parser_state" argument.
6061 * go-exp.y (parse_type): Rewrite macro to use parser state.
6062 (yyparse): Redefine macro to go_parse_internal.
6063 (pstate): New variable.
6064 (parse_number): Add "struct parser_state" argument.
6065 (type_exp, exp1, exp, variable, type): Update calls to
6066 write_exp* and similars in order to use parser state.
6067 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6068 to use parser state.
6069 (go_parse): Likewise.
6070 * go-lang.h: Forward declare "struct parser_state".
6071 (go_parse): Add "struct parser_state" argument.
6072
6073 2014-03-27 Doug Evans <dje@google.com>
6074
6075 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6076
6077 2014-03-27 Doug Evans <dje@google.com>
6078
6079 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6080 Remove argument abbrev_section. All callers updated.
6081
6082 2014-03-27 Doug Evans <dje@google.com>
6083
6084 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6085 addr_base, ranges_base.
6086
6087 2014-03-26 Keith Seitz <keiths@redhat.com>
6088
6089 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6090 types, not VAR_DOMAIN.
6091
6092 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6093
6094 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6095 "ra" registers.
6096 * features/nios2-linux.c: Regenerated.
6097 * features/nios2.c: Regenerated.
6098
6099 2014-03-25 Pedro Alves <palves@redhat.com>
6100
6101 * cli/cli-script.c (script_from_file): Force the interpreter to
6102 sync mode.
6103
6104 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6105
6106 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6107 small stack allocation.
6108
6109 2014-03-24 Tristan Gingold <gingold@adacore.com>
6110
6111 * darwin-nat.c (exc_server): Remove unused prototype.
6112 (darwin_dump_message): Correctly display data on x86_64.
6113 (darwin_encode_reply): Fix style.
6114 Add comments and fix indentation.
6115
6116 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6117
6118 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6119
6120 2014-03-22 Doug Evans <xdje42@gmail.com>
6121
6122 * infcmd.c: Whitespace fixes.
6123 (interrupt_command): Merge two function comments into one.
6124
6125 2014-03-22 Doug Evans <xdje42@gmail.com>
6126
6127 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6128 All uses updated.
6129
6130 2014-03-22 Yao Qi <yao@codesourcery.com>
6131
6132 * remote.c (target_read_live_memory): Remove.
6133 (memory_xfer_live_readonly_partial): Rename it to
6134 remote_xfer_live_readonly_partial. Remove argument 'object'.
6135 All callers updated. Call remote_read_bytes_1
6136 instead of target_read_live_memory.
6137 * tracepoint.c (set_traceframe_number): Remove.
6138 (make_cleanup_restore_traceframe_number): Likewise .
6139 * tracepoint.h (set_traceframe_number): Remove declaration.
6140 (make_cleanup_restore_traceframe_number): Likewise.
6141
6142 2014-03-22 Yao Qi <yao@codesourcery.com>
6143
6144 * remote.c (remote_read_bytes): Move code on reading from the
6145 remote stub to ...
6146 (remote_read_bytes_1): ... here. New function.
6147
6148 2014-03-22 Yao Qi <yao@codesourcery.com>
6149
6150 * ctf.c (ctf_xfer_partial): Check the return value of
6151 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6152 return TARGET_XFER_UNAVAILABLE.
6153 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6154 * target.c (target_read_live_memory): Move it to remote.c.
6155 (memory_xfer_live_readonly_partial): Likewise.
6156 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6157 * remote.c (target_read_live_memory): Moved from target.c.
6158 (memory_xfer_live_readonly_partial): Likewise.
6159 (remote_read_bytes): Factored out from
6160 memory_xfer_partial_1.
6161
6162 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6163
6164 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6165 NULL pointer.
6166
6167 2014-03-21 Pedro Alves <palves@redhat.com>
6168
6169 * infrun.c (normal_stop): Extend comment.
6170
6171 2014-03-21 Hui Zhu <hui@codesourcery.com>
6172 Pedro Alves <palves@redhat.com>
6173
6174 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6175 static buffer.
6176 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6177 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6178 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6179
6180 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6181
6182 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6183 `z' formatted output modifier.
6184
6185 2014-03-20 Tom Tromey <tromey@redhat.com>
6186 Sergio Durigan Junior <sergiodj@redhat.com>
6187
6188 * probe.c (parse_probes): Turn assert into an ordinary error.
6189 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6190 exceptions when parsing probes. Rearrange the code for clarity.
6191
6192 2014-03-20 Tom Tromey <tromey@redhat.com>
6193
6194 PR gdb/14135
6195 * top.c (execute_command): Only dispatch events if the command
6196 started the target.
6197
6198 2014-03-20 Tom Tromey <tromey@redhat.com>
6199
6200 PR cli/15718
6201 * infcall.c: Include event-top.h.
6202 (run_inferior_call): Call async_disable_stdin if needed.
6203
6204 2014-03-20 Pedro Alves <palves@redhat.com>
6205
6206 * infrun.c (prepare_to_proceed): Delete.
6207 (thread_still_needs_step_over): New function.
6208 (find_thread_needs_step_over): New function.
6209 (proceed): If the current thread needs a step-over, set its
6210 steping_over_breakpoint flag. Adjust to use
6211 find_thread_needs_step_over instead of prepare_to_proceed.
6212 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6213 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6214 breakpoint.
6215 (switch_back_to_stepped_thread): Step over breakpoints of all
6216 threads not the stepping thread, before switching back to the
6217 stepping thread.
6218
6219 2014-03-20 Pedro Alves <palves@redhat.com>
6220
6221 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6222 extern.
6223 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6224 * infrun.c (saved_singlestep_ptid)
6225 (stepping_past_singlestep_breakpoint): Delete.
6226 (resume): Remove stepping_past_singlestep_breakpoint handling.
6227 (proceed): Store the prev_pc of the stepping thread too.
6228 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6229 singlestep_pc.
6230 (enum infwait_states): Delete infwait_thread_hop_state.
6231 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6232 field.
6233 (handle_inferior_event): Adjust.
6234 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6235 handling and the thread-hop code. Before removing single-step
6236 breakpoints, check whether the thread hit a single-step breakpoint
6237 of another thread. If it did, the trap is not a random signal.
6238 (switch_back_to_stepped_thread): If the event thread hit a
6239 single-step breakpoint, unblock it before switching to the
6240 stepping thread. Handle the case of the stepped thread having
6241 advanced already.
6242 (keep_going): Handle the case of the current thread moving past a
6243 single-step breakpoint.
6244
6245 2014-03-20 Pedro Alves <palves@redhat.com>
6246
6247 PR breakpoints/7143
6248 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6249 are being stepped over.
6250 (breakpoint_address_match): Make extern.
6251 * breakpoint.h (breakpoint_address_match): New declaration.
6252 * inferior.h (stepping_past_instruction_at): New declaration.
6253 * infrun.c (struct step_over_info): New type.
6254 (step_over_info): New global.
6255 (set_step_over_info, clear_step_over_info)
6256 (stepping_past_instruction_at): New functions.
6257 (handle_inferior_event): Clear the step-over info when
6258 trap_expected is cleared.
6259 (resume): Remove now stale comment.
6260 (clear_proceed_status): Clear step-over info.
6261 (proceed): Adjust step-over handling to set or clear the step-over
6262 info instead of removing all breakpoints.
6263 (handle_signal_stop): When setting up a thread-hop, don't remove
6264 breakpoints here.
6265 (stop_stepping): Clear step-over info.
6266 (keep_going): Adjust step-over handling to set or clear step-over
6267 info and then always inserting breakpoints, instead of removing
6268 all breakpoints when stepping over one.
6269
6270 2014-03-20 Pedro Alves <palves@redhat.com>
6271
6272 * infrun.c (previous_inferior_ptid): Adjust comment.
6273 (deferred_step_ptid): Delete.
6274 (infrun_thread_ptid_changed, prepare_to_proceed)
6275 (init_wait_for_inferior): Adjust.
6276 (handle_signal_stop): Delete deferred_step_ptid handling.
6277
6278 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6279
6280 PR gdb/15358
6281 * defs.h (sync_quit_force_run): New declaration.
6282 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6283 * event-top.c (async_sigterm_handler): New declaration.
6284 (async_sigterm_token): New variable.
6285 (async_init_signals): Create also async_sigterm_token.
6286 (async_sigterm_handler): New function.
6287 (sync_quit_force_run): New variable.
6288 (handle_sigterm): Replace quit_force call by other calls.
6289 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6290
6291 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6292
6293 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6294 offset into SPE pseudo registers.
6295
6296 2014-03-18 Pedro Alves <palves@redhat.com>
6297
6298 PR gdb/13860
6299 * inferior.h (print_stop_event): Declare.
6300 * infrun.c (print_stop_event): New, factored out from ...
6301 (normal_stop): ... this.
6302 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6303 of bpstat_print/print_stack_frame.
6304
6305 2014-03-17 Tom Tromey <tromey@redhat.com>
6306
6307 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6308
6309 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6310
6311 * ada-lang.c (decode_constrained_packed_array): Perform a
6312 minimal coercion for reference with coerce_ref instead of
6313 ada_coerce_ref.
6314
6315 2014-03-17 Tristan Gingold <gingold@adacore.com>
6316
6317 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6318 (darwin_solib_create_inferior_hook): Emit a warning if version
6319 is unhandled.
6320
6321 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6322
6323 * python/py-value.c (get_field_flag): Cast flag_name argument to
6324 PyObject_GetAttrString to support Python 2.4.
6325
6326 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6329 (Global Maintainers): Remove Jan Kratochvil.
6330
6331 2014-03-14 Pedro Alves <palves@redhat.com>
6332
6333 * inferior.h (terminal_ours_for_output): Rename to ...
6334 (child_terminal_ours_for_output): ... this.
6335 (terminal_save_ours): Rename to ...
6336 (child_terminal_save_ours): ... this.
6337 (terminal_ours): Rename to ...
6338 (child_terminal_ours): ... this.
6339 (terminal_inferior): Rename to ...
6340 (child_terminal_inferior): ... this.
6341 (terminal_init_inferior): Rename to ...
6342 (child_terminal_init_inferior): ... this.
6343 (terminal_init_inferior_with_pgrp): Rename to ...
6344 (child_terminal_init_inferior_with_pgrp): ... this.
6345 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6346 (child_terminal_init_with_pgrp): ... this.
6347 (terminal_save_ours): Rename to ...
6348 (child_terminal_save_ours): ... this.
6349 (terminal_init_inferior): Rename to ...
6350 (child_terminal_init): ... this. Adjust.
6351 (terminal_inferior): Rename to ...
6352 (child_terminal_inferior): ... this.
6353 (terminal_ours_for_output): Rename to ...
6354 (child_terminal_ours_for_output): ... this. Adjust.
6355 (terminal_ours): Rename to ...
6356 (child_terminal_ours): ... this.
6357 (terminal_ours_1): Rename to ...
6358 (child_terminal_ours_1): ... this. Adjust.
6359 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6360 * windows-nat.c (do_initial_windows_stuff): Adjust.
6361 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6362 (gnu_terminal_init): ... this. Adjust.
6363 (gnu_target): Adjust.
6364 * inf-child.c (inf_child_target): Adjust.
6365
6366 2014-03-13 Doug Evans <xdje42@gmail.com>
6367
6368 PR guile/16612
6369 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6370 new eq?-hashtab.
6371
6372 2014-03-13 Doug Evans <xdje42@gmail.com>
6373
6374 * value.c (record_latest_value): Call release_value_or_incref
6375 instead of release_value.
6376
6377 2014-03-13 Pedro Alves <palves@redhat.com>
6378
6379 * procfs.c (procfs_target): Don't override to_shortname,
6380 to_longname or to_doc.
6381
6382 2014-03-13 Pedro Alves <palves@redhat.com>
6383
6384 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6385 Unix in user visible strings.
6386
6387 2014-03-12 Stan Shebs <stan@codesourcery.com>
6388
6389 * gdbtypes.h: Annotate comments for Doxygen, add a page
6390 block comment with some general info.
6391
6392 2014-03-12 Pedro Alves <palves@redhat.com>
6393
6394 * infcmd.c (prepare_execution_command): New function, factored out
6395 from several execution commands.
6396 (run_command_1, continue_command, step_1, jump_command)
6397 (signal_command, until_command, advance_command, finish_command)
6398 (attach_command): Use prepare_execution_command.
6399
6400 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6401
6402 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6403 (MAX_BPTS): Define.
6404 (MAX_WPTS): Define.
6405 (struct arm_linux_thread_points): Removed.
6406 (struct arm_linux_process_info): New.
6407 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6408 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6409 (arm_linux_find_breakpoints_by_tid): Removed.
6410 (struct arch_lwp_info): New.
6411 (arm_linux_find_process_pid): New functions.
6412 (arm_linux_add_process): New functions.
6413 (arm_linux_process_info_get): New functions.
6414 (arm_linux_forget_process): New function.
6415 (arm_linux_get_debug_reg_state): New function.
6416 (struct update_registers_data): New.
6417 (update_registers_callback): New function.
6418 (arm_linux_insert_hw_breakpoint1): Updated.
6419 (arm_linux_remove_hw_breakpoint1): Updated.
6420 (arm_linux_insert_hw_breakpoint): Updated.
6421 (arm_linux_remove_hw_breakpoint): Updated.
6422 (arm_linux_insert_watchpoint): Updated.
6423 (arm_linux_remove_watchpoint): Updated.
6424 (arm_linux_new_thread): Updated.
6425 (arm_linux_prepare_to_resume): New function.
6426 (arm_linux_new_fork): New function.
6427 (_initialize_arm_linux_nat): Updated.
6428
6429 2014-03-12 Pedro Alves <palves@redhat.com>
6430
6431 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6432
6433 2014-03-12 Tom Tromey <tromey@redhat.com>
6434
6435 * inf-child.c (return_zero): New function.
6436 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6437 * aix-thread.c (aix_thread_inferior_created): New function.
6438 (aix_thread_attach): Remove.
6439 (init_aix_thread_ops): Don't set to_attach.
6440 (_initialize_aix_thread): Register inferior_created observer.
6441 * corelow.c (init_core_ops): Don't set to_attach or
6442 to_create_inferior.
6443 * exec.c (init_exec_ops): Don't set to_attach or
6444 to_create_inferior.
6445 * infcmd.c (run_command_1): Use find_run_target. Make direct
6446 target calls.
6447 (attach_command): Use find_attach_target. Make direct target
6448 calls.
6449 * record-btrace.c (init_record_btrace_ops): Don't set
6450 to_create_inferior.
6451 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6452 Remove.
6453 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6454 set to_create_inferior.
6455 * target.c (complete_target_initialization): Add assertion.
6456 (target_create_inferior): Remove.
6457 (find_default_attach, find_default_create_inferior): Remove.
6458 (find_attach_target, find_run_target): New functions.
6459 (find_default_is_async_p, find_default_can_async_p)
6460 (target_supports_non_stop, target_attach): Remove.
6461 (init_dummy_target): Don't set to_create_inferior or
6462 to_supports_non_stop.
6463 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6464 TARGET_DEFAULT_FUNC.
6465 <to_create_inferior>: Add comment.
6466 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6467 TARGET_DEFAULT_RETURN.
6468 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6469 (find_attach_target, find_run_target): Declare.
6470 (target_create_inferior): Remove.
6471 (target_has_execution_1): Update comment.
6472 (target_supports_non_stop): Remove.
6473 * target-delegates.c: Rebuild.
6474
6475 2014-03-12 Pedro Alves <palves@redhat.com>
6476
6477 * inf-child.h: Update comment to not mention Unix.
6478
6479 2014-03-12 Pedro Alves <palves@redhat.com>
6480
6481 * inf-child.c: Update top comment to not mention Unix. Add
6482 generic comment describing how this target is meant to be used.
6483 (inf_child_post_attach, inf_child_post_startup_inferior)
6484 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6485 Unix in comment.
6486
6487 2014-03-12 Pedro Alves <palves@redhat.com>
6488
6489 * nto-procfs.c: Include inf-child.h.
6490 (procfs_ops): Delete global.
6491 (procfs_can_run): Delete method.
6492 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6493 target pointer instead of referencing procfs_ops.
6494 (procfs_prepare_to_store): Delete.
6495 (init_procfs_ops): Delete function.
6496 (procfs_target): New function, based on init_procfs_ops, but
6497 inherit inf_child_target.
6498 (_initialize_procfs): Use procfs_target.
6499
6500 2014-03-12 Pedro Alves <palves@redhat.com>
6501
6502 * windows-nat.c: Include inf-child.h.
6503 (windows_ops): Delete global.
6504 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6505 methods.
6506 (init_windows_ops): Delete function.
6507 (windows_target): New function, based on init_windows_ops, but
6508 inherit inf_child_target.
6509 (_initialize_windows_nat): Use windows_target. Install x86
6510 specific target methods here.
6511
6512 2014-03-10 Doug Evans <xdje42@gmail.com>
6513
6514 * guile/guile.c (call_initialize_gdb_module): New function.
6515 (initialize_guile): Replace call to scm_init_guile with call to
6516 scm_with_guile.
6517
6518 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6519
6520 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6521 in call to TYPE_CODE macro.
6522
6523 2014-03-10 Jerome Guitton <guitton@adacore.com>
6524
6525 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6526 Resolve tagged types to full view.
6527
6528 2014-03-10 Hui Zhu <hui@codesourcery.com>
6529
6530 * target.h (target_insert_breakpoint): Remove "hardware" from its
6531 comments.
6532
6533 2014-03-07 Doug Evans <dje@google.com>
6534
6535 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6536
6537 2014-03-07 Doug Evans <dje@google.com>
6538
6539 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6540 Remove unused local comp_dir_attr. Assert exactly one of
6541 stub_comp_unit_die, stub_comp_dir is non-NULL.
6542
6543 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6544
6545 * target.h (complete_target_initialization, add_target):
6546 Add comment.
6547
6548 2014-03-07 Pedro Alves <palves@redhat.com>
6549
6550 * go32-nat.c: Include inf-child.h.
6551 (go32_ops): Delete global.
6552 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6553 Delete methods.
6554 (go32_create_inferior): Push the passed in target pointer instead
6555 of referencing go32_ops.
6556 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6557 (go32_target): New function, based on init_go32_ops, but inherit
6558 inf_child_target.
6559 (_initialize_go32_nat): Use go32_target. Move parts of
6560 init_go32_ops here.
6561
6562 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6563
6564 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6565 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6566 SYMBOL_VALUE_ADDRESS.
6567 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6568
6569 2014-03-06 Yao Qi <yao@codesourcery.com>
6570
6571 * breakpoint.c (get_tracepoint_by_number): Remove argument
6572 optional_p. All callers updated. Adjust comments. Update
6573 output message.
6574 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6575
6576 2014-03-06 Yao Qi <yao@codesourcery.com>
6577
6578 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6579 early if get_number returns zero. Use 'p' instead of 'args'.
6580
6581 2014-03-06 Yao Qi <yao@codesourcery.com>
6582
6583 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6584 message.
6585
6586 2014-03-06 Yao Qi <yao@codesourcery.com>
6587
6588 PR breakpoints/16508
6589 * tracepoint.c (check_trace_running): New function.
6590 (trace_find_command): Move code to check_trace_running and
6591 call check_trace_running.
6592 (trace_find_pc_command): Likewise.
6593 (trace_find_tracepoint_command): Likewise.
6594 (trace_find_line_command): Likewise.
6595 (trace_find_range_command): Likewise.
6596 * tracepoint.h (check_trace_running): Likewise.
6597 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6598
6599 2014-03-06 Yao Qi <yao@codesourcery.com>
6600
6601 * target.h (struct target_ops) <to_traceframe_info>: Use
6602 TARGET_DEFAULT_NORETURN (tcomplain ()).
6603 * target-delegates.c: Regenerated.
6604
6605 2014-03-05 Pedro Alves <palves@redhat.com>
6606
6607 PR gdb/16575
6608 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6609 void. Update comment.
6610 (dcache_xfer_memory): Delete.
6611 (dcache_read_memory_partial): New, based on the read bits of
6612 dcache_xfer_memory.
6613 (dcache_update): Add status parameter. Use ULONGEST for len, and
6614 adjust. Discard cache lines if the reason for the update was
6615 error.
6616 * dcache.h (dcache_xfer_memory): Delete declaration.
6617 (dcache_read_memory_partial): New declaration.
6618 (dcache_update): Update prototype.
6619 * target.c (raw_memory_xfer_partial): Update the dcache here.
6620 (memory_xfer_partial_1): Don't handle dcache writes here.
6621
6622 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6623
6624 * remote-sim.c (gdbsim_load): Add const to prog.
6625
6626 2014-03-03 Tom Tromey <tromey@redhat.com>
6627
6628 * elfread.c (probe_key): Change to bfd_data.
6629 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6630 now per-BFD, not per-objfile.
6631 * stap-probe.c (stap_probe_destroy): Update comment.
6632 (handle_stap_probe): Allocate on the per-BFD obstack.
6633
6634 2014-03-03 Tom Tromey <tromey@redhat.com>
6635
6636 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6637 * breakpoint.c (create_longjmp_master_breakpoint): Use
6638 get_probe_address.
6639 (add_location_to_breakpoint, bkpt_probe_insert_location)
6640 (bkpt_probe_remove_location): Update.
6641 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6642 * elfread.c (elf_symfile_relocate_probe): Remove.
6643 (elf_probe_fns): Update.
6644 (insert_exception_resume_breakpoint): Change type of "probe"
6645 parameter to bound_probe.
6646 (check_exception_resume): Update.
6647 * objfiles.c (objfile_relocate1): Don't relocate probes.
6648 * probe.c (bound_probe_s): New typedef.
6649 (parse_probes): Use get_probe_address. Set sal's objfile.
6650 (find_probe_by_pc): Return a bound_probe.
6651 (collect_probes): Return a VEC(bound_probe_s).
6652 (compare_probes): Update.
6653 (gen_ui_out_table_header_info): Change type of "probes"
6654 parameter. Update.
6655 (info_probes_for_ops): Update.
6656 (get_probe_address): New function.
6657 (probe_safe_evaluate_at_pc): Update.
6658 * probe.h (struct probe_ops) <get_probe_address>: New field.
6659 <set_semaphore, clear_semaphore>: Add objfile parameter.
6660 (struct probe) <objfile>: Remove field.
6661 <arch>: New field.
6662 <address>: Update comment.
6663 (struct bound_probe): New.
6664 (find_probe_by_pc): Return a bound_probe.
6665 (get_probe_address): Declare.
6666 * solib-svr4.c (struct probe_and_action) <address>: New field.
6667 (hash_probe_and_action, equal_probe_and_action): Update.
6668 (register_solib_event_probe): Add address parameter.
6669 (solib_event_probe_at): Update.
6670 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6671 get_probe_address.
6672 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6673 (stap_get_probe_address): New function.
6674 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6675 (compile_probe_arg): Update.
6676 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6677 address.
6678 (handle_stap_probe): Don't relocate the probe.
6679 (stap_relocate): Remove.
6680 (stap_gen_info_probes_table_values): Update.
6681 (stap_probe_ops): Remove stap_relocate.
6682 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6683 (debug_sym_probe_fns): Update.
6684 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6685 * symtab.c (init_sal): Use memset.
6686 * symtab.h (struct symtab_and_line) <objfile>: New field.
6687 * tracepoint.c (start_tracing, stop_tracing): Update.
6688
6689 2014-03-03 Tom Tromey <tromey@redhat.com>
6690
6691 * probe.h (parse_probes, find_probe_by_pc)
6692 (find_probes_in_objfile): Fix comments.
6693
6694 2014-03-02 Doug Evans <xdje42@gmail.com>
6695
6696 * infrun.c (handle_signal_stop): Replace test for
6697 TARGET_WAITKIND_STOPPED with an assert.
6698
6699 2014-03-02 Doug Evans <xdje42@gmail.com>
6700
6701 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6702
6703 2014-03-02 Doug Evans <xdje42@gmail.com>
6704
6705 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6706
6707 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6708
6709 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6710
6711 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6712
6713 * i386obsd-nat.c: Include "obsd-nat.h".
6714 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6715 add_target.
6716 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6717
6718 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6719
6720 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6721
6722 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6723
6724 * mips64obsd-nat.c: Include "obsd-nath".
6725 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6726 add_target
6727 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6728
6729 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6730
6731 * amd64obsd-nat.c: Include "obsd-nat,h.
6732 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6733 add_target.
6734 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6735
6736 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6737
6738 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6739 (find_overload_match): Update call to find_oload_champ.
6740 (find_oload_champ_namespace_loop): Likewise
6741
6742 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6743
6744 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6745
6746 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6747 * config/sparc/obsd64.mh: New file.
6748 * sparc64obsd-nat.c: New file.
6749
6750 * obsd-nat.h: New file.
6751 * obsd-nat.c: New file.
6752 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6753 (ALLDEPFILES): Add obsd-nat.c.
6754
6755 2014-02-28 Tom Tromey <tromey@redhat.com>
6756
6757 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6758 * cli-out.h (cli_ui_out_impl): Now const.
6759 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6760 * ui-out.c (struct ui_out) <impl>: Now const.
6761 (default_ui_out_impl): Now const.
6762 (ui_out_new): Make 'impl' parameter const.
6763 * ui-out.h (ui_out_new): Update.
6764
6765 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6766
6767 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6768
6769 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6770
6771 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6772
6773 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6774
6775 Additional PR 8882 fix.
6776 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6777
6778 2014-02-27 Pedro Alves <palves@redhat.com>
6779
6780 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6781 isn't set.
6782
6783 2014-02-27 Pedro Alves <palves@redhat.com>
6784
6785 PR 12702
6786 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6787 * nat/linux-waitpid.c: Include string.h.
6788 (status_to_str): Moved here and made extern.
6789 * nat/linux-waitpid.h (status_to_str): New declaration.
6790
6791 2014-02-27 Hui Zhu <hui@codesourcery.com>
6792
6793 PR 12702
6794 * infrun.c (ptid_match): Move ...
6795 * common/ptid.c (ptid_match): ... here.
6796 * inferior.h (ptid_match): Move ...
6797 * common/ptid.h (ptid_match): ... here.
6798
6799 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6800
6801 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6802 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6803 gdb_target_obs.
6804
6805 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6806
6807 * obsd-tdep.c (obsd_auxv_parse): New function.
6808 (obsd_init_abi): Set auxv_parse.
6809
6810 * gdbarch.sh (auxv_parse): New.
6811 * gdbarch.h: Regenerated.
6812 * gdbarch.c: Regenerated.
6813 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6814
6815 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6816
6817 * guile/scm-value.c (gdbscm_history_append_x): New function.
6818 (value_functions): Add it.
6819
6820 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6821
6822 * dwarf2read.c (attr_value_as_address): New function.
6823 (dwarf2_find_base_address, read_call_site_scope): Use
6824 attr_value_as_address in place of DW_ADDR.
6825 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6826 the low and high addresses. Slight rework of the handling
6827 of the high pc being a constant form, and limit it to
6828 DWARF verson 4 or higher.
6829 (dwarf2_record_block_ranges): Likewise.
6830 (read_partial_die): Likewise.
6831 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6832
6833 2014-02-26 Tom Tromey <tromey@redhat.com>
6834
6835 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6836
6837 2014-02-26 Tom Tromey <tromey@redhat.com>
6838
6839 * elfread.c (elf_read_minimal_symbols): Return early if
6840 minimal symbols have already been read. Add "ei" parameter.
6841 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6842 * minsyms.c (prim_record_minimal_symbol_full): Update.
6843 * objfiles.h (struct objstats) <n_minsyms>: Move...
6844 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6845 * symmisc.c (print_objfile_statistics): Update.
6846
6847 2014-02-26 Tom Tromey <tromey@redhat.com>
6848
6849 * elfread.c (elf_read_minimal_symbols): New function, from
6850 elf_symfile_read.
6851 (elf_symfile_read): Call it.
6852
6853 2014-02-26 Tom Tromey <tromey@redhat.com>
6854
6855 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6856 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6857 (lookup_minimal_symbol_solib_trampoline)
6858 (lookup_minimal_symbol_by_pc_section_1)
6859 (lookup_minimal_symbol_and_objfile): Update.
6860 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6861 Don't allocate a minimal symbol if minsyms have already been read.
6862 (build_minimal_symbol_hash_tables): Update.
6863 (install_minimal_symbols): Do nothing if minsyms already read.
6864 Use the per-BFD obstack.
6865 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6866 * objfiles.c (allocate_objfile): Call
6867 terminate_minimal_symbol_table later.
6868 (have_minimal_symbols): Update.
6869 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6870 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6871 Move from struct objfile.
6872 <minsyms_read>: New field.
6873 (struct objfile) <msymbols, minimal_symbol_count,
6874 msymbol_hash, msymbol_demangled_hash>: Move.
6875 (ALL_OBJFILE_MSYMBOLS): Update.
6876 * symfile.c (read_symbols): Set minsyms_read.
6877 (reread_symbols): Update.
6878 * symmisc.c (dump_objfile, dump_msymbols): Update.
6879
6880 2014-02-26 Tom Tromey <tromey@redhat.com>
6881
6882 * minsyms.c (msymbols_sort): Remove.
6883 * minsyms.h (msymbols_sort): Remove.
6884 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6885 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6886 * elfread.c (elf_symtab_read): Don't add section offsets.
6887 * xcoffread.c (record_minimal_symbol): Don't add section offset
6888 to minimal symbol address.
6889 * somread.c (text_offset, data_offset): Remove.
6890 (som_symtab_read): Don't add section offsets to minimal symbol
6891 addresses.
6892 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6893 Don't add section offsets to minimal symbols.
6894 * coffread.c (coff_symtab_read): Don't add section offsets
6895 to minimal symbol addresses.
6896 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6897 to minimal symbol addresses.
6898 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6899 section offset to minimal symbol addresses.
6900 * mdebugread.c (parse_partial_symbols): Don't add section
6901 offset to minimal symbol addresses.
6902 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6903 offset to minimal symbol addresses.
6904
6905 2014-02-26 Tom Tromey <tromey@redhat.com>
6906
6907 * ada-lang.c (ada_main_name): Update.
6908 (ada_add_standard_exceptions): Update.
6909 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6910 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6911 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6912 * auxv.c (ld_so_xfer_auxv): Update.
6913 * avr-tdep.c (avr_scan_prologue): Update.
6914 * ax-gdb.c (gen_var_ref): Update.
6915 * blockframe.c (get_pc_function_start)
6916 (find_pc_partial_function_gnu_ifunc): Update.
6917 * breakpoint.c (create_overlay_event_breakpoint)
6918 (create_longjmp_master_breakpoint)
6919 (create_std_terminate_master_breakpoint)
6920 (create_exception_master_breakpoint): Update.
6921 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6922 * c-valprint.c (c_val_print): Update.
6923 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6924 * common/agent.c (agent_look_up_symbols): Update.
6925 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6926 * dwarf2loc.c (call_site_to_target_addr): Update.
6927 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6928 * elfread.c (elf_gnu_ifunc_record_cache)
6929 (elf_gnu_ifunc_resolve_by_got): Update.
6930 * findvar.c (default_read_var_value): Update.
6931 * frame.c (inside_main_func): Update.
6932 * frv-tdep.c (frv_frame_this_id): Update.
6933 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6934 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6935 Update.
6936 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6937 (hppa_hpux_find_dummy_bpaddr): Update.
6938 * hppa-tdep.c (hppa_symbol_address): Update.
6939 * infcmd.c (until_next_command): Update.
6940 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6941 Update.
6942 * linespec.c (minsym_found, add_minsym): Update.
6943 * linux-nat.c (get_signo): Update.
6944 * linux-thread-db.c (inferior_has_bug): Update.
6945 * m32c-tdep.c (m32c_return_value)
6946 (m32c_m16c_address_to_pointer): Update.
6947 * m32r-tdep.c (m32r_frame_this_id): Update.
6948 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6949 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6950 * maint.c (maintenance_translate_address): Update.
6951 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6952 (frob_address): New function.
6953 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6954 frob_address. Rename parameter to "pc_in".
6955 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6956 addresses.
6957 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6958 Update.
6959 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6960 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6961 * objc-lang.c (find_objc_msgsend): Update.
6962 * objfiles.c (objfile_relocate1): Update.
6963 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6964 * p-valprint.c (pascal_val_print): Update.
6965 * parse.c (write_exp_msymbol): Update.
6966 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6967 (ppc_elfv2_skip_entrypoint): Update.
6968 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6969 * printcmd.c (build_address_symbolic, msym_info)
6970 (address_info): Update.
6971 * proc-service.c (ps_pglobal_lookup): Update.
6972 * psymtab.c (find_pc_sect_psymtab_closer)
6973 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6974 Change msymbol parameter to bound_minimal_symbol.
6975 * ravenscar-thread.c (get_running_thread_id): Update.
6976 * remote.c (remote_check_symbols): Update.
6977 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6978 address.
6979 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6980 * solib-dsbt.c (lm_base): Update.
6981 * solib-frv.c (lm_base, main_got): Update.
6982 * solib-irix.c (locate_base): Update.
6983 * solib-som.c (som_solib_create_inferior_hook)
6984 (link_map_start): Update.
6985 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6986 * solib-svr4.c (elf_locate_base, enable_break): Update.
6987 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6988 (flush_ea_cache): Update.
6989 * stabsread.c (define_symbol, scan_file_globals): Update.
6990 * stack.c (find_frame_funname): Update.
6991 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6992 (debug_qf_find_pc_sect_symtab): Update.
6993 * symfile.c (simple_read_overlay_table)
6994 (simple_overlay_update): Update.
6995 * symfile.h (struct quick_symbol_functions)
6996 <find_pc_sect_symtab>: Change type of msymbol to
6997 bound_minimal_symbol.
6998 * symmisc.c (dump_msymbols): Update.
6999 * symtab.c (find_pc_sect_symtab_via_partial)
7000 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7001 (search_symbols, print_msymbol_info): Update.
7002 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7003 (MSYMBOL_VALUE_ADDRESS): Redefine.
7004 (BMSYMBOL_VALUE_ADDRESS): New macro.
7005 * tracepoint.c (scope_info): Update.
7006 * tui/tui-disasm.c (tui_find_disassembly_address)
7007 (tui_get_begin_asm_address): Update.
7008 * valops.c (find_function_in_inferior): Update.
7009 * value.c (value_static_field, value_fn_field): Update.
7010
7011 2014-02-26 Tom Tromey <tromey@redhat.com>
7012
7013 * ada-lang.c (ada_update_initial_language): Update.
7014 (ada_main_name, ada_has_this_exception_support): Update.
7015 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7016 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7017 * arm-tdep.c (arm_skip_stub): Update.
7018 * auxv.c (ld_so_xfer_auxv): Update.
7019 * avr-tdep.c (avr_scan_prologue): Update.
7020 * ax-gdb.c (gen_var_ref): Update.
7021 * breakpoint.c (struct breakpoint_objfile_data)
7022 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7023 type to bound_minimal_symbol.
7024 (create_overlay_event_breakpoint)
7025 (create_longjmp_master_breakpoint)
7026 (create_std_terminate_master_breakpoint)
7027 (create_exception_master_breakpoint): Update.
7028 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7029 * c-exp.y (classify_name): Update.
7030 * coffread.c (coff_symfile_read): Update.
7031 * common/agent.c (agent_look_up_symbols): Update.
7032 * d-lang.c (d_main_name): Update.
7033 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7034 * dec-thread.c (enable_dec_thread): Update.
7035 * dwarf2loc.c (call_site_to_target_addr): Update.
7036 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7037 * eval.c (evaluate_subexp_standard): Update.
7038 * findvar.c (struct minsym_lookup_data) <result>: Change type
7039 to bound_minimal_symbol.
7040 <objfile>: Remove.
7041 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7042 * frame.c (inside_main_func): Update.
7043 * frv-tdep.c (frv_frame_this_id): Update.
7044 * gcore.c (call_target_sbrk): Update.
7045 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7046 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7047 Update.
7048 * go-lang.c (go_main_name): Update.
7049 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7050 (hppa_hpux_find_import_stub_for_addr): Update.
7051 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7052 Update. Change return type.
7053 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7054 type.
7055 * jit.c (jit_breakpoint_re_set_internal): Update.
7056 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7057 Update.
7058 * linux-nat.c (get_signo): Update.
7059 * linux-thread-db.c (inferior_has_bug): Update
7060 * m32c-tdep.c (m32c_return_value)
7061 (m32c_m16c_address_to_pointer): Update.
7062 * m32r-tdep.c (m32r_frame_this_id): Update.
7063 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7064 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7065 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7066 lookup_minimal_symbol. Change return type.
7067 (lookup_minimal_symbol): Remove.
7068 (lookup_bound_minimal_symbol): Update.
7069 (lookup_minimal_symbol_text): Change return type.
7070 (lookup_minimal_symbol_solib_trampoline): Change return type.
7071 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7072 (lookup_minimal_symbol_solib_trampoline): Change return type.
7073 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7074 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7075 (value_nsstring, find_imps): Update.
7076 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7077 * p-lang.c (pascal_main_name): Update.
7078 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7079 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7080 * proc-service.c (ps_pglobal_lookup): Update.
7081 * ravenscar-thread.c (get_running_thread_msymbol): Change
7082 return type.
7083 (has_ravenscar_runtime, get_running_thread_id): Update.
7084 * remote.c (remote_check_symbols): Update.
7085 * sol-thread.c (ps_pglobal_lookup): Update.
7086 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7087 * solib-dsbt.c (lm_base): Update.
7088 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7089 Update.
7090 * solib-irix.c (locate_base): Update.
7091 * solib-som.c (som_solib_create_inferior_hook)
7092 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7093 Update.
7094 * solib-spu.c (spu_enable_break): Update.
7095 * solib-svr4.c (elf_locate_base, enable_break): Update.
7096 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7097 (flush_ea_cache): Update.
7098 * stabsread.c (define_symbol): Update.
7099 * symfile.c (simple_read_overlay_table): Update.
7100 * symtab.c (find_pc_sect_line): Update.
7101 * tracepoint.c (scope_info): Update.
7102 * tui-disasm.c (tui_get_begin_asm_address): Update.
7103 * value.c (value_static_field): Update.
7104
7105 2014-02-26 Tom Tromey <tromey@redhat.com>
7106
7107 * minsyms.c (prim_record_minimal_symbol_full): Use
7108 SET_MSYMBOL_VALUE_ADDRESS.
7109 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7111 SET_MSYMBOL_VALUE_ADDRESS.
7112 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7113 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7114
7115 2014-02-26 Tom Tromey <tromey@redhat.com>
7116
7117 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7118 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7119 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7120 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7121 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7122 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7123 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7124 * ada-lang.c (ada_main_name): Update.
7125 (ada_lookup_simple_minsym): Update.
7126 (ada_make_symbol_completion_list): Update.
7127 (ada_add_standard_exceptions): Update.
7128 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7129 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7130 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7131 * arm-tdep.c (skip_prologue_function): Update.
7132 (arm_skip_stack_protector, arm_skip_stub): Update.
7133 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7134 (arm_wince_skip_main_prologue): Update.
7135 * auxv.c (ld_so_xfer_auxv): Update.
7136 * avr-tdep.c (avr_scan_prologue): Update.
7137 * ax-gdb.c (gen_var_ref): Update.
7138 * block.c (call_site_for_pc): Update.
7139 * blockframe.c (get_pc_function_start): Update.
7140 (find_pc_partial_function_gnu_ifunc): Update.
7141 * breakpoint.c (create_overlay_event_breakpoint): Update.
7142 (create_longjmp_master_breakpoint): Update.
7143 (create_std_terminate_master_breakpoint): Update.
7144 (create_exception_master_breakpoint): Update.
7145 (resolve_sal_pc): Update.
7146 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7147 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7148 Update.
7149 * c-valprint.c (c_val_print): Update.
7150 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7151 * coffread.c (coff_symfile_read): Update.
7152 * common/agent.c (agent_look_up_symbols): Update.
7153 * dbxread.c (find_stab_function_addr): Update.
7154 (end_psymtab): Update.
7155 * dwarf2loc.c (call_site_to_target_addr): Update.
7156 (func_verify_no_selftailcall): Update.
7157 (tailcall_dump): Update.
7158 (call_site_find_chain_1): Update.
7159 (dwarf_expr_reg_to_entry_parameter): Update.
7160 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7161 (elf_gnu_ifunc_resolve_by_got): Update.
7162 * f-valprint.c (info_common_command): Update.
7163 * findvar.c (read_var_value): Update.
7164 * frame.c (get_prev_frame_1): Update.
7165 (inside_main_func): Update.
7166 * frv-tdep.c (frv_skip_main_prologue): Update.
7167 (frv_frame_this_id): Update.
7168 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7169 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7170 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7171 (gnuv3_skip_trampoline): Update.
7172 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7173 (hppa64_hpux_in_solib_call_trampoline): Update.
7174 (hppa_hpux_skip_trampoline_code): Update.
7175 (hppa64_hpux_search_dummy_call_sequence): Update.
7176 (hppa_hpux_find_import_stub_for_addr): Update.
7177 (hppa_hpux_find_dummy_bpaddr): Update.
7178 * hppa-tdep.c (hppa_symbol_address)
7179 (hppa_lookup_stub_minimal_symbol): Update.
7180 * i386-tdep.c (i386_skip_main_prologue): Update.
7181 (i386_pe_skip_trampoline_code): Update.
7182 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7183 * infcall.c (get_function_name): Update.
7184 * infcmd.c (until_next_command): Update.
7185 * jit.c (jit_breakpoint_re_set_internal): Update.
7186 (jit_inferior_init): Update.
7187 * linespec.c (minsym_found): Update.
7188 (add_minsym): Update.
7189 * linux-fork.c (info_checkpoints_command): Update.
7190 * linux-nat.c (get_signo): Update.
7191 * linux-thread-db.c (inferior_has_bug): Update.
7192 * m32c-tdep.c (m32c_return_value): Update.
7193 (m32c_m16c_address_to_pointer): Update.
7194 (m32c_m16c_pointer_to_address): Update.
7195 * m32r-tdep.c (m32r_frame_this_id): Update.
7196 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7197 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7198 * maint.c (maintenance_translate_address): Update.
7199 * minsyms.c (add_minsym_to_hash_table): Update.
7200 (add_minsym_to_demangled_hash_table): Update.
7201 (msymbol_objfile): Update.
7202 (lookup_minimal_symbol): Update.
7203 (iterate_over_minimal_symbols): Update.
7204 (lookup_minimal_symbol_text): Update.
7205 (lookup_minimal_symbol_by_pc_name): Update.
7206 (lookup_minimal_symbol_solib_trampoline): Update.
7207 (lookup_minimal_symbol_by_pc_section_1): Update.
7208 (lookup_minimal_symbol_and_objfile): Update.
7209 (prim_record_minimal_symbol_full): Update.
7210 (compare_minimal_symbols): Update.
7211 (compact_minimal_symbols): Update.
7212 (build_minimal_symbol_hash_tables): Update.
7213 (install_minimal_symbols): Update.
7214 (terminate_minimal_symbol_table): Update.
7215 (find_solib_trampoline_target): Update.
7216 (minimal_symbol_upper_bound): Update.
7217 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7218 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7219 (mips_skip_pic_trampoline_code): Update.
7220 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7221 * objc-lang.c (selectors_info): Update.
7222 (classes_info): Update.
7223 (find_methods): Update.
7224 (find_imps): Update.
7225 (find_objc_msgsend): Update.
7226 * objfiles.c (objfile_relocate1): Update.
7227 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7228 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7229 * p-valprint.c (pascal_val_print): Update.
7230 * parse.c (write_exp_msymbol): Update.
7231 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7232 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7233 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7234 * printcmd.c (build_address_symbolic): Update.
7235 (sym_info): Update.
7236 (address_info): Update.
7237 * proc-service.c (ps_pglobal_lookup): Update.
7238 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7239 (find_pc_sect_psymtab): Update.
7240 * python/py-framefilter.c (py_print_frame): Update.
7241 * ravenscar-thread.c (get_running_thread_id): Update.
7242 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7243 Update.
7244 * remote.c (remote_check_symbols): Update.
7245 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7246 (rs6000_skip_trampoline_code): Update.
7247 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7248 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7249 * solib-dsbt.c (lm_base): Update.
7250 * solib-frv.c (lm_base): Update.
7251 (main_got): Update.
7252 * solib-irix.c (locate_base): Update.
7253 * solib-som.c (som_solib_create_inferior_hook): Update.
7254 (som_solib_desire_dynamic_linker_symbols): Update.
7255 (link_map_start): Update.
7256 * solib-spu.c (spu_enable_break): Update.
7257 (ocl_enable_break): Update.
7258 * solib-svr4.c (elf_locate_base): Update.
7259 (enable_break): Update.
7260 * spu-tdep.c (spu_get_overlay_table): Update.
7261 (spu_catch_start): Update.
7262 (flush_ea_cache): Update.
7263 * stabsread.c (define_symbol): Update.
7264 (scan_file_globals): Update.
7265 * stack.c (find_frame_funname): Update.
7266 (frame_info): Update.
7267 * symfile.c (simple_read_overlay_table): Update.
7268 (simple_overlay_update): Update.
7269 * symmisc.c (dump_msymbols): Update.
7270 * symtab.c (fixup_section): Update.
7271 (find_pc_sect_line): Update.
7272 (skip_prologue_sal): Update.
7273 (search_symbols): Update.
7274 (print_msymbol_info): Update.
7275 (rbreak_command): Update.
7276 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7277 (completion_list_objc_symbol): Update.
7278 (default_make_symbol_completion_list_break_on): Update.
7279 * tracepoint.c (scope_info): Update.
7280 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7281 (tui_get_begin_asm_address): Update.
7282 * valops.c (find_function_in_inferior): Update.
7283 * value.c (value_static_field): Update.
7284 (value_fn_field): Update.
7285
7286 2014-02-26 Tom Tromey <tromey@redhat.com>
7287
7288 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7289 bound minimal symbols. Move code that knows about minsym
7290 table layout...
7291 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7292 function.
7293 * minsyms.h (minimal_symbol_upper_bound): Declare.
7294 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7295 minimal_symbol_upper_bound.
7296
7297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7298
7299 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7300 Use the type's name if its basic type does not have a tag.
7301
7302 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7303
7304 * dwarf2read.c (read_subrange_type): Add comment.
7305
7306 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7307
7308 * dwarf2read.c (update_enumeration_type_from_children): New
7309 function, mostly extracted from process_structure_scope.
7310 (read_enumeration_type): Call update_enumeration_type_from_children.
7311 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7312 and flag_flag_enum fields.
7313
7314 2014-02-26 Pedro Alves <palves@redhat.com>
7315
7316 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7317 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7318 to_xfer_partial method.
7319
7320 2014-02-26 Pedro Alves <palves@redhat.com>
7321
7322 * target.c (complete_target_initialization): Don't install
7323 default_xfer_partial as to_xfer_partial hook.
7324 (nomemory): Delete.
7325 (update_current_target): Don't INHERIT nor de_fault
7326 deprecated_xfer_memory. Delete de_fault macro.
7327 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7328 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7329 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7330 field.
7331
7332 2014-02-26 Pedro Alves <palves@redhat.com>
7333
7334 * go32-nat.c (my_write_child): New function.
7335 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7336 (go32_xfer_partial): New function.
7337 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7338 Instead install a to_xfer_partial hook.
7339
7340 2014-02-26 Pedro Alves <palves@redhat.com>
7341
7342 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7343 to_xfer_partial helper. Rewrite.
7344 (procfs_xfer_partial): New function.
7345 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7346 Install a to_xfer_partial hook.
7347
7348 2014-02-26 Pedro Alves <palves@redhat.com>
7349
7350 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7351 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7352 (m32r_xfer_partial): New function.
7353 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7354 Install a to_xfer_partial hook.
7355
7356 2014-02-26 Pedro Alves <palves@redhat.com>
7357
7358 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7359 helper.
7360 (mips_xfer_partial): New function.
7361 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7362 hook. Install a to_xfer_partial hook.
7363
7364 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7365
7366 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7367 * gdbtypes.c (create_array_type_with_stride): New function,
7368 renaming create_array_type, but with an added parameter
7369 called "bit_stride".
7370 (create_array_type): Re-implement using
7371 create_array_type_with_stride.
7372 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7373 and DW_AT_bit_stride attributes.
7374
7375 2014-02-26 Pedro Alves <palves@redhat.com>
7376
7377 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7378 task-specific breakpoints.
7379
7380 2014-02-25 Pedro Alves <palves@redhat.com>
7381
7382 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7383 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7384
7385 2014-02-25 Stan Shebs <stan@codesourcery.com>
7386
7387 * defs.h: Annotate comments for Doxygen.
7388
7389 2014-02-25 Tom Tromey <tromey@redhat.com>
7390
7391 * target.h (target_ignore): Don't declare.
7392 * target.c (target_ignore): Remove.
7393
7394 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7395
7396 PR gdb/16626
7397 * auto-load.c (auto_load_objfile_script_1): Change filename to
7398 debugfile.
7399
7400 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7401
7402 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7403 documentation. Adjust prototype to match the target_ops
7404 to_xfer_partial method. Adjust implementation accordingly.
7405
7406 2014-02-25 Hui Zhu <hui@codesourcery.com>
7407
7408 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7409 to_traceframe_info.
7410
7411 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7412
7413 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7414 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7415 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7416 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7417 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7418 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7419 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7420 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7421 New constants.
7422 (rl78_register_type): Use a data pointer type for SP and
7423 new pseudo registers mentioned above. Use a 16 bit integer
7424 type for all other register pairs.
7425 (rl78_register_name, rl78_g10_register_name): Update for
7426 new pseudo registers.
7427 (rl78_pseudo_register_read): Likewise.
7428 (rl78_pseudo_register_write): Likewise.
7429 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7430 to the newly added pseudo registers.
7431
7432 2014-02-24 Doug Evans <dje@google.com>
7433
7434 * value.c (record_latest_value): Fix comment.
7435 * printcmd.c (print_command_1): Remove code to handle -1 return from
7436 record_latest_value.
7437
7438 2014-02-24 Pedro Alves <palves@redhat.com>
7439
7440 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7441 deprecated_xfer_memory hook.
7442 (procfs_xfer_partial): Call procfs_xfer_memory instead
7443 of the deprecated_xfer_memory target hook.
7444 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7445 helper.
7446
7447 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7448
7449 * windows-nat.c (windows_xfer_shared_libraries): Return
7450 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7451 requested object is TARGET_OBJECT_LIBRARIES.
7452
7453 2014-02-24 Yao Qi <yao@codesourcery.com>
7454
7455 * target.h (enum target_xfer_status)
7456 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7457 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7458 explicitly. New.
7459 * corefile.c (memory_error_message): User updated.
7460 * exec.c (section_table_read_available_memory): Likewise.
7461 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7462 * target.c (target_xfer_status_to_string): Likewise.
7463 (raw_memory_xfer_partial): Likewise.
7464 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7465 * valops.c (read_value_memory): Likewise.
7466 * exec.h: Update comments.
7467
7468 2014-02-24 Yao Qi <yao@codesourcery.com>
7469
7470 * target.c (target_xfer_status_to_string): Rename argument err
7471 to status.
7472 * target.h (target_xfer_status_to_string): Update declaration.
7473 Replace target_xfer_error_to_string with
7474 target_xfer_status_to_string in comment.
7475
7476 2014-02-24 Yao Qi <yao@codesourcery.com>
7477
7478 * mips-linux-nat.c (super_close): Update its type.
7479 (mips_linux_close): Pass 'self' to super_close.
7480
7481 2014-02-24 Yao Qi <yao@codesourcery.com>
7482
7483 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7484 * corefile.c (read_memory): Adjusted.
7485 * target.c (target_write_with_progress): Adjusted.
7486
7487 2014-02-23 Yao Qi <yao@codesourcery.com>
7488
7489 Revert two patches:
7490
7491 2013-10-25 Yao Qi <yao@codesourcery.com>
7492
7493 * remote.c (remote_traceframe_info): Return early if
7494 traceframe is not selected.
7495
7496 2013-07-19 Yao Qi <yao@codesourcery.com>
7497
7498 * target.c (update_current_target): Change the default action
7499 of 'to_traceframe_info' from tcomplain to return_zero.
7500 * target.h (struct target_ops) <to_traceframe_info>: Add more
7501 comments.
7502
7503 2014-02-23 Yao Qi <yao@codesourcery.com>
7504
7505 * valops.c (read_value_memory): Rewrite it. Call
7506 target_xfer_partial in a loop.
7507 * exec.h (section_table_available_memory): Remove declaration.
7508 Move comments to ...
7509 * exec.c (section_table_available_memory): ... here. Make it
7510 static.
7511
7512 2014-02-23 Yao Qi <yao@codesourcery.com>
7513
7514 * exec.c (section_table_read_available_memory): New function.
7515 * exec.h (section_table_read_available_memory): Declare.
7516 * ctf.c (ctf_xfer_partial): Call
7517 section_table_read_available_memory.
7518 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7519
7520 2014-02-23 Yao Qi <yao@codesourcery.com>
7521
7522 * ctf.c (ctf_xfer_partial): Move code to ...
7523 * exec.c (exec_read_partial_read_only): ... it. New function.
7524 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7525 * tracefile.c: Include "exec.h".
7526 * exec.h (exec_read_partial_read_only): Declare.
7527
7528 2014-02-23 Yao Qi <yao@codesourcery.com>
7529
7530 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7531 (tfile_has_memory): Remove.
7532 (init_tfile_ops): Don't set fields to_has_all_memory and
7533 to_has_memory of tfile_ops.
7534 * tracefile.c (tracefile_has_all_memory): New function.
7535 (tracefile_has_memory): New function.
7536 (init_tracefile_ops): Initialize fields to_has_all_memory and
7537 to_has_memory of 'ops'.
7538
7539 2014-02-23 Yao Qi <yao@codesourcery.com>
7540
7541 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7542 (ctf_thread_alive, ctf_get_trace_status): Remove.
7543 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7544 init_tracefile_ops.
7545 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7546 (tfile_has_stack, tfile_has_registers): Remove.
7547 (tfile_thread_alive): Remove.
7548 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7549 init_tracefile_ops.
7550 * tracefile.c (tracefile_has_stack): New function.
7551 (tracefile_has_registers): New function.
7552 (tracefile_thread_alive): New function.
7553 (tracefile_get_trace_status): New function.
7554 (init_tracefile_ops): New function.
7555 * tracefile.h (init_tracefile_ops): Declare.
7556
7557 2014-02-23 Yao Qi <yao@codesourcery.com>
7558
7559 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7560 (O_LARGEFILE): Likewise.
7561 (tfile_ops): Likewise.
7562 (TRACE_HEADER_SIZE): Likewise.
7563 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7564 (cur_data_size): Likewise.
7565 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7566 (tfile_close, tfile_files_info): Likewise.
7567 (tfile_get_trace_status): Likewise.
7568 (tfile_get_tracepoint_status): Likewise.
7569 (tfile_get_traceframe_address): Likewise.
7570 (tfile_trace_find, match_blocktype): Likewise.
7571 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7572 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7573 (tfile_get_trace_state_variable_value): Likewise.
7574 (tfile_has_all_memory, tfile_has_memory): Likewise.
7575 (tfile_has_stack, tfile_has_registers): Likewise.
7576 (tfile_thread_alive, build_traceframe_info): Likewise.
7577 (tfile_traceframe_info, init_tfile_ops): Likewise.
7578 (_initialize_tracepoint): Don't call init_tfile_ops
7579 and add_target_with_completer.
7580 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7581 exec.h, completer.h and filenames.h.
7582 (_initialize_tracefile_tfile): New function.
7583
7584 2014-02-23 Yao Qi <yao@codesourcery.com>
7585
7586 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7587 tracefile-tfile.o.
7588 (HFILES_NO_SRCDIR): Add tracefile.h.
7589 * ctf.c: Include "tracefile.h".
7590 * tracefile.h: New file.
7591 * tracefile.c: New file
7592 * tracefile-tfile.c: New file.
7593 * tracepoint.c: Include "tracefile.h".
7594 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7595 (stop_reason_names): Add const.
7596 (trace_file_writer_xfree): Move it to tracefile.c.
7597 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7598 (trace_save_ctf): Likewise.
7599 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7600 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7601 (tfile_write_header, tfile_write_regblock_type): Likewise.
7602 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7603 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7604 (tfile_write_raw_data, tfile_end): Likewise.
7605 (tfile_trace_file_writer_new): Likewise.
7606 (free_uploaded_tp): Make it extern.
7607 (free_uploaded_tsv): Make it extern.
7608 (_initialize_tracepoint): Move code to register command 'tsave'
7609 to tracefile.c.
7610 * tracepoint.h (stop_reason_names): Declare.
7611 (struct trace_frame_write_ops): Move it to tracefile.h.
7612 (struct trace_file_write_ops): Likewise.
7613 (struct trace_file_writer): Likewise.
7614 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7615
7616 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7617
7618 PR gdb/16594
7619 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7620 process name.
7621 (get_cores_used_by_process): New parameter num_cores, use it.
7622 (linux_xfer_osdata_processes): Pass num_cores to it.
7623 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7624 process name.
7625
7626 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7627
7628 * target.c (memory_xfer_partial): Fix length arg in call to
7629 breakpoint_xfer_memory.
7630
7631 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7632
7633 PR tdep/16397
7634 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7635 number comes after the + or - signs. Adjust length of register
7636 name to be extracted.
7637
7638 2014-02-20 Tom Tromey <tromey@redhat.com>
7639
7640 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7641 (ada_varobj_ops): Mark "extern".
7642
7643 2014-02-20 Tom Tromey <tromey@redhat.com>
7644
7645 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7646
7647 2014-02-20 Doug Evans <xdje42@gmail.com>
7648
7649 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7650 All callers updated.
7651 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7652 All callers updated.
7653 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7654 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7655
7656 2014-02-20 lin zuojian <manjian2006@gmail.com>
7657 Joel Brobecker <brobecker@adacore.com>
7658 Doug Evans <xdje42@gmail.com>
7659
7660 PR symtab/16581
7661 * dwarf2read.c (struct die_info): New member in_process.
7662 (reset_die_in_process): New function.
7663 (process_die): Set it at the start, reset when returning.
7664 (inherit_abstract_dies): Only call process_die if origin_child_die
7665 not already being processed.
7666
7667 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7668
7669 * windows-nat.c (handle_unload_dll): Add function documentation.
7670 (do_initial_windows_stuff): Add comment explaining why we wait
7671 until after inferior initialization has finished before
7672 processing all DLLs.
7673
7674 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7675
7676 * windows-nat.c (get_module_name): Delete.
7677 (windows_get_exec_module_filename): New function, mostly
7678 inspired from get_module_name.
7679 (windows_pid_to_exec_file): Replace call to get_module_name
7680 by call to windows_get_exec_module_filename.
7681
7682 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7683
7684 * windows-nat.c (handle_load_dll): Rewrite this function's
7685 introductory comment. Remove code using get_module_name
7686 to get the DLL's name.
7687
7688 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7689
7690 * windows-nat.c (get_windows_debug_event): Ignore
7691 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7692 if windows_initialization_done == 0.
7693 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7694 Adjust implementation to always load all DLLs.
7695 (do_initial_windows_stuff): Replace call to
7696 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7697
7698 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7699
7700 * windows-nat.c (_initialize_windows_nat): Deprecate the
7701 "dll-symbols" command. Turn the "add-shared-symbol-files"
7702 and "assf" aliases into commands, and deprecate them as well.
7703 * NEWS: Add entry explaining that "dll-symbols" and its two
7704 aliases are now deprecated.
7705
7706 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7707
7708 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7709 new-line in debug string. Remove trailing spaces.
7710
7711 2014-02-19 Stan Shebs <stan@codesourcery.com>
7712
7713 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7714
7715 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7716
7717 * NEWS: Add entry for the new feature
7718 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7719 and class values.
7720
7721 2014-02-19 Stan Shebs <stan@codesourcery.com>
7722
7723 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7724
7725 2014-02-19 Pedro Alves <palves@redhat.com>
7726
7727 * common/ptid.h (struct ptid): Mention that process_stratum
7728 targets should prefer ptid.lwp.
7729
7730 2014-02-19 Pedro Alves <palves@redhat.com>
7731
7732 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7733 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7734 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7735 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7736 store remote thread ids rather than ptid.tid.
7737 (_initialize_remote): Adjust.
7738
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target.c (target_get_unwinder): Rewrite.
7742 (target_get_tailcall_unwinder): Rewrite.
7743 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7744 (record_btrace_to_get_tailcall_unwinder): New function.
7745 (init_record_btrace_ops): Update.
7746 * target.h (struct target_ops) <to_get_unwinder,
7747 to_get_tailcall_unwinder>: Now function pointers. Use
7748 TARGET_DEFAULT_RETURN.
7749
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7751
7752 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7753 argument.
7754 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7755
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7759 directly.
7760 * target-delegates.c: Rebuild.
7761 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7762 TARGET_DEFAULT_FUNC.
7763 * target.c (default_target_decr_pc_after_break): Rename from
7764 forward_target_decr_pc_after_break. Simplify.
7765 (target_decr_pc_after_break): Rely on delegation.
7766
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target.c (update_current_target): Do not INHERIT to_doc or
7770 to_magic. Do not de_fault to_open or to_close.
7771
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7773
7774 * gcore.h (objfile_find_memory_regions): Declare.
7775 * gcore.c (objfile_find_memory_regions): No longer static. Add
7776 "self" argument.
7777 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7778 * exec.c: Include gcore.h.
7779 (exec_set_find_memory_regions): Remove.
7780 (exec_find_memory_regions): Remove.
7781 (exec_do_find_memory_regions): Remove.
7782 (init_exec_ops): Update.
7783 * defs.h (exec_set_find_memory_regions): Remove.
7784
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7786
7787 * target-delegates.c: Rebuild.
7788 * target.h (struct target_ops) <to_extra_thread_info,
7789 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7790 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7791 not 0, in TARGET_DEFAULT_RETURN.
7792
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target.c (complete_target_initialization): Remove casts. Use
7796 return_zero_has_execution.
7797 (return_zero): Add "ignore" argument.
7798 (return_zero_has_execution): New function.
7799 (init_dummy_target): Remove casts. Use
7800 return_zero_has_execution.
7801
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target.c (update_current_target): Update comments. Do not
7805 INHERIT to_stratum.
7806
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7808
7809 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7810 needed.
7811 * corelow.c (core_read_description): Delegate when needed.
7812 * remote.c (remote_read_description): Delegate when needed.
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_read_description): Rewrite.
7815 * target.h (struct target_ops) <to_read_description>: Update
7816 comment. Use TARGET_DEFAULT_RETURN.
7817
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (update_current_target): Don't inherit or default
7822 to_can_run.
7823 (find_default_run_target): Check against delegate_can_run.
7824 * target.h (struct target_ops) <to_can_run>: Use
7825 TARGET_DEFAULT_RETURN.
7826
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (target_disconnect): Unconditionally delegate.
7831 * target.h (struct target_ops) <to_disconnect>: Use
7832 TARGET_DEFAULT_NORETURN.
7833
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * record.c (record_stop): Unconditionally delegate.
7837 * target-delegates.c: Rebuild.
7838 * target.c (target_stop_recording): Unconditionally delegate.
7839 * target.h (struct target_ops) <to_stop_recording>: Use
7840 TARGET_DEFAULT_IGNORE.
7841
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * target-delegates.c: Rebuild.
7845 * target.c (target_enable_btrace): Unconditionally delegate.
7846 * target.h (struct target_ops) <to_enable_btrace>: Use
7847 TARGET_DEFAULT_NORETURN.
7848
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target-delegates.c: Rebuild.
7852 * target.c (target_read_btrace): Unconditionally delegate.
7853 * target.h (struct target_ops) <to_read_btrace>: Use
7854 TARGET_DEFAULT_NORETURN.
7855
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7857
7858 * target-delegates.c: Rebuild.
7859 * target.c (target_teardown_btrace): Unconditionally delegate.
7860 * target.h (struct target_ops) <to_teardown_btrace>: Use
7861 TARGET_DEFAULT_NORETURN.
7862
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7864
7865 * target-delegates.c: Rebuild.
7866 * target.c (target_disable_btrace): Unconditionally delegate.
7867 * target.h (struct target_ops) <to_disable_btrace>: Use
7868 TARGET_DEFAULT_NORETURN.
7869
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target-delegates.c: Rebuild.
7873 * target.c (default_search_memory): New function.
7874 (simple_search_memory): Update comment.
7875 (target_search_memory): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_search_memory>: Use
7877 TARGET_DEFAULT_FUNC.
7878
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7880
7881 * auxv.c (default_auxv_parse): No longer static.
7882 (target_auxv_parse): Unconditionally delegate.
7883 * auxv.h (default_auxv_parse): Declare.
7884 * target-delegates.c: Rebuild.
7885 * target.c: Include auxv.h.
7886 * target.h (struct target_ops) <to_auxv_parse>: Use
7887 TARGET_DEFAULT_FUNC.
7888
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * target-delegates.c: Rebuild.
7892 * target.c (target_memory_map): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_memory_map>: Use
7894 TARGET_DEFAULT_RETURN.
7895
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (target_thread_alive): Unconditionally delegate.
7900 * target.h (struct target_ops) <to_thread_alive>: Use
7901 TARGET_DEFAULT_RETURN.
7902
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7904
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_save_record): Unconditionally delegate.
7907 * target.h (struct target_ops) <to_save_record>: Use
7908 TARGET_DEFAULT_NORETURN.
7909
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7911
7912 * target-delegates.c: Rebuild.
7913 * target.c (target_delete_record): Unconditionally delegate.
7914 * target.h (struct target_ops) <to_delete_record>: Use
7915 TARGET_DEFAULT_NORETURN.
7916
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target-delegates.c: Rebuild.
7920 * target.c (target_record_is_replaying): Unconditionally
7921 delegate.
7922 * target.h (struct target_ops) <to_record_is_replaying>: Use
7923 TARGET_DEFAULT_RETURN.
7924
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_goto_record_begin): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_goto_record_begin>: Use
7930 TARGET_DEFAULT_NORETURN.
7931
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_goto_record_end): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_goto_record_end>: Use
7937 TARGET_DEFAULT_NORETURN.
7938
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_goto_record): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_goto_record>: Use
7944 TARGET_DEFAULT_NORETURN.
7945
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7947
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_insn_history): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_insn_history>: Use
7951 TARGET_DEFAULT_NORETURN.
7952
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_insn_history_from): Unconditionally delegate.
7957 * target.h (struct target_ops) <to_insn_history_from>: Use
7958 TARGET_DEFAULT_NORETURN.
7959
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7961
7962 * target-delegates.c: Rebuild.
7963 * target.c (target_insn_history_range): Unconditionally delegate.
7964 * target.h (struct target_ops) <to_insn_history_range>: Use
7965 TARGET_DEFAULT_NORETURN.
7966
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target-delegates.c: Rebuild.
7970 * target.c (target_call_history): Unconditionally delegate.
7971 * target.h (struct target_ops) <to_call_history>: Use
7972 TARGET_DEFAULT_NORETURN.
7973
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7975
7976 * target-delegates.c: Rebuild.
7977 * target.c (target_call_history_from): Unconditionally delegate.
7978 * target.h (struct target_ops) <to_call_history_from>: Use
7979 TARGET_DEFAULT_NORETURN.
7980
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_call_history_range): Unconditionally delegate.
7985 * target.h (struct target_ops) <to_call_history_range>: Use
7986 TARGET_DEFAULT_NORETURN.
7987
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (target_verify_memory): Unconditionally delegate.
7992 * target.h (struct target_ops) <to_verify_memory>: Use
7993 TARGET_DEFAULT_NORETURN.
7994
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7996
7997 * target-delegates.c: Rebuild.
7998 * target.c (target_core_of_thread): Unconditionally delegate.
7999 * target.h (struct target_ops) <to_core_of_thread>: Use
8000 TARGET_DEFAULT_RETURN.
8001
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8003
8004 * target-delegates.c: Rebuild.
8005 * target.c (target_flash_done): Unconditionally delegate.
8006 * target.h (struct target_ops) <to_flash_done>: Use
8007 TARGET_DEFAULT_NORETURN.
8008
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_flash_erase): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_flash_erase>: Use
8014 TARGET_DEFAULT_NORETURN.
8015
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target-delegates.c: Rebuild.
8019 * target.c (target_get_section_table): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_get_section_table>: Use
8021 TARGET_DEFAULT_RETURN.
8022
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_pid_to_str): Unconditionally delegate.
8027 (init_dummy_target): Don't initialize to_pid_to_str.
8028 (default_pid_to_str): Rename from dummy_pid_to_str.
8029 * target.h (struct target_ops) <to_pid_to_str>: Use
8030 TARGET_DEFAULT_FUNC.
8031
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_find_new_threads): Unconditionally delegate.
8036 * target.h (struct target_ops) <to_find_new_threads>: Use
8037 TARGET_DEFAULT_RETURN.
8038
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * target-delegates.c: Rebuild.
8042 * target.c (target_program_signals): Unconditionally delegate.
8043 * target.h (struct target_ops) <to_program_signals>: Use
8044 TARGET_DEFAULT_IGNORE.
8045
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (target_pass_signals): Unconditionally delegate.
8050 * target.h (struct target_ops) <to_pass_signals>: Use
8051 TARGET_DEFAULT_IGNORE.
8052
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (default_mourn_inferior): New function.
8057 (target_mourn_inferior): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_mourn_inferior>: Use
8059 TARGET_DEFAULT_FUNC.
8060
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (default_follow_fork): New function.
8065 (target_follow_fork): Unconditionally delegate.
8066 * target.h (struct target_ops) <to_follow_fork>: Use
8067 TARGET_DEFAULT_FUNC.
8068
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (target_kill): Unconditionally delegate.
8073 * target.h (struct target_ops) <to_kill>: Use
8074 TARGET_DEFAULT_NORETURN.
8075
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (target_masked_watch_num_registers): Unconditionally
8080 delegate.
8081 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8082 Use TARGET_DEFAULT_RETURN.
8083
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_remove_mask_watchpoint): Unconditionally
8088 delegate.
8089 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8090 TARGET_DEFAULT_RETURN.
8091
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (target_insert_mask_watchpoint): Unconditionally
8096 delegate.
8097 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8098 TARGET_DEFAULT_RETURN.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_ranged_break_num_registers): Unconditionally
8104 delegate.
8105 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8106 Use TARGET_DEFAULT_RETURN.
8107
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_fetch_registers): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_fetch_registers>: Use
8113 TARGET_DEFAULT_NORETURN.
8114
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8119 to_stop.
8120 * target.h (struct target_ops) <to_stop>: Use
8121 TARGET_DEFAULT_IGNORE.
8122
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target-delegates.c: Rebuild.
8126 * target.c (update_current_target): Don't inherit or default
8127 to_can_run_breakpoint_commands.
8128 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8129 Use TARGET_DEFAULT_RETURN.
8130
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (update_current_target): Don't inherit or default
8135 to_supports_evaluation_of_breakpoint_conditions.
8136 * target.h (struct target_ops)
8137 <to_supports_evaluation_of_breakpoint_conditions>: Use
8138 TARGET_DEFAULT_RETURN.
8139
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_augmented_libraries_svr4_read.
8145 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8146 Use TARGET_DEFAULT_RETURN.
8147
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_can_use_agent.
8153 * target.h (struct target_ops) <to_can_use_agent>: Use
8154 TARGET_DEFAULT_RETURN.
8155
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_use_agent.
8161 * target.h (struct target_ops) <to_use_agent>: Use
8162 TARGET_DEFAULT_NORETURN.
8163
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_traceframe_info.
8169 (return_null): Remove.
8170 * target.h (struct target_ops) <to_traceframe_info>: Use
8171 TARGET_DEFAULT_RETURN.
8172
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_static_tracepoint_markers_by_strid.
8178 * target.h (struct target_ops)
8179 <to_static_tracepoint_markers_by_strid>: Use
8180 TARGET_DEFAULT_NORETURN.
8181
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8183
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8186 to_static_tracepoint_marker_at.
8187 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8188 Use TARGET_DEFAULT_RETURN.
8189
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_set_permissions.
8195 * target.h (struct target_ops) <to_set_permissions>: Use
8196 TARGET_DEFAULT_IGNORE.
8197
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_get_tib_address.
8203 * target.h (struct target_ops) <to_get_tib_address>: Use
8204 TARGET_DEFAULT_NORETURN.
8205
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_set_trace_notes.
8211 * target.h (struct target_ops) <to_set_trace_notes>: Use
8212 TARGET_DEFAULT_RETURN.
8213
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't initialize
8218 to_set_trace_buffer_size.
8219 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8220 TARGET_DEFAULT_IGNORE.
8221
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_set_circular_trace_buffer.
8227 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8228 TARGET_DEFAULT_IGNORE.
8229
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_set_disconnected_tracing.
8235 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8236 TARGET_DEFAULT_IGNORE.
8237
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_get_min_fast_tracepoint_insn_len.
8243 (return_minus_one): Remove.
8244 * target.h (struct target_ops)
8245 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8246
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_get_raw_trace_data.
8252 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8253 TARGET_DEFAULT_NORETURN.
8254
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_upload_trace_state_variables.
8260 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8261 Use TARGET_DEFAULT_RETURN.
8262
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_upload_tracepoints.
8268 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8269 TARGET_DEFAULT_RETURN.
8270
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8275 to_save_trace_data.
8276 * target.h (struct target_ops) <to_save_trace_data>: Use
8277 TARGET_DEFAULT_NORETURN.
8278
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_get_trace_state_variable_value.
8284 * target.h (struct target_ops)
8285 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8286
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't inherit or default
8291 to_trace_find.
8292 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8293
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8298 to_trace_stop.
8299 * target.h (struct target_ops) <to_trace_stop>: Use
8300 TARGET_DEFAULT_NORETURN.
8301
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8303
8304 * target-delegates.c: Rebuild.
8305 * target.c (update_current_target): Don't inherit or default
8306 to_get_tracepoint_status.
8307 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8308 TARGET_DEFAULT_NORETURN.
8309
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_get_trace_status.
8315 * target.h (struct target_ops) <to_get_trace_status>: Use
8316 TARGET_DEFAULT_RETURN.
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_trace_start.
8323 * target.h (struct target_ops) <to_trace_start>: Use
8324 TARGET_DEFAULT_NORETURN.
8325
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8327
8328 * target-delegates.c: Rebuild.
8329 * target.c (update_current_target): Don't inherit or default
8330 to_trace_set_readonly_regions.
8331 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8332 Use TARGET_DEFAULT_NORETURN.
8333
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target-delegates.c: Rebuild.
8337 * target.c (update_current_target): Don't inherit or default
8338 to_disable_tracepoint.
8339 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8340 TARGET_DEFAULT_NORETURN.
8341
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8346 to_enable_tracepoint.
8347 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8348 TARGET_DEFAULT_NORETURN.
8349
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_download_trace_state_variable.
8355 * target.h (struct target_ops) <to_download_trace_state_variable>:
8356 Use TARGET_DEFAULT_NORETURN.
8357
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8362 to_can_download_tracepoint.
8363 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8364 TARGET_DEFAULT_RETURN.
8365
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target-delegates.c: Rebuild.
8369 * target.c (update_current_target): Don't inherit or default
8370 to_download_tracepoint.
8371 * target.h (struct target_ops) <to_download_tracepoint>: Use
8372 TARGET_DEFAULT_NORETURN.
8373
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8378 to_trace_init.
8379 * target.h (struct target_ops) <to_trace_init>: Use
8380 TARGET_DEFAULT_RETURN.
8381
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target-delegates.c: Rebuild.
8385 * target.c (update_current_target): Don't inherit or default
8386 to_supports_string_tracing.
8387 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8388 TARGET_DEFAULT_RETURN.
8389
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_supports_enable_disable_tracepoint.
8395 * target.h (struct target_ops)
8396 <to_supports_enable_disable_tracepoint>: Use
8397 TARGET_DEFAULT_RETURN.
8398
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_supports_multi_process.
8404 * target.h (struct target_ops) <to_supports_multi_process>: Use
8405 TARGET_DEFAULT_RETURN.
8406
8407 2014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_get_ada_task_ptid.
8412 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8413 TARGET_DEFAULT_FUNC.
8414
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_thread_architecture.
8420 * target.h (struct target_ops) <to_thread_architecture>: Use
8421 TARGET_DEFAULT_FUNC.
8422
8423 2014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_execution_direction.
8428 * target.h (struct target_ops) <to_execution_direction>: Use
8429 TARGET_DEFAULT_FUNC.
8430
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_can_execute_reverse.
8436 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8437 TARGET_DEFAULT_RETURN.
8438 (target_can_execute_reverse): Unconditionally delegate.
8439
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_goto_bookmark.
8445 (dummy_goto_bookmark): Remove.
8446 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8447 * target.h (struct target_ops) <to_goto_bookmark>: Use
8448 TARGET_DEFAULT_NORETURN.
8449
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_get_bookmark.
8455 (dummy_get_bookmark): Remove.
8456 (init_dummy_target): Don't inherit or default to_get_bookmark.
8457 * target.h (struct target_ops) <to_get_bookmark>: Use
8458 TARGET_DEFAULT_NORETURN
8459
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_make_corefile_notes.
8465 (init_dummy_target): Don't initialize to_make_corefile_notes.
8466 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8467 TARGET_DEFAULT_FUNC.
8468
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_find_memory_regions.
8474 (init_dummy_target): Don't initialize to_find_memory_regions.
8475 * target.h (struct target_ops) <to_find_memory_regions>: Use
8476 TARGET_DEFAULT_FUNC.
8477
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_log_command.
8483 * target.h (struct target_ops) <to_log_command>: Use
8484 TARGET_DEFAULT_IGNORE.
8485 (target_log_command): Unconditionally delegate.
8486
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_pid_to_exec_file.
8492 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8493 TARGET_DEFAULT_RETURN.
8494
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_thread_name.
8500 (target_thread_name): Unconditionally delegate.
8501 * target.h (struct target_ops) <to_thread_name>: Use
8502 TARGET_DEFAULT_RETURN.
8503
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_extra_thread_info.
8509 * target.h (struct target_ops) <to_extra_thread_info>: Use
8510 TARGET_DEFAULT_RETURN.
8511
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8516 to_has_exited.
8517 * target.h (struct target_ops) <to_has_exited>: Use
8518 TARGET_DEFAULT_RETURN..
8519
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_set_syscall_catchpoint.
8525 (return_one): Remove.
8526 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8527 TARGET_DEFAULT_RETURN.
8528
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_insert_exec_catchpoint.
8534 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8535 TARGET_DEFAULT_RETURN.
8536
8537 2014-01-08 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_insert_exec_catchpoint.
8542 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8543 TARGET_DEFAULT_RETURN.
8544
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_remove_vfork_catchpoint.
8550 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8551 TARGET_DEFAULT_RETURN.
8552
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_insert_vfork_catchpoint.
8558 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8559 TARGET_DEFAULT_RETURN.
8560
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8565 to_remove_fork_catchpoint.
8566 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8567 TARGET_DEFAULT_RETURN.
8568
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8570
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't inherit or default
8573 to_insert_fork_catchpoint.
8574 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8575 TARGET_DEFAULT_RETURN.
8576
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_post_startup_inferior.
8582 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8583 TARGET_DEFAULT_IGNORE.
8584
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8589 to_load.
8590 * target.h (struct target_ops) <to_load>: Use
8591 TARGET_DEFAULT_NORETURN.
8592
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_terminal_info.
8598 * target.h (struct target_ops) <to_terminal_info>: Use
8599 TARGET_DEFAULT_FUNC.
8600
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8605 to_terminal_save_ours.
8606 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8607 TARGET_DEFAULT_IGNORE.
8608
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_terminal_ours.
8614 * target.h (struct target_ops) <to_terminal_ours>: Use
8615 TARGET_DEFAULT_IGNORE.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_terminal_ours_for_output.
8622 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8623 TARGET_DEFAULT_IGNORE.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_terminal_inferior.
8630 * target.h (struct target_ops) <to_terminal_inferior>: Use
8631 TARGET_DEFAULT_IGNORE.
8632
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8637 to_terminal_init.
8638 * target.h (struct target_ops) <to_terminal_init>: Use
8639 TARGET_DEFAULT_IGNORE.
8640
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_can_accel_watchpoint_condition.
8646 * target.h (struct target_ops)
8647 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8648
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_region_ok_for_hw_watchpoint.
8654 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8655 Use TARGET_DEFAULT_FUNC.
8656
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_watchpoint_addr_within_range.
8662 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8663 Use TARGET_DEFAULT_FUNC.
8664
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_remove_watchpoint.
8670 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8671 TARGET_DEFAULT_NORETURN.
8672
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_insert_watchpoint.
8678 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8679 TARGET_DEFAULT_RETURN.
8680
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_remove_hw_breakpoint.
8686 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8687 TARGET_DEFAULT_RETURN.
8688
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_insert_hw_breakpoint.
8694 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8695 TARGET_DEFAULT_RETURN.
8696
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_can_use_hw_breakpoint.
8702 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8703 TARGET_DEFAULT_RETURN.
8704
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8709 to_files_info.
8710 * target.h (struct target_ops) <to_files_info>: Use
8711 TARGET_DEFAULT_IGNORE.
8712
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target-delegates.c: Rebuild.
8716 * target.c (update_current_target): Don't inherit or default
8717 to_store.
8718 * target.h (struct target_ops) <to_store>: Use
8719 TARGET_DEFAULT_NORETURN.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target-delegates.c: Rebuild.
8724 * target.c (update_current_target): Don't inherit or default
8725 to_post_attach.
8726 * target.h (struct target_ops) <to_post_attach>: Use
8727 TARGET_DEFAULT_IGNORE.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8733 to_rcmd.
8734 (default_rcmd): New function.
8735 (do_monitor_command): Unconditionally delegate.
8736 * target.h (struct target_ops) <to_rmcd>: Use
8737 TARGET_DEFAULT_FUNC.
8738
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target-delegates.c: Rebuild.
8742 * target.c (init_dummy_target): Don't initialize to_attach.
8743 (target_attach): Unconditionally delegate.
8744 * target.h (struct target_ops) <to_attach>: Use
8745 TARGET_DEFAULT_FUNC.
8746
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target-delegates.c: Rebuild.
8750 * target.c (target_detach): Unconditionally delegate.
8751 (init_dummy_target): Don't initialize to_detach.
8752 * target.h (struct target_ops) <to_detach>: Use
8753 TARGET_DEFAULT_IGNORE.
8754
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8758 Add argument.
8759 (target_augmented_libraries_svr4_read): Add argument.
8760 * target.c (update_current_target): Update.
8761 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8762 argument.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target.h (struct target_ops) <to_call_history_range>: Add
8767 argument.
8768 * target.c (target_call_history_range): Add argument.
8769 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8770 argument.
8771 (record_btrace_call_history_from): Update.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target.h (struct target_ops) <to_call_history_from>: Add
8776 argument.
8777 * target.c (target_call_history_from): Add argument.
8778 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8779 argument.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target.h (struct target_ops) <to_call_history>: Add argument.
8784 * target.c (target_call_history): Add argument.
8785 * record-btrace.c (record_btrace_call_history): Add 'self'
8786 argument.
8787
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target.h (struct target_ops) <to_insn_history_range>: Add
8791 argument.
8792 * target.c (target_insn_history_range): Add argument.
8793 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8794 argument.
8795 (record_btrace_insn_history_from): Update.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target.h (struct target_ops) <to_insn_history_from>: Add
8800 argument.
8801 * target.c (target_insn_history_from): Add argument.
8802 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8803 argument.
8804
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target.h (struct target_ops) <to_insn_history>: Add argument.
8808 * target.c (target_insn_history): Add argument.
8809 * record-btrace.c (record_btrace_insn_history): Add 'self'
8810 argument.
8811
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target.h (struct target_ops) <to_goto_record>: Add argument.
8815 * target.c (target_goto_record): Add argument.
8816 * record-full.c (record_full_goto): Add 'self' argument.
8817 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8822 * target.c (target_goto_record_end): Add argument.
8823 * record-full.c (record_full_goto_end): Add 'self' argument.
8824 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8825
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target.h (struct target_ops) <to_goto_record_begin>: Add
8829 argument.
8830 * target.c (target_goto_record_begin): Add argument.
8831 * record-full.c (record_full_goto_begin): Add 'self' argument.
8832 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8833 argument.
8834
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target.h (struct target_ops) <to_record_is_replaying>: Add
8838 argument.
8839 * target.c (target_record_is_replaying): Add argument.
8840 * record-full.c (record_full_is_replaying): Add 'self' argument.
8841 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8842 argument.
8843 (record_btrace_xfer_partial, record_btrace_store_registers)
8844 (record_btrace_prepare_to_store, record_btrace_resume)
8845 (record_btrace_wait, record_btrace_decr_pc_after_break)
8846 (record_btrace_find_new_threads, record_btrace_thread_alive):
8847 Update.
8848
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * target.h (struct target_ops) <to_delete_record>: Add argument.
8852 * target.c (target_delete_record): Add argument.
8853 * record-full.c (record_full_delete): Add 'self' argument.
8854
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target.h (struct target_ops) <to_save_record>: Add argument.
8858 * target.c (target_save_record): Add argument.
8859 * record-full.c (record_full_save): Add 'self' argument.
8860 (record_full_save): Add 'self' argument.
8861
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target.h (struct target_ops) <to_info_record>: Add argument.
8865 * target.c (target_info_record): Add argument.
8866 * record.c (info_record_command): Add argument.
8867 * record-full.c (record_full_info): Add 'self' argument.
8868 * record-btrace.c (record_btrace_info): Add 'self' argument.
8869
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8873 * target.c (target_stop_recording): Add argument.
8874 * record.c (record_stop): Add argument.
8875 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8876 argument.
8877
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8881 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8882 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8883 argument.
8884 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8885 (_initialize_amd64_linux_nat): Use it.
8886 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8887 (_initialize_i386_linux_nat): Use it.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8892 * target.c (target_teardown_btrace): Add argument.
8893 * remote.c (remote_teardown_btrace): Add 'self' argument.
8894 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8895 argument.
8896 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8897 argument.
8898
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8902 * target.c (target_disable_btrace): Add argument.
8903 * remote.c (remote_disable_btrace): Add 'self' argument.
8904 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8905 argument.
8906 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8907 argument.
8908
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8912 * target.c (target_enable_btrace): Add argument.
8913 * remote.c (remote_enable_btrace): Add 'self' argument.
8914 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8915 argument.
8916 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8917 argument.
8918
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8922 (target_can_use_agent): Add argument.
8923 * target.c (update_current_target): Update.
8924 * remote.c (remote_can_use_agent): Add 'self' argument.
8925 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8926
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target.h (struct target_ops) <to_use_agent>: Add argument.
8930 (target_use_agent): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_use_agent): Add 'self' argument.
8933 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8934
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8938 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8939 (target_traceframe_info): Add argument.
8940 * target.c (update_current_target): Update.
8941 * remote.c (remote_traceframe_info): Add 'self' argument.
8942 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (target_static_tracepoint_markers_by_strid): Add
8947 argument.
8948 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8949 'self' argument.
8950 * target.c (update_current_target): Update.
8951 * remote.c (struct target_ops)
8952 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8953 * linux-nat.c (struct target_ops)
8954 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8959 Add argument.
8960 (target_static_tracepoint_marker_at): Add argument.
8961 * target.c (update_current_target): Update.
8962 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8963 argument.
8964
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8968 (target_set_permissions): Add argument.
8969 * target.c (update_current_target): Update.
8970 * remote.c (remote_set_permissions): Add 'self' argument.
8971 (remote_start_remote): Update.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8976 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8977 (target_get_tib_address): Add argument.
8978 * target.c (update_current_target): Update.
8979 * remote.c (remote_get_tib_address): Add 'self' argument.
8980
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8984 (target_set_trace_notes): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_set_trace_notes): Add 'self' argument.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8991 argument.
8992 (target_set_trace_buffer_size): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8999 argument.
9000 (target_set_circular_trace_buffer): Add argument.
9001 * target.c (update_current_target): Update.
9002 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9003 argument.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9008 argument.
9009 (target_set_disconnected_tracing): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target.h (struct target_ops)
9016 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9017 (target_get_min_fast_tracepoint_insn_len): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9020 argument.
9021
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9025 argument.
9026 (target_get_raw_trace_data): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9033 Add argument.
9034 (target_upload_trace_state_variables): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_upload_trace_state_variables): Add 'self'
9037 argument.
9038 (remote_start_remote): Update.
9039
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9043 argument.
9044 (target_upload_tracepoints): Add argument.
9045 * target.c (update_current_target): Update.
9046 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9047 (remote_start_remote): Update.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9052 (target_save_trace_data): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_save_trace_data): Add 'self' argument.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9059 argument.
9060 * target.h (struct target_ops)
9061 <to_get_trace_state_variable_value>: Add argument.
9062 (target_get_trace_state_variable_value): Add argument.
9063 * target.c (update_current_target): Update.
9064 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9065 argument.
9066 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9067
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9071 * target.h (struct target_ops) <to_trace_find>: Add argument.
9072 (target_trace_find): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_trace_find): Add 'self' argument.
9075 * ctf.c (ctf_trace_find): Add 'self' argument.
9076
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9080 (target_trace_stop): Add argument.
9081 * target.c (update_current_target): Update.
9082 * remote.c (remote_trace_stop): Add 'self' argument.
9083
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9087 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9088 argument.
9089 (target_get_tracepoint_status): Add argument.
9090 * target.c (update_current_target): Update.
9091 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9092
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9096 * target.h (struct target_ops) <to_get_trace_status>: Add
9097 argument.
9098 (target_get_trace_status): Add argument.
9099 * target.c (update_current_target): Update.
9100 * remote.c (remote_get_trace_status): Add 'self' argument.
9101 (remote_start_remote, remote_can_download_tracepoint): Update.
9102 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9103
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target.h (struct target_ops) <to_trace_start>: Add argument.
9107 (target_trace_start): Add argument.
9108 * target.c (update_current_target): Update.
9109 * remote.c (remote_trace_start): Add 'self' argument.
9110
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9112
9113 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9114 Add argument.
9115 (target_trace_set_readonly_regions): Add argument.
9116 * target.c (update_current_target): Update.
9117 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9118 argument.
9119
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9123 argument.
9124 (target_disable_tracepoint): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9127
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9131 argument.
9132 (target_enable_tracepoint): Add argument.
9133 * target.c (update_current_target): Update.
9134 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target.h (struct target_ops) <to_download_trace_state_variable>:
9139 Add argument.
9140 (target_download_trace_state_variable): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_download_trace_state_variable): Add 'self'
9143 argument.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9148 argument.
9149 (target_can_download_tracepoint): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9152
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target.h (struct target_ops) <to_download_tracepoint>: Add
9156 argument.
9157 (target_download_tracepoint): Add argument.
9158 * target.c (update_current_target): Update.
9159 * remote.c (remote_download_tracepoint): Add 'self' argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_trace_init>: Add argument.
9164 (target_trace_init): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_init): Add 'self' argument.
9167
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9169
9170 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9171 * target.c (target_fileio_readlink): Add argument.
9172 * remote.c (remote_hostio_readlink): Add 'self' argument.
9173 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9178 * target.c (target_fileio_unlink): Add argument.
9179 * remote.c (remote_hostio_unlink): Add 'self' argument.
9180 (remote_file_delete): Update.
9181 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9182
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9186 * target.c (target_fileio_close): Add argument.
9187 * remote.c (remote_hostio_close): Add 'self' argument.
9188 (remote_hostio_close_cleanup): Update.
9189 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9190 Update.
9191 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9192
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9196 * target.c (target_fileio_pread): Add argument.
9197 * remote.c (remote_hostio_pread): Add 'self' argument.
9198 (remote_bfd_iovec_pread, remote_file_get): Update.
9199 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9200
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9204 * target.c (target_fileio_pwrite): Add argument.
9205 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9206 (remote_file_put): Update.
9207 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9208
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9212 * target.c (target_fileio_open): Add argument.
9213 * remote.c (remote_hostio_open): Add 'self' argument.
9214 (remote_bfd_iovec_open): Add 'self' argument.
9215 (remote_file_put): Add 'self' argument.
9216 (remote_file_get): Add 'self' argument.
9217 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9222 Add argument.
9223 (target_can_run_breakpoint_commands): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9226 argument.
9227 (remote_insert_breakpoint): Add 'self' argument.
9228 (remote_insert_hw_breakpoint): Add 'self' argument.
9229 (remote_can_run_breakpoint_commands): Add 'self' argument.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target.h (struct target_ops)
9234 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9235 (target_supports_evaluation_of_breakpoint_conditions): Add
9236 argument.
9237 * target.c (update_current_target): Update.
9238 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9239 argument.
9240 (remote_insert_breakpoint): Add 'self' argument.
9241 (remote_insert_hw_breakpoint): Add 'self' argument.
9242 (remote_supports_cond_breakpoints): Add 'self' argument.
9243
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9247 argument.
9248 (target_supports_string_tracing): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target.h (struct target_ops)
9255 <to_supports_disable_randomization>: Add argument.
9256 * target.c (find_default_supports_disable_randomization): Add
9257 argument.
9258 (target_supports_disable_randomization): Add argument.
9259 (find_default_supports_disable_randomization): Add 'self'
9260 argument.
9261 * remote.c (extended_remote_supports_disable_randomization): Add
9262 'self' argument.
9263 (remote_supports_disable_randomization): Add 'self' argument.
9264 (extended_remote_create_inferior): Update.
9265 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9266 'self' argument.
9267
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target.h (struct target_ops)
9271 <to_supports_enable_disable_tracepoint>: Add argument.
9272 (target_supports_enable_disable_tracepoint): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9275 argument.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_supports_multi_process>: Add
9280 argument.
9281 (target_supports_multi_process): Add argument.
9282 * target.c (update_current_target): Update.
9283 * remote.c (remote_supports_multi_process): Add 'self' argument.
9284 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9285 argument.
9286 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9287 argument.
9288
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * target.h (struct target_ops) <to_execution_direction>: Add
9292 argument.
9293 (target_execution_direction): Add argument.
9294 * target.c (default_execution_direction): Add 'self' argument.
9295 * record-full.c (record_full_execution_direction): Add 'self'
9296 argument.
9297
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9301 argument.
9302 (target_can_execute_reverse): Add argument.
9303 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9304 * record-full.c (record_full_can_execute_reverse): Add 'self'
9305 argument.
9306 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9307 argument.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9312 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9313 argument.
9314 (target_get_ada_task_ptid): Add argument.
9315 * target.c (update_current_target): Update.
9316 (default_get_ada_task_ptid): Add 'self' argument.
9317 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9318 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9319 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9320 argument.
9321 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9322 argument.
9323 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9324 argument.
9325 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9326 argument.
9327 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9328 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9329 argument.
9330
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9334 (target_goto_bookmark): Add argument.
9335 * target.c (dummy_goto_bookmark): Add 'self' argument.
9336 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9337
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9341 (target_get_bookmark): Add argument.
9342 * target.c (dummy_get_bookmark): Add 'self' argument.
9343 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9344
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9348 argument.
9349 (target_make_corefile_notes): Add argument.
9350 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9351 * procfs.c (procfs_make_note_section): Add 'self' argument.
9352 (procfs_make_note_section): Add 'self' argument.
9353 (procfs_make_note_section): Add 'self' argument.
9354 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9355 argument.
9356 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9357 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9358 * exec.c (exec_make_note_section): Add 'self' argument.
9359 (exec_make_note_section): Add 'self' argument.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_find_memory_regions>: Add
9364 argument.
9365 (target_find_memory_regions): Add argument.
9366 * target.c (dummy_find_memory_regions): Add 'self' argument.
9367 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9368 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9369 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9370 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9371 * exec. (exec_do_find_memory_regions): New global.
9372 (exec_set_find_memory_regions): Rewrite.
9373 (exec_find_memory_regions): New function.
9374 (init_exec_ops): Use exec_find_memory_regions.
9375
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target.h (struct target_ops) <to_supports_non_stop>: Add
9379 argument.
9380 * target.c (find_default_supports_non_stop): Add argument.
9381 (target_supports_non_stop): Add argument.
9382 (find_default_supports_non_stop): Add 'self' argument.
9383 * remote.c (remote_supports_non_stop): Add 'self' argument.
9384 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9385
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target.h (struct target_ops) <to_log_command>: Add argument.
9389 (target_log_command): Add argument.
9390 * serial.h (serial_log_command): Add 'self' argument.
9391 * serial.c (serial_log_command): Add 'self' argument.
9392
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9396 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9397 argument.
9398 (target_pid_to_exec_file): Add argument.
9399 * target.c (debug_to_pid_to_exec_file): Add argument.
9400 (update_current_target): Update.
9401 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9402 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9403 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9404 (linux_handle_extended_wait): Update.
9405 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9406 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9407 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9408 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9409
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target.h (struct target_ops) <to_rcmd>: Add argument.
9413 (target_rcmd): Add argument.
9414 * target.c (debug_to_rcmd): Add argument.
9415 (update_current_target, do_monitor_command): Update.
9416 * remote.c (remote_rcmd): Add 'self' argument.
9417 * monitor.c (monitor_rcmd): Add 'self' argument.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * windows-nat.c (windows_stop): Add 'self' argument.
9422 * target.h (struct target_ops) <to_stop>: Add argument.
9423 * target.c (target_stop): Add argument.
9424 (debug_to_stop): Add argument.
9425 (update_current_target): Update.
9426 * remote.c (remote_stop): Add 'self' argument.
9427 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9428 (gdbsim_cntrl_c): Update.
9429 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9430 * procfs.c (procfs_stop): Add 'self' argument.
9431 * nto-procfs.c (procfs_stop): Add 'self' argument.
9432 * monitor.c (monitor_stop): Add 'self' argument.
9433 (monitor_open): Update.
9434 * linux-nat.c (linux_nat_stop): Add argument.
9435 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9436 * gnu-nat.c (gnu_stop): Add 'self' argument.
9437 * darwin-nat.c (darwin_stop): Add 'self' argument.
9438
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target.h (struct target_ops) <to_thread_name>: Add argument.
9442 * target.c (target_thread_name): Add argument.
9443 (update_current_target): Update.
9444 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_extra_thread_info>: Add
9449 argument.
9450 (target_extra_thread_info): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_threads_extra_info): Add 'self' argument.
9453 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9454 argument.
9455 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9456 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9457 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9458 argument.
9459 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9460 argument.
9461 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9462 argument.
9463 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9464 argument.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops) <to_program_signals>: Add argument.
9469 * target.c (target_program_signals): Add argument.
9470 * remote.c (remote_program_signals): Add 'self' argument.
9471
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9475 * target.c (target_pass_signals): Add argument.
9476 * remote.c (remote_pass_signals): Add 'self' argument.
9477 (remote_start_remote): Update.
9478 * procfs.c (procfs_pass_signals): Add 'self' argument.
9479 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9480 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9481 (linux_nat_create_inferior, linux_nat_attach): Update.
9482
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * windows-nat.c (windows_can_run): Add 'self' argument.
9486 * target.h (struct target_ops) <to_can_run>: Add argument.
9487 (target_can_run): Add argument.
9488 * target.c (debug_to_can_run): Add argument.
9489 (update_current_target): Update.
9490 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9491 * inf-child.c (inf_child_can_run): Add 'self' argument.
9492 * go32-nat.c (go32_can_run): Add 'self' argument.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_has_exited>: Add argument.
9497 (target_has_exited): Add argument.
9498 * target.c (debug_to_has_exited): Add argument.
9499 (update_current_target): Update.
9500
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9504 argument.
9505 (target_set_syscall_catchpoint): Add argument.
9506 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9507 argument.
9508 * target.c (update_current_target): Update.
9509
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9513 argument.
9514 (target_remove_exec_catchpoint): Add argument.
9515 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9516 (update_current_target): Update.
9517 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9518 argument.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9523 argument.
9524 (target_insert_exec_catchpoint): Add argument.
9525 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9526 (update_current_target): Update.
9527 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9528 argument.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9533 argument.
9534 (target_remove_vfork_catchpoint): Add argument.
9535 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9536 (update_current_target): Update.
9537 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9538 argument.
9539
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9543 argument.
9544 (target_insert_vfork_catchpoint): Add argument.
9545 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9546 (update_current_target): Update.
9547 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9548 argument.
9549
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9551
9552 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9553 argument.
9554 (target_remove_fork_catchpoint): Add argument.
9555 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9556 (update_current_target): Update.
9557 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9558 argument.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9563 argument.
9564 (target_insert_fork_catchpoint): Add argument.
9565 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9566 (update_current_target): Update.
9567 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9568 argument.
9569
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9573 argument.
9574 (target_post_startup_inferior): Add argument.
9575 * target.c (debug_to_post_startup_inferior): Add argument.
9576 (update_current_target): Update.
9577 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9578 argument.
9579 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9580 argument.
9581 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9582 argument.
9583 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9584 argument.
9585 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9586 'self' argument.
9587 (super_post_startup_inferior): Likewise.
9588 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9589 'self' argument.
9590 (super_post_startup_inferior): Likewise.
9591 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9592 Add 'self' argument.
9593 (super_post_startup_inferior): Likewise.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_load>: Add argument.
9598 * target.c (target_load): Add argument.
9599 (debug_to_load): Add argument.
9600 (update_current_target): Update.
9601 * remote.c (remote_load): Add 'self' argument.
9602 * remote-sim.c (gdbsim_load): Add 'self' argument.
9603 * remote-mips.c (mips_load): Add 'self' argument.
9604 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9605 * monitor.c (monitor_load): Add 'self' argument.
9606 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9611 (target_terminal_info): Add argument.
9612 * target.c (debug_to_terminal_info): Add argument.
9613 (default_terminal_info): Likewise.
9614 * inflow.c (child_terminal_info): Add 'self' argument.
9615 * inferior.h (child_terminal_info): Add 'self' argument.
9616 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9621 argument.
9622 (target_terminal_save_ours): Add argument.
9623 * target.c (debug_to_terminal_save_ours): Add argument.
9624 (update_current_target): Update.
9625 * inflow.c (terminal_save_ours): Add 'self' argument.
9626 * inferior.h (terminal_save_ours): Add 'self' argument.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9631 (target_terminal_ours): Add argument.
9632 * target.c (debug_to_terminal_ours): Add argument.
9633 (update_current_target): Update.
9634 * remote.c (remote_terminal_ours): Add 'self' argument.
9635 (remote_close): Update.
9636 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9637 * inflow.c (terminal_ours): Add 'self' argument.
9638 * inferior.h (terminal_ours): Add 'self' argument.
9639 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9640
9641 2014-02-19 Pedro Alves <palves@redhat.com>
9642 Tom Tromey <tromey@redhat.com>
9643
9644 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9645 argument.
9646 (target_terminal_ours_for_output): Add argument.
9647 * target.c (debug_to_terminal_ours_for_output): Add argument.
9648 (update_current_target): Update.
9649 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9650 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9651 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9652
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_terminal_inferior>: Add
9656 argument.
9657 * target.c (target_terminal_inferior): Add argument.
9658 (update_current_target): Update.
9659 * remote.c (remote_terminal_inferior): Add 'self' argument.
9660 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9661 * inflow.c (terminal_inferior): Add 'self' argument.
9662 * inferior.h (terminal_inferior): Add 'self' argument.
9663 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9664 (go32_terminal_inferior): Add 'self' argument.
9665
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9669 (target_terminal_init): Add argument.
9670 * target.c (debug_to_terminal_init): Add argument.
9671 (update_current_target): Update.
9672 * inflow.c (terminal_init_inferior): Add 'self' argument.
9673 * inferior.h (terminal_init_inferior): Add 'self' argument.
9674 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9675 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9676
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target.h (struct target_ops)
9680 <to_can_accel_watchpoint_condition>: Add argument.
9681 (target_can_accel_watchpoint_condition): Add argument.
9682 * target.c (debug_to_can_accel_watchpoint_condition): Add
9683 argument.
9684 (update_current_target): Update.
9685 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9686 'self' argument.
9687
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9691 Add argument.
9692 (target_region_ok_for_hw_watchpoint): Add argument.
9693 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9694 (default_region_ok_for_hw_watchpoint): Add argument.
9695 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9696 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9697 argument.
9698 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9699 argument.
9700 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9701 argument.
9702 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9703 'self' argument.
9704 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9705 'self' argument.
9706 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9707 'self' argument.
9708 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9709 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9710 'self' argument.
9711 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9712 Add 'self' argument.
9713
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9717 argument.
9718 (target_insert_watchpoint): Add argument.
9719 * target.c (debug_to_insert_watchpoint): Add argument.
9720 (update_current_target): Update.
9721 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9722 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9723 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9724 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9725 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9726 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9727 argument.
9728 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9729 (procfs_insert_hw_watchpoint): Add 'self' argument.
9730 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9731 argument.
9732 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9733 argument.
9734 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9735 argument.
9736 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9737 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9738 argument.
9739 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9740 'self' argument.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9745 argument.
9746 (target_remove_watchpoint): Add argument.
9747 * target.c (debug_to_remove_watchpoint): Add argument.
9748 (update_current_target): Update.
9749 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9750 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9751 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9752 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9753 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9754 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9755 argument.
9756 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9757 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9758 argument.
9759 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9760 argument.
9761 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9762 argument.
9763 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9764 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9765 argument.
9766 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9767 'self' argument.
9768
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9772 argument.
9773 (target_remove_hw_breakpoint): Add argument.
9774 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9775 (update_current_target): Update.
9776 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9777 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9778 argument.
9779 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9780 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9781 argument.
9782 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9783 'self' argument.
9784
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9786
9787 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9788 argument.
9789 (target_insert_hw_breakpoint): Add argument.
9790 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9791 (update_current_target): Update.
9792 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9793 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9794 argument.
9795 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9796 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9797 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9798 argument.
9799 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9800 'self' argument.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9805 argument.
9806 (target_can_use_hardware_watchpoint): Add argument.
9807 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9808 (update_current_target): Update.
9809 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9810 argument.
9811 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9812 argument.
9813 * remote.c (remote_check_watch_resources): Add 'self' argument.
9814 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9815 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9816 argument.
9817 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9818 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9819 argument.
9820 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9821 argument.
9822 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9823 argument.
9824 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9825 argument.
9826 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9827 argument.
9828 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9829 argument.
9830 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9831 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9832 argument.
9833 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9834 'self' argument.
9835
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target.h (struct target_ops) <to_post_attach>: Add argument.
9839 (target_post_attach): Add argument.
9840 * target.c (debug_to_post_attach): Add argument.
9841 (update_current_target): Update.
9842 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9843 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9844 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9845 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9846 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9847
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * windows-nat.c (windows_close): Add 'self' argument.
9851 * tracepoint.c (tfile_close): Add 'self' argument.
9852 * target.h (struct target_ops) <to_close>: Add argument.
9853 * target.c (target_close): Add argument.
9854 (update_current_target): Update.
9855 * remote.c (remote_close): Add 'self' argument.
9856 * remote-sim.c (gdbsim_close): Add 'self' argument.
9857 * remote-mips.c (mips_close): Add 'self' argument.
9858 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9859 * record-full.c (record_full_close): Add 'self' argument.
9860 * record-btrace.c (record_btrace_close): Add 'self' argument.
9861 * monitor.h (monitor_close): Add 'self' argument.
9862 * monitor.c (monitor_close): Add 'self' argument.
9863 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9864 * linux-nat.c (linux_nat_close): Add argument.
9865 * go32-nat.c (go32_close): Add 'self' argument.
9866 * exec.c (exec_close_1): Add 'self' argument.
9867 * ctf.c (ctf_close): Add 'self' argument.
9868 * corelow.c (core_close): Add 'self' argument.
9869 (core_close_cleanup): Update.
9870 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9871 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9872
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * remote.c (remote_load): New function.
9876 (init_remote_ops): Use it.
9877
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9881 argument.
9882 * common/linux-btrace.h (linux_supports_btrace): Update.
9883 * remote.c (remote_supports_btrace): Add "self" argument.
9884 * target-delegates.c: Rebuild.
9885 * target.c (target_supports_btrace): Remove.
9886 * target.h (struct target_ops) <to_supports_btrace>: Add
9887 target_ops argument.
9888 (target_supports_btrace): New define.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * record-full.c (record_full_beneath_to_resume_ops)
9893 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9894 (record_full_beneath_to_wait)
9895 (record_full_beneath_to_store_registers_ops)
9896 (record_full_beneath_to_store_registers)
9897 (record_full_beneath_to_xfer_partial_ops)
9898 (record_full_beneath_to_xfer_partial)
9899 (record_full_beneath_to_insert_breakpoint_ops)
9900 (record_full_beneath_to_insert_breakpoint)
9901 (record_full_beneath_to_remove_breakpoint_ops)
9902 (record_full_beneath_to_remove_breakpoint)
9903 (record_full_beneath_to_stopped_by_watchpoint)
9904 (record_full_beneath_to_stopped_data_address)
9905 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9906 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9907 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9908 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9909 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9910 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9911 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9912 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9913 (record_full_resume, record_full_wait_1)
9914 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9915 (record_full_store_registers, record_full_xfer_partial)
9916 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9917 (record_full_async, record_full_core_xfer_partial): Use target
9918 delegation.
9919 * target-delegates.c: Rebuild.
9920 * target.c (current_xfer_partial): Remove.
9921 (update_current_target): Do not INHERIT or de_fault
9922 to_insert_breakpoint, to_remove_breakpoint,
9923 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9924 to_is_async_p, to_async. Do not set to_xfer_partial field.
9925 (default_xfer_partial): Simplify.
9926 (current_xfer_partial): Remove.
9927 (target_wait, target_resume): Simplify.
9928 (find_default_can_async_p, find_default_is_async_p): Update.
9929 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9930 to_xfer_partial, to_stopped_by_watchpoint,
9931 to_stopped_data_address.
9932 (target_store_registers): Simplify.
9933 (forward_target_remove_breakpoint)
9934 (forward_target_insert_breakpoint): Remove.
9935 (target_remove_breakpoint, target_insert_breakpoint)
9936 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9937 * target.h (struct target_ops) <to_resume, to_wait,
9938 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9939 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9940 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9941 markup.
9942 (forward_target_remove_breakpoint)
9943 (forward_target_insert_breakpoint): Remove.
9944 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9945 directly.
9946 (record_btrace_insert_breakpoint): Delegate directly.
9947
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 PR build/7701:
9951 * target-delegates.c: New file.
9952 * target.c: Include target-delegates.c.
9953 (init_dummy_target): Call install_dummy_methods.
9954 (complete_target_initialization): Call install_delegators.
9955 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9956 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9957 * make-target-delegates: New file.
9958
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * record.c (find_record_target): Use find_target_at.
9962 * target.c (find_target_at): New function.
9963 * target.h (find_target_at): Declare.
9964
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9968 Add 'ops' argument.
9969 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9970 'ops' argument.
9971 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9972 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9973 'ops' argument.
9974 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9975 argument.
9976 * linux-nat.c (save_sigtrap): Update.
9977 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9978 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9979 (linux_nat_close): Update.
9980 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9981 argument.
9982 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9983 argument.
9984 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9985 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9986 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9987 (tmp_to_async): Add 'ops' argument.
9988 (record_full_stopped_by_watchpoint, record_full_async)
9989 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9990 argument.
9991 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9992 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9993 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9994 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9995 (remote_is_async_p, remote_async): Add 'ops' argument.
9996 (remote_stopped_data_address): Update.
9997 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9998 * target.c (update_current_target)
9999 (find_default_can_async_p, find_default_is_async_p): Update.
10000 (init_dummy_target): Update.
10001 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10002 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10003 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10004 (target_can_async_p, target_is_async_p, target_async)
10005 (target_stopped_by_watchpoint): Update.
10006
10007 2014-02-19 Yao Qi <yao@codesourcery.com>
10008
10009 PR gdb/16220
10010 * gdbarch.sh: Remove startup_gdbarch.
10011 * gdbarch.c: Regenerated.
10012 * gdbarch.h: Likewise.
10013
10014 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10015
10016 * rl78-tdep.c (rl78_g10_register_name): New function.
10017 (rl78_return_value): Add g10 support.
10018 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10019 g10.
10020
10021 2014-02-17 Doug Evans <xdje42@gmail.com>
10022
10023 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10024 (SUBDIR_GUILE_SRCS): Ditto.
10025 (scm-gsmob.o): Ditto.
10026
10027 2014-02-17 Yao Qi <yao@codesourcery.com>
10028
10029 * gnu-nat.c (ILL_RPC): Declare defined function.
10030
10031 2014-02-17 Yao Qi <yao@codesourcery.com>
10032
10033 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10034 mach_msg_type_number_t.
10035 (gnu_write_inferior): Likewise.
10036
10037 2014-02-17 Yao Qi <yao@codesourcery.com>
10038
10039 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10040 in format string.
10041 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10042 (inf_validate_procs, inf_signal): Likewise.
10043 (S_exception_raise_request): Likewise.
10044 (do_mach_notify_dead_name): Likewise.
10045 (steal_exc_port): Likewise.
10046 (gnu_read_inferior): Change 'copy_count''s type to
10047 mach_msg_type_number_t.
10048 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10049 format string.
10050
10051 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10052
10053 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10054 flag. Adjust all users; in particular...
10055 (gnu_wait): ..., don't decrement its value in here...
10056 (gnu_create_inferior): ..., and instead set the flag in here,
10057 around the startup_inferior call, and call that one with
10058 START_INFERIOR_TRAPS_EXPECTED.
10059
10060 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10061 (ILL_RPC): ... new macro.
10062 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10063 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10064 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10065 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10066 functions with ILL_RPC macro.
10067 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10068 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10069 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10070 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10071 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10072 (S_proc_getlogin_reply, S_proc_getsid_reply)
10073 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10074 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10075 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10076 (S_proc_getnports_reply, S_proc_is_important_reply)
10077 (S_proc_get_code_reply): New stub functions, generated with
10078 ILL_RPC macro.
10079
10080 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10081 collected the type check structures.
10082
10083 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10084
10085 2014-02-14 Doug Evans <dje@google.com>
10086
10087 * target.c (target_write_partial): Fix result type.
10088
10089 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10090
10091 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10092 the proper offsets to access fpregset_t.
10093
10094 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10095
10096 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10097 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10098 * h8300-tdep.c (setmachinelist): Remove global.
10099 * hppa-tdep.c (hppa_sigtramp): Remove global.
10100 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10101 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10102 * ravenscar-thread.c (update_target_observer): Remove global.
10103 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10104
10105 2014-02-12 Tom Tromey <tromey@redhat.com>
10106
10107 * common/rsp-low.c: Update comments.
10108 * common/rsp-low.h: Update comments.
10109
10110 2014-02-12 Tom Tromey <tromey@redhat.com>
10111
10112 * common/rsp-low.c (convert_ascii_to_int): Remove.
10113 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10114
10115 2014-02-12 Tom Tromey <tromey@redhat.com>
10116
10117 * common/rsp-low.h (unhexify): Don't declare.
10118 * common/rsp-low.c (unhexify): Remove.
10119
10120 2014-02-12 Tom Tromey <tromey@redhat.com>
10121
10122 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10123 * common/rsp-low.c (convert_int_to_ascii): Remove.
10124
10125 2014-02-12 Tom Tromey <tromey@redhat.com>
10126
10127 * common/rsp-low.h (hexify): Don't declare.
10128 * common/rsp-low.c (hexify): Remove.
10129
10130 2014-02-12 Tom Tromey <tromey@redhat.com>
10131
10132 * common/rsp-low.c (hexify): Never take strlen of argument.
10133
10134 2014-02-12 Tom Tromey <tromey@redhat.com>
10135
10136 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10137 * remote.c (extended_remote_run, remote_rcmd)
10138 (remote_download_trace_state_variable, remote_save_trace_data)
10139 (remote_set_trace_notes): Update.
10140 * tracepoint.c (encode_source_string, tfile_write_status)
10141 (tfile_write_uploaded_tsv): Update.
10142
10143 2014-02-12 Tom Tromey <tromey@redhat.com>
10144
10145 * tracepoint.c: Include rsp-low.h.
10146 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10147 * remote.c: Include rsp-low.h.
10148 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10149 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10150 (remote_unescape_input): Move to common/rsp-low.c.
10151 * common/rsp-low.h: New file.
10152 * common/rsp-low.c: New file.
10153 * Makefile.in (SFILES): Add common/rsp-low.c.
10154 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10155 (COMMON_OBS): Add rsp-low.o.
10156 (rsp-low.o): New target.
10157
10158 2014-02-12 Tom Tromey <tromey@redhat.com>
10159
10160 * utils.h: Include print-utils.h.
10161 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10162 (int_string, core_addr_to_string, core_addr_to_string_nz)
10163 (hex_string, hex_string_custom): Don't declare.
10164 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10165 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10166 (hex_string_custom, int_string, core_addr_to_string)
10167 (core_addr_to_string_nz, host_address_to_string): Move to
10168 common/print-utils.c.
10169 * common/print-utils.h: New file.
10170 * common/print-utils.c: New file
10171 * Makefile.in (SFILES): Add common/print-utils.c.
10172 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10173 (COMMON_OBS): Add print-utils.o.
10174 (print-utils.o): New target.
10175
10176 2014-02-12 Tom Tromey <tromey@redhat.com>
10177
10178 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10179
10180 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10181
10182 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10183
10184 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10185
10186 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10187 if a PT_IO ptrace request returns sucessfully but indicates that 0
10188 bytes were transferred.
10189
10190 2014-02-12 Pedro Alves <palves@redhat.com>
10191 Kevin Buettner <kevinb@redhat.com>
10192
10193 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10194 TYPE_INSTANCE_FLAG_CODE_SPACE.
10195
10196 2014-02-12 Pedro Alves <palves@redhat.com>
10197
10198 * h8300-tdep.c (pseudo_from_raw_register)
10199 (raw_from_pseudo_register): New functions.
10200 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10201 them.
10202
10203 2014-02-12 Pedro Alves <palves@redhat.com>
10204
10205 * h8300-tdep.c (h8300_register_sim_regno): New function.
10206 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10207 gdbarch_register_sim_regno hook.
10208
10209 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10210
10211 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10212
10213 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10214
10215 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10216
10217 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10218
10219 * obsd-tdep.h (obsd_init_abi): New prototype.
10220 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10221 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10222 (obsd_init_abi): New functions.
10223 * i386obsd-tdep.c: Include "obsd-tdep.h".
10224 (i386obsd_init_abi): Call obsd_init_abi.
10225 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10226 (amd64obsd_init_abi): Call obsd_init_abi.
10227 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10228 obsd-tdep.c to gdb_target_obs.
10229
10230 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10231
10232 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10233 double float arguments to 16-byte in the argument slots.
10234
10235 2014-02-11 Doug Evans <xdje42@gmail.com>
10236
10237 * configure.ac: Don't crash if pkg-config is not found and guile
10238 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10239 in guile checks.
10240 * configure: Regenerate.
10241
10242 2014-02-11 Yao Qi <yao@codesourcery.com>
10243
10244 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10245 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10246 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10247 * gnu-nat.c (gnu_xfer_memory): Likewise.
10248 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10249 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10250 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10251 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10252
10253 2014-02-11 Yao Qi <yao@codesourcery.com>
10254
10255 * target.h (enum target_xfer_error): Rename to ...
10256 (enum target_xfer_status): ... it. New. All users updated.
10257 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10258 New.
10259 (TARGET_XFER_STATUS_ERROR_P): New macro.
10260 (target_xfer_error_to_string): Remove declaration.
10261 (target_xfer_status_to_string): Declare.
10262 (target_xfer_partial_ftype): Adjust it.
10263 (struct target_ops) <to_xfer_partial>: Return
10264 target_xfer_status. Add argument xfered_len. Update
10265 comments.
10266 * target.c (target_xfer_error_to_string): Rename to ...
10267 (target_xfer_status_to_string): ... it. New. All callers
10268 updated.
10269 (target_read_live_memory): Likewise. Call target_xfer_partial
10270 instead of target_read.
10271 (memory_xfer_live_readonly_partial): Return
10272 target_xfer_status. Add argument xfered_len.
10273 (raw_memory_xfer_partial): Likewise.
10274 (memory_xfer_partial_1): Likewise.
10275 (memory_xfer_partial): Likewise.
10276 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10277 properly. Update debug message.
10278 (default_xfer_partial, current_xfer_partial): Likewise.
10279 (target_write_partial): Likewise.
10280 (target_read_partial): Likewise. All callers updated.
10281 (read_whatever_is_readable): Likewise.
10282 (target_write_with_progress): Likewise.
10283 (target_read_alloc_1): Likewise.
10284
10285 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10286 * auxv.c (procfs_xfer_auxv): Likewise.
10287 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10288 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10289 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10290 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10291 * corefile.c (read_memory): Adjust.
10292 * corelow.c (core_xfer_partial): Likewise.
10293 * ctf.c (ctf_xfer_partial): Likewise.
10294 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10295 updated.
10296 (darwin_xfer_partial): Likewise.
10297 * exec.c (section_table_xfer_memory_partial): Likewise. All
10298 callers updated.
10299 (exec_xfer_partial): Likewise.
10300 * exec.h (section_table_xfer_memory_partial): Update
10301 declaration.
10302 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10303 negative.
10304 (gnu_xfer_partial): Likewise.
10305 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10306 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10307 (ia64_hpux_xfer_solib_got): Likewise.
10308 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10309 type of 'partial_len' to ULONGEST.
10310 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10311 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10312 (linux_nat_xfer_partial): Likewise.
10313 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10314 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10315 * monitor.c (monitor_xfer_memory): Likewise.
10316 (monitor_xfer_partial): Likewise.
10317 * procfs.c (procfs_xfer_partial): Likewise.
10318 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10319 * record-full.c (record_full_xfer_partial): Likewise.
10320 (record_full_core_xfer_partial): Likewise.
10321 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10322 (gdbsim_xfer_partial): Likewise.
10323 * remote.c (remote_write_bytes_aux): Likewise. All callers
10324 updated.
10325 (remote_write_bytes, remote_read_bytes): Likewise. All
10326 callers updated.
10327 (remote_flash_erase): Likewise. All callers updated.
10328 (remote_write_qxfer): Likewise. All callers updated.
10329 (remote_read_qxfer): Likewise. All callers updated.
10330 (remote_xfer_partial): Likewise.
10331 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10332 (rs6000_xfer_shared_libraries): Likewise.
10333 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10334 (sol_thread_xfer_partial): Likewise.
10335 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10336 (sparc_xfer_partial): Likewise.
10337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10338 updated.
10339 (spu_xfer_partial): Likewise.
10340 * spu-multiarch.c (spu_xfer_partial): Likewise.
10341 * tracepoint.c (tfile_xfer_partial): Likewise.
10342 * windows-nat.c (windows_xfer_memory): Likewise.
10343 (windows_xfer_shared_libraries): Likewise.
10344 (windows_xfer_partial): Likewise.
10345 * valprint.c: Replace 'target_xfer_error' with
10346 'target_xfer_status' in comments.
10347
10348 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10349
10350 Checked in by Joel Brobecker <brobecker@adacore.com>.
10351 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10352
10353 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10354
10355 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10356 function parameters.
10357
10358 2014-02-10 Will Newton <will.newton@linaro.org>
10359
10360 * elfread.c (elf_rel_plt_read): Look for a .got section if
10361 looking up .got.plt fails.
10362 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10363 on address passed to elf_gnu_ifunc_record_cache.
10364 (elf_gnu_ifunc_resolve_addr): Likewise.
10365 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10366
10367 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10368
10369 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10370 (X_RETTURN): New macro.
10371 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10372
10373 * sparc64-tdep.c (sparc64_init_abi): Hook
10374 sparc_in_function_epilogue_p.
10375
10376 2014-02-10 Gary Benson <gbenson@redhat.com>
10377
10378 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10379 Rename name_matcher to symbol_matcher.
10380
10381 2014-02-10 Gary Benson <gbenson@redhat.com>
10382
10383 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10384 Use expand_symtabs_file_matcher_ftype and
10385 expand_symtabs_symbol_matcher_ftype.
10386
10387 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10388
10389 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10390 (struct ada_symbol_cache): New.
10391 (ada_free_symbol_cache): Forward declare.
10392 (struct ada_pspace_data): New.
10393 (ada_pspace_data_handle): New static global.
10394 (get_ada_pspace_data, ada_pspace_data_cleanup)
10395 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10396 (cache_space, cache): Delete, now folded inside struct
10397 ada_pspace_data.
10398 (ada_get_symbol_cache): New function.
10399 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10400 implementation.
10401 (_initialize_ada_language): Remove initialization of cache_space.
10402 Move call to observer_attach_inferior_exit up, grouping it
10403 with the other observer registrations inside this function.
10404 Rename command to be more general. Add call to
10405 register_program_space_data_with_cleanup.
10406
10407 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10408
10409 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10410 ada_new_objfile_observer.
10411 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10412 (_initialize_tasks): Update uses of ada_new_objfile_observer
10413 and ada_tasks_normal_stop_observer.
10414
10415 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10416
10417 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10418 returned by the 'Length attribute to integer.
10419
10420 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10421
10422 * ada-lang.c (_initialize_ada_language): Initialize
10423 cache_space obstack.
10424
10425 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10426
10427 * ada-lang.c (HASH_SIZE): New macro.
10428 (struct cache_entry): New type.
10429 (cache_space, cache): New static globals.
10430 (ada_clear_symbol_cache, find_entry): New functions.
10431 (lookup_cached_symbol, cache_symbol): Implement.
10432 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10433 (_initialize_ada_language): Attach ada_new_objfile_observer
10434 and ada_free_objfile_observer.
10435
10436 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10437
10438 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10439 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10440 struct block * parameter.
10441 (ada_lookup_symbol_list_worker): Constify local variable "block".
10442 Remove cast which is no longer necessary.
10443
10444 2014-02-10 Doug Evans <xdje42@gmail.com>
10445
10446 Add Guile as an extension language.
10447 * NEWS: Mention Guile scripting.
10448 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10449 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10450 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10451 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10452 (CLIBS): Add GUILE_LIBS.
10453 (install-guile): New rule.
10454 (guile.o): New rule.
10455 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10456 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10457 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10458 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10459 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10460 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10461 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10462 * configure.ac: New option --with-guile.
10463 * configure: Regenerate.
10464 * config.in: Regenerate.
10465 * auto-load.c: Remove #include "python/python.h". Add #include
10466 "gdb/section-scripts.h".
10467 (source_section_scripts): Handle Guile scripts.
10468 (_initialize_auto_load): Add name of Guile objfile script to
10469 scripts-directory help text.
10470 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10471 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10472 (struct breakpoint): New member scm_bp_object.
10473 * defs.h (enum command_control_type): New value guile_control.
10474 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10475 "extension.h".
10476 (show_user): Update comment.
10477 (_initialize_cli_cmds): Update help text for "show user". Update help
10478 text for max-user-call-depth.
10479 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10480 "extension.h".
10481 (multi_line_command_p): Add guile_control.
10482 (print_command_lines): Handle guile_control.
10483 (execute_control_command, recurse_read_control_structure): Ditto.
10484 (process_next_line): Recognize "guile" commands.
10485 * disasm.c (gdb_disassemble_info): Make non-static.
10486 * disasm.h: #include "dis-asm.h".
10487 (struct gdbarch): Add forward decl.
10488 (gdb_disassemble_info): Declare.
10489 * extension.c: #include "guile/guile.h".
10490 (extension_languages): Add guile.
10491 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10492 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10493 * gdbtypes.c (get_unsigned_type_max): New function.
10494 (get_signed_type_minmax): New function.
10495 * gdbtypes.h (get_unsigned_type_max): Declare.
10496 (get_signed_type_minmax): Declare.
10497 * guile/README: New file.
10498 * guile/guile-internal.h: New file.
10499 * guile/guile.c: New file.
10500 * guile/guile.h: New file.
10501 * guile/scm-arch.c: New file.
10502 * guile/scm-auto-load.c: New file.
10503 * guile/scm-block.c: New file.
10504 * guile/scm-breakpoint.c: New file.
10505 * guile/scm-disasm.c: New file.
10506 * guile/scm-exception.c: New file.
10507 * guile/scm-frame.c: New file.
10508 * guile/scm-gsmob.c: New file.
10509 * guile/scm-iterator.c: New file.
10510 * guile/scm-lazy-string.c: New file.
10511 * guile/scm-math.c: New file.
10512 * guile/scm-objfile.c: New file.
10513 * guile/scm-ports.c: New file.
10514 * guile/scm-pretty-print.c: New file.
10515 * guile/scm-safe-call.c: New file.
10516 * guile/scm-string.c: New file.
10517 * guile/scm-symbol.c: New file.
10518 * guile/scm-symtab.c: New file.
10519 * guile/scm-type.c: New file.
10520 * guile/scm-utils.c: New file.
10521 * guile/scm-value.c: New file.
10522 * guile/lib/gdb.scm: New file.
10523 * guile/lib/gdb/boot.scm: New file.
10524 * guile/lib/gdb/experimental.scm: New file.
10525 * guile/lib/gdb/init.scm: New file.
10526 * guile/lib/gdb/iterator.scm: New file.
10527 * guile/lib/gdb/printing.scm: New file.
10528 * guile/lib/gdb/types.scm: New file.
10529 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10530 (VPATH): Add $(GUILE_SRCDIR).
10531 (GUILE_DIR): New variable.
10532 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10533 (all): Add stamp-guile dependency.
10534 (stamp-guile): New rule.
10535 (clean-guile, install-guile, uninstall-guile): New rules.
10536 (install-only): Add install-guile dependency.
10537 (uninstall): Add uninstall-guile dependency.
10538 (clean): Add clean-guile dependency.
10539
10540 2014-02-09 Doug Evans <xdje42@gmail.com>
10541
10542 Revert this patch (which I approved, mea culpa).
10543
10544 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10545
10546 * Makefile.in (all-lib): Remove.
10547 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10548
10549 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 Fix Python stack corruption.
10552 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10553 gdb_py_longest.
10554
10555 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10556
10557 * Makefile.in (all-lib): Remove.
10558 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10559
10560 2014-02-07 Doug Evans <dje@google.com>
10561
10562 * extension-priv.h (extension_language_script_ops): Add comment.
10563 (extension_language_ops): Add comment.
10564 (active_ext_lang_state): Fix typo in comment.
10565
10566 2014-02-07 Pedro Alves <palves@redhat.com>
10567
10568 PR breakpoints/16292
10569 * infrun.c (handle_signal_stop) <signal arrives while stepping
10570 over a breakpoint>: Switch back to the stepping thread.
10571
10572 2014-02-07 Yao Qi <yao@codesourcery.com>
10573
10574 * target.c (target_xfer_partial): Return zero if LEN is zero.
10575
10576 2014-02-07 Yao Qi <yao@codesourcery.com>
10577
10578 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10579 (ld_so_xfer_auxv): Likewise.
10580 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10581 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10582 * corelow.c (core_xfer_partial): Likewise.
10583 * ctf.c (ctf_xfer_partial): Likewise.
10584 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10585 (darwin_xfer_partial): Likewise.
10586 * exec.c (exec_xfer_partial): Likewise.
10587 * gnu-nat.c (gnu_xfer_partial): Likewise.
10588 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10589 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10590 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10591 * linux-nat.c (linux_xfer_siginfo): Likewise.
10592 (linux_proc_xfer_spu): Likewise.
10593 * procfs.c (procfs_xfer_partial): Likewise.
10594 * record-full.c (record_full_xfer_partial): Likewise.
10595 (record_full_core_xfer_partial): Likewise.
10596 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10597 * remote.c (remote_write_qxfer): Likewise.
10598 (remote_write_qxfer, remote_read_qxfer): Likewise.
10599 (remote_xfer_partial): Likewise.
10600 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10601 (rs6000_xfer_shared_libraries): Likewise.
10602 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10603 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10604 (spu_xfer_partial): Likewise.
10605 * target.c (memory_xfer_partial_1): Likewise.
10606 * tracepoint.c (tfile_xfer_partial): Likewise.
10607 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10608 (windows_xfer_partial): Likewise.
10609
10610 2014-02-07 Yao Qi <yao@codesourcery.com>
10611
10612 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10613 comments.
10614 (core_xfer_shared_libraries_aix): Likewise.
10615 * gdbarch.c, gdbarch.h: Regenerated.
10616 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10617 ULONGEST. Change 'len_avail' type to ULONGEST.
10618 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10619 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10620 declaration.
10621 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10622
10623 2014-02-07 Yao Qi <yao@codesourcery.com>
10624
10625 * corefile.c (memory_error): Get 'exception' from ERR and pass
10626 'exception' to throw_error.
10627
10628 2014-02-06 Doug Evans <xdje42@gmail.com>
10629
10630 * configure.ac (libpython checking): Remove all but python.o from
10631 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10632 * configure: Regenerate.
10633
10634 * Makefile.in (SFILES): Add extension.c.
10635 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10636 (COMMON_OBS): Add extension.o.
10637 * extension.h: New file.
10638 * extension-priv.h: New file.
10639 * extension.c: New file.
10640
10641 * python/python-internal.h: #include "extension.h".
10642 (gdbpy_auto_load_enabled): Declare.
10643 (gdbpy_apply_val_pretty_printer): Declare.
10644 (gdbpy_apply_frame_filter): Declare.
10645 (gdbpy_preserve_values): Declare.
10646 (gdbpy_breakpoint_cond_says_stop): Declare.
10647 (gdbpy_breakpoint_has_cond): Declare.
10648 (void source_python_script_for_objfile): Delete.
10649 * python/python.c: #include "extension-priv.h".
10650 Delete inclusion of "observer.h".
10651 (extension_language_python): Moved here and renamed from
10652 script_language_python in py-auto-load.c.
10653 Redefined to be of type extension_language_defn.
10654 (python_extension_script_ops): New global.
10655 (python_extension_ops): New global.
10656 (struct python_env): New member previous_active.
10657 (restore_python_env): Call restore_active_ext_lang.
10658 (ensure_python_env): Call set_active_ext_lang.
10659 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10660 New arg extlang.
10661 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10662 New arg extlang.
10663 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10664 New arg extlang.
10665 (gdbpy_eval_from_control_command): Renamed from
10666 eval_python_from_control_command, made static. New arg extlang.
10667 (gdbpy_source_script) Renamed from source_python_script, made static.
10668 New arg extlang.
10669 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10670 result to int. New arg extlang.
10671 (gdbpy_source_objfile_script): Renamed from
10672 source_python_script_for_objfile, made static. New arg extlang.
10673 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10674 static. New args extlang, extlang_printers. Change result type to
10675 "void".
10676 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10677 static. New arg extlang. Rename arg printers to extlang_printers
10678 and change type to ext_lang_type_printers *.
10679 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10680 static. Replace argument arg with extlang, extlang_printers.
10681 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10682 (!HAVE_PYTHON, source_python_script): Delete.
10683 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10684 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10685 (!HAVE_PYTHON, start_type_printers): Delete.
10686 (!HAVE_PYTHON, apply_type_printers): Delete.
10687 (!HAVE_PYTHON, free_type_printers): Delete.
10688 (_initialize_python): Delete call to observer_attach_before_prompt.
10689 (finalize_python): Set/restore active extension language.
10690 (gdbpy_finish_initialization) Renamed from
10691 finish_python_initialization, made static. New arg extlang.
10692 (gdbpy_initialized): New function.
10693 * python/python.h: #include "extension.h". Delete #include
10694 "value.h", "mi/mi-cmds.h".
10695 (extension_language_python): Declare.
10696 (GDBPY_AUTO_FILE_NAME): Delete.
10697 (enum py_bt_status): Moved to extension.h and renamed to
10698 ext_lang_bt_status.
10699 (enum frame_filter_flags): Moved to extension.h.
10700 (enum py_frame_args): Moved to extension.h and renamed to
10701 ext_lang_frame_args.
10702 (finish_python_initialization): Delete.
10703 (eval_python_from_control_command): Delete.
10704 (source_python_script): Delete.
10705 (apply_val_pretty_printer): Delete.
10706 (apply_frame_filter): Delete.
10707 (preserve_python_values): Delete.
10708 (gdbpy_script_language_defn): Delete.
10709 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10710 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10711
10712 * auto-load.c: #include "extension.h".
10713 (GDB_AUTO_FILE_NAME): Delete.
10714 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10715 (script_language_gdb): Delete, moved to extension.c and renamed to
10716 extension_language_gdb.
10717 (source_gdb_script_for_objfile): Delete.
10718 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10719 (loaded_script): Change type of language member to
10720 struct extension_language_defn *.
10721 (init_loaded_scripts_info): Initialize
10722 unsupported_script_warning_printed.
10723 (maybe_add_script): Make static. Change type of language arg to
10724 struct extension_language_defn *.
10725 (clear_section_scripts): Reset unsupported_script_warning_printed.
10726 (auto_load_objfile_script_1): Rewrite to use extension language API.
10727 (auto_load_objfile_script): Make public. Remove support-compiled-in
10728 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10729 (source_section_scripts): Rewrite to use extension language API.
10730 (load_auto_scripts_for_objfile): Rewrite to use
10731 auto_load_scripts_for_objfile.
10732 (collect_matching_scripts_data): Change type of language member to
10733 struct extension_language_defn *.
10734 (auto_load_info_scripts): Change type of language arg to
10735 struct extension_language_defn *.
10736 (unsupported_script_warning_print): New function.
10737 (script_not_found_warning_print): Make static.
10738 (_initialize_auto_load): Rewrite construction of scripts-directory
10739 help.
10740 * auto-load.h (struct objfile): Add forward decl.
10741 (struct script_language): Delete.
10742 (struct auto_load_pspace_info): Add forward decl.
10743 (struct extension_language_defn): Add forward decl.
10744 (maybe_add_script): Delete.
10745 (auto_load_objfile_script): Declare.
10746 (script_not_found_warning_print): Delete.
10747 (auto_load_info_scripts): Update prototype.
10748 (auto_load_gdb_scripts_enabled): Declare.
10749 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10750 auto_load_python_scripts_enabled and made public.
10751 (script_language_python): Delete, moved to python.c.
10752 (gdbpy_script_language_defn): Delete.
10753 (info_auto_load_python_scripts): Update to use
10754 extension_language_python.
10755
10756 * breakpoint.c (condition_command): Replace call to
10757 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10758 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10759 with call to breakpoint_ext_lang_cond_says_stop.
10760 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10761 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10762 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10763 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10764 New arg slang.
10765 (local_setattro): Print name of extension language with existing
10766 stop condition.
10767
10768 * valprint.c (val_print, value_print): Update to call
10769 apply_ext_lang_val_pretty_printer.
10770 * cp-valprint.c (cp_print_value): Update call to
10771 apply_ext_lang_val_pretty_printer.
10772 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10773 (gdbpy_apply_val_pretty_printer): Renamed from
10774 apply_val_pretty_printer. New arg extlang.
10775 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10776
10777 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10778 extension language API.
10779 * cli/cli-script.c (execute_control_command): Update to call
10780 eval_ext_lang_from_control_command.
10781
10782 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10783 enum ext_lang_bt_status values. Update call to
10784 apply_ext_lang_frame_filter.
10785 (mi_cmd_stack_list_locals): Ditto.
10786 (mi_cmd_stack_list_args): Ditto.
10787 (mi_cmd_stack_list_variables): Ditto.
10788 * mi/mi-main.c: Delete #include "python/python-internal.h".
10789 Add #include "extension.h".
10790 (mi_cmd_list_features): Replace reference to python internal variable
10791 gdb_python_initialized with call to ext_lang_initialized_p.
10792
10793 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10794 Update to use enum ext_lang_frame_args. Update to call
10795 apply_ext_lang_frame_filter.
10796 * python/py-framefilter.c (extract_sym): Update to use enum
10797 ext_lang_bt_status.
10798 (extract_value, py_print_type, py_print_value): Ditto.
10799 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10800 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10801 (py_print_frame): Ditto.
10802 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10803 New arg extlang. Update to use enum ext_lang_bt_status.
10804
10805 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10806 finish_python_initialization. Replace with call to
10807 finish_ext_lang_initialization.
10808
10809 * typeprint.c (do_free_global_table): Update to call
10810 free_ext_lang_type_printers.
10811 (create_global_typedef_table): Update to call
10812 start_ext_lang_type_printers.
10813 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10814 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10815 (type_print_options): Change type of global_printers from "void *"
10816 to "struct ext_lang_type_printers *".
10817
10818 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10819 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10820 (gdbpy_preserve_values): Renamed from preserve_python_values.
10821 New arg extlang.
10822 (!HAVE_PYTHON, preserve_python_values): Delete.
10823
10824 * utils.c (quit_flag): Delete, moved to extension.c.
10825 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10826 extension.c.
10827
10828 * eval.c: Delete #include "python/python.h".
10829 * main.c: Delete #include "python/python.h".
10830
10831 * defs.h: Update comment.
10832
10833 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10834
10835 GDB 7.7 released.
10836
10837 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10838
10839 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10840 defined.
10841
10842 2014-02-05 Yao Qi <yao@codesourcery.com>
10843
10844 * remote.c (remote_pass_signals): Remove local 'buf' and use
10845 rs->buf.
10846 (remote_program_signals): Likewise.
10847
10848 2014-02-05 Yao Qi <yao@codesourcery.com>
10849
10850 * ctf.c: Include "inferior.h" and "gdbthread.h".
10851 (CTF_PID): A new macro.
10852 (ctf_open): Call inferior_appeared and add_thread_silent.
10853 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10854 (ctf_thread_alive): New function.
10855 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10856
10857 2014-02-05 Yao Qi <yao@codesourcery.com>
10858
10859 Revert this patch:
10860
10861 2013-05-24 Yao Qi <yao@codesourcery.com>
10862
10863 * tracepoint.c (TFILE_PID): Remove.
10864 (tfile_open): Don't add thread and inferior.
10865 (tfile_close): Don't set 'inferior_ptid'. Don't call
10866 exit_inferior_silent.
10867 (tfile_thread_alive): Remove.
10868 (init_tfile_ops): Don't set field 'to_thread_alive' of
10869 tfile_ops.
10870
10871 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10872
10873 * remote.c (remote_start_remote): Call remote_check_symbols even
10874 if only symbol-file (not file) has been given.
10875
10876 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10877
10878 * gdbarch.sh (skip_entrypoint): New callback.
10879 * gdbarch.c, gdbarch.h: Regenerate.
10880 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10881 * infrun.c (fill_in_stop_func): Likewise.
10882 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10883 (ppc_elfv2_elf_make_msymbol_special): New function.
10884 (ppc_elfv2_skip_entrypoint): Likewise.
10885 (ppc_linux_init_abi): Install them for ELFv2.
10886
10887 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10888
10889 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10890 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10891 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10892 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10893 structures returned in GPRs.
10894
10895 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10896
10897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10898 offset to the stack parameter list for the ELFv2 ABI.
10899
10900 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10901
10902 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10903 set_gdbarch_convert_from_func_ptr_addr and
10904 set_gdbarch_elf_make_msymbol_special for ELFv1.
10905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10906 function descriptors on ELFv1.
10907 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10908 set up r12 at function entry.
10909
10910 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10911
10912 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10913 (struct gdbarch_tdep): New member elf_abi.
10914
10915 * rs6000-tdep.c: Include "elf/ppc64.h".
10916 (rs6000_gdbarch_init): Detect ELF ABI version.
10917
10918 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10919
10920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10921 within a register pair holding a DFP 128-bit value on little-endian.
10922 (ppc64_sysv_abi_return_value_base): Likewise.
10923 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10924 (dfp_pseudo_register_write): Likewise.
10925
10926 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10927
10928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10929 offset on little-endian when passing _Decimal32.
10930 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10931
10932 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10933
10934 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10935 of the overlapped FP register within the VSX register on little-
10936 endian platforms.
10937 (efpr_pseudo_register_write): Likewise.
10938
10939 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10940
10941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10942 offset on little-endian when passing small structures.
10943
10944 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10945
10946 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10947 (struct ppc64_sysv_argpos): New data structure.
10948 (ppc64_sysv_abi_push_float): Remove.
10949 (ppc64_sysv_abi_push_val): New function.
10950 (ppc64_sysv_abi_push_integer): Likewise.
10951 (ppc64_sysv_abi_push_freg): Likewise.
10952 (ppc64_sysv_abi_push_vreg): Likewise.
10953 (ppc64_sysv_abi_push_param): Likewise.
10954 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10955 (ppc64_sysv_abi_return_value_base): New function.
10956 (ppc64_sysv_abi_return_value): Refactor to use it.
10957
10958 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10959
10960 * NEWS: Document new target powerpc64le-*-linux*.
10961
10962 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10963
10964 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10965 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10966 core dumps.
10967 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10968 register set used in ELF core dumps. Add floating-point register set.
10969
10970 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10971
10972 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10973 dwarf2_to_gdb[] table using symbolic constants. Adjust
10974 penultimate entry from number representing the PC register
10975 to symbolic constant representing the MDR register. Add
10976 constant for the PC register to the end of the table.
10977
10978 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10979
10980 * bsd-kvm.c: Include <sys/param.h>
10981
10982 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10983
10984 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10985
10986 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10987
10988 * ada-lang.h (clear_ada_sym_cache): Delete.
10989
10990 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10991
10992 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10993
10994 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10995
10996 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10997 the sigreturn register save area only if the syscall is
10998 sigreturn.
10999
11000 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11001
11002 * valops.c (value_slice): Minor reformatting.
11003
11004 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11005
11006 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11007
11008 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11009
11010 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11011 New static globals.
11012 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11013 (ada_ignore_descriptive_types_p): New static global.
11014 (find_parallel_type_by_descriptive_type): Return immediately
11015 if ada_ignore_descriptive_types_p is set.
11016 (_initialize_ada_language): Register new commands "maintenance
11017 set ada", "maintenance show ada", "maintenance set ada
11018 ignore-descriptive-types" and "maintenance show ada
11019 ignore-descriptive-types".
11020 * NEWS: Add entry for new "maint ada set/show
11021 ignore-descriptive-types" commands.
11022
11023 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11024
11025 * record-btrace.c (record_btrace_close): Call btrace_teardown
11026 for all threads.
11027
11028 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11029
11030 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11031 "ui-out.h".
11032
11033 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11034
11035 * ada-typeprint (type_is_full_subrange_of_target_type):
11036 New function.
11037 (print_range): Add parameter bounds_prefered_p. If not set,
11038 try printing range types using the name of their base type.
11039 (print_range_type): Add parameter bounds_prefered_p.
11040 Use it in call to print_range.
11041 (print_array_type, ada_print_type): Update calls to print_range
11042 and print_range_type.
11043
11044 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11045
11046 * ada-typeprint.c (print_array_type, print_choices, print_range)
11047 (print_range_bound, print_dynamic_range_bound, print_range_type):
11048 Remove declaration.
11049
11050 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11051
11052 * ada-typeprint.c (print_range): Add missing empty line
11053 after local declaration.
11054
11055 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11056
11057 * ada-valprint.c (print_optional_low_bound): Get index_type's
11058 target type for as long as it is a TYPE_CODE_RANGE.
11059
11060 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11061
11062 * procfs.c (procfs_make_note_section): Remove assertion and
11063 associated comment.
11064
11065 2014-01-24 Yao Qi <yao@codesourcery.com>
11066
11067 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11068 * corelow.c (get_core_siginfo): Likewise.
11069
11070 2014-01-24 Yao Qi <yao@codesourcery.com>
11071
11072 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11073 ULONGEST. Don't check 'len' is negative.
11074 (remote_write_bytes): Change type of 'len' to ULONGEST.
11075
11076 2014-01-23 Tom Tromey <tromey@redhat.com>
11077
11078 PR python/16485:
11079 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11080 Handle exception from frame.block.
11081 (FrameVars.fetch_frame_locals): Likewise.
11082
11083 2014-01-23 Tom Tromey <tromey@redhat.com>
11084
11085 PR python/16487:
11086 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11087 on a NULL pointer. Move "goto error" to correct place.
11088
11089 2014-01-23 Tom Tromey <tromey@redhat.com>
11090
11091 PR python/16491:
11092 * python/py-framefilter.c (apply_frame_filter): Call
11093 ensure_python_env after computing gdbarch.
11094
11095 2014-01-23 Yao Qi <yao@codesourcery.com>
11096
11097 * target.c (raw_memory_xfer_partial): Change argument type
11098 from void * to gdb_byte *.
11099 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11100
11101 2014-01-22 Doug Evans <dje@google.com>
11102
11103 New gdbserver option --debug-format=timestamp.
11104 * NEWS: Mention it.
11105
11106 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11107
11108 * syscalls/s390x-linux.xml: New file.
11109 * syscalls/s390-linux.xml: New file.
11110 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11111 (XML_SYSCALL_FILENAME_S390X): Likewise.
11112 (op_svc): New enum value for SVC opcode.
11113 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11114 (s390_linux_get_syscall_number): New function.
11115 (s390_gdbarch_init): Register '*get_syscall_number' and the
11116 syscall xml file name.
11117 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11118 "s390-linux.xml" and "s390x-linux.xml".
11119 * NEWS: Announce new feature.
11120
11121 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11122
11123 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11124
11125 2014-01-22 Pedro Alves <palves@redhat.com>
11126
11127 * xtensa-config.c: Include defs.h.
11128
11129 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11130
11131 * common/common-utils.h: Add "ARI:" comment beside __func__
11132 reference.
11133
11134 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11135
11136 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11137 documentation a bit.
11138
11139 2014-01-21 Roland McGrath <mcgrathr@google.com>
11140
11141 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11142 * configure: Regenerate.
11143 * aclocal.m4: Regenerate.
11144 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11145 New substituted variables.
11146 (install-strip): New target.
11147 (INSTALL_SCRIPT): New substituted variable.
11148 (FLAGS_TO_PASS): Add it.
11149 (install-only): Use $(INSTALL_SCRIPT) rather than
11150 $(INSTALL_PROGRAM) for gcore.
11151
11152 2014-01-20 Tom Tromey <tromey@redhat.com>
11153
11154 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11155 together.
11156
11157 2014-01-20 Tom Tromey <tromey@redhat.com>
11158
11159 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11160 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11161 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11162 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11163 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11164 (struct cmd_list_element) <flags>: Remove.
11165 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11166 doc_allocated>: New fields.
11167 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11168 bitfields.
11169 * maint.c (maintenance_do_deprecate): Update.
11170 * top.c (execute_command): Update.
11171
11172 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11173
11174 * xtensa-linux-nat.c: Include asm/ptrace.h.
11175
11176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11177
11178 * Makefile.in (SFILES): Add d-support.c.
11179 (COMMON_OBS): Add d-support.o.
11180 * d-lang.h (d_parse_symbol): Add comment, now defined in
11181 d-support.c.
11182 * d-lang.c (parse_call_convention)
11183 (parse_attributes, parse_function_types)
11184 (parse_function_args, parse_type, parse_identifier)
11185 (call_convention_p, d_parse_symbol): Move functions to ...
11186 * d-support.c: ... New file.
11187
11188 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11189
11190 * d-lang.h (d_parse_symbol): Add declaration.
11191 * d-lang.c (extract_identifiers)
11192 (extract_type_info): Remove functions.
11193 (parse_call_convention, parse_attributes)
11194 (parse_function_types, parse_function_args)
11195 (parse_type, parse_identifier, call_convention_p)
11196 (d_parse_symbol): New functions.
11197 (d_demangle): Use d_parse_symbol to demangle D symbols.
11198
11199 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11200
11201 * d-lang.h (struct builtin_d_type): New data type.
11202 (builtin_d_type): Add declaration.
11203 * d-lang.c (d_language_arch_info, build_d_types)
11204 (builtin_d_type): New functions.
11205 (enum d_primitive_types): New data type.
11206 (d_language_defn): Change c_language_arch_info to
11207 d_language_arch_info.
11208 (d_type_data): New static variable.
11209 (_initialize_d_language): Initialize d_type_data.
11210
11211 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11212
11213 * d-lang.h (d_main_name): Add declaration.
11214 * d-lang.c (d_main_name): New function.
11215 * symtab.c (find_main_name): Add call to d_main_name.
11216
11217 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11218
11219 * d-lang.c (d_language_defn): Change macro_expansion_c to
11220 macro_expansion_no.
11221
11222 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11223
11224 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11225
11226 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11227
11228 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11229 gdb_exception" declaration.
11230 * remote.c (getpkt_or_notif_sane): Likewise.
11231
11232 2014-01-17 Doug Evans <dje@google.com>
11233
11234 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11235 function, contents of dirnames_to_char_ptr_vec_append moved here.
11236 (delim_string_to_char_ptr_vec): New function.
11237 (dirnames_to_char_ptr_vec_append): Rewrite.
11238 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11239
11240 2014-01-17 Doug Evans <dje@google.com>
11241
11242 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11243 and moved here ...
11244 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11245 #include "common-utils.h".
11246 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11247 * common/vec.h (VEC_ASSERT_PASS): Update.
11248 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11249 (MACH_CHECK_ERROR): Update.
11250
11251 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11252
11253 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11254 comments.
11255 * gdbarch.h: Regenerate.
11256
11257 2014-01-16 Tom Tromey <tromey@redhat.com>
11258
11259 * value.c (struct value) <regnum>: Move earlier.
11260
11261 2014-01-16 Tom Tromey <tromey@redhat.com>
11262
11263 * remote.c (extended_remote_create_inferior): Rename from
11264 extended_remote_create_inferior_1. Add "ops" argument. Remove
11265 old implementation.
11266
11267 2014-01-16 Pedro Alves <palves@redhat.com>
11268
11269 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11270 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11271 the backchain.
11272
11273 2014-01-16 Doug Evans <dje@google.com>
11274
11275 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11276
11277 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11278
11279 * btrace.h (btrace_thread_flag): New.
11280 (struct btrace_thread_info) <flags>: New.
11281 * record-btrace.c (record_btrace_resume_thread)
11282 (record_btrace_find_thread_to_move, btrace_step_no_history)
11283 (btrace_step_stopped, record_btrace_start_replaying)
11284 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11285 (record_btrace_find_resume_thread): New.
11286 (record_btrace_resume, record_btrace_wait): Extend.
11287 (record_btrace_can_execute_reverse): New.
11288 (record_btrace_open): Fail in non-stop mode.
11289 (record_btrace_set_replay): Split into this, ...
11290 (record_btrace_stop_replaying): ... this, ...
11291 (record_btrace_clear_histories): ... and this.
11292 (init_record_btrace_ops): Init to_can_execute_reverse.
11293 * NEWS: Announce it.
11294
11295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11296
11297 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11298 (forward_target_decr_pc_after_break)
11299 (target_decr_pc_after_break): New.
11300 * target.c (forward_target_decr_pc_after_break)
11301 (target_decr_pc_after_break): New.
11302 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11303 instead of gdbarch_decr_pc_after_break.
11304 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11305 instead of gdbarch_decr_pc_after_break.
11306 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11307 instead of gdbarch_decr_pc_after_break.
11308 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11309 instead of gdbarch_decr_pc_after_break.
11310 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11311 instead of gdbarch_decr_pc_after_break.
11312 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11313 instead of gdbarch_decr_pc_after_break.
11314
11315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * btrace.c: Include regcache.h.
11318 (btrace_add_pc): New.
11319 (btrace_enable): Call btrace_add_pc.
11320 (btrace_is_empty): New.
11321 * btrace.h (btrace_is_empty): New.
11322 * record-btrace.c (require_btrace, record_btrace_info): Call
11323 btrace_is_empty.
11324
11325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11326
11327 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11328 Support delta reads.
11329 (linux_disable_btrace): Change return type.
11330 * common/linux-btrace.h (linux_read_btrace): Change parameters
11331 and return type to allow error reporting. Update users.
11332 (linux_disable_btrace): Change return type. Update users.
11333 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11334 New.
11335 (btrace_error): New.
11336 (btrace_block) <begin>: Comment on BEGIN == 0.
11337 * btrace.c (btrace_compute_ftrace): Start from the end of
11338 the current trace.
11339 (btrace_stitch_trace, btrace_clear_history): New.
11340 (btrace_fetch): Read delta trace, return if replaying.
11341 (btrace_clear): Move clear history code to btrace_clear_history.
11342 (parse_xml_btrace): Throw an error if parsing failed.
11343 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11344 and return type to allow error reporting.
11345 (target_read_btrace): Change parameters and return type to allow
11346 error reporting.
11347 * target.c (target_read_btrace): Update.
11348 * remote.c (remote_read_btrace): Support delta reads. Pass
11349 errors on.
11350 * NEWS: Announce it.
11351
11352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11353
11354 * record.h (record_btrace_frame_unwind)
11355 (record_btrace_tailcall_frame_unwind): New declarations.
11356 * dwarf2-frame: Include record.h
11357 (dwarf2_frame_cfa): Throw an error for btrace frames.
11358 * record-btrace.c: Include hashtab.h.
11359 (btrace_get_bfun_name): New.
11360 (btrace_call_history): Call btrace_get_bfun_name.
11361 (struct btrace_frame_cache): New.
11362 (bfcache): New.
11363 (bfcache_hash, bfcache_eq, bfcache_new): New.
11364 (btrace_get_frame_function): New.
11365 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11366 (record_btrace_frame_this_id): Compute own id.
11367 (record_btrace_frame_prev_register): Provide PC, throw_error
11368 for all other registers.
11369 (record_btrace_frame_sniffer): Detect btrace frames.
11370 (record_btrace_tailcall_frame_sniffer): New.
11371 (record_btrace_frame_dealloc_cache): New.
11372 (record_btrace_frame_unwind): Add new functions.
11373 (record_btrace_tailcall_frame_unwind): New.
11374 (_initialize_record_btrace): Allocate cache.
11375 * btrace.c (btrace_clear): Call reinit_frame_cache.
11376 * NEWS: Announce it.
11377
11378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11379
11380 * record-btrace.c (record_btrace_set_replay)
11381 (record_btrace_goto_begin, record_btrace_goto_end)
11382 (record_btrace_goto): New.
11383 (init_record_btrace_ops): Initialize them.
11384 * NEWS: Announce it.
11385
11386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11387
11388 * record-btrace.c (record_btrace_find_new_threads)
11389 (record_btrace_thread_alive): New.
11390 (init_record_btrace_ops): Initialize to_find_new_threads and
11391 to_thread_alive.
11392
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11394
11395 * record-btrace.c (record_btrace_resume): New.
11396 (record_btrace_wait): New.
11397 (init_record_btrace_ops): Initialize to_wait and to_resume.
11398
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400
11401 * record-btrace.c (record_btrace_xfer_partial)
11402 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11403 (record_btrace_allow_memory_access): New.
11404 (init_record_btrace_ops): Initialize new methods.
11405 * target.c (raw_memory_xfer_partial): Bail out if target reports
11406 that this memory is not available.
11407
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11409
11410 * target.h (target_ops) <to_insert_breakpoint>
11411 <to_remove_breakpoint>: Add target_ops parameter.
11412 (forward_target_insert_breakpoint): New.
11413 (forward_target_remove_breakpoint): New.
11414 (memory_remove_breakpoint, memory_insert_breakpoint):
11415 Add target_ops parameter.
11416 * target.c (target_insert_breakpoint): Split into this and ...
11417 (forward_target_insert_breakpoint): ... this.
11418 (target_remove_breakpoint): Split into this and ...
11419 (forward_target_remove_breakpoint): ... this.
11420 (debug_to_insert_breakpoint): Add target_ops parameter.
11421 Call forward_target_insert_breakpoint.
11422 (debug_to_remove_breakpoint): Add target_ops parameter.
11423 Call forward_target_remove_breakpoint.
11424 (update_current_target): Do not inherit or default to_insert_breakpoint
11425 and to_remove_breakpoint.
11426 * corelow.c (ignore): Add target_ops parameter.
11427 * exec.c (ignore): Add target_ops parameter.
11428 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11429 Add target_ops parameter.
11430 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11431 Add target_ops parameter.
11432 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11433 Add target_ops parameter.
11434 * record-full.c (record_full_beneath_to_insert_breakpoint)
11435 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11436 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11437 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11438 (record_full_core_remove_breakpoint): Add target_ops parameter.
11439 Update users.
11440 (record_full_beneath_to_insert_breakpoint_ops)
11441 (record_full_beneath_to_remove_breakpoint_ops)
11442 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11443 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11444 tmp_to_remove_breakpoint_ops,
11445 record_full_beneath_to_insert_breakpoint_ops, and
11446 record_full_beneath_to_remove_breakpoint_ops.
11447 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11448 (m32r_remove_breakpoint): Add target_ops parameter.
11449 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11450 Add target_ops parameter.
11451 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11452 Add target_ops parameter.
11453
11454 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11455 Markus Metzger <markus.t.metzger@intel.com>
11456
11457 * record-btrace.c: Include frame-unwind.h.
11458 (record_btrace_frame_unwind_stop_reason)
11459 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11460 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11461 New.
11462 (init_record_btrace_ops): Install it.
11463
11464 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11465
11466 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11467 get_prev_frame_1.
11468
11469 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11470
11471 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11472 earlier.
11473
11474 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11475
11476 * frame-unwind.c: Include target.h.
11477 (frame_unwind_try_unwinder): New function with code from ...
11478 (frame_unwind_find_by_frame): ... here. New variable
11479 unwinder_from_target, call also target_get_unwinder)
11480 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11481 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11482 * target.h (struct target_ops): New fields to_get_unwinder and
11483 to_get_tailcall_unwinder.
11484 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11485
11486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11487
11488 * record-btrace.c (record_btrace_fetch_registers)
11489 (record_btrace_store_registers)
11490 (record_btrace_to_prepare_to_store): New.
11491 (init_record_btrace_ops): Add the above.
11492
11493 2014-01-16 Tom Tromey <tromey@redhat.com>
11494
11495 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11496 * target.h (struct target_ops) <to_prepare_to_store>: Add
11497 argument.
11498 (target_prepare_to_store): Add argument.
11499 * target.c (debug_to_prepare_to_store): Add argument.
11500 (update_current_target): Update.
11501 * remote.c (remote_prepare_to_store): Add 'self' argument.
11502 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11503 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11504 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11505 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11506 argument.
11507 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11508 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11509 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11510 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11511 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11512
11513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11514
11515 * btrace.h (replay) <replay>: New.
11516 (btrace_is_replaying): New.
11517 * btrace.c (btrace_clear): Free replay iterator.
11518 (btrace_is_replaying): New.
11519 * record-btrace.c (record_btrace_is_replaying): New.
11520 (record_btrace_info): Print insn number if replaying.
11521 (record_btrace_insn_history): Start at replay position.
11522 (record_btrace_call_history): Start at replay position.
11523 (init_record_btrace_ops): Init to_record_is_replaying.
11524
11525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11526
11527 * record-btrace.c (record_btrace_insn_history_range): Include
11528 end.
11529 (record_btrace_insn_history_from): Adjust range.
11530 (record_btrace_call_history_range): Include
11531 end.
11532 (record_btrace_call_history_from): Adjust range.
11533 * NEWS: Announce changes.
11534
11535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11536
11537 * record.h (enum record_print_flag)
11538 <record_print_indent_calls>: New.
11539 * record.c (get_call_history_modifiers): Recognize /c modifier.
11540 (_initialize_record): Document /c modifier.
11541 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11542 Reorder fields. Optionally indent the function name. Update
11543 all users.
11544 * NEWS: Announce changes.
11545
11546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11547
11548 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11549
11550 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11551
11552 * btrace.c (ftrace_new_function): Start counting at one.
11553 * record-btrace.c (record_btrace_info): Adjust number of calls
11554 and insns.
11555 * NEWS: Announce it.
11556
11557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11558
11559 * record-btrace.c (btrace_call_history_insn_range): Print
11560 insn range as [begin, end].
11561
11562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11563
11564 * btrace.h (struct btrace_func_link): New.
11565 (enum btrace_function_flag): New.
11566 (struct btrace_inst): Rename to ...
11567 (struct btrace_insn): ...this. Update all users.
11568 (struct btrace_func) <ibegin, iend>: Remove.
11569 (struct btrace_func_link): New.
11570 (struct btrace_func): Rename to ...
11571 (struct btrace_function): ...this. Update all users.
11572 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11573 (number, level, flags>: New.
11574 (struct btrace_insn_iterator): Rename to ...
11575 (struct btrace_insn_history): ...this.
11576 Update all users.
11577 (struct btrace_insn_iterator, btrace_call_iterator): New.
11578 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11579 (struct btrace_target_info) <begin, end, level>
11580 <insn_history, call_history>: New.
11581 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11582 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11583 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11584 (btrace_call_number, btrace_call_begin, btrace_call_end)
11585 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11586 (btrace_find_function_by_number, btrace_set_insn_history)
11587 (btrace_set_call_history): New.
11588 * btrace.c (btrace_init_insn_iterator)
11589 (btrace_init_func_iterator, compute_itrace): Remove.
11590 (ftrace_print_function_name, ftrace_print_filename)
11591 (ftrace_skip_file): Change
11592 parameter to const.
11593 (ftrace_init_func): Remove.
11594 (ftrace_debug): Use new btrace_function fields.
11595 (ftrace_function_switched): Also consider gaining and
11596 losing symbol information).
11597 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11598 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11599 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11600 New.
11601 (ftrace_new_function): Move. Remove debug print.
11602 (ftrace_update_lines, ftrace_update_insns): New.
11603 (ftrace_update_function): Check for call, ret, and jump.
11604 (compute_ftrace): Renamed to ...
11605 (btrace_compute_ftrace): ...this. Rewritten to compute call
11606 stack.
11607 (btrace_fetch, btrace_clear): Updated.
11608 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11609 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11610 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11611 (btrace_call_number, btrace_call_begin, btrace_call_end)
11612 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11613 (btrace_find_function_by_number, btrace_set_insn_history)
11614 (btrace_set_call_history): New.
11615 * record-btrace.c (require_btrace): Use new btrace thread
11616 info fields.
11617 (record_btrace_info, btrace_insn_history)
11618 (record_btrace_insn_history, record_btrace_insn_history_range):
11619 Use new btrace thread info fields and new iterator.
11620 (btrace_func_history_src_line): Rename to ...
11621 (btrace_call_history_src_line): ...this. Use new btrace
11622 thread info fields.
11623 (btrace_func_history): Rename to ...
11624 (btrace_call_history): ...this. Use new btrace thread info
11625 fields and new iterator.
11626 (record_btrace_call_history, record_btrace_call_history_range):
11627 Use new btrace thread info fields and new iterator.
11628
11629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11630
11631 * frame.h (frame_id_build_unavailable_stack_special): New.
11632 * frame.c (frame_id_build_unavailable_stack_special): New.
11633
11634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11635
11636 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11637 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11638 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11639 to gdbarch.
11640 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11641 (i386_insn_is_jump, i386_jmp_p): New.
11642 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11643 insn_is_jump to gdbarch.
11644 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11645 * gdbarch.h: Regenerated.
11646 * gdbarch.c: Regenerated.
11647 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11648 (default_insn_is_jump): New.
11649 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11650 (default_insn_is_jump): New.
11651
11652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11653
11654 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11655 Change to ...
11656 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11657 (btrace_read_type) <btrace_read_new>: Change to ...
11658 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11659
11660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11661
11662 * common/linux-btrace.c (linux_read_btrace): Free trace from
11663 previous iteration.
11664
11665 2014-01-15 Doug Evans <dje@google.com>
11666
11667 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11668 uint32_t.
11669
11670 2014-01-15 Tom Tromey <tromey@redhat.com>
11671
11672 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11673 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11674 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11675 (set_objfile_main_name): New function.
11676 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11677 language_of_main>: New fields.
11678 (set_objfile_main_name): Declare.
11679 * symtab.c (find_main_name): Loop over objfiles to find the main
11680 name and language.
11681 (set_main_name): Now static.
11682 (get_main_info): Add comment.
11683 * symtab.h (set_main_name): Don't declare.
11684
11685 2014-01-15 Tom Tromey <tromey@redhat.com>
11686
11687 * symtab.c (main_progspace_key): New global.
11688 (struct main_info): New.
11689 (name_of_main, language_of_main): Remove.
11690 (get_main_info, main_info_cleanup): New function.
11691 (set_main_name, main_name, main_language): Use get_main_info.
11692 (_initialize_symtab): Initialize main_progspace_key.
11693
11694 2014-01-15 Tom Tromey <tromey@redhat.com>
11695
11696 * dbxread.c (process_one_symbol): Update.
11697 * dwarf2read.c (read_partial_die): Update.
11698 * symfile.c (set_initial_language): Call main_language.
11699 * symtab.c (language_of_main): Now static.
11700 (set_main_name): Add 'lang' parameter.
11701 (find_main_name): Update.
11702 (main_language): New function.
11703 (symtab_observer_executable_changed): Update.
11704 * symtab.h (set_main_name): Update.
11705 (language_of_main): Remove.
11706 (main_language): Declare.
11707
11708 2014-01-15 Tom Tromey <tromey@redhat.com>
11709
11710 * symfile.c (init_entry_point_info): Use new "initialized" field.
11711 Update.
11712 * objfiles.h (struct entry_point) <initialized>: New field.
11713 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11714 (struct objfile) <ei>: ...here. Remove.
11715 * objfiles.c (entry_point_address_query): Update.
11716
11717 2014-01-15 Tom Tromey <tromey@redhat.com>
11718
11719 * objfiles.c (entry_point_address_query): Relocate entry point
11720 address.
11721 (objfile_relocate1): Do not relocate entry point address.
11722 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11723 <the_bfd_section_index>: New field.
11724 * symfile.c (init_entry_point_info): Find the entry point's
11725 section.
11726
11727 2014-01-15 Tom Tromey <tromey@redhat.com>
11728
11729 * solib-frv.c (enable_break): Use entry_point_address_query.
11730
11731 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11732
11733 * NEWS: Add note on improved process record-replay on
11734 arm*-linux* targets.
11735
11736 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11737
11738 * arm-tdep.c (enum arm_record_result): New enum.
11739 (arm_record_unsupported_insn): New function.
11740 (arm_record_coproc_data_proc): Removed.
11741 (thumb2_record_ld_st_multiple): New function.
11742 (thumb2_record_ld_st_dual_ex_tbb): New function.
11743 (thumb2_record_data_proc_sreg_mimm): New function.
11744 (thumb2_record_ps_dest_generic): New function.
11745 (thumb2_record_branch_misc_cntrl): New function.
11746 (thumb2_record_str_single_data): New function.
11747 (thumb2_record_ld_mem_hints): New function.
11748 (thumb2_record_ld_word): New function.
11749 (thumb2_record_lmul_lmla_div): New function.
11750 (thumb2_record_decode_insn_handler): New function.
11751 (decode_insn): Add thumb32 instruction handlers.
11752
11753 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11754
11755 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11756 (struct arm_linux_record_tdep): Declare.
11757 (arm_canonicalize_syscall): New function.
11758 (arm_all_but_pc_registers_record): New function.
11759 (arm_linux_syscall_record): New function.
11760 (arm_linux_init_abi): Add syscall recording constructs.
11761 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11762 decoding. (arm_record_coproc_data_proc): Update arm syscall
11763 decoding.
11764 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11765 <arm_syscall_record>: New field.
11766 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11767 gdb_target_obs.
11768
11769 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11770
11771 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11772 register for push instruction recording.
11773
11774 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11775
11776 * arm-tdep.c (thumb_record_misc): Update to correct logical
11777 error while recording ldm, ldmia and pop instructions.
11778
11779 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11780
11781 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11782
11783 2014-01-15 Pedro Alves <palves@redhat.com>
11784
11785 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11786 (go32_resume, go32_fetch_registers, store_register)
11787 (go32_store_registers, go32_prepare_to_store)
11788 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11789 (go32_create_inferior, go32_can_run, go32_terminal_init)
11790 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11791 declarations.
11792
11793 2014-01-15 Tom Tromey <tromey@redhat.com>
11794
11795 * target.h (async_callback_ftype): New typedef.
11796 (struct target_ops) <to_async>: Use it.
11797
11798 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11799
11800 * python/py-value.c (get_field_type): Remove unnecessary curly
11801 braces for single-statement if block.
11802
11803 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11804
11805 * python/py-type.c (convert_field): Add missing empty line
11806 after declarations.
11807
11808 2014-01-14 Doug Evans <dje@google.com>
11809
11810 * symfile.h (expand_symtabs_matching): Renamed from
11811 expand_partial_symbol_names. Update prototype.
11812 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11813 * symfile.c (expand_symtabs_matching): Renamed from
11814 expand_partial_symbol_names. New args file_matcher, kind.
11815 Rename arg fun to symbol_matcher.
11816 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11817 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11818 ada_expand_partial_symbol_name.
11819 (ada_make_symbol_completion_list): Update to call
11820 expand_symtabs_matching.
11821 (ada_add_global_exceptions): Call expand_symtabs_matching.
11822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11823 call map_symbol_filenames.
11824 * symtab.c (sources_info): Update to call map_symbol_filenames.
11825 (search_symbols): Call expand_symtabs_matching.
11826 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11827 (default_make_symbol_completion_list_break_on): Update to call
11828 expand_symtabs_matching.
11829 (make_source_files_completion_list): Update to call
11830 map_symbol_filenames.
11831
11832 2014-01-14 Doug Evans <dje@google.com>
11833
11834 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11835 (expand_symtabs_symbol_matcher_ftype): New typedef.
11836 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11837 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11838 * symfile.c (expand_partial_symbol_names): Update to use
11839 expand_symtabs_symbol_matcher_ftype.
11840 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11841 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11842 Arg name_matcher renamed to symbol_matcher.
11843 * psymtab.c (recursively_search_psymtabs): Update to use
11844 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11845 sym_matcher.
11846 (expand_symtabs_matching_via_partial): Update to use
11847 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11848 Arg name_matcher renamed to symbol_matcher.
11849
11850 2014-01-14 Doug Evans <dje@google.com>
11851
11852 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11853 (map_partial_symbol_filenames): Ditto.
11854 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11855 (map_partial_symbol_filenames): Ditto.
11856 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11857 (map_partial_symbol_filenames): Ditto.
11858 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11859 (map_partial_symbol_filenames): Ditto.
11860 * symtab.c: Delete #include "psymtab.h".
11861
11862 2014-01-14 Pedro Alves <palves@redhat.com>
11863 Tom Tromey <tromey@redhat.com>
11864
11865 * infrun.c (use_displaced_stepping): Use find_record_target
11866 instead of RECORD_IS_USED.
11867 (adjust_pc_after_break): Use record_full_is_used instead of
11868 RECORD_IS_USED.
11869 * record-btrace.c (record_btrace_open): Call record_preopen
11870 instead of checking RECORD_IS_USED.
11871 * record-full.c (record_full_shortname)
11872 (record_full_core_shortname): New globals.
11873 (record_full_is_used): New function.
11874 (find_full_open): Call record_preopen instead of checking
11875 RECORD_IS_USED.
11876 (init_record_full_ops): Set the target's shortname to
11877 record_full_shortname.
11878 (init_record_full_core_ops): Set the target's shortname to
11879 record_full_core_shortname.
11880 * record-full.h (record_full_is_used): Declare.
11881 * record.c (find_record_target): Make extern.
11882 (record_preopen): New function.
11883 * record.h (RECORD_IS_USED): Delete macro.
11884 (find_record_target, record_preopen): Declare functions.
11885
11886 2014-01-14 Yao Qi <yao@codesourcery.com>
11887
11888 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11889 'len''s type to ULONGEST.
11890 (core_xfer_shared_libraries_aix): Likewise.
11891 * gdbarch.c, gdbarch.h: Regenerated.
11892 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11893 Change type of 'len' to ULONGEST.
11894 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11895 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11896
11897 2014-01-14 Yao Qi <yao@codesourcery.com>
11898
11899 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11900 type of 'len' to ULONGEST.
11901 (linux_xfer_osdata_processgroups): Likewise.
11902 (linux_xfer_osdata_threads): Likewise.
11903 (linux_xfer_osdata_fds): Likewise.
11904 (linux_xfer_osdata_isockets): Likewise.
11905 (linux_xfer_osdata_shm): Likewise.
11906 (linux_xfer_osdata_sem): Likewise.
11907 (linux_xfer_osdata_msg): Likewise.
11908 (linux_common_xfer_osdata): Likewise.
11909 (struct osdata_type) <getter>: Likewise.
11910 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11911 the declaration.
11912
11913 2014-01-14 Yao Qi <yao@codesourcery.com>
11914
11915 * target.h (target_xfer_partial_ftype): Update.
11916 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11917 ULONGEST.
11918 * aix-thread.c (aix_thread_xfer_partial): Change type of
11919 argument 'len' to ULONGEST.
11920 * auxv.c (procfs_xfer_auxv): Likewise.
11921 (ld_so_xfer_auxv): Likewise.
11922 (memory_xfer_auxv): Likewise.
11923 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11924 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11925 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11926 * corelow.c (core_xfer_partial): Likewise.
11927 * ctf.c (ctf_xfer_partial): Likewise.
11928 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11929 '%u'.
11930 (darwin_read_dyld_info): Likewise.
11931 (darwin_xfer_partial): Likewise.
11932 * exec.c (section_table_xfer_memory_partial): Likewise.
11933 (exec_xfer_partial): Likewise.
11934 * exec.h (section_table_xfer_memory_partial): Update
11935 declaration.
11936 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11937 instead of plongest.
11938 (gnu_xfer_partial): Likewise.
11939 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11940 (ia64_hpux_xfer_solib_got): Likewise.
11941 (ia64_hpux_xfer_partial): Likewise.
11942 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11943 * inf-ptrace.c (inf_ptrace_xfer_partial):
11944 * inf-ttrace.c (inf_ttrace_xfer_partial):
11945 * linux-nat.c (linux_xfer_siginfo): Likewise.
11946 (linux_nat_xfer_partial): Likewise.
11947 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11948 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11949 * monitor.c (monitor_xfer_memory): Likewise.
11950 (monitor_xfer_partial): Likewise.
11951 * procfs.c (procfs_xfer_partial): Likewise.
11952 * record-full.c (record_full_xfer_partial): Likewise.
11953 (record_full_core_xfer_partial): Likewise.
11954 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11955 instead of plongest.
11956 (gdbsim_xfer_partial): Likewise.
11957 * remote.c (remote_xfer_partial): Likewise.
11958 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11959 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11960 declaration.
11961 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11962 (rs6000_xfer_shared_libraries): Likewise.
11963 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11964 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11965 (sparc_xfer_partial): Likewise.
11966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11967 (spu_xfer_partial): Likewise.
11968 * spu-multiarch.c (spu_xfer_partial): Likewise.
11969 * target.c (target_read_live_memory): Likewise.
11970 (memory_xfer_live_readonly_partial): Likewise.
11971 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11972 (target_xfer_partial, default_xfer_partial): Likewise.
11973 (current_xfer_partial): Likewise.
11974 * tracepoint.c (tfile_xfer_partial): Likewise.
11975 * windows-nat.c (windows_xfer_memory): Likewise. Call
11976 pulongest instead of plongest.
11977 (windows_xfer_partial): Likewise.
11978 (windows_xfer_shared_libraries): Likewise.
11979
11980 2014-01-14 Yao Qi <yao@codesourcery.com>
11981
11982 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11983 target_xfer_partial_ftype.
11984
11985 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11986
11987 PR python/15464
11988 PR python/16113
11989 * valops.c (value_struct_elt_bitpos): New function
11990 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11991 object to 'None' if the field name is an empty string ("").
11992 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11993 attribute to look for a field when 'name' is 'None'.
11994 (get_field_type): New function
11995
11996 2014-01-13 Doug Evans <dje@google.com>
11997
11998 PR symtab/16426
11999 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12000 (try_open_dwop_file): Ditto.
12001 * gdb_bfd.c: #include "vec.h".
12002 (bfdp): New typedef.
12003 (struct gdb_bfd_data): New member included_bfds.
12004 (gdb_bfd_unref): Unref all included bfds.
12005 (gdb_bfd_record_inclusion): New function.
12006 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12007
12008 2014-01-13 Tom Tromey <tromey@redhat.com>
12009
12010 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12011
12012 2014-01-13 Tom Tromey <tromey@redhat.com>
12013
12014 * defs.h (use_windows): Remove.
12015 * gdb.c (main): Update.
12016 * main.c (captured_main, gdb_main): Update.
12017 * main.h (struct captured_main_args) <use_windows>: Remove.
12018 * top.c (use_windows): Remove.
12019
12020 2014-01-13 Tom Tromey <tromey@redhat.com>
12021
12022 * defs.h (deprecated_flush_hook): Remove.
12023
12024 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12025
12026 PR threads/16216
12027 * linux-thread-db.c (try_thread_db_load): Add parameter
12028 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12029 (try_thread_db_load_from_pdir_1): Move it there from here.
12030 (try_thread_db_load_from_sdir): Update caller.
12031 (try_thread_db_load_from_dir): Move it there from here.
12032
12033 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12034
12035 * regformats/regdat.sh: Always rewrite the register file.
12036
12037 2014-01-13 Pedro Alves <palves@redhat.com>
12038
12039 * Makefile.in (CHECK_HEADERS): New variable.
12040 (check-headers:): New rule.
12041
12042 2014-01-13 Tom Tromey <tromey@redhat.com>
12043
12044 * cli/cli-setshow.c (do_set_command): Update.
12045 * defs.h (deprecated_set_hook): Remove.
12046 * top.c (deprecated_set_hook): Remove.
12047
12048 2014-01-13 Pedro Alves <palves@redhat.com>
12049
12050 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12051 the tracepoint if the PC is a pseudo-register.
12052
12053 2014-01-13 Tom Tromey <tromey@redhat.com>
12054
12055 * defs.h (XCALLOC): Remove.
12056 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12057 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12058 * dwarf2loc.c (allocate_piece_closure): Likewise.
12059 * elfread.c (elf_symfile_segments): Likewise.
12060 (elf_symfile_segments): Likewise.
12061 * gdbtypes.c (copy_type_recursive): Likewise.
12062 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12063 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12064 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12065 XCALLOC.
12066 * mt-tdep.c (mt_gdbarch_init): Likewise.
12067 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12068 XCALLOC.
12069 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12070 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12071 * registry.c (registry_alloc_data): Likewise.
12072 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12073 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12074 * serial.c (serial_fdopen_ops): Likewise.
12075 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12076 XCALLOC.
12077 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12078 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12079 not XCALLOC.
12080
12081 2014-01-13 Tom Tromey <tromey@redhat.com>
12082
12083 * defs.h (XMALLOC): Remove.
12084 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12085 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12086 * cli-out.c (struct ui_out *): Likewise.
12087 * cli/cli-dump.c (add_dump_command): Likewise.
12088 (add_dump_command): Likewise.
12089 * complaints.c (get_complaints): Likewise.
12090 (find_complaint): Likewise.
12091 * dwarf2-frame.c (execute_cfa_program): Likewise.
12092 * dwarf2read.c (abbrev_table_read_table): Likewise.
12093 * gdbarch.sh: Likewise.
12094 * gdbarch.c: Rebuild.
12095 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12096 * interps.c (interp_new): Likewise.
12097 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12098 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12099 * mi/mi-console.c (mi_console_file_new): Likewise.
12100 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12101 * mi/mi-out.c (mi_out_new): Likewise.
12102 * mi/mi-parse.c (mi_parse): Likewise.
12103 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12104 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12105 * observer.c (xalloc_observer_list_node): Likewise.
12106 * regcache.c (regcache_xmalloc_1): Likewise.
12107 * reggroups.c (reggroup_new): Likewise.
12108 (_initialize_reggroup): Likewise.
12109 * registry.c (register_data_with_cleanup): Likewise.
12110 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12111 * ser-base.c (serial_ttystate): Likewise.
12112 * ser-mingw.c (make_pipe_state): Likewise.
12113 * ser-pipe.c (pipe_open): Likewise.
12114 * serial.c (serial_open): Likewise.
12115 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12116 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12117 (tui_alloc_win_info): Likewise.
12118 (tui_add_content_elements): Likewise.
12119 * tui/tui-file.c (tui_file_new): Likewise.
12120 * tui/tui-out.c (tui_out_new): Likewise.
12121 * ui-file.c (mem_file_new): Likewise.
12122 * ui-out.c (push_level): Likewise.
12123 (make_cleanup_ui_out_end): Likewise.
12124 (append_header_to_list): Likewise.
12125 (ui_out_new): Likewise.
12126 * user-regs.c (user_reg_add_builtin): Likewise.
12127
12128 2014-01-13 Tom Tromey <tromey@redhat.com>
12129
12130 * defs.h (XZALLOC): Remove.
12131 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12132 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12133 (get_ada_tasks_inferior_data): Likewise.
12134 * auto-load.c (get_auto_load_pspace_data): Likewise.
12135 * auxv.c (get_auxv_inferior_data): Likewise.
12136 * bfd-target.c (target_bfd_reopen): Likewise.
12137 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12138 (deprecated_insert_raw_breakpoint): Likewise.
12139 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12140 * corelow.c (core_open): Likewise.
12141 * darwin-nat.c (darwin_check_new_threads): Likewise.
12142 (darwin_attach_pid): Likewise.
12143 * dummy-frame.c (dummy_frame_push): Likewise.
12144 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12145 * dwarf2loc.c (allocate_piece_closure): Likewise.
12146 * elfread.c (elf_symfile_segments): Likewise.
12147 * eval.c (ptrmath_type_p): Likewise.
12148 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12149 * gdbtypes.c (alloc_type_arch): Likewise.
12150 (alloc_type_instance): Likewise.
12151 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12152 * inf-child.c (inf_child_can_use_agent): Likewise.
12153 * inflow.c (get_inflow_inferior_data): Likewise.
12154 * infrun.c (save_infcall_suspend_state): Likewise.
12155 * jit.c (jit_reader_load): Likewise.
12156 (get_jit_objfile_data): Likewise.
12157 (get_jit_program_space_data): Likewise.
12158 (jit_object_open_impl): Likewise.
12159 (jit_symtab_open_impl): Likewise.
12160 (jit_block_open_impl): Likewise.
12161 (jit_frame_sniffer): Likewise.
12162 * linux-fork.c (add_fork): Likewise.
12163 * maint.c (make_command_stats_cleanup): Likewise.
12164 * objfiles.c (get_objfile_pspace_data): Likewise.
12165 * opencl-lang.c (struct lval_closure): Likewise.
12166 * osdata.c (osdata_start_osdata): Likewise.
12167 * progspace.c (new_address_space): Likewise.
12168 (add_program_space): Likewise.
12169 * remote-sim.c (get_sim_inferior_data): Likewise.
12170 * sh-tdep.c (sh_gdbarch_init): Likewise.
12171 * skip.c (Ignore): Likewise.
12172 (skip_delete_command): Likewise.
12173 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12174 (library_list_start_library): Likewise.
12175 (solib_aix_current_sos): Likewise.
12176 * solib-darwin.c (get_darwin_info): Likewise.
12177 (darwin_current_sos): Likewise.
12178 * solib-dsbt.c (get_dsbt_info): Likewise.
12179 * solib-ia64-hpux.c (new_so_list): Likewise.
12180 (ia64_hpux_get_solib_linkage_addr): Likewise.
12181 * solib-spu.c (append_ocl_sos): Likewise.
12182 (spu_current_sos): Likewise.
12183 * solib-svr4.c (get_svr4_info): Likewise.
12184 (svr4_keep_data_in_core): Likewise.
12185 (library_list_start_library): Likewise.
12186 (svr4_default_sos): Likewise.
12187 (svr4_read_so_list): Likewise.
12188 * solib-target.c (library_list_start_library): Likewise.
12189 (solib_target_current_sos): Likewise.
12190 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12191 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12192 * symfile.c (default_symfile_segments): Likewise.
12193 * target-descriptions.c (tdesc_data_init): Likewise.
12194 (tdesc_create_reg): Likewise.
12195 (struct tdesc_type *): Likewise.
12196 (tdesc_create_vector): Likewise.
12197 (tdesc_set_struct_size): Likewise.
12198 (struct tdesc_type *): Likewise.
12199 (tdesc_free_feature): Likewise.
12200 (tdesc_create_feature): Likewise.
12201 * windows-nat.c (windows_add_thread): Likewise.
12202 (windows_make_so): Likewise.
12203 * xml-support.c (gdb_xml_body_text): Likewise.
12204 (gdb_xml_create_parser_and_cleanup): Likewise.
12205 (xml_process_xincludes): Likewise.
12206 * xml-syscall.c (allocate_syscalls_info): Likewise.
12207 (syscall_create_syscall_desc): Likewise.
12208
12209 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12210
12211 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12212 function, with code from i386_stap_parse_special_token.
12213 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12214 (i386_stap_parse_special_token): Move code to the two functions
12215 above; simplify it.
12216
12217 2014-01-09 Pedro Alves <palves@redhat.com>
12218 Hui Zhu <hui@codesourcery.com>
12219
12220 PR gdb/16101
12221 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12222 bp_err_string. Don't mark the location shlib_disabled if the
12223 error thrown wasn't a generic or memory error. Catch errors
12224 thrown while inserting breakpoints in overlayed code. Output
12225 error message of software breakpoints.
12226 * remote.c (remote_insert_breakpoint): If this breakpoint has
12227 target-side commands but this stub doesn't support Z0 packets,
12228 throw NOT_SUPPORTED_ERROR error.
12229 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12230 * target.h (target_insert_breakpoint): Extend comment.
12231 (target_insert_hw_breakpoint): Add comment.
12232
12233 2014-01-08 Pedro Alves <palves@redhat.com>
12234
12235 * remote.c (remote_add_thread): Add threads silently if starting
12236 up.
12237 (remote_notice_new_inferior): If in all-stop, and starting up,
12238 don't call notice_new_inferior.
12239 (get_current_thread): New function, factored out from ...
12240 (add_current_inferior_and_thread): ... this. Adjust.
12241 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12242 found any thread, then select the remote's current thread as GDB's
12243 current thread too.
12244
12245 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12246
12247 * NEWS: Create a new section for the next release branch.
12248 Rename the section of the current branch, now that it has
12249 been cut.
12250
12251 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12252
12253 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12254 * version.in: Bump version to 7.7.50.DATE-cvs.
12255
12256 2014-01-08 Yao Qi <yao@codesourcery.com>
12257
12258 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12259 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12260 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12261
12262 2014-01-08 Yao Qi <yao@codesourcery.com>
12263
12264 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12265 return value of bfd_get_filename to symbol_file_add_from_bfd.
12266
12267 2014-01-08 Pierre Muller <muller@sourceware.org>
12268
12269 Fix PR16201.
12270 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12271 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12272 to prim_record_mininal_symbol_and_info.
12273 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12274 in call to prim_record_minimal_symbol_and_info.
12275 (read_pe_exported_syms): Set index field of section_data.
12276
12277 2014-01-07 Andrew Pinski <apinski@cavium.com>
12278
12279 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12280 * features/aarch64.c: Regenerate.
12281
12282 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12283
12284 * target.c (return_null): Define.
12285 (update_current_target): Use it instead of return_zero for
12286 functions that return a pointer.
12287
12288 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12289
12290 * source.c (add_path): Fix check for duplicated paths in the previously
12291 included paths.
12292
12293 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12294
12295 * ada-lang.c: Remove duplicated include statements.
12296 * alphabsd-nat.c: Ditto.
12297 * amd64-darwin-tdep.c: Ditto.
12298 * amd64fbsd-nat.c: Ditto.
12299 * auto-load.c: Ditto.
12300 * ax-gdb.c: Ditto.
12301 * breakpoint.c: Ditto.
12302 * dbxread.c: Ditto.
12303 * fork-child.c: Ditto.
12304 * gdb_usleep.c: Ditto.
12305 * i386-darwin-tdep.c: Ditto.
12306 * i386fbsd-nat.c: Ditto.
12307 * infcmd.c: Ditto.
12308 * inferior.c: Ditto.
12309 * jv-lang.c: Ditto.
12310 * linux-nat.c: Ditto.
12311 * linux-tdep.c: Ditto.
12312 * m68kbsd-nat.c: Ditto.
12313 * m68klinux-nat.c: Ditto.
12314 * microblaze-tdep.c: Ditto.
12315 * mips-linux-tdep.c: Ditto.
12316 * mn10300-tdep.c: Ditto.
12317 * nto-tdep.c: Ditto.
12318 * opencl-lang.c: Ditto.
12319 * osdata.c: Ditto.
12320 * printcmd.c: Ditto.
12321 * regcache.c: Ditto.
12322 * remote-m32r-sdi.c: Ditto.
12323 * remote.c: Ditto.
12324 * symfile.c: Ditto.
12325 * symtab.c: Ditto.
12326 * tilegx-linux-nat.c: Ditto.
12327 * tilegx-tdep.c: Ditto.
12328 * tracepoint.c: Ditto.
12329 * valops.c: Ditto.
12330 * vaxbsd-nat.c: Ditto.
12331 * windows-nat.c: Ditto.
12332 * xtensa-tdep.c: Ditto.
12333
12334 2014-01-07 Yao Qi <yao@codesourcery.com>
12335
12336 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12337
12338 2014-01-07 Yao Qi <yao@codesourcery.com>
12339 Joel Brobecker <brobecker@adacore.com>
12340
12341 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12342 (pdc_write_regs): Likewise.
12343 (fetch_regs_kernel_thread): Likewise.
12344 (store_regs_kernel_thread): Likewise.
12345
12346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12347
12348 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12349 tagged type objects to their actual type.
12350
12351 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12352
12353 * ada-valprint.c (print_field_values): Add "language" parameter.
12354 Update calls to print_field_values and print_variant_part.
12355 Pass new parameter "language" in call to val_print instead
12356 of "current_language". Replace call to ada_val_print by call
12357 to val_print.
12358 (print_variant_part): Add "language" parameter.
12359 (ada_val_print_struct_union): Update call to print_field_values.
12360
12361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12362
12363 * ada-valprint.c (ui_memcpy): Delete.
12364 (ada_print_floating): Update documentation. Add empty line
12365 between between function documentation and implementation.
12366 Delete variable "buffer". Use ui_file_xstrdup in place of
12367 ui_file_put. Minor adjustments following this change.
12368
12369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12370
12371 * ada-valprint.c (ada_val_print_string): New function,
12372 extracted from ada_val_print_array.
12373 (ada_val_print_array): Replace extracted code by call
12374 to ada_val_print_string followed by a return. Move
12375 "else" branch to the function's top block.
12376
12377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12378
12379 * ada-valprint.c (ada_val_print_array): Move implementation
12380 down. Rename parameter "offset" and "val" into "offset_aligned"
12381 and "original_value" respectively. Add parameter "offset".
12382
12383 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12384
12385 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12386 re-organizing the code. Change the "???" message printed
12387 when target type is a TYPE_CODE_UNDEF into
12388 "<ref to undefined type>".
12389
12390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12391
12392 * ada-valprint.c (print_record): Delete, implementation inlined...
12393 (ada_val_print_struct_union): ... here. Remove call to
12394 ada_check_typedef in inlined implementation.
12395
12396 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12397
12398 * ada-valprint.c (ada_val_print_gnat_array): New function,
12399 extracted from ada_val_print_1;
12400 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12401 (ada_val_print_flt, ada_val_print_struct_union)
12402 (ada_val_print_ref): Likewise.
12403 (ada_val_print_1): Delete variables i and elttype.
12404 Replace extracted-out code by call to corresponding
12405 new functions.
12406
12407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12408
12409 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12410
12411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12412
12413 * ada-valprint.c (ada_val_print_1): Replace calls to
12414 ada_val_print_1 by calls to val_print.
12415
12416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12417
12418 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12419 Update calls to self accordingly. Replace calls to c_val_print
12420 by calls to val_print.
12421
12422 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12423
12424 * ada-valprint.c (print_record): Delete declaration.
12425 (adjust_type_signedness, ada_val_print_1): Likewise.
12426 (ada_val_print): Move function implementation down.
12427 (print_variant_part, print_field_values, print_record):
12428 Move function implementation up.
12429
12430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12431
12432 * python/py-type.c (typy_get_name): New function.
12433 (type_object_getset): Add entry for attribute "name".
12434 * NEWS: Add entry mentioning this new attribute.
12435
12436 2014-01-07 Yao Qi <yao@codesourcery.com>
12437
12438 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12439 statement.
12440
12441 2014-01-07 Yao Qi <yao@codesourcery.com>
12442
12443 * gnu-nat.c (info_port_rights): Add qualifier const to
12444 argument args.
12445
12446 2014-01-07 Yao Qi <yao@codesourcery.com>
12447
12448 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12449
12450 2014-01-07 Yao Qi <yao@codesourcery.com>
12451
12452 * gnu-nat.c (make_inf) Update declaration.
12453 (make_inf): Make it static.
12454 (inf_set_traced): Likewise.
12455 (inf_port_to_thread, inf_task_died_status): Likewise.
12456
12457 2014-01-07 Yao Qi <yao@codesourcery.com>
12458
12459 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12460
12461 2014-01-07 Yao Qi <yao@codesourcery.com>
12462
12463 * gnu-nat.c (_initialize_gnu_nat): Declare.
12464
12465 2014-01-07 Yao Qi <yao@codesourcery.com>
12466
12467 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12468 'enum bfd_endian'.
12469 (struct gdbarch_info) <byte_order>: Change type to
12470 'enum bfd_endian'.
12471 <byte_order_for_code>: Likewise.
12472 * gdbarch.c, gdbarch.h: Regenerated.
12473
12474 2014-01-06 Sasha Smundak <asmundak@google.com>
12475
12476 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12477
12478 2014-01-06 Tom Tromey <tromey@redhat.com>
12479
12480 * doublest.c (convert_doublest_to_floatformat): Use const, not
12481 CONST.
12482 * somread.c (som_symtab_read): Likewise.
12483
12484 2014-01-07 Hui Zhu <hui@codesourcery.com>
12485
12486 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12487 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12488 (gdb_bfd_fopen): Ditto.
12489 (gdb_bfd_openr): Ditto.
12490 (gdb_bfd_openw): Ditto.
12491 (gdb_bfd_openr_iovec): Ditto.
12492 (gdb_bfd_fdopenr): Ditto.
12493 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12494 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12495 with xstrdup.
12496 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12497 with xstrdup.
12498 * symfile-mem.c (symbol_file_add_from_memory): Removed
12499 gdb_bfd_stash_filename.
12500
12501 2014-01-03 Doug Evans <dje@google.com>
12502
12503 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12504 output.
12505
12506 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12507
12508 Update year range in copyright notice of all files.
12509
12510 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12511
12512 * top.c (print_gdb_version): Set copyright year to 2014.
12513
12514 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12515
12516 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12517
12518 For older changes see ChangeLog-2013.
12519 \f
12520 Local Variables:
12521 mode: change-log
12522 left-margin: 8
12523 fill-column: 74
12524 version-control: never
12525 coding: utf-8
12526 End:
This page took 0.545166 seconds and 5 git commands to generate.