]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
infcmd.c (program_info): Fix typo.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-06 Doug Evans <xdje42@gmail.com>
2
3 * infcmd.c (program_info): Fix typo.
4
5 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
6
7 PR gdb/17235
8 * stap-probe.c (stap_parse_single_operand): Delete unused variable
9 'number'. New variable 'has_digit'. Rewrite code to deal with
10 subexpressions on SDT probes.
11
12 2014-09-04 Pedro Alves <palves@redhat.com>
13
14 * c-exp.y (parse_number): Skip handling base-switching prefixes if
15 the input is only one character long.
16
17 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
18
19 PR fortran/17237
20 * f-valprint.c (f_val_print): Specify the correct print option to
21 use when printing integer values.
22
23 2014-09-04 Gary Benson <gbenson@redhat.com>
24
25 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
26 Remove code to cope with LWPs wrapped as PIDs.
27 Add assertions to ensure no wrapped LWPs are passed.
28
29 2014-09-04 Pedro Alves <palves@redhat.com>
30
31 * value.c (value_ranges_copy_adjusted): New function, factored out
32 from ...
33 (value_contents_copy_raw): ... here.
34 (unpack_value_bits_as_long_1): Rename back to ...
35 (unpack_bits_as_long): ... this. Remove 'original_value' and
36 'result' parameters. Change return type to LONGEST.
37 (unpack_value_bits_as_long): Delete.
38 (unpack_value_field_as_long_1): Delete.
39 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
40 (unpack_value_bitfield): New function.
41 (value_field_bitfield): Reimplement using unpack_value_bitfield.
42 (value_fetch_lazy): Use unpack_value_bitfield.
43 * value.h (unpack_value_bits_as_long): Delete declaration.
44
45 2014-09-03 Sasha Smundak <asmundak@google.com>
46
47 * python/py-frame.c (frapy_read_register): New function.
48
49 2014-09-03 James Hogan <james.hogan@imgtec.com>
50
51 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
52 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
53
54 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 PR python/16699
57 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
58 function.
59 (add_cmd): Set "completer_handle_brkchars" to NULL.
60 * cli/cli-decode.h (struct cmd_list_element)
61 <completer_handle_brkchars>: New field.
62 * command.h (completer_ftype_void): New typedef.
63 (set_cmd_completer_handle_brkchars): New prototype.
64 * completer.c (set_gdb_completion_word_break_characters): New
65 function.
66 (complete_line_internal): Call "completer_handle_brkchars"
67 callback from command.
68 * completer.h: Include "command.h".
69 (set_gdb_completion_word_break_characters): New prototype.
70 * python/py-cmd.c (cmdpy_completer_helper): New function.
71 (cmdpy_completer_handle_brkchars): New function.
72 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
73 (cmdpy_init): Set completer_handle_brkchars to
74 cmdpy_completer_handle_brkchars.
75
76 2014-09-03 Gary Benson <gbenson@redhat.com>
77
78 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
79 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
80 Loop conditions changed to equivalent form.
81 (struct x86_debug_reg_state): Updated dr_ref_count comment.
82 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
83 ALL_DEBUG_ADDRESS_REGISTERS.
84
85 2014-09-03 Joel Brobecker <brobecker@adacore.com>
86
87 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
88 description fix.
89
90 2014-09-02 Doug Evans <dje@google.com>
91
92 * typeprint.c (find_global_typedef): Fix comment.
93
94 2014-09-02 Gary Benson <gbenson@redhat.com>
95
96 * i386-nat.h: Renamed as...
97 * x86-nat.h: New file. All type, function and variable name
98 prefixes changed from "i386_" to "x86_". All references updated.
99 * i386-nat.c: Renamed as...
100 * x86-nat.c: New file. All type, function and variable name
101 prefixes changed from "i386_" to "x86_". All references updated.
102 * common/i386-xstate.h: Renamed as...
103 * common/x86-xstate.h: New file. All type, function and variable
104 name prefixes changed from "i386_" to "x86_". All references
105 updated.
106 * nat/i386-cpuid.h: Renamed as...
107 * nat/x86-cpuid.h: New file. All type, function and variable name
108 prefixes changed from "i386_" to "x86_". All references updated.
109 * nat/i386-gcc-cpuid.h: Renamed as...
110 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
111 name prefixes changed from "i386_" to "x86_". All references
112 updated.
113 * nat/i386-dregs.h: Renamed as...
114 * nat/x86-dregs.h: New file. All type, function and variable name
115 prefixes changed from "i386_" to "x86_". All references updated.
116 * nat/i386-dregs.c: Renamed as...
117 * nat/x86-dregs.c: New file. All type, function and variable name
118 prefixes changed from "i386_" to "x86_". All references updated.
119
120 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
121
122 * varobj.c (_initialize_varobj): Move to the end of file.
123
124 2014-08-29 Gary Benson <gbenson@redhat.com>
125
126 * common/common-exceptions.h: New file.
127 * common/common-exceptions.c: Likewise.
128 * Makefile.in (SFILES): Add common/common-exceptions.c.
129 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
130 (COMMON_OBS): Add common-exceptions.o.
131 (common-exceptions.o): New rule.
132 * exceptions.h (common-exceptions.h): Include.
133 (gdb_setjmp.h): Do not include.
134 (return_reason): Moved to common-exceptions.h.
135 (enum return_reason): Likewise.
136 (RETURN_MASK): Likewise.
137 (typedef return_mask): Likewise.
138 (enum errors): Likewise.
139 (struct gdb_exception): Likewise.
140 (exceptions_state_mc_init): Likewise.
141 (exceptions_state_mc_action_iter): Likewise.
142 (exceptions_state_mc_action_iter_1): Likewise.
143 (TRY_CATCH): Likewise.
144 (throw_exception): Likewise.
145 (throw_verror): Likewise.
146 (throw_vquit): Likewise.
147 (throw_error): Likewise.
148 (throw_quit): Likewise.
149 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
150 (enum catcher_action): Likewise.
151 (struct catcher): Likewise.
152 (current_catcher): Likewise.
153 (catcher_list_size): Likewise.
154 (exceptions_state_mc_init): Likewise.
155 (catcher_pop): Likewise.
156 (exceptions_state_mc): Likewise.
157 (exceptions_state_mc_action_iter): Likewise.
158 (exceptions_state_mc_action_iter_1): Likewise.
159 (throw_exception): Likewise.
160 (exception_messages): Likewise.
161 (exception_messages_size): Likewise.
162 (throw_it): Likewise.
163 (throw_verror): Likewise.
164 (throw_vquit): Likewise.
165 (throw_error): Likewise.
166 (throw_quit): Likewise.
167 (prepare_to_throw_exception): New function.
168
169 2014-08-29 Gary Benson <gbenson@redhat.com>
170
171 * common/gdb_setjmp.h: New file.
172 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
173 * configure.ac: Move sigsetjmp check...
174 * common/common.m4: ...here.
175 * configure: Regenerate.
176 * cp-support.c (SIGJMP_BUF): Delete.
177 (SIGSETJMP): Likewise.
178 (SIGLONGJMP): Likewise.
179 * exceptions.h (gdb_setjmp.h): Include.
180 (setjmp.h): Do not include.
181 (EXCEPTIONS_SIGJMP_BUF): Delete.
182 (EXCEPTIONS_SIGSETJMP): Likewise.
183 (EXCEPTIONS_SIGLONGJMP): Likewise.
184 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
185 from gdb_setjmp.h.
186 * exceptions.c: Likewise.
187
188 2014-08-29 Gary Benson <gbenson@redhat.com>
189
190 * cleanups.h: Moved to...
191 * common/cleanups.h: New file.
192 * cleanups.c: Moved to...
193 * common/cleanups.c: New file. Include common-defs.h and
194 cleanups.h. Do not include defs.h.
195 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
196 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
197 (cleanups.o): New rule.
198
199 2014-08-29 Gary Benson <gbenson@redhat.com>
200
201 * common/errors.h (internal_warning): New declaration.
202 (internal_vwarning): Likewise.
203 * common/errors.c (internal_warning): New function.
204 * utils.h (internal_warning): Don't declare.
205 (internal_vwarning): Likewise.
206 * utils.c (internal_warning): Removed.
207
208 2014-08-29 Gary Benson <gbenson@redhat.com>
209
210 * main.c (captured_main): Use warning during startup.
211 Prefix startup warning messages with command name.
212
213 2014-08-29 Gary Benson <gbenson@redhat.com>
214
215 * main.c (captured_main): Handle usage errors with error.
216
217 2014-08-29 Gary Benson <gbenson@redhat.com>
218
219 * go32-nat.c (go32_create_inferior): Replace a fprintf/
220 exit pair with a call to error. Wrap the message with _().
221
222 2014-08-29 Gary Benson <gbenson@redhat.com>
223
224 * main.c (captured_main): Replace a fprintf/exit
225 pair with a call to error. Wrap the message with _().
226
227 2014-08-29 Gary Benson <gbenson@redhat.com>
228
229 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
230 pairs with calls to error. Wrap the message with _().
231
232 2014-08-29 Gary Benson <gbenson@redhat.com>
233
234 * utils.c (vwarning): Protect calls to target_terminal_ours
235 and wrap_here.
236
237 2014-08-29 Gary Benson <gbenson@redhat.com>
238
239 * exceptions.c (print_flush): Protect calls to
240 target_terminal_ours and wrap_here.
241
242 2014-08-29 Gary Benson <gbenson@redhat.com>
243
244 * utils.h (filtered_printing_initialized): New declaration.
245 * utils.c (abort_with_message): New function.
246 (internal_vproblem): Use abort_with_message for first level
247 recursive internal problems, and if gdb_stderr is not set up.
248 Protect calls to target_terminal_ours, begin_line and query.
249
250 2014-08-28 Doug Evans <dje@google.com>
251
252 * symtab.c (in_prologue): Move definition to better spot.
253 (skip_prologue_using_sal): Ditto.
254
255 2014-08-28 Doug Evans <dje@google.com>
256
257 * symtab.c (find_function_start_sal): Move definition to better spot.
258
259 2014-08-28 Yao Qi <yao@codesourcery.com>
260
261 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
262 found_stack_adjust in forward scan. Remove condition check
263 on found_stack_adjust which is always true. Indent the code.
264
265 2014-08-28 Yao Qi <yao@codesourcery.com>
266
267 * dwarf2read.c (dwarf_decode_lines): Update declaration.
268 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
269 (dwarf_decode_lines): Remove argument
270 want_line_info. Remove condition check on want_line_info.
271 Callers update.
272
273 2014-08-27 Doug Evans <dje@google.com>
274
275 * dwarf2read.c (dwarf_record_line): Fix typo.
276
277 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
278
279 * target.h (struct target_ops::to_terminal_save_ours): Remove
280 declaration.
281 (target_terminal_save_ours): Remove macro.
282 * target-delegates.c: Regenerate.
283 * inf-child.c (inf_child_target): Don't set the nonexistent
284 field to_terminal_save_ours.
285 * inferior.h (child_terminal_save_ours): Remove declaration.
286 * terminal.h (gdb_save_tty_state): New declaration.
287 * inflow.c (child_terminal_save_ours): Rename to ...
288 (gdb_save_tty_state): ... this.
289 * tui/tui.c: Include terminal.h.
290 (tui_enable): Use gdb_save_tty_state instead of
291 target_terminal_save_ours.
292 (tui_disable): Likewise.
293
294 2014-08-25 Doug Evans <dje@google.com>
295
296 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
297 Pass NULL instead of 0 for context pointer.
298
299 2014-08-25 Yao Qi <yao@codesourcery.com>
300
301 * dwarf2read.c: Fix grammatical error.
302
303 2014-08-24 Yao Qi <yao@codesourcery.com>
304
305 * dwarf2read.c (scan_partial_symbols): Update comments.
306 Rename argument 'need_pc' with 'set_addrmap'.
307 (add_partial_namespace): Rename argument 'need_pc' with
308 'set_addrmap'.
309 (add_partial_module): Likewise.
310 (add_partial_subprogram): Likewise. Update comments.
311 (dwarf2_name): Fix typo.
312
313 2014-08-22 Doug Evans <dje@google.com>
314
315 PR 17276
316 * dwarf2read.c (dwarf_record_line_p): New function.
317 (dwarf_decode_lines_1): Ignore subsequent line number entries
318 for the same line if any entry had a non-zero discriminator.
319
320 2014-08-22 Doug Evans <dje@google.com>
321
322 * buildsym.h (record_line_ftype): New typedef.
323 (record_line): Use it.
324 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
325 (dwarf_decode_lines_1): Call them.
326
327 2014-08-22 Yao Qi <yao@codesourcery.com>
328
329 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
330 (ctf_end): Remove code.
331
332 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
333
334 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
335 (linux_make_corefile_notes): call update_thread_list, protected against
336 exceptions.
337
338 2014-08-21 Pedro Alves <palves@redhat.com>
339
340 * infcmd.c (attach_command): Remove comment.
341
342 2014-08-21 Bin Cheng <bin.cheng@arm.com>
343
344 * aarch64-linux-nat.c (dr_changed_t): Change the type from
345 unsigned LONGEST to ULONGEST.
346
347 2014-08-20 Pedro Alves <palves@redhat.com>
348
349 * Makefile.in (check-read1): New rule.
350
351 2014-08-20 Joel Brobecker <brobecker@adacore.com>
352
353 * value.c (value_from_contents_and_address): Strip resolved_type's
354 typedef layers before checking its TYPE_DATA_LOCATION.
355
356 2014-08-20 Pedro Alves <palves@redhat.com>
357
358 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
359
360 2014-08-20 Yao Qi <yao@codesourcery.com>
361
362 * amd64-tdep.c (amd64_classify): Add a blank line after the
363 example. Move "*/" to a new line.
364 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
365 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
366 * dwarf2read.c (psymtab_include_file_name): Likewise.
367
368 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
369 Pedro Alves <palves@redhat.com>
370
371 PR symtab/14604
372 PR symtab/14605
373 * ada-lang.c (coerce_unspec_val_to_type): Use
374 value_contents_copy_raw.
375 * ada-valprint.c (val_print_packed_array_elements): Adjust.
376 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
377 * cp-valprint.c (cp_print_value_fields): Let the common printing
378 code handle optimized out values.
379 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
380 * d-valprint.c (dynamic_array_type): Use
381 value_bits_any_optimized_out.
382 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
383 check_any_valid fields.
384 (check_pieced_value_bits): Delete and inline ...
385 (check_pieced_synthetic_pointer): ... here.
386 (check_pieced_value_validity): Delete.
387 (check_pieced_value_invalid): Delete.
388 (pieced_value_funcs): Remove check_validity and check_any_valid
389 fields.
390 (read_pieced_value): Use mark_value_bits_optimized_out.
391 (write_pieced_value): Switch to use
392 mark_value_bytes_optimized_out.
393 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
394 of assuming the whole value is optimized out.
395 * findvar.c (read_frame_register_value): Remove special handling
396 of optimized out registers.
397 (value_from_register): Use mark_value_bytes_optimized_out.
398 * frame-unwind.c (frame_unwind_got_optimized): Use
399 mark_value_bytes_optimized_out.
400 * jv-valprint.c (java_value_print): Adjust.
401 (java_print_value_fields): Let the common printing code handle
402 optimized out values.
403 * mips-tdep.c (mips_print_register): Remove special handling of
404 optimized out registers.
405 * opencl-lang.c (lval_func_check_validity): Delete.
406 (lval_func_check_any_valid): Delete.
407 (opencl_value_funcs): Remove check_validity and check_any_valid
408 fields.
409 * p-valprint.c (pascal_object_print_value_fields): Let the common
410 printing code handle optimized out values.
411 * stack.c (read_frame_arg): Remove special handling of optimized
412 out values. Fetch both VAL and ENTRYVAL before comparing
413 contents. Adjust to value_available_contents_eq rename.
414 * valprint.c (valprint_check_validity)
415 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
416 (val_print_array_elements): Adjust.
417 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
418 (value_bits_any_optimized_out): New function.
419 (value_entirely_covered_by_range_vector): New function, factored
420 out from value_entirely_unavailable.
421 (value_entirely_unavailable): Reimplement.
422 (value_entirely_optimized_out): New function.
423 (insert_into_bit_range_vector): New function, factored out from
424 mark_value_bits_unavailable.
425 (mark_value_bits_unavailable): Reimplement.
426 (struct ranges_and_idx): New struct.
427 (find_first_range_overlap_and_match): New function, factored out
428 from value_available_contents_bits_eq.
429 (value_available_contents_bits_eq): Rename to ...
430 (value_contents_bits_eq): ... this. Check both unavailable
431 contents and optimized out contents.
432 (value_available_contents_eq): Rename to ...
433 (value_contents_eq): ... this.
434 (allocate_value_lazy): Remove reference to the old optimized_out
435 boolean.
436 (allocate_optimized_out_value): Use
437 mark_value_bytes_optimized_out.
438 (require_not_optimized_out): Adjust to check whether the
439 optimized_out vec is empty.
440 (ranges_copy_adjusted): New function, factored out from
441 value_contents_copy_raw.
442 (value_contents_copy_raw): Also copy the optimized out ranges.
443 Assert the destination ranges aren't optimized out.
444 (value_contents_copy): Update comment, remove call to
445 require_not_optimized_out.
446 (value_contents_equal): Adjust to check whether the optimized_out
447 vec is empty.
448 (set_value_optimized_out, value_optimized_out_const): Delete.
449 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
450 New functions.
451 (value_entirely_optimized_out, value_bits_valid): Delete.
452 (value_copy): Take a VEC copy of the 'optimized_out' field.
453 (value_primitive_field): Remove special handling of optimized out.
454 (value_fetch_lazy): Assert that lazy values have no unavailable
455 regions. Use value_bits_any_optimized_out. Remove some special
456 handling for optimized out values.
457 * value.h: Add intro comment about <optimized out> and
458 <unavailable>.
459 (struct lval_funcs): Remove check_validity and check_any_valid
460 fields.
461 (set_value_optimized_out, value_optimized_out_const): Remove.
462 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
463 New declarations.
464 (value_bits_any_optimized_out): New declaration.
465 (value_bits_valid): Delete declaration.
466 (value_available_contents_eq): Rename to ...
467 (value_contents_eq): ... this, and extend comments.
468
469 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
470
471 Fix -fsanitize=address on unreadable inferior strings.
472 * valprint.c (val_print_string): Fix access before BUFFER.
473
474 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
475
476 * target.c (target_struct_size): Remove.
477 (target_struct_allocsize): Remove.
478 (DEFAULT_ALLOCSIZE): Remove.
479 (target_ops_p): New typedef.
480 (DEF_VEC_P (target_ops_p)): New vector type.
481 (target_structs): Change type to VEC (target_ops_p).
482 (add_target_with_completer): Replace "push" code by VEC_safe_push.
483 (find_default_run_target): Rewrite for loop following changes to
484 target_structs.
485
486 2014-08-19 Joel Brobecker <brobecker@adacore.com>
487
488 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
489 Adjust code accordingly. Adjust function description comment.
490
491 2014-08-19 Yao Qi <yao@codesourcery.com>
492
493 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
494 types.
495
496 2014-08-19 Alan Modra <amodra@gmail.com>
497
498 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
499 * config.in: Regenerate.
500 * configure: Regenerate.
501
502 2014-08-19 Tom Tromey <tromey@redhat.com>
503 Gary Benson <gbenson@redhat.com>
504
505 * common/common-debug.h: New file.
506 * common/common-debug.c: Likewise.
507 * debug.c: Likewise.
508 * Makefile.in (SFILES): Add common/common-debug.c.
509 (HFILES_NO_SRCDIR): Add common/common-debug.h.
510 (COMMON_OBS): Add common-debug.o and debug.o.
511 (common-debug.o): New rule.
512 * common/common-defs.h: Include common-debug.h.
513 * common/agent.c (debug_agent_printf): New function.
514 (DEBUG_AGENT): Redefine.
515 * nat/i386-dregs.c (debug_printf): Undefine.
516
517 2014-08-19 Gary Benson <gbenson@redhat.com>
518
519 * common/common-defs.h: Include print-utils.h.
520 * utils.h: Do not include print-utils.h.
521
522 2014-08-19 Tom Tromey <tromey@redhat.com>
523 Gary Benson <gbenson@redhat.com>
524
525 * common/common-types.h: New file.
526 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
527 * common/common-defs.h: Include common-types.h.
528 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
529 (ULONGEST): Remove.
530
531 2014-08-19 Tom Tromey <tromey@redhat.com>
532 Gary Benson <gbenson@redhat.com>
533
534 * common/errors.h: New file.
535 * common/errors.c: Likewise.
536 * Makefile.in (SFILES): Add common/errors.c.
537 (HFILES_NO_SRCDIR): Add common/errors.h.
538 (COMMON_OBS): Add errors.o.
539 (errors.o): New rule.
540 * common/common-defs.h: Include errors.h.
541 * utils.h (perror_with_name, error, verror, warning, vwarning):
542 Don't declare.
543 * common/common-utils.h: (malloc_failure, internal_error):
544 Likewise.
545
546 2014-08-19 Gary Benson <gbenson@redhat.com>
547
548 * utils.c (internal_vproblem): Always print the message.
549
550 2014-08-18 Doug Evans <dje@google.com>
551
552 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
553
554 2014-08-18 Joel Brobecker <brobecker@adacore.com>
555
556 * ada-typeprint.c (type_is_full_subrange_of_target_type):
557 Return 0 if TYPE is dynamic.
558 (print_range): Add handling of dynamic ranges.
559
560 2014-08-18 Keven Boell <keven.boell@intel.com>
561 Joel Brobecker <brobecker@adacore.com>
562
563 * gdbtypes.h (struct main_type): Add field "data_location".
564 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
565 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
566 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
567 a dynamic data location.
568 (resolve_dynamic_type): Add DW_AT_data_location handling.
569 (copy_recursive, copy_type): Copy the data_location information
570 when present.
571 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
572 * value.c (value_from_contents_and_address): Add
573 DW_AT_data_location handling.
574
575 2014-08-18 Keven Boell <keven.boell@intel.com>
576 Joel Brobecker <brobecker@adacore.com>
577
578 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
579 field "get_object_address".
580 * dwarf2expr.c (execute_stack_op): Add handling for
581 DW_OP_push_object_address.
582 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
583 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
584 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
585 (dwarf_expr_get_obj_addr): New function.
586 (dwarf_expr_ctx_funcs): Add get_object_address field.
587 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
588 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
589 (dwarf2_evaluate_property): Add parameter "address". Use it.
590 (needs_get_obj_addr): New function.
591 (needs_frame_ctx_funcs): Add get_object_address field.
592 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
593 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
594 (resolve_dynamic_array): Likewise.
595
596 2014-08-18 Joel Brobecker <brobecker@adacore.com>
597
598 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
599 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
600 fixed value for records and unions for which some GNAT encodings
601 are present.
602
603 2014-08-18 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
606 rewrite to avoid "else if" and "else" constructs. Should be
607 a no-op in practice.
608
609 2014-08-18 Joel Brobecker <brobecker@adacore.com>
610
611 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
612 of lexical block.
613
614 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
615
616 PR c++/17132
617 * eval.c: Update all calls to find_overload_match.
618 * valarith.c: Likewise.
619 (value_user_defined_cpp_op, value_user_defined_op): New
620 argument NOSIDE. Update all callers.
621 * valops.c (find_overload_match): New argument NOSIDE.
622 * value.h (find_overload_match): Update signature.
623
624 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
625
626 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
627 'items' methods instead of 'iteritems' method on dictionaries.
628
629 2014-08-15 Doug Evans <dje@google.com>
630
631 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
632 closer to use.
633
634 2014-08-15 Doug Evans <dje@google.com>
635
636 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
637
638 2014-08-15 Doug Evans <dje@google.com>
639
640 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
641
642 2014-08-15 Doug Evans <dje@google.com>
643
644 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
645 unused.
646
647 2014-08-15 Eli Zaretskii <eliz@gnu.org>
648
649 * dcache.h: Include target.h, to avoid compile time warnings.
650
651 2014-08-15 Joel Brobecker <brobecker@adacore.com>
652
653 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
654 frame_info" partial declaration.
655 * gdbarch.h: Regenerate.
656
657 2014-08-15 Yao Qi <yao@codesourcery.com>
658
659 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
660 Add parameter 'decode_for_pst_p'. Callers update.
661
662 2014-08-13 Yao Qi <yao@codesourcery.com>
663
664 PR build/17104
665 * configure.ac: Use local variable 'pos'.
666 * configure: Regenerated.
667
668 2014-08-11 Doug Evans <dje@google.com>
669
670 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
671 message, it is redundant with "Reading symbols from ..." message.
672
673 2014-08-10 Doug Evans <xdje42@gmail.com>
674
675 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
676
677 2014-08-09 Yao Qi <yao@codesourcery.com>
678
679 PR remote/9053
680 * remote.c (remote_xfer_partial): Remove dead code.
681
682 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
683
684 * ia64-linux-tdep.c: Include "regset.h".
685 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
686 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
687 (ia64_linux_supply_fpregset): New function.
688 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
689 (ia64_linux_regset_from_core_section): New function.
690 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
691 method.
692
693 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
694
695 * m68klinux-tdep.c: Include "regset.h".
696 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
697 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
698 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
699 (m68k_linux_regset_from_core_section): New function.
700 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
701 method.
702
703 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
704
705 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
706 function. Move logic to...
707 (tilegx_linux_regmap): ... this new register map.
708 (tilegx_linux_regset): Refer to register map, replace supply
709 method by regcache_supply_regset, and add collect method.
710 * tilegx-tdep.h (enum tilegx_regnum): New enum value
711 TILEGX_FIRST_EASY_REGNUM.
712
713 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
714
715 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
716 that calls regcache_supply_regset and handles the EPC register
717 separately. Move main logic to...
718 (score7_linux_gregmap): ... this new register map.
719 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
720 (score7_linux_gregset): Refer to register map. Add collect method.
721 (score7_linux_regset_from_core_section): Replace
722 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
723 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
724 (struct regset): Delete unused forward declaraction.
725 (struct pt_regs): Delete structure definition.
726 (elf_gregset_t): Delete typedef.
727
728 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
729
730 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
731 (nios2_core_regset): Add collect method.
732
733 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
734
735 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
736 platform-independent and don't write to read-only input buffer.
737 (m32r_linux_collect_gregset): New function.
738 (m32r_linux_gregset): Add collect method.
739
740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
741
742 * hppa-linux-tdep.c (greg_map): Rename to...
743 (hppa_linux_gregmap): ... this. Also convert to
744 regcache_map_entry format.
745 (hppa_linux_supply_regset): Delete function.
746 (hppa_linux_supply_fpregset): Delete function. Move logic to...
747 (hppa_linux_fpregmap): ... this new register map.
748 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
749 register map, replace supply method by regcache_supply_regset, and
750 add collect method regcache_collect_regset.
751
752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
753
754 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
755 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
756 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
757 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
758 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
759 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
760 (frv_linux_supply_gregset): Replace main logic by call to
761 regcache_supply_regset, but keep clearing gr32-gr63.
762 (frv_linux_supply_fpregset): Delete function.
763 (frv_linux_gregset): Refer to appropriate register map and add
764 regcache_collect_regset as the collect method.
765 (frv_linux_fpregset): Likewise. Also exchange the supply method
766 by regcache_supply_regset.
767
768 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
769
770 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
771 by call to alpha_supply_int_regs.
772 (alpha_linux_collect_gregset): New function.
773 (alpha_linux_supply_fpregset): Replace logic by call to
774 alpha_supply_fp_regs.
775 (alpha_linux_collect_fpregset): New function.
776 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
777
778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
779
780 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
781 by call to regcache_collect_regset.
782 (supply_gregset, supply_fpregset): Call regcache_supply_regset
783 instead of aarch64_linux_supply_gregset/_fpregset.
784 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
785 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
786 header file instead.
787 (aarch64_linux_supply_gregset, supply_gregset_from_core)
788 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
789 functions. Move logic to ...
790 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
791 register maps.
792 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
793 refer to new register maps, replace *_regset_from_core by
794 regcache_supply_regset, and also use regcache_collect_regset.
795 * aarch64-linux-tdep.h: Include "regset.h".
796 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
797 Delete prototypes.
798 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
799 macros, moved from C source file.
800 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
801 variable declarations.
802
803 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
804
805 * s390-linux-nat.c: Include "regset.h".
806 (regmap_gregset): Delete macro.
807 (s390_64_regmap_gregset): New register map for
808 regcache_supply/_collect_regset.
809 (s390_64_gregset): New regset.
810 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
811 (regmap_fpregset): Delete macro.
812 (s390_native_supply, s390_native_collect): Delete functions.
813 (supply_gregset, fill_gregset): Replace s390-specific regmap
814 handling by a call to regcache_supply/_collect_regset.
815 (supply_fpregset, fill_fpregset): Call regcache_supply/
816 _collect_regset instead of s390_native_supply/_collect.
817 (fetch_regset, store_regset): Likewise. Also change the last
818 parameter to a regset instead of a regmap.
819 (s390_linux_fetch_inferior_registers)
820 (390_linux_store_inferior_registers): Adjust last parameter in
821 calls to fetch_regset and store_regset.
822 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
823 (s390_gregmap): ... this. Also make static const and convert to
824 regcache_map_entry format.
825 (s390x_regmap_gregset): Delete.
826 (s390_regmap_fpregset): Rename to...
827 (s390_fpregmap): ... this. Make static const and convert to
828 regcache_map_entry format.
829 (s390_regmap_upper, s390_regmap_last_break)
830 (s390x_regmap_last_break, s390_regmap_system_call)
831 (s390_regmap_tdb): Likewise.
832 (s390_supply_regset, s390_collect_regset): Remove functions.
833 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
834 s390_supply_regset.
835 (s390_gregset, s390_fpregset, s390_upper_regset)
836 (s390_last_break_regset, s390x_last_break_regset)
837 (s390_system_call_regset, s390_tdb_regset): Make global and
838 replace s390_supply/_collect_regset by regcache_supply/
839 _collect_regset.
840 (s390x_gregset): Delete.
841 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
842 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
843 (s390_regmap_fpregset, s390_regmap_last_break)
844 (s390x_regmap_last_break, s390_regmap_system_call)
845 (s390_regmap_tdb): Delete global variable declarations.
846 (s390_gregset, s390_fpregset, s390_last_break_regset)
847 (s390x_last_break_regset, s390_system_call_regset)
848 (s390_tdb_regset): New global variable declarations.
849
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
851
852 * regcache.c: Include "regset.h".
853 (regcache_transfer_regset): New local function.
854 (regcache_supply_regset, regcache_collect_regset): New functions.
855 * regcache.h (struct regcache_map_entry): New structure.
856 (REGCACHE_MAP_SKIP): New enum value.
857 (regcache_supply_regset, regcache_collect_regset): New prototypes.
858
859 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
860
861 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
862 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
863 (ppc_linux_collect_gregset ): Likewise.
864 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
865 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
866 (ppc_collect_vrregset): Likewise.
867 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
868 Likewise.
869
870 2014-08-07 Yao Qi <yao@codesourcery.com>
871
872 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
873 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
874 * remote.c (remote_read_bytes): Likewise.
875
876 2014-08-07 Yao Qi <yao@codesourcery.com>
877
878 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
879
880 2014-08-07 Yao Qi <yao@codesourcery.com>
881
882 PR remote/17230
883 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
884 TARGET_XFER_OK instead of 0.
885
886 2014-08-07 Gary Benson <gbenson@redhat.com>
887
888 * common/common-defs.h: Include errno.h.
889 * defs.h: Do not include errno.h.
890 * ada-typeprint.c: Likewise.
891 * c-typeprint.c: Likewise.
892 * core-regset.c: Likewise.
893 * corefile.c: Likewise.
894 * corelow.c: Likewise.
895 * event-loop.c: Likewise.
896 * f-typeprint.c: Likewise.
897 * gnu-nat.c: Likewise.
898 * go32-nat.c: Likewise.
899 * i386gnu-nat.c: Likewise.
900 * m2-typeprint.c: Likewise.
901 * nat/linux-btrace.c: Likewise.
902 * p-typeprint.c: Likewise.
903 * procfs.c: Likewise.
904 * remote-sim.c: Likewise.
905 * rs6000-nat.c: Likewise.
906 * target.c: Likewise.
907 * typeprint.c: Likewise.
908 * ui-file.c: Likewise.
909 * valops.c: Likewise.
910 * valprint.c: Likewise.
911
912 2014-08-07 Gary Benson <gbenson@redhat.com>
913
914 * common/common-defs.h: Include string.h.
915 * aarch64-tdep.c: Do not include string.h.
916 * ada-exp.y: Likewise.
917 * ada-lang.c: Likewise.
918 * ada-lex.l: Likewise.
919 * ada-typeprint.c: Likewise.
920 * ada-valprint.c: Likewise.
921 * aix-thread.c: Likewise.
922 * alpha-linux-tdep.c: Likewise.
923 * alpha-mdebug-tdep.c: Likewise.
924 * alpha-nat.c: Likewise.
925 * alpha-osf1-tdep.c: Likewise.
926 * alpha-tdep.c: Likewise.
927 * alphanbsd-tdep.c: Likewise.
928 * amd64-dicos-tdep.c: Likewise.
929 * amd64-linux-tdep.c: Likewise.
930 * amd64-nat.c: Likewise.
931 * amd64-sol2-tdep.c: Likewise.
932 * amd64fbsd-tdep.c: Likewise.
933 * amd64obsd-tdep.c: Likewise.
934 * arch-utils.c: Likewise.
935 * arm-linux-nat.c: Likewise.
936 * arm-linux-tdep.c: Likewise.
937 * arm-tdep.c: Likewise.
938 * arm-wince-tdep.c: Likewise.
939 * armbsd-tdep.c: Likewise.
940 * armnbsd-nat.c: Likewise.
941 * armnbsd-tdep.c: Likewise.
942 * armobsd-tdep.c: Likewise.
943 * avr-tdep.c: Likewise.
944 * ax-gdb.c: Likewise.
945 * ax-general.c: Likewise.
946 * bcache.c: Likewise.
947 * bfin-tdep.c: Likewise.
948 * breakpoint.c: Likewise.
949 * build-id.c: Likewise.
950 * buildsym.c: Likewise.
951 * c-exp.y: Likewise.
952 * c-lang.c: Likewise.
953 * c-typeprint.c: Likewise.
954 * c-valprint.c: Likewise.
955 * charset.c: Likewise.
956 * cli-out.c: Likewise.
957 * cli/cli-cmds.c: Likewise.
958 * cli/cli-decode.c: Likewise.
959 * cli/cli-dump.c: Likewise.
960 * cli/cli-interp.c: Likewise.
961 * cli/cli-logging.c: Likewise.
962 * cli/cli-script.c: Likewise.
963 * cli/cli-setshow.c: Likewise.
964 * cli/cli-utils.c: Likewise.
965 * coffread.c: Likewise.
966 * common/agent.c: Likewise.
967 * common/buffer.c: Likewise.
968 * common/buffer.h: Likewise.
969 * common/common-utils.c: Likewise.
970 * common/filestuff.c: Likewise.
971 * common/filestuff.c: Likewise.
972 * common/format.c: Likewise.
973 * common/print-utils.c: Likewise.
974 * common/rsp-low.c: Likewise.
975 * common/signals.c: Likewise.
976 * common/vec.h: Likewise.
977 * common/xml-utils.c: Likewise.
978 * core-regset.c: Likewise.
979 * corefile.c: Likewise.
980 * corelow.c: Likewise.
981 * cp-abi.c: Likewise.
982 * cp-name-parser.y: Likewise.
983 * cp-support.c: Likewise.
984 * cp-valprint.c: Likewise.
985 * cris-tdep.c: Likewise.
986 * d-exp.y: Likewise.
987 * darwin-nat.c: Likewise.
988 * dbxread.c: Likewise.
989 * dcache.c: Likewise.
990 * demangle.c: Likewise.
991 * dicos-tdep.c: Likewise.
992 * disasm.c: Likewise.
993 * doublest.c: Likewise.
994 * dsrec.c: Likewise.
995 * dummy-frame.c: Likewise.
996 * dwarf2-frame.c: Likewise.
997 * dwarf2loc.c: Likewise.
998 * dwarf2read.c: Likewise.
999 * elfread.c: Likewise.
1000 * environ.c: Likewise.
1001 * eval.c: Likewise.
1002 * event-loop.c: Likewise.
1003 * exceptions.c: Likewise.
1004 * exec.c: Likewise.
1005 * expprint.c: Likewise.
1006 * f-exp.y: Likewise.
1007 * f-lang.c: Likewise.
1008 * f-typeprint.c: Likewise.
1009 * f-valprint.c: Likewise.
1010 * fbsd-nat.c: Likewise.
1011 * findcmd.c: Likewise.
1012 * findvar.c: Likewise.
1013 * fork-child.c: Likewise.
1014 * frame.c: Likewise.
1015 * frv-linux-tdep.c: Likewise.
1016 * frv-tdep.c: Likewise.
1017 * gdb.c: Likewise.
1018 * gdb_bfd.c: Likewise.
1019 * gdbarch.c: Likewise.
1020 * gdbarch.sh: Likewise.
1021 * gdbtypes.c: Likewise.
1022 * gnu-nat.c: Likewise.
1023 * gnu-v2-abi.c: Likewise.
1024 * gnu-v3-abi.c: Likewise.
1025 * go-exp.y: Likewise.
1026 * go-lang.c: Likewise.
1027 * go32-nat.c: Likewise.
1028 * guile/guile.c: Likewise.
1029 * guile/scm-auto-load.c: Likewise.
1030 * hppa-hpux-tdep.c: Likewise.
1031 * hppa-linux-nat.c: Likewise.
1032 * hppanbsd-tdep.c: Likewise.
1033 * hppaobsd-tdep.c: Likewise.
1034 * i386-cygwin-tdep.c: Likewise.
1035 * i386-dicos-tdep.c: Likewise.
1036 * i386-linux-tdep.c: Likewise.
1037 * i386-nto-tdep.c: Likewise.
1038 * i386-sol2-tdep.c: Likewise.
1039 * i386-tdep.c: Likewise.
1040 * i386bsd-tdep.c: Likewise.
1041 * i386gnu-nat.c: Likewise.
1042 * i386nbsd-tdep.c: Likewise.
1043 * i386obsd-tdep.c: Likewise.
1044 * i387-tdep.c: Likewise.
1045 * ia64-libunwind-tdep.c: Likewise.
1046 * ia64-linux-nat.c: Likewise.
1047 * inf-child.c: Likewise.
1048 * inf-ptrace.c: Likewise.
1049 * inf-ttrace.c: Likewise.
1050 * infcall.c: Likewise.
1051 * infcmd.c: Likewise.
1052 * inflow.c: Likewise.
1053 * infrun.c: Likewise.
1054 * interps.c: Likewise.
1055 * iq2000-tdep.c: Likewise.
1056 * irix5-nat.c: Likewise.
1057 * jv-exp.y: Likewise.
1058 * jv-lang.c: Likewise.
1059 * jv-typeprint.c: Likewise.
1060 * jv-valprint.c: Likewise.
1061 * language.c: Likewise.
1062 * linux-fork.c: Likewise.
1063 * linux-nat.c: Likewise.
1064 * lm32-tdep.c: Likewise.
1065 * m2-exp.y: Likewise.
1066 * m2-typeprint.c: Likewise.
1067 * m32c-tdep.c: Likewise.
1068 * m32r-linux-nat.c: Likewise.
1069 * m32r-linux-tdep.c: Likewise.
1070 * m32r-rom.c: Likewise.
1071 * m32r-tdep.c: Likewise.
1072 * m68hc11-tdep.c: Likewise.
1073 * m68k-tdep.c: Likewise.
1074 * m68kbsd-tdep.c: Likewise.
1075 * m68klinux-nat.c: Likewise.
1076 * m68klinux-tdep.c: Likewise.
1077 * m88k-tdep.c: Likewise.
1078 * machoread.c: Likewise.
1079 * macrocmd.c: Likewise.
1080 * main.c: Likewise.
1081 * mdebugread.c: Likewise.
1082 * mem-break.c: Likewise.
1083 * memattr.c: Likewise.
1084 * memory-map.c: Likewise.
1085 * mep-tdep.c: Likewise.
1086 * mi/mi-cmd-break.c: Likewise.
1087 * mi/mi-cmd-disas.c: Likewise.
1088 * mi/mi-cmd-env.c: Likewise.
1089 * mi/mi-cmd-stack.c: Likewise.
1090 * mi/mi-cmd-var.c: Likewise.
1091 * mi/mi-cmds.c: Likewise.
1092 * mi/mi-console.c: Likewise.
1093 * mi/mi-getopt.c: Likewise.
1094 * mi/mi-interp.c: Likewise.
1095 * mi/mi-main.c: Likewise.
1096 * mi/mi-parse.c: Likewise.
1097 * microblaze-rom.c: Likewise.
1098 * microblaze-tdep.c: Likewise.
1099 * mingw-hdep.c: Likewise.
1100 * minidebug.c: Likewise.
1101 * minsyms.c: Likewise.
1102 * mips-irix-tdep.c: Likewise.
1103 * mips-linux-tdep.c: Likewise.
1104 * mips-tdep.c: Likewise.
1105 * mips64obsd-tdep.c: Likewise.
1106 * mipsnbsd-tdep.c: Likewise.
1107 * mipsread.c: Likewise.
1108 * mn10300-linux-tdep.c: Likewise.
1109 * mn10300-tdep.c: Likewise.
1110 * monitor.c: Likewise.
1111 * moxie-tdep.c: Likewise.
1112 * mt-tdep.c: Likewise.
1113 * nat/linux-btrace.c: Likewise.
1114 * nat/linux-osdata.c: Likewise.
1115 * nat/linux-procfs.c: Likewise.
1116 * nat/linux-ptrace.c: Likewise.
1117 * nat/linux-waitpid.c: Likewise.
1118 * nbsd-tdep.c: Likewise.
1119 * nios2-linux-tdep.c: Likewise.
1120 * nto-procfs.c: Likewise.
1121 * nto-tdep.c: Likewise.
1122 * objc-lang.c: Likewise.
1123 * objfiles.c: Likewise.
1124 * opencl-lang.c: Likewise.
1125 * osabi.c: Likewise.
1126 * osdata.c: Likewise.
1127 * p-exp.y: Likewise.
1128 * p-lang.c: Likewise.
1129 * p-typeprint.c: Likewise.
1130 * parse.c: Likewise.
1131 * posix-hdep.c: Likewise.
1132 * ppc-linux-nat.c: Likewise.
1133 * ppc-sysv-tdep.c: Likewise.
1134 * ppcfbsd-tdep.c: Likewise.
1135 * ppcnbsd-tdep.c: Likewise.
1136 * ppcobsd-tdep.c: Likewise.
1137 * printcmd.c: Likewise.
1138 * procfs.c: Likewise.
1139 * prologue-value.c: Likewise.
1140 * python/py-auto-load.c: Likewise.
1141 * python/py-gdb-readline.c: Likewise.
1142 * ravenscar-thread.c: Likewise.
1143 * regcache.c: Likewise.
1144 * registry.c: Likewise.
1145 * remote-fileio.c: Likewise.
1146 * remote-m32r-sdi.c: Likewise.
1147 * remote-mips.c: Likewise.
1148 * remote-notif.c: Likewise.
1149 * remote-sim.c: Likewise.
1150 * remote.c: Likewise.
1151 * reverse.c: Likewise.
1152 * rs6000-aix-tdep.c: Likewise.
1153 * ser-base.c: Likewise.
1154 * ser-go32.c: Likewise.
1155 * ser-mingw.c: Likewise.
1156 * ser-pipe.c: Likewise.
1157 * ser-tcp.c: Likewise.
1158 * ser-unix.c: Likewise.
1159 * serial.c: Likewise.
1160 * sh-tdep.c: Likewise.
1161 * sh64-tdep.c: Likewise.
1162 * shnbsd-tdep.c: Likewise.
1163 * skip.c: Likewise.
1164 * sol-thread.c: Likewise.
1165 * solib-dsbt.c: Likewise.
1166 * solib-frv.c: Likewise.
1167 * solib-osf.c: Likewise.
1168 * solib-som.c: Likewise.
1169 * solib-spu.c: Likewise.
1170 * solib-target.c: Likewise.
1171 * solib.c: Likewise.
1172 * somread.c: Likewise.
1173 * source.c: Likewise.
1174 * sparc-nat.c: Likewise.
1175 * sparc-sol2-tdep.c: Likewise.
1176 * sparc-tdep.c: Likewise.
1177 * sparc64-tdep.c: Likewise.
1178 * sparc64fbsd-tdep.c: Likewise.
1179 * sparc64nbsd-tdep.c: Likewise.
1180 * sparcnbsd-tdep.c: Likewise.
1181 * spu-linux-nat.c: Likewise.
1182 * spu-multiarch.c: Likewise.
1183 * spu-tdep.c: Likewise.
1184 * stabsread.c: Likewise.
1185 * stack.c: Likewise.
1186 * std-regs.c: Likewise.
1187 * symfile.c: Likewise.
1188 * symmisc.c: Likewise.
1189 * symtab.c: Likewise.
1190 * target.c: Likewise.
1191 * thread.c: Likewise.
1192 * tilegx-linux-nat.c: Likewise.
1193 * tilegx-tdep.c: Likewise.
1194 * top.c: Likewise.
1195 * tracepoint.c: Likewise.
1196 * tui/tui-command.c: Likewise.
1197 * tui/tui-data.c: Likewise.
1198 * tui/tui-disasm.c: Likewise.
1199 * tui/tui-file.c: Likewise.
1200 * tui/tui-layout.c: Likewise.
1201 * tui/tui-out.c: Likewise.
1202 * tui/tui-regs.c: Likewise.
1203 * tui/tui-source.c: Likewise.
1204 * tui/tui-stack.c: Likewise.
1205 * tui/tui-win.c: Likewise.
1206 * tui/tui-windata.c: Likewise.
1207 * tui/tui-winsource.c: Likewise.
1208 * typeprint.c: Likewise.
1209 * ui-file.c: Likewise.
1210 * ui-out.c: Likewise.
1211 * user-regs.c: Likewise.
1212 * utils.c: Likewise.
1213 * v850-tdep.c: Likewise.
1214 * valarith.c: Likewise.
1215 * valops.c: Likewise.
1216 * valprint.c: Likewise.
1217 * value.c: Likewise.
1218 * varobj.c: Likewise.
1219 * vax-tdep.c: Likewise.
1220 * vaxnbsd-tdep.c: Likewise.
1221 * vaxobsd-tdep.c: Likewise.
1222 * windows-nat.c: Likewise.
1223 * xcoffread.c: Likewise.
1224 * xml-support.c: Likewise.
1225 * xstormy16-tdep.c: Likewise.
1226 * xtensa-linux-nat.c: Likewise.
1227
1228 2014-08-07 Gary Benson <gbenson@redhat.com>
1229
1230 * common/common-defs.h: Include gdb_assert.h.
1231 * aarch64-tdep.c: Do not include gdb_assert.h.
1232 * addrmap.c: Likewise.
1233 * aix-thread.c: Likewise.
1234 * alpha-linux-tdep.c: Likewise.
1235 * alpha-mdebug-tdep.c: Likewise.
1236 * alphanbsd-tdep.c: Likewise.
1237 * amd64-nat.c: Likewise.
1238 * amd64-tdep.c: Likewise.
1239 * amd64bsd-nat.c: Likewise.
1240 * amd64fbsd-nat.c: Likewise.
1241 * amd64fbsd-tdep.c: Likewise.
1242 * amd64nbsd-nat.c: Likewise.
1243 * amd64nbsd-tdep.c: Likewise.
1244 * amd64obsd-nat.c: Likewise.
1245 * amd64obsd-tdep.c: Likewise.
1246 * arch-utils.c: Likewise.
1247 * arm-tdep.c: Likewise.
1248 * armbsd-tdep.c: Likewise.
1249 * auxv.c: Likewise.
1250 * bcache.c: Likewise.
1251 * bfin-tdep.c: Likewise.
1252 * blockframe.c: Likewise.
1253 * breakpoint.c: Likewise.
1254 * bsd-kvm.c: Likewise.
1255 * bsd-uthread.c: Likewise.
1256 * buildsym.c: Likewise.
1257 * c-exp.y: Likewise.
1258 * c-lang.c: Likewise.
1259 * charset.c: Likewise.
1260 * cleanups.c: Likewise.
1261 * cli-out.c: Likewise.
1262 * cli/cli-decode.c: Likewise.
1263 * cli/cli-dump.c: Likewise.
1264 * cli/cli-logging.c: Likewise.
1265 * cli/cli-script.c: Likewise.
1266 * cli/cli-utils.c: Likewise.
1267 * coffread.c: Likewise.
1268 * common/common-utils.c: Likewise.
1269 * common/queue.h: Likewise.
1270 * common/signals.c: Likewise.
1271 * common/vec.h: Likewise.
1272 * complaints.c: Likewise.
1273 * completer.c: Likewise.
1274 * corelow.c: Likewise.
1275 * cp-abi.c: Likewise.
1276 * cp-name-parser.y: Likewise.
1277 * cp-namespace.c: Likewise.
1278 * cp-support.c: Likewise.
1279 * cris-tdep.c: Likewise.
1280 * dbxread.c: Likewise.
1281 * dictionary.c: Likewise.
1282 * doublest.c: Likewise.
1283 * dsrec.c: Likewise.
1284 * dummy-frame.c: Likewise.
1285 * dwarf2-frame-tailcall.c: Likewise.
1286 * dwarf2-frame.c: Likewise.
1287 * dwarf2expr.c: Likewise.
1288 * dwarf2loc.c: Likewise.
1289 * dwarf2read.c: Likewise.
1290 * eval.c: Likewise.
1291 * event-loop.c: Likewise.
1292 * exceptions.c: Likewise.
1293 * expprint.c: Likewise.
1294 * f-valprint.c: Likewise.
1295 * fbsd-nat.c: Likewise.
1296 * findvar.c: Likewise.
1297 * frame-unwind.c: Likewise.
1298 * frame.c: Likewise.
1299 * frv-tdep.c: Likewise.
1300 * gcore.c: Likewise.
1301 * gdb-dlfcn.c: Likewise.
1302 * gdb_bfd.c: Likewise.
1303 * gdbarch.c: Likewise.
1304 * gdbarch.sh: Likewise.
1305 * gdbtypes.c: Likewise.
1306 * gnu-nat.c: Likewise.
1307 * gnu-v3-abi.c: Likewise.
1308 * go-lang.c: Likewise.
1309 * guile/scm-exception.c: Likewise.
1310 * guile/scm-gsmob.c: Likewise.
1311 * guile/scm-lazy-string.c: Likewise.
1312 * guile/scm-math.c: Likewise.
1313 * guile/scm-pretty-print.c: Likewise.
1314 * guile/scm-safe-call.c: Likewise.
1315 * guile/scm-utils.c: Likewise.
1316 * guile/scm-value.c: Likewise.
1317 * h8300-tdep.c: Likewise.
1318 * hppa-hpux-nat.c: Likewise.
1319 * hppa-tdep.c: Likewise.
1320 * hppanbsd-tdep.c: Likewise.
1321 * hppaobsd-tdep.c: Likewise.
1322 * i386-darwin-nat.c: Likewise.
1323 * i386-darwin-tdep.c: Likewise.
1324 * i386-nto-tdep.c: Likewise.
1325 * i386-tdep.c: Likewise.
1326 * i386bsd-nat.c: Likewise.
1327 * i386fbsd-tdep.c: Likewise.
1328 * i386gnu-nat.c: Likewise.
1329 * i386nbsd-tdep.c: Likewise.
1330 * i386obsd-tdep.c: Likewise.
1331 * i387-tdep.c: Likewise.
1332 * ia64-libunwind-tdep.c: Likewise.
1333 * ia64-tdep.c: Likewise.
1334 * inf-ptrace.c: Likewise.
1335 * inf-ttrace.c: Likewise.
1336 * infcall.c: Likewise.
1337 * infcmd.c: Likewise.
1338 * infrun.c: Likewise.
1339 * inline-frame.c: Likewise.
1340 * interps.c: Likewise.
1341 * jv-lang.c: Likewise.
1342 * jv-typeprint.c: Likewise.
1343 * linux-fork.c: Likewise.
1344 * linux-nat.c: Likewise.
1345 * linux-thread-db.c: Likewise.
1346 * m32c-tdep.c: Likewise.
1347 * m32r-linux-nat.c: Likewise.
1348 * m32r-tdep.c: Likewise.
1349 * m68k-tdep.c: Likewise.
1350 * m68kbsd-nat.c: Likewise.
1351 * m68kbsd-tdep.c: Likewise.
1352 * m88k-tdep.c: Likewise.
1353 * machoread.c: Likewise.
1354 * macroexp.c: Likewise.
1355 * macrotab.c: Likewise.
1356 * maint.c: Likewise.
1357 * mdebugread.c: Likewise.
1358 * memory-map.c: Likewise.
1359 * mep-tdep.c: Likewise.
1360 * mi/mi-common.c: Likewise.
1361 * microblaze-tdep.c: Likewise.
1362 * mingw-hdep.c: Likewise.
1363 * mips-linux-nat.c: Likewise.
1364 * mips-linux-tdep.c: Likewise.
1365 * mips-tdep.c: Likewise.
1366 * mips64obsd-tdep.c: Likewise.
1367 * mipsnbsd-tdep.c: Likewise.
1368 * mn10300-linux-tdep.c: Likewise.
1369 * mn10300-tdep.c: Likewise.
1370 * moxie-tdep.c: Likewise.
1371 * mt-tdep.c: Likewise.
1372 * nat/linux-btrace.c: Likewise.
1373 * nat/linux-osdata.c: Likewise.
1374 * nat/linux-ptrace.c: Likewise.
1375 * nat/mips-linux-watch.c: Likewise.
1376 * nios2-linux-tdep.c: Likewise.
1377 * nios2-tdep.c: Likewise.
1378 * objc-lang.c: Likewise.
1379 * objfiles.c: Likewise.
1380 * obsd-nat.c: Likewise.
1381 * opencl-lang.c: Likewise.
1382 * osabi.c: Likewise.
1383 * parse.c: Likewise.
1384 * ppc-linux-nat.c: Likewise.
1385 * ppc-sysv-tdep.c: Likewise.
1386 * ppcfbsd-nat.c: Likewise.
1387 * ppcfbsd-tdep.c: Likewise.
1388 * ppcnbsd-nat.c: Likewise.
1389 * ppcnbsd-tdep.c: Likewise.
1390 * ppcobsd-nat.c: Likewise.
1391 * ppcobsd-tdep.c: Likewise.
1392 * printcmd.c: Likewise.
1393 * procfs.c: Likewise.
1394 * prologue-value.c: Likewise.
1395 * psymtab.c: Likewise.
1396 * python/py-lazy-string.c: Likewise.
1397 * python/py-value.c: Likewise.
1398 * regcache.c: Likewise.
1399 * reggroups.c: Likewise.
1400 * registry.c: Likewise.
1401 * remote-sim.c: Likewise.
1402 * remote.c: Likewise.
1403 * rs6000-aix-tdep.c: Likewise.
1404 * rs6000-tdep.c: Likewise.
1405 * s390-linux-tdep.c: Likewise.
1406 * score-tdep.c: Likewise.
1407 * ser-base.c: Likewise.
1408 * ser-mingw.c: Likewise.
1409 * sh-tdep.c: Likewise.
1410 * sh64-tdep.c: Likewise.
1411 * solib-darwin.c: Likewise.
1412 * solib-spu.c: Likewise.
1413 * solib-svr4.c: Likewise.
1414 * source.c: Likewise.
1415 * sparc-nat.c: Likewise.
1416 * sparc-sol2-tdep.c: Likewise.
1417 * sparc-tdep.c: Likewise.
1418 * sparc64-sol2-tdep.c: Likewise.
1419 * sparc64-tdep.c: Likewise.
1420 * sparc64fbsd-tdep.c: Likewise.
1421 * sparc64nbsd-tdep.c: Likewise.
1422 * sparc64obsd-tdep.c: Likewise.
1423 * sparcnbsd-tdep.c: Likewise.
1424 * sparcobsd-tdep.c: Likewise.
1425 * spu-multiarch.c: Likewise.
1426 * spu-tdep.c: Likewise.
1427 * stabsread.c: Likewise.
1428 * stack.c: Likewise.
1429 * symfile.c: Likewise.
1430 * symtab.c: Likewise.
1431 * target-descriptions.c: Likewise.
1432 * target-memory.c: Likewise.
1433 * target.c: Likewise.
1434 * tic6x-linux-tdep.c: Likewise.
1435 * tic6x-tdep.c: Likewise.
1436 * tilegx-linux-nat.c: Likewise.
1437 * tilegx-tdep.c: Likewise.
1438 * top.c: Likewise.
1439 * tramp-frame.c: Likewise.
1440 * tui/tui-out.c: Likewise.
1441 * tui/tui-winsource.c: Likewise.
1442 * ui-out.c: Likewise.
1443 * user-regs.c: Likewise.
1444 * utils.c: Likewise.
1445 * v850-tdep.c: Likewise.
1446 * valops.c: Likewise.
1447 * value.c: Likewise.
1448 * varobj.c: Likewise.
1449 * vax-nat.c: Likewise.
1450 * xml-syscall.c: Likewise.
1451 * xml-tdesc.c: Likewise.
1452 * xstormy16-tdep.c: Likewise.
1453 * xtensa-linux-nat.c: Likewise.
1454 * xtensa-tdep.c: Likewise.
1455
1456 2014-08-07 Gary Benson <gbenson@redhat.com>
1457
1458 * common/common-defs.h: Include common-utils.h.
1459 * defs.h: Do not include common-utils.h.
1460 * common/gdb_assert.h: Likewise.
1461 * darwin-nat.h: Likewise.
1462 * nat/linux-btrace.c: Likewise.
1463 * target/waitstatus.h: Likewise.
1464
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1466
1467 * common/common-defs.h: Include ptid.h.
1468 * defs.h: Do not include ptid.h.
1469 * inferior.h: Likewise.
1470 * infrun.h: Likewise.
1471 * nat/linux-btrace.h: Likewise.
1472 * nat/linux-osdata.h: Likewise.
1473 * target/waitstatus.h: Likewise.
1474
1475 2014-08-07 Gary Benson <gbenson@redhat.com>
1476
1477 * common/common-defs.h: Include gdb_locale.h.
1478 * defs.h: Do not include gdb_locale.h.
1479
1480 2014-08-07 Gary Benson <gbenson@redhat.com>
1481
1482 * common/common-defs.h: Include gdb/signals.h.
1483 * defs.h: Do not include gdb/signals.h.
1484
1485 2014-08-07 Gary Benson <gbenson@redhat.com>
1486
1487 * common/common-defs.h: Include pathmax.h.
1488 * defs.h: Do not include pathmax.h.
1489
1490 2014-08-07 Gary Benson <gbenson@redhat.com>
1491
1492 * common/common-defs.h: Include libiberty.h.
1493 * defs.h: Do not include libiberty.h.
1494 * common/queue.h: Likewise.
1495 * cp-name-parser.y: Likewise.
1496 * mi/mi-cmd-catch.c: Likewise.
1497 * python/python.c: Likewise.
1498
1499 2014-08-07 Gary Benson <gbenson@redhat.com>
1500
1501 * common/common-defs.h: Include ansidecl.h.
1502 * defs.h: Do not include ansidecl.h.
1503 * common/buffer.h: Likewise.
1504 * common/common-utils.h: Likewise.
1505
1506 2014-08-07 Gary Benson <gbenson@redhat.com>
1507
1508 * common/common-defs.h: Include stddef.h.
1509 * defs.h: Do not include stddef.h.
1510 * common/common-utils.h: Likewise.
1511 * amd64fbsd-nat.c: Likewise.
1512 * bcache.c: Likewise.
1513 * charset.c: Likewise.
1514 * common/buffer.h: Likewise.
1515 * common/vec.h: Likewise.
1516 * i386bsd-nat.c: Likewise.
1517 * nat/linux-btrace.h: Likewise.
1518 * ppcfbsd-nat.c: Likewise.
1519 * ppcnbsd-tdep.h: Likewise.
1520 * ppcobsd-nat.c: Likewise.
1521 * ppcobsd-tdep.h: Likewise.
1522 * python/py-gdb-readline.c: Likewise.
1523
1524 2014-08-07 Gary Benson <gbenson@redhat.com>
1525
1526 * common/common-defs.h: Include stdarg.h.
1527 * defs.h: Do not include stdarg.h.
1528 * ada-lang.c: Likewise.
1529 * common/common-utils.h: Likewise.
1530 * guile/scm-string.c: Likewise.
1531 * guile/scm-utils.c: Likewise.
1532 * m32c-tdep.c: Likewise.
1533
1534 2014-08-07 Gary Benson <gbenson@redhat.com>
1535
1536 * common/common-defs.h: Include stdlib.h.
1537 * defs.h: Do not include stdlib.h.
1538 * addrmap.c: Likewise.
1539 * bcache.c: Likewise.
1540 * common/buffer.c: Likewise.
1541 * common/common-utils.c: Likewise.
1542 * cp-name-parser.y: Likewise.
1543 * go32-nat.c: Likewise.
1544 * mn10300-linux-tdep.c: Likewise.
1545 * nat/linux-osdata.c: Likewise.
1546 * tui/tui.c: Likewise.
1547 * windows-nat.c: Likewise.
1548
1549 2014-08-07 Gary Benson <gbenson@redhat.com>
1550
1551 * common/common-defs.h: Include stdio.h.
1552 * defs.h: Do not include stdio.h.
1553 * ada-lang.c: Likewise.
1554 * common/buffer.c: Likewise.
1555 * common/common-utils.c: Likewise.
1556 * cp-name-parser.y: Likewise.
1557 * gnu-nat.c: Likewise.
1558 * go32-nat.c: Likewise.
1559 * i386gnu-nat.c: Likewise.
1560 * proc-api.c: Likewise.
1561 * proc-events.c: Likewise.
1562 * proc-flags.c: Likewise.
1563 * proc-why.c: Likewise.
1564 * python/python-internal.h: Likewise.
1565 * target-memory.c: Likewise.
1566 * tui/tui-io.c: Likewise.
1567 * tui/tui.c: Likewise.
1568
1569 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1570
1571 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1572 (scan_dyntag_auxv): Same.
1573
1574 2014-08-06 Yao Qi <yao@codesourcery.com>
1575
1576 * amd64-linux-nat.c: Remove duplicated include
1577 "x86-linux-nat.h".
1578 * i386-linux-nat.c: Likewise.
1579
1580 2014-08-06 Yao Qi <yao@codesourcery.com>
1581
1582 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1583 operand" with "Special opcode" in comments.
1584
1585 2014-08-05 Gary Benson <gbenson@redhat.com>
1586
1587 * interps.c (initialize_interps): Remove prototype.
1588 (interpreter_initialized): Remove static global.
1589 (interp_add): Do not call initialize_interps.
1590 (initialize_interps): Remove function.
1591
1592 2014-08-05 Gary Benson <gbenson@redhat.com>
1593
1594 * utils.c (vwarning): Remove spurious va_end.
1595
1596 2014-08-05 Alan Modra <amodra@gmail.com>
1597
1598 * charset.c (convert_between_encodings): Cast result of obstack_base.
1599 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1600 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1601 (read_unwind_info): Use size_t for some locals.
1602 * jit.c (finalize_symtab): Likewise.
1603 * utils.c (hashtab_obstack_allocate): Likewise.
1604 * symmisc.c (print_objfile_statistics): Update format strings.
1605
1606 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1607
1608 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1609 (Changes in GDB 7.8): ... here.
1610
1611 2014-08-04 Tom Tromey <tromey@redhat.com>
1612
1613 * target.c (set_targetdebug): New function.
1614 (initialize_targets): Pass set_targetdebug when creating "set
1615 debug target".
1616
1617 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1618
1619 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1620 if detecting a variable-sized field that is not the last field.
1621 Fix struct type length computation.
1622
1623 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1624
1625 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1626 Add debug trace.
1627
1628 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1629
1630 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1631 Remove "+ 8" offset in computation of CHAIN_VMA.
1632
1633 2014-07-31 Doug Evans <dje@google.com>
1634
1635 * inflow.c (child_terminal_inferior): Add comment.
1636 (child_terminal_ours_for_output): Add comment.
1637 (child_terminal_ours): Add comment.
1638 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1639 (linux_nat_terminal_ours): Add comment.
1640
1641 2014-07-31 Gary Benson <gbenson@redhat.com>
1642
1643 * common/btrace-common.h: Do not include defs.h or server.h.
1644 * nat/mips-linux-watch.h: Likewise.
1645 * gdb-dlfcn.h: Do not include defs.h.
1646 * tracefile.h: Likewise.
1647
1648 2014-07-30 Roland McGrath <mcgrathr@google.com>
1649
1650 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1651
1652 2014-07-30 Tom Tromey <tromey@redhat.com>
1653
1654 * bsd-kvm.c (bsd_kvm_open): Constify.
1655 * corelow.c (core_open): Constify.
1656 * ctf.c (ctf_open): Constify.
1657 * dbug-rom.c (dbug_open): Constify.
1658 * exec.c (exec_open): Constify.
1659 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1660 * microblaze-rom.c (picobug_open): Constify.
1661 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1662 Constify.
1663 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1664 * record-btrace.c (record_btrace_open): Constify.
1665 * record-full.c (record_full_core_open_1, record_full_open_1)
1666 (record_full_open): Constify.
1667 * remote-m32r-sdi.c (m32r_open): Constify.
1668 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1669 (rockhopper_open, lsi_open): Constify.
1670 * remote-sim.c (gdbsim_open): Constify.
1671 * remote.c (remote_open, extended_remote_open, remote_open_1):
1672 Constify.
1673 * target.h (struct target_ops) <to_open>: Make "arg" const.
1674 * tracefile-tfile.c (tfile_open): Constify.
1675
1676 2014-07-30 Tom Tromey <tromey@redhat.com>
1677
1678 * breakpoint.c (map_breakpoint_numbers): Update.
1679 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1680 (get_number_const): New function.
1681 (get_number): Rewrite using get_number_const.
1682 (init_number_or_range): Make "string" const.
1683 (number_is_in_list): Make "list" const.
1684 * cli/cli-utils.h (get_number_const): Declare.
1685 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1686 (init_number_or_range, number_is_in_list): Update.
1687 * printcmd.c (map_display_numbers): Update.
1688 * value.c (value_from_history_ref): Constify.
1689 * value.h (value_from_history_ref): Update.
1690
1691 2014-07-30 Tom Tromey <tromey@redhat.com>
1692
1693 * corefile.c (hook_type, call_extra_exec_file_hooks)
1694 (specify_exec_file_hook): Constify.
1695 * exec.c (exec_file_attach): Make "filename" const.
1696 * gdbcore.h (deprecated_exec_file_display_hook)
1697 (specify_exec_file_hook, exec_file_attach): Constify.
1698 * main.c (captured_main): Use catch_command_errors_const.
1699
1700 2014-07-30 Tom Tromey <tromey@redhat.com>
1701
1702 * target.c (open_target): New function.
1703 (add_target_with_completer, add_deprecated_target_alias): Use
1704 set_cmd_sfunc, set_cmd_context.
1705 (debug_to_open): Remove.
1706 (setup_target_debug): Update.
1707
1708 2014-07-30 Yao Qi <yao@codesourcery.com>
1709
1710 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1711 comments.
1712 * parse.c (exp_iterate): Update comments.
1713
1714 2014-07-30 Gary Benson <gbenson@redhat.com>
1715
1716 * common/common-defs.h: New file.
1717 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1718 * defs.h: Include common-defs.h.
1719 Do not include config.h or build-gnulib/config.h.
1720
1721 2014-07-30 Gary Benson <gbenson@redhat.com>
1722
1723 * common/common-utils.h: Do not include config.h.
1724 * nat/linux-btrace.h: Likewise.
1725
1726 2014-07-30 Gary Benson <gbenson@redhat.com>
1727
1728 * btrace.c: Include defs.h.
1729 * common/ptid.c: Include defs.h or server.h as appropriate.
1730 * nat/mips-linux-watch.c: Likewise.
1731
1732 2014-07-29 Tom Tromey <tromey@redhat.com>
1733
1734 * target.c (target_is_pushed): Simplify.
1735
1736 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1737
1738 GDB 7.8 released.
1739
1740 2014-07-29 Yao Qi <yao@codesourcery.com>
1741
1742 PR gdb/17206
1743 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1744
1745 2014-07-28 Doug Evans <xdje42@gmail.com>
1746
1747 PR guile/17203
1748 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1749 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1750 parameters.
1751
1752 2014-07-28 Will Newton <will.newton@linaro.org>
1753
1754 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1755 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1756 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1757 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1758 (THUMB2_EABI_SYSCALL): Likewise.
1759 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1760 struct tramp_frame.
1761 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1762 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1763
1764 2014-07-27 Doug Evans <xdje42@gmail.com>
1765
1766 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1767
1768 2014-07-27 Doug Evans <xdje42@gmail.com>
1769
1770 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1771
1772 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1773 Doug Evans <xdje42@gmail.com>
1774
1775 PR guile/17146
1776 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1777 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1778 * configure.ac: Try to use guild to compile an scm file, if it fails
1779 then disable guile support.
1780 * configure: Regenerate.
1781 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1782 GUILE_FILE_LIST.
1783 (GUILE_COMPILED_FILES): New variable.
1784 (GUILE_FILES) Update.
1785 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1786 (stamp-guile): Compile scm files.
1787 * guile/guile.c (boot_guile_support): New function.
1788 (standard_throw_args_p): New function.
1789 (print_standard_throw_error, print_throw_error): New functions.
1790 (handle_boot_error): New function.
1791 (initialize_scheme_side): Rewrite to call boot_guile_support.
1792 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1793 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1794
1795 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1796 Doug Evans <xdje42@gmail.com>
1797
1798 PR guile/17146
1799 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1800 * guile/lib/gdb/support.scm: New file.
1801 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1802 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1803 All uses updated.
1804 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1805 All uses updated.
1806 (%assert-type): Ditto, and renamed to assert-type.
1807 (%exception-print-style): Delete.
1808
1809 2014-07-26 Doug Evans <xdje42@gmail.com>
1810
1811 PR build/17105
1812 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1813 * configure: Regenerate.
1814 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1815 PYTHON_FILES.
1816 (PYTHON_FILES): New variable.
1817 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1818 (GUILE_FILES): New variable.
1819 (stamp-python, install-python, uninstall-python): Handle empty
1820 file list.
1821 (stamp-guile, install-guile, uninstall-guile): Ditto.
1822
1823 2014-07-26 Doug Evans <xdje42@gmail.com>
1824
1825 PR guile/17177
1826 * guile/lib/gdb.scm (pretty-printers): Export.
1827 (set-pretty-printers!): Export.
1828 * guile/lib/gdb/printing.scm (gdb module): Update.
1829 (prepend-pretty-printer!, append-pretty-printer!): Update.
1830 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1831 (pretty_printer_list_var): Delete.
1832 (pretty_printer_list): New static global.
1833 (gdbscm_pretty_printers): New function.
1834 (gdbscm_set_pretty_printers_x): New function.
1835 (ppscm_find_pretty_printer_from_gdb): Update.
1836 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1837 (gdbscm_initialize_pretty_printers): Update.
1838
1839 2014-07-26 Doug Evans <xdje42@gmail.com>
1840
1841 PR 17185
1842 * configure.ac: Add check for header gc/gc.h.
1843 Add check for function setenv.
1844 * configure: Regenerate.
1845 * config.in: Regenerate.
1846 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1847
1848 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1849
1850 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1851 variation in gdbarch matching.
1852
1853 2014-07-25 Tom Tromey <tromey@redhat.com>
1854
1855 * exec.c (using_exec_ops): Remove.
1856 (exec_close_1): Update. Remove extraneous block, reindent.
1857 (add_target_sections): Use target_is_pushed.
1858
1859 2014-07-25 Pedro Alves <palves@redhat.com>
1860
1861 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1862 * monitor.c (monitor_create_inferior): Likewise.
1863 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1864 * remote-sim.c (gdbsim_create_inferior): Likewise.
1865 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1866 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1867 * windows-nat.c (do_initial_windows_stuff): Likewise.
1868
1869 2014-07-25 Pedro Alves <palves@redhat.com>
1870
1871 * NEWS: Mention signal passing and "signal" command changes.
1872 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1873 comment.
1874 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1875 call.
1876 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1877 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1878 (jump_command): Adjust clear_proceed_status call.
1879 (signal_command): Warn if other thread that are resumed have
1880 signals that will be delivered. Adjust clear_proceed_status call.
1881 (until_next_command, finish_command)
1882 (proceed_after_attach_callback, attach_command_post_wait)
1883 (attach_command): Adjust clear_proceed_status call.
1884 * infrun.c (proceed_after_vfork_done): Likewise.
1885 (proceed_after_attach_callback): Adjust comment.
1886 (clear_proceed_status_thread): Clear stop_signal if not in pass
1887 state.
1888 (clear_proceed_status_callback): Delete.
1889 (clear_proceed_status): New 'step' parameter. Only clear the
1890 proceed status of threads the command being prepared is about to
1891 resume.
1892 (proceed): If passed in an explicit signal, override stop_signal
1893 with it. Don't pass the last stop signal to the thread we're
1894 resuming.
1895 (init_wait_for_inferior): Adjust clear_proceed_status call.
1896 (switch_back_to_stepped_thread): Clear the signal if it should not
1897 be passed.
1898 * infrun.h (clear_proceed_status): New 'step' parameter.
1899 (user_visible_resume_ptid): Add comment.
1900 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1901 signal is in pass state.
1902 * remote.c (append_pending_thread_resumptions): Likewise.
1903 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1904
1905 2014-07-25 Tom Tromey <tromey@redhat.com>
1906
1907 * target.h (target_stopped_data_address)
1908 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1909 parentheses.
1910
1911 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1912
1913 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1914 comments.
1915 (avr_pointer_to_address): Likewise.
1916
1917 2014-07-24 Tom Tromey <tromey@redhat.com>
1918
1919 * monitor.c (compile_pattern): Update.
1920 * target.h (struct target_ops) <to_shortname, to_longname,
1921 to_doc>: Now const.
1922
1923 2014-07-24 Tom Tromey <tromey@redhat.com>
1924
1925 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1926 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1927 (add_info_alias, add_com): Make "doc" const.
1928 (print_doc_line): Make "str" const.
1929 (delete_cmd): Update.
1930 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1931 (print_doc_line): Update.
1932 * cli/cli-script.c (document_command): Update.
1933 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1934 (add_com, add_info, add_info_alias): Update.
1935 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1936 * python/py-cmd.c (cmdpy_destroyer): Update.
1937
1938 2014-07-24 Tom Tromey <tromey@redhat.com>
1939
1940 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1941 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1942 (help_cmd_list): Constify.
1943 (lookup_cmd): Update.
1944 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1945 const.
1946 (help_cmd_list, apropos_cmd): Update.
1947 * cli/cli-script.c (show_user): Update.
1948 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1949 * cli/cli-setshow.h (cmd_show_list): Update.
1950 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1951 (cmd_show_list): Update.
1952 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1953 * python/py-cmd.c (cmdpy_destroyer): Update.
1954
1955 2014-07-24 Tom Tromey <tromey@redhat.com>
1956
1957 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1958 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1959 const.
1960 * command.h (deprecate_cmd): Update.
1961 * maint.c (maintenance_do_deprecate): Add casts.
1962
1963 2014-07-24 Tom Tromey <tromey@redhat.com>
1964
1965 * cli/cli-decode.c (help_cmd): Make parameter "const".
1966 * cli/cli-decode.h (help_cmd): Update.
1967
1968 2014-07-24 Tom Tromey <tromey@redhat.com>
1969
1970 * stack.c (up_silently_base, down_silently_base): Make argument
1971 const.
1972
1973 2014-07-24 Tom Tromey <tromey@redhat.com>
1974
1975 * solib.c (solib_add): Make "pattern" const.
1976 * solib.h (solib_add): Update.
1977
1978 2014-07-24 Tom Tromey <tromey@redhat.com>
1979
1980 * remote.c (remote_serial_open, print_packet, putpkt)
1981 (putpkt_binary): Constify.
1982 * remote.h (putpkt): Update.
1983
1984 2014-07-24 Tom Tromey <tromey@redhat.com>
1985
1986 * monitor.c (monitor_open): Make "args" const.
1987 * monitor.h (monitor_open): Update.
1988
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1990
1991 * maint.c (match_bfd_flags): Make "string" const.
1992 (print_bfd_section_info): Remove casts.
1993 (print_objfile_section_info): Make "string" const.
1994
1995 2014-07-24 Tom Tromey <tromey@redhat.com>
1996
1997 * inf-child.c (inf_child_open_target): Make "arg" const.
1998 * inf-child.h (inf_child_open_target): Update.
1999
2000 2014-07-24 Tom Tromey <tromey@redhat.com>
2001
2002 * environ.c (unset_in_environ): Make "var" const.
2003 * environ.h (unset_in_environ): Update.
2004
2005 2014-07-24 Tom Tromey <tromey@redhat.com>
2006
2007 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2008 Make "cmd" const.
2009 (scan_filename_with_cleanup): Likewise.
2010 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2011 Make arguments const.
2012 (restore_command): Update.
2013
2014 2014-07-24 Pedro Alves <palves@redhat.com>
2015
2016 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2017
2018 2014-07-24 Tom Tromey <tromey@redhat.com>
2019 Gary Benson <gbenson@redhat.com>
2020
2021 * nat/linux-ptrace.c (additional_flags): New global.
2022 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2023 additional_flags; don't check GDBSERVER.
2024 (linux_ptrace_set_additional_flags): New function.
2025 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2026 Declare.
2027 * linux-nat.c (_initialize_linux_nat): Call
2028 linux_ptrace_set_additional_flags.
2029
2030 2014-07-24 Tom Tromey <tromey@redhat.com>
2031
2032 * make-target-delegates (munge_type, write_debugmethod): New
2033 functions.
2034 (debug_names): New global.
2035 ($TARGET_DEBUG_PRINTER): New global.
2036 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2037 name.
2038 Write debug methods. Generate init_debug_target.
2039 * target-debug.h: New file.
2040 * target-delegates.c: Rebuild.
2041 * target.c: Include target-debug.h.
2042 (debug_target): Hoist definition.
2043 (target_kill, target_get_section_table, target_memory_map)
2044 (target_flash_erase, target_flash_done, target_detach)
2045 (target_disconnect, target_wait, target_resume)
2046 (target_pass_signals, target_program_signals, target_follow_fork)
2047 (target_mourn_inferior, target_search_memory)
2048 (target_thread_address_space, target_close)
2049 (target_find_new_threads, target_core_of_thread)
2050 (target_verify_memory, target_insert_mask_watchpoint)
2051 (target_remove_mask_watchpoint): Remove targetdebug code.
2052 (debug_to_post_attach, debug_to_prepare_to_store)
2053 (debug_to_files_info, debug_to_insert_breakpoint)
2054 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2055 (debug_to_region_ok_for_hw_watchpoint)
2056 (debug_to_can_accel_watchpoint_condition)
2057 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2058 (debug_to_watchpoint_addr_within_range)
2059 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2060 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2061 (debug_to_terminal_init, debug_to_terminal_inferior)
2062 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2063 (debug_to_terminal_save_ours, debug_to_terminal_info)
2064 (debug_to_load, debug_to_post_startup_inferior)
2065 (debug_to_insert_fork_catchpoint)
2066 (debug_to_remove_fork_catchpoint)
2067 (debug_to_insert_vfork_catchpoint)
2068 (debug_to_remove_vfork_catchpoint)
2069 (debug_to_insert_exec_catchpoint)
2070 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2071 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2072 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2073 (setup_target_debug): Call init_debug_target.
2074 * target.h (TARGET_DEBUG_PRINTER): New macro.
2075 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2076 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2077
2078 2014-07-24 Gary Benson <gbenson@redhat.com>
2079
2080 * exceptions.h (throw_vfatal): Renamed to...
2081 (throw_vquit): New declaration.
2082 (throw_quit): Likewise.
2083 * exceptions.c (throw_vfatal): Renamed to...
2084 (throw_vquit): New function.
2085 (throw_quit): Likewise.
2086 (throw_error): Call throw_verror rather than throw_it.
2087 * utils.h (vfatal): Removed.
2088 (fatal): Likewise.
2089 * utils.c (vfatal): Removed.
2090 (fatal): Likewise.
2091 (internal_verror): Replaced call to fatal with call to throw_quit.
2092 (quit): Replaced calls to fatal with calls to throw_quit.
2093
2094 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2095
2096 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2097 target_read_code.
2098
2099 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2100
2101 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2102 less than zero in conditional expression.
2103
2104 2014-07-23 Tom Tromey <tromey@redhat.com>
2105
2106 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2107 ($INTRO_PART): Don't match whitespace.
2108 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2109 argument matching.
2110 ($METHOD): Add $METHOD_TRAILER.
2111 (trim): Rewrite.
2112 (scan_target_h): New sub.
2113 Change main loop not to collect state.
2114 * target-delegates.c: Rebuild.
2115
2116 2014-07-23 Gary Benson <gbenson@redhat.com>
2117
2118 * cp-support.c (gdb_demangle): Fix build on systems without
2119 sigaltstack.
2120
2121 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2122
2123 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2124 for reference entry value target data value.
2125
2126 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2127
2128 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2129 value_available_contents_eq.
2130
2131 2014-07-22 Pedro Alves <palves@redhat.com>
2132
2133 * value.c (allocate_optimized_out_value): Don't mark value as
2134 non-lazy.
2135
2136 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2137
2138 * MAINTAINERS (Write After Approval): Update my email address.
2139
2140 2014-07-20 Doug Evans <dje@google.com>
2141
2142 PR server/17147
2143 * remote.c (putpkt_binary): Add text to error message.
2144
2145 2014-07-20 Yao Qi <yao@codesourcery.com>
2146
2147 * eval.c: Remove "Chill" from comments.
2148 * gdbtypes.h: Likewise.
2149 * symtab.h: Likewise.
2150
2151 2014-07-20 Yao Qi <yao@codesourcery.com>
2152
2153 * std-operator.def: Update comments to TERNOP_SLICE.
2154
2155 2014-07-20 Yao Qi <yao@codesourcery.com>
2156
2157 * std-operator.def: Remove BINOP_RANGE.
2158 * breakpoint.c (watchpoint_exp_is_const): Update.
2159 * expprint.c (dump_subexp_body_standard): Likewise.
2160 * eval.c (init_array_element): Remove dead code.
2161 (evaluate_subexp_standard): Likewise.
2162
2163 2014-07-20 Yao Qi <yao@codesourcery.com>
2164
2165 * std-operator.def: Remove BINOP_IN.
2166 * breakpoint.c (watchpoint_exp_is_const): Update.
2167 * eval.c (evaluate_subexp_standard): Likewise.
2168 * expprint.c (dump_subexp_body_standard): Likewise.
2169
2170 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2171
2172 * microblaze-tdep.c (microblaze_register_names): Add
2173 the rshr and rslr register names.
2174 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2175 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2176 Use of tdesc_numbered_register. Use of
2177 microblaze_register_g_packet_guesses. Use of
2178 tdesc_use_registers. Use of set_gdbarch_register_type.
2179 (microblaze_register_g_packet_guesses): New.
2180 * microblaze-tdep.h (microblaze_reg_num): Add
2181 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2182 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2183 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2184 * features/microblaze-core.xml: New file.
2185 * features/microblaze-stack-protect.xml: New file.
2186 * features/microblaze-with-stack-protect.c: New file.
2187 * features/microblaze-with-stack-protect.xml: New file.
2188 * features/microblaze.xml: New file.
2189 * features/microblaze.c: New file.
2190 * features/Makefile (microblaze-with-stack-protect): Add
2191 microblaze-with-stack-protect microblaze and microblaze-expedite.
2192 * regformats/microblaze-with-stack-protect.dat: New file.
2193 * regformats/microblaze.dat: New file.
2194 * doc/gdb.texinfo (MicroBlaze Features): Added.
2195
2196 2014-07-18 Tom Tromey <tromey@redhat.com>
2197
2198 * exec.c (exec_ops): Now static.
2199 * exec.h (exec_ops): Don't declare.
2200
2201 2014-07-18 Tom Tromey <tromey@redhat.com>
2202
2203 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2204 to find_target_beneath.
2205 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2206 find_target_beneath.
2207 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2208
2209 2014-07-18 Tom Tromey <tromey@redhat.com>
2210
2211 PR gdb/17130:
2212 * utils.c (quit): Use target_supports_terminal_ours.
2213 * target.h (target_supports_terminal_ours): Declare.
2214 * target.c (target_supports_delete_record): Don't check
2215 to_delete_record against NULL.
2216 (target_supports_terminal_ours): New function.
2217
2218 2014-07-18 Tom Tromey <tromey@redhat.com>
2219
2220 PR gdb/17130:
2221 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2222 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2223 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2224 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2225 * windows-nat.c (windows_xfer_partial): Always delegate.
2226 * record-btrace.c (record_btrace_xfer_partial): Simplify
2227 delegation.
2228 (record_btrace_fetch_registers, record_btrace_store_registers)
2229 (record_btrace_prepare_to_store, record_btrace_resume)
2230 (record_btrace_wait, record_btrace_find_new_threads)
2231 (record_btrace_thread_alive): Likewise.
2232 * procfs.c (procfs_xfer_partial): Always delegate.
2233 * corelow.c (core_xfer_partial): Always delegate.
2234 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2235
2236 2014-07-18 Tom Tromey <tromey@redhat.com>
2237
2238 * exec.c (exec_make_note_section): Move earlier.
2239
2240 2014-07-17 Doug Evans <dje@google.com>
2241
2242 PR gdb/17170
2243 * maint.c (count_symtabs_and_blocks): Handle NULL
2244 current_program_space.
2245 (report_command_stats): Check global enabled flag in addition to
2246 recorded enabled flag.
2247 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2248
2249 2014-07-16 Pedro Alves <palves@redhat.com>
2250
2251 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2252
2253 2014-07-16 Tom Tromey <tromey@redhat.com>
2254
2255 * target.h (struct target_ops) <to_delete_record>: Reformat
2256 comment.
2257
2258 2014-07-16 Tom Tromey <tromey@redhat.com>
2259
2260 * target-delegates.c: Rebuild.
2261
2262 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2263
2264 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2265 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2266 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2267 (avr_pointer_to_address): Likewise.
2268 (avr_address_class_type_flags): New function.
2269 (avr_address_class_type_flags_to_name): Likewise.
2270 (avr_address_class_name_to_type_flags): Likewise.
2271 (avr_gdbarch_init): Set address_class_type_flags,
2272 address_class_type_flags_to_name and
2273 address_class_name_to_type_flags.
2274
2275 2014-07-15 Pedro Alves <palves@redhat.com>
2276
2277 * linux-nat.c (kill_callback): Save errno and work with saved
2278 copy.
2279
2280 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2281
2282 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2283
2284 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2285
2286 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2287 breakpoint support correctly.
2288
2289 2014-07-14 Pedro Alves <palves@redhat.com>
2290
2291 * utils.c (prompt_for_continue): Call target_terminal_ours.
2292
2293 2014-07-14 Pedro Alves <palves@redhat.com>
2294
2295 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2296 catch_errors. Don't re-enable stdin or notify observers where,
2297 and rethrow error.
2298 (fetch_inferior_event_wrapper): Delete.
2299
2300 2014-07-14 Pedro Alves <palves@redhat.com>
2301
2302 PR gdb/17072
2303 * top.c: Include "inf-loop.h".
2304 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2305 field.
2306 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2307 was async before.
2308 (gdb_readline_wrapper): Store whether the target is async, and
2309 make it sync.
2310
2311 2014-07-14 Pedro Alves <palves@redhat.com>
2312
2313 PR gdb/17072
2314 * top.c (gdb_readline_wrapper_line): Tweak comment.
2315 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2316 the input handler callback.
2317
2318 2014-07-14 Pedro Alves <palves@redhat.com>
2319
2320 PR gdb/17072
2321 * main.c: Include event-top.h.
2322 (handle_command_errors): New function.
2323 (catch_command_errors, catch_command_errors_const): Use it.
2324
2325 2014-07-14 Pedro Alves <palves@redhat.com>
2326
2327 * exceptions.c (catch_command_errors, catch_command_errors_const):
2328 Moved to main.c.
2329 * exceptions.h (catch_command_errors_ftype)
2330 (catch_command_errors_const_ftype): Moved to main.c.
2331 (catch_command_errors, catch_command_errors_const): Delete
2332 declarations.
2333 * main.c (catch_command_errors_ftype)
2334 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2335 (catch_command_errors, catch_command_errors_const)): Moved here
2336 from exceptions.c and make static.
2337
2338 2014-07-14 Pedro Alves <palves@redhat.com>
2339
2340 * exceptions.c (print_any_exception): Delete.
2341 (catch_exceptions_with_msg): Use exception_print instead of
2342 print_any_exception.
2343 (catch_errors): Use exception_fprintf instead of
2344 print_any_exception.
2345 (catch_command_errors, catch_command_errors_const): Use
2346 exception_print instead of print_any_exception.
2347
2348 2014-07-14 Pedro Alves <palves@redhat.com>
2349
2350 * infcall.c (run_inferior_call): Set 'sync_execution' while
2351 running the inferior call.
2352
2353 2014-07-14 Pedro Alves <palves@redhat.com>
2354
2355 * value.c (value_contents_equal): Delete function.
2356 * value.h (value_contents_equal): Delete declaration.
2357
2358 2014-07-14 Tom Tromey <tromey@redhat.com>
2359
2360 PR exp/17106:
2361 * gdbtypes.c (is_dynamic_type_internal): New function, from
2362 is_dynamic_type.
2363 (is_dynamic_type): Rewrite.
2364 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2365 (resolve_dynamic_struct): Likewise.
2366 (resolve_dynamic_type_internal): New function, from
2367 resolve_dynamic_type.
2368 (resolve_dynamic_type): Rewrite.
2369
2370 2014-07-14 Tom Tromey <tromey@redhat.com>
2371
2372 * target.c (target_require_runnable): Also check record_stratum.
2373 Update comment.
2374
2375 2014-07-11 Yao Qi <yao@codesourcery.com>
2376
2377 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2378 thumb_instruction_restores_sp return true.
2379
2380 2014-07-11 Yao Qi <yao@codesourcery.com>
2381
2382 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2383 (thumb_in_function_epilogue_p): Call
2384 thumb_instruction_restores_sp.
2385
2386 2014-07-11 Yao Qi <yao@codesourcery.com>
2387
2388 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2389 'add sp, #imm'.
2390 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2391
2392 2014-07-11 Gary Benson <gbenson@redhat.com>
2393
2394 * amd64-linux-nat.c (gdbcore.h): Remove include.
2395 (regset.h): Likewise.
2396 (nat/linux-btrace.h): Likewise.
2397 (btrace.h): Likewise.
2398 (gdb_assert.h): Likewise.
2399 (string.h): Likewise.
2400 (sys/uio.h): Likewise.
2401 (sys/debugreg.h): Likewise.
2402 (sys/syscall.h): Likewise.
2403 (sys/procfs.h): Likewise.
2404 (sys/user.h): Likewise.
2405 (asm/ptrace.h): Likewise.
2406 (i386-nat.h): Likewise.
2407 * i386-linux-nat.c (i386-nat.h): Likewise.
2408 (regset.h): Likewise.
2409 (target.h): Likewise.
2410 (linux-nat.h): Likewise.
2411 (nat/linux-btrace.h): Likewise.
2412 (btrace.h): Likewise.
2413 (gdb_assert.h): Likewise.
2414 (string.h): Likewise.
2415 (sys/uio.h): Likewise.
2416 (sys/user.h): Likewise.
2417 (sys/procfs.h): Likewise.
2418 (sys/reg.h): Likewise.
2419 (sys/debugreg.h): Likewise.
2420 (ORIG_EAX): Remove definition.
2421
2422 2014-07-11 Gary Benson <gbenson@redhat.com>
2423
2424 * i386-linux-nat.h: New file.
2425 * x86-linux-nat.h: Likewise.
2426 * x86-linux-nat.c: Likewise.
2427 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2428 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2429 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2430 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2431 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2432 (PTRACE_SETREGSET): Likewise.
2433 (arch_lwp_info): Now in x86-linux-nat.c.
2434 (have_ptrace_getregset): Now in x86-linux-nat.h.
2435 (x86_linux_dr_get): Now in x86-linux-nat.c.
2436 (x86_linux_dr_set): Likewise.
2437 (x86_linux_dr_get_addr): Likewise.
2438 (x86_linux_dr_get_control): Likewise.
2439 (x86_linux_dr_get_status): Likewise.
2440 (update_debug_registers_callback): Likewise.
2441 (x86_linux_dr_set_control): Likewise.
2442 (x86_linux_dr_set_addr): Likewise.
2443 (x86_linux_prepare_to_resume): Likewise.
2444 (x86_linux_new_thread): Likewise.
2445 (x86_linux_new_fork): Likewise.
2446 (x86_linux_get_thread_area): Likewise.
2447 (super_post_startup_inferior): Likewise.
2448 (x86_linux_child_post_startup_inferior): Likewise.
2449 (AMD64_LINUX_USER64_CS): Likewise.
2450 (AMD64_LINUX_X32_DS): Likewise.
2451 (x86_linux_read_description): Likewise.
2452 (x86_linux_enable_btrace): Likewise.
2453 (x86_linux_disable_btrace): Likewise.
2454 (x86_linux_teardown_btrace): Likewise.
2455 (x86_linux_read_btrace): Likewise.
2456 (x86_linux_create_target): Likewise.
2457 (x86_linux_add_target): Likewise.
2458 * i386-linux-nat.c (x86-linux-nat.h): New include.
2459 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2460 (PTRACE_SETREGSET): Likewise.
2461 (arch_lwp_info): Now in x86-linux-nat.c.
2462 (have_ptrace_getregset): Now in x86-linux-nat.h.
2463 (x86_linux_dr_get): Now in x86-linux-nat.c.
2464 (x86_linux_dr_set): Likewise.
2465 (x86_linux_dr_get_addr): Likewise.
2466 (x86_linux_dr_get_control): Likewise.
2467 (x86_linux_dr_get_status): Likewise.
2468 (update_debug_registers_callback): Likewise.
2469 (x86_linux_dr_set_control): Likewise.
2470 (x86_linux_dr_set_addr): Likewise.
2471 (x86_linux_prepare_to_resume): Likewise.
2472 (x86_linux_new_thread): Likewise.
2473 (x86_linux_new_fork): Likewise.
2474 (x86_linux_get_thread_area): Likewise.
2475 (super_post_startup_inferior): Likewise.
2476 (x86_linux_child_post_startup_inferior): Likewise.
2477 (AMD64_LINUX_USER64_CS): Likewise.
2478 (AMD64_LINUX_X32_DS): Likewise.
2479 (x86_linux_read_description): Likewise.
2480 (x86_linux_enable_btrace): Likewise.
2481 (x86_linux_disable_btrace): Likewise.
2482 (x86_linux_teardown_btrace): Likewise.
2483 (x86_linux_read_btrace): Likewise.
2484 (x86_linux_create_target): Likewise.
2485 (x86_linux_add_target): Likewise.
2486
2487 2014-07-11 Gary Benson <gbenson@redhat.com>
2488
2489 * amd64-linux-nat.c: Comment and whitespace changes.
2490 * i386-linux-nat.c: Comment and whitespace changes.
2491
2492 2014-07-11 Gary Benson <gbenson@redhat.com>
2493
2494 * amd64-linux-nat.c (x86_linux_create_target): New function.
2495 (x86_linux_add_target): Likewise.
2496 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2497 * i386-linux-nat.c (x86_linux_create_target): New function.
2498 (x86_linux_add_target): Likewise.
2499 (_initialize_i386_linux_nat): Delegate to the above new functions.
2500
2501 2014-07-11 Gary Benson <gbenson@redhat.com>
2502
2503 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2504 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2505 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2506 (ps_get_thread_area): Delegate to the above.
2507
2508 2014-07-11 Gary Benson <gbenson@redhat.com>
2509
2510 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2511 x86_linux_read_description. All uses updated. amd64-specific
2512 code conditionalized. Conditionalized i386-specific code added.
2513 Redundant cast removed.
2514 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2515 x86_linux_read_description. All uses updated. i386-specific
2516 code conditionalized. Conditionalized amd64-specific code added.
2517 One sizeof replaced with the actual type it is describing.
2518
2519 2014-07-11 Gary Benson <gbenson@redhat.com>
2520
2521 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2522 x86_linux_dr_get. All uses updated.
2523 (amd64_linux_dr_set): Renamed to
2524 x86_linux_dr_set. All uses updated.
2525 (amd64_linux_dr_get_addr): Renamed to
2526 x86_linux_dr_get_addr. All uses updated.
2527 (amd64_linux_dr_get_control): Renamed to
2528 x86_linux_dr_get_control. All uses updated.
2529 (amd64_linux_dr_get_status): Renamed to
2530 x86_linux_dr_get_status. All uses updated.
2531 (amd64_linux_dr_set_control): Renamed to
2532 x86_linux_dr_set_control. All uses updated.
2533 (amd64_linux_dr_set_addr): Renamed to
2534 x86_linux_dr_set_addr. All uses updated.
2535 (amd64_linux_prepare_to_resume): Renamed to
2536 x86_linux_prepare_to_resume. All uses updated.
2537 (amd64_linux_new_thread): Renamed to
2538 x86_linux_new_thread. All uses updated.
2539 (amd64_linux_new_fork): Renamed to
2540 x86_linux_new_fork. All uses updated.
2541 (amd64_linux_child_post_startup_inferior): Renamed to
2542 x86_linux_child_post_startup_inferior. All uses updated.
2543 (amd64_linux_enable_btrace): Renamed to
2544 x86_linux_enable_btrace. All uses updated.
2545 (amd64_linux_disable_btrace): Renamed to
2546 x86_linux_disable_btrace. All uses updated.
2547 (amd64_linux_teardown_btrace): Renamed to
2548 x86_linux_teardown_btrace. All uses updated.
2549 (amd64_linux_read_btrace): Renamed to
2550 x86_linux_read_btrace. All uses updated.
2551 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2552 x86_linux_dr_get. All uses updated.
2553 (i386_linux_dr_set): Renamed to
2554 x86_linux_dr_set. All uses updated.
2555 (i386_linux_dr_get_addr): Renamed to
2556 x86_linux_dr_get_addr. All uses updated.
2557 (i386_linux_dr_get_control): Renamed to
2558 x86_linux_dr_get_control. All uses updated.
2559 (i386_linux_dr_get_status): Renamed to
2560 x86_linux_dr_get_status. All uses updated.
2561 (i386_linux_dr_set_control): Renamed to
2562 x86_linux_dr_set_control. All uses updated.
2563 (i386_linux_dr_set_addr): Renamed to
2564 x86_linux_dr_set_addr. All uses updated.
2565 (i386_linux_prepare_to_resume): Renamed to
2566 x86_linux_prepare_to_resume. All uses updated.
2567 (i386_linux_new_thread): Renamed to
2568 x86_linux_new_thread. All uses updated.
2569 (i386_linux_new_fork): Renamed to
2570 x86_linux_new_fork. All uses updated.
2571 (i386_linux_child_post_startup_inferior): Renamed to
2572 x86_linux_child_post_startup_inferior. All uses updated.
2573 (i386_linux_enable_btrace): Renamed to
2574 x86_linux_enable_btrace. All uses updated.
2575 (i386_linux_disable_btrace): Renamed to
2576 x86_linux_disable_btrace. All uses updated.
2577 (i386_linux_teardown_btrace): Renamed to
2578 x86_linux_teardown_btrace. All uses updated.
2579 (i386_linux_read_btrace): Renamed to
2580 x86_linux_read_btrace. All uses updated.
2581
2582 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2583
2584 * remote.c (extended_remote_post_attach): New function.
2585 (init_extended_remote_ops): Install it as to_post_attach method.
2586
2587 2014-07-09 Pedro Alves <palves@redhat.com>
2588
2589 * infcmd.c (attach_command_post_wait): Don't call
2590 target_terminal_inferior here.
2591 (attach_command): Call it here instead.
2592
2593 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2596 field.
2597 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2598 from varobj.c, with additional checks.
2599 (c_varobj_ops): Fill in is_path_expr_parent field.
2600 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2601 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2602 field.
2603 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2604 ops method.
2605 (varobj_default_is_path_expr_parent): New function.
2606 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2607 (varobj_default_is_path_expr_parent): Declare new function.
2608
2609 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2610
2611 * infcmd.c (finish_backward): Turn internal error into normal error.
2612
2613 2014-07-07 Pedro Alves <palves@redhat.com>
2614
2615 PR gdb/17096
2616 * remote.c (async_handle_remote_sigint)
2617 (async_handle_remote_sigint_twice): Call
2618 gdb_call_async_signal_handler instead of
2619 mark_async_signal_handler.
2620
2621 2014-07-07 Tom Tromey <tromey@redhat.com>
2622
2623 * target-delegates.c: Rebuild.
2624 * target.c (target_info_record): Remove.
2625 * record.c (info_record_command): Unconditionally call
2626 to_info_record.
2627 * target.h (struct target_ops) <to_info_record>: Use
2628 TARGET_DEFAULT_IGNORE.
2629 (target_info_record): Remove.
2630
2631 2014-07-07 Tom Tromey <tromey@redhat.com>
2632
2633 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2634 TARGET_DEFAULT_NORETURN.
2635 * target.c (generic_tls_error): New function.
2636 (target_translate_tls_address): Don't search target stack.
2637 * target-delegates.c: Rebuild.
2638 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2639 stack.
2640 * linux-thread-db.c (thread_db_get_thread_local_address):
2641 Unconditionally call beneath target.
2642
2643 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2644
2645 * cli/cli-logging.c (pop_output_files): Assign targerr to
2646 gdb_stdtargerr.
2647
2648 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2649
2650 * MAINTAINERS (Write After Approval): Update my email address.
2651
2652 2014-07-02 Gary Benson <gbenson@redhat.com>
2653
2654 * proc-service.c (ps_xfer_memory): Update comment.
2655 (ps_pstop): Remove unused function.
2656 (ps_pcontinue): Likewise.
2657 (ps_lstop): Likewise.
2658 (ps_lcontinue): Likewise.
2659 (ps_lgetxregsize): Likewise.
2660 (ps_lgetxregs): Likewise.
2661 (ps_lsetxregs): Likewise.
2662 (ps_plog): Likewise.
2663 (ps_ptread): Likewise.
2664 (ps_ptwrite): Likewise.
2665
2666 2014-07-01 Mark Wielaard <mjw@redhat.com>
2667
2668 * dwarf2read.c (add_array_cv_type): New function.
2669 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2670 (read_tag_volatile_type): Likewise.
2671
2672 2014-07-01 Tom Tromey <tromey@redhat.com>
2673
2674 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2675 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2676 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2677 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2678 * command.h (cmd_cfunc_ftype): Move earlier.
2679 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2680 (add_com, add_info): Use cmd_cfunc_ftype.
2681
2682 2014-06-30 Tom Tromey <tromey@redhat.com>
2683
2684 * symtab.c (operator_chars): Make parameters and return type
2685 const.
2686 (file_matches): Make "files" const.
2687 (struct search_symbols_data) <files>: Now const.
2688 (search_symbols): Make "regexp" and "files" parameters const.
2689 Update.
2690 (symtab_symbol_info): Remove cast.
2691 (rbreak_command): Update.
2692 * symtab.h (search_symbols): Update.
2693
2694 2014-06-27 Yao Qi <yao@codesourcery.com>
2695
2696 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2697 Change parameter type to 'struct thread_info *'. Caller
2698 updated.
2699 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2700 Update declaration.
2701 * dummy-frame.c (struct dummy_frame_id): New.
2702 (dummy_frame_id_eq): New function.
2703 (struct dummy_frame) <id>: Change its type to 'struct
2704 dummy_frame_id'.
2705 (dummy_frame_push): Add parameter ptid and save it in
2706 dummy_frame_id.
2707 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2708 inferior_ptid.
2709 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2710 to inferior_ptid.
2711 (lookup_dummy_frame): Change parameter type to 'struct
2712 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2713 instead of frame_id_eq.
2714 (dummy_frame_pop): Add parameter ptid. Callers updated.
2715 Update comments. Compose dummy_frame_id and pass it to
2716 lookup_dummy_frame.
2717 (dummy_frame_discard): Add parameter ptid.
2718 (dummy_frame_sniffer): Compose dummy_frame_id and call
2719 dummy_frame_id_eq instead of frame_id_eq.
2720 (fprint_dummy_frames): Print ptid.
2721 * dummy-frame.h: Remove comments.
2722 (dummy_frame_push): Add ptid in declaration.
2723 (dummy_frame_pop, dummy_frame_discard): Likewise.
2724
2725 2014-06-26 Tom Tromey <tromey@redhat.com>
2726
2727 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2728 * command.h (error_no_arg): Update.
2729
2730 2014-06-26 Tom Tromey <tromey@redhat.com>
2731
2732 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2733 (do_show_command): Make "arg" const.
2734 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2735
2736 2014-06-26 Tom Tromey <tromey@redhat.com>
2737
2738 * record-full.c (record_full_get_bookmark): Make "args" const.
2739 (record_full_goto_bookmark): Make "raw_bookmark" const.
2740 * record.c (record_goto): New function.
2741 (cmd_record_goto): Use it. Now static.
2742 * record.h (record_goto): Declare.
2743 (cmd_record_goto): Remove declaration.
2744 * target-delegates.c: Rebuild.
2745 * target.h (struct target_ops) <to_get_bookmark,
2746 to_goto_bookmark>: Make parameter const.
2747
2748 2014-06-26 Tom Tromey <tromey@redhat.com>
2749
2750 * defs.h (generic_load): Update.
2751 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2752 * monitor.c (monitor_load): Make "args" const.
2753 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2754 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2755 const.
2756 (mips_load): Make "file" const.
2757 * remote-sim.c (gdbsim_load): Make "args" const.
2758 * remote.c (remote_load): Make "name" const.
2759 * symfile.c (generic_load): Make "args" const.
2760 * target-delegates.c: Rebuild.
2761 * target.c (target_load): Make "arg" const.
2762 (debug_to_load): Make "args" const.
2763 * target.h (struct target_ops) <to_load>: Make parameter const.
2764 (target_load): Update.
2765
2766 2014-06-26 Tom Tromey <tromey@redhat.com>
2767
2768 PR symtab/16902:
2769 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2770 (dwarf2_physname, read_partial_die)
2771 (guess_partial_die_structure_name, fixup_partial_die)
2772 (guess_full_die_structure_name, anonymous_struct_prefix)
2773 (dwarf2_name): Use per-BFD obstack.
2774
2775 2014-06-26 Yao Qi <yao@codesourcery.com>
2776
2777 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2778 dummyframe and this_id into inner block below.
2779
2780 2014-06-26 Yao Qi <yao@codesourcery.com>
2781
2782 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2783 with "signal_pass[0]" in the initialization of signal_pass.
2784
2785 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2786
2787 * record-btrace.c (record_btrace_generating_corefile)
2788 (record_btrace_prepare_to_generate_core)
2789 (record_btrace_done_generating_core): New.
2790 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2791 (record_btrace_store_registers, record_btrace_prepare_to_store):
2792 Forward request when generating a core file.
2793 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2794 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2795 to_done_generating_core.
2796
2797 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2798
2799 * target.h (target_ops) <to_prepare_to_generate_core>
2800 <to_done_generating_core>: New.
2801 (target_prepare_to_generate_core, target_done_generating_core): New.
2802 * target.c (target_prepare_to_generate_core)
2803 (target_done_generating_core): New.
2804 * target-delegates.c: Regenerate.
2805 * gcore.c: (write_gcore_file): Rename to ...
2806 (write_gcore_file_1): ...this.
2807 (write_gcore_file): Call target_prepare_to_generate_core
2808 and target_done_generating_core.
2809
2810 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2811
2812 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2813 * gcore.c (write_gcore_file): Free memory returned from
2814 make_corefile_notes.
2815 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2816 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2817
2818 2014-06-24 Yao Qi <yao@codesourcery.com>
2819
2820 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2821 (arm_linux_init_abi): Set skip_trampoline_code with
2822 gdbarch_skip_trampoline_code instead of
2823 find_solib_trampoline_target.
2824
2825 2014-06-24 Yao Qi <yao@codesourcery.com>
2826
2827 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2828 arm_skip_bx_reg returns non-zero.
2829
2830 2014-06-24 Yao Qi <yao@codesourcery.com>
2831
2832 * arm-tdep.c (arm_skip_bx_reg): New function.
2833 (arm_skip_stub): Call arm_skip_bx_reg.
2834
2835 2014-06-23 Don Breazeal <donb@codesourcery.com>
2836
2837 * MAINTAINERS: Add myself as write-after-approval maintainer.
2838
2839 2014-06-23 Pedro Alves <palves@redhat.com>
2840
2841 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2842 DR_CONTROL before setting DR0..DR3.
2843 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2844 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2845 bits of DR_CONTROL related to the debug register slot being
2846 disabled. If all slots are vacant, clear local slowdown as well,
2847 and assert DR_CONTROL is 0.
2848
2849 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2850
2851 * python/lib/gdb/command/xmethods.py
2852 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2853 current progspace only if the string "progspace" matches LOCUS_RE.
2854
2855 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2856
2857 Fix --with-system-readline with readline-6.3 patch 5.
2858 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2859 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2860 types.
2861
2862 2014-06-20 Tom Tromey <tromey@redhat.com>
2863
2864 * dwarf2read.c (dw2_get_real_path): Use correct type in
2865 OBSTACK_CALLOC.
2866 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2867
2868 2014-06-20 Gary Benson <gbenson@redhat.com>
2869
2870 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2871 * common/glibc_thread_db.h: Likewise.
2872 * common/i386-cpuid.h: Likewise.
2873 * common/i386-gcc-cpuid.h: Likewise.
2874 * common/linux-btrace.h: Likewise.
2875 * common/linux-osdata.h: Likewise.
2876 * common/linux-procfs.h: Likewise.
2877 * common/linux-ptrace.h: Likewise.
2878 * common/mips-linux-watch.h: Likewise.
2879 * common/linux-btrace.c: Moved to nat.
2880 * common/linux-osdata.c: Likewise.
2881 * common/linux-procfs.c: Likewise.
2882 * common/linux-ptrace.c: Likewise.
2883 * common/mips-linux-watch.c: Likewise.
2884 * nat/gdb_thread_db.h: Moved from common.
2885 * nat/glibc_thread_db.h: Likewise.
2886 * nat/i386-cpuid.h: Likewise.
2887 * nat/i386-gcc-cpuid.h: Likewise.
2888 * nat/linux-btrace.c: Likewise.
2889 * nat/linux-btrace.h: Likewise.
2890 * nat/linux-osdata.c: Likewise.
2891 * nat/linux-osdata.h: Likewise.
2892 * nat/linux-procfs.c: Likewise.
2893 * nat/linux-procfs.h: Likewise.
2894 * nat/linux-ptrace.c: Likewise.
2895 * nat/linux-ptrace.h: Likewise.
2896 * nat/mips-linux-watch.c: Likewise.
2897 * nat/mips-linux-watch.h: Likewise.
2898 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2899 (object file files): Reordered.
2900 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2901 of glibc_thread_db.h.
2902
2903 2014-06-20 Gary Benson <gbenson@redhat.com>
2904
2905 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2906 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2907 (i386_dr_low): Likewise.
2908 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2909 (i386_dr_low_set_addr): Likewise.
2910 (i386_dr_low_get_addr): Likewise.
2911 (i386_dr_low_can_set_control): Likewise.
2912 (i386_dr_low_set_control): Likewise.
2913 (i386_dr_low_get_control): Likewise.
2914 (i386_dr_low_get_status): Likewise.
2915 (i386_get_debug_register_length): Likewise.
2916 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2917 (i386_dr_low): Likewise.
2918 * nat/i386-dregs.c (i386-low.h): Remove include.
2919 (i386-nat.h): Likewise.
2920 (nat/i386-dregs.h): New include.
2921 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2922 (i386_dr_low_set_addr): Likewise.
2923 (i386_dr_low_get_addr): Likewise.
2924 (i386_dr_low_can_set_control): Likewise.
2925 (i386_dr_low_set_control): Likewise.
2926 (i386_dr_low_get_control): Likewise.
2927 (i386_dr_low_get_status): Likewise.
2928 (i386_get_debug_register_length): Likewise.
2929 (debug_hw_points): Likewise.
2930
2931 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2932
2933 * Makefile.in (SFILES): Add d-exp.y.
2934 (YYFILES): Add d-exp.c.
2935 (YYOBJ): Add d-exp.o.
2936 (local-maintainer-clean): Delete d-exp.c.
2937 * d-exp.y: New file.
2938 * d-lang.h (d_parse): New declaration.
2939 (d_error): New declaration.
2940 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2941 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2942 PREC_ORDER operators.
2943 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2944
2945 2014-06-19 Yao Qi <yao@codesourcery.com>
2946
2947 * gdbthread.h (any_running): Remove the declaration.
2948 * thread.c (any_running): Remove.
2949
2950 2014-06-19 Yao Qi <yao@codesourcery.com>
2951
2952 * gdbthread.h (struct thread_info) <state>: Change its type to
2953 'enum thread_state'. Update comments.
2954
2955 2014-06-19 Pedro Alves <palves@redhat.com>
2956
2957 * gdbthread.h (ALL_THREADS): Delete.
2958 (ALL_NON_EXITED_THREADS): New macro.
2959 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2960 instead of ALL_THREADS.
2961 * infrun.c (find_thread_needs_step_over)
2962 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2963 instead of ALL_THREADS.
2964 * record-btrace.c (record_btrace_open)
2965 (record_btrace_stop_recording, record_btrace_close)
2966 (record_btrace_is_replaying, record_btrace_resume)
2967 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2968 * remote.c (append_pending_thread_resumptions): Likewise.
2969 * thread.c (thread_apply_all_command): Likewise.
2970
2971 2014-06-19 Gary Benson <gbenson@redhat.com>
2972
2973 * i386-nat.c (i386_stopped_by_watchpoint):
2974 Use i386_dr_stopped_by_watchpoint.
2975 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2976 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2977
2978 2014-06-19 Gary Benson <gbenson@redhat.com>
2979
2980 * nat/i386-dregs.c: New file.
2981 * Makefile.in (i386-dregs.o): New rule.
2982 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2983 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2984 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2985 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2986 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2987 * config/i386/go32.mh (NATDEPFILES): Likewise.
2988 * config/i386/linux.mh (NATDEPFILES): Likewise.
2989 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2990 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2991 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2992 * i386-nat.h (debug_hw_points): New declaration.
2993 * i386-nat.c (breakpoint.h): Remove include.
2994 (command.h): Likewise.
2995 (target.h): Likewise.
2996 (gdb_assert.h): Likewise.
2997 (debug_hw_points): Made nonstatic.
2998 (debug_printf): Now in i386-dregs.c.
2999 (TARGET_HAS_DR_LEN_8): Likewise.
3000 (DR_CONTROL_SHIFT): Likewise.
3001 (DR_CONTROL_SIZE): Likewise.
3002 (DR_RW_EXECUTE): Likewise.
3003 (DR_RW_WRITE): Likewise.
3004 (DR_RW_READ): Likewise.
3005 (DR_RW_IORW): Likewise.
3006 (DR_LEN_1): Likewise.
3007 (DR_LEN_2): Likewise.
3008 (DR_LEN_4): Likewise.
3009 (DR_LEN_8): Likewise.
3010 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3011 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3012 (DR_ENABLE_SIZE): Likewise.
3013 (DR_LOCAL_SLOWDOWN): Likewise.
3014 (DR_GLOBAL_SLOWDOWN): Likewise.
3015 (DR_CONTROL_RESERVED): Likewise.
3016 (I386_DR_CONTROL_MASK): Likewise.
3017 (I386_DR_VACANT): Likewise.
3018 (I386_DR_LOCAL_ENABLE): Likewise.
3019 (I386_DR_GLOBAL_ENABLE): Likewise.
3020 (I386_DR_DISABLE): Likewise.
3021 (I386_DR_SET_RW_LEN): Likewise.
3022 (I386_DR_GET_RW_LEN): Likewise.
3023 (I386_DR_WATCH_HIT): Likewise.
3024 (i386_wp_op_t): Likewise.
3025 (i386_show_dr): Likewise.
3026 (i386_length_and_rw_bits): Likewise.
3027 (i386_insert_aligned_watchpoint): Likewise.
3028 (i386_remove_aligned_watchpoint): Likewise.
3029 (i386_handle_nonaligned_watchpoint): Likewise.
3030 (i386_update_inferior_debug_regs): Likewise.
3031 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3032 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3033 (i386_region_ok_for_watchpoint):
3034 Use i386_dr_region_ok_for_watchpoint.
3035 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3036
3037 2014-06-19 Gary Benson <gbenson@redhat.com>
3038
3039 * i386-nat.c (i386_insert_hw_breakpoint): Use
3040 i386_insert_watchpoint.
3041 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3042
3043 2014-06-19 Gary Benson <gbenson@redhat.com>
3044
3045 * i386-nat.c (i386_dr_show): Renamed to
3046 i386_show_dr and made static. All uses updated.
3047 (i386_dr_length_and_rw_bits): Renamed to
3048 i386_length_and_rw_bits and made static.
3049 All uses updated.
3050 (i386_dr_insert_aligned_watchpoint): Renamed to
3051 i386_insert_aligned_watchpoint and made static.
3052 All uses updated.
3053 (i386_dr_remove_aligned_watchpoint): Renamed to
3054 i386_remove_aligned_watchpoint and made static.
3055 All uses updated.
3056 (i386_dr_update_inferior_debug_regs): Renamed to
3057 i386_update_inferior_debug_regs and made static.
3058 All uses updated.
3059 * nat/i386-dregs.h (i386_dr_show): Removed.
3060 (i386_dr_length_and_rw_bits): Likewise.
3061 (i386_dr_insert_aligned_watchpoint): Likewise.
3062 (i386_dr_remove_aligned_watchpoint): Likewise.
3063 (i386_dr_update_inferior_debug_regs): Likewise.
3064
3065 2014-06-19 Gary Benson <gbenson@redhat.com>
3066
3067 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3068 * configure: Regenerate.
3069 * config.in: Likewise.
3070 * main.c (signal.h): New include.
3071 (setup_alternate_signal_stack): New function.
3072 (captured_main): Call the above.
3073 * cp-support.c (signal.h): New include.
3074 (catch_demangler_crashes): New flag.
3075 (SIGJMP_BUF): New define.
3076 (SIGSETJMP): Likewise.
3077 (SIGLONGJMP): Likewise.
3078 (gdb_demangle_jmp_buf): New static global.
3079 (gdb_demangle_attempt_core_dump): Likewise.
3080 (gdb_demangle_signal_handler): New function.
3081 (gdb_demangle): If catch_demangler_crashes is set, install the
3082 above signal handler before calling bfd_demangle, and restore
3083 the original signal handler afterwards. Display the offending
3084 symbol and call demangler_warning the first time a segmentation
3085 fault is caught.
3086 (_initialize_cp_support): New maint set/show command.
3087
3088 2014-06-19 Gary Benson <gbenson@redhat.com>
3089
3090 * utils.h (resource_limit_kind): New enum.
3091 (can_dump_core): New declaration.
3092 (warn_cant_dump_core): Likewise.
3093 (dump_core): Likewise.
3094 * utils.c (dump_core): Made nonstatic. Added new
3095 parameter "limit_kind".
3096 (can_dump_core): Made nonstatic. Moved printing code to...
3097 (warn_cant_dump_core): New function.
3098 (can_dump_core_warn): Likewise.
3099 (internal_vproblem): Replace calls to can_dump_core with
3100 calls to can_dump_core_warn. Supply new argument to each.
3101
3102 2014-06-19 Gary Benson <gbenson@redhat.com>
3103
3104 * utils.h (demangler_vwarning): New declaration.
3105 (demangler_warning): Likewise.
3106 * utils.c (struct internal_problem)
3107 <user_settable_should_quit>: New field.
3108 <user_settable_should_dump_core>: Likewise
3109 (internal_error_problem): Add values for above new fields.
3110 (internal_warning_problem): Likewise.
3111 (demangler_warning_problem): New static global.
3112 (demangler_vwarning): New function.
3113 (demangler_warning): Likewise.
3114 (add_internal_problem_command): Selectively add commands.
3115 (_initialize_utils): New internal problem command.
3116 * maint.c (maintenance_demangler_warning): New function.
3117 (_initialize_maint_cmds): New command.
3118
3119 2014-06-18 Tom Tromey <tromey@redhat.com>
3120
3121 * f-valprint.c (info_common_command_for_block): Update.
3122 * symtab.h (struct general_symbol_info) <common_block>: Now
3123 const.
3124
3125 2014-06-18 Tom Tromey <tromey@redhat.com>
3126
3127 * symtab.h (struct symtab) <blockvector>: Now const.
3128 * ada-lang.c (ada_add_global_exceptions): Update.
3129 * buildsym.c (augment_type_symtab): Update.
3130 * dwarf2read.c (dw2_lookup_symbol): Update.
3131 * jit.c (finalize_symtab): Update.
3132 * jv-lang.c (add_class_symtab_symbol): Update.
3133 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3134 Update.
3135 * objfiles.c (objfile_relocate1): Update.
3136 * psymtab.c (lookup_symbol_aux_psymtabs)
3137 (maintenance_check_psymtabs): Update.
3138 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3139 Update.
3140 * spu-tdep.c (spu_catch_start): Update.
3141 * symmisc.c (dump_symtab_1): Update.
3142 * symtab.c (lookup_global_symbol_from_objfile)
3143 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3144 (basic_lookup_transparent_type_quick)
3145 (basic_lookup_transparent_type, find_pc_sect_symtab)
3146 (find_pc_sect_line, search_symbols): Update.
3147 * block.c (find_block_in_blockvector): Make "bl" const.
3148 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3149 const.
3150 (blockvector_contains_pc): Make "bv" const.
3151 (block_for_pc_sect): Update.
3152 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3153 (blockvector_contains_pc): Update.
3154 * breakpoint.c (resolve_sal_pc): Update.
3155 * inline-frame.c (block_starting_point_at): Update.
3156
3157 2014-06-18 Tom Tromey <tromey@redhat.com>
3158
3159 * completer.c (complete_line): Make "line_buffer" const.
3160 * completer.h (complete_line): Update.
3161
3162 2014-06-18 Tom Tromey <tromey@redhat.com>
3163
3164 * symtab.c (add_macro_name): Remove unneeded cast.
3165
3166 2014-06-18 Tom Tromey <tromey@redhat.com>
3167
3168 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3169 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3170
3171 2014-06-18 Tom Tromey <tromey@redhat.com>
3172
3173 * probe.c (info_probes_for_ops): Make "arg" const.
3174 * probe.h (info_probes_for_ops): Update.
3175
3176 2014-06-18 Tom Tromey <tromey@redhat.com>
3177
3178 * varobj.c (varobj_create): Update.
3179 * valops.c (value_of_this): Update.
3180 * tracepoint.c (add_local_symbols, scope_info): Update.
3181 * symtab.h (struct general_symbol_info) <block>: Now const.
3182 * symtab.c (skip_prologue_sal)
3183 (default_make_symbol_completion_list_break_on)
3184 (skip_prologue_using_sal): Update.
3185 * stack.h (iterate_over_block_locals)
3186 (iterate_over_block_local_vars): Update.
3187 * stack.c (print_frame_args): Update.
3188 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3189 parameter const.
3190 (get_selected_block): Make return type const.
3191 * python/py-frame.c (frapy_block): Update.
3192 * python/py-block.c (gdbpy_block_for_pc): Update.
3193 * p-exp.y (%union) <bval>: Now const.
3194 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3195 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3196 * m2-exp.y (%union) <bval>: Now const.
3197 * linespec.c (get_current_search_block): Make return type const.
3198 (create_sals_line_offset, find_label_symbols): Update.
3199 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3200 Update.
3201 (block_starting_point_at): Make "block" const.
3202 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3203 (check_exception_resume): Update.
3204 * guile/scm-frame.c (gdbscm_frame_block): Update.
3205 * guile/scm-block.c (gdbscm_lookup_block): Update.
3206 * frame.h (get_frame_block): Update.
3207 (get_selected_block): Make return type const.
3208 * frame.c (frame_id_inner): Update.
3209 * f-valprint.c (info_common_command_for_block)
3210 (info_common_command): Update.
3211 * dwarf2loc.c (dwarf2_find_location_expression)
3212 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3213 (locexpr_describe_location_piece): Update.
3214 * c-exp.y (%union) <bval>: Now const.
3215 * breakpoint.c (resolve_sal_pc): Update.
3216 * blockframe.c (get_frame_block):Make return type const.
3217 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3218 (block_innermost_frame): Update.
3219 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3220 (block_for_pc, block_for_pc_sect): Update.
3221 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3222 'pblock' const.
3223 (block_for_pc_sect, block_for_pc): Make return type const.
3224 * ax-gdb.c (gen_expr): Update.
3225 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3226 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3227 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3228 (ada_read_var_value): Update.
3229 * ada-exp.y (struct name_info) <block>: Now const.
3230 (%union): Likewise.
3231 (block_lookup): Constify.
3232
3233 2014-06-18 Gary Benson <gbenson@redhat.com>
3234
3235 * nat/i386-dregs.h: New file.
3236 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3237 * i386-nat.h (i386-dregs.h): New include.
3238 (DR_FIRSTADDR): Now in i386-dregs.h.
3239 (DR_LASTADDR): Likewise.
3240 (DR_NADDR): Likewise.
3241 (DR_STATUS): Likewise.
3242 (DR_CONTROL): Likewise.
3243 (i386_debug_reg_state): Likewise.
3244 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3245
3246 2014-06-18 Don Breazeal <donb@codesourcery.com>
3247
3248 * breakpoint.c (set_longjmp_breakpoint): Call
3249 momentary_breakpoint_from_master with additional argument.
3250 (set_longjmp_breakpoint_for_call_dummy): Call
3251 momentary_breakpoint_from_master with additional argument.
3252 (set_std_terminate_breakpoint): Call
3253 momentary_breakpoint_from_master with additional argument.
3254 (momentary_breakpoint_from_master): Add argument to function
3255 definition and use it to initialize structure member flag.
3256 (clone_momentary_breakpoint): Call
3257 momentary_breakpoint_from_master with additional argument.
3258 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3259 member flags set in momentary_breakpoint_from_master.
3260
3261 2014-06-18 Gary Benson <gbenson@redhat.com>
3262
3263 * i386-nat.c (i386_show_dr): Renamed to
3264 i386_dr_show and made nonstatic. All uses updated.
3265 (i386_length_and_rw_bits): Renamed to
3266 i386_dr_length_and_rw_bits and made nonstatic.
3267 All uses updated.
3268 (i386_insert_aligned_watchpoint): Renamed to
3269 i386_dr_insert_aligned_watchpoint and made nonstatic.
3270 All uses updated.
3271 (i386_remove_aligned_watchpoint): Renamed to
3272 i386_dr_remove_aligned_watchpoint and made nonstatic.
3273 All uses updated.
3274 (i386_update_inferior_debug_regs): Renamed to
3275 i386_dr_update_inferior_debug_regs and made nonstatic.
3276 All uses updated.
3277
3278 2014-06-18 Gary Benson <gbenson@redhat.com>
3279
3280 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3281 (i386_dr_low_can_set_control): Likewise.
3282 (i386_dr_low_set_addr): Likewise.
3283 (i386_dr_low_set_control): Likewise.
3284 (i386_dr_low_get_addr): Likewise.
3285 (i386_dr_low_get_status): Likewise.
3286 (i386_dr_low_get_control): Likewise.
3287 (i386_insert_aligned_watchpoint): Use new macros.
3288 (i386_update_inferior_debug_regs): Likewise.
3289 (i386_stopped_data_address): Likewise.
3290
3291 2014-06-18 Gary Benson <gbenson@redhat.com>
3292
3293 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3294 New parameter. All uses updated.
3295
3296 2014-06-18 Gary Benson <gbenson@redhat.com>
3297
3298 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3299 All uses updated.
3300
3301 2014-06-18 Gary Benson <gbenson@redhat.com>
3302
3303 * i386-nat.c (debug_printf): New macro.
3304 (i386_get_debug_register_length): Likewise.
3305 (TARGET_HAS_DR_LEN_8): Use above macro.
3306 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3307 and printf_unfiltered. Use phex to format values.
3308
3309 2014-06-18 Gary Benson <gbenson@redhat.com>
3310
3311 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3312 Make const.
3313
3314 2014-06-18 Gary Benson <gbenson@redhat.com>
3315
3316 * i386-nat.c: Comment changes.
3317
3318 2014-06-18 Gary Benson <gbenson@redhat.com>
3319
3320 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3321
3322 2014-06-18 Gary Benson <gbenson@redhat.com>
3323
3324 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3325 (i386_insert_aligned_watchpoint): Likewise.
3326 (i386_remove_aligned_watchpoint): Likewise.
3327 (i386_handle_nonaligned_watchpoint): Likewise.
3328
3329 2014-06-18 Gary Benson <gbenson@redhat.com>
3330
3331 * i386-nat.c: Whitespace changes.
3332
3333 2014-06-17 Samuel Bronson <naesten@gmail.com>
3334
3335 * MAINTAINERS: Update Roland McGrath's email address.
3336 Thanks to Sergio Durigan Junior for pointing out that he left
3337 Red Hat a while ago, and giving me a current address.
3338
3339 2014-06-17 Tom Tromey <tromey@redhat.com>
3340
3341 * utils.h (savestring): Remove declaration.
3342
3343 2014-06-17 Tom Tromey <tromey@redhat.com>
3344
3345 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3346
3347 2014-06-16 Keith Seitz <keiths@redhat.com>
3348
3349 PR mi/15863
3350 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3351 to update the varobj if inferior_ptid is null_ptid.
3352
3353 2014-06-16 Tom Tromey <tromey@redhat.com>
3354
3355 * target.h (struct target_ops) <to_info_proc>: Make parameter
3356 const.
3357 (target_info_proc): Update.
3358 * target.c (target_info_proc): Make "args" const.
3359 * procfs.c (procfs_info_proc): Update.
3360 * linux-tdep.c (linux_info_proc): Update.
3361 (linux_core_info_proc_mappings): Make "args" const.
3362 (linux_core_info_proc): Update.
3363 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3364 * gdbarch.c: Rebuild.
3365 * gdbarch.h: Rebuild.
3366 * corelow.c (core_info_proc): Update.
3367
3368 2014-06-16 Tom Tromey <tromey@redhat.com>
3369
3370 * target.h (struct target_ops) <to_disconnect>: Make parameter
3371 const.
3372 (target_disconnect): Update.
3373 * target.c (target_disconnect): Make "args" const.
3374 * target-delegates.c: Rebuild.
3375 * remote.c (remote_disconnect): Update.
3376 * record.h (record_disconnect): Update.
3377 * record.c (record_disconnect): Update.
3378 * inf-child.c (inf_child_disconnect): Update.
3379
3380 2014-06-16 Tom Tromey <tromey@redhat.com>
3381
3382 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3383 * target.c (debug_to_rcmd, default_rcmd): Update.
3384 * target-delegates.c: Rebuild.
3385 * remote.c (remote_rcmd): Update.
3386 * monitor.c (monitor_rcmd): Update.
3387
3388 2014-06-16 Pedro Alves <palves@redhat.com>
3389
3390 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3391 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3392 have OBJF_SHARED set.
3393 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3394 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3395 instead of OBJF_USERLOADED.
3396 * objfiles.h (OBJF_SHARED): Update comment.
3397 (userloaded_objfile_contains_address_p): Rename to ...
3398 (shared_objfile_contains_address_p): ... this, and update
3399 comments.
3400 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3401 new objfile.
3402 (remove_symbol_file_command): Skip objfiles that don't have
3403 OBJF_SHARED set.
3404
3405 2014-06-16 Tom Tromey <tromey@redhat.com>
3406
3407 * minsyms.h (prim_record_minimal_symbol)
3408 (prim_record_minimal_symbol_and_info): Update comments.
3409
3410 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3411
3412 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3413 or --without-guile, according to how GDB was built.
3414
3415 2014-06-13 Tom Tromey <tromey@redhat.com>
3416
3417 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3418 to help_list.
3419 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3420 to help_list.
3421 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3422 help_list.
3423 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3424 help_list.Pass all_commands, not -1, to help_list.
3425 * cli/cli-dump.c (dump_command, append_command)
3426 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3427 (binary_dump_command, binary_append_command): Pass all_commands,
3428 not -1, to help_list.
3429 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3430 -1, to help_list.
3431 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3432 -1, to help_list.
3433 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3434 help_list.
3435 * top.c (set_history): Pass all_commands, not -1, to help_list.
3436 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3437 all_commands, not -1, to help_list.
3438 * symfile.c (overlay_command): Pass all_commands, not -1, to
3439 help_list.
3440 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3441 help_list.
3442 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3443 help_list.
3444 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3445 -1, to help_list.
3446 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3447 not -1, to help_list.
3448 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3449 not -1, to help_list.
3450 * maint.c (maintenance_command, maintenance_info_command)
3451 (maintenance_print_command, maintenance_set_cmd): Pass
3452 all_commands, not -1, to help_list.
3453 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3454 help_list.
3455 * language.c (set_check): Pass all_commands, not -1, to help_list.
3456 * infcmd.c (unset_command): Pass all_commands, not -1, to
3457 help_list.
3458 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3459 help_list.
3460 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3461 help_list.
3462 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3463 help_list.
3464 * breakpoint.c (save_command): Pass all_commands, not -1, to
3465 help_list.
3466 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3467 all_commands, not -1, to help_list.
3468
3469 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3470
3471 * regcache.c (struct register_to_invalidate): New structure.
3472 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3473 functions.
3474 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3475
3476 2014-06-12 Yao Qi <yao@codesourcery.com>
3477
3478 * varobj.c (varobj_get_num_children): Call
3479 varobj_is_dynamic_p.
3480 (varobj_list_children): Likewise.
3481 (varobj_update): Likewise. Update comments.
3482
3483 2014-06-12 Yao Qi <yao@codesourcery.com>
3484
3485 * varobj.c (varobj_pretty_printed_p): Rename to ...
3486 (varobj_is_dynamic_p): ... this. New function.
3487 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3488 (varobj_is_dynamic_p): Declare.
3489 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3490 (mi_print_value_p, varobj_update_one): Likewise.
3491
3492 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3493 Yao Qi <yao@codesourcery.com>
3494
3495 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3496 (varobj_get_iterator): Wrap up code for pretty-printer by
3497 "#if HAVE_PYTHON" and "#endif".
3498 (update_dynamic_varobj_children): Likewise.
3499
3500 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3501 Yao Qi <yao@codesourcery.com>
3502
3503 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3504 gdb_python_initialized is false. Move some code from varobj.c.
3505 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3506 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3507 (struct varobj_item): Moved to varobj-iter.h".
3508 (varobj_clear_saved_item): New function.
3509 (update_dynamic_varobj_children): Move python-related code to
3510 py-varobj.c.
3511 (free_variable): Call varobj_clear_saved_item and
3512 varobj_iter_delete.
3513
3514 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3515 Yao Qi <yao@codesourcery.com>
3516
3517 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3518 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3519 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3520 (py-varobj.o): New rule.
3521 * python/py-varobj.c: New file.
3522 * python/python-internal.h (py_varobj_get_iterator): Declare.
3523 * varobj-iter.h: New file.
3524 * varobj.c: Include "varobj-iter.h"
3525 (struct varobj) <child_iter>: Change its type from "PyObject *"
3526 to "struct varobj_iter *".
3527 <saved_item>: Likewise.
3528 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3529 [HAVE_PYTHON] (varobj_get_iterator): New function.
3530 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3531 python-specific code to python/py-varobj.c.
3532 (install_visualizer): Call varobj_iter_delete instead of
3533 Py_XDECREF.
3534 * varobj.h (varobj_ensure_python_env): Declare.
3535
3536 2014-06-12 Yao Qi <yao@codesourcery.com>
3537
3538 * varobj.c (struct varobj_item): New structure.
3539 (create_child_with_value): Update declaration.
3540 (varobj_add_child): Replace arguments 'name' and 'value' with
3541 'item'. All callers updated.
3542 (install_dynamic_child): Likewise.
3543 (update_dynamic_varobj_children): Likewise.
3544 (varobj_add_child): Likewise.
3545 (create_child_with_value): Likewise.
3546
3547 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3548
3549 * NEWS: Create a new section for the next release branch.
3550 Rename the section of the current branch, now that it has
3551 been cut.
3552
3553 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3554
3555 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3556 * version.in: Bump version to 7.8.50.DATE-cvs.
3557
3558 2014-06-11 Pedro Alves <palves@redhat.com>
3559
3560 PR remote/17028
3561 * ser-mingw.c (net_windows_socket_check_pending): New function.
3562 (net_windows_select_thread): Ignore spurious wakeups. Use
3563 net_windows_socket_check_pending.
3564 (net_windows_wait_handle): Check for pending events with
3565 ioctlsocket, through net_windows_socket_check_pending, instead of
3566 checking the socket's event.
3567
3568 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3569
3570 * python/python-internal.h (gdb_PyObject_GetAttrString)
3571 (gdb_PyObject_HasAttrString): New inline function definitions.
3572 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3573 char * of the second argument to PyObject_GetAttrString.
3574
3575 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3576
3577 * serial.c (serial_write): Fix index of character to be printed
3578 in call to serial_logchar when serial debug traces are enabled.
3579
3580 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3581
3582 * gdbtypes (resolve_dynamic_range): Add function description.
3583
3584 2014-06-09 Pedro Alves <palves@redhat.com>
3585
3586 * linux-nat.c (linux_child_follow_fork): Initialize status with
3587 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3588 inner block. Only pass the signal to PTRACE_DETACH if in pass
3589 state.
3590
3591 2014-06-09 Gary Benson <gbenson@redhat.com>
3592
3593 * common/signals.c (gdb_signal_from_host): Reorder to separate
3594 the always-available ANSI-standard signals from the signals that
3595 require checking.
3596 (do_gdb_signal_to_host): Likewise.
3597 * proc-events.c (signal_table): Likewise.
3598
3599 2014-06-08 Hui Zhu <hui@codesourcery.com>
3600
3601 * common/linux-ptrace.c (linux_disable_event_reporting): New
3602 function.
3603 * common/linux-ptrace.h (linux_disable_event_reporting): New
3604 declaration.
3605 * linux-nat.c (linux_child_follow_fork): Do a single step before
3606 detach.
3607
3608 2014-06-07 Keith Seitz <keiths@redhat.com>
3609
3610 Revert:
3611 PR c++/16253
3612 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3613 from symbol_matches_domain in symtab.c. All local callers
3614 of symbol_matches_domain updated.
3615 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3616 search STRUCT_DOMAIN.
3617 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3618 independently. standard_lookup will do that automatically.
3619 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3620 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3621 (cp_lookup_symbol_in_namespace): Likewise.
3622 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3623 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3624 may return a STRUCT_DOMAIN match.
3625 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3626 * cp-support.c: Include language.h.
3627 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3628 VAR_DOMAIN.
3629 * psymtab.c (match_partial_symbol): Compare the requested
3630 domain with the symbol's domain directly.
3631 (lookup_partial_symbol): Likewise.
3632 * symtab.c (lookup_symbol_in_language): Explain when/why
3633 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3634 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3635 appropriate languages.
3636 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3637 and moved to ada-lang.c
3638 (lookup_block_symbol): Explain that this function only returns
3639 symbol matching the requested DOMAIN.
3640 Compare the requested domain with the symbol's domain directly.
3641 (iterate_over_symbols): Compare the requested domain with the
3642 symbol's domain directly.
3643 * symtab.h (symbol_matches_domain): Remove.
3644
3645 2014-06-06 Doug Evans <xdje42@gmail.com>
3646
3647 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3648 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3649 (gdbscm_guile_version_is_at_least): Declare.
3650 (gdbscm_scm_string_to_int): Declare.
3651 * guile/guile.c (gdbscm_guile_major_version): New global.
3652 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3653 (guile_datadir): New static global.
3654 (gdbscm_guile_data_directory): New function.
3655 (initialize_scheme_side): Update.
3656 (misc_guile_functions): Add guile-data-directory.
3657 (initialize_gdb_module): Fetch guile version number.
3658 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3659 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3660 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3661 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3662 comments.
3663 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3664 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3665 * guile/scm-value.c (gdbscm_value_to_string): Only call
3666 scm_port_conversion_strategy if Guile version >= 2.0.6.
3667
3668 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3669
3670 * main.c (print_gdb_help): Add -q and --silent.
3671
3672 2014-06-06 Gary Benson <gbenson@redhat.com>
3673
3674 * common/signals.c: Remove preprocessor conditionals for
3675 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3676 SIGSEGV and SIGTERM.
3677 * proc-events.c: Likewise.
3678
3679 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3680
3681 * symfile.c (symfile_free_objfile): Remove restriction to
3682 OBJF_USERLOADED.
3683 * symfile-mem.c (symbol_file_add_from_memory): Call
3684 add_target_sections_of_objfile.
3685
3686 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3687
3688 * guile/scm-value.c (gdbscm_history_append_x): Use
3689 'vlscm_get_value_smob_arg_unsafe' instead of
3690 'vlscm_scm_to_value'.
3691
3692 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3693
3694 PR mi/15806
3695 * utils.c (printchar): Don't escape at all if quoter is NUL.
3696 Update function documentation to clarify effect of parameter
3697 QUOTER.
3698 * remote.c (escape_buffer): Pass '\\' as the quoter to
3699 fputstrn_unfiltered.
3700 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3701 generate the output.
3702 (mi_solib_unloaded): Same.
3703
3704 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3705
3706 * development.sh: Delete.
3707 * Makefile.in (config.status): Adjust dependency on development.sh.
3708 * configure.ac: Adjust development.sh source call.
3709 * configure: Regenerate.
3710
3711 2014-06-04 Doug Evans <xdje42@gmail.com>
3712
3713 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3714 is_scheme_bkpt, spec.
3715 (bpscm_make_breakpoint_smob): Initialize new members.
3716 (gdbscm_create_breakpoint_x): Split into two ...
3717 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3718 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3719 (scheme_function breakpoint_functions): Update.
3720 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3721 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3722 register-breakpoint!.
3723
3724 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3725
3726 PR server/17023
3727 * mem-break.c (z_type_supported): Return zero if
3728 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3729
3730 2014-06-04 Tom Tromey <tromey@redhat.com>
3731
3732 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3733 value_from_contents_and_address_unresolved.
3734 (ada_template_to_fixed_record_type_1): Likewise.
3735 (ada_which_variant_applies): Likewise.
3736 * value.h (value_from_contents_and_address_unresolved): Declare.
3737 * value.c (value_from_contents_and_address_unresolved): New
3738 function.
3739 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3740 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3741 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3742
3743 2014-06-04 Tom Tromey <tromey@redhat.com>
3744
3745 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3746
3747 2014-06-04 Tom Tromey <tromey@redhat.com>
3748
3749 * procfs.c (procfs_attach): Make "args" const.
3750 * windows-nat.c (windows_attach): Make "args" const.
3751 * nto-procfs.c (procfs_attach): Make "args" const.
3752 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3753 * go32-nat.c (go32_attach): Make "args" const.
3754 * gnu-nat.c (gnu_attach): Make "args" const.
3755 * darwin-nat.c (darwin_attach): Make "args" const.
3756 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3757 * linux-nat.c (linux_nat_attach): Make "args" const.
3758 * remote.c (extended_remote_attach_1, extended_remote_attach):
3759 Make "args" const.
3760 * target.h (struct target_ops) <to_attach>: Make "args" const.
3761 (find_default_attach): Likewise.
3762 * utils.c (parse_pid_to_attach): Make "args" const.
3763 * utils.h (parse_pid_to_attach): Update.
3764
3765 2014-06-04 Tom Tromey <tromey@redhat.com>
3766
3767 * target-delegates.c: Rebuild.
3768 * target.c (default_thread_address_space): New function.
3769 (target_thread_address_space): Simplify.
3770 * target.h (struct target_ops) <to_thread_address_space>: Add
3771 TARGET_DEFAULT_FUNC.
3772
3773 2014-06-04 Doug Evans <xdje42@gmail.com>
3774
3775 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3776
3777 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3778
3779 * record-btrace.c: Include event-loop.h and inf-loop.h.
3780 (record_btrace_resume_exec_dir)
3781 (record_btrace_async_inferior_event_handler)
3782 (record_btrace_handle_async_inferior_event): New.
3783 (record_btrace_open): Create async event handler.
3784 (record_btrace_close): Delete async event handler.
3785 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3786 Mark async event handler.
3787 (record_btrace_execution_direction): New.
3788 (init_record_btrace_ops): Initialize to_execution_direction.
3789
3790 2014-06-03 Doug Evans <xdje42@gmail.com>
3791
3792 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3793 (gdbscm_make_parameter): Ditto.
3794
3795 2014-06-03 Doug Evans <dje@google.com>
3796
3797 * exec.c (exec_close_1): Call clear_section_table instead of
3798 resize_section_table.
3799 (clear_section_table): New function.
3800 (resize_section_table): Make static. Rename arg num_added to
3801 adjustment.
3802 * exec.h (clear_section_table): Declare.
3803 (resize_section_table): Delete.
3804 * progspace.c (release_program_space): Call clear_section_table
3805 instead of resize_section_table.
3806
3807 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3808
3809 * NEWS (Python Scripting): Add entry about the new xmethods
3810 feature.
3811
3812 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3813
3814 * python/py-xmethods.c: New file.
3815 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3816 (objfpy_dealloc): XDECREF on the new xmethods field.
3817 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3818 field.
3819 (objfpy_get_xmethods): New function.
3820 (objfile_getset): New entry 'xmethods'.
3821 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3822 (pspy_dealloc): XDECREF on the new xmethods field.
3823 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3824 field.
3825 (pspy_get_xmethods): New function.
3826 (pspace_getset): New entry 'xmethods'.
3827 * python/python-internal.h: Add declarations for new functions.
3828 * python/python.c (_initialize_python): Invoke
3829 gdbpy_initialize_xmethods.
3830 * python/lib/gdb/__init__.py (xmethods): New
3831 attribute.
3832 * python/lib/gdb/xmethod.py: New file.
3833 * python/lib/gdb/command/xmethods.py: New file.
3834
3835 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3836
3837 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3838 best match method returned by find_overload_match is an xmethod.
3839 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3840 the best matching operator returned by find_overload_match is an
3841 xmethod.
3842 * valops.c: #include "extension.h".
3843 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3844 Return void. The list of matching source methods is returned in
3845 "fn_list" and a vector of matching debug method workers is
3846 returned in "xm_worker_vec". Update all callers.
3847 (value_find_oload_method_list): Likewise.
3848 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3849 non-NULL, then the index of the best matching method in this
3850 vector is returned. Update all callers.
3851 (find_overload_match): Include xmethods while performing overload
3852 resolution.
3853
3854 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3855
3856 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3857 * extension-priv.h (struct extension_language_ops): Add the
3858 xmethod interface.
3859 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3860 get_matching_xmethod_workers, get_xmethod_argtypes,
3861 invoke_xmethod, free_xmethod_worker,
3862 free_xmethod_worker_vec): New functions.
3863 * extension.h: #include "common/vec.h".
3864 New function declarations.
3865 (struct xmethod_worker): New struct.
3866 (VEC (xmethod_worker_ptr)): New vector type.
3867 (xmethod_worker_ptr): New typedef.
3868 (xmethod_worker_vec): Likewise.
3869 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3870 builtin_type.
3871 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3872 (struct builtin_type): New field "xmethod".
3873 * valarith.c (value_ptradd): Assert that the value argument is not
3874 lval_xcallable.
3875 * valops.c (value_must_coerce_to_target): Return 0 for
3876 lval_xcallable values.
3877 * value.c (struct value): New field XM_WORKER in the field
3878 LOCATION.
3879 (value_address, value_raw_address): Return 0 for lval_xcallable
3880 values.
3881 (set_value_address): Assert that the value is not an
3882 lval_xcallable.
3883 (value_free): Free the associated xmethod worker when freeing
3884 lval_xcallable values.
3885 (set_value_component_location): Assert that the WHOLE value is not
3886 lval_xcallable.
3887 (value_of_xmethod, call_xmethod): New functions.
3888 * value.h: Declare "struct xmethod_worker".
3889 Declare new functions value_of_xmethod, call_xmethod.
3890
3891 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3892 Pedro Alves <palves@redhat.com>
3893
3894 PR breakpoints/17000
3895 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3896 New function, extracted from software_breakpoint_inserted_here_p.
3897 (software_breakpoint_inserted_here_p): Replace factored out code
3898 by call to find_non_raw_software_breakpoint_inserted_here.
3899 (bp_target_info_copy_insertion_state): New function.
3900 (bkpt_insert_location): Handle the case of a single-step
3901 breakpoint already inserted at the same address.
3902 (bkpt_remove_location): Handle the case of a single-step
3903 breakpoint still inserted at the same address.
3904 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3905 breakpoint already inserted at the same address.
3906 (deprecated_remove_raw_breakpoint): Handle the case of a
3907 non-raw breakpoint still inserted at the same address.
3908 (find_single_step_breakpoint): New function, extracted from
3909 single_step_breakpoint_inserted_here_p.
3910 (find_single_step_breakpoint): New function,
3911 factored out from single_step_breakpoint_inserted_here_p.
3912 (single_step_breakpoint_inserted_here_p): Reimplement.
3913
3914 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3915
3916 Pushed by Joel Brobecker <brobecker@adacore.com>
3917 * source.c (show_substitute_path_command): Fix display of matching
3918 substitution rules.
3919
3920 2014-06-03 Gary Benson <gbenson@redhat.com>
3921
3922 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3923
3924 2014-06-02 Doug Evans <xdje42@gmail.com>
3925
3926 Add parameter support for Guile.
3927 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3928 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3929 (scm-param.o): New rule.
3930 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3931 (gdbscm_misc_error): Declare.
3932 (gdbscm_canonicalize_command_name): Declare.
3933 (gdbscm_scm_to_host_string): Declare.
3934 (gdbscm_scm_from_host_string): Declare.
3935 (gdbscm_initialize_parameters): Declare.
3936 * guile/guile.c (initialize_gdb_module): Call
3937 gdbscm_initialize_parameters.
3938 * guile/lib/gdb.scm: Export parameter symbols.
3939 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3940 cmdscm_canonicalize_name and made public. All callers updated.
3941 * guile/scm-exception.c (gdbscm_misc_error): New function.
3942 * guile/scm-param.c: New file.
3943 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3944 (gdbscm_scm_to_host_string): New function.
3945 (gdbscm_scm_from_host_string): New function.
3946 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3947
3948 2014-06-02 Doug Evans <xdje42@gmail.com>
3949
3950 Add command support for Guile.
3951 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3952 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3953 (scm-cmd.o): New rule.
3954 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3955 (gdbscm_user_error_p): Declare.
3956 (gdbscm_parse_command_name): Declare.
3957 (gdbscm_valid_command_class_p): Declare.
3958 (gdbscm_initialize_commands): Declare.
3959 * guile/guile.c (initialize_gdb_module): Call
3960 gdbscm_initialize_commands.
3961 * guile/lib/gdb.scm: Export command symbols.
3962 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3963 (throw-user-error): New function.
3964 * guile/scm-cmd.c: New file.
3965 * guile/scm-exception.c (user_error_symbol): New static global.
3966 (gdbscm_user_error_p): New function.
3967 (gdbscm_initialize_exceptions): Set user_error_symbol.
3968 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3969
3970 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3971
3972 * top.c (command_loop): Handle comments here...
3973 (command_line_input): ... not here.
3974
3975 2014-06-02 Doug Evans <xdje42@gmail.com>
3976
3977 Add progspace support for Guile.
3978 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3979 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3980 (scm-progspace.o): New rule.
3981 * guile/guile-internal.h (pspace_smob): New typedef.
3982 (psscm_pspace_smob_pretty_printers): Declare.
3983 (psscm_pspace_smob_from_pspace): Declare.
3984 (psscm_scm_from_pspace): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_pspaces.
3987 * guile/lib/gdb.scm: Export progspace symbols.
3988 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3989 support.
3990 (append-pretty-printer!): Ditto.
3991 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3992 Implement.
3993 * guile/scm-progspace.c: New file.
3994
3995 2014-06-03 Alan Modra <amodra@gmail.com>
3996
3997 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3998 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3999
4000 2014-06-02 Doug Evans <dje@google.com>
4001
4002 Add support for skeletonless type units.
4003 * dwarf2read.c (struct dwarf2_per_objfile): New member
4004 n_allocated_type_units.
4005 (struct dwarf2_per_objfile) <tu_stats>: New member
4006 nr_all_type_units_reallocs.
4007 (create_signatured_type_table_from_index): Initialize
4008 n_allocated_type_units
4009 (create_all_type_units): Ditto.
4010 (add_type_unit): Move up in file. New arg slot.
4011 All callers updated. Increase space for all_type_units more
4012 efficiently.
4013 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4014 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4015 (lookup_dwp_signatured_type): Ditto.
4016 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4017 All callers updated.
4018 (build_type_psymtabs_1): Leave type_unit_groups as
4019 NULL if no TUs present.
4020 (print_tu_stats): New function.
4021 (process_skeletonless_type_unit): New function.
4022 (process_dwo_file_for_skeletonless_type_units): New
4023 function.
4024 (process_skeletonless_type_units): New function.
4025 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4026 Call print tu_stats if debugging enabled.
4027
4028 2014-06-02 Pedro Alves <palves@redhat.com>
4029
4030 * breakpoint.c (build_target_command_list): Don't build a command
4031 list if we have any duplicate location that isn't a dprintf.
4032
4033 2014-06-02 Pedro Alves <palves@redhat.com>
4034
4035 * breakpoint.c (dprintf_breakpoint_hit): New function.
4036 (initialize_breakpoint_ops): Install it as dprintf's
4037 breakpoint_hit method.
4038
4039 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4040
4041 * source.c (substitute_path_rule_matches): Simplify using
4042 filename_ncmp instead of FILENAME_CMP.
4043
4044 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4045
4046 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4047
4048 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4049
4050 * configure.ac: When Guile is available, check for the
4051 availability of 'scm_new_smob'.
4052 * configure, config.h.in: Regenerate.
4053 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4054 function.
4055
4056 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4057
4058 * frame.c (struct frame_info): Add stop_string field.
4059 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4060 (get_prev_frame_always): Old content moved into
4061 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4062 TRY_CATCH, handle MEMORY_ERROR exceptions.
4063 (frame_stop_reason_string): New function definition.
4064 * frame.h (unwind_stop_reason_to_string): Extend comment to
4065 mention frame_stop_reason_string.
4066 (frame_stop_reason_string): New function declaration.
4067 * stack.c (frame_info): Switch to frame_stop_reason_string.
4068 (backtrace_command_1): Switch to frame_stop_reason_string.
4069 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4070 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4071 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4072
4073 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4074
4075 * frame.c (frame_stop_reason_string): Rename to ...
4076 (unwind_stop_reason_to_string): this.
4077 * frame.h (frame_stop_reason_string): Rename to ...
4078 (unwind_stop_reason_to_string): this.
4079 * stack.c (frame_info): Update call to frame_stop_reason_string.
4080 (backtrace_command_1): Likewise.
4081 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4082 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4083
4084 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4085
4086 * frame.c (remove_prev_frame): New function.
4087 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4088 remove_prev_frame.
4089
4090 2014-05-29 Pedro Alves <palves@redhat.com>
4091
4092 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4093 and make it const. When a single-step decays to a continue,
4094 clear 'step', not 'hw_step'. Pass whether the caller wanted
4095 to step to user_visible_resume_ptid, not what we ask the
4096 target to do.
4097
4098 2014-05-29 Pedro Alves <palves@redhat.com>
4099
4100 * infrun.c (process_event_stop_test, handle_step_into_function)
4101 (handle_step_into_function_backward): Adjust.
4102 Don't set the even thread's stop_step and call stop_waiting before
4103 calling end_stepping_range. Instead do that ...
4104 (end_stepping_range): ... here. Take an ecs pointer parameter.
4105
4106 2014-05-29 Pedro Alves <palves@redhat.com>
4107
4108 * infrun.c (stop_stepping): Rename to ...
4109 (stop_waiting): ... this.
4110 (proceed): Update comment.
4111 (process_event_stop_test, handle_inferior_event)
4112 (handle_signal_stop, handle_step_into_function)
4113 (handle_step_into_function_backward): Update.
4114
4115 2014-05-29 Pedro Alves <palves@redhat.com>
4116
4117 * infcall.c (run_inferior_call): Don't check whether the current
4118 thread is running after the proceed call.
4119
4120 2014-05-29 Pedro Alves <palves@redhat.com>
4121 Tom Tromey <tromey@redhat.com>
4122
4123 * NEWS: Mention "maint set target-async", "set mi-async", and that
4124 background execution commands are now always available.
4125 * target.h (target_async_permitted): Update comment.
4126 * target.c (target_async_permitted, target_async_permitted_1):
4127 Default to 1.
4128 (set_target_async_command): Rename to ...
4129 (maint_set_target_async_command): ... this.
4130 (show_target_async_command): Rename to ...
4131 (maint_show_target_async_command): ... this.
4132 (_initialize_target): Adjust.
4133 * infcmd.c (prepare_execution_command): Make extern.
4134 * inferior.h (prepare_execution_command): Declare.
4135 * infrun.c (set_observer_mode): Leave target async alone.
4136 * mi/mi-interp.c (mi_interpreter_init): Install
4137 mi_on_sync_execution_done as sync_execution_done observer.
4138 (mi_on_sync_execution_done): New function.
4139 (mi_execute_command_input_handler): Don't print the prompt if we
4140 just started a synchronous command with an async target.
4141 (mi_on_resume): Check sync_execution before printing prompt.
4142 * mi/mi-main.h (mi_async_p): Declare.
4143 * mi/mi-main.c: Include gdbcmd.h.
4144 (mi_async_p): New function.
4145 (mi_async, mi_async_1): New globals.
4146 (set_mi_async_command, show_mi_async_command, mi_async): New
4147 functions.
4148 (exec_continue): Call prepare_execution_command.
4149 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4150 (mi_execute_async_cli_command): Use mi_async_p.
4151 (_initialize_mi_main): Install "set mi-async". Make
4152 "target-async" a deprecated alias.
4153
4154 2014-05-29 Pedro Alves <palves@redhat.com>
4155
4156 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4157 (_initialize_cli_interp): Adjust.
4158 * event-loop.c: Include "observer.h".
4159 (start_event_loop): Notify 'command_error' observers instead of
4160 calling display_gdb_prompt. Remove FIXME comment.
4161 * event-top.c (display_gdb_prompt): Remove call into the
4162 interpreters.
4163 * inf-loop.c: Include "observer.h".
4164 (inferior_event_handler): Notify 'command_error' observers instead
4165 of calling display_gdb_prompt.
4166 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4167 observers instead of calling display_gdb_prompt.
4168 * interps.c (interp_set): Don't call display_gdb_prompt.
4169 (current_interp_display_prompt_p): Delete.
4170 * interps.h (interp_prompt_p): Delete declaration.
4171 (interp_prompt_p_ftype): Delete.
4172 (struct interp_procs) <prompt_proc_p>: Delete field.
4173 (current_interp_display_prompt_p): Delete declaration.
4174 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4175 (_initialize_mi_interp): Adjust.
4176 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4177 'command_error' observers.
4178 (tui_on_sync_execution_done, tui_on_command_error): New
4179 functions.
4180 (tui_display_prompt_p): Delete.
4181 (_initialize_tui_interp): Adjust.
4182
4183 2014-05-29 Pedro Alves <palves@redhat.com>
4184
4185 PR gdb/13860
4186 * cli/cli-interp.c: Include infrun.h and observer.h.
4187 (cli_uiout, cli_interp): New globals.
4188 (cli_on_signal_received, cli_on_end_stepping_range)
4189 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4190 functions.
4191 (cli_interpreter_init): Install them as 'end_stepping_range',
4192 'signal_received' 'signal_exited', 'exited' and 'no_history'
4193 observers.
4194 (_initialize_cli_interp): Remove cli_interp local.
4195 * infrun.c (handle_inferior_event): Call the several stop reason
4196 observers instead of printing the stop reason directly.
4197 (end_stepping_range): New function.
4198 (print_end_stepping_range_reason, print_signal_exited_reason)
4199 (print_exited_reason, print_signal_received_reason)
4200 (print_no_history_reason): Make static, and add an uiout
4201 parameter. Print to that instead of to CURRENT_UIOUT.
4202 * infrun.h (print_end_stepping_range_reason)
4203 (print_signal_exited_reason, print_exited_reason)
4204 (print_signal_received_reason print_no_history_reason): New
4205 declarations.
4206 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4207 'mi_uiout'.
4208 <cli_uiout>: New field.
4209 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4210 uiout for CLI output. Install 'signal_received',
4211 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4212 observers.
4213 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4214 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4215 (mi_on_no_history): New functions.
4216 (ui_out_free_cleanup): Delete function.
4217 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4218 instead use the one already stored in the MI interpreter data.
4219 (mi_ui_out): Adjust.
4220 * tui/tui-interp.c: Include infrun.h and observer.h.
4221 (tui_interp): New global.
4222 (tui_on_signal_received, tui_on_end_stepping_range)
4223 (tui_on_signal_exited, tui_on_exited)
4224 (tui_on_no_history): New functions.
4225 (tui_init): Install them as 'end_stepping_range',
4226 'signal_received' 'signal_exited', 'exited' and 'no_history'
4227 observers.
4228 (_initialize_tui_interp): Delete tui_interp local.
4229
4230 2014-05-29 Pedro Alves <palves@redhat.com>
4231
4232 PR gdb/15713
4233 * linux-nat.c (linux_nat_resume_callback): Rename the second
4234 parameter to 'except'. Skip LP if it points to EXCEPT.
4235 (linux_nat_resume): Don't mark the event lwp as not stopped
4236 before resuming sibling lwps. Instead ask
4237 linux_nat_resume_callback to skip the event lwp. Mark it as not
4238 stopped after actually resuming it.
4239 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4240 resuming it.
4241 (wait_lwp): Mark the lwp as stopped here.
4242 (stop_wait_callback): Mark the lwp as not stopped right after
4243 resuming it. Don't mark lwps as stopped here.
4244 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4245 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4246
4247 2014-05-29 Pedro Alves <palves@redhat.com>
4248
4249 PR PR15693
4250 * infrun.c (resume): Determine how much to resume depending on
4251 whether the caller wanted a step, not whether we can hardware step
4252 the target. Mark all threads that we intend to run as running,
4253 unless we're calling an inferior function.
4254 (normal_stop): If the thread is running an infcall, don't finish
4255 thread state.
4256 * target.c (target_resume): Don't mark threads as running here.
4257
4258 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4259
4260 * serial.c (_initialize_serial): Remove support for
4261 the "set remotebaud" and "show remotebaud" commands.
4262 * NEWS: Add entry documenting the removal of that command.
4263
4264 2014-05-28 Yao Qi <yao@codesourcery.com>
4265
4266 * charset.c: Fix typo in comments.
4267
4268 2014-05-27 Gary Benson <gbenson@redhat.com>
4269
4270 * utils.c (internal_vproblem): Prompt for a bug report.
4271
4272 2014-05-26 Andy Wingo <wingo@igalia.com>
4273
4274 * guile/scm-arch.c (arscm_mark_arch_smob):
4275 * guile/scm-block.c (bkscm_mark_block_smob)
4276 (bkscm_mark_block_syms_progress_smob):
4277 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4278 * guile/scm-exception.c (exscm_mark_exception_smob):
4279 * guile/scm-frame.c (frscm_mark_frame_smob):
4280 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4281 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4282 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4283 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4284 (ppscm_mark_pretty_printer_worker_smob):
4285 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4286 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4287 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4288 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4289 mark functions.
4290 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4291 function.
4292
4293 2014-05-26 Andy Wingo <wingo@igalia.com>
4294 Doug Evans <xdje42@gmail.com>
4295
4296 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4297 empty_base_class. All uses updated.
4298 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4299 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4300 Adapt all callers.
4301 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4302 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4303 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4304 (gdbscm_gsmob_has_property_p, add_property_name)
4305 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4306 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4307 (gdb-object-has-property?, gdb-object-properties): Remove.
4308 (gdb-object-kind): Renamed from gsmob-kind.
4309
4310 2014-05-26 Andy Wingo <wingo@igalia.com>
4311
4312 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4313 * configure: Regenerate.
4314
4315 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4316
4317 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4318
4319 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4320
4321 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4322 (replay_memory_access_read_only, replay_memory_access_read_write)
4323 (replay_memory_access_types, replay_memory_access)
4324 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4325 (cmd_set_record_btrace, cmd_show_record_btrace)
4326 (cmd_show_replay_memory_access): New.
4327 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4328 (record_btrace_remove_breakpoint): Replace
4329 record_btrace_allow_memory_access with replay_memory_access.
4330 (_initialize_record_btrace): Add commands.
4331 * NEWS: Announce it.
4332
4333 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4334
4335 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4336
4337 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4338
4339 * MAINTAINERS (Write After Approval): Move self back from
4340 paper trail.
4341
4342 2014-05-22 Pedro Alves <palves@redhat.com>
4343
4344 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4345 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4346 (disable_randomization, enum exec_direction_kind)
4347 (execution_direction, stop_registers, start_remote)
4348 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4349 (wait_for_inferior, normal_stop, get_last_target_status)
4350 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4351 (insert_step_resume_breakpoint_at_sal)
4352 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4353 (set_step_info, print_stop_event, signal_stop_state)
4354 (signal_print_state, signal_pass_state, signal_stop_update)
4355 (signal_print_update, signal_pass_update)
4356 (update_signals_program_target, clear_exit_convenience_vars)
4357 (displaced_step_dump_bytes, update_observer_mode)
4358 (signal_catch_update, gdb_signal_from_command): Move
4359 declarations ...
4360 * infrun.h: ... to this new file.
4361 * amd64-tdep.c: Include infrun.h.
4362 * annotate.c: Include infrun.h.
4363 * arch-utils.c: Include infrun.h.
4364 * arm-linux-tdep.c: Include infrun.h.
4365 * arm-tdep.c: Include infrun.h.
4366 * break-catch-sig.c: Include infrun.h.
4367 * breakpoint.c: Include infrun.h.
4368 * common/agent.c: Include infrun.h instead of inferior.h.
4369 * corelow.c: Include infrun.h.
4370 * event-top.c: Include infrun.h.
4371 * go32-nat.c: Include infrun.h.
4372 * i386-tdep.c: Include infrun.h.
4373 * inf-loop.c: Include infrun.h.
4374 * infcall.c: Include infrun.h.
4375 * infcmd.c: Include infrun.h.
4376 * infrun.c: Include infrun.h.
4377 * linux-fork.c: Include infrun.h.
4378 * linux-nat.c: Include infrun.h.
4379 * linux-thread-db.c: Include infrun.h.
4380 * monitor.c: Include infrun.h.
4381 * nto-tdep.c: Include infrun.h.
4382 * procfs.c: Include infrun.h.
4383 * record-btrace.c: Include infrun.h.
4384 * record-full.c: Include infrun.h.
4385 * remote-m32r-sdi.c: Include infrun.h.
4386 * remote-mips.c: Include infrun.h.
4387 * remote-notif.c: Include infrun.h.
4388 * remote-sim.c: Include infrun.h.
4389 * remote.c: Include infrun.h.
4390 * reverse.c: Include infrun.h.
4391 * rs6000-tdep.c: Include infrun.h.
4392 * s390-linux-tdep.c: Include infrun.h.
4393 * solib-irix.c: Include infrun.h.
4394 * solib-osf.c: Include infrun.h.
4395 * solib-svr4.c: Include infrun.h.
4396 * target.c: Include infrun.h.
4397 * top.c: Include infrun.h.
4398 * windows-nat.c: Include infrun.h.
4399 * mi/mi-interp.c: Include infrun.h.
4400 * mi/mi-main.c: Include infrun.h.
4401 * python/py-threadevent.c: Include infrun.h.
4402
4403 2014-05-22 Pedro Alves <palves@redhat.com>
4404
4405 * infrun.c (handle_inferior_event): Store the exit code for
4406 --return-child-result here, instead of ...
4407 (print_exited_reason): ... here.
4408
4409 2014-05-21 Pedro Alves <palves@redhat.com>
4410
4411 PR gdb/13860
4412 * gdbthread.h (struct thread_control_state): New field
4413 `command_interp'.
4414 * infrun.c (follow_fork): Copy the new thread control field to the
4415 child fork thread.
4416 (clear_proceed_status_thread): Clear the new thread control field.
4417 (proceed): Set the new thread control field.
4418 * interps.h (command_interp): Declare.
4419 * interps.c (command_interpreter): New global.
4420 (command_interp): New function.
4421 (interp_exec): Set `command_interpreter' while here.
4422 * cli-out.c (cli_uiout_dtor): New function.
4423 (cli_ui_out_impl): Install it.
4424 * mi/mi-interp.c: Include cli-out.h.
4425 (mi_cmd_interpreter_exec): Add comment.
4426 (restore_current_uiout_cleanup): New function.
4427 (ui_out_free_cleanup): New function.
4428 (mi_on_normal_stop): If finishing an execution command started by
4429 a CLI command, or any kind of breakpoint-like event triggered,
4430 print the stop event to the output (CLI) stream.
4431 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4432
4433 2014-05-21 Pedro Alves <palves@redhat.com>
4434
4435 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4436 current source line having changed.
4437 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4438 * infrun.c (normal_stop): Adjust call to
4439 set_current_sal_from_frame.
4440 * source.c (clear_lines_listed_range): New function.
4441 (set_current_source_symtab_and_line, identify_source_line): Clear
4442 the lines listed range.
4443 (line_info): Handle the first "info line" after the current source
4444 line having changed.
4445 * stack.c (print_stack_frame): Remove center handling.
4446 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4447 center sal.line.
4448
4449 2014-05-21 Pedro Alves <palves@redhat.com>
4450
4451 * inf-child.c (inf_child_mourn_inferior): New function.
4452 * inf-child.h (inf_child_mourn_inferior): New declaration.
4453 * darwin-nat.c (darwin_mourn_inferior): Use
4454 inf_child_mourn_inferior.
4455 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4456 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4457 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4458 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4459 * windows-nat.c (windows_mourn_inferior): Likewise.
4460
4461 2014-05-21 Doug Evans <xdje42@gmail.com>
4462
4463 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4464
4465 2014-05-21 Doug Evans <xdje42@gmail.com>
4466
4467 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4468 (gdbscm_out_of_range_error): Ditto.
4469 (gdbscm_memory_error): Ditto.
4470 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4471 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4472 (gdbscm_out_of_range_error): Update.
4473 (gdbscm_memory_error): Update.
4474 (gdbscm_scm_to_target_string_unsafe): Delete.
4475
4476 2014-05-21 Pedro Alves <palves@redhat.com>
4477
4478 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4479 globals.
4480 (inf_child_open_target): New function.
4481 (inf_child_open): Use inf_child_open_target to push the target
4482 instead of erroring out.
4483 (inf_child_disconnect, inf_child_close)
4484 (inf_child_maybe_unpush_target): New functions.
4485 (inf_child_target): Install inf_child_disconnect and
4486 inf_child_close. Store a pointer to the returned object.
4487 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4488 declarations.
4489 * target.c (auto_connect_native_target): New global.
4490 (show_default_run_target): New function.
4491 (find_default_run_target): Return NULL if automatically connecting
4492 to the native target is disabled.
4493 (_initialize_target): Install set/show auto-connect-native-target.
4494 * NEWS: Mention "set auto-connect-native-target", and "target
4495 native".
4496 * linux-nat.c (super_close): New global.
4497 (linux_nat_close): Call super_close.
4498 (linux_nat_add_target): Store a pointer to the base class's
4499 to_close method.
4500 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4501 inf_child_maybe_unpush.
4502 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4503 already pushed.
4504 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4505 the inferior. Use inf_child_maybe_unpush_target.
4506 (inf_ttrace_attach): Don't push the target if it is already
4507 pushed.
4508 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4509 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4510 after mourning the inferior. Use inf_child_maybe_unpush_target.
4511 (darwin_attach_pid): Don't push the target if it is already
4512 pushed.
4513 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4514 mourning the inferior. Use inf_child_maybe_unpush_target.
4515 (gnu_detach): Use inf_child_maybe_unpush_target.
4516 * go32-nat.c (go32_create_inferior): Don't push the target if it
4517 is already pushed.
4518 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4519 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4520 (procfs_open): Rename to ...
4521 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4522 comments. Can target_preopen before changing node. Call
4523 inf_child_open_target to push the target explicitly.
4524 (procfs_attach): Don't push the target if it is already pushed.
4525 (procfs_detach): Use inf_child_maybe_unpush_target.
4526 (procfs_create_inferior): Don't push the target if it is already
4527 pushed.
4528 (nto_native_ops): New global.
4529 (procfs_open): Reimplement.
4530 (procfs_native_open): New function.
4531 (init_procfs_targets): Install procfs_native_open as to_open of
4532 "target native". Store a pointer to the "native" target in
4533 nto_native_ops.
4534 * procfs.c (procfs_attach): Don't push the target if it is already
4535 pushed.
4536 (procfs_detach): Use inf_child_maybe_unpush_target.
4537 (procfs_mourn_inferior): Only unpush the target after mourning the
4538 inferior. Use inf_child_maybe_unpush_target.
4539 (procfs_init_inferior): Don't push the target if it is already
4540 pushed.
4541 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4542 if it is already pushed.
4543
4544 2014-05-21 Pedro Alves <palves@redhat.com>
4545
4546 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4547 and "procfs" targets are now called "native" instead.
4548
4549 2014-05-21 Pedro Alves <palves@redhat.com>
4550
4551 * go32-nat.c (go32_open): Delete.
4552 (go32_target): Don't override the to_open method.
4553
4554 2014-05-21 Pedro Alves <palves@redhat.com>
4555
4556 * nto-procfs.c (procfs_can_run): New function.
4557 (nto_procfs_ops): New global.
4558 (init_procfs_targets): New, based on procfs_target. Install
4559 "target native" in addition to "target procfs".
4560 (_initialize_procfs): Call init_procfs_targets instead of adding
4561 the target here.
4562
4563 2014-05-21 Pedro Alves <palves@redhat.com>
4564
4565 * windows-nat.c (windows_target): Don't override to_shortname,
4566 to_longname or to_doc.
4567
4568 2014-05-21 Pedro Alves <palves@redhat.com>
4569
4570 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4571 to_doc.
4572
4573 2014-05-21 Pedro Alves <palves@redhat.com>
4574
4575 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4576 to_shortname, to_longname or to_doc.
4577
4578 2014-05-21 Pedro Alves <palves@redhat.com>
4579
4580 * go32-nat.c (go32_target): Don't override to_shortname,
4581 to_longname or to_doc.
4582
4583 2014-05-21 Pedro Alves <palves@redhat.com>
4584
4585 * inf-child.c (inf_child_open): Remove mention of "child".
4586 (inf_child_target): Rename target to "native" instead of "child".
4587
4588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4589
4590 * Makefile.in (SFILES): Delete "regset.c".
4591 (COMMON_OBS): Delete "regset.o".
4592 * regset.c: Remove.
4593 * regset.h (regset_alloc): Delete prototype.
4594
4595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4596
4597 * sparc-linux-tdep.c (sparc32_linux_gregset)
4598 (sparc32_linux_fpregset): New static regset structures.
4599 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4600 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4601 'fpregset' fields.
4602 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4603 (sparc64_linux_fpregset): New static regset structures.
4604 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4605 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4606 New static regset structures.
4607 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4608 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4609 New static regset structures.
4610 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4611 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4612 New static regset structures.
4613 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4614 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4615 New static regset structures.
4616 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4617
4618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4619
4620 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4621 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4622 register maps ("regmaps") from "*regset" to "*regmap". Do this
4623 for all regmap types and variables.
4624 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4625 (sparc32_linux_supply_core_gregset)
4626 (sparc32_linux_collect_core_gregset)
4627 (sparc32_linux_supply_core_fpregset)
4628 (sparc32_linux_collect_core_fpregset): Likewise.
4629 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4630 (sparc_gregmap, sparc_fpregmap): ... these.
4631 (sparc_supply_gregset, sparc_collect_gregset)
4632 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4633 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4634 (_initialize_sparc_nat): Rename regmaps.
4635 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4636 (sparc_gregmap, sparc_fpregmap): ... these.
4637 (sparc_supply_gregset, sparc_collect_gregset)
4638 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4639 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4640 Rename macros to...
4641 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4642 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4643 Likewise.
4644 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4645 Rename to...
4646 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4647 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4648 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4649 regmaps.
4650 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4651 (sparc32_bsd_fpregset): Rename to...
4652 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4653 (sparc32_bsd_fpregmap): ... these.
4654 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4655 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4656 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4657 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4658 (struct sparc_gregmap, struct sparc_fpregmap)
4659 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4660 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4661 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4662 (sparc32_supply_regset, sparc32_collect_gregset)
4663 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4664 prototypes.
4665 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4666 (sparc64_linux_ptrace_gregmap): ... this.
4667 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4668 (_initialize_sparc64_linux_nat): Rename regmaps.
4669 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4670 (sparc64_linux_core_gregmap): ... this.
4671 (sparc64_linux_supply_core_gregset)
4672 (sparc64_linux_collect_core_gregset)
4673 (sparc64_linux_supply_core_fpregset)
4674 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4675 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4676 (sparc64_sol2_fpregset): Rename to...
4677 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4678 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4679 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4680 regmaps.
4681 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4682 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4683 (sparc64_bsd_fpregset): Rename to...
4684 (struct sparc_gregmap, sparc64_sol2_gregmap)
4685 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4686 (sparc64_bsd_fpregmap): ... these.
4687 (sparc64_supply_gregset, sparc64_collect_gregset)
4688 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4689 prototypes.
4690 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4691 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4692 (sparc64fbsd_gregmap): ... this.
4693 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4694 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4695 Rename regmaps.
4696 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4697 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4698 (sparc64nbsd_collect_fpregset): Likewise.
4699 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4700 (sparc64nbsd_gregmap): ... this.
4701 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4702 regmaps.
4703 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4704 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4705 (sparc64obsd_gregmap): ... this.
4706 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4707 regmaps.
4708 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4709 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4710 (sparc32nbsd_gregmap): ... this.
4711 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4712 regmaps.
4713
4714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4715
4716 * score-tdep.c (score7_linux_gregset): New static regset
4717 structure.
4718 (score7_linux_regset_from_core_section): Remove dynamic regset
4719 allocation.
4720 (score_gdbarch_init): Drop allocation of tdep structure.
4721 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4722
4723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4724
4725 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4726 regset structures.
4727 (am33_regset_from_core_section): Remove dynamic regset
4728 allocations.
4729
4730 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731
4732 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4733 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4734 structures.
4735 (mips_linux_regset_from_core_section): Remove dynamic regset
4736 allocations.
4737 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4738 'gregset64', 'fpregset', and 'fpregset64'.
4739 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4740 deleted tdep fields.
4741
4742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4743
4744 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4745 regset structures.
4746 (amd64_regset_from_core_section): Remove dynamic regset
4747 allocations.
4748 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4749 structure.
4750 (amd64obsd_regset_from_core_section): Remove dynamic regset
4751 allocation.
4752 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4753 Likewise.
4754 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4755 x86-common regset supply function.
4756 * i386-tdep.c (i386_collect_gregset): Make static.
4757 (i386_gregset): New global regset structure.
4758 (i386_fpregset, i386_xstateregset): New static regset structures.
4759 (i386_regset_from_core_section): Remove dynamic regset
4760 allocations.
4761 (i386_gdbarch_init): Remove initialization of tdep fields
4762 'gregset', 'fpregset', and 'xstateregset'.
4763 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4764 'fpregset', and 'xstateregset'.
4765 (i386_collect_gregset): Remove prototype.
4766 (i386_gregset): New declaration.
4767 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4768 structure.
4769 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4770 allocation.
4771
4772 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4773
4774 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4775 (arm_linux_vfpregset): New static regset structures.
4776 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4777 regset structures.
4778 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4779 and 'vfpregset' fields.
4780
4781 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4782
4783 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4784 (aarch64_linux_fpregset): New static regset structures.
4785 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4786 of regset structures.
4787 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4788 'fpregset' fields.
4789
4790 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4791
4792 * regset.h (struct regset): Remove gdbarch field.
4793 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4794 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4795 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4796 Likewise.
4797 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4798 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4799 (ppc32_linux_vsxregset): Likewise.
4800 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4801 via the regcache instead of the regset.
4802 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4803 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4804 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4805 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4806 Likewise.
4807
4808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4809
4810 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4811 Constify structures.
4812 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4813 (alphanbsd_aout_gregset): Likewise.
4814 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4815 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4816 Likewise.
4817 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4818 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4819 Likewise.
4820 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4821 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4822 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4823 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4824 * m88k-tdep.c (m88k_gregset): Likewise.
4825 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4826 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4827 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4828 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4829 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4830 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4831 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4832 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4833 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4834 Likewise.
4835 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4836 * sh-tdep.h (sh_corefile_gregset): Likewise.
4837 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4838 * vax-tdep.c (vax_gregset): Likewise.
4839
4840 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4841
4842 Fix TLS access for -static -pthread.
4843 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4844 (try_thread_db_load_1): Initialize it.
4845 (thread_db_get_thread_local_address): Call it if LM is zero.
4846 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4847 * target.h (struct target_ops) (to_get_thread_local_address): Add
4848 load_module_addr comment.
4849
4850 2014-05-21 Pedro Alves <palves@redhat.com>
4851
4852 * dcache.c (dcache_read_memory_partial): If reading the cache line
4853 fails, fallback to reading just the memory the caller wanted.
4854
4855 2014-05-20 Doug Evans <dje@google.com>
4856
4857 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4858 instead of get_current_arch.
4859
4860 2014-05-20 Pedro Alves <palves@redhat.com>
4861
4862 * NEWS: Mention that compare-sections now works with all targets.
4863
4864 * remote.c (PACKET_qCRC): New enum value.
4865 (remote_verify_memory): Don't send qCRC if the target has no
4866 execution. Use packet_support/packet_ok. If the target doesn't
4867 support the qCRC packet, fallback to a deep memory copy.
4868 (compare_sections_command): Say "target image" instead of "remote
4869 executable".
4870 (_initialize_remote): Add PACKET_qCRC to the list of config
4871 packets that have no associated command. Extend comment.
4872 * target.c (simple_verify_memory, default_verify_memory): New
4873 function.
4874 * target.h (struct target_ops) <to_verify_memory>: Default to
4875 default_verify_memory.
4876 (simple_verify_memory): New declaration.
4877 * target-delegates.c: Regenerate.
4878
4879 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4880
4881 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4882
4883 2014-05-20 Hui Zhu <hui@codesourcery.com>
4884 Yao Qi <yao@codesourcery.com>
4885
4886 PR backtrace/16558
4887 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4888 and change address of sp and pc.
4889
4890 2014-05-19 Tom Tromey <tromey@redhat.com>
4891
4892 * gdbtypes.c (rank_function): Use XNEWVEC.
4893 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4894
4895 2014-05-19 Doug Evans <dje@google.com>
4896
4897 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4898 build_type_unit_groups and moved closer to only caller. Remove
4899 arguments. All references updated. Remove outdated .gdb_index
4900 comment.
4901 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4902 build_type_psymtabs_1.
4903
4904 2014-05-19 Doug Evans <dje@google.com>
4905
4906 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4907 n_type_unit_groups, all_type_unit_groups. All uses removed.
4908 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4909 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4910 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4911 (add_type_unit_group_to_table): Delete.
4912
4913 2014-05-19 Doug Evans <dje@google.com>
4914
4915 * eval.c (evaluate_subexp_standard): Add some comments.
4916
4917 2014-05-17 Doug Evans <xdje42@gmail.com>
4918
4919 * progspace.c (remove_program_space): Delete, unused.
4920 * progspace.h (remove_program_space): Ditto.
4921
4922 2014-05-17 Doug Evans <xdje42@gmail.com>
4923
4924 * inferior.c (prune_inferiors): Fix comment.
4925 (remove_inferior_command): Call prune_program_spaces.
4926
4927 2014-05-16 Doug Evans <dje@google.com>
4928
4929 New command line option -D.
4930 * NEWS: Mention it.
4931 * main.c (set_gdb_data_directory): New function.
4932 (captured_main): Recognize -D. Flag error for --data-directory "".
4933 Call set_gdb_data_directory.
4934 (print_gdb_help): Print --data-directory, -D.
4935 * main.h (set_gdb_data_directory): Declare.
4936 * top.c (staged_gdb_datadir): New static global.
4937 (set_gdb_datadir): Call set_gdb_data_directory
4938 (show_gdb_datadir): New function.
4939 (init_main): Update init of data-directory parameter.
4940
4941 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4942
4943 Import the "dirfd" gnulib module.
4944 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4945 * gnulib/aclocal.m4: Update.
4946 * gnulib/config.in: Update.
4947 * gnulib/configure: Update.
4948 * gnulib/import/Makefile.am: Update.
4949 * gnulib/import/Makefile.in: Update.
4950 * gnulib/import/dirfd.c: New.
4951 * gnulib/import/m4/dirfd.m4: New.
4952 * gnulib/import/m4/gnulib-cache.m4: Update.
4953 * gnulib/import/m4/gnulib-comp.m4: Update.
4954
4955 2014-05-16 Pierre Muller <muller@sourceware.org>
4956 Yao Qi <yao@codesourcery.com>
4957
4958 * valprint.c (print_wchar): Move the code on checking whether
4959 W is a printable wide char to the default branch of switch
4960 statement below. Call wchar_printable instead of gdb_iswprint.
4961
4962 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4963
4964 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4965 ldr.w and ldrd instructions.
4966
4967 2014-05-15 Doug Evans <dje@google.com>
4968
4969 * dwarf2read.c (read_structure_type): Delete outdated comments.
4970
4971 2014-05-14 Tom Tromey <tromey@redhat.com>
4972
4973 * macrocmd.c (print_macro_definition): Reindent.
4974
4975 2014-05-13 Doug Evans <xdje42@gmail.com>
4976
4977 * python/py-cmd.c (cmdpy_completer): Add comment.
4978 (completers): Make const.
4979
4980 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4981
4982 * infrun.c (resume): Remove should_resume (unused). Move up
4983 declaration of resume_ptid.
4984
4985 2014-05-13 Tom Tromey <tromey@redhat.com>
4986
4987 * language.h (unop_type_check): Remove.
4988 (binop_type_check): Don't declare.
4989
4990 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4991
4992 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4993 call to regcache_raw_collect.
4994
4995 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4996
4997 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4998 mi_console->quote as the quoting character.
4999
5000 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5001
5002 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5003
5004 2014-04-29 Tom Tromey <tromey@redhat.com>
5005
5006 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5007 "show debug varobj".
5008
5009 2014-05-07 Kyle McMartin <kyle@redhat.com>
5010
5011 Pushed by Joel Brobecker <brobecker@adacore.com>.
5012 * aarch64-tdep.c (aarch64_software_single_step): New function.
5013 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5014 with aarch64_software_single_step.
5015
5016 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5017
5018 GDB 7.7.1 released.
5019
5020 2014-05-05 Keith Seitz <keiths@redhat.com>
5021
5022 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5023 variable or history value is successfully parsed.
5024
5025 2014-05-05 Yao Qi <yao@codesourcery.com>
5026 Pedro Alves <palves@redhat.com>
5027
5028 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5029 address of blocks that intersects the requested range. Trim
5030 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5031 sections.
5032 * ctf.c (ctf_xfer_partial): Likewise.
5033
5034 2014-05-05 Yao Qi <yao@codesourcery.com>
5035
5036 * printcmd.c (display_command): Remove the check to
5037 target_has_execution.
5038
5039 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5040
5041 * ppcobsd-nat.c: Include "obsd-nat.h".
5042 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5043 add_target.
5044 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5045
5046 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5047
5048 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5049 and 16-bit signed and unsigned arguments. Update comment.
5050 (stap_parse_probe_arguments): Extend code to handle such
5051 arguments. Use warning instead of complaint to notify about
5052 unrecognized bitness.
5053
5054 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5055
5056 PR breakpoints/16889
5057 * stap-probe.c (stap_parse_probe_arguments): Simplify
5058 check for non-prefixed probes (i.e., probes whose
5059 arguments do not start with "N@"). Always set the
5060 argument type to a sane value.
5061
5062 2014-05-01 David Taylor <dtaylor@emc.com>
5063
5064 * remote.c (compare_sections_command): Add -r option to compare
5065 all loadable read-only sections.
5066
5067 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5068
5069 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5070 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5071 Update all callers.
5072 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5073 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5074 Remove unused CORE_ADDR argument. Update all callers.
5075
5076 2014-04-29 Pedro Alves <palves@redhat.com>
5077
5078 * remote.c (struct packet_config) <detect>: Extend comment.
5079 (add_packet_config_cmd): Don't set the config's detect or support
5080 fields here.
5081 (init_all_packet_configs): Also initialize the config's 'detect'
5082 field.
5083 (reset_all_packet_configs_support): New function.
5084 (remote_open_1): Call reset_all_packet_configs_support instead of
5085 init_all_packet_configs.
5086 (_initialize_remote): Initialize all packet configs. Assert that
5087 all packets have an associated command, except a few known
5088 outliers.
5089
5090 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5091
5092 * dwarf2read.c (read_subrange_type): Handle dynamic
5093 DW_AT_lower_bound attributes.
5094
5095 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5096
5097 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5098 dynamic bounds before computing its upper bound.
5099 (ada_discrete_type_low_bound): Same as above with the lower bound.
5100
5101 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5102
5103 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5104 range types. Adjust the array handling implementation to
5105 take advantage of this change.
5106 (resolve_dynamic_range): New function, mostly extracted from
5107 resolve_dynamic_bounds.
5108 (resolve_dynamic_array): New function, mostly extracted from
5109 resolve_dynamic_bounds.
5110 (resolve_dynamic_bounds): Delete.
5111 (resolve_dynamic_type): Reimplement. Add handling of
5112 TYPE_CODE_RANGE types.
5113
5114 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5115
5116 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5117 handling of parallel ___XA types.
5118
5119 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5120
5121 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5122 unnecessary second call to static_unwrap_type.
5123
5124 2014-04-27 Hui Zhu <hui@codesourcery.com>
5125
5126 * stack.c (print_frame_info): Call do_gdb_disassembly with
5127 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5128
5129 2014-04-26 Doug Evans <xdje42@gmail.com>
5130
5131 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5132
5133 2014-04-25 Pedro Alves <palves@redhat.com>
5134
5135 PR server/16255
5136 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5137 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5138 and newline from built string.
5139 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5140 (linux_ptrace_attach_fail_reason): ... this.
5141 * linux-nat.c (linux_nat_attach): Adjust to use
5142 linux_ptrace_attach_fail_reason.
5143
5144 2014-04-25 Pedro Alves <palves@redhat.com>
5145
5146 * remote.c (struct remote_state): Remove multi_process_aware,
5147 non_stop_aware, cond_tracepoints, cond_breakpoints,
5148 breakpoint_commands, fast_tracepoints, static_tracepoints,
5149 install_in_trace, disconnected_tracing,
5150 enable_disable_tracepoints, string_tracing, and
5151 augmented_libraries_svr4_read fields.
5152 (remote_multi_process_p): Move further below in the file.
5153 (struct packet_config): Add comments.
5154 (update_packet_config): Delete function.
5155 (show_packet_config_cmd): Use packet_config_support.
5156 (add_packet_config_cmd): Use NULL as set callback.
5157 (packet_ok): "set remote foo-packet"-style commands no longer
5158 change config->supported -- adjust.
5159 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5160 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5161 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5162 (PACKET_QNonStop, PACKET_multiprocess_feature)
5163 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5164 (PACKET_DisconnectedTracing_feature)
5165 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5166 (set_remote_protocol_packet_cmd): Delete function.
5167 (packet_config_support, packet_support): New functions.
5168 (set_remote_protocol_Z_packet_cmd): Don't call
5169 update_packet_config.
5170 (remote_query_attached, remote_pass_signals)
5171 (remote_program_signals, remote_threads_info)
5172 (remote_threads_extra_info, remote_start_remote): Use
5173 packet_support.
5174 (remote_start_remote): Use packet_config_support and
5175 packet_support.
5176 (init_all_packet_configs): Set all packets to unknown support,
5177 instead of calling update_packet_config.
5178 (remote_check_symbols): Use packet_support.
5179 (remote_supported_packet): Unconditionally set the packet config's
5180 support status.
5181 (remote_multi_process_feature, remote_non_stop_feature)
5182 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5183 (remote_breakpoint_commands_feature)
5184 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5185 (remote_install_in_trace_feature)
5186 (remote_disconnected_tracing_feature)
5187 (remote_enable_disable_tracepoint_feature)
5188 (remote_string_tracing_feature)
5189 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5190 (remote_protocol_features): Adjust to use remote_supported_packet
5191 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5192 "ConditionalTracepoints", "ConditionalBreakpoints",
5193 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5194 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5195 "EnableDisableTracepoints", and "tracenz".
5196 (remote_query_supported): Use packet_support.
5197 (remote_open_1): Adjust.
5198 (extended_remote_attach_1): Use packet_support. Switch on the
5199 result of packet_ok instead of checking whether the packet ended
5200 up disabled.
5201 (remote_vcont_resume): Use packet_support.
5202 (remote_resume, remote_stop_ns, fetch_register_using_p)
5203 (remote_prepare_to_store, store_register_using_P)
5204 (check_binary_download, remote_write_bytes): Use packet_support.
5205 (remote_vkill): Use packet_support. Switch on the result of
5206 packet_ok instead of checking whether the packet ended up
5207 disabled.
5208 (extended_remote_supports_disable_randomization): Use
5209 packet_support.
5210 (extended_remote_run): Switch on the result of packet_ok instead
5211 of checking whether the packet ended up disabled.
5212 (remote_insert_breakpoint, remote_remove_breakpoint)
5213 (remote_insert_watchpoint, remote_remove_watchpoint)
5214 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5215 packet_support.
5216 (remote_search_memory): Use packet_config_support.
5217 (remote_get_thread_local_address, remote_get_tib_address)
5218 (remote_hostio_send_command, remote_can_execute_reverse): Use
5219 packet_support.
5220 (remote_supports_cond_tracepoints)
5221 (remote_supports_cond_breakpoints)
5222 (remote_supports_fast_tracepoints)
5223 (remote_supports_static_tracepoints)
5224 (remote_supports_install_in_trace)
5225 (remote_supports_enable_disable_tracepoint)
5226 (remote_supports_string_tracing)
5227 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5228 the packet config says the feature is enabled or disabled.
5229 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5230 (remote_get_trace_status): Use packet_support.
5231 (remote_set_disconnected_tracing): Adjust to check whether the
5232 feature is enabled with packet_support.
5233 (remote_set_trace_buffer_size, remote_use_agent)
5234 (remote_can_use_agent, remote_supports_btrace): Use
5235 packet_support.
5236 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5237 Use packet_config_support.
5238 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5239 the packet config says the feature is enabled or disabled.
5240 (set_range_stepping): Use packet_support.
5241
5242 2014-04-25 Tom Tromey <tromey@redhat.com>
5243
5244 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5245 argument.
5246
5247 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5248
5249 * NEWS: Mention support for C99 variable length arrays.
5250
5251 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5252
5253 * ada-lang.c (standard_exc): Expand introductory comment.
5254
5255 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5256 Walfred Tedeschi <walfred.tedeschi@intel.com>
5257
5258 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5259 AVX512 registers.
5260 (amd64_linux_read_description): Add code to handle AVX512 xstate
5261 mask and return respective tdesc.
5262 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5263 and features/i386/x32-avx512-linux.c.
5264 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5265 (amd64_linux_core_read_description): Add code to handle AVX512
5266 xstate mask and return respective tdesc.
5267 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5268 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5269 calculation.
5270 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5271 (tdesc_amd64_avx512_linux): New prototype.
5272 (tdesc_x32_avx512_linux): Likewise.
5273 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5274 features/i386/x32-avx512.c.
5275 (amd64_ymm_avx512_names): New register names for pseudo
5276 registers YMM16-31.
5277 (amd64_ymmh_avx512_names): New register names for raw registers
5278 YMMH16-31.
5279 (amd64_k_names): New register names for K registers.
5280 (amd64_zmmh_names): New register names for ZMM raw registers.
5281 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5282 (amd64_xmm_avx512_names): New register names for XMM16-31
5283 registers.
5284 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5285 registers.
5286 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5287 if feature is present.
5288 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5289 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5290 (AMD64_NUM_REGS): Adjust to new number of registers.
5291 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5292 registers supplied via XSTATE by AVX512 registers.
5293 (i386_linux_read_description): Add case for AVX512.
5294 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5295 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5296 (i386_linux_core_read_description): Add case for AVX512.
5297 (i386_linux_init_abi): Install supported register note section
5298 for AVX512.
5299 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5300 AVX512.
5301 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5302 registers to be number of zmm7h + 1.
5303 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5304 * i386-tdep.c: Include features/i386/i386-avx512.c.
5305 (i386_zmm_names): Add ZMM pseudo register names array.
5306 (i386_zmmh_names): Add ZMM raw register names array.
5307 (i386_k_names): Add K raw register names array.
5308 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5309 registers. AVX512 has 16 more ZMM registers than there are YMM
5310 registers.
5311 (i386_zmmh_regnum_p): Add function to look up register number of
5312 ZMM raw registers.
5313 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5314 (i386_k_regnum_p): Likewise for K raw registers.
5315 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5316 registers added by AVX512.
5317 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5318 registers added by AVX512.
5319 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5320 added by AVX512.
5321 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5322 (i386_pseudo_register_name): Add ZMM pseudo registers.
5323 (i386_zmm_type): Construct and return vector registers type for ZMM
5324 registers.
5325 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5326 ZMM0-31 pseudo registers and K registers.
5327 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5328 and YMM16-31 registers from register cache.
5329 (i386_pseudo_register_write): Add code to write K, ZMM and
5330 YMM16-31 registers.
5331 (i386_register_reggroup_p): Add code to include/exclude AVX512
5332 registers in/from respective register groups.
5333 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5334 registers if feature is present in xcr0.
5335 (i386_gdbarch_init): Add code to initialize AVX512 feature
5336 variables in tdep structure, wire in pseudo registers and call
5337 initialize_tdesc_i386_avx512.
5338 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5339 variables.
5340 (i386_regnum): Add AVX512 registers.
5341 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5342 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5343 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5344 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5345 512 bits wide.
5346 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5347 (i386_ymm_avx512_regnum_p): Likewise.
5348 (i386_k_regnum_p): Likewise.
5349 (i386_zmm_regnum_p): Likewise.
5350 (i386_zmmh_regnum_p): Likewise.
5351 * i387-tdep.c : Update year in copyright notice.
5352 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5353 XSAVE buffer.
5354 (XSAVE_YMM_AVX512_ADDR): New macro.
5355 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5356 XSAVE buffer.
5357 (XSAVE_XMM_AVX512_ADDR): New macro.
5358 (xsave_avx512_k_offset): New table for K register offsets in
5359 XSAVE buffer.
5360 (XSAVE_AVX512_K_ADDR): New macro.
5361 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5362 in XSAVE buffer.
5363 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5364 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5365 buffer.
5366 (i387_collect_xsave): Add code to collect AVX512 registers from
5367 XSAVE buffer.
5368 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5369 of XMM16-31 registers.
5370 (I387_NUM_K_REGS): New define for number of K registers.
5371 (I387_K0_REGNUM): New define for K0 register number.
5372 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5373 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5374 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5375 registers.
5376 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5377 (I387_XMM16_REGNUM): New define for XMM16 register number.
5378 (I387_YMM0_REGNUM): New define for YMM0 register number.
5379 (I387_KEND_REGNUM): New define for last K register number.
5380 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5381 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5382 number.
5383 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5384 number.
5385 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5386 size.
5387 * features/Makefile: Add AVX512 related files.
5388 * features/i386/32bit-avx512.xml: New file.
5389 * features/i386/64bit-avx512.xml: Likewise.
5390 * features/i386/amd64-avx512-linux.c: Likewise.
5391 * features/i386/amd64-avx512-linux.xml: Likewise.
5392 * features/i386/amd64-avx512.c: Likewise.
5393 * features/i386/amd64-avx512.xml: Likewise.
5394 * features/i386/i386-avx512-linux.c: Likewise.
5395 * features/i386/i386-avx512-linux.xml: Likewise.
5396 * features/i386/i386-avx512.c: Likewise.
5397 * features/i386/i386-avx512.xml: Likewise.
5398 * features/i386/x32-avx512-linux.c: Likewise.
5399 * features/i386/x32-avx512-linux.xml: Likewise.
5400 * features/i386/x32-avx512.c: Likewise.
5401 * features/i386/x32-avx512.xml: Likewise.
5402 * regformats/i386/amd64-avx512-linux.dat: New file.
5403 * regformats/i386/amd64-avx512.dat: Likewise.
5404 * regformats/i386/i386-avx512-linux.dat: Likewise.
5405 * regformats/i386/i386-avx512.dat: Likewise.
5406 * regformats/i386/x32-avx512-linux.dat: Likewise.
5407 * regformats/i386/x32-avx512.dat: Likewise.
5408 * NEWS: Add note about new support for AVX512.
5409
5410
5411 2014-04-23 Pedro Alves <palves@redhat.com>
5412
5413 * breakpoint.c (insert_bp_location): Tolerate errors if the
5414 breakpoint is set in a user-loaded objfile.
5415 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5416 location is marked shlib_disabled. If the breakpoint is set in a
5417 user-loaded objfile is a GDB-side memory breakpoint, validate it
5418 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5419 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5420 flag.
5421 * mem-break.c (memory_validate_breakpoint): New function.
5422 * objfiles.c (userloaded_objfile_contains_address_p): New
5423 function.
5424 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5425 * target.h (memory_validate_breakpoint): New declaration.
5426
5427 2014-04-23 Pedro Alves <palves@redhat.com>
5428
5429 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5430 the breakpoint is set in a shared library, only suppress
5431 errors for software breakpoints, not hardware breakpoints.
5432
5433 2014-04-22 Pedro Alves <palves@redhat.com>
5434
5435 * infrun.c (schedlock_applies): New function, factored out from
5436 find_thread_needs_step_over.
5437 (find_thread_needs_step_over): Use it.
5438 (switch_back_to_stepped_thread): Always clear trap_expected if the
5439 step over is finished. Return early if scheduler locking applies.
5440 Look for the stepping thread and a potential step-over thread with
5441 a single loop.
5442 (currently_stepping_or_nexting_callback): Delete.
5443
5444 2014-04-22 Nick Clifton <nickc@redhat.com>
5445
5446 * NEWS: Mention that ARM sim now supports tracing.
5447
5448 2014-04-22 Yao Qi <yao@codesourcery.com>
5449
5450 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5451 to ...
5452 * tracefile.c (tracefile_fetch_registers): ... it. New
5453 function.
5454 * tracefile.h (tracefile_fetch_registers): Declare.
5455 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5456 tracefile_fetch_registers.
5457
5458 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5459
5460 PR gdb/14018
5461 * windows-nat.c (thread_rec): Don't display a warning when
5462 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5463 fails for any reason, set th->suspended to -1, so that we don't
5464 try to resume such a thread. Also, don't return NULL in these
5465 cases, to avoid completely ruin the session due to "PC register is
5466 not available" error.
5467 (do_windows_fetch_inferior_registers): Check errors in
5468 GetThreadContext call.
5469 (windows_continue): Accept an additional argument KILLED; if not
5470 zero, ignore errors in the SetThreadContext call, since the
5471 inferior was killed and is shutting down.
5472 (windows_resume, get_windows_debug_event)
5473 (windows_create_inferior, windows_mourn_inferior)
5474 (windows_kill_inferior): All callers of windows_continue changed
5475 to adjust to its new calling sequence.
5476
5477 2014-04-19 Yao Qi <yao@codesourcery.com>
5478
5479 * ctf.c (ctf_open): Call post_create_inferior.
5480
5481 2014-04-19 Yao Qi <yao@codesourcery.com>
5482
5483 * ctf.c (handle_id): New static variable.
5484 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5485 value. Get the declaration of event "register" and get length
5486 of field "contents".
5487
5488 2014-04-19 Yao Qi <yao@codesourcery.com>
5489
5490 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5491
5492 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5493
5494 * valops.c (oload_method_static): Remove unnecessary argument
5495 METHOD. Update all callers.
5496
5497 2014-04-18 Pedro alves <palves@redhat.com>
5498 Tom Tromey <tromey@redhat.com>
5499
5500 PR backtrace/15558
5501 * frame.c (get_prev_frame_1): Rename to ...
5502 (get_prev_frame_always): ... this, and make extern. Adjust.
5503 (skip_artificial_frames): Use get_prev_frame_always.
5504 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5505 (get_frame_unwind_stop_reason): Adjust to rename.
5506 * frame.h (get_prev_frame_always): Declare.
5507 * inline-frame.c: Include frame.h.
5508 (inline_frame_this_id): Use get_prev_frame_always.
5509
5510 2014-04-18 Tristan Gingold <gingold@adacore.com>
5511
5512 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5513 code by using bfd_mach_o_get_base_address.
5514
5515 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5516
5517 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5518 (spu_ax_pseudo_register_collect): New function.
5519 (spu_ax_pseudo_register_push_stack): Likewise.
5520 (spu_dwarf_reg_to_regnum): Likewise.
5521 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5522
5523 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5524
5525 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5526 Replace FRAME argument with FRAME_ID.
5527 * gdbarch.c, gdbarch.h: Regenerate.
5528 * findvar.c (default_value_from_register): Add GDBARCH argument;
5529 replace FRAME by FRAME_ID. No longer call get_frame_id.
5530 (value_from_register): Update call to gdbarch_value_from_register.
5531 * value.h (default_value_from_register): Update prototype.
5532 * s390-linux-tdep.c (s390_value_from_register): Update interface
5533 and call to default_value_from_register.
5534 * spu-tdep.c (spu_value_from_register): Likewise.
5535
5536 * findvar.c (address_from_register): Remove TYPE argument.
5537 Do not call value_from_register; use gdbarch_value_from_register
5538 with null_frame_id instead.
5539 * value.h (address_from_register): Update prototype.
5540 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5541 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5542 address_from_register interface change.
5543
5544 2014-04-17 Yao Qi <yao@codesourcery.com>
5545
5546 * gdbtypes.h: Update comments to link to types and macros'
5547 definitions.
5548
5549 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5550
5551 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5552
5553 2014-04-16 Keith Seitz <keiths@redhat.com>
5554
5555 PR gdb/15827
5556 * dwarf2read.c (skip_one_die): Check that all relative-offset
5557 sibling DIEs fall within range of the current reader's buffer.
5558 (read_partial_die): Likewise.
5559
5560 2014-04-16 Keith Seitz <keiths@redhat.com>
5561
5562 PR c++/16597
5563 * cp-namespace.c (lookup_symbol_file): If the type name of
5564 `this' is NULL, return immediately.
5565
5566 2014-04-14 Keith Seitz <keiths@redhat.com>
5567
5568 PR c++/16253
5569 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5570 from symbol_matches_domain in symtab.c. All local callers
5571 of symbol_matches_domain updated.
5572 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5573 search STRUCT_DOMAIN.
5574 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5575 independently. standard_lookup will do that automatically.
5576 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5577 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5578 (cp_lookup_symbol_in_namespace): Likewise.
5579 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5580 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5581 may return a STRUCT_DOMAIN match.
5582 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5583 * cp-support.c: Include language.h.
5584 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5585 VAR_DOMAIN.
5586 * psymtab.c (match_partial_symbol): Compare the requested
5587 domain with the symbol's domain directly.
5588 (lookup_partial_symbol): Likewise.
5589 * symtab.c (lookup_symbol_in_language): Explain when/why
5590 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5591 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5592 appropriate languages.
5593 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5594 and moved to ada-lang.c
5595 (lookup_block_symbol): Explain that this function only returns
5596 symbol matching the requested DOMAIN.
5597 Compare the requested domain with the symbol's domain directly.
5598 (iterate_over_symbols): Compare the requested domain with the
5599 symbol's domain directly.
5600 * symtab.h (symbol_matches_domain): Remove.
5601
5602 2014-04-14 Tom Tromey <tromey@redhat.com>
5603
5604 PR c++/15246:
5605 * c-exp.y (type_aggregate_p): New function.
5606 (qualified_name, classify_inner_name): Use it.
5607 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5608 and TYPE_TARGET_TYPE of an enum type.
5609 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5610 an enum type.
5611 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5612 handle TYPE_DECLARED_CLASS.
5613 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5614 types.
5615 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5616 * valops.c (enum_constant_from_type): New function.
5617 (value_aggregate_elt): Use it.
5618 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5619 TYPE_CODE_ENUM.
5620
5621 2014-04-14 Tom Tromey <tromey@redhat.com>
5622
5623 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5624 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5625 const.
5626 * value.h (value_aggregate_elt): Update.
5627
5628 2014-04-14 Tom Tromey <tromey@redhat.com>
5629
5630 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5631
5632 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5633
5634 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5635 (evaluate_subexp_standard): Pass noside argument.
5636 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5637 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5638 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5639 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5640 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5641
5642 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5643
5644 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5645 points to a constant blob.
5646
5647 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5648
5649 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5650 property and store it as the high bound and flag the range accordingly.
5651 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5652 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5653 * gdbtypes.h (enum range_flags): New enum.
5654 (struct range_bounds): Add flags member.
5655
5656 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5657
5658 * c-typeprint.c (c_type_print_varspec_suffix): Added
5659 check for not yet resolved high bound. If unresolved, print
5660 "variable length" string to the console instead of random
5661 length.
5662
5663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5664
5665 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5666 value.
5667 (ada_template_to_fixed_record_type_1): Likewise.
5668 (ada_to_fixed_type_1): Likewise.
5669 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5670 (cp_print_value): Likewise.
5671 * d-valprint.c (dynamic_array_type): Likewise.
5672 * findvar.c (address_of_variable): Likewise.
5673 * jv-valprint.c (java_value_print): Likewise.
5674 * valops.c (value_ind): Likewise.
5675 * value.c (coerce_ref): Likewise.
5676
5677 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5678
5679 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5680 value and retrieve the dynamic type size.
5681
5682 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5683
5684 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5685 passed to sizeof is dynamic evaluate the argument to compute the length.
5686
5687 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5688 Joel Brobecker <brobecker@adacore.com>
5689
5690 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5691 (dwarf2_evaluate_property): New function.
5692 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5693 * dwarf2read.c (attr_to_dynamic_prop): New function.
5694 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5695 attribute.
5696 * gdbtypes.c: Include dwarf2loc.h.
5697 (is_dynamic_type): New function.
5698 (resolve_dynamic_type): New function.
5699 (resolve_dynamic_bounds): New function.
5700 (get_type_length): New function.
5701 (check_typedef): Use get_type_length to compute type length.
5702 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5703 (TYPE_LOW_BOUND_KIND): New macro.
5704 (is_dynamic_type): New function prototype.
5705 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5706 to resolve dynamic properties of the type. Update comment.
5707 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5708
5709 2014-04-14 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5712
5713 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5714 Doug Evans <xdje42@gmail.com>
5715
5716 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5717 dereference TYPE_CODE_REF values.
5718
5719 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5720
5721 Revert the following changes due to regressions:
5722
5723 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5724 (dwarf2_evaluate_property): New function.
5725 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5726 * dwarf2read.c (attr_to_dynamic_prop): New function.
5727 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5728 attribute.
5729 * gdbtypes.c: Include dwarf2loc.h.
5730 (is_dynamic_type): New function.
5731 (resolve_dynamic_type): New function.
5732 (resolve_dynamic_bounds): New function.
5733 (get_type_length): New function.
5734 (check_typedef): Use get_type_length to compute type length.
5735 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5736 (TYPE_LOW_BOUND_KIND): New macro.
5737 (is_dynamic_type): New function prototype.
5738 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5739 to resolve dynamic properties of the type. Update comment.
5740 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5741
5742 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5743 passed to sizeof is dynamic evaluate the argument to compute the length.
5744
5745 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5746 value and retrieve the dynamic type size.
5747
5748 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5749 (ada_template_to_fixed_record_type_1): Likewise.
5750 (ada_to_fixed_type_1): Likewise.
5751 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5752 (cp_print_value): Likewise.
5753 * d-valprint.c (dynamic_array_type): Likewise.
5754 * eval.c (evaluate_subexp_with_coercion): Likewise.
5755 * findvar.c (address_of_variable): Likewise.
5756 * jv-valprint.c (java_value_print): Likewise.
5757 * valops.c (value_ind): Likewise.
5758 * value.c (coerce_ref): Likewise.
5759
5760 * c-typeprint.c (c_type_print_varspec_suffix): Added
5761 check for not yet resolved high bound. If unresolved, print
5762 "variable length" string to the console instead of random
5763 length.
5764
5765 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5766 property and store it as the high bound and flag the range accordingly.
5767 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5768 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5769 * gdbtypes.h (enum range_flags): New enum.
5770 (struct range_bounds): Add flags member.
5771
5772 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5773 points to a constant blob.
5774
5775 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5776 (evaluate_subexp_standard): Pass noside argument.
5777 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5778 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5779 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5780 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5781 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5782
5783 2014-04-11 Keith Seitz <keiths@redhat.com>
5784
5785 PR c++/16675
5786 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5787 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5788 reference types.
5789
5790 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5791
5792 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5793 (evaluate_subexp_standard): Pass noside argument.
5794 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5795 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5796 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5797 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5798 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5799
5800 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5801
5802 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5803 points to a constant blob.
5804
5805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5806
5807 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5808 property and store it as the high bound and flag the range accordingly.
5809 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5810 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5811 * gdbtypes.h (enum range_flags): New enum.
5812 (struct range_bounds): Add flags member.
5813
5814 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5815
5816 * c-typeprint.c (c_type_print_varspec_suffix): Added
5817 check for not yet resolved high bound. If unresolved, print
5818 "variable length" string to the console instead of random
5819 length.
5820
5821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5822
5823 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5824 (ada_template_to_fixed_record_type_1): Likewise.
5825 (ada_to_fixed_type_1): Likewise.
5826 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5827 (cp_print_value): Likewise.
5828 * d-valprint.c (dynamic_array_type): Likewise.
5829 * eval.c (evaluate_subexp_with_coercion): Likewise.
5830 * findvar.c (address_of_variable): Likewise.
5831 * jv-valprint.c (java_value_print): Likewise.
5832 * valops.c (value_ind): Likewise.
5833 * value.c (coerce_ref): Likewise.
5834
5835 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5836
5837 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5838 value and retrieve the dynamic type size.
5839
5840 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5841
5842 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5843 passed to sizeof is dynamic evaluate the argument to compute the length.
5844
5845 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5846
5847 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5848 (dwarf2_evaluate_property): New function.
5849 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5850 * dwarf2read.c (attr_to_dynamic_prop): New function.
5851 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5852 attribute.
5853 * gdbtypes.c: Include dwarf2loc.h.
5854 (is_dynamic_type): New function.
5855 (resolve_dynamic_type): New function.
5856 (resolve_dynamic_bounds): New function.
5857 (get_type_length): New function.
5858 (check_typedef): Use get_type_length to compute type length.
5859 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5860 (TYPE_LOW_BOUND_KIND): New macro.
5861 (is_dynamic_type): New function prototype.
5862 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5863 to resolve dynamic properties of the type. Update comment.
5864 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5865
5866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5867
5868 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5869 declaring high/low bounds and change uses accordingly. Call
5870 create_range_type instead of create_static_range_type.
5871 * gdbtypes.c (create_range_type): New function.
5872 (create_range_type): Convert bounds into struct bound_prop and pass
5873 them to create_range_type.
5874 * gdbtypes.h (struct bound_prop): New struct.
5875 (create_range_type): New function prototype.
5876 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5877 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5878 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5879 part of the bound.
5880 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5881
5882 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5883
5884 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5885 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5886 * ada-lang.c: All uses of create_range_type updated.
5887 * coffread.c: All uses of create_range_type updated.
5888 * dwarf2read.c: All uses of create_range_type updated.
5889 * f-exp.y: All uses of create_range_type updated.
5890 * m2-valprint.c: All uses of create_range_type updated.
5891 * mdebugread.c: All uses of create_range_type updated.
5892 * stabsread.c: All uses of create_range_type updated.
5893 * valops.c: All uses of create_range_type updated.
5894 * valprint.c: All uses of create_range_type updated.
5895
5896 2014-04-10 Pedro Alves <palves@redhat.com>
5897
5898 * breakpoint.c (single_step_breakpoints)
5899 (single_step_gdbarch): Move up in the file.
5900 (one_breakpoint_xfer_memory): New function, factored out from ...
5901 (breakpoint_xfer_memory): ... here. Also process single-step
5902 breakpoints.
5903
5904 2014-04-09 Tristan Gingold <gingold@adacore.com>
5905
5906 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5907 comments.
5908 (darwin_decode_exception_message): Free port only after use.
5909
5910 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5911
5912 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5913 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5914 when setting the size of call_length.
5915
5916 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5917
5918 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5919 dereference TYPE_CODE_REF values.
5920
5921 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5922
5923 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5924 end of warning message.
5925
5926 2014-04-03 Doug Evans <dje@google.com>
5927
5928 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5929 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5930
5931 2014-04-02 Alan Modra <amodra@gmail.com>
5932
5933 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5934 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5935 (struct symbol_file_add_from_memory_args): Add size field.
5936 (find_vdso_size): New function.
5937 (add_vsyscall_page): Attempt to find vdso size.
5938
5939 2014-04-01 Doug Evans <dje@google.com>
5940
5941 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5942
5943 2014-04-01 Tristan Gingold <gingold@adacore.com>
5944
5945 * darwin-nat.c (darwin_encode_reply): Add prototype.
5946 (darwin_decode_exception_message): Reply to unknown inferiors.
5947 (darwin_decode_message): Handle message by id. Ignore message
5948 to unknown inferior.
5949 (darwin_wait): Discard unknown messages, add debug trace.
5950
5951 2014-03-31 Doug Evans <dje@google.com>
5952
5953 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5954 comp_dir_string.
5955
5956 2014-03-31 Doug Evans <dje@google.com>
5957
5958 New option "set print symbol-loading".
5959 * NEWS: Mention it.
5960 * solib.c (solib_read_symbols): Only print symbol loading messages
5961 if requested.
5962 (solib_add): If symbol loading is in "brief" mode, notify user
5963 symbols are being loaded.
5964 (reload_shared_libraries_1): Ditto.
5965 * symfile.c (print_symbol_loading_off): New static global.
5966 (print_symbol_loading_brief): New static global.
5967 (print_symbol_loading_full): New static global.
5968 (print_symbol_loading_enums): New static global.
5969 (print_symbol_loading): New static global.
5970 (print_symbol_loading_p): New function.
5971 (symbol_file_add_with_addrs): Only print symbol loading messages
5972 if requested.
5973 (_initialize_symfile): Register "print symbol-loading" set/show
5974 command.
5975 * symfile.h (print_symbol_loading_p): Declare.
5976
5977 2014-03-30 Doug Evans <xdje42@gmail.com>
5978
5979 * infrun.c (set_last_target_status): New function.
5980 (handle_inferior_event): Call it.
5981
5982 2014-03-30 Doug Evans <xdje42@gmail.com>
5983
5984 * inferior.h (enum stop_kind): Improve comment.
5985
5986 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5987
5988 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5989 a reference, strip the reference layer before calling
5990 the lang_ops value_has_mutated callback.
5991
5992 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5993
5994 Remove some globals from our parser.
5995 * language.c (unk_lang_parser): Add "struct parser_state"
5996 argument.
5997 * language.h (struct language_defn) <la_parser>: Likewise.
5998 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5999 (initialize_expout): Add "struct parser_state" argument.
6000 Rewrite function to use the parser state.
6001 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6002 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6003 write_exp_elt_longcst, write_exp_elt_dblcst,
6004 write_exp_elt_decfloatcst, write_exp_elt_type,
6005 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6006 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6007 write_dollar_variable): Likewise.
6008 (parse_exp_in_context_1): Use parser state.
6009 (insert_type_address_space): Add "struct parser_state" argument.
6010 Use parser state.
6011 (increase_expout_size): New function.
6012 * parser-defs.h: Forward declare "struct language_defn" and
6013 "struct parser_state".
6014 (expout, expout_size, expout_ptr): Remove extern declarations.
6015 (parse_gdbarch, parse_language): Rewrite macro declarations to
6016 accept the parser state.
6017 (struct parser_state): New struct.
6018 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6019 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6020 write_exp_elt_decfloatcst, write_exp_elt_type,
6021 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6022 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6023 write_exp_msymbol, write_dollar_variable,
6024 mark_struct_expression, insert_type_address_space): Add "struct
6025 parser_state" argument.
6026 (increase_expout_size): New function.
6027 * utils.c (do_clear_parser_state): New function.
6028 (make_cleanup_clear_parser_state): Likewise.
6029 * utils.h (make_cleanup_clear_parser_state): New function
6030 prototype.
6031 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6032 Update calls to write_exp* in order to pass the parser state.
6033 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6034 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6035 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6036 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6037 * stap-probe.c (stap_parse_register_operand): Likewise.
6038 (stap_parse_single_operand): Likewise.
6039 (stap_parse_argument_1): Likewise.
6040 (stap_parse_argument): Use parser state.
6041 * stap-probe.h: Include "parser-defs.h".
6042 (struct stap_parse_info) <pstate>: New field.
6043 * c-exp.y (parse_type): Rewrite to use parser state.
6044 (yyparse): Redefine to c_parse_internal.
6045 (pstate): New global variable.
6046 (parse_number): Add "struct parser_state" argument.
6047 (write_destructor_name): Likewise.
6048 (type_exp): Update calls to write_exp* and similars in order to
6049 use parser state.
6050 (exp1, exp, variable, qualified_name, space_identifier,
6051 typename, typebase): Likewise.
6052 (write_destructor_name, parse_number, lex_one_token,
6053 classify_name, classify_inner_name, c_parse): Add "struct
6054 parser_state" argument. Update function to use parser state.
6055 * c-lang.h: Forward declare "struct parser_state".
6056 (c_parse): Add "struct parser_state" argument.
6057 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6058 (yyparse): Redefine macro to ada_parse_internal.
6059 (pstate): New variable.
6060 (write_int, write_object_renaming, write_var_or_type,
6061 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6062 type_int, type_long, type_long_long, type_float, type_double,
6063 type_long_double, type_char, type_boolean, type_system_address):
6064 Add "struct parser_state" argument.
6065 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6066 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6067 var_or_type, aggregate, aggregate_component_list,
6068 positional_list, others, component_group,
6069 component_associations): Update calls to write_exp* and similar
6070 functions in order to use parser state.
6071 (ada_parse, write_var_from_sym, write_int,
6072 write_exp_op_with_string, write_object_renaming,
6073 find_primitive_type, write_selectors, write_ambiguous_var,
6074 write_var_or_type, write_name_assoc, type_int, type_long,
6075 type_long_long, type_float, type_double, type_long_double,
6076 type_char, type_boolean, type_system_address): Add "struct
6077 parser_state" argument. Adjust function to use parser state.
6078 * ada-lang.c (parse): Likewise.
6079 * ada-lang.h: Forward declare "struct parser_state".
6080 (ada_parse): Add "struct parser_state" argument.
6081 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6082 calls to both functions.
6083 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6084 parser state.
6085 (yyparse): Redefine macro to f_parse_internal.
6086 (pstate): New variable.
6087 (parse_number): Add "struct parser_state" argument.
6088 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6089 and similars in order to use parser state.
6090 (parse_number): Adjust code to use parser state.
6091 (yylex): Likewise.
6092 (f_parse): New function.
6093 * f-lang.h: Forward declare "struct parser_state".
6094 (f_parse): Add "struct parser_state" argument.
6095 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6096 parser state.
6097 (yyparse): Redefine macro for java_parse_internal.
6098 (pstate): New variable.
6099 (push_expression_name, push_expression_name, insert_exp): Add
6100 "struct parser_state" argument.
6101 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6102 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6103 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6104 PostIncrementExpression, PostDecrementExpression,
6105 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6106 UnaryExpressionNotPlusMinus, CastExpression,
6107 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6108 RelationalExpression, EqualityExpression, AndExpression,
6109 ExclusiveOrExpression, InclusiveOrExpression,
6110 ConditionalAndExpression, ConditionalOrExpression,
6111 ConditionalExpression, Assignment, LeftHandSide): Update
6112 calls to write_exp* and similars in order to use parser state.
6113 (parse_number): Ajust code to use parser state.
6114 (yylex): Likewise.
6115 (java_parse): New function.
6116 (push_variable): Add "struct parser_state" argument. Adjust
6117 code to user parser state.
6118 (push_fieldnames, push_qualified_expression_name,
6119 push_expression_name, insert_exp): Likewise.
6120 * jv-lang.h: Forward declare "struct parser_state".
6121 (java_parse): Add "struct parser_state" argument.
6122 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6123 parser state.
6124 (yyparse): Redefine macro to m2_parse_internal.
6125 (pstate): New variable.
6126 (type_exp, exp, fblock, variable, type): Update calls to
6127 write_exp* and similars to use parser state.
6128 (yylex): Likewise.
6129 (m2_parse): New function.
6130 * m2-lang.h: Forward declare "struct parser_state".
6131 (m2_parse): Add "struct parser_state" argument.
6132 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6133 * objc-lang.h: Forward declare "struct parser_state".
6134 (end_msglist): Add "struct parser_state" argument.
6135 * p-exp.y (parse_type): Rewrite macro to use parser state.
6136 (yyparse): Redefine macro to pascal_parse_internal.
6137 (pstate): New variable.
6138 (parse_number): Add "struct parser_state" argument.
6139 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6140 write_exp* and similars in order to use parser state.
6141 (parse_number, yylex): Adjust code to use parser state.
6142 (pascal_parse): New function.
6143 * p-lang.h: Forward declare "struct parser_state".
6144 (pascal_parse): Add "struct parser_state" argument.
6145 * go-exp.y (parse_type): Rewrite macro to use parser state.
6146 (yyparse): Redefine macro to go_parse_internal.
6147 (pstate): New variable.
6148 (parse_number): Add "struct parser_state" argument.
6149 (type_exp, exp1, exp, variable, type): Update calls to
6150 write_exp* and similars in order to use parser state.
6151 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6152 to use parser state.
6153 (go_parse): Likewise.
6154 * go-lang.h: Forward declare "struct parser_state".
6155 (go_parse): Add "struct parser_state" argument.
6156
6157 2014-03-27 Doug Evans <dje@google.com>
6158
6159 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6160
6161 2014-03-27 Doug Evans <dje@google.com>
6162
6163 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6164 Remove argument abbrev_section. All callers updated.
6165
6166 2014-03-27 Doug Evans <dje@google.com>
6167
6168 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6169 addr_base, ranges_base.
6170
6171 2014-03-26 Keith Seitz <keiths@redhat.com>
6172
6173 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6174 types, not VAR_DOMAIN.
6175
6176 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6177
6178 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6179 "ra" registers.
6180 * features/nios2-linux.c: Regenerated.
6181 * features/nios2.c: Regenerated.
6182
6183 2014-03-25 Pedro Alves <palves@redhat.com>
6184
6185 * cli/cli-script.c (script_from_file): Force the interpreter to
6186 sync mode.
6187
6188 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6189
6190 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6191 small stack allocation.
6192
6193 2014-03-24 Tristan Gingold <gingold@adacore.com>
6194
6195 * darwin-nat.c (exc_server): Remove unused prototype.
6196 (darwin_dump_message): Correctly display data on x86_64.
6197 (darwin_encode_reply): Fix style.
6198 Add comments and fix indentation.
6199
6200 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6201
6202 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6203
6204 2014-03-22 Doug Evans <xdje42@gmail.com>
6205
6206 * infcmd.c: Whitespace fixes.
6207 (interrupt_command): Merge two function comments into one.
6208
6209 2014-03-22 Doug Evans <xdje42@gmail.com>
6210
6211 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6212 All uses updated.
6213
6214 2014-03-22 Yao Qi <yao@codesourcery.com>
6215
6216 * remote.c (target_read_live_memory): Remove.
6217 (memory_xfer_live_readonly_partial): Rename it to
6218 remote_xfer_live_readonly_partial. Remove argument 'object'.
6219 All callers updated. Call remote_read_bytes_1
6220 instead of target_read_live_memory.
6221 * tracepoint.c (set_traceframe_number): Remove.
6222 (make_cleanup_restore_traceframe_number): Likewise .
6223 * tracepoint.h (set_traceframe_number): Remove declaration.
6224 (make_cleanup_restore_traceframe_number): Likewise.
6225
6226 2014-03-22 Yao Qi <yao@codesourcery.com>
6227
6228 * remote.c (remote_read_bytes): Move code on reading from the
6229 remote stub to ...
6230 (remote_read_bytes_1): ... here. New function.
6231
6232 2014-03-22 Yao Qi <yao@codesourcery.com>
6233
6234 * ctf.c (ctf_xfer_partial): Check the return value of
6235 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6236 return TARGET_XFER_UNAVAILABLE.
6237 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6238 * target.c (target_read_live_memory): Move it to remote.c.
6239 (memory_xfer_live_readonly_partial): Likewise.
6240 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6241 * remote.c (target_read_live_memory): Moved from target.c.
6242 (memory_xfer_live_readonly_partial): Likewise.
6243 (remote_read_bytes): Factored out from
6244 memory_xfer_partial_1.
6245
6246 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6247
6248 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6249 NULL pointer.
6250
6251 2014-03-21 Pedro Alves <palves@redhat.com>
6252
6253 * infrun.c (normal_stop): Extend comment.
6254
6255 2014-03-21 Hui Zhu <hui@codesourcery.com>
6256 Pedro Alves <palves@redhat.com>
6257
6258 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6259 static buffer.
6260 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6261 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6262 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6263
6264 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6265
6266 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6267 `z' formatted output modifier.
6268
6269 2014-03-20 Tom Tromey <tromey@redhat.com>
6270 Sergio Durigan Junior <sergiodj@redhat.com>
6271
6272 * probe.c (parse_probes): Turn assert into an ordinary error.
6273 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6274 exceptions when parsing probes. Rearrange the code for clarity.
6275
6276 2014-03-20 Tom Tromey <tromey@redhat.com>
6277
6278 PR gdb/14135
6279 * top.c (execute_command): Only dispatch events if the command
6280 started the target.
6281
6282 2014-03-20 Tom Tromey <tromey@redhat.com>
6283
6284 PR cli/15718
6285 * infcall.c: Include event-top.h.
6286 (run_inferior_call): Call async_disable_stdin if needed.
6287
6288 2014-03-20 Pedro Alves <palves@redhat.com>
6289
6290 * infrun.c (prepare_to_proceed): Delete.
6291 (thread_still_needs_step_over): New function.
6292 (find_thread_needs_step_over): New function.
6293 (proceed): If the current thread needs a step-over, set its
6294 steping_over_breakpoint flag. Adjust to use
6295 find_thread_needs_step_over instead of prepare_to_proceed.
6296 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6297 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6298 breakpoint.
6299 (switch_back_to_stepped_thread): Step over breakpoints of all
6300 threads not the stepping thread, before switching back to the
6301 stepping thread.
6302
6303 2014-03-20 Pedro Alves <palves@redhat.com>
6304
6305 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6306 extern.
6307 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6308 * infrun.c (saved_singlestep_ptid)
6309 (stepping_past_singlestep_breakpoint): Delete.
6310 (resume): Remove stepping_past_singlestep_breakpoint handling.
6311 (proceed): Store the prev_pc of the stepping thread too.
6312 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6313 singlestep_pc.
6314 (enum infwait_states): Delete infwait_thread_hop_state.
6315 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6316 field.
6317 (handle_inferior_event): Adjust.
6318 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6319 handling and the thread-hop code. Before removing single-step
6320 breakpoints, check whether the thread hit a single-step breakpoint
6321 of another thread. If it did, the trap is not a random signal.
6322 (switch_back_to_stepped_thread): If the event thread hit a
6323 single-step breakpoint, unblock it before switching to the
6324 stepping thread. Handle the case of the stepped thread having
6325 advanced already.
6326 (keep_going): Handle the case of the current thread moving past a
6327 single-step breakpoint.
6328
6329 2014-03-20 Pedro Alves <palves@redhat.com>
6330
6331 PR breakpoints/7143
6332 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6333 are being stepped over.
6334 (breakpoint_address_match): Make extern.
6335 * breakpoint.h (breakpoint_address_match): New declaration.
6336 * inferior.h (stepping_past_instruction_at): New declaration.
6337 * infrun.c (struct step_over_info): New type.
6338 (step_over_info): New global.
6339 (set_step_over_info, clear_step_over_info)
6340 (stepping_past_instruction_at): New functions.
6341 (handle_inferior_event): Clear the step-over info when
6342 trap_expected is cleared.
6343 (resume): Remove now stale comment.
6344 (clear_proceed_status): Clear step-over info.
6345 (proceed): Adjust step-over handling to set or clear the step-over
6346 info instead of removing all breakpoints.
6347 (handle_signal_stop): When setting up a thread-hop, don't remove
6348 breakpoints here.
6349 (stop_stepping): Clear step-over info.
6350 (keep_going): Adjust step-over handling to set or clear step-over
6351 info and then always inserting breakpoints, instead of removing
6352 all breakpoints when stepping over one.
6353
6354 2014-03-20 Pedro Alves <palves@redhat.com>
6355
6356 * infrun.c (previous_inferior_ptid): Adjust comment.
6357 (deferred_step_ptid): Delete.
6358 (infrun_thread_ptid_changed, prepare_to_proceed)
6359 (init_wait_for_inferior): Adjust.
6360 (handle_signal_stop): Delete deferred_step_ptid handling.
6361
6362 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6363
6364 PR gdb/15358
6365 * defs.h (sync_quit_force_run): New declaration.
6366 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6367 * event-top.c (async_sigterm_handler): New declaration.
6368 (async_sigterm_token): New variable.
6369 (async_init_signals): Create also async_sigterm_token.
6370 (async_sigterm_handler): New function.
6371 (sync_quit_force_run): New variable.
6372 (handle_sigterm): Replace quit_force call by other calls.
6373 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6374
6375 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6376
6377 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6378 offset into SPE pseudo registers.
6379
6380 2014-03-18 Pedro Alves <palves@redhat.com>
6381
6382 PR gdb/13860
6383 * inferior.h (print_stop_event): Declare.
6384 * infrun.c (print_stop_event): New, factored out from ...
6385 (normal_stop): ... this.
6386 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6387 of bpstat_print/print_stack_frame.
6388
6389 2014-03-17 Tom Tromey <tromey@redhat.com>
6390
6391 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6392
6393 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6394
6395 * ada-lang.c (decode_constrained_packed_array): Perform a
6396 minimal coercion for reference with coerce_ref instead of
6397 ada_coerce_ref.
6398
6399 2014-03-17 Tristan Gingold <gingold@adacore.com>
6400
6401 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6402 (darwin_solib_create_inferior_hook): Emit a warning if version
6403 is unhandled.
6404
6405 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6406
6407 * python/py-value.c (get_field_flag): Cast flag_name argument to
6408 PyObject_GetAttrString to support Python 2.4.
6409
6410 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6411
6412 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6413 (Global Maintainers): Remove Jan Kratochvil.
6414
6415 2014-03-14 Pedro Alves <palves@redhat.com>
6416
6417 * inferior.h (terminal_ours_for_output): Rename to ...
6418 (child_terminal_ours_for_output): ... this.
6419 (terminal_save_ours): Rename to ...
6420 (child_terminal_save_ours): ... this.
6421 (terminal_ours): Rename to ...
6422 (child_terminal_ours): ... this.
6423 (terminal_inferior): Rename to ...
6424 (child_terminal_inferior): ... this.
6425 (terminal_init_inferior): Rename to ...
6426 (child_terminal_init_inferior): ... this.
6427 (terminal_init_inferior_with_pgrp): Rename to ...
6428 (child_terminal_init_inferior_with_pgrp): ... this.
6429 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6430 (child_terminal_init_with_pgrp): ... this.
6431 (terminal_save_ours): Rename to ...
6432 (child_terminal_save_ours): ... this.
6433 (terminal_init_inferior): Rename to ...
6434 (child_terminal_init): ... this. Adjust.
6435 (terminal_inferior): Rename to ...
6436 (child_terminal_inferior): ... this.
6437 (terminal_ours_for_output): Rename to ...
6438 (child_terminal_ours_for_output): ... this. Adjust.
6439 (terminal_ours): Rename to ...
6440 (child_terminal_ours): ... this.
6441 (terminal_ours_1): Rename to ...
6442 (child_terminal_ours_1): ... this. Adjust.
6443 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6444 * windows-nat.c (do_initial_windows_stuff): Adjust.
6445 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6446 (gnu_terminal_init): ... this. Adjust.
6447 (gnu_target): Adjust.
6448 * inf-child.c (inf_child_target): Adjust.
6449
6450 2014-03-13 Doug Evans <xdje42@gmail.com>
6451
6452 PR guile/16612
6453 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6454 new eq?-hashtab.
6455
6456 2014-03-13 Doug Evans <xdje42@gmail.com>
6457
6458 * value.c (record_latest_value): Call release_value_or_incref
6459 instead of release_value.
6460
6461 2014-03-13 Pedro Alves <palves@redhat.com>
6462
6463 * procfs.c (procfs_target): Don't override to_shortname,
6464 to_longname or to_doc.
6465
6466 2014-03-13 Pedro Alves <palves@redhat.com>
6467
6468 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6469 Unix in user visible strings.
6470
6471 2014-03-12 Stan Shebs <stan@codesourcery.com>
6472
6473 * gdbtypes.h: Annotate comments for Doxygen, add a page
6474 block comment with some general info.
6475
6476 2014-03-12 Pedro Alves <palves@redhat.com>
6477
6478 * infcmd.c (prepare_execution_command): New function, factored out
6479 from several execution commands.
6480 (run_command_1, continue_command, step_1, jump_command)
6481 (signal_command, until_command, advance_command, finish_command)
6482 (attach_command): Use prepare_execution_command.
6483
6484 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6485
6486 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6487 (MAX_BPTS): Define.
6488 (MAX_WPTS): Define.
6489 (struct arm_linux_thread_points): Removed.
6490 (struct arm_linux_process_info): New.
6491 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6492 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6493 (arm_linux_find_breakpoints_by_tid): Removed.
6494 (struct arch_lwp_info): New.
6495 (arm_linux_find_process_pid): New functions.
6496 (arm_linux_add_process): New functions.
6497 (arm_linux_process_info_get): New functions.
6498 (arm_linux_forget_process): New function.
6499 (arm_linux_get_debug_reg_state): New function.
6500 (struct update_registers_data): New.
6501 (update_registers_callback): New function.
6502 (arm_linux_insert_hw_breakpoint1): Updated.
6503 (arm_linux_remove_hw_breakpoint1): Updated.
6504 (arm_linux_insert_hw_breakpoint): Updated.
6505 (arm_linux_remove_hw_breakpoint): Updated.
6506 (arm_linux_insert_watchpoint): Updated.
6507 (arm_linux_remove_watchpoint): Updated.
6508 (arm_linux_new_thread): Updated.
6509 (arm_linux_prepare_to_resume): New function.
6510 (arm_linux_new_fork): New function.
6511 (_initialize_arm_linux_nat): Updated.
6512
6513 2014-03-12 Pedro Alves <palves@redhat.com>
6514
6515 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6516
6517 2014-03-12 Tom Tromey <tromey@redhat.com>
6518
6519 * inf-child.c (return_zero): New function.
6520 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6521 * aix-thread.c (aix_thread_inferior_created): New function.
6522 (aix_thread_attach): Remove.
6523 (init_aix_thread_ops): Don't set to_attach.
6524 (_initialize_aix_thread): Register inferior_created observer.
6525 * corelow.c (init_core_ops): Don't set to_attach or
6526 to_create_inferior.
6527 * exec.c (init_exec_ops): Don't set to_attach or
6528 to_create_inferior.
6529 * infcmd.c (run_command_1): Use find_run_target. Make direct
6530 target calls.
6531 (attach_command): Use find_attach_target. Make direct target
6532 calls.
6533 * record-btrace.c (init_record_btrace_ops): Don't set
6534 to_create_inferior.
6535 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6536 Remove.
6537 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6538 set to_create_inferior.
6539 * target.c (complete_target_initialization): Add assertion.
6540 (target_create_inferior): Remove.
6541 (find_default_attach, find_default_create_inferior): Remove.
6542 (find_attach_target, find_run_target): New functions.
6543 (find_default_is_async_p, find_default_can_async_p)
6544 (target_supports_non_stop, target_attach): Remove.
6545 (init_dummy_target): Don't set to_create_inferior or
6546 to_supports_non_stop.
6547 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6548 TARGET_DEFAULT_FUNC.
6549 <to_create_inferior>: Add comment.
6550 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6551 TARGET_DEFAULT_RETURN.
6552 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6553 (find_attach_target, find_run_target): Declare.
6554 (target_create_inferior): Remove.
6555 (target_has_execution_1): Update comment.
6556 (target_supports_non_stop): Remove.
6557 * target-delegates.c: Rebuild.
6558
6559 2014-03-12 Pedro Alves <palves@redhat.com>
6560
6561 * inf-child.h: Update comment to not mention Unix.
6562
6563 2014-03-12 Pedro Alves <palves@redhat.com>
6564
6565 * inf-child.c: Update top comment to not mention Unix. Add
6566 generic comment describing how this target is meant to be used.
6567 (inf_child_post_attach, inf_child_post_startup_inferior)
6568 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6569 Unix in comment.
6570
6571 2014-03-12 Pedro Alves <palves@redhat.com>
6572
6573 * nto-procfs.c: Include inf-child.h.
6574 (procfs_ops): Delete global.
6575 (procfs_can_run): Delete method.
6576 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6577 target pointer instead of referencing procfs_ops.
6578 (procfs_prepare_to_store): Delete.
6579 (init_procfs_ops): Delete function.
6580 (procfs_target): New function, based on init_procfs_ops, but
6581 inherit inf_child_target.
6582 (_initialize_procfs): Use procfs_target.
6583
6584 2014-03-12 Pedro Alves <palves@redhat.com>
6585
6586 * windows-nat.c: Include inf-child.h.
6587 (windows_ops): Delete global.
6588 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6589 methods.
6590 (init_windows_ops): Delete function.
6591 (windows_target): New function, based on init_windows_ops, but
6592 inherit inf_child_target.
6593 (_initialize_windows_nat): Use windows_target. Install x86
6594 specific target methods here.
6595
6596 2014-03-10 Doug Evans <xdje42@gmail.com>
6597
6598 * guile/guile.c (call_initialize_gdb_module): New function.
6599 (initialize_guile): Replace call to scm_init_guile with call to
6600 scm_with_guile.
6601
6602 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6603
6604 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6605 in call to TYPE_CODE macro.
6606
6607 2014-03-10 Jerome Guitton <guitton@adacore.com>
6608
6609 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6610 Resolve tagged types to full view.
6611
6612 2014-03-10 Hui Zhu <hui@codesourcery.com>
6613
6614 * target.h (target_insert_breakpoint): Remove "hardware" from its
6615 comments.
6616
6617 2014-03-07 Doug Evans <dje@google.com>
6618
6619 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6620
6621 2014-03-07 Doug Evans <dje@google.com>
6622
6623 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6624 Remove unused local comp_dir_attr. Assert exactly one of
6625 stub_comp_unit_die, stub_comp_dir is non-NULL.
6626
6627 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6628
6629 * target.h (complete_target_initialization, add_target):
6630 Add comment.
6631
6632 2014-03-07 Pedro Alves <palves@redhat.com>
6633
6634 * go32-nat.c: Include inf-child.h.
6635 (go32_ops): Delete global.
6636 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6637 Delete methods.
6638 (go32_create_inferior): Push the passed in target pointer instead
6639 of referencing go32_ops.
6640 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6641 (go32_target): New function, based on init_go32_ops, but inherit
6642 inf_child_target.
6643 (_initialize_go32_nat): Use go32_target. Move parts of
6644 init_go32_ops here.
6645
6646 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6647
6648 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6649 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6650 SYMBOL_VALUE_ADDRESS.
6651 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6652
6653 2014-03-06 Yao Qi <yao@codesourcery.com>
6654
6655 * breakpoint.c (get_tracepoint_by_number): Remove argument
6656 optional_p. All callers updated. Adjust comments. Update
6657 output message.
6658 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6659
6660 2014-03-06 Yao Qi <yao@codesourcery.com>
6661
6662 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6663 early if get_number returns zero. Use 'p' instead of 'args'.
6664
6665 2014-03-06 Yao Qi <yao@codesourcery.com>
6666
6667 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6668 message.
6669
6670 2014-03-06 Yao Qi <yao@codesourcery.com>
6671
6672 PR breakpoints/16508
6673 * tracepoint.c (check_trace_running): New function.
6674 (trace_find_command): Move code to check_trace_running and
6675 call check_trace_running.
6676 (trace_find_pc_command): Likewise.
6677 (trace_find_tracepoint_command): Likewise.
6678 (trace_find_line_command): Likewise.
6679 (trace_find_range_command): Likewise.
6680 * tracepoint.h (check_trace_running): Likewise.
6681 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6682
6683 2014-03-06 Yao Qi <yao@codesourcery.com>
6684
6685 * target.h (struct target_ops) <to_traceframe_info>: Use
6686 TARGET_DEFAULT_NORETURN (tcomplain ()).
6687 * target-delegates.c: Regenerated.
6688
6689 2014-03-05 Pedro Alves <palves@redhat.com>
6690
6691 PR gdb/16575
6692 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6693 void. Update comment.
6694 (dcache_xfer_memory): Delete.
6695 (dcache_read_memory_partial): New, based on the read bits of
6696 dcache_xfer_memory.
6697 (dcache_update): Add status parameter. Use ULONGEST for len, and
6698 adjust. Discard cache lines if the reason for the update was
6699 error.
6700 * dcache.h (dcache_xfer_memory): Delete declaration.
6701 (dcache_read_memory_partial): New declaration.
6702 (dcache_update): Update prototype.
6703 * target.c (raw_memory_xfer_partial): Update the dcache here.
6704 (memory_xfer_partial_1): Don't handle dcache writes here.
6705
6706 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6707
6708 * remote-sim.c (gdbsim_load): Add const to prog.
6709
6710 2014-03-03 Tom Tromey <tromey@redhat.com>
6711
6712 * elfread.c (probe_key): Change to bfd_data.
6713 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6714 now per-BFD, not per-objfile.
6715 * stap-probe.c (stap_probe_destroy): Update comment.
6716 (handle_stap_probe): Allocate on the per-BFD obstack.
6717
6718 2014-03-03 Tom Tromey <tromey@redhat.com>
6719
6720 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6721 * breakpoint.c (create_longjmp_master_breakpoint): Use
6722 get_probe_address.
6723 (add_location_to_breakpoint, bkpt_probe_insert_location)
6724 (bkpt_probe_remove_location): Update.
6725 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6726 * elfread.c (elf_symfile_relocate_probe): Remove.
6727 (elf_probe_fns): Update.
6728 (insert_exception_resume_breakpoint): Change type of "probe"
6729 parameter to bound_probe.
6730 (check_exception_resume): Update.
6731 * objfiles.c (objfile_relocate1): Don't relocate probes.
6732 * probe.c (bound_probe_s): New typedef.
6733 (parse_probes): Use get_probe_address. Set sal's objfile.
6734 (find_probe_by_pc): Return a bound_probe.
6735 (collect_probes): Return a VEC(bound_probe_s).
6736 (compare_probes): Update.
6737 (gen_ui_out_table_header_info): Change type of "probes"
6738 parameter. Update.
6739 (info_probes_for_ops): Update.
6740 (get_probe_address): New function.
6741 (probe_safe_evaluate_at_pc): Update.
6742 * probe.h (struct probe_ops) <get_probe_address>: New field.
6743 <set_semaphore, clear_semaphore>: Add objfile parameter.
6744 (struct probe) <objfile>: Remove field.
6745 <arch>: New field.
6746 <address>: Update comment.
6747 (struct bound_probe): New.
6748 (find_probe_by_pc): Return a bound_probe.
6749 (get_probe_address): Declare.
6750 * solib-svr4.c (struct probe_and_action) <address>: New field.
6751 (hash_probe_and_action, equal_probe_and_action): Update.
6752 (register_solib_event_probe): Add address parameter.
6753 (solib_event_probe_at): Update.
6754 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6755 get_probe_address.
6756 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6757 (stap_get_probe_address): New function.
6758 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6759 (compile_probe_arg): Update.
6760 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6761 address.
6762 (handle_stap_probe): Don't relocate the probe.
6763 (stap_relocate): Remove.
6764 (stap_gen_info_probes_table_values): Update.
6765 (stap_probe_ops): Remove stap_relocate.
6766 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6767 (debug_sym_probe_fns): Update.
6768 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6769 * symtab.c (init_sal): Use memset.
6770 * symtab.h (struct symtab_and_line) <objfile>: New field.
6771 * tracepoint.c (start_tracing, stop_tracing): Update.
6772
6773 2014-03-03 Tom Tromey <tromey@redhat.com>
6774
6775 * probe.h (parse_probes, find_probe_by_pc)
6776 (find_probes_in_objfile): Fix comments.
6777
6778 2014-03-02 Doug Evans <xdje42@gmail.com>
6779
6780 * infrun.c (handle_signal_stop): Replace test for
6781 TARGET_WAITKIND_STOPPED with an assert.
6782
6783 2014-03-02 Doug Evans <xdje42@gmail.com>
6784
6785 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6786
6787 2014-03-02 Doug Evans <xdje42@gmail.com>
6788
6789 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6790
6791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6792
6793 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6794
6795 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6796
6797 * i386obsd-nat.c: Include "obsd-nat.h".
6798 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6799 add_target.
6800 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6801
6802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6803
6804 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6805
6806 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6807
6808 * mips64obsd-nat.c: Include "obsd-nath".
6809 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6810 add_target
6811 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6812
6813 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6814
6815 * amd64obsd-nat.c: Include "obsd-nat,h.
6816 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6817 add_target.
6818 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6819
6820 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6821
6822 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6823 (find_overload_match): Update call to find_oload_champ.
6824 (find_oload_champ_namespace_loop): Likewise
6825
6826 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6827
6828 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6829
6830 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6831 * config/sparc/obsd64.mh: New file.
6832 * sparc64obsd-nat.c: New file.
6833
6834 * obsd-nat.h: New file.
6835 * obsd-nat.c: New file.
6836 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6837 (ALLDEPFILES): Add obsd-nat.c.
6838
6839 2014-02-28 Tom Tromey <tromey@redhat.com>
6840
6841 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6842 * cli-out.h (cli_ui_out_impl): Now const.
6843 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6844 * ui-out.c (struct ui_out) <impl>: Now const.
6845 (default_ui_out_impl): Now const.
6846 (ui_out_new): Make 'impl' parameter const.
6847 * ui-out.h (ui_out_new): Update.
6848
6849 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6850
6851 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6852
6853 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6854
6855 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6856
6857 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 Additional PR 8882 fix.
6860 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6861
6862 2014-02-27 Pedro Alves <palves@redhat.com>
6863
6864 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6865 isn't set.
6866
6867 2014-02-27 Pedro Alves <palves@redhat.com>
6868
6869 PR 12702
6870 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6871 * nat/linux-waitpid.c: Include string.h.
6872 (status_to_str): Moved here and made extern.
6873 * nat/linux-waitpid.h (status_to_str): New declaration.
6874
6875 2014-02-27 Hui Zhu <hui@codesourcery.com>
6876
6877 PR 12702
6878 * infrun.c (ptid_match): Move ...
6879 * common/ptid.c (ptid_match): ... here.
6880 * inferior.h (ptid_match): Move ...
6881 * common/ptid.h (ptid_match): ... here.
6882
6883 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6884
6885 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6886 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6887 gdb_target_obs.
6888
6889 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6890
6891 * obsd-tdep.c (obsd_auxv_parse): New function.
6892 (obsd_init_abi): Set auxv_parse.
6893
6894 * gdbarch.sh (auxv_parse): New.
6895 * gdbarch.h: Regenerated.
6896 * gdbarch.c: Regenerated.
6897 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6898
6899 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6900
6901 * guile/scm-value.c (gdbscm_history_append_x): New function.
6902 (value_functions): Add it.
6903
6904 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6905
6906 * dwarf2read.c (attr_value_as_address): New function.
6907 (dwarf2_find_base_address, read_call_site_scope): Use
6908 attr_value_as_address in place of DW_ADDR.
6909 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6910 the low and high addresses. Slight rework of the handling
6911 of the high pc being a constant form, and limit it to
6912 DWARF verson 4 or higher.
6913 (dwarf2_record_block_ranges): Likewise.
6914 (read_partial_die): Likewise.
6915 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6916
6917 2014-02-26 Tom Tromey <tromey@redhat.com>
6918
6919 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6920
6921 2014-02-26 Tom Tromey <tromey@redhat.com>
6922
6923 * elfread.c (elf_read_minimal_symbols): Return early if
6924 minimal symbols have already been read. Add "ei" parameter.
6925 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6926 * minsyms.c (prim_record_minimal_symbol_full): Update.
6927 * objfiles.h (struct objstats) <n_minsyms>: Move...
6928 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6929 * symmisc.c (print_objfile_statistics): Update.
6930
6931 2014-02-26 Tom Tromey <tromey@redhat.com>
6932
6933 * elfread.c (elf_read_minimal_symbols): New function, from
6934 elf_symfile_read.
6935 (elf_symfile_read): Call it.
6936
6937 2014-02-26 Tom Tromey <tromey@redhat.com>
6938
6939 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6940 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6941 (lookup_minimal_symbol_solib_trampoline)
6942 (lookup_minimal_symbol_by_pc_section_1)
6943 (lookup_minimal_symbol_and_objfile): Update.
6944 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6945 Don't allocate a minimal symbol if minsyms have already been read.
6946 (build_minimal_symbol_hash_tables): Update.
6947 (install_minimal_symbols): Do nothing if minsyms already read.
6948 Use the per-BFD obstack.
6949 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6950 * objfiles.c (allocate_objfile): Call
6951 terminate_minimal_symbol_table later.
6952 (have_minimal_symbols): Update.
6953 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6954 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6955 Move from struct objfile.
6956 <minsyms_read>: New field.
6957 (struct objfile) <msymbols, minimal_symbol_count,
6958 msymbol_hash, msymbol_demangled_hash>: Move.
6959 (ALL_OBJFILE_MSYMBOLS): Update.
6960 * symfile.c (read_symbols): Set minsyms_read.
6961 (reread_symbols): Update.
6962 * symmisc.c (dump_objfile, dump_msymbols): Update.
6963
6964 2014-02-26 Tom Tromey <tromey@redhat.com>
6965
6966 * minsyms.c (msymbols_sort): Remove.
6967 * minsyms.h (msymbols_sort): Remove.
6968 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6969 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6970 * elfread.c (elf_symtab_read): Don't add section offsets.
6971 * xcoffread.c (record_minimal_symbol): Don't add section offset
6972 to minimal symbol address.
6973 * somread.c (text_offset, data_offset): Remove.
6974 (som_symtab_read): Don't add section offsets to minimal symbol
6975 addresses.
6976 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6977 Don't add section offsets to minimal symbols.
6978 * coffread.c (coff_symtab_read): Don't add section offsets
6979 to minimal symbol addresses.
6980 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6981 to minimal symbol addresses.
6982 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6983 section offset to minimal symbol addresses.
6984 * mdebugread.c (parse_partial_symbols): Don't add section
6985 offset to minimal symbol addresses.
6986 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6987 offset to minimal symbol addresses.
6988
6989 2014-02-26 Tom Tromey <tromey@redhat.com>
6990
6991 * ada-lang.c (ada_main_name): Update.
6992 (ada_add_standard_exceptions): Update.
6993 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6994 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6995 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6996 * auxv.c (ld_so_xfer_auxv): Update.
6997 * avr-tdep.c (avr_scan_prologue): Update.
6998 * ax-gdb.c (gen_var_ref): Update.
6999 * blockframe.c (get_pc_function_start)
7000 (find_pc_partial_function_gnu_ifunc): Update.
7001 * breakpoint.c (create_overlay_event_breakpoint)
7002 (create_longjmp_master_breakpoint)
7003 (create_std_terminate_master_breakpoint)
7004 (create_exception_master_breakpoint): Update.
7005 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7006 * c-valprint.c (c_val_print): Update.
7007 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7008 * common/agent.c (agent_look_up_symbols): Update.
7009 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7010 * dwarf2loc.c (call_site_to_target_addr): Update.
7011 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7012 * elfread.c (elf_gnu_ifunc_record_cache)
7013 (elf_gnu_ifunc_resolve_by_got): Update.
7014 * findvar.c (default_read_var_value): Update.
7015 * frame.c (inside_main_func): Update.
7016 * frv-tdep.c (frv_frame_this_id): Update.
7017 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7018 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7019 Update.
7020 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7021 (hppa_hpux_find_dummy_bpaddr): Update.
7022 * hppa-tdep.c (hppa_symbol_address): Update.
7023 * infcmd.c (until_next_command): Update.
7024 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7025 Update.
7026 * linespec.c (minsym_found, add_minsym): Update.
7027 * linux-nat.c (get_signo): Update.
7028 * linux-thread-db.c (inferior_has_bug): Update.
7029 * m32c-tdep.c (m32c_return_value)
7030 (m32c_m16c_address_to_pointer): Update.
7031 * m32r-tdep.c (m32r_frame_this_id): Update.
7032 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7033 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7034 * maint.c (maintenance_translate_address): Update.
7035 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7036 (frob_address): New function.
7037 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7038 frob_address. Rename parameter to "pc_in".
7039 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7040 addresses.
7041 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7042 Update.
7043 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7044 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7045 * objc-lang.c (find_objc_msgsend): Update.
7046 * objfiles.c (objfile_relocate1): Update.
7047 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7048 * p-valprint.c (pascal_val_print): Update.
7049 * parse.c (write_exp_msymbol): Update.
7050 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7051 (ppc_elfv2_skip_entrypoint): Update.
7052 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7053 * printcmd.c (build_address_symbolic, msym_info)
7054 (address_info): Update.
7055 * proc-service.c (ps_pglobal_lookup): Update.
7056 * psymtab.c (find_pc_sect_psymtab_closer)
7057 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7058 Change msymbol parameter to bound_minimal_symbol.
7059 * ravenscar-thread.c (get_running_thread_id): Update.
7060 * remote.c (remote_check_symbols): Update.
7061 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7062 address.
7063 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7064 * solib-dsbt.c (lm_base): Update.
7065 * solib-frv.c (lm_base, main_got): Update.
7066 * solib-irix.c (locate_base): Update.
7067 * solib-som.c (som_solib_create_inferior_hook)
7068 (link_map_start): Update.
7069 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7070 * solib-svr4.c (elf_locate_base, enable_break): Update.
7071 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7072 (flush_ea_cache): Update.
7073 * stabsread.c (define_symbol, scan_file_globals): Update.
7074 * stack.c (find_frame_funname): Update.
7075 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7076 (debug_qf_find_pc_sect_symtab): Update.
7077 * symfile.c (simple_read_overlay_table)
7078 (simple_overlay_update): Update.
7079 * symfile.h (struct quick_symbol_functions)
7080 <find_pc_sect_symtab>: Change type of msymbol to
7081 bound_minimal_symbol.
7082 * symmisc.c (dump_msymbols): Update.
7083 * symtab.c (find_pc_sect_symtab_via_partial)
7084 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7085 (search_symbols, print_msymbol_info): Update.
7086 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7087 (MSYMBOL_VALUE_ADDRESS): Redefine.
7088 (BMSYMBOL_VALUE_ADDRESS): New macro.
7089 * tracepoint.c (scope_info): Update.
7090 * tui/tui-disasm.c (tui_find_disassembly_address)
7091 (tui_get_begin_asm_address): Update.
7092 * valops.c (find_function_in_inferior): Update.
7093 * value.c (value_static_field, value_fn_field): Update.
7094
7095 2014-02-26 Tom Tromey <tromey@redhat.com>
7096
7097 * ada-lang.c (ada_update_initial_language): Update.
7098 (ada_main_name, ada_has_this_exception_support): Update.
7099 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7100 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7101 * arm-tdep.c (arm_skip_stub): Update.
7102 * auxv.c (ld_so_xfer_auxv): Update.
7103 * avr-tdep.c (avr_scan_prologue): Update.
7104 * ax-gdb.c (gen_var_ref): Update.
7105 * breakpoint.c (struct breakpoint_objfile_data)
7106 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7107 type to bound_minimal_symbol.
7108 (create_overlay_event_breakpoint)
7109 (create_longjmp_master_breakpoint)
7110 (create_std_terminate_master_breakpoint)
7111 (create_exception_master_breakpoint): Update.
7112 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7113 * c-exp.y (classify_name): Update.
7114 * coffread.c (coff_symfile_read): Update.
7115 * common/agent.c (agent_look_up_symbols): Update.
7116 * d-lang.c (d_main_name): Update.
7117 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7118 * dec-thread.c (enable_dec_thread): Update.
7119 * dwarf2loc.c (call_site_to_target_addr): Update.
7120 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7121 * eval.c (evaluate_subexp_standard): Update.
7122 * findvar.c (struct minsym_lookup_data) <result>: Change type
7123 to bound_minimal_symbol.
7124 <objfile>: Remove.
7125 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7126 * frame.c (inside_main_func): Update.
7127 * frv-tdep.c (frv_frame_this_id): Update.
7128 * gcore.c (call_target_sbrk): Update.
7129 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7130 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7131 Update.
7132 * go-lang.c (go_main_name): Update.
7133 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7134 (hppa_hpux_find_import_stub_for_addr): Update.
7135 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7136 Update. Change return type.
7137 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7138 type.
7139 * jit.c (jit_breakpoint_re_set_internal): Update.
7140 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7141 Update.
7142 * linux-nat.c (get_signo): Update.
7143 * linux-thread-db.c (inferior_has_bug): Update
7144 * m32c-tdep.c (m32c_return_value)
7145 (m32c_m16c_address_to_pointer): Update.
7146 * m32r-tdep.c (m32r_frame_this_id): Update.
7147 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7148 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7149 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7150 lookup_minimal_symbol. Change return type.
7151 (lookup_minimal_symbol): Remove.
7152 (lookup_bound_minimal_symbol): Update.
7153 (lookup_minimal_symbol_text): Change return type.
7154 (lookup_minimal_symbol_solib_trampoline): Change return type.
7155 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7156 (lookup_minimal_symbol_solib_trampoline): Change return type.
7157 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7158 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7159 (value_nsstring, find_imps): Update.
7160 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7161 * p-lang.c (pascal_main_name): Update.
7162 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7163 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7164 * proc-service.c (ps_pglobal_lookup): Update.
7165 * ravenscar-thread.c (get_running_thread_msymbol): Change
7166 return type.
7167 (has_ravenscar_runtime, get_running_thread_id): Update.
7168 * remote.c (remote_check_symbols): Update.
7169 * sol-thread.c (ps_pglobal_lookup): Update.
7170 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7171 * solib-dsbt.c (lm_base): Update.
7172 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7173 Update.
7174 * solib-irix.c (locate_base): Update.
7175 * solib-som.c (som_solib_create_inferior_hook)
7176 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7177 Update.
7178 * solib-spu.c (spu_enable_break): Update.
7179 * solib-svr4.c (elf_locate_base, enable_break): Update.
7180 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7181 (flush_ea_cache): Update.
7182 * stabsread.c (define_symbol): Update.
7183 * symfile.c (simple_read_overlay_table): Update.
7184 * symtab.c (find_pc_sect_line): Update.
7185 * tracepoint.c (scope_info): Update.
7186 * tui-disasm.c (tui_get_begin_asm_address): Update.
7187 * value.c (value_static_field): Update.
7188
7189 2014-02-26 Tom Tromey <tromey@redhat.com>
7190
7191 * minsyms.c (prim_record_minimal_symbol_full): Use
7192 SET_MSYMBOL_VALUE_ADDRESS.
7193 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7194 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7195 SET_MSYMBOL_VALUE_ADDRESS.
7196 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7197 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7198
7199 2014-02-26 Tom Tromey <tromey@redhat.com>
7200
7201 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7202 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7203 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7204 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7205 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7206 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7207 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7208 * ada-lang.c (ada_main_name): Update.
7209 (ada_lookup_simple_minsym): Update.
7210 (ada_make_symbol_completion_list): Update.
7211 (ada_add_standard_exceptions): Update.
7212 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7213 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7214 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7215 * arm-tdep.c (skip_prologue_function): Update.
7216 (arm_skip_stack_protector, arm_skip_stub): Update.
7217 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7218 (arm_wince_skip_main_prologue): Update.
7219 * auxv.c (ld_so_xfer_auxv): Update.
7220 * avr-tdep.c (avr_scan_prologue): Update.
7221 * ax-gdb.c (gen_var_ref): Update.
7222 * block.c (call_site_for_pc): Update.
7223 * blockframe.c (get_pc_function_start): Update.
7224 (find_pc_partial_function_gnu_ifunc): Update.
7225 * breakpoint.c (create_overlay_event_breakpoint): Update.
7226 (create_longjmp_master_breakpoint): Update.
7227 (create_std_terminate_master_breakpoint): Update.
7228 (create_exception_master_breakpoint): Update.
7229 (resolve_sal_pc): Update.
7230 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7231 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7232 Update.
7233 * c-valprint.c (c_val_print): Update.
7234 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7235 * coffread.c (coff_symfile_read): Update.
7236 * common/agent.c (agent_look_up_symbols): Update.
7237 * dbxread.c (find_stab_function_addr): Update.
7238 (end_psymtab): Update.
7239 * dwarf2loc.c (call_site_to_target_addr): Update.
7240 (func_verify_no_selftailcall): Update.
7241 (tailcall_dump): Update.
7242 (call_site_find_chain_1): Update.
7243 (dwarf_expr_reg_to_entry_parameter): Update.
7244 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7245 (elf_gnu_ifunc_resolve_by_got): Update.
7246 * f-valprint.c (info_common_command): Update.
7247 * findvar.c (read_var_value): Update.
7248 * frame.c (get_prev_frame_1): Update.
7249 (inside_main_func): Update.
7250 * frv-tdep.c (frv_skip_main_prologue): Update.
7251 (frv_frame_this_id): Update.
7252 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7253 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7254 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7255 (gnuv3_skip_trampoline): Update.
7256 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7257 (hppa64_hpux_in_solib_call_trampoline): Update.
7258 (hppa_hpux_skip_trampoline_code): Update.
7259 (hppa64_hpux_search_dummy_call_sequence): Update.
7260 (hppa_hpux_find_import_stub_for_addr): Update.
7261 (hppa_hpux_find_dummy_bpaddr): Update.
7262 * hppa-tdep.c (hppa_symbol_address)
7263 (hppa_lookup_stub_minimal_symbol): Update.
7264 * i386-tdep.c (i386_skip_main_prologue): Update.
7265 (i386_pe_skip_trampoline_code): Update.
7266 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7267 * infcall.c (get_function_name): Update.
7268 * infcmd.c (until_next_command): Update.
7269 * jit.c (jit_breakpoint_re_set_internal): Update.
7270 (jit_inferior_init): Update.
7271 * linespec.c (minsym_found): Update.
7272 (add_minsym): Update.
7273 * linux-fork.c (info_checkpoints_command): Update.
7274 * linux-nat.c (get_signo): Update.
7275 * linux-thread-db.c (inferior_has_bug): Update.
7276 * m32c-tdep.c (m32c_return_value): Update.
7277 (m32c_m16c_address_to_pointer): Update.
7278 (m32c_m16c_pointer_to_address): Update.
7279 * m32r-tdep.c (m32r_frame_this_id): Update.
7280 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7281 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7282 * maint.c (maintenance_translate_address): Update.
7283 * minsyms.c (add_minsym_to_hash_table): Update.
7284 (add_minsym_to_demangled_hash_table): Update.
7285 (msymbol_objfile): Update.
7286 (lookup_minimal_symbol): Update.
7287 (iterate_over_minimal_symbols): Update.
7288 (lookup_minimal_symbol_text): Update.
7289 (lookup_minimal_symbol_by_pc_name): Update.
7290 (lookup_minimal_symbol_solib_trampoline): Update.
7291 (lookup_minimal_symbol_by_pc_section_1): Update.
7292 (lookup_minimal_symbol_and_objfile): Update.
7293 (prim_record_minimal_symbol_full): Update.
7294 (compare_minimal_symbols): Update.
7295 (compact_minimal_symbols): Update.
7296 (build_minimal_symbol_hash_tables): Update.
7297 (install_minimal_symbols): Update.
7298 (terminate_minimal_symbol_table): Update.
7299 (find_solib_trampoline_target): Update.
7300 (minimal_symbol_upper_bound): Update.
7301 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7302 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7303 (mips_skip_pic_trampoline_code): Update.
7304 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7305 * objc-lang.c (selectors_info): Update.
7306 (classes_info): Update.
7307 (find_methods): Update.
7308 (find_imps): Update.
7309 (find_objc_msgsend): Update.
7310 * objfiles.c (objfile_relocate1): Update.
7311 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7312 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7313 * p-valprint.c (pascal_val_print): Update.
7314 * parse.c (write_exp_msymbol): Update.
7315 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7316 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7317 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7318 * printcmd.c (build_address_symbolic): Update.
7319 (sym_info): Update.
7320 (address_info): Update.
7321 * proc-service.c (ps_pglobal_lookup): Update.
7322 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7323 (find_pc_sect_psymtab): Update.
7324 * python/py-framefilter.c (py_print_frame): Update.
7325 * ravenscar-thread.c (get_running_thread_id): Update.
7326 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7327 Update.
7328 * remote.c (remote_check_symbols): Update.
7329 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7330 (rs6000_skip_trampoline_code): Update.
7331 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7332 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7333 * solib-dsbt.c (lm_base): Update.
7334 * solib-frv.c (lm_base): Update.
7335 (main_got): Update.
7336 * solib-irix.c (locate_base): Update.
7337 * solib-som.c (som_solib_create_inferior_hook): Update.
7338 (som_solib_desire_dynamic_linker_symbols): Update.
7339 (link_map_start): Update.
7340 * solib-spu.c (spu_enable_break): Update.
7341 (ocl_enable_break): Update.
7342 * solib-svr4.c (elf_locate_base): Update.
7343 (enable_break): Update.
7344 * spu-tdep.c (spu_get_overlay_table): Update.
7345 (spu_catch_start): Update.
7346 (flush_ea_cache): Update.
7347 * stabsread.c (define_symbol): Update.
7348 (scan_file_globals): Update.
7349 * stack.c (find_frame_funname): Update.
7350 (frame_info): Update.
7351 * symfile.c (simple_read_overlay_table): Update.
7352 (simple_overlay_update): Update.
7353 * symmisc.c (dump_msymbols): Update.
7354 * symtab.c (fixup_section): Update.
7355 (find_pc_sect_line): Update.
7356 (skip_prologue_sal): Update.
7357 (search_symbols): Update.
7358 (print_msymbol_info): Update.
7359 (rbreak_command): Update.
7360 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7361 (completion_list_objc_symbol): Update.
7362 (default_make_symbol_completion_list_break_on): Update.
7363 * tracepoint.c (scope_info): Update.
7364 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7365 (tui_get_begin_asm_address): Update.
7366 * valops.c (find_function_in_inferior): Update.
7367 * value.c (value_static_field): Update.
7368 (value_fn_field): Update.
7369
7370 2014-02-26 Tom Tromey <tromey@redhat.com>
7371
7372 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7373 bound minimal symbols. Move code that knows about minsym
7374 table layout...
7375 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7376 function.
7377 * minsyms.h (minimal_symbol_upper_bound): Declare.
7378 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7379 minimal_symbol_upper_bound.
7380
7381 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7382
7383 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7384 Use the type's name if its basic type does not have a tag.
7385
7386 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7387
7388 * dwarf2read.c (read_subrange_type): Add comment.
7389
7390 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7391
7392 * dwarf2read.c (update_enumeration_type_from_children): New
7393 function, mostly extracted from process_structure_scope.
7394 (read_enumeration_type): Call update_enumeration_type_from_children.
7395 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7396 and flag_flag_enum fields.
7397
7398 2014-02-26 Pedro Alves <palves@redhat.com>
7399
7400 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7401 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7402 to_xfer_partial method.
7403
7404 2014-02-26 Pedro Alves <palves@redhat.com>
7405
7406 * target.c (complete_target_initialization): Don't install
7407 default_xfer_partial as to_xfer_partial hook.
7408 (nomemory): Delete.
7409 (update_current_target): Don't INHERIT nor de_fault
7410 deprecated_xfer_memory. Delete de_fault macro.
7411 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7412 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7413 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7414 field.
7415
7416 2014-02-26 Pedro Alves <palves@redhat.com>
7417
7418 * go32-nat.c (my_write_child): New function.
7419 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7420 (go32_xfer_partial): New function.
7421 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7422 Instead install a to_xfer_partial hook.
7423
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7425
7426 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7427 to_xfer_partial helper. Rewrite.
7428 (procfs_xfer_partial): New function.
7429 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7430 Install a to_xfer_partial hook.
7431
7432 2014-02-26 Pedro Alves <palves@redhat.com>
7433
7434 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7435 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7436 (m32r_xfer_partial): New function.
7437 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7438 Install a to_xfer_partial hook.
7439
7440 2014-02-26 Pedro Alves <palves@redhat.com>
7441
7442 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7443 helper.
7444 (mips_xfer_partial): New function.
7445 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7446 hook. Install a to_xfer_partial hook.
7447
7448 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7449
7450 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7451 * gdbtypes.c (create_array_type_with_stride): New function,
7452 renaming create_array_type, but with an added parameter
7453 called "bit_stride".
7454 (create_array_type): Re-implement using
7455 create_array_type_with_stride.
7456 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7457 and DW_AT_bit_stride attributes.
7458
7459 2014-02-26 Pedro Alves <palves@redhat.com>
7460
7461 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7462 task-specific breakpoints.
7463
7464 2014-02-25 Pedro Alves <palves@redhat.com>
7465
7466 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7467 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7468
7469 2014-02-25 Stan Shebs <stan@codesourcery.com>
7470
7471 * defs.h: Annotate comments for Doxygen.
7472
7473 2014-02-25 Tom Tromey <tromey@redhat.com>
7474
7475 * target.h (target_ignore): Don't declare.
7476 * target.c (target_ignore): Remove.
7477
7478 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7479
7480 PR gdb/16626
7481 * auto-load.c (auto_load_objfile_script_1): Change filename to
7482 debugfile.
7483
7484 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7485
7486 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7487 documentation. Adjust prototype to match the target_ops
7488 to_xfer_partial method. Adjust implementation accordingly.
7489
7490 2014-02-25 Hui Zhu <hui@codesourcery.com>
7491
7492 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7493 to_traceframe_info.
7494
7495 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7496
7497 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7498 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7499 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7500 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7501 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7502 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7503 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7504 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7505 New constants.
7506 (rl78_register_type): Use a data pointer type for SP and
7507 new pseudo registers mentioned above. Use a 16 bit integer
7508 type for all other register pairs.
7509 (rl78_register_name, rl78_g10_register_name): Update for
7510 new pseudo registers.
7511 (rl78_pseudo_register_read): Likewise.
7512 (rl78_pseudo_register_write): Likewise.
7513 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7514 to the newly added pseudo registers.
7515
7516 2014-02-24 Doug Evans <dje@google.com>
7517
7518 * value.c (record_latest_value): Fix comment.
7519 * printcmd.c (print_command_1): Remove code to handle -1 return from
7520 record_latest_value.
7521
7522 2014-02-24 Pedro Alves <palves@redhat.com>
7523
7524 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7525 deprecated_xfer_memory hook.
7526 (procfs_xfer_partial): Call procfs_xfer_memory instead
7527 of the deprecated_xfer_memory target hook.
7528 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7529 helper.
7530
7531 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7532
7533 * windows-nat.c (windows_xfer_shared_libraries): Return
7534 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7535 requested object is TARGET_OBJECT_LIBRARIES.
7536
7537 2014-02-24 Yao Qi <yao@codesourcery.com>
7538
7539 * target.h (enum target_xfer_status)
7540 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7541 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7542 explicitly. New.
7543 * corefile.c (memory_error_message): User updated.
7544 * exec.c (section_table_read_available_memory): Likewise.
7545 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7546 * target.c (target_xfer_status_to_string): Likewise.
7547 (raw_memory_xfer_partial): Likewise.
7548 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7549 * valops.c (read_value_memory): Likewise.
7550 * exec.h: Update comments.
7551
7552 2014-02-24 Yao Qi <yao@codesourcery.com>
7553
7554 * target.c (target_xfer_status_to_string): Rename argument err
7555 to status.
7556 * target.h (target_xfer_status_to_string): Update declaration.
7557 Replace target_xfer_error_to_string with
7558 target_xfer_status_to_string in comment.
7559
7560 2014-02-24 Yao Qi <yao@codesourcery.com>
7561
7562 * mips-linux-nat.c (super_close): Update its type.
7563 (mips_linux_close): Pass 'self' to super_close.
7564
7565 2014-02-24 Yao Qi <yao@codesourcery.com>
7566
7567 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7568 * corefile.c (read_memory): Adjusted.
7569 * target.c (target_write_with_progress): Adjusted.
7570
7571 2014-02-23 Yao Qi <yao@codesourcery.com>
7572
7573 Revert two patches:
7574
7575 2013-10-25 Yao Qi <yao@codesourcery.com>
7576
7577 * remote.c (remote_traceframe_info): Return early if
7578 traceframe is not selected.
7579
7580 2013-07-19 Yao Qi <yao@codesourcery.com>
7581
7582 * target.c (update_current_target): Change the default action
7583 of 'to_traceframe_info' from tcomplain to return_zero.
7584 * target.h (struct target_ops) <to_traceframe_info>: Add more
7585 comments.
7586
7587 2014-02-23 Yao Qi <yao@codesourcery.com>
7588
7589 * valops.c (read_value_memory): Rewrite it. Call
7590 target_xfer_partial in a loop.
7591 * exec.h (section_table_available_memory): Remove declaration.
7592 Move comments to ...
7593 * exec.c (section_table_available_memory): ... here. Make it
7594 static.
7595
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7597
7598 * exec.c (section_table_read_available_memory): New function.
7599 * exec.h (section_table_read_available_memory): Declare.
7600 * ctf.c (ctf_xfer_partial): Call
7601 section_table_read_available_memory.
7602 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7603
7604 2014-02-23 Yao Qi <yao@codesourcery.com>
7605
7606 * ctf.c (ctf_xfer_partial): Move code to ...
7607 * exec.c (exec_read_partial_read_only): ... it. New function.
7608 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7609 * tracefile.c: Include "exec.h".
7610 * exec.h (exec_read_partial_read_only): Declare.
7611
7612 2014-02-23 Yao Qi <yao@codesourcery.com>
7613
7614 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7615 (tfile_has_memory): Remove.
7616 (init_tfile_ops): Don't set fields to_has_all_memory and
7617 to_has_memory of tfile_ops.
7618 * tracefile.c (tracefile_has_all_memory): New function.
7619 (tracefile_has_memory): New function.
7620 (init_tracefile_ops): Initialize fields to_has_all_memory and
7621 to_has_memory of 'ops'.
7622
7623 2014-02-23 Yao Qi <yao@codesourcery.com>
7624
7625 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7626 (ctf_thread_alive, ctf_get_trace_status): Remove.
7627 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7628 init_tracefile_ops.
7629 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7630 (tfile_has_stack, tfile_has_registers): Remove.
7631 (tfile_thread_alive): Remove.
7632 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7633 init_tracefile_ops.
7634 * tracefile.c (tracefile_has_stack): New function.
7635 (tracefile_has_registers): New function.
7636 (tracefile_thread_alive): New function.
7637 (tracefile_get_trace_status): New function.
7638 (init_tracefile_ops): New function.
7639 * tracefile.h (init_tracefile_ops): Declare.
7640
7641 2014-02-23 Yao Qi <yao@codesourcery.com>
7642
7643 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7644 (O_LARGEFILE): Likewise.
7645 (tfile_ops): Likewise.
7646 (TRACE_HEADER_SIZE): Likewise.
7647 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7648 (cur_data_size): Likewise.
7649 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7650 (tfile_close, tfile_files_info): Likewise.
7651 (tfile_get_trace_status): Likewise.
7652 (tfile_get_tracepoint_status): Likewise.
7653 (tfile_get_traceframe_address): Likewise.
7654 (tfile_trace_find, match_blocktype): Likewise.
7655 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7656 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7657 (tfile_get_trace_state_variable_value): Likewise.
7658 (tfile_has_all_memory, tfile_has_memory): Likewise.
7659 (tfile_has_stack, tfile_has_registers): Likewise.
7660 (tfile_thread_alive, build_traceframe_info): Likewise.
7661 (tfile_traceframe_info, init_tfile_ops): Likewise.
7662 (_initialize_tracepoint): Don't call init_tfile_ops
7663 and add_target_with_completer.
7664 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7665 exec.h, completer.h and filenames.h.
7666 (_initialize_tracefile_tfile): New function.
7667
7668 2014-02-23 Yao Qi <yao@codesourcery.com>
7669
7670 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7671 tracefile-tfile.o.
7672 (HFILES_NO_SRCDIR): Add tracefile.h.
7673 * ctf.c: Include "tracefile.h".
7674 * tracefile.h: New file.
7675 * tracefile.c: New file
7676 * tracefile-tfile.c: New file.
7677 * tracepoint.c: Include "tracefile.h".
7678 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7679 (stop_reason_names): Add const.
7680 (trace_file_writer_xfree): Move it to tracefile.c.
7681 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7682 (trace_save_ctf): Likewise.
7683 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7684 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7685 (tfile_write_header, tfile_write_regblock_type): Likewise.
7686 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7687 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7688 (tfile_write_raw_data, tfile_end): Likewise.
7689 (tfile_trace_file_writer_new): Likewise.
7690 (free_uploaded_tp): Make it extern.
7691 (free_uploaded_tsv): Make it extern.
7692 (_initialize_tracepoint): Move code to register command 'tsave'
7693 to tracefile.c.
7694 * tracepoint.h (stop_reason_names): Declare.
7695 (struct trace_frame_write_ops): Move it to tracefile.h.
7696 (struct trace_file_write_ops): Likewise.
7697 (struct trace_file_writer): Likewise.
7698 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7699
7700 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 PR gdb/16594
7703 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7704 process name.
7705 (get_cores_used_by_process): New parameter num_cores, use it.
7706 (linux_xfer_osdata_processes): Pass num_cores to it.
7707 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7708 process name.
7709
7710 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7711
7712 * target.c (memory_xfer_partial): Fix length arg in call to
7713 breakpoint_xfer_memory.
7714
7715 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7716
7717 PR tdep/16397
7718 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7719 number comes after the + or - signs. Adjust length of register
7720 name to be extracted.
7721
7722 2014-02-20 Tom Tromey <tromey@redhat.com>
7723
7724 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7725 (ada_varobj_ops): Mark "extern".
7726
7727 2014-02-20 Tom Tromey <tromey@redhat.com>
7728
7729 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7730
7731 2014-02-20 Doug Evans <xdje42@gmail.com>
7732
7733 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7734 All callers updated.
7735 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7736 All callers updated.
7737 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7738 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7739
7740 2014-02-20 lin zuojian <manjian2006@gmail.com>
7741 Joel Brobecker <brobecker@adacore.com>
7742 Doug Evans <xdje42@gmail.com>
7743
7744 PR symtab/16581
7745 * dwarf2read.c (struct die_info): New member in_process.
7746 (reset_die_in_process): New function.
7747 (process_die): Set it at the start, reset when returning.
7748 (inherit_abstract_dies): Only call process_die if origin_child_die
7749 not already being processed.
7750
7751 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7752
7753 * windows-nat.c (handle_unload_dll): Add function documentation.
7754 (do_initial_windows_stuff): Add comment explaining why we wait
7755 until after inferior initialization has finished before
7756 processing all DLLs.
7757
7758 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7759
7760 * windows-nat.c (get_module_name): Delete.
7761 (windows_get_exec_module_filename): New function, mostly
7762 inspired from get_module_name.
7763 (windows_pid_to_exec_file): Replace call to get_module_name
7764 by call to windows_get_exec_module_filename.
7765
7766 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7767
7768 * windows-nat.c (handle_load_dll): Rewrite this function's
7769 introductory comment. Remove code using get_module_name
7770 to get the DLL's name.
7771
7772 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7773
7774 * windows-nat.c (get_windows_debug_event): Ignore
7775 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7776 if windows_initialization_done == 0.
7777 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7778 Adjust implementation to always load all DLLs.
7779 (do_initial_windows_stuff): Replace call to
7780 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7781
7782 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7783
7784 * windows-nat.c (_initialize_windows_nat): Deprecate the
7785 "dll-symbols" command. Turn the "add-shared-symbol-files"
7786 and "assf" aliases into commands, and deprecate them as well.
7787 * NEWS: Add entry explaining that "dll-symbols" and its two
7788 aliases are now deprecated.
7789
7790 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7791
7792 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7793 new-line in debug string. Remove trailing spaces.
7794
7795 2014-02-19 Stan Shebs <stan@codesourcery.com>
7796
7797 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7798
7799 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7800
7801 * NEWS: Add entry for the new feature
7802 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7803 and class values.
7804
7805 2014-02-19 Stan Shebs <stan@codesourcery.com>
7806
7807 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7808
7809 2014-02-19 Pedro Alves <palves@redhat.com>
7810
7811 * common/ptid.h (struct ptid): Mention that process_stratum
7812 targets should prefer ptid.lwp.
7813
7814 2014-02-19 Pedro Alves <palves@redhat.com>
7815
7816 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7817 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7818 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7819 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7820 store remote thread ids rather than ptid.tid.
7821 (_initialize_remote): Adjust.
7822
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target.c (target_get_unwinder): Rewrite.
7826 (target_get_tailcall_unwinder): Rewrite.
7827 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7828 (record_btrace_to_get_tailcall_unwinder): New function.
7829 (init_record_btrace_ops): Update.
7830 * target.h (struct target_ops) <to_get_unwinder,
7831 to_get_tailcall_unwinder>: Now function pointers. Use
7832 TARGET_DEFAULT_RETURN.
7833
7834 2014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7837 argument.
7838 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7839
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7841
7842 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7843 directly.
7844 * target-delegates.c: Rebuild.
7845 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7846 TARGET_DEFAULT_FUNC.
7847 * target.c (default_target_decr_pc_after_break): Rename from
7848 forward_target_decr_pc_after_break. Simplify.
7849 (target_decr_pc_after_break): Rely on delegation.
7850
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target.c (update_current_target): Do not INHERIT to_doc or
7854 to_magic. Do not de_fault to_open or to_close.
7855
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7857
7858 * gcore.h (objfile_find_memory_regions): Declare.
7859 * gcore.c (objfile_find_memory_regions): No longer static. Add
7860 "self" argument.
7861 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7862 * exec.c: Include gcore.h.
7863 (exec_set_find_memory_regions): Remove.
7864 (exec_find_memory_regions): Remove.
7865 (exec_do_find_memory_regions): Remove.
7866 (init_exec_ops): Update.
7867 * defs.h (exec_set_find_memory_regions): Remove.
7868
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7870
7871 * target-delegates.c: Rebuild.
7872 * target.h (struct target_ops) <to_extra_thread_info,
7873 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7874 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7875 not 0, in TARGET_DEFAULT_RETURN.
7876
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7878
7879 * target.c (complete_target_initialization): Remove casts. Use
7880 return_zero_has_execution.
7881 (return_zero): Add "ignore" argument.
7882 (return_zero_has_execution): New function.
7883 (init_dummy_target): Remove casts. Use
7884 return_zero_has_execution.
7885
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target.c (update_current_target): Update comments. Do not
7889 INHERIT to_stratum.
7890
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7894 needed.
7895 * corelow.c (core_read_description): Delegate when needed.
7896 * remote.c (remote_read_description): Delegate when needed.
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_read_description): Rewrite.
7899 * target.h (struct target_ops) <to_read_description>: Update
7900 comment. Use TARGET_DEFAULT_RETURN.
7901
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7903
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7906 to_can_run.
7907 (find_default_run_target): Check against delegate_can_run.
7908 * target.h (struct target_ops) <to_can_run>: Use
7909 TARGET_DEFAULT_RETURN.
7910
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (target_disconnect): Unconditionally delegate.
7915 * target.h (struct target_ops) <to_disconnect>: Use
7916 TARGET_DEFAULT_NORETURN.
7917
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7919
7920 * record.c (record_stop): Unconditionally delegate.
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_stop_recording): Unconditionally delegate.
7923 * target.h (struct target_ops) <to_stop_recording>: Use
7924 TARGET_DEFAULT_IGNORE.
7925
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target-delegates.c: Rebuild.
7929 * target.c (target_enable_btrace): Unconditionally delegate.
7930 * target.h (struct target_ops) <to_enable_btrace>: Use
7931 TARGET_DEFAULT_NORETURN.
7932
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target-delegates.c: Rebuild.
7936 * target.c (target_read_btrace): Unconditionally delegate.
7937 * target.h (struct target_ops) <to_read_btrace>: Use
7938 TARGET_DEFAULT_NORETURN.
7939
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * target-delegates.c: Rebuild.
7943 * target.c (target_teardown_btrace): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_teardown_btrace>: Use
7945 TARGET_DEFAULT_NORETURN.
7946
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (target_disable_btrace): Unconditionally delegate.
7951 * target.h (struct target_ops) <to_disable_btrace>: Use
7952 TARGET_DEFAULT_NORETURN.
7953
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * target-delegates.c: Rebuild.
7957 * target.c (default_search_memory): New function.
7958 (simple_search_memory): Update comment.
7959 (target_search_memory): Unconditionally delegate.
7960 * target.h (struct target_ops) <to_search_memory>: Use
7961 TARGET_DEFAULT_FUNC.
7962
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * auxv.c (default_auxv_parse): No longer static.
7966 (target_auxv_parse): Unconditionally delegate.
7967 * auxv.h (default_auxv_parse): Declare.
7968 * target-delegates.c: Rebuild.
7969 * target.c: Include auxv.h.
7970 * target.h (struct target_ops) <to_auxv_parse>: Use
7971 TARGET_DEFAULT_FUNC.
7972
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_memory_map): Unconditionally delegate.
7977 * target.h (struct target_ops) <to_memory_map>: Use
7978 TARGET_DEFAULT_RETURN.
7979
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (target_thread_alive): Unconditionally delegate.
7984 * target.h (struct target_ops) <to_thread_alive>: Use
7985 TARGET_DEFAULT_RETURN.
7986
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * target-delegates.c: Rebuild.
7990 * target.c (target_save_record): Unconditionally delegate.
7991 * target.h (struct target_ops) <to_save_record>: Use
7992 TARGET_DEFAULT_NORETURN.
7993
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * target-delegates.c: Rebuild.
7997 * target.c (target_delete_record): Unconditionally delegate.
7998 * target.h (struct target_ops) <to_delete_record>: Use
7999 TARGET_DEFAULT_NORETURN.
8000
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (target_record_is_replaying): Unconditionally
8005 delegate.
8006 * target.h (struct target_ops) <to_record_is_replaying>: Use
8007 TARGET_DEFAULT_RETURN.
8008
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_goto_record_begin): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_goto_record_end>: Use
8021 TARGET_DEFAULT_NORETURN.
8022
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_goto_record): Unconditionally delegate.
8027 * target.h (struct target_ops) <to_goto_record>: Use
8028 TARGET_DEFAULT_NORETURN.
8029
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8031
8032 * target-delegates.c: Rebuild.
8033 * target.c (target_insn_history): Unconditionally delegate.
8034 * target.h (struct target_ops) <to_insn_history>: Use
8035 TARGET_DEFAULT_NORETURN.
8036
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (target_insn_history_from): Unconditionally delegate.
8041 * target.h (struct target_ops) <to_insn_history_from>: Use
8042 TARGET_DEFAULT_NORETURN.
8043
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (target_insn_history_range): Unconditionally delegate.
8048 * target.h (struct target_ops) <to_insn_history_range>: Use
8049 TARGET_DEFAULT_NORETURN.
8050
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target-delegates.c: Rebuild.
8054 * target.c (target_call_history): Unconditionally delegate.
8055 * target.h (struct target_ops) <to_call_history>: Use
8056 TARGET_DEFAULT_NORETURN.
8057
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_call_history_from): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_call_history_from>: Use
8063 TARGET_DEFAULT_NORETURN.
8064
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_call_history_range): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_call_history_range>: Use
8070 TARGET_DEFAULT_NORETURN.
8071
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8073
8074 * target-delegates.c: Rebuild.
8075 * target.c (target_verify_memory): Unconditionally delegate.
8076 * target.h (struct target_ops) <to_verify_memory>: Use
8077 TARGET_DEFAULT_NORETURN.
8078
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_core_of_thread): Unconditionally delegate.
8083 * target.h (struct target_ops) <to_core_of_thread>: Use
8084 TARGET_DEFAULT_RETURN.
8085
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target-delegates.c: Rebuild.
8089 * target.c (target_flash_done): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_flash_done>: Use
8091 TARGET_DEFAULT_NORETURN.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_flash_erase): Unconditionally delegate.
8097 * target.h (struct target_ops) <to_flash_erase>: Use
8098 TARGET_DEFAULT_NORETURN.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_get_section_table): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_get_section_table>: Use
8105 TARGET_DEFAULT_RETURN.
8106
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_pid_to_str): Unconditionally delegate.
8111 (init_dummy_target): Don't initialize to_pid_to_str.
8112 (default_pid_to_str): Rename from dummy_pid_to_str.
8113 * target.h (struct target_ops) <to_pid_to_str>: Use
8114 TARGET_DEFAULT_FUNC.
8115
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (target_find_new_threads): Unconditionally delegate.
8120 * target.h (struct target_ops) <to_find_new_threads>: Use
8121 TARGET_DEFAULT_RETURN.
8122
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target-delegates.c: Rebuild.
8126 * target.c (target_program_signals): Unconditionally delegate.
8127 * target.h (struct target_ops) <to_program_signals>: Use
8128 TARGET_DEFAULT_IGNORE.
8129
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8131
8132 * target-delegates.c: Rebuild.
8133 * target.c (target_pass_signals): Unconditionally delegate.
8134 * target.h (struct target_ops) <to_pass_signals>: Use
8135 TARGET_DEFAULT_IGNORE.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (default_mourn_inferior): New function.
8141 (target_mourn_inferior): Unconditionally delegate.
8142 * target.h (struct target_ops) <to_mourn_inferior>: Use
8143 TARGET_DEFAULT_FUNC.
8144
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target-delegates.c: Rebuild.
8148 * target.c (default_follow_fork): New function.
8149 (target_follow_fork): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_follow_fork>: Use
8151 TARGET_DEFAULT_FUNC.
8152
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_kill): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_kill>: Use
8158 TARGET_DEFAULT_NORETURN.
8159
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_masked_watch_num_registers): Unconditionally
8164 delegate.
8165 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8166 Use TARGET_DEFAULT_RETURN.
8167
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_remove_mask_watchpoint): Unconditionally
8172 delegate.
8173 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8174 TARGET_DEFAULT_RETURN.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_insert_mask_watchpoint): Unconditionally
8180 delegate.
8181 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8182 TARGET_DEFAULT_RETURN.
8183
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_ranged_break_num_registers): Unconditionally
8188 delegate.
8189 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8190 Use TARGET_DEFAULT_RETURN.
8191
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_fetch_registers): Unconditionally delegate.
8196 * target.h (struct target_ops) <to_fetch_registers>: Use
8197 TARGET_DEFAULT_NORETURN.
8198
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8200
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8203 to_stop.
8204 * target.h (struct target_ops) <to_stop>: Use
8205 TARGET_DEFAULT_IGNORE.
8206
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_can_run_breakpoint_commands.
8212 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8213 Use TARGET_DEFAULT_RETURN.
8214
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8219 to_supports_evaluation_of_breakpoint_conditions.
8220 * target.h (struct target_ops)
8221 <to_supports_evaluation_of_breakpoint_conditions>: Use
8222 TARGET_DEFAULT_RETURN.
8223
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_augmented_libraries_svr4_read.
8229 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8230 Use TARGET_DEFAULT_RETURN.
8231
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_can_use_agent.
8237 * target.h (struct target_ops) <to_can_use_agent>: Use
8238 TARGET_DEFAULT_RETURN.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_use_agent.
8245 * target.h (struct target_ops) <to_use_agent>: Use
8246 TARGET_DEFAULT_NORETURN.
8247
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_traceframe_info.
8253 (return_null): Remove.
8254 * target.h (struct target_ops) <to_traceframe_info>: Use
8255 TARGET_DEFAULT_RETURN.
8256
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_static_tracepoint_markers_by_strid.
8262 * target.h (struct target_ops)
8263 <to_static_tracepoint_markers_by_strid>: Use
8264 TARGET_DEFAULT_NORETURN.
8265
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_static_tracepoint_marker_at.
8271 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8272 Use TARGET_DEFAULT_RETURN.
8273
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8278 to_set_permissions.
8279 * target.h (struct target_ops) <to_set_permissions>: Use
8280 TARGET_DEFAULT_IGNORE.
8281
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8286 to_get_tib_address.
8287 * target.h (struct target_ops) <to_get_tib_address>: Use
8288 TARGET_DEFAULT_NORETURN.
8289
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_set_trace_notes.
8295 * target.h (struct target_ops) <to_set_trace_notes>: Use
8296 TARGET_DEFAULT_RETURN.
8297
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't initialize
8302 to_set_trace_buffer_size.
8303 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8304 TARGET_DEFAULT_IGNORE.
8305
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_set_circular_trace_buffer.
8311 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8312 TARGET_DEFAULT_IGNORE.
8313
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_set_disconnected_tracing.
8319 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8320 TARGET_DEFAULT_IGNORE.
8321
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_get_min_fast_tracepoint_insn_len.
8327 (return_minus_one): Remove.
8328 * target.h (struct target_ops)
8329 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8330
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_get_raw_trace_data.
8336 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8337 TARGET_DEFAULT_NORETURN.
8338
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_upload_trace_state_variables.
8344 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8345 Use TARGET_DEFAULT_RETURN.
8346
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_upload_tracepoints.
8352 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8353 TARGET_DEFAULT_RETURN.
8354
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_save_trace_data.
8360 * target.h (struct target_ops) <to_save_trace_data>: Use
8361 TARGET_DEFAULT_NORETURN.
8362
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_get_trace_state_variable_value.
8368 * target.h (struct target_ops)
8369 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8370
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_trace_find.
8376 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8377
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_trace_stop.
8383 * target.h (struct target_ops) <to_trace_stop>: Use
8384 TARGET_DEFAULT_NORETURN.
8385
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_get_tracepoint_status.
8391 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8392 TARGET_DEFAULT_NORETURN.
8393
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_get_trace_status.
8399 * target.h (struct target_ops) <to_get_trace_status>: Use
8400 TARGET_DEFAULT_RETURN.
8401
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_trace_start.
8407 * target.h (struct target_ops) <to_trace_start>: Use
8408 TARGET_DEFAULT_NORETURN.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_trace_set_readonly_regions.
8415 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8416 Use TARGET_DEFAULT_NORETURN.
8417
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_disable_tracepoint.
8423 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_enable_tracepoint.
8431 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8432 TARGET_DEFAULT_NORETURN.
8433
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_download_trace_state_variable.
8439 * target.h (struct target_ops) <to_download_trace_state_variable>:
8440 Use TARGET_DEFAULT_NORETURN.
8441
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_can_download_tracepoint.
8447 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8448 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
8455 * target.h (struct target_ops) <to_download_tracepoint>: Use
8456 TARGET_DEFAULT_NORETURN.
8457
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_trace_init.
8463 * target.h (struct target_ops) <to_trace_init>: Use
8464 TARGET_DEFAULT_RETURN.
8465
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_supports_string_tracing.
8471 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8472 TARGET_DEFAULT_RETURN.
8473
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_supports_enable_disable_tracepoint.
8479 * target.h (struct target_ops)
8480 <to_supports_enable_disable_tracepoint>: Use
8481 TARGET_DEFAULT_RETURN.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_supports_multi_process.
8488 * target.h (struct target_ops) <to_supports_multi_process>: Use
8489 TARGET_DEFAULT_RETURN.
8490
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_get_ada_task_ptid.
8496 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8497 TARGET_DEFAULT_FUNC.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_thread_architecture.
8504 * target.h (struct target_ops) <to_thread_architecture>: Use
8505 TARGET_DEFAULT_FUNC.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_execution_direction.
8512 * target.h (struct target_ops) <to_execution_direction>: Use
8513 TARGET_DEFAULT_FUNC.
8514
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_can_execute_reverse.
8520 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8521 TARGET_DEFAULT_RETURN.
8522 (target_can_execute_reverse): Unconditionally delegate.
8523
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_goto_bookmark.
8529 (dummy_goto_bookmark): Remove.
8530 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8531 * target.h (struct target_ops) <to_goto_bookmark>: Use
8532 TARGET_DEFAULT_NORETURN.
8533
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8538 to_get_bookmark.
8539 (dummy_get_bookmark): Remove.
8540 (init_dummy_target): Don't inherit or default to_get_bookmark.
8541 * target.h (struct target_ops) <to_get_bookmark>: Use
8542 TARGET_DEFAULT_NORETURN
8543
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_make_corefile_notes.
8549 (init_dummy_target): Don't initialize to_make_corefile_notes.
8550 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8551 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
8558 (init_dummy_target): Don't initialize to_find_memory_regions.
8559 * target.h (struct target_ops) <to_find_memory_regions>: Use
8560 TARGET_DEFAULT_FUNC.
8561
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_log_command.
8567 * target.h (struct target_ops) <to_log_command>: Use
8568 TARGET_DEFAULT_IGNORE.
8569 (target_log_command): Unconditionally delegate.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_pid_to_exec_file.
8576 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8577 TARGET_DEFAULT_RETURN.
8578
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_thread_name.
8584 (target_thread_name): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_thread_name>: Use
8586 TARGET_DEFAULT_RETURN.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_extra_thread_info.
8593 * target.h (struct target_ops) <to_extra_thread_info>: Use
8594 TARGET_DEFAULT_RETURN.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_has_exited.
8601 * target.h (struct target_ops) <to_has_exited>: Use
8602 TARGET_DEFAULT_RETURN..
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_set_syscall_catchpoint.
8609 (return_one): Remove.
8610 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8611 TARGET_DEFAULT_RETURN.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_insert_exec_catchpoint.
8618 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8620
8621 2014-01-08 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_exec_catchpoint.
8626 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
8628
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_remove_vfork_catchpoint.
8634 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8635 TARGET_DEFAULT_RETURN.
8636
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_insert_vfork_catchpoint.
8642 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8643 TARGET_DEFAULT_RETURN.
8644
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_remove_fork_catchpoint.
8650 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8651 TARGET_DEFAULT_RETURN.
8652
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_insert_fork_catchpoint.
8658 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8659 TARGET_DEFAULT_RETURN.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_post_startup_inferior.
8666 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8667 TARGET_DEFAULT_IGNORE.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_load.
8674 * target.h (struct target_ops) <to_load>: Use
8675 TARGET_DEFAULT_NORETURN.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_terminal_info.
8682 * target.h (struct target_ops) <to_terminal_info>: Use
8683 TARGET_DEFAULT_FUNC.
8684
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_terminal_save_ours.
8690 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8691 TARGET_DEFAULT_IGNORE.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_terminal_ours.
8698 * target.h (struct target_ops) <to_terminal_ours>: Use
8699 TARGET_DEFAULT_IGNORE.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_terminal_ours_for_output.
8706 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8707 TARGET_DEFAULT_IGNORE.
8708
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_terminal_inferior.
8714 * target.h (struct target_ops) <to_terminal_inferior>: Use
8715 TARGET_DEFAULT_IGNORE.
8716
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_terminal_init.
8722 * target.h (struct target_ops) <to_terminal_init>: Use
8723 TARGET_DEFAULT_IGNORE.
8724
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_can_accel_watchpoint_condition.
8730 * target.h (struct target_ops)
8731 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8732
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_region_ok_for_hw_watchpoint.
8738 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8739 Use TARGET_DEFAULT_FUNC.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_watchpoint_addr_within_range.
8746 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8747 Use TARGET_DEFAULT_FUNC.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_remove_watchpoint.
8754 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_insert_watchpoint.
8762 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8763 TARGET_DEFAULT_RETURN.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_remove_hw_breakpoint.
8770 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_insert_hw_breakpoint.
8778 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8779 TARGET_DEFAULT_RETURN.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_can_use_hw_breakpoint.
8786 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8787 TARGET_DEFAULT_RETURN.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_files_info.
8794 * target.h (struct target_ops) <to_files_info>: Use
8795 TARGET_DEFAULT_IGNORE.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_store.
8802 * target.h (struct target_ops) <to_store>: Use
8803 TARGET_DEFAULT_NORETURN.
8804
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_post_attach.
8810 * target.h (struct target_ops) <to_post_attach>: Use
8811 TARGET_DEFAULT_IGNORE.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_rcmd.
8818 (default_rcmd): New function.
8819 (do_monitor_command): Unconditionally delegate.
8820 * target.h (struct target_ops) <to_rmcd>: Use
8821 TARGET_DEFAULT_FUNC.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (init_dummy_target): Don't initialize to_attach.
8827 (target_attach): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_attach>: Use
8829 TARGET_DEFAULT_FUNC.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_detach): Unconditionally delegate.
8835 (init_dummy_target): Don't initialize to_detach.
8836 * target.h (struct target_ops) <to_detach>: Use
8837 TARGET_DEFAULT_IGNORE.
8838
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8842 Add argument.
8843 (target_augmented_libraries_svr4_read): Add argument.
8844 * target.c (update_current_target): Update.
8845 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8846 argument.
8847
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target.h (struct target_ops) <to_call_history_range>: Add
8851 argument.
8852 * target.c (target_call_history_range): Add argument.
8853 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8854 argument.
8855 (record_btrace_call_history_from): Update.
8856
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_call_history_from>: Add
8860 argument.
8861 * target.c (target_call_history_from): Add argument.
8862 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8863 argument.
8864
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_call_history>: Add argument.
8868 * target.c (target_call_history): Add argument.
8869 * record-btrace.c (record_btrace_call_history): Add 'self'
8870 argument.
8871
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target.h (struct target_ops) <to_insn_history_range>: Add
8875 argument.
8876 * target.c (target_insn_history_range): Add argument.
8877 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8878 argument.
8879 (record_btrace_insn_history_from): Update.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target.h (struct target_ops) <to_insn_history_from>: Add
8884 argument.
8885 * target.c (target_insn_history_from): Add argument.
8886 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8887 argument.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target.h (struct target_ops) <to_insn_history>: Add argument.
8892 * target.c (target_insn_history): Add argument.
8893 * record-btrace.c (record_btrace_insn_history): Add 'self'
8894 argument.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target.h (struct target_ops) <to_goto_record>: Add argument.
8899 * target.c (target_goto_record): Add argument.
8900 * record-full.c (record_full_goto): Add 'self' argument.
8901 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8906 * target.c (target_goto_record_end): Add argument.
8907 * record-full.c (record_full_goto_end): Add 'self' argument.
8908 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target.h (struct target_ops) <to_goto_record_begin>: Add
8913 argument.
8914 * target.c (target_goto_record_begin): Add argument.
8915 * record-full.c (record_full_goto_begin): Add 'self' argument.
8916 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8917 argument.
8918
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target.h (struct target_ops) <to_record_is_replaying>: Add
8922 argument.
8923 * target.c (target_record_is_replaying): Add argument.
8924 * record-full.c (record_full_is_replaying): Add 'self' argument.
8925 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8926 argument.
8927 (record_btrace_xfer_partial, record_btrace_store_registers)
8928 (record_btrace_prepare_to_store, record_btrace_resume)
8929 (record_btrace_wait, record_btrace_decr_pc_after_break)
8930 (record_btrace_find_new_threads, record_btrace_thread_alive):
8931 Update.
8932
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_delete_record>: Add argument.
8936 * target.c (target_delete_record): Add argument.
8937 * record-full.c (record_full_delete): Add 'self' argument.
8938
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target.h (struct target_ops) <to_save_record>: Add argument.
8942 * target.c (target_save_record): Add argument.
8943 * record-full.c (record_full_save): Add 'self' argument.
8944 (record_full_save): Add 'self' argument.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target.h (struct target_ops) <to_info_record>: Add argument.
8949 * target.c (target_info_record): Add argument.
8950 * record.c (info_record_command): Add argument.
8951 * record-full.c (record_full_info): Add 'self' argument.
8952 * record-btrace.c (record_btrace_info): Add 'self' argument.
8953
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8957 * target.c (target_stop_recording): Add argument.
8958 * record.c (record_stop): Add argument.
8959 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8960 argument.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8965 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8966 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8967 argument.
8968 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8969 (_initialize_amd64_linux_nat): Use it.
8970 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8971 (_initialize_i386_linux_nat): Use it.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8976 * target.c (target_teardown_btrace): Add argument.
8977 * remote.c (remote_teardown_btrace): Add 'self' argument.
8978 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8979 argument.
8980 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8981 argument.
8982
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8986 * target.c (target_disable_btrace): Add argument.
8987 * remote.c (remote_disable_btrace): Add 'self' argument.
8988 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8989 argument.
8990 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8991 argument.
8992
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8996 * target.c (target_enable_btrace): Add argument.
8997 * remote.c (remote_enable_btrace): Add 'self' argument.
8998 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8999 argument.
9000 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9001 argument.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9006 (target_can_use_agent): Add argument.
9007 * target.c (update_current_target): Update.
9008 * remote.c (remote_can_use_agent): Add 'self' argument.
9009 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_use_agent>: Add argument.
9014 (target_use_agent): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_use_agent): Add 'self' argument.
9017 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9022 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9023 (target_traceframe_info): Add argument.
9024 * target.c (update_current_target): Update.
9025 * remote.c (remote_traceframe_info): Add 'self' argument.
9026 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target.h (target_static_tracepoint_markers_by_strid): Add
9031 argument.
9032 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9033 'self' argument.
9034 * target.c (update_current_target): Update.
9035 * remote.c (struct target_ops)
9036 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9037 * linux-nat.c (struct target_ops)
9038 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9039
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9043 Add argument.
9044 (target_static_tracepoint_marker_at): Add argument.
9045 * target.c (update_current_target): Update.
9046 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9047 argument.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9052 (target_set_permissions): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_set_permissions): Add 'self' argument.
9055 (remote_start_remote): Update.
9056
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9060 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9061 (target_get_tib_address): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_get_tib_address): Add 'self' argument.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9068 (target_set_trace_notes): Add argument.
9069 * target.c (update_current_target): Update.
9070 * remote.c (remote_set_trace_notes): Add 'self' argument.
9071
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9075 argument.
9076 (target_set_trace_buffer_size): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9079
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9083 argument.
9084 (target_set_circular_trace_buffer): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9087 argument.
9088
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9092 argument.
9093 (target_set_disconnected_tracing): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9096
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target.h (struct target_ops)
9100 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9101 (target_get_min_fast_tracepoint_insn_len): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9104 argument.
9105
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9109 argument.
9110 (target_get_raw_trace_data): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9117 Add argument.
9118 (target_upload_trace_state_variables): Add argument.
9119 * target.c (update_current_target): Update.
9120 * remote.c (remote_upload_trace_state_variables): Add 'self'
9121 argument.
9122 (remote_start_remote): Update.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9127 argument.
9128 (target_upload_tracepoints): Add argument.
9129 * target.c (update_current_target): Update.
9130 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9131 (remote_start_remote): Update.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9136 (target_save_trace_data): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_save_trace_data): Add 'self' argument.
9139
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9143 argument.
9144 * target.h (struct target_ops)
9145 <to_get_trace_state_variable_value>: Add argument.
9146 (target_get_trace_state_variable_value): Add argument.
9147 * target.c (update_current_target): Update.
9148 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9149 argument.
9150 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9155 * target.h (struct target_ops) <to_trace_find>: Add argument.
9156 (target_trace_find): Add argument.
9157 * target.c (update_current_target): Update.
9158 * remote.c (remote_trace_find): Add 'self' argument.
9159 * ctf.c (ctf_trace_find): Add 'self' argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9164 (target_trace_stop): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_stop): Add 'self' argument.
9167
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9169
9170 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9171 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9172 argument.
9173 (target_get_tracepoint_status): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9176
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9180 * target.h (struct target_ops) <to_get_trace_status>: Add
9181 argument.
9182 (target_get_trace_status): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_get_trace_status): Add 'self' argument.
9185 (remote_start_remote, remote_can_download_tracepoint): Update.
9186 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_trace_start>: Add argument.
9191 (target_trace_start): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_trace_start): Add 'self' argument.
9194
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9198 Add argument.
9199 (target_trace_set_readonly_regions): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9202 argument.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9207 argument.
9208 (target_disable_tracepoint): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9215 argument.
9216 (target_enable_tracepoint): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target.h (struct target_ops) <to_download_trace_state_variable>:
9223 Add argument.
9224 (target_download_trace_state_variable): Add argument.
9225 * target.c (update_current_target): Update.
9226 * remote.c (remote_download_trace_state_variable): Add 'self'
9227 argument.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9232 argument.
9233 (target_can_download_tracepoint): Add argument.
9234 * target.c (update_current_target): Update.
9235 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_download_tracepoint>: Add
9240 argument.
9241 (target_download_tracepoint): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_download_tracepoint): Add 'self' argument.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_trace_init>: Add argument.
9248 (target_trace_init): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_trace_init): Add 'self' argument.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9255 * target.c (target_fileio_readlink): Add argument.
9256 * remote.c (remote_hostio_readlink): Add 'self' argument.
9257 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9262 * target.c (target_fileio_unlink): Add argument.
9263 * remote.c (remote_hostio_unlink): Add 'self' argument.
9264 (remote_file_delete): Update.
9265 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9270 * target.c (target_fileio_close): Add argument.
9271 * remote.c (remote_hostio_close): Add 'self' argument.
9272 (remote_hostio_close_cleanup): Update.
9273 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9274 Update.
9275 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9280 * target.c (target_fileio_pread): Add argument.
9281 * remote.c (remote_hostio_pread): Add 'self' argument.
9282 (remote_bfd_iovec_pread, remote_file_get): Update.
9283 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9288 * target.c (target_fileio_pwrite): Add argument.
9289 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9290 (remote_file_put): Update.
9291 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9296 * target.c (target_fileio_open): Add argument.
9297 * remote.c (remote_hostio_open): Add 'self' argument.
9298 (remote_bfd_iovec_open): Add 'self' argument.
9299 (remote_file_put): Add 'self' argument.
9300 (remote_file_get): Add 'self' argument.
9301 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9306 Add argument.
9307 (target_can_run_breakpoint_commands): Add argument.
9308 * target.c (update_current_target): Update.
9309 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9310 argument.
9311 (remote_insert_breakpoint): Add 'self' argument.
9312 (remote_insert_hw_breakpoint): Add 'self' argument.
9313 (remote_can_run_breakpoint_commands): Add 'self' argument.
9314
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * target.h (struct target_ops)
9318 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9319 (target_supports_evaluation_of_breakpoint_conditions): Add
9320 argument.
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9323 argument.
9324 (remote_insert_breakpoint): Add 'self' argument.
9325 (remote_insert_hw_breakpoint): Add 'self' argument.
9326 (remote_supports_cond_breakpoints): Add 'self' argument.
9327
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9331 argument.
9332 (target_supports_string_tracing): Add argument.
9333 * target.c (update_current_target): Update.
9334 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9335
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops)
9339 <to_supports_disable_randomization>: Add argument.
9340 * target.c (find_default_supports_disable_randomization): Add
9341 argument.
9342 (target_supports_disable_randomization): Add argument.
9343 (find_default_supports_disable_randomization): Add 'self'
9344 argument.
9345 * remote.c (extended_remote_supports_disable_randomization): Add
9346 'self' argument.
9347 (remote_supports_disable_randomization): Add 'self' argument.
9348 (extended_remote_create_inferior): Update.
9349 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9350 'self' argument.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops)
9355 <to_supports_enable_disable_tracepoint>: Add argument.
9356 (target_supports_enable_disable_tracepoint): Add argument.
9357 * target.c (update_current_target): Update.
9358 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9359 argument.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_supports_multi_process>: Add
9364 argument.
9365 (target_supports_multi_process): Add argument.
9366 * target.c (update_current_target): Update.
9367 * remote.c (remote_supports_multi_process): Add 'self' argument.
9368 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9369 argument.
9370 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9371 argument.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_execution_direction>: Add
9376 argument.
9377 (target_execution_direction): Add argument.
9378 * target.c (default_execution_direction): Add 'self' argument.
9379 * record-full.c (record_full_execution_direction): Add 'self'
9380 argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9385 argument.
9386 (target_can_execute_reverse): Add argument.
9387 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9388 * record-full.c (record_full_can_execute_reverse): Add 'self'
9389 argument.
9390 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9391 argument.
9392
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9396 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9397 argument.
9398 (target_get_ada_task_ptid): Add argument.
9399 * target.c (update_current_target): Update.
9400 (default_get_ada_task_ptid): Add 'self' argument.
9401 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9402 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9403 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9404 argument.
9405 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9406 argument.
9407 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9408 argument.
9409 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9410 argument.
9411 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9412 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9413 argument.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9418 (target_goto_bookmark): Add argument.
9419 * target.c (dummy_goto_bookmark): Add 'self' argument.
9420 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9421
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9425 (target_get_bookmark): Add argument.
9426 * target.c (dummy_get_bookmark): Add 'self' argument.
9427 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9428
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9432 argument.
9433 (target_make_corefile_notes): Add argument.
9434 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9435 * procfs.c (procfs_make_note_section): Add 'self' argument.
9436 (procfs_make_note_section): Add 'self' argument.
9437 (procfs_make_note_section): Add 'self' argument.
9438 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9439 argument.
9440 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9441 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9442 * exec.c (exec_make_note_section): Add 'self' argument.
9443 (exec_make_note_section): Add 'self' argument.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops) <to_find_memory_regions>: Add
9448 argument.
9449 (target_find_memory_regions): Add argument.
9450 * target.c (dummy_find_memory_regions): Add 'self' argument.
9451 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9452 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9453 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9454 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9455 * exec. (exec_do_find_memory_regions): New global.
9456 (exec_set_find_memory_regions): Rewrite.
9457 (exec_find_memory_regions): New function.
9458 (init_exec_ops): Use exec_find_memory_regions.
9459
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9461
9462 * target.h (struct target_ops) <to_supports_non_stop>: Add
9463 argument.
9464 * target.c (find_default_supports_non_stop): Add argument.
9465 (target_supports_non_stop): Add argument.
9466 (find_default_supports_non_stop): Add 'self' argument.
9467 * remote.c (remote_supports_non_stop): Add 'self' argument.
9468 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9469
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target.h (struct target_ops) <to_log_command>: Add argument.
9473 (target_log_command): Add argument.
9474 * serial.h (serial_log_command): Add 'self' argument.
9475 * serial.c (serial_log_command): Add 'self' argument.
9476
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9478
9479 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9480 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9481 argument.
9482 (target_pid_to_exec_file): Add argument.
9483 * target.c (debug_to_pid_to_exec_file): Add argument.
9484 (update_current_target): Update.
9485 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9486 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9487 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9488 (linux_handle_extended_wait): Update.
9489 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9490 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9491 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9492 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_rcmd>: Add argument.
9497 (target_rcmd): Add argument.
9498 * target.c (debug_to_rcmd): Add argument.
9499 (update_current_target, do_monitor_command): Update.
9500 * remote.c (remote_rcmd): Add 'self' argument.
9501 * monitor.c (monitor_rcmd): Add 'self' argument.
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * windows-nat.c (windows_stop): Add 'self' argument.
9506 * target.h (struct target_ops) <to_stop>: Add argument.
9507 * target.c (target_stop): Add argument.
9508 (debug_to_stop): Add argument.
9509 (update_current_target): Update.
9510 * remote.c (remote_stop): Add 'self' argument.
9511 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9512 (gdbsim_cntrl_c): Update.
9513 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9514 * procfs.c (procfs_stop): Add 'self' argument.
9515 * nto-procfs.c (procfs_stop): Add 'self' argument.
9516 * monitor.c (monitor_stop): Add 'self' argument.
9517 (monitor_open): Update.
9518 * linux-nat.c (linux_nat_stop): Add argument.
9519 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9520 * gnu-nat.c (gnu_stop): Add 'self' argument.
9521 * darwin-nat.c (darwin_stop): Add 'self' argument.
9522
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target.h (struct target_ops) <to_thread_name>: Add argument.
9526 * target.c (target_thread_name): Add argument.
9527 (update_current_target): Update.
9528 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_extra_thread_info>: Add
9533 argument.
9534 (target_extra_thread_info): Add argument.
9535 * target.c (update_current_target): Update.
9536 * remote.c (remote_threads_extra_info): Add 'self' argument.
9537 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9538 argument.
9539 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9540 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9541 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9542 argument.
9543 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9544 argument.
9545 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9546 argument.
9547 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9548 argument.
9549
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9551
9552 * target.h (struct target_ops) <to_program_signals>: Add argument.
9553 * target.c (target_program_signals): Add argument.
9554 * remote.c (remote_program_signals): Add 'self' argument.
9555
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9559 * target.c (target_pass_signals): Add argument.
9560 * remote.c (remote_pass_signals): Add 'self' argument.
9561 (remote_start_remote): Update.
9562 * procfs.c (procfs_pass_signals): Add 'self' argument.
9563 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9564 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9565 (linux_nat_create_inferior, linux_nat_attach): Update.
9566
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * windows-nat.c (windows_can_run): Add 'self' argument.
9570 * target.h (struct target_ops) <to_can_run>: Add argument.
9571 (target_can_run): Add argument.
9572 * target.c (debug_to_can_run): Add argument.
9573 (update_current_target): Update.
9574 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9575 * inf-child.c (inf_child_can_run): Add 'self' argument.
9576 * go32-nat.c (go32_can_run): Add 'self' argument.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_has_exited>: Add argument.
9581 (target_has_exited): Add argument.
9582 * target.c (debug_to_has_exited): Add argument.
9583 (update_current_target): Update.
9584
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9588 argument.
9589 (target_set_syscall_catchpoint): Add argument.
9590 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9591 argument.
9592 * target.c (update_current_target): Update.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9597 argument.
9598 (target_remove_exec_catchpoint): Add argument.
9599 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9600 (update_current_target): Update.
9601 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9602 argument.
9603
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9607 argument.
9608 (target_insert_exec_catchpoint): Add argument.
9609 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9610 (update_current_target): Update.
9611 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9612 argument.
9613
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9615
9616 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9617 argument.
9618 (target_remove_vfork_catchpoint): Add argument.
9619 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9620 (update_current_target): Update.
9621 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9622 argument.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9627 argument.
9628 (target_insert_vfork_catchpoint): Add argument.
9629 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9630 (update_current_target): Update.
9631 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9632 argument.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9637 argument.
9638 (target_remove_fork_catchpoint): Add argument.
9639 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9640 (update_current_target): Update.
9641 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9642 argument.
9643
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9647 argument.
9648 (target_insert_fork_catchpoint): Add argument.
9649 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9650 (update_current_target): Update.
9651 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9652 argument.
9653
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9657 argument.
9658 (target_post_startup_inferior): Add argument.
9659 * target.c (debug_to_post_startup_inferior): Add argument.
9660 (update_current_target): Update.
9661 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9662 argument.
9663 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9664 argument.
9665 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9666 argument.
9667 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9668 argument.
9669 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9670 'self' argument.
9671 (super_post_startup_inferior): Likewise.
9672 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9673 'self' argument.
9674 (super_post_startup_inferior): Likewise.
9675 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9676 Add 'self' argument.
9677 (super_post_startup_inferior): Likewise.
9678
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target.h (struct target_ops) <to_load>: Add argument.
9682 * target.c (target_load): Add argument.
9683 (debug_to_load): Add argument.
9684 (update_current_target): Update.
9685 * remote.c (remote_load): Add 'self' argument.
9686 * remote-sim.c (gdbsim_load): Add 'self' argument.
9687 * remote-mips.c (mips_load): Add 'self' argument.
9688 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9689 * monitor.c (monitor_load): Add 'self' argument.
9690 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9695 (target_terminal_info): Add argument.
9696 * target.c (debug_to_terminal_info): Add argument.
9697 (default_terminal_info): Likewise.
9698 * inflow.c (child_terminal_info): Add 'self' argument.
9699 * inferior.h (child_terminal_info): Add 'self' argument.
9700 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9705 argument.
9706 (target_terminal_save_ours): Add argument.
9707 * target.c (debug_to_terminal_save_ours): Add argument.
9708 (update_current_target): Update.
9709 * inflow.c (terminal_save_ours): Add 'self' argument.
9710 * inferior.h (terminal_save_ours): Add 'self' argument.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9715 (target_terminal_ours): Add argument.
9716 * target.c (debug_to_terminal_ours): Add argument.
9717 (update_current_target): Update.
9718 * remote.c (remote_terminal_ours): Add 'self' argument.
9719 (remote_close): Update.
9720 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9721 * inflow.c (terminal_ours): Add 'self' argument.
9722 * inferior.h (terminal_ours): Add 'self' argument.
9723 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9724
9725 2014-02-19 Pedro Alves <palves@redhat.com>
9726 Tom Tromey <tromey@redhat.com>
9727
9728 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9729 argument.
9730 (target_terminal_ours_for_output): Add argument.
9731 * target.c (debug_to_terminal_ours_for_output): Add argument.
9732 (update_current_target): Update.
9733 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9734 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9735 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9736
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9738
9739 * target.h (struct target_ops) <to_terminal_inferior>: Add
9740 argument.
9741 * target.c (target_terminal_inferior): Add argument.
9742 (update_current_target): Update.
9743 * remote.c (remote_terminal_inferior): Add 'self' argument.
9744 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9745 * inflow.c (terminal_inferior): Add 'self' argument.
9746 * inferior.h (terminal_inferior): Add 'self' argument.
9747 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9748 (go32_terminal_inferior): Add 'self' argument.
9749
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9753 (target_terminal_init): Add argument.
9754 * target.c (debug_to_terminal_init): Add argument.
9755 (update_current_target): Update.
9756 * inflow.c (terminal_init_inferior): Add 'self' argument.
9757 * inferior.h (terminal_init_inferior): Add 'self' argument.
9758 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9759 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9760
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops)
9764 <to_can_accel_watchpoint_condition>: Add argument.
9765 (target_can_accel_watchpoint_condition): Add argument.
9766 * target.c (debug_to_can_accel_watchpoint_condition): Add
9767 argument.
9768 (update_current_target): Update.
9769 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9770 'self' argument.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9775 Add argument.
9776 (target_region_ok_for_hw_watchpoint): Add argument.
9777 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9778 (default_region_ok_for_hw_watchpoint): Add argument.
9779 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9780 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9781 argument.
9782 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9783 argument.
9784 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9785 argument.
9786 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9787 'self' argument.
9788 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9789 'self' argument.
9790 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9791 'self' argument.
9792 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9793 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9794 'self' argument.
9795 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9796 Add 'self' argument.
9797
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9801 argument.
9802 (target_insert_watchpoint): Add argument.
9803 * target.c (debug_to_insert_watchpoint): Add argument.
9804 (update_current_target): Update.
9805 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9806 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9807 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9808 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9809 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9810 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9811 argument.
9812 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9813 (procfs_insert_hw_watchpoint): Add 'self' argument.
9814 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9815 argument.
9816 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9817 argument.
9818 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9819 argument.
9820 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9821 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9822 argument.
9823 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9824 'self' argument.
9825
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9829 argument.
9830 (target_remove_watchpoint): Add argument.
9831 * target.c (debug_to_remove_watchpoint): Add argument.
9832 (update_current_target): Update.
9833 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9834 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9835 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9836 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9837 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9838 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9839 argument.
9840 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9841 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9842 argument.
9843 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9844 argument.
9845 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9846 argument.
9847 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9848 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9849 argument.
9850 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9851 'self' argument.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9856 argument.
9857 (target_remove_hw_breakpoint): Add argument.
9858 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9859 (update_current_target): Update.
9860 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9861 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9862 argument.
9863 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9864 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9865 argument.
9866 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9867 'self' argument.
9868
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9872 argument.
9873 (target_insert_hw_breakpoint): Add argument.
9874 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9875 (update_current_target): Update.
9876 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9877 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9878 argument.
9879 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9880 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9881 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9882 argument.
9883 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9884 'self' argument.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9889 argument.
9890 (target_can_use_hardware_watchpoint): Add argument.
9891 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9892 (update_current_target): Update.
9893 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9894 argument.
9895 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9896 argument.
9897 * remote.c (remote_check_watch_resources): Add 'self' argument.
9898 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9899 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9900 argument.
9901 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9902 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9903 argument.
9904 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9905 argument.
9906 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9907 argument.
9908 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9909 argument.
9910 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9911 argument.
9912 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9913 argument.
9914 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9915 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9916 argument.
9917 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9918 'self' argument.
9919
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target.h (struct target_ops) <to_post_attach>: Add argument.
9923 (target_post_attach): Add argument.
9924 * target.c (debug_to_post_attach): Add argument.
9925 (update_current_target): Update.
9926 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9927 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9928 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9929 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9930 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * windows-nat.c (windows_close): Add 'self' argument.
9935 * tracepoint.c (tfile_close): Add 'self' argument.
9936 * target.h (struct target_ops) <to_close>: Add argument.
9937 * target.c (target_close): Add argument.
9938 (update_current_target): Update.
9939 * remote.c (remote_close): Add 'self' argument.
9940 * remote-sim.c (gdbsim_close): Add 'self' argument.
9941 * remote-mips.c (mips_close): Add 'self' argument.
9942 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9943 * record-full.c (record_full_close): Add 'self' argument.
9944 * record-btrace.c (record_btrace_close): Add 'self' argument.
9945 * monitor.h (monitor_close): Add 'self' argument.
9946 * monitor.c (monitor_close): Add 'self' argument.
9947 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9948 * linux-nat.c (linux_nat_close): Add argument.
9949 * go32-nat.c (go32_close): Add 'self' argument.
9950 * exec.c (exec_close_1): Add 'self' argument.
9951 * ctf.c (ctf_close): Add 'self' argument.
9952 * corelow.c (core_close): Add 'self' argument.
9953 (core_close_cleanup): Update.
9954 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9955 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9956
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * remote.c (remote_load): New function.
9960 (init_remote_ops): Use it.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9965 argument.
9966 * common/linux-btrace.h (linux_supports_btrace): Update.
9967 * remote.c (remote_supports_btrace): Add "self" argument.
9968 * target-delegates.c: Rebuild.
9969 * target.c (target_supports_btrace): Remove.
9970 * target.h (struct target_ops) <to_supports_btrace>: Add
9971 target_ops argument.
9972 (target_supports_btrace): New define.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * record-full.c (record_full_beneath_to_resume_ops)
9977 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9978 (record_full_beneath_to_wait)
9979 (record_full_beneath_to_store_registers_ops)
9980 (record_full_beneath_to_store_registers)
9981 (record_full_beneath_to_xfer_partial_ops)
9982 (record_full_beneath_to_xfer_partial)
9983 (record_full_beneath_to_insert_breakpoint_ops)
9984 (record_full_beneath_to_insert_breakpoint)
9985 (record_full_beneath_to_remove_breakpoint_ops)
9986 (record_full_beneath_to_remove_breakpoint)
9987 (record_full_beneath_to_stopped_by_watchpoint)
9988 (record_full_beneath_to_stopped_data_address)
9989 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9990 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9991 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9992 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9993 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9994 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9995 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9996 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9997 (record_full_resume, record_full_wait_1)
9998 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9999 (record_full_store_registers, record_full_xfer_partial)
10000 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10001 (record_full_async, record_full_core_xfer_partial): Use target
10002 delegation.
10003 * target-delegates.c: Rebuild.
10004 * target.c (current_xfer_partial): Remove.
10005 (update_current_target): Do not INHERIT or de_fault
10006 to_insert_breakpoint, to_remove_breakpoint,
10007 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10008 to_is_async_p, to_async. Do not set to_xfer_partial field.
10009 (default_xfer_partial): Simplify.
10010 (current_xfer_partial): Remove.
10011 (target_wait, target_resume): Simplify.
10012 (find_default_can_async_p, find_default_is_async_p): Update.
10013 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10014 to_xfer_partial, to_stopped_by_watchpoint,
10015 to_stopped_data_address.
10016 (target_store_registers): Simplify.
10017 (forward_target_remove_breakpoint)
10018 (forward_target_insert_breakpoint): Remove.
10019 (target_remove_breakpoint, target_insert_breakpoint)
10020 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10021 * target.h (struct target_ops) <to_resume, to_wait,
10022 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10023 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10024 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10025 markup.
10026 (forward_target_remove_breakpoint)
10027 (forward_target_insert_breakpoint): Remove.
10028 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10029 directly.
10030 (record_btrace_insert_breakpoint): Delegate directly.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 PR build/7701:
10035 * target-delegates.c: New file.
10036 * target.c: Include target-delegates.c.
10037 (init_dummy_target): Call install_dummy_methods.
10038 (complete_target_initialization): Call install_delegators.
10039 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10040 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10041 * make-target-delegates: New file.
10042
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10044
10045 * record.c (find_record_target): Use find_target_at.
10046 * target.c (find_target_at): New function.
10047 * target.h (find_target_at): Declare.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10052 Add 'ops' argument.
10053 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10054 'ops' argument.
10055 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10056 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10057 'ops' argument.
10058 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10059 argument.
10060 * linux-nat.c (save_sigtrap): Update.
10061 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10062 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10063 (linux_nat_close): Update.
10064 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10065 argument.
10066 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10067 argument.
10068 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10069 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10070 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10071 (tmp_to_async): Add 'ops' argument.
10072 (record_full_stopped_by_watchpoint, record_full_async)
10073 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10074 argument.
10075 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10076 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10077 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10078 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10079 (remote_is_async_p, remote_async): Add 'ops' argument.
10080 (remote_stopped_data_address): Update.
10081 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10082 * target.c (update_current_target)
10083 (find_default_can_async_p, find_default_is_async_p): Update.
10084 (init_dummy_target): Update.
10085 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10086 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10087 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10088 (target_can_async_p, target_is_async_p, target_async)
10089 (target_stopped_by_watchpoint): Update.
10090
10091 2014-02-19 Yao Qi <yao@codesourcery.com>
10092
10093 PR gdb/16220
10094 * gdbarch.sh: Remove startup_gdbarch.
10095 * gdbarch.c: Regenerated.
10096 * gdbarch.h: Likewise.
10097
10098 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10099
10100 * rl78-tdep.c (rl78_g10_register_name): New function.
10101 (rl78_return_value): Add g10 support.
10102 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10103 g10.
10104
10105 2014-02-17 Doug Evans <xdje42@gmail.com>
10106
10107 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10108 (SUBDIR_GUILE_SRCS): Ditto.
10109 (scm-gsmob.o): Ditto.
10110
10111 2014-02-17 Yao Qi <yao@codesourcery.com>
10112
10113 * gnu-nat.c (ILL_RPC): Declare defined function.
10114
10115 2014-02-17 Yao Qi <yao@codesourcery.com>
10116
10117 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10118 mach_msg_type_number_t.
10119 (gnu_write_inferior): Likewise.
10120
10121 2014-02-17 Yao Qi <yao@codesourcery.com>
10122
10123 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10124 in format string.
10125 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10126 (inf_validate_procs, inf_signal): Likewise.
10127 (S_exception_raise_request): Likewise.
10128 (do_mach_notify_dead_name): Likewise.
10129 (steal_exc_port): Likewise.
10130 (gnu_read_inferior): Change 'copy_count''s type to
10131 mach_msg_type_number_t.
10132 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10133 format string.
10134
10135 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10136
10137 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10138 flag. Adjust all users; in particular...
10139 (gnu_wait): ..., don't decrement its value in here...
10140 (gnu_create_inferior): ..., and instead set the flag in here,
10141 around the startup_inferior call, and call that one with
10142 START_INFERIOR_TRAPS_EXPECTED.
10143
10144 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10145 (ILL_RPC): ... new macro.
10146 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10147 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10148 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10149 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10150 functions with ILL_RPC macro.
10151 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10152 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10153 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10154 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10155 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10156 (S_proc_getlogin_reply, S_proc_getsid_reply)
10157 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10158 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10159 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10160 (S_proc_getnports_reply, S_proc_is_important_reply)
10161 (S_proc_get_code_reply): New stub functions, generated with
10162 ILL_RPC macro.
10163
10164 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10165 collected the type check structures.
10166
10167 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10168
10169 2014-02-14 Doug Evans <dje@google.com>
10170
10171 * target.c (target_write_partial): Fix result type.
10172
10173 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10174
10175 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10176 the proper offsets to access fpregset_t.
10177
10178 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10179
10180 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10181 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10182 * h8300-tdep.c (setmachinelist): Remove global.
10183 * hppa-tdep.c (hppa_sigtramp): Remove global.
10184 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10185 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10186 * ravenscar-thread.c (update_target_observer): Remove global.
10187 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10188
10189 2014-02-12 Tom Tromey <tromey@redhat.com>
10190
10191 * common/rsp-low.c: Update comments.
10192 * common/rsp-low.h: Update comments.
10193
10194 2014-02-12 Tom Tromey <tromey@redhat.com>
10195
10196 * common/rsp-low.c (convert_ascii_to_int): Remove.
10197 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10198
10199 2014-02-12 Tom Tromey <tromey@redhat.com>
10200
10201 * common/rsp-low.h (unhexify): Don't declare.
10202 * common/rsp-low.c (unhexify): Remove.
10203
10204 2014-02-12 Tom Tromey <tromey@redhat.com>
10205
10206 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10207 * common/rsp-low.c (convert_int_to_ascii): Remove.
10208
10209 2014-02-12 Tom Tromey <tromey@redhat.com>
10210
10211 * common/rsp-low.h (hexify): Don't declare.
10212 * common/rsp-low.c (hexify): Remove.
10213
10214 2014-02-12 Tom Tromey <tromey@redhat.com>
10215
10216 * common/rsp-low.c (hexify): Never take strlen of argument.
10217
10218 2014-02-12 Tom Tromey <tromey@redhat.com>
10219
10220 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10221 * remote.c (extended_remote_run, remote_rcmd)
10222 (remote_download_trace_state_variable, remote_save_trace_data)
10223 (remote_set_trace_notes): Update.
10224 * tracepoint.c (encode_source_string, tfile_write_status)
10225 (tfile_write_uploaded_tsv): Update.
10226
10227 2014-02-12 Tom Tromey <tromey@redhat.com>
10228
10229 * tracepoint.c: Include rsp-low.h.
10230 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10231 * remote.c: Include rsp-low.h.
10232 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10233 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10234 (remote_unescape_input): Move to common/rsp-low.c.
10235 * common/rsp-low.h: New file.
10236 * common/rsp-low.c: New file.
10237 * Makefile.in (SFILES): Add common/rsp-low.c.
10238 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10239 (COMMON_OBS): Add rsp-low.o.
10240 (rsp-low.o): New target.
10241
10242 2014-02-12 Tom Tromey <tromey@redhat.com>
10243
10244 * utils.h: Include print-utils.h.
10245 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10246 (int_string, core_addr_to_string, core_addr_to_string_nz)
10247 (hex_string, hex_string_custom): Don't declare.
10248 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10249 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10250 (hex_string_custom, int_string, core_addr_to_string)
10251 (core_addr_to_string_nz, host_address_to_string): Move to
10252 common/print-utils.c.
10253 * common/print-utils.h: New file.
10254 * common/print-utils.c: New file
10255 * Makefile.in (SFILES): Add common/print-utils.c.
10256 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10257 (COMMON_OBS): Add print-utils.o.
10258 (print-utils.o): New target.
10259
10260 2014-02-12 Tom Tromey <tromey@redhat.com>
10261
10262 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10263
10264 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10265
10266 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10267
10268 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10269
10270 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10271 if a PT_IO ptrace request returns sucessfully but indicates that 0
10272 bytes were transferred.
10273
10274 2014-02-12 Pedro Alves <palves@redhat.com>
10275 Kevin Buettner <kevinb@redhat.com>
10276
10277 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10278 TYPE_INSTANCE_FLAG_CODE_SPACE.
10279
10280 2014-02-12 Pedro Alves <palves@redhat.com>
10281
10282 * h8300-tdep.c (pseudo_from_raw_register)
10283 (raw_from_pseudo_register): New functions.
10284 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10285 them.
10286
10287 2014-02-12 Pedro Alves <palves@redhat.com>
10288
10289 * h8300-tdep.c (h8300_register_sim_regno): New function.
10290 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10291 gdbarch_register_sim_regno hook.
10292
10293 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10294
10295 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10296
10297 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10298
10299 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10300
10301 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10302
10303 * obsd-tdep.h (obsd_init_abi): New prototype.
10304 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10305 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10306 (obsd_init_abi): New functions.
10307 * i386obsd-tdep.c: Include "obsd-tdep.h".
10308 (i386obsd_init_abi): Call obsd_init_abi.
10309 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10310 (amd64obsd_init_abi): Call obsd_init_abi.
10311 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10312 obsd-tdep.c to gdb_target_obs.
10313
10314 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10315
10316 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10317 double float arguments to 16-byte in the argument slots.
10318
10319 2014-02-11 Doug Evans <xdje42@gmail.com>
10320
10321 * configure.ac: Don't crash if pkg-config is not found and guile
10322 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10323 in guile checks.
10324 * configure: Regenerate.
10325
10326 2014-02-11 Yao Qi <yao@codesourcery.com>
10327
10328 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10329 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10330 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10331 * gnu-nat.c (gnu_xfer_memory): Likewise.
10332 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10333 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10334 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10335 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10336
10337 2014-02-11 Yao Qi <yao@codesourcery.com>
10338
10339 * target.h (enum target_xfer_error): Rename to ...
10340 (enum target_xfer_status): ... it. New. All users updated.
10341 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10342 New.
10343 (TARGET_XFER_STATUS_ERROR_P): New macro.
10344 (target_xfer_error_to_string): Remove declaration.
10345 (target_xfer_status_to_string): Declare.
10346 (target_xfer_partial_ftype): Adjust it.
10347 (struct target_ops) <to_xfer_partial>: Return
10348 target_xfer_status. Add argument xfered_len. Update
10349 comments.
10350 * target.c (target_xfer_error_to_string): Rename to ...
10351 (target_xfer_status_to_string): ... it. New. All callers
10352 updated.
10353 (target_read_live_memory): Likewise. Call target_xfer_partial
10354 instead of target_read.
10355 (memory_xfer_live_readonly_partial): Return
10356 target_xfer_status. Add argument xfered_len.
10357 (raw_memory_xfer_partial): Likewise.
10358 (memory_xfer_partial_1): Likewise.
10359 (memory_xfer_partial): Likewise.
10360 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10361 properly. Update debug message.
10362 (default_xfer_partial, current_xfer_partial): Likewise.
10363 (target_write_partial): Likewise.
10364 (target_read_partial): Likewise. All callers updated.
10365 (read_whatever_is_readable): Likewise.
10366 (target_write_with_progress): Likewise.
10367 (target_read_alloc_1): Likewise.
10368
10369 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10370 * auxv.c (procfs_xfer_auxv): Likewise.
10371 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10372 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10373 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10374 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10375 * corefile.c (read_memory): Adjust.
10376 * corelow.c (core_xfer_partial): Likewise.
10377 * ctf.c (ctf_xfer_partial): Likewise.
10378 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10379 updated.
10380 (darwin_xfer_partial): Likewise.
10381 * exec.c (section_table_xfer_memory_partial): Likewise. All
10382 callers updated.
10383 (exec_xfer_partial): Likewise.
10384 * exec.h (section_table_xfer_memory_partial): Update
10385 declaration.
10386 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10387 negative.
10388 (gnu_xfer_partial): Likewise.
10389 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10390 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10391 (ia64_hpux_xfer_solib_got): Likewise.
10392 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10393 type of 'partial_len' to ULONGEST.
10394 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10395 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10396 (linux_nat_xfer_partial): Likewise.
10397 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10398 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10399 * monitor.c (monitor_xfer_memory): Likewise.
10400 (monitor_xfer_partial): Likewise.
10401 * procfs.c (procfs_xfer_partial): Likewise.
10402 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10403 * record-full.c (record_full_xfer_partial): Likewise.
10404 (record_full_core_xfer_partial): Likewise.
10405 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10406 (gdbsim_xfer_partial): Likewise.
10407 * remote.c (remote_write_bytes_aux): Likewise. All callers
10408 updated.
10409 (remote_write_bytes, remote_read_bytes): Likewise. All
10410 callers updated.
10411 (remote_flash_erase): Likewise. All callers updated.
10412 (remote_write_qxfer): Likewise. All callers updated.
10413 (remote_read_qxfer): Likewise. All callers updated.
10414 (remote_xfer_partial): Likewise.
10415 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10416 (rs6000_xfer_shared_libraries): Likewise.
10417 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10418 (sol_thread_xfer_partial): Likewise.
10419 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10420 (sparc_xfer_partial): Likewise.
10421 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10422 updated.
10423 (spu_xfer_partial): Likewise.
10424 * spu-multiarch.c (spu_xfer_partial): Likewise.
10425 * tracepoint.c (tfile_xfer_partial): Likewise.
10426 * windows-nat.c (windows_xfer_memory): Likewise.
10427 (windows_xfer_shared_libraries): Likewise.
10428 (windows_xfer_partial): Likewise.
10429 * valprint.c: Replace 'target_xfer_error' with
10430 'target_xfer_status' in comments.
10431
10432 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10433
10434 Checked in by Joel Brobecker <brobecker@adacore.com>.
10435 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10436
10437 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10438
10439 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10440 function parameters.
10441
10442 2014-02-10 Will Newton <will.newton@linaro.org>
10443
10444 * elfread.c (elf_rel_plt_read): Look for a .got section if
10445 looking up .got.plt fails.
10446 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10447 on address passed to elf_gnu_ifunc_record_cache.
10448 (elf_gnu_ifunc_resolve_addr): Likewise.
10449 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10450
10451 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10452
10453 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10454 (X_RETTURN): New macro.
10455 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10456
10457 * sparc64-tdep.c (sparc64_init_abi): Hook
10458 sparc_in_function_epilogue_p.
10459
10460 2014-02-10 Gary Benson <gbenson@redhat.com>
10461
10462 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10463 Rename name_matcher to symbol_matcher.
10464
10465 2014-02-10 Gary Benson <gbenson@redhat.com>
10466
10467 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10468 Use expand_symtabs_file_matcher_ftype and
10469 expand_symtabs_symbol_matcher_ftype.
10470
10471 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10472
10473 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10474 (struct ada_symbol_cache): New.
10475 (ada_free_symbol_cache): Forward declare.
10476 (struct ada_pspace_data): New.
10477 (ada_pspace_data_handle): New static global.
10478 (get_ada_pspace_data, ada_pspace_data_cleanup)
10479 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10480 (cache_space, cache): Delete, now folded inside struct
10481 ada_pspace_data.
10482 (ada_get_symbol_cache): New function.
10483 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10484 implementation.
10485 (_initialize_ada_language): Remove initialization of cache_space.
10486 Move call to observer_attach_inferior_exit up, grouping it
10487 with the other observer registrations inside this function.
10488 Rename command to be more general. Add call to
10489 register_program_space_data_with_cleanup.
10490
10491 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10492
10493 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10494 ada_new_objfile_observer.
10495 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10496 (_initialize_tasks): Update uses of ada_new_objfile_observer
10497 and ada_tasks_normal_stop_observer.
10498
10499 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10500
10501 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10502 returned by the 'Length attribute to integer.
10503
10504 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.c (_initialize_ada_language): Initialize
10507 cache_space obstack.
10508
10509 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10510
10511 * ada-lang.c (HASH_SIZE): New macro.
10512 (struct cache_entry): New type.
10513 (cache_space, cache): New static globals.
10514 (ada_clear_symbol_cache, find_entry): New functions.
10515 (lookup_cached_symbol, cache_symbol): Implement.
10516 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10517 (_initialize_ada_language): Attach ada_new_objfile_observer
10518 and ada_free_objfile_observer.
10519
10520 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10521
10522 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10523 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10524 struct block * parameter.
10525 (ada_lookup_symbol_list_worker): Constify local variable "block".
10526 Remove cast which is no longer necessary.
10527
10528 2014-02-10 Doug Evans <xdje42@gmail.com>
10529
10530 Add Guile as an extension language.
10531 * NEWS: Mention Guile scripting.
10532 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10533 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10534 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10535 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10536 (CLIBS): Add GUILE_LIBS.
10537 (install-guile): New rule.
10538 (guile.o): New rule.
10539 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10540 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10541 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10542 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10543 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10544 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10545 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10546 * configure.ac: New option --with-guile.
10547 * configure: Regenerate.
10548 * config.in: Regenerate.
10549 * auto-load.c: Remove #include "python/python.h". Add #include
10550 "gdb/section-scripts.h".
10551 (source_section_scripts): Handle Guile scripts.
10552 (_initialize_auto_load): Add name of Guile objfile script to
10553 scripts-directory help text.
10554 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10555 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10556 (struct breakpoint): New member scm_bp_object.
10557 * defs.h (enum command_control_type): New value guile_control.
10558 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10559 "extension.h".
10560 (show_user): Update comment.
10561 (_initialize_cli_cmds): Update help text for "show user". Update help
10562 text for max-user-call-depth.
10563 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10564 "extension.h".
10565 (multi_line_command_p): Add guile_control.
10566 (print_command_lines): Handle guile_control.
10567 (execute_control_command, recurse_read_control_structure): Ditto.
10568 (process_next_line): Recognize "guile" commands.
10569 * disasm.c (gdb_disassemble_info): Make non-static.
10570 * disasm.h: #include "dis-asm.h".
10571 (struct gdbarch): Add forward decl.
10572 (gdb_disassemble_info): Declare.
10573 * extension.c: #include "guile/guile.h".
10574 (extension_languages): Add guile.
10575 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10576 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10577 * gdbtypes.c (get_unsigned_type_max): New function.
10578 (get_signed_type_minmax): New function.
10579 * gdbtypes.h (get_unsigned_type_max): Declare.
10580 (get_signed_type_minmax): Declare.
10581 * guile/README: New file.
10582 * guile/guile-internal.h: New file.
10583 * guile/guile.c: New file.
10584 * guile/guile.h: New file.
10585 * guile/scm-arch.c: New file.
10586 * guile/scm-auto-load.c: New file.
10587 * guile/scm-block.c: New file.
10588 * guile/scm-breakpoint.c: New file.
10589 * guile/scm-disasm.c: New file.
10590 * guile/scm-exception.c: New file.
10591 * guile/scm-frame.c: New file.
10592 * guile/scm-gsmob.c: New file.
10593 * guile/scm-iterator.c: New file.
10594 * guile/scm-lazy-string.c: New file.
10595 * guile/scm-math.c: New file.
10596 * guile/scm-objfile.c: New file.
10597 * guile/scm-ports.c: New file.
10598 * guile/scm-pretty-print.c: New file.
10599 * guile/scm-safe-call.c: New file.
10600 * guile/scm-string.c: New file.
10601 * guile/scm-symbol.c: New file.
10602 * guile/scm-symtab.c: New file.
10603 * guile/scm-type.c: New file.
10604 * guile/scm-utils.c: New file.
10605 * guile/scm-value.c: New file.
10606 * guile/lib/gdb.scm: New file.
10607 * guile/lib/gdb/boot.scm: New file.
10608 * guile/lib/gdb/experimental.scm: New file.
10609 * guile/lib/gdb/init.scm: New file.
10610 * guile/lib/gdb/iterator.scm: New file.
10611 * guile/lib/gdb/printing.scm: New file.
10612 * guile/lib/gdb/types.scm: New file.
10613 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10614 (VPATH): Add $(GUILE_SRCDIR).
10615 (GUILE_DIR): New variable.
10616 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10617 (all): Add stamp-guile dependency.
10618 (stamp-guile): New rule.
10619 (clean-guile, install-guile, uninstall-guile): New rules.
10620 (install-only): Add install-guile dependency.
10621 (uninstall): Add uninstall-guile dependency.
10622 (clean): Add clean-guile dependency.
10623
10624 2014-02-09 Doug Evans <xdje42@gmail.com>
10625
10626 Revert this patch (which I approved, mea culpa).
10627
10628 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10629
10630 * Makefile.in (all-lib): Remove.
10631 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10632
10633 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10634
10635 Fix Python stack corruption.
10636 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10637 gdb_py_longest.
10638
10639 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10640
10641 * Makefile.in (all-lib): Remove.
10642 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10643
10644 2014-02-07 Doug Evans <dje@google.com>
10645
10646 * extension-priv.h (extension_language_script_ops): Add comment.
10647 (extension_language_ops): Add comment.
10648 (active_ext_lang_state): Fix typo in comment.
10649
10650 2014-02-07 Pedro Alves <palves@redhat.com>
10651
10652 PR breakpoints/16292
10653 * infrun.c (handle_signal_stop) <signal arrives while stepping
10654 over a breakpoint>: Switch back to the stepping thread.
10655
10656 2014-02-07 Yao Qi <yao@codesourcery.com>
10657
10658 * target.c (target_xfer_partial): Return zero if LEN is zero.
10659
10660 2014-02-07 Yao Qi <yao@codesourcery.com>
10661
10662 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10663 (ld_so_xfer_auxv): Likewise.
10664 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10665 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10666 * corelow.c (core_xfer_partial): Likewise.
10667 * ctf.c (ctf_xfer_partial): Likewise.
10668 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10669 (darwin_xfer_partial): Likewise.
10670 * exec.c (exec_xfer_partial): Likewise.
10671 * gnu-nat.c (gnu_xfer_partial): Likewise.
10672 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10673 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10674 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10675 * linux-nat.c (linux_xfer_siginfo): Likewise.
10676 (linux_proc_xfer_spu): Likewise.
10677 * procfs.c (procfs_xfer_partial): Likewise.
10678 * record-full.c (record_full_xfer_partial): Likewise.
10679 (record_full_core_xfer_partial): Likewise.
10680 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10681 * remote.c (remote_write_qxfer): Likewise.
10682 (remote_write_qxfer, remote_read_qxfer): Likewise.
10683 (remote_xfer_partial): Likewise.
10684 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10685 (rs6000_xfer_shared_libraries): Likewise.
10686 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10687 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10688 (spu_xfer_partial): Likewise.
10689 * target.c (memory_xfer_partial_1): Likewise.
10690 * tracepoint.c (tfile_xfer_partial): Likewise.
10691 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10692 (windows_xfer_partial): Likewise.
10693
10694 2014-02-07 Yao Qi <yao@codesourcery.com>
10695
10696 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10697 comments.
10698 (core_xfer_shared_libraries_aix): Likewise.
10699 * gdbarch.c, gdbarch.h: Regenerated.
10700 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10701 ULONGEST. Change 'len_avail' type to ULONGEST.
10702 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10703 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10704 declaration.
10705 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10706
10707 2014-02-07 Yao Qi <yao@codesourcery.com>
10708
10709 * corefile.c (memory_error): Get 'exception' from ERR and pass
10710 'exception' to throw_error.
10711
10712 2014-02-06 Doug Evans <xdje42@gmail.com>
10713
10714 * configure.ac (libpython checking): Remove all but python.o from
10715 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10716 * configure: Regenerate.
10717
10718 * Makefile.in (SFILES): Add extension.c.
10719 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10720 (COMMON_OBS): Add extension.o.
10721 * extension.h: New file.
10722 * extension-priv.h: New file.
10723 * extension.c: New file.
10724
10725 * python/python-internal.h: #include "extension.h".
10726 (gdbpy_auto_load_enabled): Declare.
10727 (gdbpy_apply_val_pretty_printer): Declare.
10728 (gdbpy_apply_frame_filter): Declare.
10729 (gdbpy_preserve_values): Declare.
10730 (gdbpy_breakpoint_cond_says_stop): Declare.
10731 (gdbpy_breakpoint_has_cond): Declare.
10732 (void source_python_script_for_objfile): Delete.
10733 * python/python.c: #include "extension-priv.h".
10734 Delete inclusion of "observer.h".
10735 (extension_language_python): Moved here and renamed from
10736 script_language_python in py-auto-load.c.
10737 Redefined to be of type extension_language_defn.
10738 (python_extension_script_ops): New global.
10739 (python_extension_ops): New global.
10740 (struct python_env): New member previous_active.
10741 (restore_python_env): Call restore_active_ext_lang.
10742 (ensure_python_env): Call set_active_ext_lang.
10743 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10744 New arg extlang.
10745 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10746 New arg extlang.
10747 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10748 New arg extlang.
10749 (gdbpy_eval_from_control_command): Renamed from
10750 eval_python_from_control_command, made static. New arg extlang.
10751 (gdbpy_source_script) Renamed from source_python_script, made static.
10752 New arg extlang.
10753 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10754 result to int. New arg extlang.
10755 (gdbpy_source_objfile_script): Renamed from
10756 source_python_script_for_objfile, made static. New arg extlang.
10757 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10758 static. New args extlang, extlang_printers. Change result type to
10759 "void".
10760 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10761 static. New arg extlang. Rename arg printers to extlang_printers
10762 and change type to ext_lang_type_printers *.
10763 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10764 static. Replace argument arg with extlang, extlang_printers.
10765 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10766 (!HAVE_PYTHON, source_python_script): Delete.
10767 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10768 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10769 (!HAVE_PYTHON, start_type_printers): Delete.
10770 (!HAVE_PYTHON, apply_type_printers): Delete.
10771 (!HAVE_PYTHON, free_type_printers): Delete.
10772 (_initialize_python): Delete call to observer_attach_before_prompt.
10773 (finalize_python): Set/restore active extension language.
10774 (gdbpy_finish_initialization) Renamed from
10775 finish_python_initialization, made static. New arg extlang.
10776 (gdbpy_initialized): New function.
10777 * python/python.h: #include "extension.h". Delete #include
10778 "value.h", "mi/mi-cmds.h".
10779 (extension_language_python): Declare.
10780 (GDBPY_AUTO_FILE_NAME): Delete.
10781 (enum py_bt_status): Moved to extension.h and renamed to
10782 ext_lang_bt_status.
10783 (enum frame_filter_flags): Moved to extension.h.
10784 (enum py_frame_args): Moved to extension.h and renamed to
10785 ext_lang_frame_args.
10786 (finish_python_initialization): Delete.
10787 (eval_python_from_control_command): Delete.
10788 (source_python_script): Delete.
10789 (apply_val_pretty_printer): Delete.
10790 (apply_frame_filter): Delete.
10791 (preserve_python_values): Delete.
10792 (gdbpy_script_language_defn): Delete.
10793 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10794 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10795
10796 * auto-load.c: #include "extension.h".
10797 (GDB_AUTO_FILE_NAME): Delete.
10798 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10799 (script_language_gdb): Delete, moved to extension.c and renamed to
10800 extension_language_gdb.
10801 (source_gdb_script_for_objfile): Delete.
10802 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10803 (loaded_script): Change type of language member to
10804 struct extension_language_defn *.
10805 (init_loaded_scripts_info): Initialize
10806 unsupported_script_warning_printed.
10807 (maybe_add_script): Make static. Change type of language arg to
10808 struct extension_language_defn *.
10809 (clear_section_scripts): Reset unsupported_script_warning_printed.
10810 (auto_load_objfile_script_1): Rewrite to use extension language API.
10811 (auto_load_objfile_script): Make public. Remove support-compiled-in
10812 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10813 (source_section_scripts): Rewrite to use extension language API.
10814 (load_auto_scripts_for_objfile): Rewrite to use
10815 auto_load_scripts_for_objfile.
10816 (collect_matching_scripts_data): Change type of language member to
10817 struct extension_language_defn *.
10818 (auto_load_info_scripts): Change type of language arg to
10819 struct extension_language_defn *.
10820 (unsupported_script_warning_print): New function.
10821 (script_not_found_warning_print): Make static.
10822 (_initialize_auto_load): Rewrite construction of scripts-directory
10823 help.
10824 * auto-load.h (struct objfile): Add forward decl.
10825 (struct script_language): Delete.
10826 (struct auto_load_pspace_info): Add forward decl.
10827 (struct extension_language_defn): Add forward decl.
10828 (maybe_add_script): Delete.
10829 (auto_load_objfile_script): Declare.
10830 (script_not_found_warning_print): Delete.
10831 (auto_load_info_scripts): Update prototype.
10832 (auto_load_gdb_scripts_enabled): Declare.
10833 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10834 auto_load_python_scripts_enabled and made public.
10835 (script_language_python): Delete, moved to python.c.
10836 (gdbpy_script_language_defn): Delete.
10837 (info_auto_load_python_scripts): Update to use
10838 extension_language_python.
10839
10840 * breakpoint.c (condition_command): Replace call to
10841 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10842 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10843 with call to breakpoint_ext_lang_cond_says_stop.
10844 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10845 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10846 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10847 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10848 New arg slang.
10849 (local_setattro): Print name of extension language with existing
10850 stop condition.
10851
10852 * valprint.c (val_print, value_print): Update to call
10853 apply_ext_lang_val_pretty_printer.
10854 * cp-valprint.c (cp_print_value): Update call to
10855 apply_ext_lang_val_pretty_printer.
10856 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10857 (gdbpy_apply_val_pretty_printer): Renamed from
10858 apply_val_pretty_printer. New arg extlang.
10859 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10860
10861 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10862 extension language API.
10863 * cli/cli-script.c (execute_control_command): Update to call
10864 eval_ext_lang_from_control_command.
10865
10866 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10867 enum ext_lang_bt_status values. Update call to
10868 apply_ext_lang_frame_filter.
10869 (mi_cmd_stack_list_locals): Ditto.
10870 (mi_cmd_stack_list_args): Ditto.
10871 (mi_cmd_stack_list_variables): Ditto.
10872 * mi/mi-main.c: Delete #include "python/python-internal.h".
10873 Add #include "extension.h".
10874 (mi_cmd_list_features): Replace reference to python internal variable
10875 gdb_python_initialized with call to ext_lang_initialized_p.
10876
10877 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10878 Update to use enum ext_lang_frame_args. Update to call
10879 apply_ext_lang_frame_filter.
10880 * python/py-framefilter.c (extract_sym): Update to use enum
10881 ext_lang_bt_status.
10882 (extract_value, py_print_type, py_print_value): Ditto.
10883 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10884 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10885 (py_print_frame): Ditto.
10886 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10887 New arg extlang. Update to use enum ext_lang_bt_status.
10888
10889 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10890 finish_python_initialization. Replace with call to
10891 finish_ext_lang_initialization.
10892
10893 * typeprint.c (do_free_global_table): Update to call
10894 free_ext_lang_type_printers.
10895 (create_global_typedef_table): Update to call
10896 start_ext_lang_type_printers.
10897 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10898 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10899 (type_print_options): Change type of global_printers from "void *"
10900 to "struct ext_lang_type_printers *".
10901
10902 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10903 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10904 (gdbpy_preserve_values): Renamed from preserve_python_values.
10905 New arg extlang.
10906 (!HAVE_PYTHON, preserve_python_values): Delete.
10907
10908 * utils.c (quit_flag): Delete, moved to extension.c.
10909 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10910 extension.c.
10911
10912 * eval.c: Delete #include "python/python.h".
10913 * main.c: Delete #include "python/python.h".
10914
10915 * defs.h: Update comment.
10916
10917 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10918
10919 GDB 7.7 released.
10920
10921 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10922
10923 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10924 defined.
10925
10926 2014-02-05 Yao Qi <yao@codesourcery.com>
10927
10928 * remote.c (remote_pass_signals): Remove local 'buf' and use
10929 rs->buf.
10930 (remote_program_signals): Likewise.
10931
10932 2014-02-05 Yao Qi <yao@codesourcery.com>
10933
10934 * ctf.c: Include "inferior.h" and "gdbthread.h".
10935 (CTF_PID): A new macro.
10936 (ctf_open): Call inferior_appeared and add_thread_silent.
10937 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10938 (ctf_thread_alive): New function.
10939 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10940
10941 2014-02-05 Yao Qi <yao@codesourcery.com>
10942
10943 Revert this patch:
10944
10945 2013-05-24 Yao Qi <yao@codesourcery.com>
10946
10947 * tracepoint.c (TFILE_PID): Remove.
10948 (tfile_open): Don't add thread and inferior.
10949 (tfile_close): Don't set 'inferior_ptid'. Don't call
10950 exit_inferior_silent.
10951 (tfile_thread_alive): Remove.
10952 (init_tfile_ops): Don't set field 'to_thread_alive' of
10953 tfile_ops.
10954
10955 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10956
10957 * remote.c (remote_start_remote): Call remote_check_symbols even
10958 if only symbol-file (not file) has been given.
10959
10960 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10961
10962 * gdbarch.sh (skip_entrypoint): New callback.
10963 * gdbarch.c, gdbarch.h: Regenerate.
10964 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10965 * infrun.c (fill_in_stop_func): Likewise.
10966 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10967 (ppc_elfv2_elf_make_msymbol_special): New function.
10968 (ppc_elfv2_skip_entrypoint): Likewise.
10969 (ppc_linux_init_abi): Install them for ELFv2.
10970
10971 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10972
10973 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10974 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10975 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10976 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10977 structures returned in GPRs.
10978
10979 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10980
10981 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10982 offset to the stack parameter list for the ELFv2 ABI.
10983
10984 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10985
10986 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10987 set_gdbarch_convert_from_func_ptr_addr and
10988 set_gdbarch_elf_make_msymbol_special for ELFv1.
10989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10990 function descriptors on ELFv1.
10991 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10992 set up r12 at function entry.
10993
10994 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10995
10996 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10997 (struct gdbarch_tdep): New member elf_abi.
10998
10999 * rs6000-tdep.c: Include "elf/ppc64.h".
11000 (rs6000_gdbarch_init): Detect ELF ABI version.
11001
11002 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11003
11004 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11005 within a register pair holding a DFP 128-bit value on little-endian.
11006 (ppc64_sysv_abi_return_value_base): Likewise.
11007 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11008 (dfp_pseudo_register_write): Likewise.
11009
11010 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11011
11012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11013 offset on little-endian when passing _Decimal32.
11014 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11015
11016 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11017
11018 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11019 of the overlapped FP register within the VSX register on little-
11020 endian platforms.
11021 (efpr_pseudo_register_write): Likewise.
11022
11023 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11024
11025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11026 offset on little-endian when passing small structures.
11027
11028 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11029
11030 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11031 (struct ppc64_sysv_argpos): New data structure.
11032 (ppc64_sysv_abi_push_float): Remove.
11033 (ppc64_sysv_abi_push_val): New function.
11034 (ppc64_sysv_abi_push_integer): Likewise.
11035 (ppc64_sysv_abi_push_freg): Likewise.
11036 (ppc64_sysv_abi_push_vreg): Likewise.
11037 (ppc64_sysv_abi_push_param): Likewise.
11038 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11039 (ppc64_sysv_abi_return_value_base): New function.
11040 (ppc64_sysv_abi_return_value): Refactor to use it.
11041
11042 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11043
11044 * NEWS: Document new target powerpc64le-*-linux*.
11045
11046 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11047
11048 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11049 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11050 core dumps.
11051 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11052 register set used in ELF core dumps. Add floating-point register set.
11053
11054 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11055
11056 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11057 dwarf2_to_gdb[] table using symbolic constants. Adjust
11058 penultimate entry from number representing the PC register
11059 to symbolic constant representing the MDR register. Add
11060 constant for the PC register to the end of the table.
11061
11062 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11063
11064 * bsd-kvm.c: Include <sys/param.h>
11065
11066 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11067
11068 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11069
11070 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11071
11072 * ada-lang.h (clear_ada_sym_cache): Delete.
11073
11074 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11075
11076 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11077
11078 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11079
11080 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11081 the sigreturn register save area only if the syscall is
11082 sigreturn.
11083
11084 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11085
11086 * valops.c (value_slice): Minor reformatting.
11087
11088 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11089
11090 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11091
11092 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11093
11094 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11095 New static globals.
11096 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11097 (ada_ignore_descriptive_types_p): New static global.
11098 (find_parallel_type_by_descriptive_type): Return immediately
11099 if ada_ignore_descriptive_types_p is set.
11100 (_initialize_ada_language): Register new commands "maintenance
11101 set ada", "maintenance show ada", "maintenance set ada
11102 ignore-descriptive-types" and "maintenance show ada
11103 ignore-descriptive-types".
11104 * NEWS: Add entry for new "maint ada set/show
11105 ignore-descriptive-types" commands.
11106
11107 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11108
11109 * record-btrace.c (record_btrace_close): Call btrace_teardown
11110 for all threads.
11111
11112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11113
11114 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11115 "ui-out.h".
11116
11117 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11118
11119 * ada-typeprint (type_is_full_subrange_of_target_type):
11120 New function.
11121 (print_range): Add parameter bounds_prefered_p. If not set,
11122 try printing range types using the name of their base type.
11123 (print_range_type): Add parameter bounds_prefered_p.
11124 Use it in call to print_range.
11125 (print_array_type, ada_print_type): Update calls to print_range
11126 and print_range_type.
11127
11128 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11129
11130 * ada-typeprint.c (print_array_type, print_choices, print_range)
11131 (print_range_bound, print_dynamic_range_bound, print_range_type):
11132 Remove declaration.
11133
11134 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11135
11136 * ada-typeprint.c (print_range): Add missing empty line
11137 after local declaration.
11138
11139 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11140
11141 * ada-valprint.c (print_optional_low_bound): Get index_type's
11142 target type for as long as it is a TYPE_CODE_RANGE.
11143
11144 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11145
11146 * procfs.c (procfs_make_note_section): Remove assertion and
11147 associated comment.
11148
11149 2014-01-24 Yao Qi <yao@codesourcery.com>
11150
11151 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11152 * corelow.c (get_core_siginfo): Likewise.
11153
11154 2014-01-24 Yao Qi <yao@codesourcery.com>
11155
11156 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11157 ULONGEST. Don't check 'len' is negative.
11158 (remote_write_bytes): Change type of 'len' to ULONGEST.
11159
11160 2014-01-23 Tom Tromey <tromey@redhat.com>
11161
11162 PR python/16485:
11163 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11164 Handle exception from frame.block.
11165 (FrameVars.fetch_frame_locals): Likewise.
11166
11167 2014-01-23 Tom Tromey <tromey@redhat.com>
11168
11169 PR python/16487:
11170 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11171 on a NULL pointer. Move "goto error" to correct place.
11172
11173 2014-01-23 Tom Tromey <tromey@redhat.com>
11174
11175 PR python/16491:
11176 * python/py-framefilter.c (apply_frame_filter): Call
11177 ensure_python_env after computing gdbarch.
11178
11179 2014-01-23 Yao Qi <yao@codesourcery.com>
11180
11181 * target.c (raw_memory_xfer_partial): Change argument type
11182 from void * to gdb_byte *.
11183 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11184
11185 2014-01-22 Doug Evans <dje@google.com>
11186
11187 New gdbserver option --debug-format=timestamp.
11188 * NEWS: Mention it.
11189
11190 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11191
11192 * syscalls/s390x-linux.xml: New file.
11193 * syscalls/s390-linux.xml: New file.
11194 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11195 (XML_SYSCALL_FILENAME_S390X): Likewise.
11196 (op_svc): New enum value for SVC opcode.
11197 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11198 (s390_linux_get_syscall_number): New function.
11199 (s390_gdbarch_init): Register '*get_syscall_number' and the
11200 syscall xml file name.
11201 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11202 "s390-linux.xml" and "s390x-linux.xml".
11203 * NEWS: Announce new feature.
11204
11205 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11206
11207 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11208
11209 2014-01-22 Pedro Alves <palves@redhat.com>
11210
11211 * xtensa-config.c: Include defs.h.
11212
11213 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11214
11215 * common/common-utils.h: Add "ARI:" comment beside __func__
11216 reference.
11217
11218 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11219
11220 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11221 documentation a bit.
11222
11223 2014-01-21 Roland McGrath <mcgrathr@google.com>
11224
11225 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11226 * configure: Regenerate.
11227 * aclocal.m4: Regenerate.
11228 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11229 New substituted variables.
11230 (install-strip): New target.
11231 (INSTALL_SCRIPT): New substituted variable.
11232 (FLAGS_TO_PASS): Add it.
11233 (install-only): Use $(INSTALL_SCRIPT) rather than
11234 $(INSTALL_PROGRAM) for gcore.
11235
11236 2014-01-20 Tom Tromey <tromey@redhat.com>
11237
11238 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11239 together.
11240
11241 2014-01-20 Tom Tromey <tromey@redhat.com>
11242
11243 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11244 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11245 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11246 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11247 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11248 (struct cmd_list_element) <flags>: Remove.
11249 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11250 doc_allocated>: New fields.
11251 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11252 bitfields.
11253 * maint.c (maintenance_do_deprecate): Update.
11254 * top.c (execute_command): Update.
11255
11256 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11257
11258 * xtensa-linux-nat.c: Include asm/ptrace.h.
11259
11260 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11261
11262 * Makefile.in (SFILES): Add d-support.c.
11263 (COMMON_OBS): Add d-support.o.
11264 * d-lang.h (d_parse_symbol): Add comment, now defined in
11265 d-support.c.
11266 * d-lang.c (parse_call_convention)
11267 (parse_attributes, parse_function_types)
11268 (parse_function_args, parse_type, parse_identifier)
11269 (call_convention_p, d_parse_symbol): Move functions to ...
11270 * d-support.c: ... New file.
11271
11272 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11273
11274 * d-lang.h (d_parse_symbol): Add declaration.
11275 * d-lang.c (extract_identifiers)
11276 (extract_type_info): Remove functions.
11277 (parse_call_convention, parse_attributes)
11278 (parse_function_types, parse_function_args)
11279 (parse_type, parse_identifier, call_convention_p)
11280 (d_parse_symbol): New functions.
11281 (d_demangle): Use d_parse_symbol to demangle D symbols.
11282
11283 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11284
11285 * d-lang.h (struct builtin_d_type): New data type.
11286 (builtin_d_type): Add declaration.
11287 * d-lang.c (d_language_arch_info, build_d_types)
11288 (builtin_d_type): New functions.
11289 (enum d_primitive_types): New data type.
11290 (d_language_defn): Change c_language_arch_info to
11291 d_language_arch_info.
11292 (d_type_data): New static variable.
11293 (_initialize_d_language): Initialize d_type_data.
11294
11295 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11296
11297 * d-lang.h (d_main_name): Add declaration.
11298 * d-lang.c (d_main_name): New function.
11299 * symtab.c (find_main_name): Add call to d_main_name.
11300
11301 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11302
11303 * d-lang.c (d_language_defn): Change macro_expansion_c to
11304 macro_expansion_no.
11305
11306 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11307
11308 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11309
11310 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11311
11312 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11313 gdb_exception" declaration.
11314 * remote.c (getpkt_or_notif_sane): Likewise.
11315
11316 2014-01-17 Doug Evans <dje@google.com>
11317
11318 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11319 function, contents of dirnames_to_char_ptr_vec_append moved here.
11320 (delim_string_to_char_ptr_vec): New function.
11321 (dirnames_to_char_ptr_vec_append): Rewrite.
11322 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11323
11324 2014-01-17 Doug Evans <dje@google.com>
11325
11326 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11327 and moved here ...
11328 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11329 #include "common-utils.h".
11330 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11331 * common/vec.h (VEC_ASSERT_PASS): Update.
11332 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11333 (MACH_CHECK_ERROR): Update.
11334
11335 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11336
11337 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11338 comments.
11339 * gdbarch.h: Regenerate.
11340
11341 2014-01-16 Tom Tromey <tromey@redhat.com>
11342
11343 * value.c (struct value) <regnum>: Move earlier.
11344
11345 2014-01-16 Tom Tromey <tromey@redhat.com>
11346
11347 * remote.c (extended_remote_create_inferior): Rename from
11348 extended_remote_create_inferior_1. Add "ops" argument. Remove
11349 old implementation.
11350
11351 2014-01-16 Pedro Alves <palves@redhat.com>
11352
11353 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11354 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11355 the backchain.
11356
11357 2014-01-16 Doug Evans <dje@google.com>
11358
11359 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11360
11361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11362
11363 * btrace.h (btrace_thread_flag): New.
11364 (struct btrace_thread_info) <flags>: New.
11365 * record-btrace.c (record_btrace_resume_thread)
11366 (record_btrace_find_thread_to_move, btrace_step_no_history)
11367 (btrace_step_stopped, record_btrace_start_replaying)
11368 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11369 (record_btrace_find_resume_thread): New.
11370 (record_btrace_resume, record_btrace_wait): Extend.
11371 (record_btrace_can_execute_reverse): New.
11372 (record_btrace_open): Fail in non-stop mode.
11373 (record_btrace_set_replay): Split into this, ...
11374 (record_btrace_stop_replaying): ... this, ...
11375 (record_btrace_clear_histories): ... and this.
11376 (init_record_btrace_ops): Init to_can_execute_reverse.
11377 * NEWS: Announce it.
11378
11379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11380
11381 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11382 (forward_target_decr_pc_after_break)
11383 (target_decr_pc_after_break): New.
11384 * target.c (forward_target_decr_pc_after_break)
11385 (target_decr_pc_after_break): New.
11386 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11387 instead of gdbarch_decr_pc_after_break.
11388 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11389 instead of gdbarch_decr_pc_after_break.
11390 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11391 instead of gdbarch_decr_pc_after_break.
11392 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11393 instead of gdbarch_decr_pc_after_break.
11394 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11395 instead of gdbarch_decr_pc_after_break.
11396 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11397 instead of gdbarch_decr_pc_after_break.
11398
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400
11401 * btrace.c: Include regcache.h.
11402 (btrace_add_pc): New.
11403 (btrace_enable): Call btrace_add_pc.
11404 (btrace_is_empty): New.
11405 * btrace.h (btrace_is_empty): New.
11406 * record-btrace.c (require_btrace, record_btrace_info): Call
11407 btrace_is_empty.
11408
11409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11412 Support delta reads.
11413 (linux_disable_btrace): Change return type.
11414 * common/linux-btrace.h (linux_read_btrace): Change parameters
11415 and return type to allow error reporting. Update users.
11416 (linux_disable_btrace): Change return type. Update users.
11417 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11418 New.
11419 (btrace_error): New.
11420 (btrace_block) <begin>: Comment on BEGIN == 0.
11421 * btrace.c (btrace_compute_ftrace): Start from the end of
11422 the current trace.
11423 (btrace_stitch_trace, btrace_clear_history): New.
11424 (btrace_fetch): Read delta trace, return if replaying.
11425 (btrace_clear): Move clear history code to btrace_clear_history.
11426 (parse_xml_btrace): Throw an error if parsing failed.
11427 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11428 and return type to allow error reporting.
11429 (target_read_btrace): Change parameters and return type to allow
11430 error reporting.
11431 * target.c (target_read_btrace): Update.
11432 * remote.c (remote_read_btrace): Support delta reads. Pass
11433 errors on.
11434 * NEWS: Announce it.
11435
11436 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11437
11438 * record.h (record_btrace_frame_unwind)
11439 (record_btrace_tailcall_frame_unwind): New declarations.
11440 * dwarf2-frame: Include record.h
11441 (dwarf2_frame_cfa): Throw an error for btrace frames.
11442 * record-btrace.c: Include hashtab.h.
11443 (btrace_get_bfun_name): New.
11444 (btrace_call_history): Call btrace_get_bfun_name.
11445 (struct btrace_frame_cache): New.
11446 (bfcache): New.
11447 (bfcache_hash, bfcache_eq, bfcache_new): New.
11448 (btrace_get_frame_function): New.
11449 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11450 (record_btrace_frame_this_id): Compute own id.
11451 (record_btrace_frame_prev_register): Provide PC, throw_error
11452 for all other registers.
11453 (record_btrace_frame_sniffer): Detect btrace frames.
11454 (record_btrace_tailcall_frame_sniffer): New.
11455 (record_btrace_frame_dealloc_cache): New.
11456 (record_btrace_frame_unwind): Add new functions.
11457 (record_btrace_tailcall_frame_unwind): New.
11458 (_initialize_record_btrace): Allocate cache.
11459 * btrace.c (btrace_clear): Call reinit_frame_cache.
11460 * NEWS: Announce it.
11461
11462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11463
11464 * record-btrace.c (record_btrace_set_replay)
11465 (record_btrace_goto_begin, record_btrace_goto_end)
11466 (record_btrace_goto): New.
11467 (init_record_btrace_ops): Initialize them.
11468 * NEWS: Announce it.
11469
11470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * record-btrace.c (record_btrace_find_new_threads)
11473 (record_btrace_thread_alive): New.
11474 (init_record_btrace_ops): Initialize to_find_new_threads and
11475 to_thread_alive.
11476
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11478
11479 * record-btrace.c (record_btrace_resume): New.
11480 (record_btrace_wait): New.
11481 (init_record_btrace_ops): Initialize to_wait and to_resume.
11482
11483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11484
11485 * record-btrace.c (record_btrace_xfer_partial)
11486 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11487 (record_btrace_allow_memory_access): New.
11488 (init_record_btrace_ops): Initialize new methods.
11489 * target.c (raw_memory_xfer_partial): Bail out if target reports
11490 that this memory is not available.
11491
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * target.h (target_ops) <to_insert_breakpoint>
11495 <to_remove_breakpoint>: Add target_ops parameter.
11496 (forward_target_insert_breakpoint): New.
11497 (forward_target_remove_breakpoint): New.
11498 (memory_remove_breakpoint, memory_insert_breakpoint):
11499 Add target_ops parameter.
11500 * target.c (target_insert_breakpoint): Split into this and ...
11501 (forward_target_insert_breakpoint): ... this.
11502 (target_remove_breakpoint): Split into this and ...
11503 (forward_target_remove_breakpoint): ... this.
11504 (debug_to_insert_breakpoint): Add target_ops parameter.
11505 Call forward_target_insert_breakpoint.
11506 (debug_to_remove_breakpoint): Add target_ops parameter.
11507 Call forward_target_remove_breakpoint.
11508 (update_current_target): Do not inherit or default to_insert_breakpoint
11509 and to_remove_breakpoint.
11510 * corelow.c (ignore): Add target_ops parameter.
11511 * exec.c (ignore): Add target_ops parameter.
11512 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11513 Add target_ops parameter.
11514 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11515 Add target_ops parameter.
11516 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11517 Add target_ops parameter.
11518 * record-full.c (record_full_beneath_to_insert_breakpoint)
11519 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11520 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11521 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11522 (record_full_core_remove_breakpoint): Add target_ops parameter.
11523 Update users.
11524 (record_full_beneath_to_insert_breakpoint_ops)
11525 (record_full_beneath_to_remove_breakpoint_ops)
11526 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11527 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11528 tmp_to_remove_breakpoint_ops,
11529 record_full_beneath_to_insert_breakpoint_ops, and
11530 record_full_beneath_to_remove_breakpoint_ops.
11531 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11532 (m32r_remove_breakpoint): Add target_ops parameter.
11533 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11534 Add target_ops parameter.
11535 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11536 Add target_ops parameter.
11537
11538 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11539 Markus Metzger <markus.t.metzger@intel.com>
11540
11541 * record-btrace.c: Include frame-unwind.h.
11542 (record_btrace_frame_unwind_stop_reason)
11543 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11544 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11545 New.
11546 (init_record_btrace_ops): Install it.
11547
11548 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11549
11550 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11551 get_prev_frame_1.
11552
11553 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11554
11555 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11556 earlier.
11557
11558 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11559
11560 * frame-unwind.c: Include target.h.
11561 (frame_unwind_try_unwinder): New function with code from ...
11562 (frame_unwind_find_by_frame): ... here. New variable
11563 unwinder_from_target, call also target_get_unwinder)
11564 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11565 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11566 * target.h (struct target_ops): New fields to_get_unwinder and
11567 to_get_tailcall_unwinder.
11568 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11569
11570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11571
11572 * record-btrace.c (record_btrace_fetch_registers)
11573 (record_btrace_store_registers)
11574 (record_btrace_to_prepare_to_store): New.
11575 (init_record_btrace_ops): Add the above.
11576
11577 2014-01-16 Tom Tromey <tromey@redhat.com>
11578
11579 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11580 * target.h (struct target_ops) <to_prepare_to_store>: Add
11581 argument.
11582 (target_prepare_to_store): Add argument.
11583 * target.c (debug_to_prepare_to_store): Add argument.
11584 (update_current_target): Update.
11585 * remote.c (remote_prepare_to_store): Add 'self' argument.
11586 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11587 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11588 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11589 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11590 argument.
11591 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11592 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11593 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11594 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11595 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11596
11597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11598
11599 * btrace.h (replay) <replay>: New.
11600 (btrace_is_replaying): New.
11601 * btrace.c (btrace_clear): Free replay iterator.
11602 (btrace_is_replaying): New.
11603 * record-btrace.c (record_btrace_is_replaying): New.
11604 (record_btrace_info): Print insn number if replaying.
11605 (record_btrace_insn_history): Start at replay position.
11606 (record_btrace_call_history): Start at replay position.
11607 (init_record_btrace_ops): Init to_record_is_replaying.
11608
11609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11610
11611 * record-btrace.c (record_btrace_insn_history_range): Include
11612 end.
11613 (record_btrace_insn_history_from): Adjust range.
11614 (record_btrace_call_history_range): Include
11615 end.
11616 (record_btrace_call_history_from): Adjust range.
11617 * NEWS: Announce changes.
11618
11619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11620
11621 * record.h (enum record_print_flag)
11622 <record_print_indent_calls>: New.
11623 * record.c (get_call_history_modifiers): Recognize /c modifier.
11624 (_initialize_record): Document /c modifier.
11625 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11626 Reorder fields. Optionally indent the function name. Update
11627 all users.
11628 * NEWS: Announce changes.
11629
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11633
11634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11635
11636 * btrace.c (ftrace_new_function): Start counting at one.
11637 * record-btrace.c (record_btrace_info): Adjust number of calls
11638 and insns.
11639 * NEWS: Announce it.
11640
11641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11642
11643 * record-btrace.c (btrace_call_history_insn_range): Print
11644 insn range as [begin, end].
11645
11646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11647
11648 * btrace.h (struct btrace_func_link): New.
11649 (enum btrace_function_flag): New.
11650 (struct btrace_inst): Rename to ...
11651 (struct btrace_insn): ...this. Update all users.
11652 (struct btrace_func) <ibegin, iend>: Remove.
11653 (struct btrace_func_link): New.
11654 (struct btrace_func): Rename to ...
11655 (struct btrace_function): ...this. Update all users.
11656 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11657 (number, level, flags>: New.
11658 (struct btrace_insn_iterator): Rename to ...
11659 (struct btrace_insn_history): ...this.
11660 Update all users.
11661 (struct btrace_insn_iterator, btrace_call_iterator): New.
11662 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11663 (struct btrace_target_info) <begin, end, level>
11664 <insn_history, call_history>: New.
11665 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11666 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11667 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11668 (btrace_call_number, btrace_call_begin, btrace_call_end)
11669 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11670 (btrace_find_function_by_number, btrace_set_insn_history)
11671 (btrace_set_call_history): New.
11672 * btrace.c (btrace_init_insn_iterator)
11673 (btrace_init_func_iterator, compute_itrace): Remove.
11674 (ftrace_print_function_name, ftrace_print_filename)
11675 (ftrace_skip_file): Change
11676 parameter to const.
11677 (ftrace_init_func): Remove.
11678 (ftrace_debug): Use new btrace_function fields.
11679 (ftrace_function_switched): Also consider gaining and
11680 losing symbol information).
11681 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11682 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11683 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11684 New.
11685 (ftrace_new_function): Move. Remove debug print.
11686 (ftrace_update_lines, ftrace_update_insns): New.
11687 (ftrace_update_function): Check for call, ret, and jump.
11688 (compute_ftrace): Renamed to ...
11689 (btrace_compute_ftrace): ...this. Rewritten to compute call
11690 stack.
11691 (btrace_fetch, btrace_clear): Updated.
11692 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11693 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11694 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11695 (btrace_call_number, btrace_call_begin, btrace_call_end)
11696 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11697 (btrace_find_function_by_number, btrace_set_insn_history)
11698 (btrace_set_call_history): New.
11699 * record-btrace.c (require_btrace): Use new btrace thread
11700 info fields.
11701 (record_btrace_info, btrace_insn_history)
11702 (record_btrace_insn_history, record_btrace_insn_history_range):
11703 Use new btrace thread info fields and new iterator.
11704 (btrace_func_history_src_line): Rename to ...
11705 (btrace_call_history_src_line): ...this. Use new btrace
11706 thread info fields.
11707 (btrace_func_history): Rename to ...
11708 (btrace_call_history): ...this. Use new btrace thread info
11709 fields and new iterator.
11710 (record_btrace_call_history, record_btrace_call_history_range):
11711 Use new btrace thread info fields and new iterator.
11712
11713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11714
11715 * frame.h (frame_id_build_unavailable_stack_special): New.
11716 * frame.c (frame_id_build_unavailable_stack_special): New.
11717
11718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11719
11720 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11721 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11722 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11723 to gdbarch.
11724 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11725 (i386_insn_is_jump, i386_jmp_p): New.
11726 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11727 insn_is_jump to gdbarch.
11728 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11729 * gdbarch.h: Regenerated.
11730 * gdbarch.c: Regenerated.
11731 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11732 (default_insn_is_jump): New.
11733 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11734 (default_insn_is_jump): New.
11735
11736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11737
11738 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11739 Change to ...
11740 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11741 (btrace_read_type) <btrace_read_new>: Change to ...
11742 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11743
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * common/linux-btrace.c (linux_read_btrace): Free trace from
11747 previous iteration.
11748
11749 2014-01-15 Doug Evans <dje@google.com>
11750
11751 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11752 uint32_t.
11753
11754 2014-01-15 Tom Tromey <tromey@redhat.com>
11755
11756 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11757 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11758 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11759 (set_objfile_main_name): New function.
11760 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11761 language_of_main>: New fields.
11762 (set_objfile_main_name): Declare.
11763 * symtab.c (find_main_name): Loop over objfiles to find the main
11764 name and language.
11765 (set_main_name): Now static.
11766 (get_main_info): Add comment.
11767 * symtab.h (set_main_name): Don't declare.
11768
11769 2014-01-15 Tom Tromey <tromey@redhat.com>
11770
11771 * symtab.c (main_progspace_key): New global.
11772 (struct main_info): New.
11773 (name_of_main, language_of_main): Remove.
11774 (get_main_info, main_info_cleanup): New function.
11775 (set_main_name, main_name, main_language): Use get_main_info.
11776 (_initialize_symtab): Initialize main_progspace_key.
11777
11778 2014-01-15 Tom Tromey <tromey@redhat.com>
11779
11780 * dbxread.c (process_one_symbol): Update.
11781 * dwarf2read.c (read_partial_die): Update.
11782 * symfile.c (set_initial_language): Call main_language.
11783 * symtab.c (language_of_main): Now static.
11784 (set_main_name): Add 'lang' parameter.
11785 (find_main_name): Update.
11786 (main_language): New function.
11787 (symtab_observer_executable_changed): Update.
11788 * symtab.h (set_main_name): Update.
11789 (language_of_main): Remove.
11790 (main_language): Declare.
11791
11792 2014-01-15 Tom Tromey <tromey@redhat.com>
11793
11794 * symfile.c (init_entry_point_info): Use new "initialized" field.
11795 Update.
11796 * objfiles.h (struct entry_point) <initialized>: New field.
11797 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11798 (struct objfile) <ei>: ...here. Remove.
11799 * objfiles.c (entry_point_address_query): Update.
11800
11801 2014-01-15 Tom Tromey <tromey@redhat.com>
11802
11803 * objfiles.c (entry_point_address_query): Relocate entry point
11804 address.
11805 (objfile_relocate1): Do not relocate entry point address.
11806 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11807 <the_bfd_section_index>: New field.
11808 * symfile.c (init_entry_point_info): Find the entry point's
11809 section.
11810
11811 2014-01-15 Tom Tromey <tromey@redhat.com>
11812
11813 * solib-frv.c (enable_break): Use entry_point_address_query.
11814
11815 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11816
11817 * NEWS: Add note on improved process record-replay on
11818 arm*-linux* targets.
11819
11820 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11821
11822 * arm-tdep.c (enum arm_record_result): New enum.
11823 (arm_record_unsupported_insn): New function.
11824 (arm_record_coproc_data_proc): Removed.
11825 (thumb2_record_ld_st_multiple): New function.
11826 (thumb2_record_ld_st_dual_ex_tbb): New function.
11827 (thumb2_record_data_proc_sreg_mimm): New function.
11828 (thumb2_record_ps_dest_generic): New function.
11829 (thumb2_record_branch_misc_cntrl): New function.
11830 (thumb2_record_str_single_data): New function.
11831 (thumb2_record_ld_mem_hints): New function.
11832 (thumb2_record_ld_word): New function.
11833 (thumb2_record_lmul_lmla_div): New function.
11834 (thumb2_record_decode_insn_handler): New function.
11835 (decode_insn): Add thumb32 instruction handlers.
11836
11837 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11838
11839 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11840 (struct arm_linux_record_tdep): Declare.
11841 (arm_canonicalize_syscall): New function.
11842 (arm_all_but_pc_registers_record): New function.
11843 (arm_linux_syscall_record): New function.
11844 (arm_linux_init_abi): Add syscall recording constructs.
11845 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11846 decoding. (arm_record_coproc_data_proc): Update arm syscall
11847 decoding.
11848 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11849 <arm_syscall_record>: New field.
11850 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11851 gdb_target_obs.
11852
11853 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11854
11855 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11856 register for push instruction recording.
11857
11858 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11859
11860 * arm-tdep.c (thumb_record_misc): Update to correct logical
11861 error while recording ldm, ldmia and pop instructions.
11862
11863 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11864
11865 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11866
11867 2014-01-15 Pedro Alves <palves@redhat.com>
11868
11869 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11870 (go32_resume, go32_fetch_registers, store_register)
11871 (go32_store_registers, go32_prepare_to_store)
11872 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11873 (go32_create_inferior, go32_can_run, go32_terminal_init)
11874 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11875 declarations.
11876
11877 2014-01-15 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (async_callback_ftype): New typedef.
11880 (struct target_ops) <to_async>: Use it.
11881
11882 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11883
11884 * python/py-value.c (get_field_type): Remove unnecessary curly
11885 braces for single-statement if block.
11886
11887 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11888
11889 * python/py-type.c (convert_field): Add missing empty line
11890 after declarations.
11891
11892 2014-01-14 Doug Evans <dje@google.com>
11893
11894 * symfile.h (expand_symtabs_matching): Renamed from
11895 expand_partial_symbol_names. Update prototype.
11896 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11897 * symfile.c (expand_symtabs_matching): Renamed from
11898 expand_partial_symbol_names. New args file_matcher, kind.
11899 Rename arg fun to symbol_matcher.
11900 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11901 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11902 ada_expand_partial_symbol_name.
11903 (ada_make_symbol_completion_list): Update to call
11904 expand_symtabs_matching.
11905 (ada_add_global_exceptions): Call expand_symtabs_matching.
11906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11907 call map_symbol_filenames.
11908 * symtab.c (sources_info): Update to call map_symbol_filenames.
11909 (search_symbols): Call expand_symtabs_matching.
11910 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11911 (default_make_symbol_completion_list_break_on): Update to call
11912 expand_symtabs_matching.
11913 (make_source_files_completion_list): Update to call
11914 map_symbol_filenames.
11915
11916 2014-01-14 Doug Evans <dje@google.com>
11917
11918 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11919 (expand_symtabs_symbol_matcher_ftype): New typedef.
11920 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11921 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11922 * symfile.c (expand_partial_symbol_names): Update to use
11923 expand_symtabs_symbol_matcher_ftype.
11924 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11925 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11926 Arg name_matcher renamed to symbol_matcher.
11927 * psymtab.c (recursively_search_psymtabs): Update to use
11928 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11929 sym_matcher.
11930 (expand_symtabs_matching_via_partial): Update to use
11931 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11932 Arg name_matcher renamed to symbol_matcher.
11933
11934 2014-01-14 Doug Evans <dje@google.com>
11935
11936 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11937 (map_partial_symbol_filenames): Ditto.
11938 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11939 (map_partial_symbol_filenames): Ditto.
11940 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11941 (map_partial_symbol_filenames): Ditto.
11942 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11943 (map_partial_symbol_filenames): Ditto.
11944 * symtab.c: Delete #include "psymtab.h".
11945
11946 2014-01-14 Pedro Alves <palves@redhat.com>
11947 Tom Tromey <tromey@redhat.com>
11948
11949 * infrun.c (use_displaced_stepping): Use find_record_target
11950 instead of RECORD_IS_USED.
11951 (adjust_pc_after_break): Use record_full_is_used instead of
11952 RECORD_IS_USED.
11953 * record-btrace.c (record_btrace_open): Call record_preopen
11954 instead of checking RECORD_IS_USED.
11955 * record-full.c (record_full_shortname)
11956 (record_full_core_shortname): New globals.
11957 (record_full_is_used): New function.
11958 (find_full_open): Call record_preopen instead of checking
11959 RECORD_IS_USED.
11960 (init_record_full_ops): Set the target's shortname to
11961 record_full_shortname.
11962 (init_record_full_core_ops): Set the target's shortname to
11963 record_full_core_shortname.
11964 * record-full.h (record_full_is_used): Declare.
11965 * record.c (find_record_target): Make extern.
11966 (record_preopen): New function.
11967 * record.h (RECORD_IS_USED): Delete macro.
11968 (find_record_target, record_preopen): Declare functions.
11969
11970 2014-01-14 Yao Qi <yao@codesourcery.com>
11971
11972 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11973 'len''s type to ULONGEST.
11974 (core_xfer_shared_libraries_aix): Likewise.
11975 * gdbarch.c, gdbarch.h: Regenerated.
11976 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11977 Change type of 'len' to ULONGEST.
11978 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11979 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11980
11981 2014-01-14 Yao Qi <yao@codesourcery.com>
11982
11983 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11984 type of 'len' to ULONGEST.
11985 (linux_xfer_osdata_processgroups): Likewise.
11986 (linux_xfer_osdata_threads): Likewise.
11987 (linux_xfer_osdata_fds): Likewise.
11988 (linux_xfer_osdata_isockets): Likewise.
11989 (linux_xfer_osdata_shm): Likewise.
11990 (linux_xfer_osdata_sem): Likewise.
11991 (linux_xfer_osdata_msg): Likewise.
11992 (linux_common_xfer_osdata): Likewise.
11993 (struct osdata_type) <getter>: Likewise.
11994 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11995 the declaration.
11996
11997 2014-01-14 Yao Qi <yao@codesourcery.com>
11998
11999 * target.h (target_xfer_partial_ftype): Update.
12000 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12001 ULONGEST.
12002 * aix-thread.c (aix_thread_xfer_partial): Change type of
12003 argument 'len' to ULONGEST.
12004 * auxv.c (procfs_xfer_auxv): Likewise.
12005 (ld_so_xfer_auxv): Likewise.
12006 (memory_xfer_auxv): Likewise.
12007 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12008 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12009 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12010 * corelow.c (core_xfer_partial): Likewise.
12011 * ctf.c (ctf_xfer_partial): Likewise.
12012 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12013 '%u'.
12014 (darwin_read_dyld_info): Likewise.
12015 (darwin_xfer_partial): Likewise.
12016 * exec.c (section_table_xfer_memory_partial): Likewise.
12017 (exec_xfer_partial): Likewise.
12018 * exec.h (section_table_xfer_memory_partial): Update
12019 declaration.
12020 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12021 instead of plongest.
12022 (gnu_xfer_partial): Likewise.
12023 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12024 (ia64_hpux_xfer_solib_got): Likewise.
12025 (ia64_hpux_xfer_partial): Likewise.
12026 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12027 * inf-ptrace.c (inf_ptrace_xfer_partial):
12028 * inf-ttrace.c (inf_ttrace_xfer_partial):
12029 * linux-nat.c (linux_xfer_siginfo): Likewise.
12030 (linux_nat_xfer_partial): Likewise.
12031 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12032 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12033 * monitor.c (monitor_xfer_memory): Likewise.
12034 (monitor_xfer_partial): Likewise.
12035 * procfs.c (procfs_xfer_partial): Likewise.
12036 * record-full.c (record_full_xfer_partial): Likewise.
12037 (record_full_core_xfer_partial): Likewise.
12038 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12039 instead of plongest.
12040 (gdbsim_xfer_partial): Likewise.
12041 * remote.c (remote_xfer_partial): Likewise.
12042 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12043 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12044 declaration.
12045 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12046 (rs6000_xfer_shared_libraries): Likewise.
12047 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12048 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12049 (sparc_xfer_partial): Likewise.
12050 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12051 (spu_xfer_partial): Likewise.
12052 * spu-multiarch.c (spu_xfer_partial): Likewise.
12053 * target.c (target_read_live_memory): Likewise.
12054 (memory_xfer_live_readonly_partial): Likewise.
12055 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12056 (target_xfer_partial, default_xfer_partial): Likewise.
12057 (current_xfer_partial): Likewise.
12058 * tracepoint.c (tfile_xfer_partial): Likewise.
12059 * windows-nat.c (windows_xfer_memory): Likewise. Call
12060 pulongest instead of plongest.
12061 (windows_xfer_partial): Likewise.
12062 (windows_xfer_shared_libraries): Likewise.
12063
12064 2014-01-14 Yao Qi <yao@codesourcery.com>
12065
12066 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12067 target_xfer_partial_ftype.
12068
12069 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12070
12071 PR python/15464
12072 PR python/16113
12073 * valops.c (value_struct_elt_bitpos): New function
12074 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12075 object to 'None' if the field name is an empty string ("").
12076 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12077 attribute to look for a field when 'name' is 'None'.
12078 (get_field_type): New function
12079
12080 2014-01-13 Doug Evans <dje@google.com>
12081
12082 PR symtab/16426
12083 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12084 (try_open_dwop_file): Ditto.
12085 * gdb_bfd.c: #include "vec.h".
12086 (bfdp): New typedef.
12087 (struct gdb_bfd_data): New member included_bfds.
12088 (gdb_bfd_unref): Unref all included bfds.
12089 (gdb_bfd_record_inclusion): New function.
12090 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12091
12092 2014-01-13 Tom Tromey <tromey@redhat.com>
12093
12094 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12095
12096 2014-01-13 Tom Tromey <tromey@redhat.com>
12097
12098 * defs.h (use_windows): Remove.
12099 * gdb.c (main): Update.
12100 * main.c (captured_main, gdb_main): Update.
12101 * main.h (struct captured_main_args) <use_windows>: Remove.
12102 * top.c (use_windows): Remove.
12103
12104 2014-01-13 Tom Tromey <tromey@redhat.com>
12105
12106 * defs.h (deprecated_flush_hook): Remove.
12107
12108 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12109
12110 PR threads/16216
12111 * linux-thread-db.c (try_thread_db_load): Add parameter
12112 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12113 (try_thread_db_load_from_pdir_1): Move it there from here.
12114 (try_thread_db_load_from_sdir): Update caller.
12115 (try_thread_db_load_from_dir): Move it there from here.
12116
12117 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12118
12119 * regformats/regdat.sh: Always rewrite the register file.
12120
12121 2014-01-13 Pedro Alves <palves@redhat.com>
12122
12123 * Makefile.in (CHECK_HEADERS): New variable.
12124 (check-headers:): New rule.
12125
12126 2014-01-13 Tom Tromey <tromey@redhat.com>
12127
12128 * cli/cli-setshow.c (do_set_command): Update.
12129 * defs.h (deprecated_set_hook): Remove.
12130 * top.c (deprecated_set_hook): Remove.
12131
12132 2014-01-13 Pedro Alves <palves@redhat.com>
12133
12134 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12135 the tracepoint if the PC is a pseudo-register.
12136
12137 2014-01-13 Tom Tromey <tromey@redhat.com>
12138
12139 * defs.h (XCALLOC): Remove.
12140 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12141 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12142 * dwarf2loc.c (allocate_piece_closure): Likewise.
12143 * elfread.c (elf_symfile_segments): Likewise.
12144 (elf_symfile_segments): Likewise.
12145 * gdbtypes.c (copy_type_recursive): Likewise.
12146 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12147 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12148 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12149 XCALLOC.
12150 * mt-tdep.c (mt_gdbarch_init): Likewise.
12151 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12152 XCALLOC.
12153 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12154 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12155 * registry.c (registry_alloc_data): Likewise.
12156 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12157 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12158 * serial.c (serial_fdopen_ops): Likewise.
12159 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12160 XCALLOC.
12161 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12162 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12163 not XCALLOC.
12164
12165 2014-01-13 Tom Tromey <tromey@redhat.com>
12166
12167 * defs.h (XMALLOC): Remove.
12168 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12169 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12170 * cli-out.c (struct ui_out *): Likewise.
12171 * cli/cli-dump.c (add_dump_command): Likewise.
12172 (add_dump_command): Likewise.
12173 * complaints.c (get_complaints): Likewise.
12174 (find_complaint): Likewise.
12175 * dwarf2-frame.c (execute_cfa_program): Likewise.
12176 * dwarf2read.c (abbrev_table_read_table): Likewise.
12177 * gdbarch.sh: Likewise.
12178 * gdbarch.c: Rebuild.
12179 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12180 * interps.c (interp_new): Likewise.
12181 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12182 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12183 * mi/mi-console.c (mi_console_file_new): Likewise.
12184 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12185 * mi/mi-out.c (mi_out_new): Likewise.
12186 * mi/mi-parse.c (mi_parse): Likewise.
12187 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12188 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12189 * observer.c (xalloc_observer_list_node): Likewise.
12190 * regcache.c (regcache_xmalloc_1): Likewise.
12191 * reggroups.c (reggroup_new): Likewise.
12192 (_initialize_reggroup): Likewise.
12193 * registry.c (register_data_with_cleanup): Likewise.
12194 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12195 * ser-base.c (serial_ttystate): Likewise.
12196 * ser-mingw.c (make_pipe_state): Likewise.
12197 * ser-pipe.c (pipe_open): Likewise.
12198 * serial.c (serial_open): Likewise.
12199 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12200 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12201 (tui_alloc_win_info): Likewise.
12202 (tui_add_content_elements): Likewise.
12203 * tui/tui-file.c (tui_file_new): Likewise.
12204 * tui/tui-out.c (tui_out_new): Likewise.
12205 * ui-file.c (mem_file_new): Likewise.
12206 * ui-out.c (push_level): Likewise.
12207 (make_cleanup_ui_out_end): Likewise.
12208 (append_header_to_list): Likewise.
12209 (ui_out_new): Likewise.
12210 * user-regs.c (user_reg_add_builtin): Likewise.
12211
12212 2014-01-13 Tom Tromey <tromey@redhat.com>
12213
12214 * defs.h (XZALLOC): Remove.
12215 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12216 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12217 (get_ada_tasks_inferior_data): Likewise.
12218 * auto-load.c (get_auto_load_pspace_data): Likewise.
12219 * auxv.c (get_auxv_inferior_data): Likewise.
12220 * bfd-target.c (target_bfd_reopen): Likewise.
12221 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12222 (deprecated_insert_raw_breakpoint): Likewise.
12223 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12224 * corelow.c (core_open): Likewise.
12225 * darwin-nat.c (darwin_check_new_threads): Likewise.
12226 (darwin_attach_pid): Likewise.
12227 * dummy-frame.c (dummy_frame_push): Likewise.
12228 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12229 * dwarf2loc.c (allocate_piece_closure): Likewise.
12230 * elfread.c (elf_symfile_segments): Likewise.
12231 * eval.c (ptrmath_type_p): Likewise.
12232 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12233 * gdbtypes.c (alloc_type_arch): Likewise.
12234 (alloc_type_instance): Likewise.
12235 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12236 * inf-child.c (inf_child_can_use_agent): Likewise.
12237 * inflow.c (get_inflow_inferior_data): Likewise.
12238 * infrun.c (save_infcall_suspend_state): Likewise.
12239 * jit.c (jit_reader_load): Likewise.
12240 (get_jit_objfile_data): Likewise.
12241 (get_jit_program_space_data): Likewise.
12242 (jit_object_open_impl): Likewise.
12243 (jit_symtab_open_impl): Likewise.
12244 (jit_block_open_impl): Likewise.
12245 (jit_frame_sniffer): Likewise.
12246 * linux-fork.c (add_fork): Likewise.
12247 * maint.c (make_command_stats_cleanup): Likewise.
12248 * objfiles.c (get_objfile_pspace_data): Likewise.
12249 * opencl-lang.c (struct lval_closure): Likewise.
12250 * osdata.c (osdata_start_osdata): Likewise.
12251 * progspace.c (new_address_space): Likewise.
12252 (add_program_space): Likewise.
12253 * remote-sim.c (get_sim_inferior_data): Likewise.
12254 * sh-tdep.c (sh_gdbarch_init): Likewise.
12255 * skip.c (Ignore): Likewise.
12256 (skip_delete_command): Likewise.
12257 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12258 (library_list_start_library): Likewise.
12259 (solib_aix_current_sos): Likewise.
12260 * solib-darwin.c (get_darwin_info): Likewise.
12261 (darwin_current_sos): Likewise.
12262 * solib-dsbt.c (get_dsbt_info): Likewise.
12263 * solib-ia64-hpux.c (new_so_list): Likewise.
12264 (ia64_hpux_get_solib_linkage_addr): Likewise.
12265 * solib-spu.c (append_ocl_sos): Likewise.
12266 (spu_current_sos): Likewise.
12267 * solib-svr4.c (get_svr4_info): Likewise.
12268 (svr4_keep_data_in_core): Likewise.
12269 (library_list_start_library): Likewise.
12270 (svr4_default_sos): Likewise.
12271 (svr4_read_so_list): Likewise.
12272 * solib-target.c (library_list_start_library): Likewise.
12273 (solib_target_current_sos): Likewise.
12274 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12275 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12276 * symfile.c (default_symfile_segments): Likewise.
12277 * target-descriptions.c (tdesc_data_init): Likewise.
12278 (tdesc_create_reg): Likewise.
12279 (struct tdesc_type *): Likewise.
12280 (tdesc_create_vector): Likewise.
12281 (tdesc_set_struct_size): Likewise.
12282 (struct tdesc_type *): Likewise.
12283 (tdesc_free_feature): Likewise.
12284 (tdesc_create_feature): Likewise.
12285 * windows-nat.c (windows_add_thread): Likewise.
12286 (windows_make_so): Likewise.
12287 * xml-support.c (gdb_xml_body_text): Likewise.
12288 (gdb_xml_create_parser_and_cleanup): Likewise.
12289 (xml_process_xincludes): Likewise.
12290 * xml-syscall.c (allocate_syscalls_info): Likewise.
12291 (syscall_create_syscall_desc): Likewise.
12292
12293 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12294
12295 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12296 function, with code from i386_stap_parse_special_token.
12297 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12298 (i386_stap_parse_special_token): Move code to the two functions
12299 above; simplify it.
12300
12301 2014-01-09 Pedro Alves <palves@redhat.com>
12302 Hui Zhu <hui@codesourcery.com>
12303
12304 PR gdb/16101
12305 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12306 bp_err_string. Don't mark the location shlib_disabled if the
12307 error thrown wasn't a generic or memory error. Catch errors
12308 thrown while inserting breakpoints in overlayed code. Output
12309 error message of software breakpoints.
12310 * remote.c (remote_insert_breakpoint): If this breakpoint has
12311 target-side commands but this stub doesn't support Z0 packets,
12312 throw NOT_SUPPORTED_ERROR error.
12313 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12314 * target.h (target_insert_breakpoint): Extend comment.
12315 (target_insert_hw_breakpoint): Add comment.
12316
12317 2014-01-08 Pedro Alves <palves@redhat.com>
12318
12319 * remote.c (remote_add_thread): Add threads silently if starting
12320 up.
12321 (remote_notice_new_inferior): If in all-stop, and starting up,
12322 don't call notice_new_inferior.
12323 (get_current_thread): New function, factored out from ...
12324 (add_current_inferior_and_thread): ... this. Adjust.
12325 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12326 found any thread, then select the remote's current thread as GDB's
12327 current thread too.
12328
12329 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12330
12331 * NEWS: Create a new section for the next release branch.
12332 Rename the section of the current branch, now that it has
12333 been cut.
12334
12335 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12336
12337 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12338 * version.in: Bump version to 7.7.50.DATE-cvs.
12339
12340 2014-01-08 Yao Qi <yao@codesourcery.com>
12341
12342 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12343 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12344 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12345
12346 2014-01-08 Yao Qi <yao@codesourcery.com>
12347
12348 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12349 return value of bfd_get_filename to symbol_file_add_from_bfd.
12350
12351 2014-01-08 Pierre Muller <muller@sourceware.org>
12352
12353 Fix PR16201.
12354 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12355 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12356 to prim_record_mininal_symbol_and_info.
12357 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12358 in call to prim_record_minimal_symbol_and_info.
12359 (read_pe_exported_syms): Set index field of section_data.
12360
12361 2014-01-07 Andrew Pinski <apinski@cavium.com>
12362
12363 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12364 * features/aarch64.c: Regenerate.
12365
12366 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12367
12368 * target.c (return_null): Define.
12369 (update_current_target): Use it instead of return_zero for
12370 functions that return a pointer.
12371
12372 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12373
12374 * source.c (add_path): Fix check for duplicated paths in the previously
12375 included paths.
12376
12377 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12378
12379 * ada-lang.c: Remove duplicated include statements.
12380 * alphabsd-nat.c: Ditto.
12381 * amd64-darwin-tdep.c: Ditto.
12382 * amd64fbsd-nat.c: Ditto.
12383 * auto-load.c: Ditto.
12384 * ax-gdb.c: Ditto.
12385 * breakpoint.c: Ditto.
12386 * dbxread.c: Ditto.
12387 * fork-child.c: Ditto.
12388 * gdb_usleep.c: Ditto.
12389 * i386-darwin-tdep.c: Ditto.
12390 * i386fbsd-nat.c: Ditto.
12391 * infcmd.c: Ditto.
12392 * inferior.c: Ditto.
12393 * jv-lang.c: Ditto.
12394 * linux-nat.c: Ditto.
12395 * linux-tdep.c: Ditto.
12396 * m68kbsd-nat.c: Ditto.
12397 * m68klinux-nat.c: Ditto.
12398 * microblaze-tdep.c: Ditto.
12399 * mips-linux-tdep.c: Ditto.
12400 * mn10300-tdep.c: Ditto.
12401 * nto-tdep.c: Ditto.
12402 * opencl-lang.c: Ditto.
12403 * osdata.c: Ditto.
12404 * printcmd.c: Ditto.
12405 * regcache.c: Ditto.
12406 * remote-m32r-sdi.c: Ditto.
12407 * remote.c: Ditto.
12408 * symfile.c: Ditto.
12409 * symtab.c: Ditto.
12410 * tilegx-linux-nat.c: Ditto.
12411 * tilegx-tdep.c: Ditto.
12412 * tracepoint.c: Ditto.
12413 * valops.c: Ditto.
12414 * vaxbsd-nat.c: Ditto.
12415 * windows-nat.c: Ditto.
12416 * xtensa-tdep.c: Ditto.
12417
12418 2014-01-07 Yao Qi <yao@codesourcery.com>
12419
12420 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12421
12422 2014-01-07 Yao Qi <yao@codesourcery.com>
12423 Joel Brobecker <brobecker@adacore.com>
12424
12425 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12426 (pdc_write_regs): Likewise.
12427 (fetch_regs_kernel_thread): Likewise.
12428 (store_regs_kernel_thread): Likewise.
12429
12430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12431
12432 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12433 tagged type objects to their actual type.
12434
12435 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12436
12437 * ada-valprint.c (print_field_values): Add "language" parameter.
12438 Update calls to print_field_values and print_variant_part.
12439 Pass new parameter "language" in call to val_print instead
12440 of "current_language". Replace call to ada_val_print by call
12441 to val_print.
12442 (print_variant_part): Add "language" parameter.
12443 (ada_val_print_struct_union): Update call to print_field_values.
12444
12445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12446
12447 * ada-valprint.c (ui_memcpy): Delete.
12448 (ada_print_floating): Update documentation. Add empty line
12449 between between function documentation and implementation.
12450 Delete variable "buffer". Use ui_file_xstrdup in place of
12451 ui_file_put. Minor adjustments following this change.
12452
12453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12454
12455 * ada-valprint.c (ada_val_print_string): New function,
12456 extracted from ada_val_print_array.
12457 (ada_val_print_array): Replace extracted code by call
12458 to ada_val_print_string followed by a return. Move
12459 "else" branch to the function's top block.
12460
12461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12462
12463 * ada-valprint.c (ada_val_print_array): Move implementation
12464 down. Rename parameter "offset" and "val" into "offset_aligned"
12465 and "original_value" respectively. Add parameter "offset".
12466
12467 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12468
12469 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12470 re-organizing the code. Change the "???" message printed
12471 when target type is a TYPE_CODE_UNDEF into
12472 "<ref to undefined type>".
12473
12474 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12475
12476 * ada-valprint.c (print_record): Delete, implementation inlined...
12477 (ada_val_print_struct_union): ... here. Remove call to
12478 ada_check_typedef in inlined implementation.
12479
12480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12481
12482 * ada-valprint.c (ada_val_print_gnat_array): New function,
12483 extracted from ada_val_print_1;
12484 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12485 (ada_val_print_flt, ada_val_print_struct_union)
12486 (ada_val_print_ref): Likewise.
12487 (ada_val_print_1): Delete variables i and elttype.
12488 Replace extracted-out code by call to corresponding
12489 new functions.
12490
12491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12492
12493 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12494
12495 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-valprint.c (ada_val_print_1): Replace calls to
12498 ada_val_print_1 by calls to val_print.
12499
12500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12501
12502 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12503 Update calls to self accordingly. Replace calls to c_val_print
12504 by calls to val_print.
12505
12506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-valprint.c (print_record): Delete declaration.
12509 (adjust_type_signedness, ada_val_print_1): Likewise.
12510 (ada_val_print): Move function implementation down.
12511 (print_variant_part, print_field_values, print_record):
12512 Move function implementation up.
12513
12514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12515
12516 * python/py-type.c (typy_get_name): New function.
12517 (type_object_getset): Add entry for attribute "name".
12518 * NEWS: Add entry mentioning this new attribute.
12519
12520 2014-01-07 Yao Qi <yao@codesourcery.com>
12521
12522 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12523 statement.
12524
12525 2014-01-07 Yao Qi <yao@codesourcery.com>
12526
12527 * gnu-nat.c (info_port_rights): Add qualifier const to
12528 argument args.
12529
12530 2014-01-07 Yao Qi <yao@codesourcery.com>
12531
12532 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12533
12534 2014-01-07 Yao Qi <yao@codesourcery.com>
12535
12536 * gnu-nat.c (make_inf) Update declaration.
12537 (make_inf): Make it static.
12538 (inf_set_traced): Likewise.
12539 (inf_port_to_thread, inf_task_died_status): Likewise.
12540
12541 2014-01-07 Yao Qi <yao@codesourcery.com>
12542
12543 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12544
12545 2014-01-07 Yao Qi <yao@codesourcery.com>
12546
12547 * gnu-nat.c (_initialize_gnu_nat): Declare.
12548
12549 2014-01-07 Yao Qi <yao@codesourcery.com>
12550
12551 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12552 'enum bfd_endian'.
12553 (struct gdbarch_info) <byte_order>: Change type to
12554 'enum bfd_endian'.
12555 <byte_order_for_code>: Likewise.
12556 * gdbarch.c, gdbarch.h: Regenerated.
12557
12558 2014-01-06 Sasha Smundak <asmundak@google.com>
12559
12560 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12561
12562 2014-01-06 Tom Tromey <tromey@redhat.com>
12563
12564 * doublest.c (convert_doublest_to_floatformat): Use const, not
12565 CONST.
12566 * somread.c (som_symtab_read): Likewise.
12567
12568 2014-01-07 Hui Zhu <hui@codesourcery.com>
12569
12570 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12571 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12572 (gdb_bfd_fopen): Ditto.
12573 (gdb_bfd_openr): Ditto.
12574 (gdb_bfd_openw): Ditto.
12575 (gdb_bfd_openr_iovec): Ditto.
12576 (gdb_bfd_fdopenr): Ditto.
12577 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12578 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12579 with xstrdup.
12580 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12581 with xstrdup.
12582 * symfile-mem.c (symbol_file_add_from_memory): Removed
12583 gdb_bfd_stash_filename.
12584
12585 2014-01-03 Doug Evans <dje@google.com>
12586
12587 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12588 output.
12589
12590 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12591
12592 Update year range in copyright notice of all files.
12593
12594 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12595
12596 * top.c (print_gdb_version): Set copyright year to 2014.
12597
12598 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12599
12600 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12601
12602 For older changes see ChangeLog-2013.
12603 \f
12604 Local Variables:
12605 mode: change-log
12606 left-margin: 8
12607 fill-column: 74
12608 version-control: never
12609 coding: utf-8
12610 End: