MIPS testsuite cleanup - part 4
[binutils-gdb.git] / gdb / ChangeLog
1 2014-09-06 Doug Evans <xdje42@gmail.com>
2 Tom Tromey <tromey@redhat.com>
3
4 PR 15276
5 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
6 $_any_caller_matches.
7 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
8 * python/lib/gdb/function/caller_is.py: New file.
9
10 2014-09-06 Doug Evans <xdje42@gmail.com>
11
12 * infcmd.c (program_info): Fix typo.
13
14 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
15
16 PR gdb/17235
17 * stap-probe.c (stap_parse_single_operand): Delete unused variable
18 'number'. New variable 'has_digit'. Rewrite code to deal with
19 subexpressions on SDT probes.
20
21 2014-09-04 Pedro Alves <palves@redhat.com>
22
23 * c-exp.y (parse_number): Skip handling base-switching prefixes if
24 the input is only one character long.
25
26 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
27
28 PR fortran/17237
29 * f-valprint.c (f_val_print): Specify the correct print option to
30 use when printing integer values.
31
32 2014-09-04 Gary Benson <gbenson@redhat.com>
33
34 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
35 Remove code to cope with LWPs wrapped as PIDs.
36 Add assertions to ensure no wrapped LWPs are passed.
37
38 2014-09-04 Pedro Alves <palves@redhat.com>
39
40 * value.c (value_ranges_copy_adjusted): New function, factored out
41 from ...
42 (value_contents_copy_raw): ... here.
43 (unpack_value_bits_as_long_1): Rename back to ...
44 (unpack_bits_as_long): ... this. Remove 'original_value' and
45 'result' parameters. Change return type to LONGEST.
46 (unpack_value_bits_as_long): Delete.
47 (unpack_value_field_as_long_1): Delete.
48 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
49 (unpack_value_bitfield): New function.
50 (value_field_bitfield): Reimplement using unpack_value_bitfield.
51 (value_fetch_lazy): Use unpack_value_bitfield.
52 * value.h (unpack_value_bits_as_long): Delete declaration.
53
54 2014-09-03 Sasha Smundak <asmundak@google.com>
55
56 * python/py-frame.c (frapy_read_register): New function.
57
58 2014-09-03 James Hogan <james.hogan@imgtec.com>
59
60 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
61 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
62
63 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
64
65 PR python/16699
66 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
67 function.
68 (add_cmd): Set "completer_handle_brkchars" to NULL.
69 * cli/cli-decode.h (struct cmd_list_element)
70 <completer_handle_brkchars>: New field.
71 * command.h (completer_ftype_void): New typedef.
72 (set_cmd_completer_handle_brkchars): New prototype.
73 * completer.c (set_gdb_completion_word_break_characters): New
74 function.
75 (complete_line_internal): Call "completer_handle_brkchars"
76 callback from command.
77 * completer.h: Include "command.h".
78 (set_gdb_completion_word_break_characters): New prototype.
79 * python/py-cmd.c (cmdpy_completer_helper): New function.
80 (cmdpy_completer_handle_brkchars): New function.
81 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
82 (cmdpy_init): Set completer_handle_brkchars to
83 cmdpy_completer_handle_brkchars.
84
85 2014-09-03 Gary Benson <gbenson@redhat.com>
86
87 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
88 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
89 Loop conditions changed to equivalent form.
90 (struct x86_debug_reg_state): Updated dr_ref_count comment.
91 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
92 ALL_DEBUG_ADDRESS_REGISTERS.
93
94 2014-09-03 Joel Brobecker <brobecker@adacore.com>
95
96 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
97 description fix.
98
99 2014-09-02 Doug Evans <dje@google.com>
100
101 * typeprint.c (find_global_typedef): Fix comment.
102
103 2014-09-02 Gary Benson <gbenson@redhat.com>
104
105 * i386-nat.h: Renamed as...
106 * x86-nat.h: New file. All type, function and variable name
107 prefixes changed from "i386_" to "x86_". All references updated.
108 * i386-nat.c: Renamed as...
109 * x86-nat.c: New file. All type, function and variable name
110 prefixes changed from "i386_" to "x86_". All references updated.
111 * common/i386-xstate.h: Renamed as...
112 * common/x86-xstate.h: New file. All type, function and variable
113 name prefixes changed from "i386_" to "x86_". All references
114 updated.
115 * nat/i386-cpuid.h: Renamed as...
116 * nat/x86-cpuid.h: New file. All type, function and variable name
117 prefixes changed from "i386_" to "x86_". All references updated.
118 * nat/i386-gcc-cpuid.h: Renamed as...
119 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
120 name prefixes changed from "i386_" to "x86_". All references
121 updated.
122 * nat/i386-dregs.h: Renamed as...
123 * nat/x86-dregs.h: New file. All type, function and variable name
124 prefixes changed from "i386_" to "x86_". All references updated.
125 * nat/i386-dregs.c: Renamed as...
126 * nat/x86-dregs.c: New file. All type, function and variable name
127 prefixes changed from "i386_" to "x86_". All references updated.
128
129 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
130
131 * varobj.c (_initialize_varobj): Move to the end of file.
132
133 2014-08-29 Gary Benson <gbenson@redhat.com>
134
135 * common/common-exceptions.h: New file.
136 * common/common-exceptions.c: Likewise.
137 * Makefile.in (SFILES): Add common/common-exceptions.c.
138 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
139 (COMMON_OBS): Add common-exceptions.o.
140 (common-exceptions.o): New rule.
141 * exceptions.h (common-exceptions.h): Include.
142 (gdb_setjmp.h): Do not include.
143 (return_reason): Moved to common-exceptions.h.
144 (enum return_reason): Likewise.
145 (RETURN_MASK): Likewise.
146 (typedef return_mask): Likewise.
147 (enum errors): Likewise.
148 (struct gdb_exception): Likewise.
149 (exceptions_state_mc_init): Likewise.
150 (exceptions_state_mc_action_iter): Likewise.
151 (exceptions_state_mc_action_iter_1): Likewise.
152 (TRY_CATCH): Likewise.
153 (throw_exception): Likewise.
154 (throw_verror): Likewise.
155 (throw_vquit): Likewise.
156 (throw_error): Likewise.
157 (throw_quit): Likewise.
158 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
159 (enum catcher_action): Likewise.
160 (struct catcher): Likewise.
161 (current_catcher): Likewise.
162 (catcher_list_size): Likewise.
163 (exceptions_state_mc_init): Likewise.
164 (catcher_pop): Likewise.
165 (exceptions_state_mc): Likewise.
166 (exceptions_state_mc_action_iter): Likewise.
167 (exceptions_state_mc_action_iter_1): Likewise.
168 (throw_exception): Likewise.
169 (exception_messages): Likewise.
170 (exception_messages_size): Likewise.
171 (throw_it): Likewise.
172 (throw_verror): Likewise.
173 (throw_vquit): Likewise.
174 (throw_error): Likewise.
175 (throw_quit): Likewise.
176 (prepare_to_throw_exception): New function.
177
178 2014-08-29 Gary Benson <gbenson@redhat.com>
179
180 * common/gdb_setjmp.h: New file.
181 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
182 * configure.ac: Move sigsetjmp check...
183 * common/common.m4: ...here.
184 * configure: Regenerate.
185 * cp-support.c (SIGJMP_BUF): Delete.
186 (SIGSETJMP): Likewise.
187 (SIGLONGJMP): Likewise.
188 * exceptions.h (gdb_setjmp.h): Include.
189 (setjmp.h): Do not include.
190 (EXCEPTIONS_SIGJMP_BUF): Delete.
191 (EXCEPTIONS_SIGSETJMP): Likewise.
192 (EXCEPTIONS_SIGLONGJMP): Likewise.
193 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
194 from gdb_setjmp.h.
195 * exceptions.c: Likewise.
196
197 2014-08-29 Gary Benson <gbenson@redhat.com>
198
199 * cleanups.h: Moved to...
200 * common/cleanups.h: New file.
201 * cleanups.c: Moved to...
202 * common/cleanups.c: New file. Include common-defs.h and
203 cleanups.h. Do not include defs.h.
204 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
205 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
206 (cleanups.o): New rule.
207
208 2014-08-29 Gary Benson <gbenson@redhat.com>
209
210 * common/errors.h (internal_warning): New declaration.
211 (internal_vwarning): Likewise.
212 * common/errors.c (internal_warning): New function.
213 * utils.h (internal_warning): Don't declare.
214 (internal_vwarning): Likewise.
215 * utils.c (internal_warning): Removed.
216
217 2014-08-29 Gary Benson <gbenson@redhat.com>
218
219 * main.c (captured_main): Use warning during startup.
220 Prefix startup warning messages with command name.
221
222 2014-08-29 Gary Benson <gbenson@redhat.com>
223
224 * main.c (captured_main): Handle usage errors with error.
225
226 2014-08-29 Gary Benson <gbenson@redhat.com>
227
228 * go32-nat.c (go32_create_inferior): Replace a fprintf/
229 exit pair with a call to error. Wrap the message with _().
230
231 2014-08-29 Gary Benson <gbenson@redhat.com>
232
233 * main.c (captured_main): Replace a fprintf/exit
234 pair with a call to error. Wrap the message with _().
235
236 2014-08-29 Gary Benson <gbenson@redhat.com>
237
238 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
239 pairs with calls to error. Wrap the message with _().
240
241 2014-08-29 Gary Benson <gbenson@redhat.com>
242
243 * utils.c (vwarning): Protect calls to target_terminal_ours
244 and wrap_here.
245
246 2014-08-29 Gary Benson <gbenson@redhat.com>
247
248 * exceptions.c (print_flush): Protect calls to
249 target_terminal_ours and wrap_here.
250
251 2014-08-29 Gary Benson <gbenson@redhat.com>
252
253 * utils.h (filtered_printing_initialized): New declaration.
254 * utils.c (abort_with_message): New function.
255 (internal_vproblem): Use abort_with_message for first level
256 recursive internal problems, and if gdb_stderr is not set up.
257 Protect calls to target_terminal_ours, begin_line and query.
258
259 2014-08-28 Doug Evans <dje@google.com>
260
261 * symtab.c (in_prologue): Move definition to better spot.
262 (skip_prologue_using_sal): Ditto.
263
264 2014-08-28 Doug Evans <dje@google.com>
265
266 * symtab.c (find_function_start_sal): Move definition to better spot.
267
268 2014-08-28 Yao Qi <yao@codesourcery.com>
269
270 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
271 found_stack_adjust in forward scan. Remove condition check
272 on found_stack_adjust which is always true. Indent the code.
273
274 2014-08-28 Yao Qi <yao@codesourcery.com>
275
276 * dwarf2read.c (dwarf_decode_lines): Update declaration.
277 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
278 (dwarf_decode_lines): Remove argument
279 want_line_info. Remove condition check on want_line_info.
280 Callers update.
281
282 2014-08-27 Doug Evans <dje@google.com>
283
284 * dwarf2read.c (dwarf_record_line): Fix typo.
285
286 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
287
288 * target.h (struct target_ops::to_terminal_save_ours): Remove
289 declaration.
290 (target_terminal_save_ours): Remove macro.
291 * target-delegates.c: Regenerate.
292 * inf-child.c (inf_child_target): Don't set the nonexistent
293 field to_terminal_save_ours.
294 * inferior.h (child_terminal_save_ours): Remove declaration.
295 * terminal.h (gdb_save_tty_state): New declaration.
296 * inflow.c (child_terminal_save_ours): Rename to ...
297 (gdb_save_tty_state): ... this.
298 * tui/tui.c: Include terminal.h.
299 (tui_enable): Use gdb_save_tty_state instead of
300 target_terminal_save_ours.
301 (tui_disable): Likewise.
302
303 2014-08-25 Doug Evans <dje@google.com>
304
305 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
306 Pass NULL instead of 0 for context pointer.
307
308 2014-08-25 Yao Qi <yao@codesourcery.com>
309
310 * dwarf2read.c: Fix grammatical error.
311
312 2014-08-24 Yao Qi <yao@codesourcery.com>
313
314 * dwarf2read.c (scan_partial_symbols): Update comments.
315 Rename argument 'need_pc' with 'set_addrmap'.
316 (add_partial_namespace): Rename argument 'need_pc' with
317 'set_addrmap'.
318 (add_partial_module): Likewise.
319 (add_partial_subprogram): Likewise. Update comments.
320 (dwarf2_name): Fix typo.
321
322 2014-08-22 Doug Evans <dje@google.com>
323
324 PR 17276
325 * dwarf2read.c (dwarf_record_line_p): New function.
326 (dwarf_decode_lines_1): Ignore subsequent line number entries
327 for the same line if any entry had a non-zero discriminator.
328
329 2014-08-22 Doug Evans <dje@google.com>
330
331 * buildsym.h (record_line_ftype): New typedef.
332 (record_line): Use it.
333 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
334 (dwarf_decode_lines_1): Call them.
335
336 2014-08-22 Yao Qi <yao@codesourcery.com>
337
338 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
339 (ctf_end): Remove code.
340
341 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
342
343 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
344 (linux_make_corefile_notes): call update_thread_list, protected against
345 exceptions.
346
347 2014-08-21 Pedro Alves <palves@redhat.com>
348
349 * infcmd.c (attach_command): Remove comment.
350
351 2014-08-21 Bin Cheng <bin.cheng@arm.com>
352
353 * aarch64-linux-nat.c (dr_changed_t): Change the type from
354 unsigned LONGEST to ULONGEST.
355
356 2014-08-20 Pedro Alves <palves@redhat.com>
357
358 * Makefile.in (check-read1): New rule.
359
360 2014-08-20 Joel Brobecker <brobecker@adacore.com>
361
362 * value.c (value_from_contents_and_address): Strip resolved_type's
363 typedef layers before checking its TYPE_DATA_LOCATION.
364
365 2014-08-20 Pedro Alves <palves@redhat.com>
366
367 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
368
369 2014-08-20 Yao Qi <yao@codesourcery.com>
370
371 * amd64-tdep.c (amd64_classify): Add a blank line after the
372 example. Move "*/" to a new line.
373 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
374 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
375 * dwarf2read.c (psymtab_include_file_name): Likewise.
376
377 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
378 Pedro Alves <palves@redhat.com>
379
380 PR symtab/14604
381 PR symtab/14605
382 * ada-lang.c (coerce_unspec_val_to_type): Use
383 value_contents_copy_raw.
384 * ada-valprint.c (val_print_packed_array_elements): Adjust.
385 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
386 * cp-valprint.c (cp_print_value_fields): Let the common printing
387 code handle optimized out values.
388 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
389 * d-valprint.c (dynamic_array_type): Use
390 value_bits_any_optimized_out.
391 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
392 check_any_valid fields.
393 (check_pieced_value_bits): Delete and inline ...
394 (check_pieced_synthetic_pointer): ... here.
395 (check_pieced_value_validity): Delete.
396 (check_pieced_value_invalid): Delete.
397 (pieced_value_funcs): Remove check_validity and check_any_valid
398 fields.
399 (read_pieced_value): Use mark_value_bits_optimized_out.
400 (write_pieced_value): Switch to use
401 mark_value_bytes_optimized_out.
402 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
403 of assuming the whole value is optimized out.
404 * findvar.c (read_frame_register_value): Remove special handling
405 of optimized out registers.
406 (value_from_register): Use mark_value_bytes_optimized_out.
407 * frame-unwind.c (frame_unwind_got_optimized): Use
408 mark_value_bytes_optimized_out.
409 * jv-valprint.c (java_value_print): Adjust.
410 (java_print_value_fields): Let the common printing code handle
411 optimized out values.
412 * mips-tdep.c (mips_print_register): Remove special handling of
413 optimized out registers.
414 * opencl-lang.c (lval_func_check_validity): Delete.
415 (lval_func_check_any_valid): Delete.
416 (opencl_value_funcs): Remove check_validity and check_any_valid
417 fields.
418 * p-valprint.c (pascal_object_print_value_fields): Let the common
419 printing code handle optimized out values.
420 * stack.c (read_frame_arg): Remove special handling of optimized
421 out values. Fetch both VAL and ENTRYVAL before comparing
422 contents. Adjust to value_available_contents_eq rename.
423 * valprint.c (valprint_check_validity)
424 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
425 (val_print_array_elements): Adjust.
426 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
427 (value_bits_any_optimized_out): New function.
428 (value_entirely_covered_by_range_vector): New function, factored
429 out from value_entirely_unavailable.
430 (value_entirely_unavailable): Reimplement.
431 (value_entirely_optimized_out): New function.
432 (insert_into_bit_range_vector): New function, factored out from
433 mark_value_bits_unavailable.
434 (mark_value_bits_unavailable): Reimplement.
435 (struct ranges_and_idx): New struct.
436 (find_first_range_overlap_and_match): New function, factored out
437 from value_available_contents_bits_eq.
438 (value_available_contents_bits_eq): Rename to ...
439 (value_contents_bits_eq): ... this. Check both unavailable
440 contents and optimized out contents.
441 (value_available_contents_eq): Rename to ...
442 (value_contents_eq): ... this.
443 (allocate_value_lazy): Remove reference to the old optimized_out
444 boolean.
445 (allocate_optimized_out_value): Use
446 mark_value_bytes_optimized_out.
447 (require_not_optimized_out): Adjust to check whether the
448 optimized_out vec is empty.
449 (ranges_copy_adjusted): New function, factored out from
450 value_contents_copy_raw.
451 (value_contents_copy_raw): Also copy the optimized out ranges.
452 Assert the destination ranges aren't optimized out.
453 (value_contents_copy): Update comment, remove call to
454 require_not_optimized_out.
455 (value_contents_equal): Adjust to check whether the optimized_out
456 vec is empty.
457 (set_value_optimized_out, value_optimized_out_const): Delete.
458 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
459 New functions.
460 (value_entirely_optimized_out, value_bits_valid): Delete.
461 (value_copy): Take a VEC copy of the 'optimized_out' field.
462 (value_primitive_field): Remove special handling of optimized out.
463 (value_fetch_lazy): Assert that lazy values have no unavailable
464 regions. Use value_bits_any_optimized_out. Remove some special
465 handling for optimized out values.
466 * value.h: Add intro comment about <optimized out> and
467 <unavailable>.
468 (struct lval_funcs): Remove check_validity and check_any_valid
469 fields.
470 (set_value_optimized_out, value_optimized_out_const): Remove.
471 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
472 New declarations.
473 (value_bits_any_optimized_out): New declaration.
474 (value_bits_valid): Delete declaration.
475 (value_available_contents_eq): Rename to ...
476 (value_contents_eq): ... this, and extend comments.
477
478 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 Fix -fsanitize=address on unreadable inferior strings.
481 * valprint.c (val_print_string): Fix access before BUFFER.
482
483 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
484
485 * target.c (target_struct_size): Remove.
486 (target_struct_allocsize): Remove.
487 (DEFAULT_ALLOCSIZE): Remove.
488 (target_ops_p): New typedef.
489 (DEF_VEC_P (target_ops_p)): New vector type.
490 (target_structs): Change type to VEC (target_ops_p).
491 (add_target_with_completer): Replace "push" code by VEC_safe_push.
492 (find_default_run_target): Rewrite for loop following changes to
493 target_structs.
494
495 2014-08-19 Joel Brobecker <brobecker@adacore.com>
496
497 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
498 Adjust code accordingly. Adjust function description comment.
499
500 2014-08-19 Yao Qi <yao@codesourcery.com>
501
502 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
503 types.
504
505 2014-08-19 Alan Modra <amodra@gmail.com>
506
507 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
508 * config.in: Regenerate.
509 * configure: Regenerate.
510
511 2014-08-19 Tom Tromey <tromey@redhat.com>
512 Gary Benson <gbenson@redhat.com>
513
514 * common/common-debug.h: New file.
515 * common/common-debug.c: Likewise.
516 * debug.c: Likewise.
517 * Makefile.in (SFILES): Add common/common-debug.c.
518 (HFILES_NO_SRCDIR): Add common/common-debug.h.
519 (COMMON_OBS): Add common-debug.o and debug.o.
520 (common-debug.o): New rule.
521 * common/common-defs.h: Include common-debug.h.
522 * common/agent.c (debug_agent_printf): New function.
523 (DEBUG_AGENT): Redefine.
524 * nat/i386-dregs.c (debug_printf): Undefine.
525
526 2014-08-19 Gary Benson <gbenson@redhat.com>
527
528 * common/common-defs.h: Include print-utils.h.
529 * utils.h: Do not include print-utils.h.
530
531 2014-08-19 Tom Tromey <tromey@redhat.com>
532 Gary Benson <gbenson@redhat.com>
533
534 * common/common-types.h: New file.
535 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
536 * common/common-defs.h: Include common-types.h.
537 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
538 (ULONGEST): Remove.
539
540 2014-08-19 Tom Tromey <tromey@redhat.com>
541 Gary Benson <gbenson@redhat.com>
542
543 * common/errors.h: New file.
544 * common/errors.c: Likewise.
545 * Makefile.in (SFILES): Add common/errors.c.
546 (HFILES_NO_SRCDIR): Add common/errors.h.
547 (COMMON_OBS): Add errors.o.
548 (errors.o): New rule.
549 * common/common-defs.h: Include errors.h.
550 * utils.h (perror_with_name, error, verror, warning, vwarning):
551 Don't declare.
552 * common/common-utils.h: (malloc_failure, internal_error):
553 Likewise.
554
555 2014-08-19 Gary Benson <gbenson@redhat.com>
556
557 * utils.c (internal_vproblem): Always print the message.
558
559 2014-08-18 Doug Evans <dje@google.com>
560
561 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
562
563 2014-08-18 Joel Brobecker <brobecker@adacore.com>
564
565 * ada-typeprint.c (type_is_full_subrange_of_target_type):
566 Return 0 if TYPE is dynamic.
567 (print_range): Add handling of dynamic ranges.
568
569 2014-08-18 Keven Boell <keven.boell@intel.com>
570 Joel Brobecker <brobecker@adacore.com>
571
572 * gdbtypes.h (struct main_type): Add field "data_location".
573 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
574 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
575 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
576 a dynamic data location.
577 (resolve_dynamic_type): Add DW_AT_data_location handling.
578 (copy_recursive, copy_type): Copy the data_location information
579 when present.
580 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
581 * value.c (value_from_contents_and_address): Add
582 DW_AT_data_location handling.
583
584 2014-08-18 Keven Boell <keven.boell@intel.com>
585 Joel Brobecker <brobecker@adacore.com>
586
587 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
588 field "get_object_address".
589 * dwarf2expr.c (execute_stack_op): Add handling for
590 DW_OP_push_object_address.
591 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
592 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
593 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
594 (dwarf_expr_get_obj_addr): New function.
595 (dwarf_expr_ctx_funcs): Add get_object_address field.
596 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
597 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
598 (dwarf2_evaluate_property): Add parameter "address". Use it.
599 (needs_get_obj_addr): New function.
600 (needs_frame_ctx_funcs): Add get_object_address field.
601 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
602 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
603 (resolve_dynamic_array): Likewise.
604
605 2014-08-18 Joel Brobecker <brobecker@adacore.com>
606
607 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
608 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
609 fixed value for records and unions for which some GNAT encodings
610 are present.
611
612 2014-08-18 Joel Brobecker <brobecker@adacore.com>
613
614 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
615 rewrite to avoid "else if" and "else" constructs. Should be
616 a no-op in practice.
617
618 2014-08-18 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
621 of lexical block.
622
623 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
624
625 PR c++/17132
626 * eval.c: Update all calls to find_overload_match.
627 * valarith.c: Likewise.
628 (value_user_defined_cpp_op, value_user_defined_op): New
629 argument NOSIDE. Update all callers.
630 * valops.c (find_overload_match): New argument NOSIDE.
631 * value.h (find_overload_match): Update signature.
632
633 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
634
635 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
636 'items' methods instead of 'iteritems' method on dictionaries.
637
638 2014-08-15 Doug Evans <dje@google.com>
639
640 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
641 closer to use.
642
643 2014-08-15 Doug Evans <dje@google.com>
644
645 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
646
647 2014-08-15 Doug Evans <dje@google.com>
648
649 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
650
651 2014-08-15 Doug Evans <dje@google.com>
652
653 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
654 unused.
655
656 2014-08-15 Eli Zaretskii <eliz@gnu.org>
657
658 * dcache.h: Include target.h, to avoid compile time warnings.
659
660 2014-08-15 Joel Brobecker <brobecker@adacore.com>
661
662 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
663 frame_info" partial declaration.
664 * gdbarch.h: Regenerate.
665
666 2014-08-15 Yao Qi <yao@codesourcery.com>
667
668 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
669 Add parameter 'decode_for_pst_p'. Callers update.
670
671 2014-08-13 Yao Qi <yao@codesourcery.com>
672
673 PR build/17104
674 * configure.ac: Use local variable 'pos'.
675 * configure: Regenerated.
676
677 2014-08-11 Doug Evans <dje@google.com>
678
679 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
680 message, it is redundant with "Reading symbols from ..." message.
681
682 2014-08-10 Doug Evans <xdje42@gmail.com>
683
684 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
685
686 2014-08-09 Yao Qi <yao@codesourcery.com>
687
688 PR remote/9053
689 * remote.c (remote_xfer_partial): Remove dead code.
690
691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
692
693 * ia64-linux-tdep.c: Include "regset.h".
694 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
695 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
696 (ia64_linux_supply_fpregset): New function.
697 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
698 (ia64_linux_regset_from_core_section): New function.
699 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
700 method.
701
702 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
703
704 * m68klinux-tdep.c: Include "regset.h".
705 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
706 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
707 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
708 (m68k_linux_regset_from_core_section): New function.
709 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
710 method.
711
712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
713
714 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
715 function. Move logic to...
716 (tilegx_linux_regmap): ... this new register map.
717 (tilegx_linux_regset): Refer to register map, replace supply
718 method by regcache_supply_regset, and add collect method.
719 * tilegx-tdep.h (enum tilegx_regnum): New enum value
720 TILEGX_FIRST_EASY_REGNUM.
721
722 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
723
724 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
725 that calls regcache_supply_regset and handles the EPC register
726 separately. Move main logic to...
727 (score7_linux_gregmap): ... this new register map.
728 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
729 (score7_linux_gregset): Refer to register map. Add collect method.
730 (score7_linux_regset_from_core_section): Replace
731 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
732 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
733 (struct regset): Delete unused forward declaraction.
734 (struct pt_regs): Delete structure definition.
735 (elf_gregset_t): Delete typedef.
736
737 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
738
739 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
740 (nios2_core_regset): Add collect method.
741
742 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
743
744 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
745 platform-independent and don't write to read-only input buffer.
746 (m32r_linux_collect_gregset): New function.
747 (m32r_linux_gregset): Add collect method.
748
749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
750
751 * hppa-linux-tdep.c (greg_map): Rename to...
752 (hppa_linux_gregmap): ... this. Also convert to
753 regcache_map_entry format.
754 (hppa_linux_supply_regset): Delete function.
755 (hppa_linux_supply_fpregset): Delete function. Move logic to...
756 (hppa_linux_fpregmap): ... this new register map.
757 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
758 register map, replace supply method by regcache_supply_regset, and
759 add collect method regcache_collect_regset.
760
761 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
762
763 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
764 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
765 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
766 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
767 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
768 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
769 (frv_linux_supply_gregset): Replace main logic by call to
770 regcache_supply_regset, but keep clearing gr32-gr63.
771 (frv_linux_supply_fpregset): Delete function.
772 (frv_linux_gregset): Refer to appropriate register map and add
773 regcache_collect_regset as the collect method.
774 (frv_linux_fpregset): Likewise. Also exchange the supply method
775 by regcache_supply_regset.
776
777 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
778
779 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
780 by call to alpha_supply_int_regs.
781 (alpha_linux_collect_gregset): New function.
782 (alpha_linux_supply_fpregset): Replace logic by call to
783 alpha_supply_fp_regs.
784 (alpha_linux_collect_fpregset): New function.
785 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
786
787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
788
789 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
790 by call to regcache_collect_regset.
791 (supply_gregset, supply_fpregset): Call regcache_supply_regset
792 instead of aarch64_linux_supply_gregset/_fpregset.
793 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
794 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
795 header file instead.
796 (aarch64_linux_supply_gregset, supply_gregset_from_core)
797 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
798 functions. Move logic to ...
799 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
800 register maps.
801 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
802 refer to new register maps, replace *_regset_from_core by
803 regcache_supply_regset, and also use regcache_collect_regset.
804 * aarch64-linux-tdep.h: Include "regset.h".
805 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
806 Delete prototypes.
807 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
808 macros, moved from C source file.
809 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
810 variable declarations.
811
812 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813
814 * s390-linux-nat.c: Include "regset.h".
815 (regmap_gregset): Delete macro.
816 (s390_64_regmap_gregset): New register map for
817 regcache_supply/_collect_regset.
818 (s390_64_gregset): New regset.
819 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
820 (regmap_fpregset): Delete macro.
821 (s390_native_supply, s390_native_collect): Delete functions.
822 (supply_gregset, fill_gregset): Replace s390-specific regmap
823 handling by a call to regcache_supply/_collect_regset.
824 (supply_fpregset, fill_fpregset): Call regcache_supply/
825 _collect_regset instead of s390_native_supply/_collect.
826 (fetch_regset, store_regset): Likewise. Also change the last
827 parameter to a regset instead of a regmap.
828 (s390_linux_fetch_inferior_registers)
829 (390_linux_store_inferior_registers): Adjust last parameter in
830 calls to fetch_regset and store_regset.
831 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
832 (s390_gregmap): ... this. Also make static const and convert to
833 regcache_map_entry format.
834 (s390x_regmap_gregset): Delete.
835 (s390_regmap_fpregset): Rename to...
836 (s390_fpregmap): ... this. Make static const and convert to
837 regcache_map_entry format.
838 (s390_regmap_upper, s390_regmap_last_break)
839 (s390x_regmap_last_break, s390_regmap_system_call)
840 (s390_regmap_tdb): Likewise.
841 (s390_supply_regset, s390_collect_regset): Remove functions.
842 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
843 s390_supply_regset.
844 (s390_gregset, s390_fpregset, s390_upper_regset)
845 (s390_last_break_regset, s390x_last_break_regset)
846 (s390_system_call_regset, s390_tdb_regset): Make global and
847 replace s390_supply/_collect_regset by regcache_supply/
848 _collect_regset.
849 (s390x_gregset): Delete.
850 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
851 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
852 (s390_regmap_fpregset, s390_regmap_last_break)
853 (s390x_regmap_last_break, s390_regmap_system_call)
854 (s390_regmap_tdb): Delete global variable declarations.
855 (s390_gregset, s390_fpregset, s390_last_break_regset)
856 (s390x_last_break_regset, s390_system_call_regset)
857 (s390_tdb_regset): New global variable declarations.
858
859 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
860
861 * regcache.c: Include "regset.h".
862 (regcache_transfer_regset): New local function.
863 (regcache_supply_regset, regcache_collect_regset): New functions.
864 * regcache.h (struct regcache_map_entry): New structure.
865 (REGCACHE_MAP_SKIP): New enum value.
866 (regcache_supply_regset, regcache_collect_regset): New prototypes.
867
868 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
869
870 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
871 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
872 (ppc_linux_collect_gregset ): Likewise.
873 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
874 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
875 (ppc_collect_vrregset): Likewise.
876 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
877 Likewise.
878
879 2014-08-07 Yao Qi <yao@codesourcery.com>
880
881 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
882 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
883 * remote.c (remote_read_bytes): Likewise.
884
885 2014-08-07 Yao Qi <yao@codesourcery.com>
886
887 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
888
889 2014-08-07 Yao Qi <yao@codesourcery.com>
890
891 PR remote/17230
892 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
893 TARGET_XFER_OK instead of 0.
894
895 2014-08-07 Gary Benson <gbenson@redhat.com>
896
897 * common/common-defs.h: Include errno.h.
898 * defs.h: Do not include errno.h.
899 * ada-typeprint.c: Likewise.
900 * c-typeprint.c: Likewise.
901 * core-regset.c: Likewise.
902 * corefile.c: Likewise.
903 * corelow.c: Likewise.
904 * event-loop.c: Likewise.
905 * f-typeprint.c: Likewise.
906 * gnu-nat.c: Likewise.
907 * go32-nat.c: Likewise.
908 * i386gnu-nat.c: Likewise.
909 * m2-typeprint.c: Likewise.
910 * nat/linux-btrace.c: Likewise.
911 * p-typeprint.c: Likewise.
912 * procfs.c: Likewise.
913 * remote-sim.c: Likewise.
914 * rs6000-nat.c: Likewise.
915 * target.c: Likewise.
916 * typeprint.c: Likewise.
917 * ui-file.c: Likewise.
918 * valops.c: Likewise.
919 * valprint.c: Likewise.
920
921 2014-08-07 Gary Benson <gbenson@redhat.com>
922
923 * common/common-defs.h: Include string.h.
924 * aarch64-tdep.c: Do not include string.h.
925 * ada-exp.y: Likewise.
926 * ada-lang.c: Likewise.
927 * ada-lex.l: Likewise.
928 * ada-typeprint.c: Likewise.
929 * ada-valprint.c: Likewise.
930 * aix-thread.c: Likewise.
931 * alpha-linux-tdep.c: Likewise.
932 * alpha-mdebug-tdep.c: Likewise.
933 * alpha-nat.c: Likewise.
934 * alpha-osf1-tdep.c: Likewise.
935 * alpha-tdep.c: Likewise.
936 * alphanbsd-tdep.c: Likewise.
937 * amd64-dicos-tdep.c: Likewise.
938 * amd64-linux-tdep.c: Likewise.
939 * amd64-nat.c: Likewise.
940 * amd64-sol2-tdep.c: Likewise.
941 * amd64fbsd-tdep.c: Likewise.
942 * amd64obsd-tdep.c: Likewise.
943 * arch-utils.c: Likewise.
944 * arm-linux-nat.c: Likewise.
945 * arm-linux-tdep.c: Likewise.
946 * arm-tdep.c: Likewise.
947 * arm-wince-tdep.c: Likewise.
948 * armbsd-tdep.c: Likewise.
949 * armnbsd-nat.c: Likewise.
950 * armnbsd-tdep.c: Likewise.
951 * armobsd-tdep.c: Likewise.
952 * avr-tdep.c: Likewise.
953 * ax-gdb.c: Likewise.
954 * ax-general.c: Likewise.
955 * bcache.c: Likewise.
956 * bfin-tdep.c: Likewise.
957 * breakpoint.c: Likewise.
958 * build-id.c: Likewise.
959 * buildsym.c: Likewise.
960 * c-exp.y: Likewise.
961 * c-lang.c: Likewise.
962 * c-typeprint.c: Likewise.
963 * c-valprint.c: Likewise.
964 * charset.c: Likewise.
965 * cli-out.c: Likewise.
966 * cli/cli-cmds.c: Likewise.
967 * cli/cli-decode.c: Likewise.
968 * cli/cli-dump.c: Likewise.
969 * cli/cli-interp.c: Likewise.
970 * cli/cli-logging.c: Likewise.
971 * cli/cli-script.c: Likewise.
972 * cli/cli-setshow.c: Likewise.
973 * cli/cli-utils.c: Likewise.
974 * coffread.c: Likewise.
975 * common/agent.c: Likewise.
976 * common/buffer.c: Likewise.
977 * common/buffer.h: Likewise.
978 * common/common-utils.c: Likewise.
979 * common/filestuff.c: Likewise.
980 * common/filestuff.c: Likewise.
981 * common/format.c: Likewise.
982 * common/print-utils.c: Likewise.
983 * common/rsp-low.c: Likewise.
984 * common/signals.c: Likewise.
985 * common/vec.h: Likewise.
986 * common/xml-utils.c: Likewise.
987 * core-regset.c: Likewise.
988 * corefile.c: Likewise.
989 * corelow.c: Likewise.
990 * cp-abi.c: Likewise.
991 * cp-name-parser.y: Likewise.
992 * cp-support.c: Likewise.
993 * cp-valprint.c: Likewise.
994 * cris-tdep.c: Likewise.
995 * d-exp.y: Likewise.
996 * darwin-nat.c: Likewise.
997 * dbxread.c: Likewise.
998 * dcache.c: Likewise.
999 * demangle.c: Likewise.
1000 * dicos-tdep.c: Likewise.
1001 * disasm.c: Likewise.
1002 * doublest.c: Likewise.
1003 * dsrec.c: Likewise.
1004 * dummy-frame.c: Likewise.
1005 * dwarf2-frame.c: Likewise.
1006 * dwarf2loc.c: Likewise.
1007 * dwarf2read.c: Likewise.
1008 * elfread.c: Likewise.
1009 * environ.c: Likewise.
1010 * eval.c: Likewise.
1011 * event-loop.c: Likewise.
1012 * exceptions.c: Likewise.
1013 * exec.c: Likewise.
1014 * expprint.c: Likewise.
1015 * f-exp.y: Likewise.
1016 * f-lang.c: Likewise.
1017 * f-typeprint.c: Likewise.
1018 * f-valprint.c: Likewise.
1019 * fbsd-nat.c: Likewise.
1020 * findcmd.c: Likewise.
1021 * findvar.c: Likewise.
1022 * fork-child.c: Likewise.
1023 * frame.c: Likewise.
1024 * frv-linux-tdep.c: Likewise.
1025 * frv-tdep.c: Likewise.
1026 * gdb.c: Likewise.
1027 * gdb_bfd.c: Likewise.
1028 * gdbarch.c: Likewise.
1029 * gdbarch.sh: Likewise.
1030 * gdbtypes.c: Likewise.
1031 * gnu-nat.c: Likewise.
1032 * gnu-v2-abi.c: Likewise.
1033 * gnu-v3-abi.c: Likewise.
1034 * go-exp.y: Likewise.
1035 * go-lang.c: Likewise.
1036 * go32-nat.c: Likewise.
1037 * guile/guile.c: Likewise.
1038 * guile/scm-auto-load.c: Likewise.
1039 * hppa-hpux-tdep.c: Likewise.
1040 * hppa-linux-nat.c: Likewise.
1041 * hppanbsd-tdep.c: Likewise.
1042 * hppaobsd-tdep.c: Likewise.
1043 * i386-cygwin-tdep.c: Likewise.
1044 * i386-dicos-tdep.c: Likewise.
1045 * i386-linux-tdep.c: Likewise.
1046 * i386-nto-tdep.c: Likewise.
1047 * i386-sol2-tdep.c: Likewise.
1048 * i386-tdep.c: Likewise.
1049 * i386bsd-tdep.c: Likewise.
1050 * i386gnu-nat.c: Likewise.
1051 * i386nbsd-tdep.c: Likewise.
1052 * i386obsd-tdep.c: Likewise.
1053 * i387-tdep.c: Likewise.
1054 * ia64-libunwind-tdep.c: Likewise.
1055 * ia64-linux-nat.c: Likewise.
1056 * inf-child.c: Likewise.
1057 * inf-ptrace.c: Likewise.
1058 * inf-ttrace.c: Likewise.
1059 * infcall.c: Likewise.
1060 * infcmd.c: Likewise.
1061 * inflow.c: Likewise.
1062 * infrun.c: Likewise.
1063 * interps.c: Likewise.
1064 * iq2000-tdep.c: Likewise.
1065 * irix5-nat.c: Likewise.
1066 * jv-exp.y: Likewise.
1067 * jv-lang.c: Likewise.
1068 * jv-typeprint.c: Likewise.
1069 * jv-valprint.c: Likewise.
1070 * language.c: Likewise.
1071 * linux-fork.c: Likewise.
1072 * linux-nat.c: Likewise.
1073 * lm32-tdep.c: Likewise.
1074 * m2-exp.y: Likewise.
1075 * m2-typeprint.c: Likewise.
1076 * m32c-tdep.c: Likewise.
1077 * m32r-linux-nat.c: Likewise.
1078 * m32r-linux-tdep.c: Likewise.
1079 * m32r-rom.c: Likewise.
1080 * m32r-tdep.c: Likewise.
1081 * m68hc11-tdep.c: Likewise.
1082 * m68k-tdep.c: Likewise.
1083 * m68kbsd-tdep.c: Likewise.
1084 * m68klinux-nat.c: Likewise.
1085 * m68klinux-tdep.c: Likewise.
1086 * m88k-tdep.c: Likewise.
1087 * machoread.c: Likewise.
1088 * macrocmd.c: Likewise.
1089 * main.c: Likewise.
1090 * mdebugread.c: Likewise.
1091 * mem-break.c: Likewise.
1092 * memattr.c: Likewise.
1093 * memory-map.c: Likewise.
1094 * mep-tdep.c: Likewise.
1095 * mi/mi-cmd-break.c: Likewise.
1096 * mi/mi-cmd-disas.c: Likewise.
1097 * mi/mi-cmd-env.c: Likewise.
1098 * mi/mi-cmd-stack.c: Likewise.
1099 * mi/mi-cmd-var.c: Likewise.
1100 * mi/mi-cmds.c: Likewise.
1101 * mi/mi-console.c: Likewise.
1102 * mi/mi-getopt.c: Likewise.
1103 * mi/mi-interp.c: Likewise.
1104 * mi/mi-main.c: Likewise.
1105 * mi/mi-parse.c: Likewise.
1106 * microblaze-rom.c: Likewise.
1107 * microblaze-tdep.c: Likewise.
1108 * mingw-hdep.c: Likewise.
1109 * minidebug.c: Likewise.
1110 * minsyms.c: Likewise.
1111 * mips-irix-tdep.c: Likewise.
1112 * mips-linux-tdep.c: Likewise.
1113 * mips-tdep.c: Likewise.
1114 * mips64obsd-tdep.c: Likewise.
1115 * mipsnbsd-tdep.c: Likewise.
1116 * mipsread.c: Likewise.
1117 * mn10300-linux-tdep.c: Likewise.
1118 * mn10300-tdep.c: Likewise.
1119 * monitor.c: Likewise.
1120 * moxie-tdep.c: Likewise.
1121 * mt-tdep.c: Likewise.
1122 * nat/linux-btrace.c: Likewise.
1123 * nat/linux-osdata.c: Likewise.
1124 * nat/linux-procfs.c: Likewise.
1125 * nat/linux-ptrace.c: Likewise.
1126 * nat/linux-waitpid.c: Likewise.
1127 * nbsd-tdep.c: Likewise.
1128 * nios2-linux-tdep.c: Likewise.
1129 * nto-procfs.c: Likewise.
1130 * nto-tdep.c: Likewise.
1131 * objc-lang.c: Likewise.
1132 * objfiles.c: Likewise.
1133 * opencl-lang.c: Likewise.
1134 * osabi.c: Likewise.
1135 * osdata.c: Likewise.
1136 * p-exp.y: Likewise.
1137 * p-lang.c: Likewise.
1138 * p-typeprint.c: Likewise.
1139 * parse.c: Likewise.
1140 * posix-hdep.c: Likewise.
1141 * ppc-linux-nat.c: Likewise.
1142 * ppc-sysv-tdep.c: Likewise.
1143 * ppcfbsd-tdep.c: Likewise.
1144 * ppcnbsd-tdep.c: Likewise.
1145 * ppcobsd-tdep.c: Likewise.
1146 * printcmd.c: Likewise.
1147 * procfs.c: Likewise.
1148 * prologue-value.c: Likewise.
1149 * python/py-auto-load.c: Likewise.
1150 * python/py-gdb-readline.c: Likewise.
1151 * ravenscar-thread.c: Likewise.
1152 * regcache.c: Likewise.
1153 * registry.c: Likewise.
1154 * remote-fileio.c: Likewise.
1155 * remote-m32r-sdi.c: Likewise.
1156 * remote-mips.c: Likewise.
1157 * remote-notif.c: Likewise.
1158 * remote-sim.c: Likewise.
1159 * remote.c: Likewise.
1160 * reverse.c: Likewise.
1161 * rs6000-aix-tdep.c: Likewise.
1162 * ser-base.c: Likewise.
1163 * ser-go32.c: Likewise.
1164 * ser-mingw.c: Likewise.
1165 * ser-pipe.c: Likewise.
1166 * ser-tcp.c: Likewise.
1167 * ser-unix.c: Likewise.
1168 * serial.c: Likewise.
1169 * sh-tdep.c: Likewise.
1170 * sh64-tdep.c: Likewise.
1171 * shnbsd-tdep.c: Likewise.
1172 * skip.c: Likewise.
1173 * sol-thread.c: Likewise.
1174 * solib-dsbt.c: Likewise.
1175 * solib-frv.c: Likewise.
1176 * solib-osf.c: Likewise.
1177 * solib-som.c: Likewise.
1178 * solib-spu.c: Likewise.
1179 * solib-target.c: Likewise.
1180 * solib.c: Likewise.
1181 * somread.c: Likewise.
1182 * source.c: Likewise.
1183 * sparc-nat.c: Likewise.
1184 * sparc-sol2-tdep.c: Likewise.
1185 * sparc-tdep.c: Likewise.
1186 * sparc64-tdep.c: Likewise.
1187 * sparc64fbsd-tdep.c: Likewise.
1188 * sparc64nbsd-tdep.c: Likewise.
1189 * sparcnbsd-tdep.c: Likewise.
1190 * spu-linux-nat.c: Likewise.
1191 * spu-multiarch.c: Likewise.
1192 * spu-tdep.c: Likewise.
1193 * stabsread.c: Likewise.
1194 * stack.c: Likewise.
1195 * std-regs.c: Likewise.
1196 * symfile.c: Likewise.
1197 * symmisc.c: Likewise.
1198 * symtab.c: Likewise.
1199 * target.c: Likewise.
1200 * thread.c: Likewise.
1201 * tilegx-linux-nat.c: Likewise.
1202 * tilegx-tdep.c: Likewise.
1203 * top.c: Likewise.
1204 * tracepoint.c: Likewise.
1205 * tui/tui-command.c: Likewise.
1206 * tui/tui-data.c: Likewise.
1207 * tui/tui-disasm.c: Likewise.
1208 * tui/tui-file.c: Likewise.
1209 * tui/tui-layout.c: Likewise.
1210 * tui/tui-out.c: Likewise.
1211 * tui/tui-regs.c: Likewise.
1212 * tui/tui-source.c: Likewise.
1213 * tui/tui-stack.c: Likewise.
1214 * tui/tui-win.c: Likewise.
1215 * tui/tui-windata.c: Likewise.
1216 * tui/tui-winsource.c: Likewise.
1217 * typeprint.c: Likewise.
1218 * ui-file.c: Likewise.
1219 * ui-out.c: Likewise.
1220 * user-regs.c: Likewise.
1221 * utils.c: Likewise.
1222 * v850-tdep.c: Likewise.
1223 * valarith.c: Likewise.
1224 * valops.c: Likewise.
1225 * valprint.c: Likewise.
1226 * value.c: Likewise.
1227 * varobj.c: Likewise.
1228 * vax-tdep.c: Likewise.
1229 * vaxnbsd-tdep.c: Likewise.
1230 * vaxobsd-tdep.c: Likewise.
1231 * windows-nat.c: Likewise.
1232 * xcoffread.c: Likewise.
1233 * xml-support.c: Likewise.
1234 * xstormy16-tdep.c: Likewise.
1235 * xtensa-linux-nat.c: Likewise.
1236
1237 2014-08-07 Gary Benson <gbenson@redhat.com>
1238
1239 * common/common-defs.h: Include gdb_assert.h.
1240 * aarch64-tdep.c: Do not include gdb_assert.h.
1241 * addrmap.c: Likewise.
1242 * aix-thread.c: Likewise.
1243 * alpha-linux-tdep.c: Likewise.
1244 * alpha-mdebug-tdep.c: Likewise.
1245 * alphanbsd-tdep.c: Likewise.
1246 * amd64-nat.c: Likewise.
1247 * amd64-tdep.c: Likewise.
1248 * amd64bsd-nat.c: Likewise.
1249 * amd64fbsd-nat.c: Likewise.
1250 * amd64fbsd-tdep.c: Likewise.
1251 * amd64nbsd-nat.c: Likewise.
1252 * amd64nbsd-tdep.c: Likewise.
1253 * amd64obsd-nat.c: Likewise.
1254 * amd64obsd-tdep.c: Likewise.
1255 * arch-utils.c: Likewise.
1256 * arm-tdep.c: Likewise.
1257 * armbsd-tdep.c: Likewise.
1258 * auxv.c: Likewise.
1259 * bcache.c: Likewise.
1260 * bfin-tdep.c: Likewise.
1261 * blockframe.c: Likewise.
1262 * breakpoint.c: Likewise.
1263 * bsd-kvm.c: Likewise.
1264 * bsd-uthread.c: Likewise.
1265 * buildsym.c: Likewise.
1266 * c-exp.y: Likewise.
1267 * c-lang.c: Likewise.
1268 * charset.c: Likewise.
1269 * cleanups.c: Likewise.
1270 * cli-out.c: Likewise.
1271 * cli/cli-decode.c: Likewise.
1272 * cli/cli-dump.c: Likewise.
1273 * cli/cli-logging.c: Likewise.
1274 * cli/cli-script.c: Likewise.
1275 * cli/cli-utils.c: Likewise.
1276 * coffread.c: Likewise.
1277 * common/common-utils.c: Likewise.
1278 * common/queue.h: Likewise.
1279 * common/signals.c: Likewise.
1280 * common/vec.h: Likewise.
1281 * complaints.c: Likewise.
1282 * completer.c: Likewise.
1283 * corelow.c: Likewise.
1284 * cp-abi.c: Likewise.
1285 * cp-name-parser.y: Likewise.
1286 * cp-namespace.c: Likewise.
1287 * cp-support.c: Likewise.
1288 * cris-tdep.c: Likewise.
1289 * dbxread.c: Likewise.
1290 * dictionary.c: Likewise.
1291 * doublest.c: Likewise.
1292 * dsrec.c: Likewise.
1293 * dummy-frame.c: Likewise.
1294 * dwarf2-frame-tailcall.c: Likewise.
1295 * dwarf2-frame.c: Likewise.
1296 * dwarf2expr.c: Likewise.
1297 * dwarf2loc.c: Likewise.
1298 * dwarf2read.c: Likewise.
1299 * eval.c: Likewise.
1300 * event-loop.c: Likewise.
1301 * exceptions.c: Likewise.
1302 * expprint.c: Likewise.
1303 * f-valprint.c: Likewise.
1304 * fbsd-nat.c: Likewise.
1305 * findvar.c: Likewise.
1306 * frame-unwind.c: Likewise.
1307 * frame.c: Likewise.
1308 * frv-tdep.c: Likewise.
1309 * gcore.c: Likewise.
1310 * gdb-dlfcn.c: Likewise.
1311 * gdb_bfd.c: Likewise.
1312 * gdbarch.c: Likewise.
1313 * gdbarch.sh: Likewise.
1314 * gdbtypes.c: Likewise.
1315 * gnu-nat.c: Likewise.
1316 * gnu-v3-abi.c: Likewise.
1317 * go-lang.c: Likewise.
1318 * guile/scm-exception.c: Likewise.
1319 * guile/scm-gsmob.c: Likewise.
1320 * guile/scm-lazy-string.c: Likewise.
1321 * guile/scm-math.c: Likewise.
1322 * guile/scm-pretty-print.c: Likewise.
1323 * guile/scm-safe-call.c: Likewise.
1324 * guile/scm-utils.c: Likewise.
1325 * guile/scm-value.c: Likewise.
1326 * h8300-tdep.c: Likewise.
1327 * hppa-hpux-nat.c: Likewise.
1328 * hppa-tdep.c: Likewise.
1329 * hppanbsd-tdep.c: Likewise.
1330 * hppaobsd-tdep.c: Likewise.
1331 * i386-darwin-nat.c: Likewise.
1332 * i386-darwin-tdep.c: Likewise.
1333 * i386-nto-tdep.c: Likewise.
1334 * i386-tdep.c: Likewise.
1335 * i386bsd-nat.c: Likewise.
1336 * i386fbsd-tdep.c: Likewise.
1337 * i386gnu-nat.c: Likewise.
1338 * i386nbsd-tdep.c: Likewise.
1339 * i386obsd-tdep.c: Likewise.
1340 * i387-tdep.c: Likewise.
1341 * ia64-libunwind-tdep.c: Likewise.
1342 * ia64-tdep.c: Likewise.
1343 * inf-ptrace.c: Likewise.
1344 * inf-ttrace.c: Likewise.
1345 * infcall.c: Likewise.
1346 * infcmd.c: Likewise.
1347 * infrun.c: Likewise.
1348 * inline-frame.c: Likewise.
1349 * interps.c: Likewise.
1350 * jv-lang.c: Likewise.
1351 * jv-typeprint.c: Likewise.
1352 * linux-fork.c: Likewise.
1353 * linux-nat.c: Likewise.
1354 * linux-thread-db.c: Likewise.
1355 * m32c-tdep.c: Likewise.
1356 * m32r-linux-nat.c: Likewise.
1357 * m32r-tdep.c: Likewise.
1358 * m68k-tdep.c: Likewise.
1359 * m68kbsd-nat.c: Likewise.
1360 * m68kbsd-tdep.c: Likewise.
1361 * m88k-tdep.c: Likewise.
1362 * machoread.c: Likewise.
1363 * macroexp.c: Likewise.
1364 * macrotab.c: Likewise.
1365 * maint.c: Likewise.
1366 * mdebugread.c: Likewise.
1367 * memory-map.c: Likewise.
1368 * mep-tdep.c: Likewise.
1369 * mi/mi-common.c: Likewise.
1370 * microblaze-tdep.c: Likewise.
1371 * mingw-hdep.c: Likewise.
1372 * mips-linux-nat.c: Likewise.
1373 * mips-linux-tdep.c: Likewise.
1374 * mips-tdep.c: Likewise.
1375 * mips64obsd-tdep.c: Likewise.
1376 * mipsnbsd-tdep.c: Likewise.
1377 * mn10300-linux-tdep.c: Likewise.
1378 * mn10300-tdep.c: Likewise.
1379 * moxie-tdep.c: Likewise.
1380 * mt-tdep.c: Likewise.
1381 * nat/linux-btrace.c: Likewise.
1382 * nat/linux-osdata.c: Likewise.
1383 * nat/linux-ptrace.c: Likewise.
1384 * nat/mips-linux-watch.c: Likewise.
1385 * nios2-linux-tdep.c: Likewise.
1386 * nios2-tdep.c: Likewise.
1387 * objc-lang.c: Likewise.
1388 * objfiles.c: Likewise.
1389 * obsd-nat.c: Likewise.
1390 * opencl-lang.c: Likewise.
1391 * osabi.c: Likewise.
1392 * parse.c: Likewise.
1393 * ppc-linux-nat.c: Likewise.
1394 * ppc-sysv-tdep.c: Likewise.
1395 * ppcfbsd-nat.c: Likewise.
1396 * ppcfbsd-tdep.c: Likewise.
1397 * ppcnbsd-nat.c: Likewise.
1398 * ppcnbsd-tdep.c: Likewise.
1399 * ppcobsd-nat.c: Likewise.
1400 * ppcobsd-tdep.c: Likewise.
1401 * printcmd.c: Likewise.
1402 * procfs.c: Likewise.
1403 * prologue-value.c: Likewise.
1404 * psymtab.c: Likewise.
1405 * python/py-lazy-string.c: Likewise.
1406 * python/py-value.c: Likewise.
1407 * regcache.c: Likewise.
1408 * reggroups.c: Likewise.
1409 * registry.c: Likewise.
1410 * remote-sim.c: Likewise.
1411 * remote.c: Likewise.
1412 * rs6000-aix-tdep.c: Likewise.
1413 * rs6000-tdep.c: Likewise.
1414 * s390-linux-tdep.c: Likewise.
1415 * score-tdep.c: Likewise.
1416 * ser-base.c: Likewise.
1417 * ser-mingw.c: Likewise.
1418 * sh-tdep.c: Likewise.
1419 * sh64-tdep.c: Likewise.
1420 * solib-darwin.c: Likewise.
1421 * solib-spu.c: Likewise.
1422 * solib-svr4.c: Likewise.
1423 * source.c: Likewise.
1424 * sparc-nat.c: Likewise.
1425 * sparc-sol2-tdep.c: Likewise.
1426 * sparc-tdep.c: Likewise.
1427 * sparc64-sol2-tdep.c: Likewise.
1428 * sparc64-tdep.c: Likewise.
1429 * sparc64fbsd-tdep.c: Likewise.
1430 * sparc64nbsd-tdep.c: Likewise.
1431 * sparc64obsd-tdep.c: Likewise.
1432 * sparcnbsd-tdep.c: Likewise.
1433 * sparcobsd-tdep.c: Likewise.
1434 * spu-multiarch.c: Likewise.
1435 * spu-tdep.c: Likewise.
1436 * stabsread.c: Likewise.
1437 * stack.c: Likewise.
1438 * symfile.c: Likewise.
1439 * symtab.c: Likewise.
1440 * target-descriptions.c: Likewise.
1441 * target-memory.c: Likewise.
1442 * target.c: Likewise.
1443 * tic6x-linux-tdep.c: Likewise.
1444 * tic6x-tdep.c: Likewise.
1445 * tilegx-linux-nat.c: Likewise.
1446 * tilegx-tdep.c: Likewise.
1447 * top.c: Likewise.
1448 * tramp-frame.c: Likewise.
1449 * tui/tui-out.c: Likewise.
1450 * tui/tui-winsource.c: Likewise.
1451 * ui-out.c: Likewise.
1452 * user-regs.c: Likewise.
1453 * utils.c: Likewise.
1454 * v850-tdep.c: Likewise.
1455 * valops.c: Likewise.
1456 * value.c: Likewise.
1457 * varobj.c: Likewise.
1458 * vax-nat.c: Likewise.
1459 * xml-syscall.c: Likewise.
1460 * xml-tdesc.c: Likewise.
1461 * xstormy16-tdep.c: Likewise.
1462 * xtensa-linux-nat.c: Likewise.
1463 * xtensa-tdep.c: Likewise.
1464
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1466
1467 * common/common-defs.h: Include common-utils.h.
1468 * defs.h: Do not include common-utils.h.
1469 * common/gdb_assert.h: Likewise.
1470 * darwin-nat.h: Likewise.
1471 * nat/linux-btrace.c: Likewise.
1472 * target/waitstatus.h: Likewise.
1473
1474 2014-08-07 Gary Benson <gbenson@redhat.com>
1475
1476 * common/common-defs.h: Include ptid.h.
1477 * defs.h: Do not include ptid.h.
1478 * inferior.h: Likewise.
1479 * infrun.h: Likewise.
1480 * nat/linux-btrace.h: Likewise.
1481 * nat/linux-osdata.h: Likewise.
1482 * target/waitstatus.h: Likewise.
1483
1484 2014-08-07 Gary Benson <gbenson@redhat.com>
1485
1486 * common/common-defs.h: Include gdb_locale.h.
1487 * defs.h: Do not include gdb_locale.h.
1488
1489 2014-08-07 Gary Benson <gbenson@redhat.com>
1490
1491 * common/common-defs.h: Include gdb/signals.h.
1492 * defs.h: Do not include gdb/signals.h.
1493
1494 2014-08-07 Gary Benson <gbenson@redhat.com>
1495
1496 * common/common-defs.h: Include pathmax.h.
1497 * defs.h: Do not include pathmax.h.
1498
1499 2014-08-07 Gary Benson <gbenson@redhat.com>
1500
1501 * common/common-defs.h: Include libiberty.h.
1502 * defs.h: Do not include libiberty.h.
1503 * common/queue.h: Likewise.
1504 * cp-name-parser.y: Likewise.
1505 * mi/mi-cmd-catch.c: Likewise.
1506 * python/python.c: Likewise.
1507
1508 2014-08-07 Gary Benson <gbenson@redhat.com>
1509
1510 * common/common-defs.h: Include ansidecl.h.
1511 * defs.h: Do not include ansidecl.h.
1512 * common/buffer.h: Likewise.
1513 * common/common-utils.h: Likewise.
1514
1515 2014-08-07 Gary Benson <gbenson@redhat.com>
1516
1517 * common/common-defs.h: Include stddef.h.
1518 * defs.h: Do not include stddef.h.
1519 * common/common-utils.h: Likewise.
1520 * amd64fbsd-nat.c: Likewise.
1521 * bcache.c: Likewise.
1522 * charset.c: Likewise.
1523 * common/buffer.h: Likewise.
1524 * common/vec.h: Likewise.
1525 * i386bsd-nat.c: Likewise.
1526 * nat/linux-btrace.h: Likewise.
1527 * ppcfbsd-nat.c: Likewise.
1528 * ppcnbsd-tdep.h: Likewise.
1529 * ppcobsd-nat.c: Likewise.
1530 * ppcobsd-tdep.h: Likewise.
1531 * python/py-gdb-readline.c: Likewise.
1532
1533 2014-08-07 Gary Benson <gbenson@redhat.com>
1534
1535 * common/common-defs.h: Include stdarg.h.
1536 * defs.h: Do not include stdarg.h.
1537 * ada-lang.c: Likewise.
1538 * common/common-utils.h: Likewise.
1539 * guile/scm-string.c: Likewise.
1540 * guile/scm-utils.c: Likewise.
1541 * m32c-tdep.c: Likewise.
1542
1543 2014-08-07 Gary Benson <gbenson@redhat.com>
1544
1545 * common/common-defs.h: Include stdlib.h.
1546 * defs.h: Do not include stdlib.h.
1547 * addrmap.c: Likewise.
1548 * bcache.c: Likewise.
1549 * common/buffer.c: Likewise.
1550 * common/common-utils.c: Likewise.
1551 * cp-name-parser.y: Likewise.
1552 * go32-nat.c: Likewise.
1553 * mn10300-linux-tdep.c: Likewise.
1554 * nat/linux-osdata.c: Likewise.
1555 * tui/tui.c: Likewise.
1556 * windows-nat.c: Likewise.
1557
1558 2014-08-07 Gary Benson <gbenson@redhat.com>
1559
1560 * common/common-defs.h: Include stdio.h.
1561 * defs.h: Do not include stdio.h.
1562 * ada-lang.c: Likewise.
1563 * common/buffer.c: Likewise.
1564 * common/common-utils.c: Likewise.
1565 * cp-name-parser.y: Likewise.
1566 * gnu-nat.c: Likewise.
1567 * go32-nat.c: Likewise.
1568 * i386gnu-nat.c: Likewise.
1569 * proc-api.c: Likewise.
1570 * proc-events.c: Likewise.
1571 * proc-flags.c: Likewise.
1572 * proc-why.c: Likewise.
1573 * python/python-internal.h: Likewise.
1574 * target-memory.c: Likewise.
1575 * tui/tui-io.c: Likewise.
1576 * tui/tui.c: Likewise.
1577
1578 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1579
1580 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1581 (scan_dyntag_auxv): Same.
1582
1583 2014-08-06 Yao Qi <yao@codesourcery.com>
1584
1585 * amd64-linux-nat.c: Remove duplicated include
1586 "x86-linux-nat.h".
1587 * i386-linux-nat.c: Likewise.
1588
1589 2014-08-06 Yao Qi <yao@codesourcery.com>
1590
1591 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1592 operand" with "Special opcode" in comments.
1593
1594 2014-08-05 Gary Benson <gbenson@redhat.com>
1595
1596 * interps.c (initialize_interps): Remove prototype.
1597 (interpreter_initialized): Remove static global.
1598 (interp_add): Do not call initialize_interps.
1599 (initialize_interps): Remove function.
1600
1601 2014-08-05 Gary Benson <gbenson@redhat.com>
1602
1603 * utils.c (vwarning): Remove spurious va_end.
1604
1605 2014-08-05 Alan Modra <amodra@gmail.com>
1606
1607 * charset.c (convert_between_encodings): Cast result of obstack_base.
1608 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1609 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1610 (read_unwind_info): Use size_t for some locals.
1611 * jit.c (finalize_symtab): Likewise.
1612 * utils.c (hashtab_obstack_allocate): Likewise.
1613 * symmisc.c (print_objfile_statistics): Update format strings.
1614
1615 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1616
1617 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1618 (Changes in GDB 7.8): ... here.
1619
1620 2014-08-04 Tom Tromey <tromey@redhat.com>
1621
1622 * target.c (set_targetdebug): New function.
1623 (initialize_targets): Pass set_targetdebug when creating "set
1624 debug target".
1625
1626 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1627
1628 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1629 if detecting a variable-sized field that is not the last field.
1630 Fix struct type length computation.
1631
1632 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1633
1634 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1635 Add debug trace.
1636
1637 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1638
1639 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1640 Remove "+ 8" offset in computation of CHAIN_VMA.
1641
1642 2014-07-31 Doug Evans <dje@google.com>
1643
1644 * inflow.c (child_terminal_inferior): Add comment.
1645 (child_terminal_ours_for_output): Add comment.
1646 (child_terminal_ours): Add comment.
1647 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1648 (linux_nat_terminal_ours): Add comment.
1649
1650 2014-07-31 Gary Benson <gbenson@redhat.com>
1651
1652 * common/btrace-common.h: Do not include defs.h or server.h.
1653 * nat/mips-linux-watch.h: Likewise.
1654 * gdb-dlfcn.h: Do not include defs.h.
1655 * tracefile.h: Likewise.
1656
1657 2014-07-30 Roland McGrath <mcgrathr@google.com>
1658
1659 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1660
1661 2014-07-30 Tom Tromey <tromey@redhat.com>
1662
1663 * bsd-kvm.c (bsd_kvm_open): Constify.
1664 * corelow.c (core_open): Constify.
1665 * ctf.c (ctf_open): Constify.
1666 * dbug-rom.c (dbug_open): Constify.
1667 * exec.c (exec_open): Constify.
1668 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1669 * microblaze-rom.c (picobug_open): Constify.
1670 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1671 Constify.
1672 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1673 * record-btrace.c (record_btrace_open): Constify.
1674 * record-full.c (record_full_core_open_1, record_full_open_1)
1675 (record_full_open): Constify.
1676 * remote-m32r-sdi.c (m32r_open): Constify.
1677 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1678 (rockhopper_open, lsi_open): Constify.
1679 * remote-sim.c (gdbsim_open): Constify.
1680 * remote.c (remote_open, extended_remote_open, remote_open_1):
1681 Constify.
1682 * target.h (struct target_ops) <to_open>: Make "arg" const.
1683 * tracefile-tfile.c (tfile_open): Constify.
1684
1685 2014-07-30 Tom Tromey <tromey@redhat.com>
1686
1687 * breakpoint.c (map_breakpoint_numbers): Update.
1688 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1689 (get_number_const): New function.
1690 (get_number): Rewrite using get_number_const.
1691 (init_number_or_range): Make "string" const.
1692 (number_is_in_list): Make "list" const.
1693 * cli/cli-utils.h (get_number_const): Declare.
1694 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1695 (init_number_or_range, number_is_in_list): Update.
1696 * printcmd.c (map_display_numbers): Update.
1697 * value.c (value_from_history_ref): Constify.
1698 * value.h (value_from_history_ref): Update.
1699
1700 2014-07-30 Tom Tromey <tromey@redhat.com>
1701
1702 * corefile.c (hook_type, call_extra_exec_file_hooks)
1703 (specify_exec_file_hook): Constify.
1704 * exec.c (exec_file_attach): Make "filename" const.
1705 * gdbcore.h (deprecated_exec_file_display_hook)
1706 (specify_exec_file_hook, exec_file_attach): Constify.
1707 * main.c (captured_main): Use catch_command_errors_const.
1708
1709 2014-07-30 Tom Tromey <tromey@redhat.com>
1710
1711 * target.c (open_target): New function.
1712 (add_target_with_completer, add_deprecated_target_alias): Use
1713 set_cmd_sfunc, set_cmd_context.
1714 (debug_to_open): Remove.
1715 (setup_target_debug): Update.
1716
1717 2014-07-30 Yao Qi <yao@codesourcery.com>
1718
1719 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1720 comments.
1721 * parse.c (exp_iterate): Update comments.
1722
1723 2014-07-30 Gary Benson <gbenson@redhat.com>
1724
1725 * common/common-defs.h: New file.
1726 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1727 * defs.h: Include common-defs.h.
1728 Do not include config.h or build-gnulib/config.h.
1729
1730 2014-07-30 Gary Benson <gbenson@redhat.com>
1731
1732 * common/common-utils.h: Do not include config.h.
1733 * nat/linux-btrace.h: Likewise.
1734
1735 2014-07-30 Gary Benson <gbenson@redhat.com>
1736
1737 * btrace.c: Include defs.h.
1738 * common/ptid.c: Include defs.h or server.h as appropriate.
1739 * nat/mips-linux-watch.c: Likewise.
1740
1741 2014-07-29 Tom Tromey <tromey@redhat.com>
1742
1743 * target.c (target_is_pushed): Simplify.
1744
1745 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1746
1747 GDB 7.8 released.
1748
1749 2014-07-29 Yao Qi <yao@codesourcery.com>
1750
1751 PR gdb/17206
1752 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1753
1754 2014-07-28 Doug Evans <xdje42@gmail.com>
1755
1756 PR guile/17203
1757 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1758 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1759 parameters.
1760
1761 2014-07-28 Will Newton <will.newton@linaro.org>
1762
1763 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1764 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1765 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1766 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1767 (THUMB2_EABI_SYSCALL): Likewise.
1768 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1769 struct tramp_frame.
1770 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1771 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1772
1773 2014-07-27 Doug Evans <xdje42@gmail.com>
1774
1775 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1776
1777 2014-07-27 Doug Evans <xdje42@gmail.com>
1778
1779 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1780
1781 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1782 Doug Evans <xdje42@gmail.com>
1783
1784 PR guile/17146
1785 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1786 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1787 * configure.ac: Try to use guild to compile an scm file, if it fails
1788 then disable guile support.
1789 * configure: Regenerate.
1790 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1791 GUILE_FILE_LIST.
1792 (GUILE_COMPILED_FILES): New variable.
1793 (GUILE_FILES) Update.
1794 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1795 (stamp-guile): Compile scm files.
1796 * guile/guile.c (boot_guile_support): New function.
1797 (standard_throw_args_p): New function.
1798 (print_standard_throw_error, print_throw_error): New functions.
1799 (handle_boot_error): New function.
1800 (initialize_scheme_side): Rewrite to call boot_guile_support.
1801 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1802 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1803
1804 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1805 Doug Evans <xdje42@gmail.com>
1806
1807 PR guile/17146
1808 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1809 * guile/lib/gdb/support.scm: New file.
1810 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1811 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1812 All uses updated.
1813 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1814 All uses updated.
1815 (%assert-type): Ditto, and renamed to assert-type.
1816 (%exception-print-style): Delete.
1817
1818 2014-07-26 Doug Evans <xdje42@gmail.com>
1819
1820 PR build/17105
1821 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1822 * configure: Regenerate.
1823 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1824 PYTHON_FILES.
1825 (PYTHON_FILES): New variable.
1826 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1827 (GUILE_FILES): New variable.
1828 (stamp-python, install-python, uninstall-python): Handle empty
1829 file list.
1830 (stamp-guile, install-guile, uninstall-guile): Ditto.
1831
1832 2014-07-26 Doug Evans <xdje42@gmail.com>
1833
1834 PR guile/17177
1835 * guile/lib/gdb.scm (pretty-printers): Export.
1836 (set-pretty-printers!): Export.
1837 * guile/lib/gdb/printing.scm (gdb module): Update.
1838 (prepend-pretty-printer!, append-pretty-printer!): Update.
1839 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1840 (pretty_printer_list_var): Delete.
1841 (pretty_printer_list): New static global.
1842 (gdbscm_pretty_printers): New function.
1843 (gdbscm_set_pretty_printers_x): New function.
1844 (ppscm_find_pretty_printer_from_gdb): Update.
1845 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1846 (gdbscm_initialize_pretty_printers): Update.
1847
1848 2014-07-26 Doug Evans <xdje42@gmail.com>
1849
1850 PR 17185
1851 * configure.ac: Add check for header gc/gc.h.
1852 Add check for function setenv.
1853 * configure: Regenerate.
1854 * config.in: Regenerate.
1855 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1856
1857 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1858
1859 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1860 variation in gdbarch matching.
1861
1862 2014-07-25 Tom Tromey <tromey@redhat.com>
1863
1864 * exec.c (using_exec_ops): Remove.
1865 (exec_close_1): Update. Remove extraneous block, reindent.
1866 (add_target_sections): Use target_is_pushed.
1867
1868 2014-07-25 Pedro Alves <palves@redhat.com>
1869
1870 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1871 * monitor.c (monitor_create_inferior): Likewise.
1872 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1873 * remote-sim.c (gdbsim_create_inferior): Likewise.
1874 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1875 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1876 * windows-nat.c (do_initial_windows_stuff): Likewise.
1877
1878 2014-07-25 Pedro Alves <palves@redhat.com>
1879
1880 * NEWS: Mention signal passing and "signal" command changes.
1881 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1882 comment.
1883 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1884 call.
1885 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1886 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1887 (jump_command): Adjust clear_proceed_status call.
1888 (signal_command): Warn if other thread that are resumed have
1889 signals that will be delivered. Adjust clear_proceed_status call.
1890 (until_next_command, finish_command)
1891 (proceed_after_attach_callback, attach_command_post_wait)
1892 (attach_command): Adjust clear_proceed_status call.
1893 * infrun.c (proceed_after_vfork_done): Likewise.
1894 (proceed_after_attach_callback): Adjust comment.
1895 (clear_proceed_status_thread): Clear stop_signal if not in pass
1896 state.
1897 (clear_proceed_status_callback): Delete.
1898 (clear_proceed_status): New 'step' parameter. Only clear the
1899 proceed status of threads the command being prepared is about to
1900 resume.
1901 (proceed): If passed in an explicit signal, override stop_signal
1902 with it. Don't pass the last stop signal to the thread we're
1903 resuming.
1904 (init_wait_for_inferior): Adjust clear_proceed_status call.
1905 (switch_back_to_stepped_thread): Clear the signal if it should not
1906 be passed.
1907 * infrun.h (clear_proceed_status): New 'step' parameter.
1908 (user_visible_resume_ptid): Add comment.
1909 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1910 signal is in pass state.
1911 * remote.c (append_pending_thread_resumptions): Likewise.
1912 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1913
1914 2014-07-25 Tom Tromey <tromey@redhat.com>
1915
1916 * target.h (target_stopped_data_address)
1917 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1918 parentheses.
1919
1920 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1921
1922 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1923 comments.
1924 (avr_pointer_to_address): Likewise.
1925
1926 2014-07-24 Tom Tromey <tromey@redhat.com>
1927
1928 * monitor.c (compile_pattern): Update.
1929 * target.h (struct target_ops) <to_shortname, to_longname,
1930 to_doc>: Now const.
1931
1932 2014-07-24 Tom Tromey <tromey@redhat.com>
1933
1934 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1935 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1936 (add_info_alias, add_com): Make "doc" const.
1937 (print_doc_line): Make "str" const.
1938 (delete_cmd): Update.
1939 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1940 (print_doc_line): Update.
1941 * cli/cli-script.c (document_command): Update.
1942 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1943 (add_com, add_info, add_info_alias): Update.
1944 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1945 * python/py-cmd.c (cmdpy_destroyer): Update.
1946
1947 2014-07-24 Tom Tromey <tromey@redhat.com>
1948
1949 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1950 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1951 (help_cmd_list): Constify.
1952 (lookup_cmd): Update.
1953 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1954 const.
1955 (help_cmd_list, apropos_cmd): Update.
1956 * cli/cli-script.c (show_user): Update.
1957 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1958 * cli/cli-setshow.h (cmd_show_list): Update.
1959 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1960 (cmd_show_list): Update.
1961 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1962 * python/py-cmd.c (cmdpy_destroyer): Update.
1963
1964 2014-07-24 Tom Tromey <tromey@redhat.com>
1965
1966 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1967 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1968 const.
1969 * command.h (deprecate_cmd): Update.
1970 * maint.c (maintenance_do_deprecate): Add casts.
1971
1972 2014-07-24 Tom Tromey <tromey@redhat.com>
1973
1974 * cli/cli-decode.c (help_cmd): Make parameter "const".
1975 * cli/cli-decode.h (help_cmd): Update.
1976
1977 2014-07-24 Tom Tromey <tromey@redhat.com>
1978
1979 * stack.c (up_silently_base, down_silently_base): Make argument
1980 const.
1981
1982 2014-07-24 Tom Tromey <tromey@redhat.com>
1983
1984 * solib.c (solib_add): Make "pattern" const.
1985 * solib.h (solib_add): Update.
1986
1987 2014-07-24 Tom Tromey <tromey@redhat.com>
1988
1989 * remote.c (remote_serial_open, print_packet, putpkt)
1990 (putpkt_binary): Constify.
1991 * remote.h (putpkt): Update.
1992
1993 2014-07-24 Tom Tromey <tromey@redhat.com>
1994
1995 * monitor.c (monitor_open): Make "args" const.
1996 * monitor.h (monitor_open): Update.
1997
1998 2014-07-24 Tom Tromey <tromey@redhat.com>
1999
2000 * maint.c (match_bfd_flags): Make "string" const.
2001 (print_bfd_section_info): Remove casts.
2002 (print_objfile_section_info): Make "string" const.
2003
2004 2014-07-24 Tom Tromey <tromey@redhat.com>
2005
2006 * inf-child.c (inf_child_open_target): Make "arg" const.
2007 * inf-child.h (inf_child_open_target): Update.
2008
2009 2014-07-24 Tom Tromey <tromey@redhat.com>
2010
2011 * environ.c (unset_in_environ): Make "var" const.
2012 * environ.h (unset_in_environ): Update.
2013
2014 2014-07-24 Tom Tromey <tromey@redhat.com>
2015
2016 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2017 Make "cmd" const.
2018 (scan_filename_with_cleanup): Likewise.
2019 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2020 Make arguments const.
2021 (restore_command): Update.
2022
2023 2014-07-24 Pedro Alves <palves@redhat.com>
2024
2025 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2026
2027 2014-07-24 Tom Tromey <tromey@redhat.com>
2028 Gary Benson <gbenson@redhat.com>
2029
2030 * nat/linux-ptrace.c (additional_flags): New global.
2031 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2032 additional_flags; don't check GDBSERVER.
2033 (linux_ptrace_set_additional_flags): New function.
2034 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2035 Declare.
2036 * linux-nat.c (_initialize_linux_nat): Call
2037 linux_ptrace_set_additional_flags.
2038
2039 2014-07-24 Tom Tromey <tromey@redhat.com>
2040
2041 * make-target-delegates (munge_type, write_debugmethod): New
2042 functions.
2043 (debug_names): New global.
2044 ($TARGET_DEBUG_PRINTER): New global.
2045 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2046 name.
2047 Write debug methods. Generate init_debug_target.
2048 * target-debug.h: New file.
2049 * target-delegates.c: Rebuild.
2050 * target.c: Include target-debug.h.
2051 (debug_target): Hoist definition.
2052 (target_kill, target_get_section_table, target_memory_map)
2053 (target_flash_erase, target_flash_done, target_detach)
2054 (target_disconnect, target_wait, target_resume)
2055 (target_pass_signals, target_program_signals, target_follow_fork)
2056 (target_mourn_inferior, target_search_memory)
2057 (target_thread_address_space, target_close)
2058 (target_find_new_threads, target_core_of_thread)
2059 (target_verify_memory, target_insert_mask_watchpoint)
2060 (target_remove_mask_watchpoint): Remove targetdebug code.
2061 (debug_to_post_attach, debug_to_prepare_to_store)
2062 (debug_to_files_info, debug_to_insert_breakpoint)
2063 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2064 (debug_to_region_ok_for_hw_watchpoint)
2065 (debug_to_can_accel_watchpoint_condition)
2066 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2067 (debug_to_watchpoint_addr_within_range)
2068 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2069 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2070 (debug_to_terminal_init, debug_to_terminal_inferior)
2071 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2072 (debug_to_terminal_save_ours, debug_to_terminal_info)
2073 (debug_to_load, debug_to_post_startup_inferior)
2074 (debug_to_insert_fork_catchpoint)
2075 (debug_to_remove_fork_catchpoint)
2076 (debug_to_insert_vfork_catchpoint)
2077 (debug_to_remove_vfork_catchpoint)
2078 (debug_to_insert_exec_catchpoint)
2079 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2080 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2081 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2082 (setup_target_debug): Call init_debug_target.
2083 * target.h (TARGET_DEBUG_PRINTER): New macro.
2084 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2085 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2086
2087 2014-07-24 Gary Benson <gbenson@redhat.com>
2088
2089 * exceptions.h (throw_vfatal): Renamed to...
2090 (throw_vquit): New declaration.
2091 (throw_quit): Likewise.
2092 * exceptions.c (throw_vfatal): Renamed to...
2093 (throw_vquit): New function.
2094 (throw_quit): Likewise.
2095 (throw_error): Call throw_verror rather than throw_it.
2096 * utils.h (vfatal): Removed.
2097 (fatal): Likewise.
2098 * utils.c (vfatal): Removed.
2099 (fatal): Likewise.
2100 (internal_verror): Replaced call to fatal with call to throw_quit.
2101 (quit): Replaced calls to fatal with calls to throw_quit.
2102
2103 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2104
2105 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2106 target_read_code.
2107
2108 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2109
2110 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2111 less than zero in conditional expression.
2112
2113 2014-07-23 Tom Tromey <tromey@redhat.com>
2114
2115 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2116 ($INTRO_PART): Don't match whitespace.
2117 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2118 argument matching.
2119 ($METHOD): Add $METHOD_TRAILER.
2120 (trim): Rewrite.
2121 (scan_target_h): New sub.
2122 Change main loop not to collect state.
2123 * target-delegates.c: Rebuild.
2124
2125 2014-07-23 Gary Benson <gbenson@redhat.com>
2126
2127 * cp-support.c (gdb_demangle): Fix build on systems without
2128 sigaltstack.
2129
2130 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2133 for reference entry value target data value.
2134
2135 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2136
2137 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2138 value_available_contents_eq.
2139
2140 2014-07-22 Pedro Alves <palves@redhat.com>
2141
2142 * value.c (allocate_optimized_out_value): Don't mark value as
2143 non-lazy.
2144
2145 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2146
2147 * MAINTAINERS (Write After Approval): Update my email address.
2148
2149 2014-07-20 Doug Evans <dje@google.com>
2150
2151 PR server/17147
2152 * remote.c (putpkt_binary): Add text to error message.
2153
2154 2014-07-20 Yao Qi <yao@codesourcery.com>
2155
2156 * eval.c: Remove "Chill" from comments.
2157 * gdbtypes.h: Likewise.
2158 * symtab.h: Likewise.
2159
2160 2014-07-20 Yao Qi <yao@codesourcery.com>
2161
2162 * std-operator.def: Update comments to TERNOP_SLICE.
2163
2164 2014-07-20 Yao Qi <yao@codesourcery.com>
2165
2166 * std-operator.def: Remove BINOP_RANGE.
2167 * breakpoint.c (watchpoint_exp_is_const): Update.
2168 * expprint.c (dump_subexp_body_standard): Likewise.
2169 * eval.c (init_array_element): Remove dead code.
2170 (evaluate_subexp_standard): Likewise.
2171
2172 2014-07-20 Yao Qi <yao@codesourcery.com>
2173
2174 * std-operator.def: Remove BINOP_IN.
2175 * breakpoint.c (watchpoint_exp_is_const): Update.
2176 * eval.c (evaluate_subexp_standard): Likewise.
2177 * expprint.c (dump_subexp_body_standard): Likewise.
2178
2179 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2180
2181 * microblaze-tdep.c (microblaze_register_names): Add
2182 the rshr and rslr register names.
2183 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2184 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2185 Use of tdesc_numbered_register. Use of
2186 microblaze_register_g_packet_guesses. Use of
2187 tdesc_use_registers. Use of set_gdbarch_register_type.
2188 (microblaze_register_g_packet_guesses): New.
2189 * microblaze-tdep.h (microblaze_reg_num): Add
2190 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2191 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2192 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2193 * features/microblaze-core.xml: New file.
2194 * features/microblaze-stack-protect.xml: New file.
2195 * features/microblaze-with-stack-protect.c: New file.
2196 * features/microblaze-with-stack-protect.xml: New file.
2197 * features/microblaze.xml: New file.
2198 * features/microblaze.c: New file.
2199 * features/Makefile (microblaze-with-stack-protect): Add
2200 microblaze-with-stack-protect microblaze and microblaze-expedite.
2201 * regformats/microblaze-with-stack-protect.dat: New file.
2202 * regformats/microblaze.dat: New file.
2203 * doc/gdb.texinfo (MicroBlaze Features): Added.
2204
2205 2014-07-18 Tom Tromey <tromey@redhat.com>
2206
2207 * exec.c (exec_ops): Now static.
2208 * exec.h (exec_ops): Don't declare.
2209
2210 2014-07-18 Tom Tromey <tromey@redhat.com>
2211
2212 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2213 to find_target_beneath.
2214 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2215 find_target_beneath.
2216 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2217
2218 2014-07-18 Tom Tromey <tromey@redhat.com>
2219
2220 PR gdb/17130:
2221 * utils.c (quit): Use target_supports_terminal_ours.
2222 * target.h (target_supports_terminal_ours): Declare.
2223 * target.c (target_supports_delete_record): Don't check
2224 to_delete_record against NULL.
2225 (target_supports_terminal_ours): New function.
2226
2227 2014-07-18 Tom Tromey <tromey@redhat.com>
2228
2229 PR gdb/17130:
2230 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2231 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2232 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2233 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2234 * windows-nat.c (windows_xfer_partial): Always delegate.
2235 * record-btrace.c (record_btrace_xfer_partial): Simplify
2236 delegation.
2237 (record_btrace_fetch_registers, record_btrace_store_registers)
2238 (record_btrace_prepare_to_store, record_btrace_resume)
2239 (record_btrace_wait, record_btrace_find_new_threads)
2240 (record_btrace_thread_alive): Likewise.
2241 * procfs.c (procfs_xfer_partial): Always delegate.
2242 * corelow.c (core_xfer_partial): Always delegate.
2243 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2244
2245 2014-07-18 Tom Tromey <tromey@redhat.com>
2246
2247 * exec.c (exec_make_note_section): Move earlier.
2248
2249 2014-07-17 Doug Evans <dje@google.com>
2250
2251 PR gdb/17170
2252 * maint.c (count_symtabs_and_blocks): Handle NULL
2253 current_program_space.
2254 (report_command_stats): Check global enabled flag in addition to
2255 recorded enabled flag.
2256 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2257
2258 2014-07-16 Pedro Alves <palves@redhat.com>
2259
2260 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2261
2262 2014-07-16 Tom Tromey <tromey@redhat.com>
2263
2264 * target.h (struct target_ops) <to_delete_record>: Reformat
2265 comment.
2266
2267 2014-07-16 Tom Tromey <tromey@redhat.com>
2268
2269 * target-delegates.c: Rebuild.
2270
2271 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2272
2273 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2274 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2275 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2276 (avr_pointer_to_address): Likewise.
2277 (avr_address_class_type_flags): New function.
2278 (avr_address_class_type_flags_to_name): Likewise.
2279 (avr_address_class_name_to_type_flags): Likewise.
2280 (avr_gdbarch_init): Set address_class_type_flags,
2281 address_class_type_flags_to_name and
2282 address_class_name_to_type_flags.
2283
2284 2014-07-15 Pedro Alves <palves@redhat.com>
2285
2286 * linux-nat.c (kill_callback): Save errno and work with saved
2287 copy.
2288
2289 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2290
2291 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2292
2293 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2294
2295 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2296 breakpoint support correctly.
2297
2298 2014-07-14 Pedro Alves <palves@redhat.com>
2299
2300 * utils.c (prompt_for_continue): Call target_terminal_ours.
2301
2302 2014-07-14 Pedro Alves <palves@redhat.com>
2303
2304 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2305 catch_errors. Don't re-enable stdin or notify observers where,
2306 and rethrow error.
2307 (fetch_inferior_event_wrapper): Delete.
2308
2309 2014-07-14 Pedro Alves <palves@redhat.com>
2310
2311 PR gdb/17072
2312 * top.c: Include "inf-loop.h".
2313 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2314 field.
2315 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2316 was async before.
2317 (gdb_readline_wrapper): Store whether the target is async, and
2318 make it sync.
2319
2320 2014-07-14 Pedro Alves <palves@redhat.com>
2321
2322 PR gdb/17072
2323 * top.c (gdb_readline_wrapper_line): Tweak comment.
2324 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2325 the input handler callback.
2326
2327 2014-07-14 Pedro Alves <palves@redhat.com>
2328
2329 PR gdb/17072
2330 * main.c: Include event-top.h.
2331 (handle_command_errors): New function.
2332 (catch_command_errors, catch_command_errors_const): Use it.
2333
2334 2014-07-14 Pedro Alves <palves@redhat.com>
2335
2336 * exceptions.c (catch_command_errors, catch_command_errors_const):
2337 Moved to main.c.
2338 * exceptions.h (catch_command_errors_ftype)
2339 (catch_command_errors_const_ftype): Moved to main.c.
2340 (catch_command_errors, catch_command_errors_const): Delete
2341 declarations.
2342 * main.c (catch_command_errors_ftype)
2343 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2344 (catch_command_errors, catch_command_errors_const)): Moved here
2345 from exceptions.c and make static.
2346
2347 2014-07-14 Pedro Alves <palves@redhat.com>
2348
2349 * exceptions.c (print_any_exception): Delete.
2350 (catch_exceptions_with_msg): Use exception_print instead of
2351 print_any_exception.
2352 (catch_errors): Use exception_fprintf instead of
2353 print_any_exception.
2354 (catch_command_errors, catch_command_errors_const): Use
2355 exception_print instead of print_any_exception.
2356
2357 2014-07-14 Pedro Alves <palves@redhat.com>
2358
2359 * infcall.c (run_inferior_call): Set 'sync_execution' while
2360 running the inferior call.
2361
2362 2014-07-14 Pedro Alves <palves@redhat.com>
2363
2364 * value.c (value_contents_equal): Delete function.
2365 * value.h (value_contents_equal): Delete declaration.
2366
2367 2014-07-14 Tom Tromey <tromey@redhat.com>
2368
2369 PR exp/17106:
2370 * gdbtypes.c (is_dynamic_type_internal): New function, from
2371 is_dynamic_type.
2372 (is_dynamic_type): Rewrite.
2373 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2374 (resolve_dynamic_struct): Likewise.
2375 (resolve_dynamic_type_internal): New function, from
2376 resolve_dynamic_type.
2377 (resolve_dynamic_type): Rewrite.
2378
2379 2014-07-14 Tom Tromey <tromey@redhat.com>
2380
2381 * target.c (target_require_runnable): Also check record_stratum.
2382 Update comment.
2383
2384 2014-07-11 Yao Qi <yao@codesourcery.com>
2385
2386 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2387 thumb_instruction_restores_sp return true.
2388
2389 2014-07-11 Yao Qi <yao@codesourcery.com>
2390
2391 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2392 (thumb_in_function_epilogue_p): Call
2393 thumb_instruction_restores_sp.
2394
2395 2014-07-11 Yao Qi <yao@codesourcery.com>
2396
2397 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2398 'add sp, #imm'.
2399 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2400
2401 2014-07-11 Gary Benson <gbenson@redhat.com>
2402
2403 * amd64-linux-nat.c (gdbcore.h): Remove include.
2404 (regset.h): Likewise.
2405 (nat/linux-btrace.h): Likewise.
2406 (btrace.h): Likewise.
2407 (gdb_assert.h): Likewise.
2408 (string.h): Likewise.
2409 (sys/uio.h): Likewise.
2410 (sys/debugreg.h): Likewise.
2411 (sys/syscall.h): Likewise.
2412 (sys/procfs.h): Likewise.
2413 (sys/user.h): Likewise.
2414 (asm/ptrace.h): Likewise.
2415 (i386-nat.h): Likewise.
2416 * i386-linux-nat.c (i386-nat.h): Likewise.
2417 (regset.h): Likewise.
2418 (target.h): Likewise.
2419 (linux-nat.h): Likewise.
2420 (nat/linux-btrace.h): Likewise.
2421 (btrace.h): Likewise.
2422 (gdb_assert.h): Likewise.
2423 (string.h): Likewise.
2424 (sys/uio.h): Likewise.
2425 (sys/user.h): Likewise.
2426 (sys/procfs.h): Likewise.
2427 (sys/reg.h): Likewise.
2428 (sys/debugreg.h): Likewise.
2429 (ORIG_EAX): Remove definition.
2430
2431 2014-07-11 Gary Benson <gbenson@redhat.com>
2432
2433 * i386-linux-nat.h: New file.
2434 * x86-linux-nat.h: Likewise.
2435 * x86-linux-nat.c: Likewise.
2436 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2437 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2438 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2439 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2440 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2441 (PTRACE_SETREGSET): Likewise.
2442 (arch_lwp_info): Now in x86-linux-nat.c.
2443 (have_ptrace_getregset): Now in x86-linux-nat.h.
2444 (x86_linux_dr_get): Now in x86-linux-nat.c.
2445 (x86_linux_dr_set): Likewise.
2446 (x86_linux_dr_get_addr): Likewise.
2447 (x86_linux_dr_get_control): Likewise.
2448 (x86_linux_dr_get_status): Likewise.
2449 (update_debug_registers_callback): Likewise.
2450 (x86_linux_dr_set_control): Likewise.
2451 (x86_linux_dr_set_addr): Likewise.
2452 (x86_linux_prepare_to_resume): Likewise.
2453 (x86_linux_new_thread): Likewise.
2454 (x86_linux_new_fork): Likewise.
2455 (x86_linux_get_thread_area): Likewise.
2456 (super_post_startup_inferior): Likewise.
2457 (x86_linux_child_post_startup_inferior): Likewise.
2458 (AMD64_LINUX_USER64_CS): Likewise.
2459 (AMD64_LINUX_X32_DS): Likewise.
2460 (x86_linux_read_description): Likewise.
2461 (x86_linux_enable_btrace): Likewise.
2462 (x86_linux_disable_btrace): Likewise.
2463 (x86_linux_teardown_btrace): Likewise.
2464 (x86_linux_read_btrace): Likewise.
2465 (x86_linux_create_target): Likewise.
2466 (x86_linux_add_target): Likewise.
2467 * i386-linux-nat.c (x86-linux-nat.h): New include.
2468 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2469 (PTRACE_SETREGSET): Likewise.
2470 (arch_lwp_info): Now in x86-linux-nat.c.
2471 (have_ptrace_getregset): Now in x86-linux-nat.h.
2472 (x86_linux_dr_get): Now in x86-linux-nat.c.
2473 (x86_linux_dr_set): Likewise.
2474 (x86_linux_dr_get_addr): Likewise.
2475 (x86_linux_dr_get_control): Likewise.
2476 (x86_linux_dr_get_status): Likewise.
2477 (update_debug_registers_callback): Likewise.
2478 (x86_linux_dr_set_control): Likewise.
2479 (x86_linux_dr_set_addr): Likewise.
2480 (x86_linux_prepare_to_resume): Likewise.
2481 (x86_linux_new_thread): Likewise.
2482 (x86_linux_new_fork): Likewise.
2483 (x86_linux_get_thread_area): Likewise.
2484 (super_post_startup_inferior): Likewise.
2485 (x86_linux_child_post_startup_inferior): Likewise.
2486 (AMD64_LINUX_USER64_CS): Likewise.
2487 (AMD64_LINUX_X32_DS): Likewise.
2488 (x86_linux_read_description): Likewise.
2489 (x86_linux_enable_btrace): Likewise.
2490 (x86_linux_disable_btrace): Likewise.
2491 (x86_linux_teardown_btrace): Likewise.
2492 (x86_linux_read_btrace): Likewise.
2493 (x86_linux_create_target): Likewise.
2494 (x86_linux_add_target): Likewise.
2495
2496 2014-07-11 Gary Benson <gbenson@redhat.com>
2497
2498 * amd64-linux-nat.c: Comment and whitespace changes.
2499 * i386-linux-nat.c: Comment and whitespace changes.
2500
2501 2014-07-11 Gary Benson <gbenson@redhat.com>
2502
2503 * amd64-linux-nat.c (x86_linux_create_target): New function.
2504 (x86_linux_add_target): Likewise.
2505 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2506 * i386-linux-nat.c (x86_linux_create_target): New function.
2507 (x86_linux_add_target): Likewise.
2508 (_initialize_i386_linux_nat): Delegate to the above new functions.
2509
2510 2014-07-11 Gary Benson <gbenson@redhat.com>
2511
2512 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2513 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2514 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2515 (ps_get_thread_area): Delegate to the above.
2516
2517 2014-07-11 Gary Benson <gbenson@redhat.com>
2518
2519 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2520 x86_linux_read_description. All uses updated. amd64-specific
2521 code conditionalized. Conditionalized i386-specific code added.
2522 Redundant cast removed.
2523 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2524 x86_linux_read_description. All uses updated. i386-specific
2525 code conditionalized. Conditionalized amd64-specific code added.
2526 One sizeof replaced with the actual type it is describing.
2527
2528 2014-07-11 Gary Benson <gbenson@redhat.com>
2529
2530 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2531 x86_linux_dr_get. All uses updated.
2532 (amd64_linux_dr_set): Renamed to
2533 x86_linux_dr_set. All uses updated.
2534 (amd64_linux_dr_get_addr): Renamed to
2535 x86_linux_dr_get_addr. All uses updated.
2536 (amd64_linux_dr_get_control): Renamed to
2537 x86_linux_dr_get_control. All uses updated.
2538 (amd64_linux_dr_get_status): Renamed to
2539 x86_linux_dr_get_status. All uses updated.
2540 (amd64_linux_dr_set_control): Renamed to
2541 x86_linux_dr_set_control. All uses updated.
2542 (amd64_linux_dr_set_addr): Renamed to
2543 x86_linux_dr_set_addr. All uses updated.
2544 (amd64_linux_prepare_to_resume): Renamed to
2545 x86_linux_prepare_to_resume. All uses updated.
2546 (amd64_linux_new_thread): Renamed to
2547 x86_linux_new_thread. All uses updated.
2548 (amd64_linux_new_fork): Renamed to
2549 x86_linux_new_fork. All uses updated.
2550 (amd64_linux_child_post_startup_inferior): Renamed to
2551 x86_linux_child_post_startup_inferior. All uses updated.
2552 (amd64_linux_enable_btrace): Renamed to
2553 x86_linux_enable_btrace. All uses updated.
2554 (amd64_linux_disable_btrace): Renamed to
2555 x86_linux_disable_btrace. All uses updated.
2556 (amd64_linux_teardown_btrace): Renamed to
2557 x86_linux_teardown_btrace. All uses updated.
2558 (amd64_linux_read_btrace): Renamed to
2559 x86_linux_read_btrace. All uses updated.
2560 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2561 x86_linux_dr_get. All uses updated.
2562 (i386_linux_dr_set): Renamed to
2563 x86_linux_dr_set. All uses updated.
2564 (i386_linux_dr_get_addr): Renamed to
2565 x86_linux_dr_get_addr. All uses updated.
2566 (i386_linux_dr_get_control): Renamed to
2567 x86_linux_dr_get_control. All uses updated.
2568 (i386_linux_dr_get_status): Renamed to
2569 x86_linux_dr_get_status. All uses updated.
2570 (i386_linux_dr_set_control): Renamed to
2571 x86_linux_dr_set_control. All uses updated.
2572 (i386_linux_dr_set_addr): Renamed to
2573 x86_linux_dr_set_addr. All uses updated.
2574 (i386_linux_prepare_to_resume): Renamed to
2575 x86_linux_prepare_to_resume. All uses updated.
2576 (i386_linux_new_thread): Renamed to
2577 x86_linux_new_thread. All uses updated.
2578 (i386_linux_new_fork): Renamed to
2579 x86_linux_new_fork. All uses updated.
2580 (i386_linux_child_post_startup_inferior): Renamed to
2581 x86_linux_child_post_startup_inferior. All uses updated.
2582 (i386_linux_enable_btrace): Renamed to
2583 x86_linux_enable_btrace. All uses updated.
2584 (i386_linux_disable_btrace): Renamed to
2585 x86_linux_disable_btrace. All uses updated.
2586 (i386_linux_teardown_btrace): Renamed to
2587 x86_linux_teardown_btrace. All uses updated.
2588 (i386_linux_read_btrace): Renamed to
2589 x86_linux_read_btrace. All uses updated.
2590
2591 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2592
2593 * remote.c (extended_remote_post_attach): New function.
2594 (init_extended_remote_ops): Install it as to_post_attach method.
2595
2596 2014-07-09 Pedro Alves <palves@redhat.com>
2597
2598 * infcmd.c (attach_command_post_wait): Don't call
2599 target_terminal_inferior here.
2600 (attach_command): Call it here instead.
2601
2602 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2605 field.
2606 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2607 from varobj.c, with additional checks.
2608 (c_varobj_ops): Fill in is_path_expr_parent field.
2609 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2610 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2611 field.
2612 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2613 ops method.
2614 (varobj_default_is_path_expr_parent): New function.
2615 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2616 (varobj_default_is_path_expr_parent): Declare new function.
2617
2618 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2619
2620 * infcmd.c (finish_backward): Turn internal error into normal error.
2621
2622 2014-07-07 Pedro Alves <palves@redhat.com>
2623
2624 PR gdb/17096
2625 * remote.c (async_handle_remote_sigint)
2626 (async_handle_remote_sigint_twice): Call
2627 gdb_call_async_signal_handler instead of
2628 mark_async_signal_handler.
2629
2630 2014-07-07 Tom Tromey <tromey@redhat.com>
2631
2632 * target-delegates.c: Rebuild.
2633 * target.c (target_info_record): Remove.
2634 * record.c (info_record_command): Unconditionally call
2635 to_info_record.
2636 * target.h (struct target_ops) <to_info_record>: Use
2637 TARGET_DEFAULT_IGNORE.
2638 (target_info_record): Remove.
2639
2640 2014-07-07 Tom Tromey <tromey@redhat.com>
2641
2642 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2643 TARGET_DEFAULT_NORETURN.
2644 * target.c (generic_tls_error): New function.
2645 (target_translate_tls_address): Don't search target stack.
2646 * target-delegates.c: Rebuild.
2647 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2648 stack.
2649 * linux-thread-db.c (thread_db_get_thread_local_address):
2650 Unconditionally call beneath target.
2651
2652 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2653
2654 * cli/cli-logging.c (pop_output_files): Assign targerr to
2655 gdb_stdtargerr.
2656
2657 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * MAINTAINERS (Write After Approval): Update my email address.
2660
2661 2014-07-02 Gary Benson <gbenson@redhat.com>
2662
2663 * proc-service.c (ps_xfer_memory): Update comment.
2664 (ps_pstop): Remove unused function.
2665 (ps_pcontinue): Likewise.
2666 (ps_lstop): Likewise.
2667 (ps_lcontinue): Likewise.
2668 (ps_lgetxregsize): Likewise.
2669 (ps_lgetxregs): Likewise.
2670 (ps_lsetxregs): Likewise.
2671 (ps_plog): Likewise.
2672 (ps_ptread): Likewise.
2673 (ps_ptwrite): Likewise.
2674
2675 2014-07-01 Mark Wielaard <mjw@redhat.com>
2676
2677 * dwarf2read.c (add_array_cv_type): New function.
2678 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2679 (read_tag_volatile_type): Likewise.
2680
2681 2014-07-01 Tom Tromey <tromey@redhat.com>
2682
2683 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2684 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2685 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2686 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2687 * command.h (cmd_cfunc_ftype): Move earlier.
2688 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2689 (add_com, add_info): Use cmd_cfunc_ftype.
2690
2691 2014-06-30 Tom Tromey <tromey@redhat.com>
2692
2693 * symtab.c (operator_chars): Make parameters and return type
2694 const.
2695 (file_matches): Make "files" const.
2696 (struct search_symbols_data) <files>: Now const.
2697 (search_symbols): Make "regexp" and "files" parameters const.
2698 Update.
2699 (symtab_symbol_info): Remove cast.
2700 (rbreak_command): Update.
2701 * symtab.h (search_symbols): Update.
2702
2703 2014-06-27 Yao Qi <yao@codesourcery.com>
2704
2705 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2706 Change parameter type to 'struct thread_info *'. Caller
2707 updated.
2708 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2709 Update declaration.
2710 * dummy-frame.c (struct dummy_frame_id): New.
2711 (dummy_frame_id_eq): New function.
2712 (struct dummy_frame) <id>: Change its type to 'struct
2713 dummy_frame_id'.
2714 (dummy_frame_push): Add parameter ptid and save it in
2715 dummy_frame_id.
2716 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2717 inferior_ptid.
2718 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2719 to inferior_ptid.
2720 (lookup_dummy_frame): Change parameter type to 'struct
2721 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2722 instead of frame_id_eq.
2723 (dummy_frame_pop): Add parameter ptid. Callers updated.
2724 Update comments. Compose dummy_frame_id and pass it to
2725 lookup_dummy_frame.
2726 (dummy_frame_discard): Add parameter ptid.
2727 (dummy_frame_sniffer): Compose dummy_frame_id and call
2728 dummy_frame_id_eq instead of frame_id_eq.
2729 (fprint_dummy_frames): Print ptid.
2730 * dummy-frame.h: Remove comments.
2731 (dummy_frame_push): Add ptid in declaration.
2732 (dummy_frame_pop, dummy_frame_discard): Likewise.
2733
2734 2014-06-26 Tom Tromey <tromey@redhat.com>
2735
2736 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2737 * command.h (error_no_arg): Update.
2738
2739 2014-06-26 Tom Tromey <tromey@redhat.com>
2740
2741 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2742 (do_show_command): Make "arg" const.
2743 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2744
2745 2014-06-26 Tom Tromey <tromey@redhat.com>
2746
2747 * record-full.c (record_full_get_bookmark): Make "args" const.
2748 (record_full_goto_bookmark): Make "raw_bookmark" const.
2749 * record.c (record_goto): New function.
2750 (cmd_record_goto): Use it. Now static.
2751 * record.h (record_goto): Declare.
2752 (cmd_record_goto): Remove declaration.
2753 * target-delegates.c: Rebuild.
2754 * target.h (struct target_ops) <to_get_bookmark,
2755 to_goto_bookmark>: Make parameter const.
2756
2757 2014-06-26 Tom Tromey <tromey@redhat.com>
2758
2759 * defs.h (generic_load): Update.
2760 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2761 * monitor.c (monitor_load): Make "args" const.
2762 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2763 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2764 const.
2765 (mips_load): Make "file" const.
2766 * remote-sim.c (gdbsim_load): Make "args" const.
2767 * remote.c (remote_load): Make "name" const.
2768 * symfile.c (generic_load): Make "args" const.
2769 * target-delegates.c: Rebuild.
2770 * target.c (target_load): Make "arg" const.
2771 (debug_to_load): Make "args" const.
2772 * target.h (struct target_ops) <to_load>: Make parameter const.
2773 (target_load): Update.
2774
2775 2014-06-26 Tom Tromey <tromey@redhat.com>
2776
2777 PR symtab/16902:
2778 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2779 (dwarf2_physname, read_partial_die)
2780 (guess_partial_die_structure_name, fixup_partial_die)
2781 (guess_full_die_structure_name, anonymous_struct_prefix)
2782 (dwarf2_name): Use per-BFD obstack.
2783
2784 2014-06-26 Yao Qi <yao@codesourcery.com>
2785
2786 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2787 dummyframe and this_id into inner block below.
2788
2789 2014-06-26 Yao Qi <yao@codesourcery.com>
2790
2791 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2792 with "signal_pass[0]" in the initialization of signal_pass.
2793
2794 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2795
2796 * record-btrace.c (record_btrace_generating_corefile)
2797 (record_btrace_prepare_to_generate_core)
2798 (record_btrace_done_generating_core): New.
2799 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2800 (record_btrace_store_registers, record_btrace_prepare_to_store):
2801 Forward request when generating a core file.
2802 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2803 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2804 to_done_generating_core.
2805
2806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2807
2808 * target.h (target_ops) <to_prepare_to_generate_core>
2809 <to_done_generating_core>: New.
2810 (target_prepare_to_generate_core, target_done_generating_core): New.
2811 * target.c (target_prepare_to_generate_core)
2812 (target_done_generating_core): New.
2813 * target-delegates.c: Regenerate.
2814 * gcore.c: (write_gcore_file): Rename to ...
2815 (write_gcore_file_1): ...this.
2816 (write_gcore_file): Call target_prepare_to_generate_core
2817 and target_done_generating_core.
2818
2819 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2820
2821 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2822 * gcore.c (write_gcore_file): Free memory returned from
2823 make_corefile_notes.
2824 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2825 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2826
2827 2014-06-24 Yao Qi <yao@codesourcery.com>
2828
2829 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2830 (arm_linux_init_abi): Set skip_trampoline_code with
2831 gdbarch_skip_trampoline_code instead of
2832 find_solib_trampoline_target.
2833
2834 2014-06-24 Yao Qi <yao@codesourcery.com>
2835
2836 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2837 arm_skip_bx_reg returns non-zero.
2838
2839 2014-06-24 Yao Qi <yao@codesourcery.com>
2840
2841 * arm-tdep.c (arm_skip_bx_reg): New function.
2842 (arm_skip_stub): Call arm_skip_bx_reg.
2843
2844 2014-06-23 Don Breazeal <donb@codesourcery.com>
2845
2846 * MAINTAINERS: Add myself as write-after-approval maintainer.
2847
2848 2014-06-23 Pedro Alves <palves@redhat.com>
2849
2850 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2851 DR_CONTROL before setting DR0..DR3.
2852 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2853 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2854 bits of DR_CONTROL related to the debug register slot being
2855 disabled. If all slots are vacant, clear local slowdown as well,
2856 and assert DR_CONTROL is 0.
2857
2858 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2859
2860 * python/lib/gdb/command/xmethods.py
2861 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2862 current progspace only if the string "progspace" matches LOCUS_RE.
2863
2864 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 Fix --with-system-readline with readline-6.3 patch 5.
2867 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2868 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2869 types.
2870
2871 2014-06-20 Tom Tromey <tromey@redhat.com>
2872
2873 * dwarf2read.c (dw2_get_real_path): Use correct type in
2874 OBSTACK_CALLOC.
2875 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2876
2877 2014-06-20 Gary Benson <gbenson@redhat.com>
2878
2879 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2880 * common/glibc_thread_db.h: Likewise.
2881 * common/i386-cpuid.h: Likewise.
2882 * common/i386-gcc-cpuid.h: Likewise.
2883 * common/linux-btrace.h: Likewise.
2884 * common/linux-osdata.h: Likewise.
2885 * common/linux-procfs.h: Likewise.
2886 * common/linux-ptrace.h: Likewise.
2887 * common/mips-linux-watch.h: Likewise.
2888 * common/linux-btrace.c: Moved to nat.
2889 * common/linux-osdata.c: Likewise.
2890 * common/linux-procfs.c: Likewise.
2891 * common/linux-ptrace.c: Likewise.
2892 * common/mips-linux-watch.c: Likewise.
2893 * nat/gdb_thread_db.h: Moved from common.
2894 * nat/glibc_thread_db.h: Likewise.
2895 * nat/i386-cpuid.h: Likewise.
2896 * nat/i386-gcc-cpuid.h: Likewise.
2897 * nat/linux-btrace.c: Likewise.
2898 * nat/linux-btrace.h: Likewise.
2899 * nat/linux-osdata.c: Likewise.
2900 * nat/linux-osdata.h: Likewise.
2901 * nat/linux-procfs.c: Likewise.
2902 * nat/linux-procfs.h: Likewise.
2903 * nat/linux-ptrace.c: Likewise.
2904 * nat/linux-ptrace.h: Likewise.
2905 * nat/mips-linux-watch.c: Likewise.
2906 * nat/mips-linux-watch.h: Likewise.
2907 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2908 (object file files): Reordered.
2909 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2910 of glibc_thread_db.h.
2911
2912 2014-06-20 Gary Benson <gbenson@redhat.com>
2913
2914 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2915 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2916 (i386_dr_low): Likewise.
2917 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2918 (i386_dr_low_set_addr): Likewise.
2919 (i386_dr_low_get_addr): Likewise.
2920 (i386_dr_low_can_set_control): Likewise.
2921 (i386_dr_low_set_control): Likewise.
2922 (i386_dr_low_get_control): Likewise.
2923 (i386_dr_low_get_status): Likewise.
2924 (i386_get_debug_register_length): Likewise.
2925 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2926 (i386_dr_low): Likewise.
2927 * nat/i386-dregs.c (i386-low.h): Remove include.
2928 (i386-nat.h): Likewise.
2929 (nat/i386-dregs.h): New include.
2930 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2931 (i386_dr_low_set_addr): Likewise.
2932 (i386_dr_low_get_addr): Likewise.
2933 (i386_dr_low_can_set_control): Likewise.
2934 (i386_dr_low_set_control): Likewise.
2935 (i386_dr_low_get_control): Likewise.
2936 (i386_dr_low_get_status): Likewise.
2937 (i386_get_debug_register_length): Likewise.
2938 (debug_hw_points): Likewise.
2939
2940 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2941
2942 * Makefile.in (SFILES): Add d-exp.y.
2943 (YYFILES): Add d-exp.c.
2944 (YYOBJ): Add d-exp.o.
2945 (local-maintainer-clean): Delete d-exp.c.
2946 * d-exp.y: New file.
2947 * d-lang.h (d_parse): New declaration.
2948 (d_error): New declaration.
2949 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2950 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2951 PREC_ORDER operators.
2952 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2953
2954 2014-06-19 Yao Qi <yao@codesourcery.com>
2955
2956 * gdbthread.h (any_running): Remove the declaration.
2957 * thread.c (any_running): Remove.
2958
2959 2014-06-19 Yao Qi <yao@codesourcery.com>
2960
2961 * gdbthread.h (struct thread_info) <state>: Change its type to
2962 'enum thread_state'. Update comments.
2963
2964 2014-06-19 Pedro Alves <palves@redhat.com>
2965
2966 * gdbthread.h (ALL_THREADS): Delete.
2967 (ALL_NON_EXITED_THREADS): New macro.
2968 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2969 instead of ALL_THREADS.
2970 * infrun.c (find_thread_needs_step_over)
2971 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2972 instead of ALL_THREADS.
2973 * record-btrace.c (record_btrace_open)
2974 (record_btrace_stop_recording, record_btrace_close)
2975 (record_btrace_is_replaying, record_btrace_resume)
2976 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2977 * remote.c (append_pending_thread_resumptions): Likewise.
2978 * thread.c (thread_apply_all_command): Likewise.
2979
2980 2014-06-19 Gary Benson <gbenson@redhat.com>
2981
2982 * i386-nat.c (i386_stopped_by_watchpoint):
2983 Use i386_dr_stopped_by_watchpoint.
2984 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2985 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2986
2987 2014-06-19 Gary Benson <gbenson@redhat.com>
2988
2989 * nat/i386-dregs.c: New file.
2990 * Makefile.in (i386-dregs.o): New rule.
2991 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2992 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2993 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2994 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2995 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2996 * config/i386/go32.mh (NATDEPFILES): Likewise.
2997 * config/i386/linux.mh (NATDEPFILES): Likewise.
2998 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2999 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3000 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3001 * i386-nat.h (debug_hw_points): New declaration.
3002 * i386-nat.c (breakpoint.h): Remove include.
3003 (command.h): Likewise.
3004 (target.h): Likewise.
3005 (gdb_assert.h): Likewise.
3006 (debug_hw_points): Made nonstatic.
3007 (debug_printf): Now in i386-dregs.c.
3008 (TARGET_HAS_DR_LEN_8): Likewise.
3009 (DR_CONTROL_SHIFT): Likewise.
3010 (DR_CONTROL_SIZE): Likewise.
3011 (DR_RW_EXECUTE): Likewise.
3012 (DR_RW_WRITE): Likewise.
3013 (DR_RW_READ): Likewise.
3014 (DR_RW_IORW): Likewise.
3015 (DR_LEN_1): Likewise.
3016 (DR_LEN_2): Likewise.
3017 (DR_LEN_4): Likewise.
3018 (DR_LEN_8): Likewise.
3019 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3020 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3021 (DR_ENABLE_SIZE): Likewise.
3022 (DR_LOCAL_SLOWDOWN): Likewise.
3023 (DR_GLOBAL_SLOWDOWN): Likewise.
3024 (DR_CONTROL_RESERVED): Likewise.
3025 (I386_DR_CONTROL_MASK): Likewise.
3026 (I386_DR_VACANT): Likewise.
3027 (I386_DR_LOCAL_ENABLE): Likewise.
3028 (I386_DR_GLOBAL_ENABLE): Likewise.
3029 (I386_DR_DISABLE): Likewise.
3030 (I386_DR_SET_RW_LEN): Likewise.
3031 (I386_DR_GET_RW_LEN): Likewise.
3032 (I386_DR_WATCH_HIT): Likewise.
3033 (i386_wp_op_t): Likewise.
3034 (i386_show_dr): Likewise.
3035 (i386_length_and_rw_bits): Likewise.
3036 (i386_insert_aligned_watchpoint): Likewise.
3037 (i386_remove_aligned_watchpoint): Likewise.
3038 (i386_handle_nonaligned_watchpoint): Likewise.
3039 (i386_update_inferior_debug_regs): Likewise.
3040 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3041 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3042 (i386_region_ok_for_watchpoint):
3043 Use i386_dr_region_ok_for_watchpoint.
3044 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3045
3046 2014-06-19 Gary Benson <gbenson@redhat.com>
3047
3048 * i386-nat.c (i386_insert_hw_breakpoint): Use
3049 i386_insert_watchpoint.
3050 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3051
3052 2014-06-19 Gary Benson <gbenson@redhat.com>
3053
3054 * i386-nat.c (i386_dr_show): Renamed to
3055 i386_show_dr and made static. All uses updated.
3056 (i386_dr_length_and_rw_bits): Renamed to
3057 i386_length_and_rw_bits and made static.
3058 All uses updated.
3059 (i386_dr_insert_aligned_watchpoint): Renamed to
3060 i386_insert_aligned_watchpoint and made static.
3061 All uses updated.
3062 (i386_dr_remove_aligned_watchpoint): Renamed to
3063 i386_remove_aligned_watchpoint and made static.
3064 All uses updated.
3065 (i386_dr_update_inferior_debug_regs): Renamed to
3066 i386_update_inferior_debug_regs and made static.
3067 All uses updated.
3068 * nat/i386-dregs.h (i386_dr_show): Removed.
3069 (i386_dr_length_and_rw_bits): Likewise.
3070 (i386_dr_insert_aligned_watchpoint): Likewise.
3071 (i386_dr_remove_aligned_watchpoint): Likewise.
3072 (i386_dr_update_inferior_debug_regs): Likewise.
3073
3074 2014-06-19 Gary Benson <gbenson@redhat.com>
3075
3076 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3077 * configure: Regenerate.
3078 * config.in: Likewise.
3079 * main.c (signal.h): New include.
3080 (setup_alternate_signal_stack): New function.
3081 (captured_main): Call the above.
3082 * cp-support.c (signal.h): New include.
3083 (catch_demangler_crashes): New flag.
3084 (SIGJMP_BUF): New define.
3085 (SIGSETJMP): Likewise.
3086 (SIGLONGJMP): Likewise.
3087 (gdb_demangle_jmp_buf): New static global.
3088 (gdb_demangle_attempt_core_dump): Likewise.
3089 (gdb_demangle_signal_handler): New function.
3090 (gdb_demangle): If catch_demangler_crashes is set, install the
3091 above signal handler before calling bfd_demangle, and restore
3092 the original signal handler afterwards. Display the offending
3093 symbol and call demangler_warning the first time a segmentation
3094 fault is caught.
3095 (_initialize_cp_support): New maint set/show command.
3096
3097 2014-06-19 Gary Benson <gbenson@redhat.com>
3098
3099 * utils.h (resource_limit_kind): New enum.
3100 (can_dump_core): New declaration.
3101 (warn_cant_dump_core): Likewise.
3102 (dump_core): Likewise.
3103 * utils.c (dump_core): Made nonstatic. Added new
3104 parameter "limit_kind".
3105 (can_dump_core): Made nonstatic. Moved printing code to...
3106 (warn_cant_dump_core): New function.
3107 (can_dump_core_warn): Likewise.
3108 (internal_vproblem): Replace calls to can_dump_core with
3109 calls to can_dump_core_warn. Supply new argument to each.
3110
3111 2014-06-19 Gary Benson <gbenson@redhat.com>
3112
3113 * utils.h (demangler_vwarning): New declaration.
3114 (demangler_warning): Likewise.
3115 * utils.c (struct internal_problem)
3116 <user_settable_should_quit>: New field.
3117 <user_settable_should_dump_core>: Likewise
3118 (internal_error_problem): Add values for above new fields.
3119 (internal_warning_problem): Likewise.
3120 (demangler_warning_problem): New static global.
3121 (demangler_vwarning): New function.
3122 (demangler_warning): Likewise.
3123 (add_internal_problem_command): Selectively add commands.
3124 (_initialize_utils): New internal problem command.
3125 * maint.c (maintenance_demangler_warning): New function.
3126 (_initialize_maint_cmds): New command.
3127
3128 2014-06-18 Tom Tromey <tromey@redhat.com>
3129
3130 * f-valprint.c (info_common_command_for_block): Update.
3131 * symtab.h (struct general_symbol_info) <common_block>: Now
3132 const.
3133
3134 2014-06-18 Tom Tromey <tromey@redhat.com>
3135
3136 * symtab.h (struct symtab) <blockvector>: Now const.
3137 * ada-lang.c (ada_add_global_exceptions): Update.
3138 * buildsym.c (augment_type_symtab): Update.
3139 * dwarf2read.c (dw2_lookup_symbol): Update.
3140 * jit.c (finalize_symtab): Update.
3141 * jv-lang.c (add_class_symtab_symbol): Update.
3142 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3143 Update.
3144 * objfiles.c (objfile_relocate1): Update.
3145 * psymtab.c (lookup_symbol_aux_psymtabs)
3146 (maintenance_check_psymtabs): Update.
3147 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3148 Update.
3149 * spu-tdep.c (spu_catch_start): Update.
3150 * symmisc.c (dump_symtab_1): Update.
3151 * symtab.c (lookup_global_symbol_from_objfile)
3152 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3153 (basic_lookup_transparent_type_quick)
3154 (basic_lookup_transparent_type, find_pc_sect_symtab)
3155 (find_pc_sect_line, search_symbols): Update.
3156 * block.c (find_block_in_blockvector): Make "bl" const.
3157 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3158 const.
3159 (blockvector_contains_pc): Make "bv" const.
3160 (block_for_pc_sect): Update.
3161 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3162 (blockvector_contains_pc): Update.
3163 * breakpoint.c (resolve_sal_pc): Update.
3164 * inline-frame.c (block_starting_point_at): Update.
3165
3166 2014-06-18 Tom Tromey <tromey@redhat.com>
3167
3168 * completer.c (complete_line): Make "line_buffer" const.
3169 * completer.h (complete_line): Update.
3170
3171 2014-06-18 Tom Tromey <tromey@redhat.com>
3172
3173 * symtab.c (add_macro_name): Remove unneeded cast.
3174
3175 2014-06-18 Tom Tromey <tromey@redhat.com>
3176
3177 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3178 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3179
3180 2014-06-18 Tom Tromey <tromey@redhat.com>
3181
3182 * probe.c (info_probes_for_ops): Make "arg" const.
3183 * probe.h (info_probes_for_ops): Update.
3184
3185 2014-06-18 Tom Tromey <tromey@redhat.com>
3186
3187 * varobj.c (varobj_create): Update.
3188 * valops.c (value_of_this): Update.
3189 * tracepoint.c (add_local_symbols, scope_info): Update.
3190 * symtab.h (struct general_symbol_info) <block>: Now const.
3191 * symtab.c (skip_prologue_sal)
3192 (default_make_symbol_completion_list_break_on)
3193 (skip_prologue_using_sal): Update.
3194 * stack.h (iterate_over_block_locals)
3195 (iterate_over_block_local_vars): Update.
3196 * stack.c (print_frame_args): Update.
3197 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3198 parameter const.
3199 (get_selected_block): Make return type const.
3200 * python/py-frame.c (frapy_block): Update.
3201 * python/py-block.c (gdbpy_block_for_pc): Update.
3202 * p-exp.y (%union) <bval>: Now const.
3203 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3204 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3205 * m2-exp.y (%union) <bval>: Now const.
3206 * linespec.c (get_current_search_block): Make return type const.
3207 (create_sals_line_offset, find_label_symbols): Update.
3208 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3209 Update.
3210 (block_starting_point_at): Make "block" const.
3211 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3212 (check_exception_resume): Update.
3213 * guile/scm-frame.c (gdbscm_frame_block): Update.
3214 * guile/scm-block.c (gdbscm_lookup_block): Update.
3215 * frame.h (get_frame_block): Update.
3216 (get_selected_block): Make return type const.
3217 * frame.c (frame_id_inner): Update.
3218 * f-valprint.c (info_common_command_for_block)
3219 (info_common_command): Update.
3220 * dwarf2loc.c (dwarf2_find_location_expression)
3221 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3222 (locexpr_describe_location_piece): Update.
3223 * c-exp.y (%union) <bval>: Now const.
3224 * breakpoint.c (resolve_sal_pc): Update.
3225 * blockframe.c (get_frame_block):Make return type const.
3226 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3227 (block_innermost_frame): Update.
3228 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3229 (block_for_pc, block_for_pc_sect): Update.
3230 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3231 'pblock' const.
3232 (block_for_pc_sect, block_for_pc): Make return type const.
3233 * ax-gdb.c (gen_expr): Update.
3234 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3235 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3236 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3237 (ada_read_var_value): Update.
3238 * ada-exp.y (struct name_info) <block>: Now const.
3239 (%union): Likewise.
3240 (block_lookup): Constify.
3241
3242 2014-06-18 Gary Benson <gbenson@redhat.com>
3243
3244 * nat/i386-dregs.h: New file.
3245 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3246 * i386-nat.h (i386-dregs.h): New include.
3247 (DR_FIRSTADDR): Now in i386-dregs.h.
3248 (DR_LASTADDR): Likewise.
3249 (DR_NADDR): Likewise.
3250 (DR_STATUS): Likewise.
3251 (DR_CONTROL): Likewise.
3252 (i386_debug_reg_state): Likewise.
3253 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3254
3255 2014-06-18 Don Breazeal <donb@codesourcery.com>
3256
3257 * breakpoint.c (set_longjmp_breakpoint): Call
3258 momentary_breakpoint_from_master with additional argument.
3259 (set_longjmp_breakpoint_for_call_dummy): Call
3260 momentary_breakpoint_from_master with additional argument.
3261 (set_std_terminate_breakpoint): Call
3262 momentary_breakpoint_from_master with additional argument.
3263 (momentary_breakpoint_from_master): Add argument to function
3264 definition and use it to initialize structure member flag.
3265 (clone_momentary_breakpoint): Call
3266 momentary_breakpoint_from_master with additional argument.
3267 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3268 member flags set in momentary_breakpoint_from_master.
3269
3270 2014-06-18 Gary Benson <gbenson@redhat.com>
3271
3272 * i386-nat.c (i386_show_dr): Renamed to
3273 i386_dr_show and made nonstatic. All uses updated.
3274 (i386_length_and_rw_bits): Renamed to
3275 i386_dr_length_and_rw_bits and made nonstatic.
3276 All uses updated.
3277 (i386_insert_aligned_watchpoint): Renamed to
3278 i386_dr_insert_aligned_watchpoint and made nonstatic.
3279 All uses updated.
3280 (i386_remove_aligned_watchpoint): Renamed to
3281 i386_dr_remove_aligned_watchpoint and made nonstatic.
3282 All uses updated.
3283 (i386_update_inferior_debug_regs): Renamed to
3284 i386_dr_update_inferior_debug_regs and made nonstatic.
3285 All uses updated.
3286
3287 2014-06-18 Gary Benson <gbenson@redhat.com>
3288
3289 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3290 (i386_dr_low_can_set_control): Likewise.
3291 (i386_dr_low_set_addr): Likewise.
3292 (i386_dr_low_set_control): Likewise.
3293 (i386_dr_low_get_addr): Likewise.
3294 (i386_dr_low_get_status): Likewise.
3295 (i386_dr_low_get_control): Likewise.
3296 (i386_insert_aligned_watchpoint): Use new macros.
3297 (i386_update_inferior_debug_regs): Likewise.
3298 (i386_stopped_data_address): Likewise.
3299
3300 2014-06-18 Gary Benson <gbenson@redhat.com>
3301
3302 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3303 New parameter. All uses updated.
3304
3305 2014-06-18 Gary Benson <gbenson@redhat.com>
3306
3307 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3308 All uses updated.
3309
3310 2014-06-18 Gary Benson <gbenson@redhat.com>
3311
3312 * i386-nat.c (debug_printf): New macro.
3313 (i386_get_debug_register_length): Likewise.
3314 (TARGET_HAS_DR_LEN_8): Use above macro.
3315 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3316 and printf_unfiltered. Use phex to format values.
3317
3318 2014-06-18 Gary Benson <gbenson@redhat.com>
3319
3320 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3321 Make const.
3322
3323 2014-06-18 Gary Benson <gbenson@redhat.com>
3324
3325 * i386-nat.c: Comment changes.
3326
3327 2014-06-18 Gary Benson <gbenson@redhat.com>
3328
3329 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3330
3331 2014-06-18 Gary Benson <gbenson@redhat.com>
3332
3333 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3334 (i386_insert_aligned_watchpoint): Likewise.
3335 (i386_remove_aligned_watchpoint): Likewise.
3336 (i386_handle_nonaligned_watchpoint): Likewise.
3337
3338 2014-06-18 Gary Benson <gbenson@redhat.com>
3339
3340 * i386-nat.c: Whitespace changes.
3341
3342 2014-06-17 Samuel Bronson <naesten@gmail.com>
3343
3344 * MAINTAINERS: Update Roland McGrath's email address.
3345 Thanks to Sergio Durigan Junior for pointing out that he left
3346 Red Hat a while ago, and giving me a current address.
3347
3348 2014-06-17 Tom Tromey <tromey@redhat.com>
3349
3350 * utils.h (savestring): Remove declaration.
3351
3352 2014-06-17 Tom Tromey <tromey@redhat.com>
3353
3354 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3355
3356 2014-06-16 Keith Seitz <keiths@redhat.com>
3357
3358 PR mi/15863
3359 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3360 to update the varobj if inferior_ptid is null_ptid.
3361
3362 2014-06-16 Tom Tromey <tromey@redhat.com>
3363
3364 * target.h (struct target_ops) <to_info_proc>: Make parameter
3365 const.
3366 (target_info_proc): Update.
3367 * target.c (target_info_proc): Make "args" const.
3368 * procfs.c (procfs_info_proc): Update.
3369 * linux-tdep.c (linux_info_proc): Update.
3370 (linux_core_info_proc_mappings): Make "args" const.
3371 (linux_core_info_proc): Update.
3372 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3373 * gdbarch.c: Rebuild.
3374 * gdbarch.h: Rebuild.
3375 * corelow.c (core_info_proc): Update.
3376
3377 2014-06-16 Tom Tromey <tromey@redhat.com>
3378
3379 * target.h (struct target_ops) <to_disconnect>: Make parameter
3380 const.
3381 (target_disconnect): Update.
3382 * target.c (target_disconnect): Make "args" const.
3383 * target-delegates.c: Rebuild.
3384 * remote.c (remote_disconnect): Update.
3385 * record.h (record_disconnect): Update.
3386 * record.c (record_disconnect): Update.
3387 * inf-child.c (inf_child_disconnect): Update.
3388
3389 2014-06-16 Tom Tromey <tromey@redhat.com>
3390
3391 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3392 * target.c (debug_to_rcmd, default_rcmd): Update.
3393 * target-delegates.c: Rebuild.
3394 * remote.c (remote_rcmd): Update.
3395 * monitor.c (monitor_rcmd): Update.
3396
3397 2014-06-16 Pedro Alves <palves@redhat.com>
3398
3399 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3400 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3401 have OBJF_SHARED set.
3402 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3403 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3404 instead of OBJF_USERLOADED.
3405 * objfiles.h (OBJF_SHARED): Update comment.
3406 (userloaded_objfile_contains_address_p): Rename to ...
3407 (shared_objfile_contains_address_p): ... this, and update
3408 comments.
3409 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3410 new objfile.
3411 (remove_symbol_file_command): Skip objfiles that don't have
3412 OBJF_SHARED set.
3413
3414 2014-06-16 Tom Tromey <tromey@redhat.com>
3415
3416 * minsyms.h (prim_record_minimal_symbol)
3417 (prim_record_minimal_symbol_and_info): Update comments.
3418
3419 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3420
3421 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3422 or --without-guile, according to how GDB was built.
3423
3424 2014-06-13 Tom Tromey <tromey@redhat.com>
3425
3426 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3427 to help_list.
3428 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3429 to help_list.
3430 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3431 help_list.
3432 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3433 help_list.Pass all_commands, not -1, to help_list.
3434 * cli/cli-dump.c (dump_command, append_command)
3435 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3436 (binary_dump_command, binary_append_command): Pass all_commands,
3437 not -1, to help_list.
3438 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3439 -1, to help_list.
3440 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3441 -1, to help_list.
3442 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3443 help_list.
3444 * top.c (set_history): Pass all_commands, not -1, to help_list.
3445 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3446 all_commands, not -1, to help_list.
3447 * symfile.c (overlay_command): Pass all_commands, not -1, to
3448 help_list.
3449 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3450 help_list.
3451 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3452 help_list.
3453 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3454 -1, to help_list.
3455 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3456 not -1, to help_list.
3457 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3458 not -1, to help_list.
3459 * maint.c (maintenance_command, maintenance_info_command)
3460 (maintenance_print_command, maintenance_set_cmd): Pass
3461 all_commands, not -1, to help_list.
3462 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3463 help_list.
3464 * language.c (set_check): Pass all_commands, not -1, to help_list.
3465 * infcmd.c (unset_command): Pass all_commands, not -1, to
3466 help_list.
3467 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3468 help_list.
3469 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3470 help_list.
3471 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3472 help_list.
3473 * breakpoint.c (save_command): Pass all_commands, not -1, to
3474 help_list.
3475 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3476 all_commands, not -1, to help_list.
3477
3478 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3479
3480 * regcache.c (struct register_to_invalidate): New structure.
3481 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3482 functions.
3483 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3484
3485 2014-06-12 Yao Qi <yao@codesourcery.com>
3486
3487 * varobj.c (varobj_get_num_children): Call
3488 varobj_is_dynamic_p.
3489 (varobj_list_children): Likewise.
3490 (varobj_update): Likewise. Update comments.
3491
3492 2014-06-12 Yao Qi <yao@codesourcery.com>
3493
3494 * varobj.c (varobj_pretty_printed_p): Rename to ...
3495 (varobj_is_dynamic_p): ... this. New function.
3496 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3497 (varobj_is_dynamic_p): Declare.
3498 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3499 (mi_print_value_p, varobj_update_one): Likewise.
3500
3501 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3502 Yao Qi <yao@codesourcery.com>
3503
3504 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3505 (varobj_get_iterator): Wrap up code for pretty-printer by
3506 "#if HAVE_PYTHON" and "#endif".
3507 (update_dynamic_varobj_children): Likewise.
3508
3509 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3510 Yao Qi <yao@codesourcery.com>
3511
3512 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3513 gdb_python_initialized is false. Move some code from varobj.c.
3514 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3515 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3516 (struct varobj_item): Moved to varobj-iter.h".
3517 (varobj_clear_saved_item): New function.
3518 (update_dynamic_varobj_children): Move python-related code to
3519 py-varobj.c.
3520 (free_variable): Call varobj_clear_saved_item and
3521 varobj_iter_delete.
3522
3523 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3524 Yao Qi <yao@codesourcery.com>
3525
3526 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3527 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3528 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3529 (py-varobj.o): New rule.
3530 * python/py-varobj.c: New file.
3531 * python/python-internal.h (py_varobj_get_iterator): Declare.
3532 * varobj-iter.h: New file.
3533 * varobj.c: Include "varobj-iter.h"
3534 (struct varobj) <child_iter>: Change its type from "PyObject *"
3535 to "struct varobj_iter *".
3536 <saved_item>: Likewise.
3537 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3538 [HAVE_PYTHON] (varobj_get_iterator): New function.
3539 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3540 python-specific code to python/py-varobj.c.
3541 (install_visualizer): Call varobj_iter_delete instead of
3542 Py_XDECREF.
3543 * varobj.h (varobj_ensure_python_env): Declare.
3544
3545 2014-06-12 Yao Qi <yao@codesourcery.com>
3546
3547 * varobj.c (struct varobj_item): New structure.
3548 (create_child_with_value): Update declaration.
3549 (varobj_add_child): Replace arguments 'name' and 'value' with
3550 'item'. All callers updated.
3551 (install_dynamic_child): Likewise.
3552 (update_dynamic_varobj_children): Likewise.
3553 (varobj_add_child): Likewise.
3554 (create_child_with_value): Likewise.
3555
3556 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3557
3558 * NEWS: Create a new section for the next release branch.
3559 Rename the section of the current branch, now that it has
3560 been cut.
3561
3562 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3563
3564 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3565 * version.in: Bump version to 7.8.50.DATE-cvs.
3566
3567 2014-06-11 Pedro Alves <palves@redhat.com>
3568
3569 PR remote/17028
3570 * ser-mingw.c (net_windows_socket_check_pending): New function.
3571 (net_windows_select_thread): Ignore spurious wakeups. Use
3572 net_windows_socket_check_pending.
3573 (net_windows_wait_handle): Check for pending events with
3574 ioctlsocket, through net_windows_socket_check_pending, instead of
3575 checking the socket's event.
3576
3577 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3578
3579 * python/python-internal.h (gdb_PyObject_GetAttrString)
3580 (gdb_PyObject_HasAttrString): New inline function definitions.
3581 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3582 char * of the second argument to PyObject_GetAttrString.
3583
3584 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3585
3586 * serial.c (serial_write): Fix index of character to be printed
3587 in call to serial_logchar when serial debug traces are enabled.
3588
3589 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3590
3591 * gdbtypes (resolve_dynamic_range): Add function description.
3592
3593 2014-06-09 Pedro Alves <palves@redhat.com>
3594
3595 * linux-nat.c (linux_child_follow_fork): Initialize status with
3596 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3597 inner block. Only pass the signal to PTRACE_DETACH if in pass
3598 state.
3599
3600 2014-06-09 Gary Benson <gbenson@redhat.com>
3601
3602 * common/signals.c (gdb_signal_from_host): Reorder to separate
3603 the always-available ANSI-standard signals from the signals that
3604 require checking.
3605 (do_gdb_signal_to_host): Likewise.
3606 * proc-events.c (signal_table): Likewise.
3607
3608 2014-06-08 Hui Zhu <hui@codesourcery.com>
3609
3610 * common/linux-ptrace.c (linux_disable_event_reporting): New
3611 function.
3612 * common/linux-ptrace.h (linux_disable_event_reporting): New
3613 declaration.
3614 * linux-nat.c (linux_child_follow_fork): Do a single step before
3615 detach.
3616
3617 2014-06-07 Keith Seitz <keiths@redhat.com>
3618
3619 Revert:
3620 PR c++/16253
3621 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3622 from symbol_matches_domain in symtab.c. All local callers
3623 of symbol_matches_domain updated.
3624 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3625 search STRUCT_DOMAIN.
3626 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3627 independently. standard_lookup will do that automatically.
3628 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3629 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3630 (cp_lookup_symbol_in_namespace): Likewise.
3631 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3632 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3633 may return a STRUCT_DOMAIN match.
3634 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3635 * cp-support.c: Include language.h.
3636 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3637 VAR_DOMAIN.
3638 * psymtab.c (match_partial_symbol): Compare the requested
3639 domain with the symbol's domain directly.
3640 (lookup_partial_symbol): Likewise.
3641 * symtab.c (lookup_symbol_in_language): Explain when/why
3642 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3643 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3644 appropriate languages.
3645 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3646 and moved to ada-lang.c
3647 (lookup_block_symbol): Explain that this function only returns
3648 symbol matching the requested DOMAIN.
3649 Compare the requested domain with the symbol's domain directly.
3650 (iterate_over_symbols): Compare the requested domain with the
3651 symbol's domain directly.
3652 * symtab.h (symbol_matches_domain): Remove.
3653
3654 2014-06-06 Doug Evans <xdje42@gmail.com>
3655
3656 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3657 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3658 (gdbscm_guile_version_is_at_least): Declare.
3659 (gdbscm_scm_string_to_int): Declare.
3660 * guile/guile.c (gdbscm_guile_major_version): New global.
3661 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3662 (guile_datadir): New static global.
3663 (gdbscm_guile_data_directory): New function.
3664 (initialize_scheme_side): Update.
3665 (misc_guile_functions): Add guile-data-directory.
3666 (initialize_gdb_module): Fetch guile version number.
3667 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3668 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3669 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3670 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3671 comments.
3672 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3673 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3674 * guile/scm-value.c (gdbscm_value_to_string): Only call
3675 scm_port_conversion_strategy if Guile version >= 2.0.6.
3676
3677 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3678
3679 * main.c (print_gdb_help): Add -q and --silent.
3680
3681 2014-06-06 Gary Benson <gbenson@redhat.com>
3682
3683 * common/signals.c: Remove preprocessor conditionals for
3684 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3685 SIGSEGV and SIGTERM.
3686 * proc-events.c: Likewise.
3687
3688 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3689
3690 * symfile.c (symfile_free_objfile): Remove restriction to
3691 OBJF_USERLOADED.
3692 * symfile-mem.c (symbol_file_add_from_memory): Call
3693 add_target_sections_of_objfile.
3694
3695 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3696
3697 * guile/scm-value.c (gdbscm_history_append_x): Use
3698 'vlscm_get_value_smob_arg_unsafe' instead of
3699 'vlscm_scm_to_value'.
3700
3701 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3702
3703 PR mi/15806
3704 * utils.c (printchar): Don't escape at all if quoter is NUL.
3705 Update function documentation to clarify effect of parameter
3706 QUOTER.
3707 * remote.c (escape_buffer): Pass '\\' as the quoter to
3708 fputstrn_unfiltered.
3709 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3710 generate the output.
3711 (mi_solib_unloaded): Same.
3712
3713 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3714
3715 * development.sh: Delete.
3716 * Makefile.in (config.status): Adjust dependency on development.sh.
3717 * configure.ac: Adjust development.sh source call.
3718 * configure: Regenerate.
3719
3720 2014-06-04 Doug Evans <xdje42@gmail.com>
3721
3722 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3723 is_scheme_bkpt, spec.
3724 (bpscm_make_breakpoint_smob): Initialize new members.
3725 (gdbscm_create_breakpoint_x): Split into two ...
3726 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3727 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3728 (scheme_function breakpoint_functions): Update.
3729 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3730 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3731 register-breakpoint!.
3732
3733 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3734
3735 PR server/17023
3736 * mem-break.c (z_type_supported): Return zero if
3737 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3738
3739 2014-06-04 Tom Tromey <tromey@redhat.com>
3740
3741 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3742 value_from_contents_and_address_unresolved.
3743 (ada_template_to_fixed_record_type_1): Likewise.
3744 (ada_which_variant_applies): Likewise.
3745 * value.h (value_from_contents_and_address_unresolved): Declare.
3746 * value.c (value_from_contents_and_address_unresolved): New
3747 function.
3748 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3749 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3750 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3751
3752 2014-06-04 Tom Tromey <tromey@redhat.com>
3753
3754 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3755
3756 2014-06-04 Tom Tromey <tromey@redhat.com>
3757
3758 * procfs.c (procfs_attach): Make "args" const.
3759 * windows-nat.c (windows_attach): Make "args" const.
3760 * nto-procfs.c (procfs_attach): Make "args" const.
3761 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3762 * go32-nat.c (go32_attach): Make "args" const.
3763 * gnu-nat.c (gnu_attach): Make "args" const.
3764 * darwin-nat.c (darwin_attach): Make "args" const.
3765 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3766 * linux-nat.c (linux_nat_attach): Make "args" const.
3767 * remote.c (extended_remote_attach_1, extended_remote_attach):
3768 Make "args" const.
3769 * target.h (struct target_ops) <to_attach>: Make "args" const.
3770 (find_default_attach): Likewise.
3771 * utils.c (parse_pid_to_attach): Make "args" const.
3772 * utils.h (parse_pid_to_attach): Update.
3773
3774 2014-06-04 Tom Tromey <tromey@redhat.com>
3775
3776 * target-delegates.c: Rebuild.
3777 * target.c (default_thread_address_space): New function.
3778 (target_thread_address_space): Simplify.
3779 * target.h (struct target_ops) <to_thread_address_space>: Add
3780 TARGET_DEFAULT_FUNC.
3781
3782 2014-06-04 Doug Evans <xdje42@gmail.com>
3783
3784 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3785
3786 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3787
3788 * record-btrace.c: Include event-loop.h and inf-loop.h.
3789 (record_btrace_resume_exec_dir)
3790 (record_btrace_async_inferior_event_handler)
3791 (record_btrace_handle_async_inferior_event): New.
3792 (record_btrace_open): Create async event handler.
3793 (record_btrace_close): Delete async event handler.
3794 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3795 Mark async event handler.
3796 (record_btrace_execution_direction): New.
3797 (init_record_btrace_ops): Initialize to_execution_direction.
3798
3799 2014-06-03 Doug Evans <xdje42@gmail.com>
3800
3801 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3802 (gdbscm_make_parameter): Ditto.
3803
3804 2014-06-03 Doug Evans <dje@google.com>
3805
3806 * exec.c (exec_close_1): Call clear_section_table instead of
3807 resize_section_table.
3808 (clear_section_table): New function.
3809 (resize_section_table): Make static. Rename arg num_added to
3810 adjustment.
3811 * exec.h (clear_section_table): Declare.
3812 (resize_section_table): Delete.
3813 * progspace.c (release_program_space): Call clear_section_table
3814 instead of resize_section_table.
3815
3816 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3817
3818 * NEWS (Python Scripting): Add entry about the new xmethods
3819 feature.
3820
3821 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3822
3823 * python/py-xmethods.c: New file.
3824 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3825 (objfpy_dealloc): XDECREF on the new xmethods field.
3826 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3827 field.
3828 (objfpy_get_xmethods): New function.
3829 (objfile_getset): New entry 'xmethods'.
3830 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3831 (pspy_dealloc): XDECREF on the new xmethods field.
3832 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3833 field.
3834 (pspy_get_xmethods): New function.
3835 (pspace_getset): New entry 'xmethods'.
3836 * python/python-internal.h: Add declarations for new functions.
3837 * python/python.c (_initialize_python): Invoke
3838 gdbpy_initialize_xmethods.
3839 * python/lib/gdb/__init__.py (xmethods): New
3840 attribute.
3841 * python/lib/gdb/xmethod.py: New file.
3842 * python/lib/gdb/command/xmethods.py: New file.
3843
3844 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3845
3846 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3847 best match method returned by find_overload_match is an xmethod.
3848 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3849 the best matching operator returned by find_overload_match is an
3850 xmethod.
3851 * valops.c: #include "extension.h".
3852 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3853 Return void. The list of matching source methods is returned in
3854 "fn_list" and a vector of matching debug method workers is
3855 returned in "xm_worker_vec". Update all callers.
3856 (value_find_oload_method_list): Likewise.
3857 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3858 non-NULL, then the index of the best matching method in this
3859 vector is returned. Update all callers.
3860 (find_overload_match): Include xmethods while performing overload
3861 resolution.
3862
3863 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3864
3865 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3866 * extension-priv.h (struct extension_language_ops): Add the
3867 xmethod interface.
3868 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3869 get_matching_xmethod_workers, get_xmethod_argtypes,
3870 invoke_xmethod, free_xmethod_worker,
3871 free_xmethod_worker_vec): New functions.
3872 * extension.h: #include "common/vec.h".
3873 New function declarations.
3874 (struct xmethod_worker): New struct.
3875 (VEC (xmethod_worker_ptr)): New vector type.
3876 (xmethod_worker_ptr): New typedef.
3877 (xmethod_worker_vec): Likewise.
3878 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3879 builtin_type.
3880 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3881 (struct builtin_type): New field "xmethod".
3882 * valarith.c (value_ptradd): Assert that the value argument is not
3883 lval_xcallable.
3884 * valops.c (value_must_coerce_to_target): Return 0 for
3885 lval_xcallable values.
3886 * value.c (struct value): New field XM_WORKER in the field
3887 LOCATION.
3888 (value_address, value_raw_address): Return 0 for lval_xcallable
3889 values.
3890 (set_value_address): Assert that the value is not an
3891 lval_xcallable.
3892 (value_free): Free the associated xmethod worker when freeing
3893 lval_xcallable values.
3894 (set_value_component_location): Assert that the WHOLE value is not
3895 lval_xcallable.
3896 (value_of_xmethod, call_xmethod): New functions.
3897 * value.h: Declare "struct xmethod_worker".
3898 Declare new functions value_of_xmethod, call_xmethod.
3899
3900 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3901 Pedro Alves <palves@redhat.com>
3902
3903 PR breakpoints/17000
3904 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3905 New function, extracted from software_breakpoint_inserted_here_p.
3906 (software_breakpoint_inserted_here_p): Replace factored out code
3907 by call to find_non_raw_software_breakpoint_inserted_here.
3908 (bp_target_info_copy_insertion_state): New function.
3909 (bkpt_insert_location): Handle the case of a single-step
3910 breakpoint already inserted at the same address.
3911 (bkpt_remove_location): Handle the case of a single-step
3912 breakpoint still inserted at the same address.
3913 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3914 breakpoint already inserted at the same address.
3915 (deprecated_remove_raw_breakpoint): Handle the case of a
3916 non-raw breakpoint still inserted at the same address.
3917 (find_single_step_breakpoint): New function, extracted from
3918 single_step_breakpoint_inserted_here_p.
3919 (find_single_step_breakpoint): New function,
3920 factored out from single_step_breakpoint_inserted_here_p.
3921 (single_step_breakpoint_inserted_here_p): Reimplement.
3922
3923 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3924
3925 Pushed by Joel Brobecker <brobecker@adacore.com>
3926 * source.c (show_substitute_path_command): Fix display of matching
3927 substitution rules.
3928
3929 2014-06-03 Gary Benson <gbenson@redhat.com>
3930
3931 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3932
3933 2014-06-02 Doug Evans <xdje42@gmail.com>
3934
3935 Add parameter support for Guile.
3936 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3937 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3938 (scm-param.o): New rule.
3939 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3940 (gdbscm_misc_error): Declare.
3941 (gdbscm_canonicalize_command_name): Declare.
3942 (gdbscm_scm_to_host_string): Declare.
3943 (gdbscm_scm_from_host_string): Declare.
3944 (gdbscm_initialize_parameters): Declare.
3945 * guile/guile.c (initialize_gdb_module): Call
3946 gdbscm_initialize_parameters.
3947 * guile/lib/gdb.scm: Export parameter symbols.
3948 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3949 cmdscm_canonicalize_name and made public. All callers updated.
3950 * guile/scm-exception.c (gdbscm_misc_error): New function.
3951 * guile/scm-param.c: New file.
3952 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3953 (gdbscm_scm_to_host_string): New function.
3954 (gdbscm_scm_from_host_string): New function.
3955 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3956
3957 2014-06-02 Doug Evans <xdje42@gmail.com>
3958
3959 Add command support for Guile.
3960 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3961 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3962 (scm-cmd.o): New rule.
3963 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3964 (gdbscm_user_error_p): Declare.
3965 (gdbscm_parse_command_name): Declare.
3966 (gdbscm_valid_command_class_p): Declare.
3967 (gdbscm_initialize_commands): Declare.
3968 * guile/guile.c (initialize_gdb_module): Call
3969 gdbscm_initialize_commands.
3970 * guile/lib/gdb.scm: Export command symbols.
3971 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3972 (throw-user-error): New function.
3973 * guile/scm-cmd.c: New file.
3974 * guile/scm-exception.c (user_error_symbol): New static global.
3975 (gdbscm_user_error_p): New function.
3976 (gdbscm_initialize_exceptions): Set user_error_symbol.
3977 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3978
3979 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3980
3981 * top.c (command_loop): Handle comments here...
3982 (command_line_input): ... not here.
3983
3984 2014-06-02 Doug Evans <xdje42@gmail.com>
3985
3986 Add progspace support for Guile.
3987 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3988 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3989 (scm-progspace.o): New rule.
3990 * guile/guile-internal.h (pspace_smob): New typedef.
3991 (psscm_pspace_smob_pretty_printers): Declare.
3992 (psscm_pspace_smob_from_pspace): Declare.
3993 (psscm_scm_from_pspace): Declare.
3994 * guile/guile.c (initialize_gdb_module): Call
3995 gdbscm_initialize_pspaces.
3996 * guile/lib/gdb.scm: Export progspace symbols.
3997 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3998 support.
3999 (append-pretty-printer!): Ditto.
4000 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4001 Implement.
4002 * guile/scm-progspace.c: New file.
4003
4004 2014-06-03 Alan Modra <amodra@gmail.com>
4005
4006 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4007 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4008
4009 2014-06-02 Doug Evans <dje@google.com>
4010
4011 Add support for skeletonless type units.
4012 * dwarf2read.c (struct dwarf2_per_objfile): New member
4013 n_allocated_type_units.
4014 (struct dwarf2_per_objfile) <tu_stats>: New member
4015 nr_all_type_units_reallocs.
4016 (create_signatured_type_table_from_index): Initialize
4017 n_allocated_type_units
4018 (create_all_type_units): Ditto.
4019 (add_type_unit): Move up in file. New arg slot.
4020 All callers updated. Increase space for all_type_units more
4021 efficiently.
4022 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4023 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4024 (lookup_dwp_signatured_type): Ditto.
4025 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4026 All callers updated.
4027 (build_type_psymtabs_1): Leave type_unit_groups as
4028 NULL if no TUs present.
4029 (print_tu_stats): New function.
4030 (process_skeletonless_type_unit): New function.
4031 (process_dwo_file_for_skeletonless_type_units): New
4032 function.
4033 (process_skeletonless_type_units): New function.
4034 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4035 Call print tu_stats if debugging enabled.
4036
4037 2014-06-02 Pedro Alves <palves@redhat.com>
4038
4039 * breakpoint.c (build_target_command_list): Don't build a command
4040 list if we have any duplicate location that isn't a dprintf.
4041
4042 2014-06-02 Pedro Alves <palves@redhat.com>
4043
4044 * breakpoint.c (dprintf_breakpoint_hit): New function.
4045 (initialize_breakpoint_ops): Install it as dprintf's
4046 breakpoint_hit method.
4047
4048 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4049
4050 * source.c (substitute_path_rule_matches): Simplify using
4051 filename_ncmp instead of FILENAME_CMP.
4052
4053 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4054
4055 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4056
4057 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4058
4059 * configure.ac: When Guile is available, check for the
4060 availability of 'scm_new_smob'.
4061 * configure, config.h.in: Regenerate.
4062 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4063 function.
4064
4065 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4066
4067 * frame.c (struct frame_info): Add stop_string field.
4068 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4069 (get_prev_frame_always): Old content moved into
4070 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4071 TRY_CATCH, handle MEMORY_ERROR exceptions.
4072 (frame_stop_reason_string): New function definition.
4073 * frame.h (unwind_stop_reason_to_string): Extend comment to
4074 mention frame_stop_reason_string.
4075 (frame_stop_reason_string): New function declaration.
4076 * stack.c (frame_info): Switch to frame_stop_reason_string.
4077 (backtrace_command_1): Switch to frame_stop_reason_string.
4078 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4079 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4080 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4081
4082 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4083
4084 * frame.c (frame_stop_reason_string): Rename to ...
4085 (unwind_stop_reason_to_string): this.
4086 * frame.h (frame_stop_reason_string): Rename to ...
4087 (unwind_stop_reason_to_string): this.
4088 * stack.c (frame_info): Update call to frame_stop_reason_string.
4089 (backtrace_command_1): Likewise.
4090 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4091 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4092
4093 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4094
4095 * frame.c (remove_prev_frame): New function.
4096 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4097 remove_prev_frame.
4098
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4100
4101 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4102 and make it const. When a single-step decays to a continue,
4103 clear 'step', not 'hw_step'. Pass whether the caller wanted
4104 to step to user_visible_resume_ptid, not what we ask the
4105 target to do.
4106
4107 2014-05-29 Pedro Alves <palves@redhat.com>
4108
4109 * infrun.c (process_event_stop_test, handle_step_into_function)
4110 (handle_step_into_function_backward): Adjust.
4111 Don't set the even thread's stop_step and call stop_waiting before
4112 calling end_stepping_range. Instead do that ...
4113 (end_stepping_range): ... here. Take an ecs pointer parameter.
4114
4115 2014-05-29 Pedro Alves <palves@redhat.com>
4116
4117 * infrun.c (stop_stepping): Rename to ...
4118 (stop_waiting): ... this.
4119 (proceed): Update comment.
4120 (process_event_stop_test, handle_inferior_event)
4121 (handle_signal_stop, handle_step_into_function)
4122 (handle_step_into_function_backward): Update.
4123
4124 2014-05-29 Pedro Alves <palves@redhat.com>
4125
4126 * infcall.c (run_inferior_call): Don't check whether the current
4127 thread is running after the proceed call.
4128
4129 2014-05-29 Pedro Alves <palves@redhat.com>
4130 Tom Tromey <tromey@redhat.com>
4131
4132 * NEWS: Mention "maint set target-async", "set mi-async", and that
4133 background execution commands are now always available.
4134 * target.h (target_async_permitted): Update comment.
4135 * target.c (target_async_permitted, target_async_permitted_1):
4136 Default to 1.
4137 (set_target_async_command): Rename to ...
4138 (maint_set_target_async_command): ... this.
4139 (show_target_async_command): Rename to ...
4140 (maint_show_target_async_command): ... this.
4141 (_initialize_target): Adjust.
4142 * infcmd.c (prepare_execution_command): Make extern.
4143 * inferior.h (prepare_execution_command): Declare.
4144 * infrun.c (set_observer_mode): Leave target async alone.
4145 * mi/mi-interp.c (mi_interpreter_init): Install
4146 mi_on_sync_execution_done as sync_execution_done observer.
4147 (mi_on_sync_execution_done): New function.
4148 (mi_execute_command_input_handler): Don't print the prompt if we
4149 just started a synchronous command with an async target.
4150 (mi_on_resume): Check sync_execution before printing prompt.
4151 * mi/mi-main.h (mi_async_p): Declare.
4152 * mi/mi-main.c: Include gdbcmd.h.
4153 (mi_async_p): New function.
4154 (mi_async, mi_async_1): New globals.
4155 (set_mi_async_command, show_mi_async_command, mi_async): New
4156 functions.
4157 (exec_continue): Call prepare_execution_command.
4158 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4159 (mi_execute_async_cli_command): Use mi_async_p.
4160 (_initialize_mi_main): Install "set mi-async". Make
4161 "target-async" a deprecated alias.
4162
4163 2014-05-29 Pedro Alves <palves@redhat.com>
4164
4165 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4166 (_initialize_cli_interp): Adjust.
4167 * event-loop.c: Include "observer.h".
4168 (start_event_loop): Notify 'command_error' observers instead of
4169 calling display_gdb_prompt. Remove FIXME comment.
4170 * event-top.c (display_gdb_prompt): Remove call into the
4171 interpreters.
4172 * inf-loop.c: Include "observer.h".
4173 (inferior_event_handler): Notify 'command_error' observers instead
4174 of calling display_gdb_prompt.
4175 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4176 observers instead of calling display_gdb_prompt.
4177 * interps.c (interp_set): Don't call display_gdb_prompt.
4178 (current_interp_display_prompt_p): Delete.
4179 * interps.h (interp_prompt_p): Delete declaration.
4180 (interp_prompt_p_ftype): Delete.
4181 (struct interp_procs) <prompt_proc_p>: Delete field.
4182 (current_interp_display_prompt_p): Delete declaration.
4183 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4184 (_initialize_mi_interp): Adjust.
4185 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4186 'command_error' observers.
4187 (tui_on_sync_execution_done, tui_on_command_error): New
4188 functions.
4189 (tui_display_prompt_p): Delete.
4190 (_initialize_tui_interp): Adjust.
4191
4192 2014-05-29 Pedro Alves <palves@redhat.com>
4193
4194 PR gdb/13860
4195 * cli/cli-interp.c: Include infrun.h and observer.h.
4196 (cli_uiout, cli_interp): New globals.
4197 (cli_on_signal_received, cli_on_end_stepping_range)
4198 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4199 functions.
4200 (cli_interpreter_init): Install them as 'end_stepping_range',
4201 'signal_received' 'signal_exited', 'exited' and 'no_history'
4202 observers.
4203 (_initialize_cli_interp): Remove cli_interp local.
4204 * infrun.c (handle_inferior_event): Call the several stop reason
4205 observers instead of printing the stop reason directly.
4206 (end_stepping_range): New function.
4207 (print_end_stepping_range_reason, print_signal_exited_reason)
4208 (print_exited_reason, print_signal_received_reason)
4209 (print_no_history_reason): Make static, and add an uiout
4210 parameter. Print to that instead of to CURRENT_UIOUT.
4211 * infrun.h (print_end_stepping_range_reason)
4212 (print_signal_exited_reason, print_exited_reason)
4213 (print_signal_received_reason print_no_history_reason): New
4214 declarations.
4215 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4216 'mi_uiout'.
4217 <cli_uiout>: New field.
4218 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4219 uiout for CLI output. Install 'signal_received',
4220 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4221 observers.
4222 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4223 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4224 (mi_on_no_history): New functions.
4225 (ui_out_free_cleanup): Delete function.
4226 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4227 instead use the one already stored in the MI interpreter data.
4228 (mi_ui_out): Adjust.
4229 * tui/tui-interp.c: Include infrun.h and observer.h.
4230 (tui_interp): New global.
4231 (tui_on_signal_received, tui_on_end_stepping_range)
4232 (tui_on_signal_exited, tui_on_exited)
4233 (tui_on_no_history): New functions.
4234 (tui_init): Install them as 'end_stepping_range',
4235 'signal_received' 'signal_exited', 'exited' and 'no_history'
4236 observers.
4237 (_initialize_tui_interp): Delete tui_interp local.
4238
4239 2014-05-29 Pedro Alves <palves@redhat.com>
4240
4241 PR gdb/15713
4242 * linux-nat.c (linux_nat_resume_callback): Rename the second
4243 parameter to 'except'. Skip LP if it points to EXCEPT.
4244 (linux_nat_resume): Don't mark the event lwp as not stopped
4245 before resuming sibling lwps. Instead ask
4246 linux_nat_resume_callback to skip the event lwp. Mark it as not
4247 stopped after actually resuming it.
4248 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4249 resuming it.
4250 (wait_lwp): Mark the lwp as stopped here.
4251 (stop_wait_callback): Mark the lwp as not stopped right after
4252 resuming it. Don't mark lwps as stopped here.
4253 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4254 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4255
4256 2014-05-29 Pedro Alves <palves@redhat.com>
4257
4258 PR PR15693
4259 * infrun.c (resume): Determine how much to resume depending on
4260 whether the caller wanted a step, not whether we can hardware step
4261 the target. Mark all threads that we intend to run as running,
4262 unless we're calling an inferior function.
4263 (normal_stop): If the thread is running an infcall, don't finish
4264 thread state.
4265 * target.c (target_resume): Don't mark threads as running here.
4266
4267 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4268
4269 * serial.c (_initialize_serial): Remove support for
4270 the "set remotebaud" and "show remotebaud" commands.
4271 * NEWS: Add entry documenting the removal of that command.
4272
4273 2014-05-28 Yao Qi <yao@codesourcery.com>
4274
4275 * charset.c: Fix typo in comments.
4276
4277 2014-05-27 Gary Benson <gbenson@redhat.com>
4278
4279 * utils.c (internal_vproblem): Prompt for a bug report.
4280
4281 2014-05-26 Andy Wingo <wingo@igalia.com>
4282
4283 * guile/scm-arch.c (arscm_mark_arch_smob):
4284 * guile/scm-block.c (bkscm_mark_block_smob)
4285 (bkscm_mark_block_syms_progress_smob):
4286 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4287 * guile/scm-exception.c (exscm_mark_exception_smob):
4288 * guile/scm-frame.c (frscm_mark_frame_smob):
4289 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4290 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4291 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4292 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4293 (ppscm_mark_pretty_printer_worker_smob):
4294 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4295 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4296 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4297 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4298 mark functions.
4299 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4300 function.
4301
4302 2014-05-26 Andy Wingo <wingo@igalia.com>
4303 Doug Evans <xdje42@gmail.com>
4304
4305 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4306 empty_base_class. All uses updated.
4307 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4308 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4309 Adapt all callers.
4310 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4311 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4312 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4313 (gdbscm_gsmob_has_property_p, add_property_name)
4314 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4315 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4316 (gdb-object-has-property?, gdb-object-properties): Remove.
4317 (gdb-object-kind): Renamed from gsmob-kind.
4318
4319 2014-05-26 Andy Wingo <wingo@igalia.com>
4320
4321 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4322 * configure: Regenerate.
4323
4324 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4325
4326 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4327
4328 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4329
4330 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4331 (replay_memory_access_read_only, replay_memory_access_read_write)
4332 (replay_memory_access_types, replay_memory_access)
4333 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4334 (cmd_set_record_btrace, cmd_show_record_btrace)
4335 (cmd_show_replay_memory_access): New.
4336 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4337 (record_btrace_remove_breakpoint): Replace
4338 record_btrace_allow_memory_access with replay_memory_access.
4339 (_initialize_record_btrace): Add commands.
4340 * NEWS: Announce it.
4341
4342 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4343
4344 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4345
4346 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4347
4348 * MAINTAINERS (Write After Approval): Move self back from
4349 paper trail.
4350
4351 2014-05-22 Pedro Alves <palves@redhat.com>
4352
4353 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4354 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4355 (disable_randomization, enum exec_direction_kind)
4356 (execution_direction, stop_registers, start_remote)
4357 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4358 (wait_for_inferior, normal_stop, get_last_target_status)
4359 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4360 (insert_step_resume_breakpoint_at_sal)
4361 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4362 (set_step_info, print_stop_event, signal_stop_state)
4363 (signal_print_state, signal_pass_state, signal_stop_update)
4364 (signal_print_update, signal_pass_update)
4365 (update_signals_program_target, clear_exit_convenience_vars)
4366 (displaced_step_dump_bytes, update_observer_mode)
4367 (signal_catch_update, gdb_signal_from_command): Move
4368 declarations ...
4369 * infrun.h: ... to this new file.
4370 * amd64-tdep.c: Include infrun.h.
4371 * annotate.c: Include infrun.h.
4372 * arch-utils.c: Include infrun.h.
4373 * arm-linux-tdep.c: Include infrun.h.
4374 * arm-tdep.c: Include infrun.h.
4375 * break-catch-sig.c: Include infrun.h.
4376 * breakpoint.c: Include infrun.h.
4377 * common/agent.c: Include infrun.h instead of inferior.h.
4378 * corelow.c: Include infrun.h.
4379 * event-top.c: Include infrun.h.
4380 * go32-nat.c: Include infrun.h.
4381 * i386-tdep.c: Include infrun.h.
4382 * inf-loop.c: Include infrun.h.
4383 * infcall.c: Include infrun.h.
4384 * infcmd.c: Include infrun.h.
4385 * infrun.c: Include infrun.h.
4386 * linux-fork.c: Include infrun.h.
4387 * linux-nat.c: Include infrun.h.
4388 * linux-thread-db.c: Include infrun.h.
4389 * monitor.c: Include infrun.h.
4390 * nto-tdep.c: Include infrun.h.
4391 * procfs.c: Include infrun.h.
4392 * record-btrace.c: Include infrun.h.
4393 * record-full.c: Include infrun.h.
4394 * remote-m32r-sdi.c: Include infrun.h.
4395 * remote-mips.c: Include infrun.h.
4396 * remote-notif.c: Include infrun.h.
4397 * remote-sim.c: Include infrun.h.
4398 * remote.c: Include infrun.h.
4399 * reverse.c: Include infrun.h.
4400 * rs6000-tdep.c: Include infrun.h.
4401 * s390-linux-tdep.c: Include infrun.h.
4402 * solib-irix.c: Include infrun.h.
4403 * solib-osf.c: Include infrun.h.
4404 * solib-svr4.c: Include infrun.h.
4405 * target.c: Include infrun.h.
4406 * top.c: Include infrun.h.
4407 * windows-nat.c: Include infrun.h.
4408 * mi/mi-interp.c: Include infrun.h.
4409 * mi/mi-main.c: Include infrun.h.
4410 * python/py-threadevent.c: Include infrun.h.
4411
4412 2014-05-22 Pedro Alves <palves@redhat.com>
4413
4414 * infrun.c (handle_inferior_event): Store the exit code for
4415 --return-child-result here, instead of ...
4416 (print_exited_reason): ... here.
4417
4418 2014-05-21 Pedro Alves <palves@redhat.com>
4419
4420 PR gdb/13860
4421 * gdbthread.h (struct thread_control_state): New field
4422 `command_interp'.
4423 * infrun.c (follow_fork): Copy the new thread control field to the
4424 child fork thread.
4425 (clear_proceed_status_thread): Clear the new thread control field.
4426 (proceed): Set the new thread control field.
4427 * interps.h (command_interp): Declare.
4428 * interps.c (command_interpreter): New global.
4429 (command_interp): New function.
4430 (interp_exec): Set `command_interpreter' while here.
4431 * cli-out.c (cli_uiout_dtor): New function.
4432 (cli_ui_out_impl): Install it.
4433 * mi/mi-interp.c: Include cli-out.h.
4434 (mi_cmd_interpreter_exec): Add comment.
4435 (restore_current_uiout_cleanup): New function.
4436 (ui_out_free_cleanup): New function.
4437 (mi_on_normal_stop): If finishing an execution command started by
4438 a CLI command, or any kind of breakpoint-like event triggered,
4439 print the stop event to the output (CLI) stream.
4440 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4441
4442 2014-05-21 Pedro Alves <palves@redhat.com>
4443
4444 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4445 current source line having changed.
4446 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4447 * infrun.c (normal_stop): Adjust call to
4448 set_current_sal_from_frame.
4449 * source.c (clear_lines_listed_range): New function.
4450 (set_current_source_symtab_and_line, identify_source_line): Clear
4451 the lines listed range.
4452 (line_info): Handle the first "info line" after the current source
4453 line having changed.
4454 * stack.c (print_stack_frame): Remove center handling.
4455 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4456 center sal.line.
4457
4458 2014-05-21 Pedro Alves <palves@redhat.com>
4459
4460 * inf-child.c (inf_child_mourn_inferior): New function.
4461 * inf-child.h (inf_child_mourn_inferior): New declaration.
4462 * darwin-nat.c (darwin_mourn_inferior): Use
4463 inf_child_mourn_inferior.
4464 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4465 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4466 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4467 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4468 * windows-nat.c (windows_mourn_inferior): Likewise.
4469
4470 2014-05-21 Doug Evans <xdje42@gmail.com>
4471
4472 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4473
4474 2014-05-21 Doug Evans <xdje42@gmail.com>
4475
4476 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4477 (gdbscm_out_of_range_error): Ditto.
4478 (gdbscm_memory_error): Ditto.
4479 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4480 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4481 (gdbscm_out_of_range_error): Update.
4482 (gdbscm_memory_error): Update.
4483 (gdbscm_scm_to_target_string_unsafe): Delete.
4484
4485 2014-05-21 Pedro Alves <palves@redhat.com>
4486
4487 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4488 globals.
4489 (inf_child_open_target): New function.
4490 (inf_child_open): Use inf_child_open_target to push the target
4491 instead of erroring out.
4492 (inf_child_disconnect, inf_child_close)
4493 (inf_child_maybe_unpush_target): New functions.
4494 (inf_child_target): Install inf_child_disconnect and
4495 inf_child_close. Store a pointer to the returned object.
4496 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4497 declarations.
4498 * target.c (auto_connect_native_target): New global.
4499 (show_default_run_target): New function.
4500 (find_default_run_target): Return NULL if automatically connecting
4501 to the native target is disabled.
4502 (_initialize_target): Install set/show auto-connect-native-target.
4503 * NEWS: Mention "set auto-connect-native-target", and "target
4504 native".
4505 * linux-nat.c (super_close): New global.
4506 (linux_nat_close): Call super_close.
4507 (linux_nat_add_target): Store a pointer to the base class's
4508 to_close method.
4509 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4510 inf_child_maybe_unpush.
4511 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4512 already pushed.
4513 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4514 the inferior. Use inf_child_maybe_unpush_target.
4515 (inf_ttrace_attach): Don't push the target if it is already
4516 pushed.
4517 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4518 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4519 after mourning the inferior. Use inf_child_maybe_unpush_target.
4520 (darwin_attach_pid): Don't push the target if it is already
4521 pushed.
4522 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4523 mourning the inferior. Use inf_child_maybe_unpush_target.
4524 (gnu_detach): Use inf_child_maybe_unpush_target.
4525 * go32-nat.c (go32_create_inferior): Don't push the target if it
4526 is already pushed.
4527 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4528 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4529 (procfs_open): Rename to ...
4530 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4531 comments. Can target_preopen before changing node. Call
4532 inf_child_open_target to push the target explicitly.
4533 (procfs_attach): Don't push the target if it is already pushed.
4534 (procfs_detach): Use inf_child_maybe_unpush_target.
4535 (procfs_create_inferior): Don't push the target if it is already
4536 pushed.
4537 (nto_native_ops): New global.
4538 (procfs_open): Reimplement.
4539 (procfs_native_open): New function.
4540 (init_procfs_targets): Install procfs_native_open as to_open of
4541 "target native". Store a pointer to the "native" target in
4542 nto_native_ops.
4543 * procfs.c (procfs_attach): Don't push the target if it is already
4544 pushed.
4545 (procfs_detach): Use inf_child_maybe_unpush_target.
4546 (procfs_mourn_inferior): Only unpush the target after mourning the
4547 inferior. Use inf_child_maybe_unpush_target.
4548 (procfs_init_inferior): Don't push the target if it is already
4549 pushed.
4550 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4551 if it is already pushed.
4552
4553 2014-05-21 Pedro Alves <palves@redhat.com>
4554
4555 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4556 and "procfs" targets are now called "native" instead.
4557
4558 2014-05-21 Pedro Alves <palves@redhat.com>
4559
4560 * go32-nat.c (go32_open): Delete.
4561 (go32_target): Don't override the to_open method.
4562
4563 2014-05-21 Pedro Alves <palves@redhat.com>
4564
4565 * nto-procfs.c (procfs_can_run): New function.
4566 (nto_procfs_ops): New global.
4567 (init_procfs_targets): New, based on procfs_target. Install
4568 "target native" in addition to "target procfs".
4569 (_initialize_procfs): Call init_procfs_targets instead of adding
4570 the target here.
4571
4572 2014-05-21 Pedro Alves <palves@redhat.com>
4573
4574 * windows-nat.c (windows_target): Don't override to_shortname,
4575 to_longname or to_doc.
4576
4577 2014-05-21 Pedro Alves <palves@redhat.com>
4578
4579 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4580 to_doc.
4581
4582 2014-05-21 Pedro Alves <palves@redhat.com>
4583
4584 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4585 to_shortname, to_longname or to_doc.
4586
4587 2014-05-21 Pedro Alves <palves@redhat.com>
4588
4589 * go32-nat.c (go32_target): Don't override to_shortname,
4590 to_longname or to_doc.
4591
4592 2014-05-21 Pedro Alves <palves@redhat.com>
4593
4594 * inf-child.c (inf_child_open): Remove mention of "child".
4595 (inf_child_target): Rename target to "native" instead of "child".
4596
4597 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4598
4599 * Makefile.in (SFILES): Delete "regset.c".
4600 (COMMON_OBS): Delete "regset.o".
4601 * regset.c: Remove.
4602 * regset.h (regset_alloc): Delete prototype.
4603
4604 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4605
4606 * sparc-linux-tdep.c (sparc32_linux_gregset)
4607 (sparc32_linux_fpregset): New static regset structures.
4608 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4609 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4610 'fpregset' fields.
4611 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4612 (sparc64_linux_fpregset): New static regset structures.
4613 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4614 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4615 New static regset structures.
4616 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4617 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4618 New static regset structures.
4619 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4620 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4621 New static regset structures.
4622 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4623 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4624 New static regset structures.
4625 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4626
4627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628
4629 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4630 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4631 register maps ("regmaps") from "*regset" to "*regmap". Do this
4632 for all regmap types and variables.
4633 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4634 (sparc32_linux_supply_core_gregset)
4635 (sparc32_linux_collect_core_gregset)
4636 (sparc32_linux_supply_core_fpregset)
4637 (sparc32_linux_collect_core_fpregset): Likewise.
4638 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4639 (sparc_gregmap, sparc_fpregmap): ... these.
4640 (sparc_supply_gregset, sparc_collect_gregset)
4641 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4642 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4643 (_initialize_sparc_nat): Rename regmaps.
4644 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4645 (sparc_gregmap, sparc_fpregmap): ... these.
4646 (sparc_supply_gregset, sparc_collect_gregset)
4647 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4648 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4649 Rename macros to...
4650 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4651 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4652 Likewise.
4653 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4654 Rename to...
4655 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4656 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4657 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4658 regmaps.
4659 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4660 (sparc32_bsd_fpregset): Rename to...
4661 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4662 (sparc32_bsd_fpregmap): ... these.
4663 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4664 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4665 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4666 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4667 (struct sparc_gregmap, struct sparc_fpregmap)
4668 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4669 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4670 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4671 (sparc32_supply_regset, sparc32_collect_gregset)
4672 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4673 prototypes.
4674 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4675 (sparc64_linux_ptrace_gregmap): ... this.
4676 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4677 (_initialize_sparc64_linux_nat): Rename regmaps.
4678 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4679 (sparc64_linux_core_gregmap): ... this.
4680 (sparc64_linux_supply_core_gregset)
4681 (sparc64_linux_collect_core_gregset)
4682 (sparc64_linux_supply_core_fpregset)
4683 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4684 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4685 (sparc64_sol2_fpregset): Rename to...
4686 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4687 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4688 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4689 regmaps.
4690 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4691 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4692 (sparc64_bsd_fpregset): Rename to...
4693 (struct sparc_gregmap, sparc64_sol2_gregmap)
4694 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4695 (sparc64_bsd_fpregmap): ... these.
4696 (sparc64_supply_gregset, sparc64_collect_gregset)
4697 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4698 prototypes.
4699 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4700 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4701 (sparc64fbsd_gregmap): ... this.
4702 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4703 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4704 Rename regmaps.
4705 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4706 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4707 (sparc64nbsd_collect_fpregset): Likewise.
4708 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4709 (sparc64nbsd_gregmap): ... this.
4710 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4711 regmaps.
4712 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4713 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4714 (sparc64obsd_gregmap): ... this.
4715 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4716 regmaps.
4717 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4718 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4719 (sparc32nbsd_gregmap): ... this.
4720 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4721 regmaps.
4722
4723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4724
4725 * score-tdep.c (score7_linux_gregset): New static regset
4726 structure.
4727 (score7_linux_regset_from_core_section): Remove dynamic regset
4728 allocation.
4729 (score_gdbarch_init): Drop allocation of tdep structure.
4730 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4731
4732 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4733
4734 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4735 regset structures.
4736 (am33_regset_from_core_section): Remove dynamic regset
4737 allocations.
4738
4739 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4740
4741 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4742 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4743 structures.
4744 (mips_linux_regset_from_core_section): Remove dynamic regset
4745 allocations.
4746 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4747 'gregset64', 'fpregset', and 'fpregset64'.
4748 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4749 deleted tdep fields.
4750
4751 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4752
4753 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4754 regset structures.
4755 (amd64_regset_from_core_section): Remove dynamic regset
4756 allocations.
4757 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4758 structure.
4759 (amd64obsd_regset_from_core_section): Remove dynamic regset
4760 allocation.
4761 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4762 Likewise.
4763 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4764 x86-common regset supply function.
4765 * i386-tdep.c (i386_collect_gregset): Make static.
4766 (i386_gregset): New global regset structure.
4767 (i386_fpregset, i386_xstateregset): New static regset structures.
4768 (i386_regset_from_core_section): Remove dynamic regset
4769 allocations.
4770 (i386_gdbarch_init): Remove initialization of tdep fields
4771 'gregset', 'fpregset', and 'xstateregset'.
4772 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4773 'fpregset', and 'xstateregset'.
4774 (i386_collect_gregset): Remove prototype.
4775 (i386_gregset): New declaration.
4776 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4777 structure.
4778 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4779 allocation.
4780
4781 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4782
4783 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4784 (arm_linux_vfpregset): New static regset structures.
4785 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4786 regset structures.
4787 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4788 and 'vfpregset' fields.
4789
4790 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4791
4792 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4793 (aarch64_linux_fpregset): New static regset structures.
4794 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4795 of regset structures.
4796 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4797 'fpregset' fields.
4798
4799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4800
4801 * regset.h (struct regset): Remove gdbarch field.
4802 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4803 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4804 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4805 Likewise.
4806 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4807 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4808 (ppc32_linux_vsxregset): Likewise.
4809 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4810 via the regcache instead of the regset.
4811 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4812 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4813 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4814 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4815 Likewise.
4816
4817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4818
4819 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4820 Constify structures.
4821 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4822 (alphanbsd_aout_gregset): Likewise.
4823 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4824 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4825 Likewise.
4826 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4827 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4828 Likewise.
4829 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4830 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4831 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4832 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4833 * m88k-tdep.c (m88k_gregset): Likewise.
4834 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4835 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4836 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4837 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4838 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4839 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4840 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4841 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4842 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4843 Likewise.
4844 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4845 * sh-tdep.h (sh_corefile_gregset): Likewise.
4846 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4847 * vax-tdep.c (vax_gregset): Likewise.
4848
4849 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 Fix TLS access for -static -pthread.
4852 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4853 (try_thread_db_load_1): Initialize it.
4854 (thread_db_get_thread_local_address): Call it if LM is zero.
4855 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4856 * target.h (struct target_ops) (to_get_thread_local_address): Add
4857 load_module_addr comment.
4858
4859 2014-05-21 Pedro Alves <palves@redhat.com>
4860
4861 * dcache.c (dcache_read_memory_partial): If reading the cache line
4862 fails, fallback to reading just the memory the caller wanted.
4863
4864 2014-05-20 Doug Evans <dje@google.com>
4865
4866 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4867 instead of get_current_arch.
4868
4869 2014-05-20 Pedro Alves <palves@redhat.com>
4870
4871 * NEWS: Mention that compare-sections now works with all targets.
4872
4873 * remote.c (PACKET_qCRC): New enum value.
4874 (remote_verify_memory): Don't send qCRC if the target has no
4875 execution. Use packet_support/packet_ok. If the target doesn't
4876 support the qCRC packet, fallback to a deep memory copy.
4877 (compare_sections_command): Say "target image" instead of "remote
4878 executable".
4879 (_initialize_remote): Add PACKET_qCRC to the list of config
4880 packets that have no associated command. Extend comment.
4881 * target.c (simple_verify_memory, default_verify_memory): New
4882 function.
4883 * target.h (struct target_ops) <to_verify_memory>: Default to
4884 default_verify_memory.
4885 (simple_verify_memory): New declaration.
4886 * target-delegates.c: Regenerate.
4887
4888 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4889
4890 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4891
4892 2014-05-20 Hui Zhu <hui@codesourcery.com>
4893 Yao Qi <yao@codesourcery.com>
4894
4895 PR backtrace/16558
4896 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4897 and change address of sp and pc.
4898
4899 2014-05-19 Tom Tromey <tromey@redhat.com>
4900
4901 * gdbtypes.c (rank_function): Use XNEWVEC.
4902 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4903
4904 2014-05-19 Doug Evans <dje@google.com>
4905
4906 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4907 build_type_unit_groups and moved closer to only caller. Remove
4908 arguments. All references updated. Remove outdated .gdb_index
4909 comment.
4910 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4911 build_type_psymtabs_1.
4912
4913 2014-05-19 Doug Evans <dje@google.com>
4914
4915 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4916 n_type_unit_groups, all_type_unit_groups. All uses removed.
4917 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4918 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4919 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4920 (add_type_unit_group_to_table): Delete.
4921
4922 2014-05-19 Doug Evans <dje@google.com>
4923
4924 * eval.c (evaluate_subexp_standard): Add some comments.
4925
4926 2014-05-17 Doug Evans <xdje42@gmail.com>
4927
4928 * progspace.c (remove_program_space): Delete, unused.
4929 * progspace.h (remove_program_space): Ditto.
4930
4931 2014-05-17 Doug Evans <xdje42@gmail.com>
4932
4933 * inferior.c (prune_inferiors): Fix comment.
4934 (remove_inferior_command): Call prune_program_spaces.
4935
4936 2014-05-16 Doug Evans <dje@google.com>
4937
4938 New command line option -D.
4939 * NEWS: Mention it.
4940 * main.c (set_gdb_data_directory): New function.
4941 (captured_main): Recognize -D. Flag error for --data-directory "".
4942 Call set_gdb_data_directory.
4943 (print_gdb_help): Print --data-directory, -D.
4944 * main.h (set_gdb_data_directory): Declare.
4945 * top.c (staged_gdb_datadir): New static global.
4946 (set_gdb_datadir): Call set_gdb_data_directory
4947 (show_gdb_datadir): New function.
4948 (init_main): Update init of data-directory parameter.
4949
4950 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4951
4952 Import the "dirfd" gnulib module.
4953 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4954 * gnulib/aclocal.m4: Update.
4955 * gnulib/config.in: Update.
4956 * gnulib/configure: Update.
4957 * gnulib/import/Makefile.am: Update.
4958 * gnulib/import/Makefile.in: Update.
4959 * gnulib/import/dirfd.c: New.
4960 * gnulib/import/m4/dirfd.m4: New.
4961 * gnulib/import/m4/gnulib-cache.m4: Update.
4962 * gnulib/import/m4/gnulib-comp.m4: Update.
4963
4964 2014-05-16 Pierre Muller <muller@sourceware.org>
4965 Yao Qi <yao@codesourcery.com>
4966
4967 * valprint.c (print_wchar): Move the code on checking whether
4968 W is a printable wide char to the default branch of switch
4969 statement below. Call wchar_printable instead of gdb_iswprint.
4970
4971 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4972
4973 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4974 ldr.w and ldrd instructions.
4975
4976 2014-05-15 Doug Evans <dje@google.com>
4977
4978 * dwarf2read.c (read_structure_type): Delete outdated comments.
4979
4980 2014-05-14 Tom Tromey <tromey@redhat.com>
4981
4982 * macrocmd.c (print_macro_definition): Reindent.
4983
4984 2014-05-13 Doug Evans <xdje42@gmail.com>
4985
4986 * python/py-cmd.c (cmdpy_completer): Add comment.
4987 (completers): Make const.
4988
4989 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * infrun.c (resume): Remove should_resume (unused). Move up
4992 declaration of resume_ptid.
4993
4994 2014-05-13 Tom Tromey <tromey@redhat.com>
4995
4996 * language.h (unop_type_check): Remove.
4997 (binop_type_check): Don't declare.
4998
4999 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5000
5001 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5002 call to regcache_raw_collect.
5003
5004 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5005
5006 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5007 mi_console->quote as the quoting character.
5008
5009 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5010
5011 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5012
5013 2014-04-29 Tom Tromey <tromey@redhat.com>
5014
5015 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5016 "show debug varobj".
5017
5018 2014-05-07 Kyle McMartin <kyle@redhat.com>
5019
5020 Pushed by Joel Brobecker <brobecker@adacore.com>.
5021 * aarch64-tdep.c (aarch64_software_single_step): New function.
5022 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5023 with aarch64_software_single_step.
5024
5025 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5026
5027 GDB 7.7.1 released.
5028
5029 2014-05-05 Keith Seitz <keiths@redhat.com>
5030
5031 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5032 variable or history value is successfully parsed.
5033
5034 2014-05-05 Yao Qi <yao@codesourcery.com>
5035 Pedro Alves <palves@redhat.com>
5036
5037 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5038 address of blocks that intersects the requested range. Trim
5039 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5040 sections.
5041 * ctf.c (ctf_xfer_partial): Likewise.
5042
5043 2014-05-05 Yao Qi <yao@codesourcery.com>
5044
5045 * printcmd.c (display_command): Remove the check to
5046 target_has_execution.
5047
5048 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5049
5050 * ppcobsd-nat.c: Include "obsd-nat.h".
5051 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5052 add_target.
5053 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5054
5055 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5056
5057 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5058 and 16-bit signed and unsigned arguments. Update comment.
5059 (stap_parse_probe_arguments): Extend code to handle such
5060 arguments. Use warning instead of complaint to notify about
5061 unrecognized bitness.
5062
5063 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5064
5065 PR breakpoints/16889
5066 * stap-probe.c (stap_parse_probe_arguments): Simplify
5067 check for non-prefixed probes (i.e., probes whose
5068 arguments do not start with "N@"). Always set the
5069 argument type to a sane value.
5070
5071 2014-05-01 David Taylor <dtaylor@emc.com>
5072
5073 * remote.c (compare_sections_command): Add -r option to compare
5074 all loadable read-only sections.
5075
5076 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5077
5078 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5079 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5080 Update all callers.
5081 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5082 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5083 Remove unused CORE_ADDR argument. Update all callers.
5084
5085 2014-04-29 Pedro Alves <palves@redhat.com>
5086
5087 * remote.c (struct packet_config) <detect>: Extend comment.
5088 (add_packet_config_cmd): Don't set the config's detect or support
5089 fields here.
5090 (init_all_packet_configs): Also initialize the config's 'detect'
5091 field.
5092 (reset_all_packet_configs_support): New function.
5093 (remote_open_1): Call reset_all_packet_configs_support instead of
5094 init_all_packet_configs.
5095 (_initialize_remote): Initialize all packet configs. Assert that
5096 all packets have an associated command, except a few known
5097 outliers.
5098
5099 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5100
5101 * dwarf2read.c (read_subrange_type): Handle dynamic
5102 DW_AT_lower_bound attributes.
5103
5104 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5105
5106 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5107 dynamic bounds before computing its upper bound.
5108 (ada_discrete_type_low_bound): Same as above with the lower bound.
5109
5110 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5111
5112 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5113 range types. Adjust the array handling implementation to
5114 take advantage of this change.
5115 (resolve_dynamic_range): New function, mostly extracted from
5116 resolve_dynamic_bounds.
5117 (resolve_dynamic_array): New function, mostly extracted from
5118 resolve_dynamic_bounds.
5119 (resolve_dynamic_bounds): Delete.
5120 (resolve_dynamic_type): Reimplement. Add handling of
5121 TYPE_CODE_RANGE types.
5122
5123 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5124
5125 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5126 handling of parallel ___XA types.
5127
5128 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5129
5130 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5131 unnecessary second call to static_unwrap_type.
5132
5133 2014-04-27 Hui Zhu <hui@codesourcery.com>
5134
5135 * stack.c (print_frame_info): Call do_gdb_disassembly with
5136 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5137
5138 2014-04-26 Doug Evans <xdje42@gmail.com>
5139
5140 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5141
5142 2014-04-25 Pedro Alves <palves@redhat.com>
5143
5144 PR server/16255
5145 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5146 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5147 and newline from built string.
5148 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5149 (linux_ptrace_attach_fail_reason): ... this.
5150 * linux-nat.c (linux_nat_attach): Adjust to use
5151 linux_ptrace_attach_fail_reason.
5152
5153 2014-04-25 Pedro Alves <palves@redhat.com>
5154
5155 * remote.c (struct remote_state): Remove multi_process_aware,
5156 non_stop_aware, cond_tracepoints, cond_breakpoints,
5157 breakpoint_commands, fast_tracepoints, static_tracepoints,
5158 install_in_trace, disconnected_tracing,
5159 enable_disable_tracepoints, string_tracing, and
5160 augmented_libraries_svr4_read fields.
5161 (remote_multi_process_p): Move further below in the file.
5162 (struct packet_config): Add comments.
5163 (update_packet_config): Delete function.
5164 (show_packet_config_cmd): Use packet_config_support.
5165 (add_packet_config_cmd): Use NULL as set callback.
5166 (packet_ok): "set remote foo-packet"-style commands no longer
5167 change config->supported -- adjust.
5168 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5169 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5170 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5171 (PACKET_QNonStop, PACKET_multiprocess_feature)
5172 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5173 (PACKET_DisconnectedTracing_feature)
5174 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5175 (set_remote_protocol_packet_cmd): Delete function.
5176 (packet_config_support, packet_support): New functions.
5177 (set_remote_protocol_Z_packet_cmd): Don't call
5178 update_packet_config.
5179 (remote_query_attached, remote_pass_signals)
5180 (remote_program_signals, remote_threads_info)
5181 (remote_threads_extra_info, remote_start_remote): Use
5182 packet_support.
5183 (remote_start_remote): Use packet_config_support and
5184 packet_support.
5185 (init_all_packet_configs): Set all packets to unknown support,
5186 instead of calling update_packet_config.
5187 (remote_check_symbols): Use packet_support.
5188 (remote_supported_packet): Unconditionally set the packet config's
5189 support status.
5190 (remote_multi_process_feature, remote_non_stop_feature)
5191 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5192 (remote_breakpoint_commands_feature)
5193 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5194 (remote_install_in_trace_feature)
5195 (remote_disconnected_tracing_feature)
5196 (remote_enable_disable_tracepoint_feature)
5197 (remote_string_tracing_feature)
5198 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5199 (remote_protocol_features): Adjust to use remote_supported_packet
5200 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5201 "ConditionalTracepoints", "ConditionalBreakpoints",
5202 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5203 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5204 "EnableDisableTracepoints", and "tracenz".
5205 (remote_query_supported): Use packet_support.
5206 (remote_open_1): Adjust.
5207 (extended_remote_attach_1): Use packet_support. Switch on the
5208 result of packet_ok instead of checking whether the packet ended
5209 up disabled.
5210 (remote_vcont_resume): Use packet_support.
5211 (remote_resume, remote_stop_ns, fetch_register_using_p)
5212 (remote_prepare_to_store, store_register_using_P)
5213 (check_binary_download, remote_write_bytes): Use packet_support.
5214 (remote_vkill): Use packet_support. Switch on the result of
5215 packet_ok instead of checking whether the packet ended up
5216 disabled.
5217 (extended_remote_supports_disable_randomization): Use
5218 packet_support.
5219 (extended_remote_run): Switch on the result of packet_ok instead
5220 of checking whether the packet ended up disabled.
5221 (remote_insert_breakpoint, remote_remove_breakpoint)
5222 (remote_insert_watchpoint, remote_remove_watchpoint)
5223 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5224 packet_support.
5225 (remote_search_memory): Use packet_config_support.
5226 (remote_get_thread_local_address, remote_get_tib_address)
5227 (remote_hostio_send_command, remote_can_execute_reverse): Use
5228 packet_support.
5229 (remote_supports_cond_tracepoints)
5230 (remote_supports_cond_breakpoints)
5231 (remote_supports_fast_tracepoints)
5232 (remote_supports_static_tracepoints)
5233 (remote_supports_install_in_trace)
5234 (remote_supports_enable_disable_tracepoint)
5235 (remote_supports_string_tracing)
5236 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5237 the packet config says the feature is enabled or disabled.
5238 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5239 (remote_get_trace_status): Use packet_support.
5240 (remote_set_disconnected_tracing): Adjust to check whether the
5241 feature is enabled with packet_support.
5242 (remote_set_trace_buffer_size, remote_use_agent)
5243 (remote_can_use_agent, remote_supports_btrace): Use
5244 packet_support.
5245 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5246 Use packet_config_support.
5247 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5248 the packet config says the feature is enabled or disabled.
5249 (set_range_stepping): Use packet_support.
5250
5251 2014-04-25 Tom Tromey <tromey@redhat.com>
5252
5253 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5254 argument.
5255
5256 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5257
5258 * NEWS: Mention support for C99 variable length arrays.
5259
5260 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5261
5262 * ada-lang.c (standard_exc): Expand introductory comment.
5263
5264 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5265 Walfred Tedeschi <walfred.tedeschi@intel.com>
5266
5267 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5268 AVX512 registers.
5269 (amd64_linux_read_description): Add code to handle AVX512 xstate
5270 mask and return respective tdesc.
5271 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5272 and features/i386/x32-avx512-linux.c.
5273 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5274 (amd64_linux_core_read_description): Add code to handle AVX512
5275 xstate mask and return respective tdesc.
5276 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5277 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5278 calculation.
5279 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5280 (tdesc_amd64_avx512_linux): New prototype.
5281 (tdesc_x32_avx512_linux): Likewise.
5282 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5283 features/i386/x32-avx512.c.
5284 (amd64_ymm_avx512_names): New register names for pseudo
5285 registers YMM16-31.
5286 (amd64_ymmh_avx512_names): New register names for raw registers
5287 YMMH16-31.
5288 (amd64_k_names): New register names for K registers.
5289 (amd64_zmmh_names): New register names for ZMM raw registers.
5290 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5291 (amd64_xmm_avx512_names): New register names for XMM16-31
5292 registers.
5293 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5294 registers.
5295 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5296 if feature is present.
5297 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5298 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5299 (AMD64_NUM_REGS): Adjust to new number of registers.
5300 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5301 registers supplied via XSTATE by AVX512 registers.
5302 (i386_linux_read_description): Add case for AVX512.
5303 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5304 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5305 (i386_linux_core_read_description): Add case for AVX512.
5306 (i386_linux_init_abi): Install supported register note section
5307 for AVX512.
5308 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5309 AVX512.
5310 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5311 registers to be number of zmm7h + 1.
5312 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5313 * i386-tdep.c: Include features/i386/i386-avx512.c.
5314 (i386_zmm_names): Add ZMM pseudo register names array.
5315 (i386_zmmh_names): Add ZMM raw register names array.
5316 (i386_k_names): Add K raw register names array.
5317 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5318 registers. AVX512 has 16 more ZMM registers than there are YMM
5319 registers.
5320 (i386_zmmh_regnum_p): Add function to look up register number of
5321 ZMM raw registers.
5322 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5323 (i386_k_regnum_p): Likewise for K raw registers.
5324 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5325 registers added by AVX512.
5326 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5327 registers added by AVX512.
5328 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5329 added by AVX512.
5330 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5331 (i386_pseudo_register_name): Add ZMM pseudo registers.
5332 (i386_zmm_type): Construct and return vector registers type for ZMM
5333 registers.
5334 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5335 ZMM0-31 pseudo registers and K registers.
5336 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5337 and YMM16-31 registers from register cache.
5338 (i386_pseudo_register_write): Add code to write K, ZMM and
5339 YMM16-31 registers.
5340 (i386_register_reggroup_p): Add code to include/exclude AVX512
5341 registers in/from respective register groups.
5342 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5343 registers if feature is present in xcr0.
5344 (i386_gdbarch_init): Add code to initialize AVX512 feature
5345 variables in tdep structure, wire in pseudo registers and call
5346 initialize_tdesc_i386_avx512.
5347 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5348 variables.
5349 (i386_regnum): Add AVX512 registers.
5350 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5351 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5352 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5353 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5354 512 bits wide.
5355 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5356 (i386_ymm_avx512_regnum_p): Likewise.
5357 (i386_k_regnum_p): Likewise.
5358 (i386_zmm_regnum_p): Likewise.
5359 (i386_zmmh_regnum_p): Likewise.
5360 * i387-tdep.c : Update year in copyright notice.
5361 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5362 XSAVE buffer.
5363 (XSAVE_YMM_AVX512_ADDR): New macro.
5364 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5365 XSAVE buffer.
5366 (XSAVE_XMM_AVX512_ADDR): New macro.
5367 (xsave_avx512_k_offset): New table for K register offsets in
5368 XSAVE buffer.
5369 (XSAVE_AVX512_K_ADDR): New macro.
5370 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5371 in XSAVE buffer.
5372 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5373 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5374 buffer.
5375 (i387_collect_xsave): Add code to collect AVX512 registers from
5376 XSAVE buffer.
5377 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5378 of XMM16-31 registers.
5379 (I387_NUM_K_REGS): New define for number of K registers.
5380 (I387_K0_REGNUM): New define for K0 register number.
5381 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5382 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5383 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5384 registers.
5385 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5386 (I387_XMM16_REGNUM): New define for XMM16 register number.
5387 (I387_YMM0_REGNUM): New define for YMM0 register number.
5388 (I387_KEND_REGNUM): New define for last K register number.
5389 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5390 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5391 number.
5392 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5393 number.
5394 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5395 size.
5396 * features/Makefile: Add AVX512 related files.
5397 * features/i386/32bit-avx512.xml: New file.
5398 * features/i386/64bit-avx512.xml: Likewise.
5399 * features/i386/amd64-avx512-linux.c: Likewise.
5400 * features/i386/amd64-avx512-linux.xml: Likewise.
5401 * features/i386/amd64-avx512.c: Likewise.
5402 * features/i386/amd64-avx512.xml: Likewise.
5403 * features/i386/i386-avx512-linux.c: Likewise.
5404 * features/i386/i386-avx512-linux.xml: Likewise.
5405 * features/i386/i386-avx512.c: Likewise.
5406 * features/i386/i386-avx512.xml: Likewise.
5407 * features/i386/x32-avx512-linux.c: Likewise.
5408 * features/i386/x32-avx512-linux.xml: Likewise.
5409 * features/i386/x32-avx512.c: Likewise.
5410 * features/i386/x32-avx512.xml: Likewise.
5411 * regformats/i386/amd64-avx512-linux.dat: New file.
5412 * regformats/i386/amd64-avx512.dat: Likewise.
5413 * regformats/i386/i386-avx512-linux.dat: Likewise.
5414 * regformats/i386/i386-avx512.dat: Likewise.
5415 * regformats/i386/x32-avx512-linux.dat: Likewise.
5416 * regformats/i386/x32-avx512.dat: Likewise.
5417 * NEWS: Add note about new support for AVX512.
5418
5419
5420 2014-04-23 Pedro Alves <palves@redhat.com>
5421
5422 * breakpoint.c (insert_bp_location): Tolerate errors if the
5423 breakpoint is set in a user-loaded objfile.
5424 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5425 location is marked shlib_disabled. If the breakpoint is set in a
5426 user-loaded objfile is a GDB-side memory breakpoint, validate it
5427 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5428 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5429 flag.
5430 * mem-break.c (memory_validate_breakpoint): New function.
5431 * objfiles.c (userloaded_objfile_contains_address_p): New
5432 function.
5433 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5434 * target.h (memory_validate_breakpoint): New declaration.
5435
5436 2014-04-23 Pedro Alves <palves@redhat.com>
5437
5438 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5439 the breakpoint is set in a shared library, only suppress
5440 errors for software breakpoints, not hardware breakpoints.
5441
5442 2014-04-22 Pedro Alves <palves@redhat.com>
5443
5444 * infrun.c (schedlock_applies): New function, factored out from
5445 find_thread_needs_step_over.
5446 (find_thread_needs_step_over): Use it.
5447 (switch_back_to_stepped_thread): Always clear trap_expected if the
5448 step over is finished. Return early if scheduler locking applies.
5449 Look for the stepping thread and a potential step-over thread with
5450 a single loop.
5451 (currently_stepping_or_nexting_callback): Delete.
5452
5453 2014-04-22 Nick Clifton <nickc@redhat.com>
5454
5455 * NEWS: Mention that ARM sim now supports tracing.
5456
5457 2014-04-22 Yao Qi <yao@codesourcery.com>
5458
5459 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5460 to ...
5461 * tracefile.c (tracefile_fetch_registers): ... it. New
5462 function.
5463 * tracefile.h (tracefile_fetch_registers): Declare.
5464 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5465 tracefile_fetch_registers.
5466
5467 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5468
5469 PR gdb/14018
5470 * windows-nat.c (thread_rec): Don't display a warning when
5471 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5472 fails for any reason, set th->suspended to -1, so that we don't
5473 try to resume such a thread. Also, don't return NULL in these
5474 cases, to avoid completely ruin the session due to "PC register is
5475 not available" error.
5476 (do_windows_fetch_inferior_registers): Check errors in
5477 GetThreadContext call.
5478 (windows_continue): Accept an additional argument KILLED; if not
5479 zero, ignore errors in the SetThreadContext call, since the
5480 inferior was killed and is shutting down.
5481 (windows_resume, get_windows_debug_event)
5482 (windows_create_inferior, windows_mourn_inferior)
5483 (windows_kill_inferior): All callers of windows_continue changed
5484 to adjust to its new calling sequence.
5485
5486 2014-04-19 Yao Qi <yao@codesourcery.com>
5487
5488 * ctf.c (ctf_open): Call post_create_inferior.
5489
5490 2014-04-19 Yao Qi <yao@codesourcery.com>
5491
5492 * ctf.c (handle_id): New static variable.
5493 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5494 value. Get the declaration of event "register" and get length
5495 of field "contents".
5496
5497 2014-04-19 Yao Qi <yao@codesourcery.com>
5498
5499 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5500
5501 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5502
5503 * valops.c (oload_method_static): Remove unnecessary argument
5504 METHOD. Update all callers.
5505
5506 2014-04-18 Pedro alves <palves@redhat.com>
5507 Tom Tromey <tromey@redhat.com>
5508
5509 PR backtrace/15558
5510 * frame.c (get_prev_frame_1): Rename to ...
5511 (get_prev_frame_always): ... this, and make extern. Adjust.
5512 (skip_artificial_frames): Use get_prev_frame_always.
5513 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5514 (get_frame_unwind_stop_reason): Adjust to rename.
5515 * frame.h (get_prev_frame_always): Declare.
5516 * inline-frame.c: Include frame.h.
5517 (inline_frame_this_id): Use get_prev_frame_always.
5518
5519 2014-04-18 Tristan Gingold <gingold@adacore.com>
5520
5521 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5522 code by using bfd_mach_o_get_base_address.
5523
5524 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5525
5526 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5527 (spu_ax_pseudo_register_collect): New function.
5528 (spu_ax_pseudo_register_push_stack): Likewise.
5529 (spu_dwarf_reg_to_regnum): Likewise.
5530 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5531
5532 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5533
5534 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5535 Replace FRAME argument with FRAME_ID.
5536 * gdbarch.c, gdbarch.h: Regenerate.
5537 * findvar.c (default_value_from_register): Add GDBARCH argument;
5538 replace FRAME by FRAME_ID. No longer call get_frame_id.
5539 (value_from_register): Update call to gdbarch_value_from_register.
5540 * value.h (default_value_from_register): Update prototype.
5541 * s390-linux-tdep.c (s390_value_from_register): Update interface
5542 and call to default_value_from_register.
5543 * spu-tdep.c (spu_value_from_register): Likewise.
5544
5545 * findvar.c (address_from_register): Remove TYPE argument.
5546 Do not call value_from_register; use gdbarch_value_from_register
5547 with null_frame_id instead.
5548 * value.h (address_from_register): Update prototype.
5549 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5550 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5551 address_from_register interface change.
5552
5553 2014-04-17 Yao Qi <yao@codesourcery.com>
5554
5555 * gdbtypes.h: Update comments to link to types and macros'
5556 definitions.
5557
5558 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5559
5560 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5561
5562 2014-04-16 Keith Seitz <keiths@redhat.com>
5563
5564 PR gdb/15827
5565 * dwarf2read.c (skip_one_die): Check that all relative-offset
5566 sibling DIEs fall within range of the current reader's buffer.
5567 (read_partial_die): Likewise.
5568
5569 2014-04-16 Keith Seitz <keiths@redhat.com>
5570
5571 PR c++/16597
5572 * cp-namespace.c (lookup_symbol_file): If the type name of
5573 `this' is NULL, return immediately.
5574
5575 2014-04-14 Keith Seitz <keiths@redhat.com>
5576
5577 PR c++/16253
5578 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5579 from symbol_matches_domain in symtab.c. All local callers
5580 of symbol_matches_domain updated.
5581 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5582 search STRUCT_DOMAIN.
5583 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5584 independently. standard_lookup will do that automatically.
5585 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5586 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5587 (cp_lookup_symbol_in_namespace): Likewise.
5588 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5589 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5590 may return a STRUCT_DOMAIN match.
5591 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5592 * cp-support.c: Include language.h.
5593 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5594 VAR_DOMAIN.
5595 * psymtab.c (match_partial_symbol): Compare the requested
5596 domain with the symbol's domain directly.
5597 (lookup_partial_symbol): Likewise.
5598 * symtab.c (lookup_symbol_in_language): Explain when/why
5599 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5600 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5601 appropriate languages.
5602 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5603 and moved to ada-lang.c
5604 (lookup_block_symbol): Explain that this function only returns
5605 symbol matching the requested DOMAIN.
5606 Compare the requested domain with the symbol's domain directly.
5607 (iterate_over_symbols): Compare the requested domain with the
5608 symbol's domain directly.
5609 * symtab.h (symbol_matches_domain): Remove.
5610
5611 2014-04-14 Tom Tromey <tromey@redhat.com>
5612
5613 PR c++/15246:
5614 * c-exp.y (type_aggregate_p): New function.
5615 (qualified_name, classify_inner_name): Use it.
5616 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5617 and TYPE_TARGET_TYPE of an enum type.
5618 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5619 an enum type.
5620 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5621 handle TYPE_DECLARED_CLASS.
5622 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5623 types.
5624 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5625 * valops.c (enum_constant_from_type): New function.
5626 (value_aggregate_elt): Use it.
5627 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5628 TYPE_CODE_ENUM.
5629
5630 2014-04-14 Tom Tromey <tromey@redhat.com>
5631
5632 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5633 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5634 const.
5635 * value.h (value_aggregate_elt): Update.
5636
5637 2014-04-14 Tom Tromey <tromey@redhat.com>
5638
5639 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5640
5641 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5642
5643 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5644 (evaluate_subexp_standard): Pass noside argument.
5645 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5646 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5647 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5648 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5649 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5650
5651 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5652
5653 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5654 points to a constant blob.
5655
5656 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5657
5658 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5659 property and store it as the high bound and flag the range accordingly.
5660 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5661 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5662 * gdbtypes.h (enum range_flags): New enum.
5663 (struct range_bounds): Add flags member.
5664
5665 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5666
5667 * c-typeprint.c (c_type_print_varspec_suffix): Added
5668 check for not yet resolved high bound. If unresolved, print
5669 "variable length" string to the console instead of random
5670 length.
5671
5672 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5673
5674 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5675 value.
5676 (ada_template_to_fixed_record_type_1): Likewise.
5677 (ada_to_fixed_type_1): Likewise.
5678 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5679 (cp_print_value): Likewise.
5680 * d-valprint.c (dynamic_array_type): Likewise.
5681 * findvar.c (address_of_variable): Likewise.
5682 * jv-valprint.c (java_value_print): Likewise.
5683 * valops.c (value_ind): Likewise.
5684 * value.c (coerce_ref): Likewise.
5685
5686 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5687
5688 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5689 value and retrieve the dynamic type size.
5690
5691 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5692
5693 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5694 passed to sizeof is dynamic evaluate the argument to compute the length.
5695
5696 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5697 Joel Brobecker <brobecker@adacore.com>
5698
5699 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5700 (dwarf2_evaluate_property): New function.
5701 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5702 * dwarf2read.c (attr_to_dynamic_prop): New function.
5703 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5704 attribute.
5705 * gdbtypes.c: Include dwarf2loc.h.
5706 (is_dynamic_type): New function.
5707 (resolve_dynamic_type): New function.
5708 (resolve_dynamic_bounds): New function.
5709 (get_type_length): New function.
5710 (check_typedef): Use get_type_length to compute type length.
5711 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5712 (TYPE_LOW_BOUND_KIND): New macro.
5713 (is_dynamic_type): New function prototype.
5714 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5715 to resolve dynamic properties of the type. Update comment.
5716 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5717
5718 2014-04-14 Richard Henderson <rth@redhat.com>
5719
5720 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5721
5722 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5723 Doug Evans <xdje42@gmail.com>
5724
5725 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5726 dereference TYPE_CODE_REF values.
5727
5728 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5729
5730 Revert the following changes due to regressions:
5731
5732 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5733 (dwarf2_evaluate_property): New function.
5734 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5735 * dwarf2read.c (attr_to_dynamic_prop): New function.
5736 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5737 attribute.
5738 * gdbtypes.c: Include dwarf2loc.h.
5739 (is_dynamic_type): New function.
5740 (resolve_dynamic_type): New function.
5741 (resolve_dynamic_bounds): New function.
5742 (get_type_length): New function.
5743 (check_typedef): Use get_type_length to compute type length.
5744 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5745 (TYPE_LOW_BOUND_KIND): New macro.
5746 (is_dynamic_type): New function prototype.
5747 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5748 to resolve dynamic properties of the type. Update comment.
5749 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5750
5751 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5752 passed to sizeof is dynamic evaluate the argument to compute the length.
5753
5754 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5755 value and retrieve the dynamic type size.
5756
5757 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5758 (ada_template_to_fixed_record_type_1): Likewise.
5759 (ada_to_fixed_type_1): Likewise.
5760 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5761 (cp_print_value): Likewise.
5762 * d-valprint.c (dynamic_array_type): Likewise.
5763 * eval.c (evaluate_subexp_with_coercion): Likewise.
5764 * findvar.c (address_of_variable): Likewise.
5765 * jv-valprint.c (java_value_print): Likewise.
5766 * valops.c (value_ind): Likewise.
5767 * value.c (coerce_ref): Likewise.
5768
5769 * c-typeprint.c (c_type_print_varspec_suffix): Added
5770 check for not yet resolved high bound. If unresolved, print
5771 "variable length" string to the console instead of random
5772 length.
5773
5774 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5775 property and store it as the high bound and flag the range accordingly.
5776 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5777 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5778 * gdbtypes.h (enum range_flags): New enum.
5779 (struct range_bounds): Add flags member.
5780
5781 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5782 points to a constant blob.
5783
5784 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5785 (evaluate_subexp_standard): Pass noside argument.
5786 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5787 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5788 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5789 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5790 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5791
5792 2014-04-11 Keith Seitz <keiths@redhat.com>
5793
5794 PR c++/16675
5795 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5796 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5797 reference types.
5798
5799 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5800
5801 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5802 (evaluate_subexp_standard): Pass noside argument.
5803 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5804 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5805 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5806 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5807 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5808
5809 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5810
5811 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5812 points to a constant blob.
5813
5814 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5815
5816 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5817 property and store it as the high bound and flag the range accordingly.
5818 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5819 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5820 * gdbtypes.h (enum range_flags): New enum.
5821 (struct range_bounds): Add flags member.
5822
5823 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5824
5825 * c-typeprint.c (c_type_print_varspec_suffix): Added
5826 check for not yet resolved high bound. If unresolved, print
5827 "variable length" string to the console instead of random
5828 length.
5829
5830 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5831
5832 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5833 (ada_template_to_fixed_record_type_1): Likewise.
5834 (ada_to_fixed_type_1): Likewise.
5835 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5836 (cp_print_value): Likewise.
5837 * d-valprint.c (dynamic_array_type): Likewise.
5838 * eval.c (evaluate_subexp_with_coercion): Likewise.
5839 * findvar.c (address_of_variable): Likewise.
5840 * jv-valprint.c (java_value_print): Likewise.
5841 * valops.c (value_ind): Likewise.
5842 * value.c (coerce_ref): Likewise.
5843
5844 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5845
5846 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5847 value and retrieve the dynamic type size.
5848
5849 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5850
5851 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5852 passed to sizeof is dynamic evaluate the argument to compute the length.
5853
5854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5855
5856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5857 (dwarf2_evaluate_property): New function.
5858 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5859 * dwarf2read.c (attr_to_dynamic_prop): New function.
5860 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5861 attribute.
5862 * gdbtypes.c: Include dwarf2loc.h.
5863 (is_dynamic_type): New function.
5864 (resolve_dynamic_type): New function.
5865 (resolve_dynamic_bounds): New function.
5866 (get_type_length): New function.
5867 (check_typedef): Use get_type_length to compute type length.
5868 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5869 (TYPE_LOW_BOUND_KIND): New macro.
5870 (is_dynamic_type): New function prototype.
5871 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5872 to resolve dynamic properties of the type. Update comment.
5873 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5874
5875 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5876
5877 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5878 declaring high/low bounds and change uses accordingly. Call
5879 create_range_type instead of create_static_range_type.
5880 * gdbtypes.c (create_range_type): New function.
5881 (create_range_type): Convert bounds into struct bound_prop and pass
5882 them to create_range_type.
5883 * gdbtypes.h (struct bound_prop): New struct.
5884 (create_range_type): New function prototype.
5885 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5886 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5887 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5888 part of the bound.
5889 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5890
5891 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5892
5893 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5894 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5895 * ada-lang.c: All uses of create_range_type updated.
5896 * coffread.c: All uses of create_range_type updated.
5897 * dwarf2read.c: All uses of create_range_type updated.
5898 * f-exp.y: All uses of create_range_type updated.
5899 * m2-valprint.c: All uses of create_range_type updated.
5900 * mdebugread.c: All uses of create_range_type updated.
5901 * stabsread.c: All uses of create_range_type updated.
5902 * valops.c: All uses of create_range_type updated.
5903 * valprint.c: All uses of create_range_type updated.
5904
5905 2014-04-10 Pedro Alves <palves@redhat.com>
5906
5907 * breakpoint.c (single_step_breakpoints)
5908 (single_step_gdbarch): Move up in the file.
5909 (one_breakpoint_xfer_memory): New function, factored out from ...
5910 (breakpoint_xfer_memory): ... here. Also process single-step
5911 breakpoints.
5912
5913 2014-04-09 Tristan Gingold <gingold@adacore.com>
5914
5915 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5916 comments.
5917 (darwin_decode_exception_message): Free port only after use.
5918
5919 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5920
5921 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5922 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5923 when setting the size of call_length.
5924
5925 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5926
5927 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5928 dereference TYPE_CODE_REF values.
5929
5930 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5931
5932 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5933 end of warning message.
5934
5935 2014-04-03 Doug Evans <dje@google.com>
5936
5937 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5938 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5939
5940 2014-04-02 Alan Modra <amodra@gmail.com>
5941
5942 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5943 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5944 (struct symbol_file_add_from_memory_args): Add size field.
5945 (find_vdso_size): New function.
5946 (add_vsyscall_page): Attempt to find vdso size.
5947
5948 2014-04-01 Doug Evans <dje@google.com>
5949
5950 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5951
5952 2014-04-01 Tristan Gingold <gingold@adacore.com>
5953
5954 * darwin-nat.c (darwin_encode_reply): Add prototype.
5955 (darwin_decode_exception_message): Reply to unknown inferiors.
5956 (darwin_decode_message): Handle message by id. Ignore message
5957 to unknown inferior.
5958 (darwin_wait): Discard unknown messages, add debug trace.
5959
5960 2014-03-31 Doug Evans <dje@google.com>
5961
5962 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5963 comp_dir_string.
5964
5965 2014-03-31 Doug Evans <dje@google.com>
5966
5967 New option "set print symbol-loading".
5968 * NEWS: Mention it.
5969 * solib.c (solib_read_symbols): Only print symbol loading messages
5970 if requested.
5971 (solib_add): If symbol loading is in "brief" mode, notify user
5972 symbols are being loaded.
5973 (reload_shared_libraries_1): Ditto.
5974 * symfile.c (print_symbol_loading_off): New static global.
5975 (print_symbol_loading_brief): New static global.
5976 (print_symbol_loading_full): New static global.
5977 (print_symbol_loading_enums): New static global.
5978 (print_symbol_loading): New static global.
5979 (print_symbol_loading_p): New function.
5980 (symbol_file_add_with_addrs): Only print symbol loading messages
5981 if requested.
5982 (_initialize_symfile): Register "print symbol-loading" set/show
5983 command.
5984 * symfile.h (print_symbol_loading_p): Declare.
5985
5986 2014-03-30 Doug Evans <xdje42@gmail.com>
5987
5988 * infrun.c (set_last_target_status): New function.
5989 (handle_inferior_event): Call it.
5990
5991 2014-03-30 Doug Evans <xdje42@gmail.com>
5992
5993 * inferior.h (enum stop_kind): Improve comment.
5994
5995 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5996
5997 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5998 a reference, strip the reference layer before calling
5999 the lang_ops value_has_mutated callback.
6000
6001 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6002
6003 Remove some globals from our parser.
6004 * language.c (unk_lang_parser): Add "struct parser_state"
6005 argument.
6006 * language.h (struct language_defn) <la_parser>: Likewise.
6007 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6008 (initialize_expout): Add "struct parser_state" argument.
6009 Rewrite function to use the parser state.
6010 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6011 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6012 write_exp_elt_longcst, write_exp_elt_dblcst,
6013 write_exp_elt_decfloatcst, write_exp_elt_type,
6014 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6015 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6016 write_dollar_variable): Likewise.
6017 (parse_exp_in_context_1): Use parser state.
6018 (insert_type_address_space): Add "struct parser_state" argument.
6019 Use parser state.
6020 (increase_expout_size): New function.
6021 * parser-defs.h: Forward declare "struct language_defn" and
6022 "struct parser_state".
6023 (expout, expout_size, expout_ptr): Remove extern declarations.
6024 (parse_gdbarch, parse_language): Rewrite macro declarations to
6025 accept the parser state.
6026 (struct parser_state): New struct.
6027 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6028 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6029 write_exp_elt_decfloatcst, write_exp_elt_type,
6030 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6031 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6032 write_exp_msymbol, write_dollar_variable,
6033 mark_struct_expression, insert_type_address_space): Add "struct
6034 parser_state" argument.
6035 (increase_expout_size): New function.
6036 * utils.c (do_clear_parser_state): New function.
6037 (make_cleanup_clear_parser_state): Likewise.
6038 * utils.h (make_cleanup_clear_parser_state): New function
6039 prototype.
6040 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6041 Update calls to write_exp* in order to pass the parser state.
6042 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6043 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6044 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6045 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6046 * stap-probe.c (stap_parse_register_operand): Likewise.
6047 (stap_parse_single_operand): Likewise.
6048 (stap_parse_argument_1): Likewise.
6049 (stap_parse_argument): Use parser state.
6050 * stap-probe.h: Include "parser-defs.h".
6051 (struct stap_parse_info) <pstate>: New field.
6052 * c-exp.y (parse_type): Rewrite to use parser state.
6053 (yyparse): Redefine to c_parse_internal.
6054 (pstate): New global variable.
6055 (parse_number): Add "struct parser_state" argument.
6056 (write_destructor_name): Likewise.
6057 (type_exp): Update calls to write_exp* and similars in order to
6058 use parser state.
6059 (exp1, exp, variable, qualified_name, space_identifier,
6060 typename, typebase): Likewise.
6061 (write_destructor_name, parse_number, lex_one_token,
6062 classify_name, classify_inner_name, c_parse): Add "struct
6063 parser_state" argument. Update function to use parser state.
6064 * c-lang.h: Forward declare "struct parser_state".
6065 (c_parse): Add "struct parser_state" argument.
6066 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6067 (yyparse): Redefine macro to ada_parse_internal.
6068 (pstate): New variable.
6069 (write_int, write_object_renaming, write_var_or_type,
6070 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6071 type_int, type_long, type_long_long, type_float, type_double,
6072 type_long_double, type_char, type_boolean, type_system_address):
6073 Add "struct parser_state" argument.
6074 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6075 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6076 var_or_type, aggregate, aggregate_component_list,
6077 positional_list, others, component_group,
6078 component_associations): Update calls to write_exp* and similar
6079 functions in order to use parser state.
6080 (ada_parse, write_var_from_sym, write_int,
6081 write_exp_op_with_string, write_object_renaming,
6082 find_primitive_type, write_selectors, write_ambiguous_var,
6083 write_var_or_type, write_name_assoc, type_int, type_long,
6084 type_long_long, type_float, type_double, type_long_double,
6085 type_char, type_boolean, type_system_address): Add "struct
6086 parser_state" argument. Adjust function to use parser state.
6087 * ada-lang.c (parse): Likewise.
6088 * ada-lang.h: Forward declare "struct parser_state".
6089 (ada_parse): Add "struct parser_state" argument.
6090 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6091 calls to both functions.
6092 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6093 parser state.
6094 (yyparse): Redefine macro to f_parse_internal.
6095 (pstate): New variable.
6096 (parse_number): Add "struct parser_state" argument.
6097 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6098 and similars in order to use parser state.
6099 (parse_number): Adjust code to use parser state.
6100 (yylex): Likewise.
6101 (f_parse): New function.
6102 * f-lang.h: Forward declare "struct parser_state".
6103 (f_parse): Add "struct parser_state" argument.
6104 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6105 parser state.
6106 (yyparse): Redefine macro for java_parse_internal.
6107 (pstate): New variable.
6108 (push_expression_name, push_expression_name, insert_exp): Add
6109 "struct parser_state" argument.
6110 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6111 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6112 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6113 PostIncrementExpression, PostDecrementExpression,
6114 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6115 UnaryExpressionNotPlusMinus, CastExpression,
6116 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6117 RelationalExpression, EqualityExpression, AndExpression,
6118 ExclusiveOrExpression, InclusiveOrExpression,
6119 ConditionalAndExpression, ConditionalOrExpression,
6120 ConditionalExpression, Assignment, LeftHandSide): Update
6121 calls to write_exp* and similars in order to use parser state.
6122 (parse_number): Ajust code to use parser state.
6123 (yylex): Likewise.
6124 (java_parse): New function.
6125 (push_variable): Add "struct parser_state" argument. Adjust
6126 code to user parser state.
6127 (push_fieldnames, push_qualified_expression_name,
6128 push_expression_name, insert_exp): Likewise.
6129 * jv-lang.h: Forward declare "struct parser_state".
6130 (java_parse): Add "struct parser_state" argument.
6131 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6132 parser state.
6133 (yyparse): Redefine macro to m2_parse_internal.
6134 (pstate): New variable.
6135 (type_exp, exp, fblock, variable, type): Update calls to
6136 write_exp* and similars to use parser state.
6137 (yylex): Likewise.
6138 (m2_parse): New function.
6139 * m2-lang.h: Forward declare "struct parser_state".
6140 (m2_parse): Add "struct parser_state" argument.
6141 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6142 * objc-lang.h: Forward declare "struct parser_state".
6143 (end_msglist): Add "struct parser_state" argument.
6144 * p-exp.y (parse_type): Rewrite macro to use parser state.
6145 (yyparse): Redefine macro to pascal_parse_internal.
6146 (pstate): New variable.
6147 (parse_number): Add "struct parser_state" argument.
6148 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6149 write_exp* and similars in order to use parser state.
6150 (parse_number, yylex): Adjust code to use parser state.
6151 (pascal_parse): New function.
6152 * p-lang.h: Forward declare "struct parser_state".
6153 (pascal_parse): Add "struct parser_state" argument.
6154 * go-exp.y (parse_type): Rewrite macro to use parser state.
6155 (yyparse): Redefine macro to go_parse_internal.
6156 (pstate): New variable.
6157 (parse_number): Add "struct parser_state" argument.
6158 (type_exp, exp1, exp, variable, type): Update calls to
6159 write_exp* and similars in order to use parser state.
6160 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6161 to use parser state.
6162 (go_parse): Likewise.
6163 * go-lang.h: Forward declare "struct parser_state".
6164 (go_parse): Add "struct parser_state" argument.
6165
6166 2014-03-27 Doug Evans <dje@google.com>
6167
6168 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6169
6170 2014-03-27 Doug Evans <dje@google.com>
6171
6172 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6173 Remove argument abbrev_section. All callers updated.
6174
6175 2014-03-27 Doug Evans <dje@google.com>
6176
6177 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6178 addr_base, ranges_base.
6179
6180 2014-03-26 Keith Seitz <keiths@redhat.com>
6181
6182 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6183 types, not VAR_DOMAIN.
6184
6185 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6186
6187 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6188 "ra" registers.
6189 * features/nios2-linux.c: Regenerated.
6190 * features/nios2.c: Regenerated.
6191
6192 2014-03-25 Pedro Alves <palves@redhat.com>
6193
6194 * cli/cli-script.c (script_from_file): Force the interpreter to
6195 sync mode.
6196
6197 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6198
6199 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6200 small stack allocation.
6201
6202 2014-03-24 Tristan Gingold <gingold@adacore.com>
6203
6204 * darwin-nat.c (exc_server): Remove unused prototype.
6205 (darwin_dump_message): Correctly display data on x86_64.
6206 (darwin_encode_reply): Fix style.
6207 Add comments and fix indentation.
6208
6209 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6210
6211 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6212
6213 2014-03-22 Doug Evans <xdje42@gmail.com>
6214
6215 * infcmd.c: Whitespace fixes.
6216 (interrupt_command): Merge two function comments into one.
6217
6218 2014-03-22 Doug Evans <xdje42@gmail.com>
6219
6220 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6221 All uses updated.
6222
6223 2014-03-22 Yao Qi <yao@codesourcery.com>
6224
6225 * remote.c (target_read_live_memory): Remove.
6226 (memory_xfer_live_readonly_partial): Rename it to
6227 remote_xfer_live_readonly_partial. Remove argument 'object'.
6228 All callers updated. Call remote_read_bytes_1
6229 instead of target_read_live_memory.
6230 * tracepoint.c (set_traceframe_number): Remove.
6231 (make_cleanup_restore_traceframe_number): Likewise .
6232 * tracepoint.h (set_traceframe_number): Remove declaration.
6233 (make_cleanup_restore_traceframe_number): Likewise.
6234
6235 2014-03-22 Yao Qi <yao@codesourcery.com>
6236
6237 * remote.c (remote_read_bytes): Move code on reading from the
6238 remote stub to ...
6239 (remote_read_bytes_1): ... here. New function.
6240
6241 2014-03-22 Yao Qi <yao@codesourcery.com>
6242
6243 * ctf.c (ctf_xfer_partial): Check the return value of
6244 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6245 return TARGET_XFER_UNAVAILABLE.
6246 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6247 * target.c (target_read_live_memory): Move it to remote.c.
6248 (memory_xfer_live_readonly_partial): Likewise.
6249 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6250 * remote.c (target_read_live_memory): Moved from target.c.
6251 (memory_xfer_live_readonly_partial): Likewise.
6252 (remote_read_bytes): Factored out from
6253 memory_xfer_partial_1.
6254
6255 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6256
6257 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6258 NULL pointer.
6259
6260 2014-03-21 Pedro Alves <palves@redhat.com>
6261
6262 * infrun.c (normal_stop): Extend comment.
6263
6264 2014-03-21 Hui Zhu <hui@codesourcery.com>
6265 Pedro Alves <palves@redhat.com>
6266
6267 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6268 static buffer.
6269 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6270 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6271 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6272
6273 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6274
6275 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6276 `z' formatted output modifier.
6277
6278 2014-03-20 Tom Tromey <tromey@redhat.com>
6279 Sergio Durigan Junior <sergiodj@redhat.com>
6280
6281 * probe.c (parse_probes): Turn assert into an ordinary error.
6282 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6283 exceptions when parsing probes. Rearrange the code for clarity.
6284
6285 2014-03-20 Tom Tromey <tromey@redhat.com>
6286
6287 PR gdb/14135
6288 * top.c (execute_command): Only dispatch events if the command
6289 started the target.
6290
6291 2014-03-20 Tom Tromey <tromey@redhat.com>
6292
6293 PR cli/15718
6294 * infcall.c: Include event-top.h.
6295 (run_inferior_call): Call async_disable_stdin if needed.
6296
6297 2014-03-20 Pedro Alves <palves@redhat.com>
6298
6299 * infrun.c (prepare_to_proceed): Delete.
6300 (thread_still_needs_step_over): New function.
6301 (find_thread_needs_step_over): New function.
6302 (proceed): If the current thread needs a step-over, set its
6303 steping_over_breakpoint flag. Adjust to use
6304 find_thread_needs_step_over instead of prepare_to_proceed.
6305 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6306 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6307 breakpoint.
6308 (switch_back_to_stepped_thread): Step over breakpoints of all
6309 threads not the stepping thread, before switching back to the
6310 stepping thread.
6311
6312 2014-03-20 Pedro Alves <palves@redhat.com>
6313
6314 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6315 extern.
6316 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6317 * infrun.c (saved_singlestep_ptid)
6318 (stepping_past_singlestep_breakpoint): Delete.
6319 (resume): Remove stepping_past_singlestep_breakpoint handling.
6320 (proceed): Store the prev_pc of the stepping thread too.
6321 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6322 singlestep_pc.
6323 (enum infwait_states): Delete infwait_thread_hop_state.
6324 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6325 field.
6326 (handle_inferior_event): Adjust.
6327 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6328 handling and the thread-hop code. Before removing single-step
6329 breakpoints, check whether the thread hit a single-step breakpoint
6330 of another thread. If it did, the trap is not a random signal.
6331 (switch_back_to_stepped_thread): If the event thread hit a
6332 single-step breakpoint, unblock it before switching to the
6333 stepping thread. Handle the case of the stepped thread having
6334 advanced already.
6335 (keep_going): Handle the case of the current thread moving past a
6336 single-step breakpoint.
6337
6338 2014-03-20 Pedro Alves <palves@redhat.com>
6339
6340 PR breakpoints/7143
6341 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6342 are being stepped over.
6343 (breakpoint_address_match): Make extern.
6344 * breakpoint.h (breakpoint_address_match): New declaration.
6345 * inferior.h (stepping_past_instruction_at): New declaration.
6346 * infrun.c (struct step_over_info): New type.
6347 (step_over_info): New global.
6348 (set_step_over_info, clear_step_over_info)
6349 (stepping_past_instruction_at): New functions.
6350 (handle_inferior_event): Clear the step-over info when
6351 trap_expected is cleared.
6352 (resume): Remove now stale comment.
6353 (clear_proceed_status): Clear step-over info.
6354 (proceed): Adjust step-over handling to set or clear the step-over
6355 info instead of removing all breakpoints.
6356 (handle_signal_stop): When setting up a thread-hop, don't remove
6357 breakpoints here.
6358 (stop_stepping): Clear step-over info.
6359 (keep_going): Adjust step-over handling to set or clear step-over
6360 info and then always inserting breakpoints, instead of removing
6361 all breakpoints when stepping over one.
6362
6363 2014-03-20 Pedro Alves <palves@redhat.com>
6364
6365 * infrun.c (previous_inferior_ptid): Adjust comment.
6366 (deferred_step_ptid): Delete.
6367 (infrun_thread_ptid_changed, prepare_to_proceed)
6368 (init_wait_for_inferior): Adjust.
6369 (handle_signal_stop): Delete deferred_step_ptid handling.
6370
6371 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 PR gdb/15358
6374 * defs.h (sync_quit_force_run): New declaration.
6375 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6376 * event-top.c (async_sigterm_handler): New declaration.
6377 (async_sigterm_token): New variable.
6378 (async_init_signals): Create also async_sigterm_token.
6379 (async_sigterm_handler): New function.
6380 (sync_quit_force_run): New variable.
6381 (handle_sigterm): Replace quit_force call by other calls.
6382 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6383
6384 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6385
6386 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6387 offset into SPE pseudo registers.
6388
6389 2014-03-18 Pedro Alves <palves@redhat.com>
6390
6391 PR gdb/13860
6392 * inferior.h (print_stop_event): Declare.
6393 * infrun.c (print_stop_event): New, factored out from ...
6394 (normal_stop): ... this.
6395 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6396 of bpstat_print/print_stack_frame.
6397
6398 2014-03-17 Tom Tromey <tromey@redhat.com>
6399
6400 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6401
6402 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6403
6404 * ada-lang.c (decode_constrained_packed_array): Perform a
6405 minimal coercion for reference with coerce_ref instead of
6406 ada_coerce_ref.
6407
6408 2014-03-17 Tristan Gingold <gingold@adacore.com>
6409
6410 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6411 (darwin_solib_create_inferior_hook): Emit a warning if version
6412 is unhandled.
6413
6414 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6415
6416 * python/py-value.c (get_field_flag): Cast flag_name argument to
6417 PyObject_GetAttrString to support Python 2.4.
6418
6419 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6420
6421 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6422 (Global Maintainers): Remove Jan Kratochvil.
6423
6424 2014-03-14 Pedro Alves <palves@redhat.com>
6425
6426 * inferior.h (terminal_ours_for_output): Rename to ...
6427 (child_terminal_ours_for_output): ... this.
6428 (terminal_save_ours): Rename to ...
6429 (child_terminal_save_ours): ... this.
6430 (terminal_ours): Rename to ...
6431 (child_terminal_ours): ... this.
6432 (terminal_inferior): Rename to ...
6433 (child_terminal_inferior): ... this.
6434 (terminal_init_inferior): Rename to ...
6435 (child_terminal_init_inferior): ... this.
6436 (terminal_init_inferior_with_pgrp): Rename to ...
6437 (child_terminal_init_inferior_with_pgrp): ... this.
6438 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6439 (child_terminal_init_with_pgrp): ... this.
6440 (terminal_save_ours): Rename to ...
6441 (child_terminal_save_ours): ... this.
6442 (terminal_init_inferior): Rename to ...
6443 (child_terminal_init): ... this. Adjust.
6444 (terminal_inferior): Rename to ...
6445 (child_terminal_inferior): ... this.
6446 (terminal_ours_for_output): Rename to ...
6447 (child_terminal_ours_for_output): ... this. Adjust.
6448 (terminal_ours): Rename to ...
6449 (child_terminal_ours): ... this.
6450 (terminal_ours_1): Rename to ...
6451 (child_terminal_ours_1): ... this. Adjust.
6452 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6453 * windows-nat.c (do_initial_windows_stuff): Adjust.
6454 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6455 (gnu_terminal_init): ... this. Adjust.
6456 (gnu_target): Adjust.
6457 * inf-child.c (inf_child_target): Adjust.
6458
6459 2014-03-13 Doug Evans <xdje42@gmail.com>
6460
6461 PR guile/16612
6462 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6463 new eq?-hashtab.
6464
6465 2014-03-13 Doug Evans <xdje42@gmail.com>
6466
6467 * value.c (record_latest_value): Call release_value_or_incref
6468 instead of release_value.
6469
6470 2014-03-13 Pedro Alves <palves@redhat.com>
6471
6472 * procfs.c (procfs_target): Don't override to_shortname,
6473 to_longname or to_doc.
6474
6475 2014-03-13 Pedro Alves <palves@redhat.com>
6476
6477 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6478 Unix in user visible strings.
6479
6480 2014-03-12 Stan Shebs <stan@codesourcery.com>
6481
6482 * gdbtypes.h: Annotate comments for Doxygen, add a page
6483 block comment with some general info.
6484
6485 2014-03-12 Pedro Alves <palves@redhat.com>
6486
6487 * infcmd.c (prepare_execution_command): New function, factored out
6488 from several execution commands.
6489 (run_command_1, continue_command, step_1, jump_command)
6490 (signal_command, until_command, advance_command, finish_command)
6491 (attach_command): Use prepare_execution_command.
6492
6493 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6494
6495 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6496 (MAX_BPTS): Define.
6497 (MAX_WPTS): Define.
6498 (struct arm_linux_thread_points): Removed.
6499 (struct arm_linux_process_info): New.
6500 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6501 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6502 (arm_linux_find_breakpoints_by_tid): Removed.
6503 (struct arch_lwp_info): New.
6504 (arm_linux_find_process_pid): New functions.
6505 (arm_linux_add_process): New functions.
6506 (arm_linux_process_info_get): New functions.
6507 (arm_linux_forget_process): New function.
6508 (arm_linux_get_debug_reg_state): New function.
6509 (struct update_registers_data): New.
6510 (update_registers_callback): New function.
6511 (arm_linux_insert_hw_breakpoint1): Updated.
6512 (arm_linux_remove_hw_breakpoint1): Updated.
6513 (arm_linux_insert_hw_breakpoint): Updated.
6514 (arm_linux_remove_hw_breakpoint): Updated.
6515 (arm_linux_insert_watchpoint): Updated.
6516 (arm_linux_remove_watchpoint): Updated.
6517 (arm_linux_new_thread): Updated.
6518 (arm_linux_prepare_to_resume): New function.
6519 (arm_linux_new_fork): New function.
6520 (_initialize_arm_linux_nat): Updated.
6521
6522 2014-03-12 Pedro Alves <palves@redhat.com>
6523
6524 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6525
6526 2014-03-12 Tom Tromey <tromey@redhat.com>
6527
6528 * inf-child.c (return_zero): New function.
6529 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6530 * aix-thread.c (aix_thread_inferior_created): New function.
6531 (aix_thread_attach): Remove.
6532 (init_aix_thread_ops): Don't set to_attach.
6533 (_initialize_aix_thread): Register inferior_created observer.
6534 * corelow.c (init_core_ops): Don't set to_attach or
6535 to_create_inferior.
6536 * exec.c (init_exec_ops): Don't set to_attach or
6537 to_create_inferior.
6538 * infcmd.c (run_command_1): Use find_run_target. Make direct
6539 target calls.
6540 (attach_command): Use find_attach_target. Make direct target
6541 calls.
6542 * record-btrace.c (init_record_btrace_ops): Don't set
6543 to_create_inferior.
6544 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6545 Remove.
6546 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6547 set to_create_inferior.
6548 * target.c (complete_target_initialization): Add assertion.
6549 (target_create_inferior): Remove.
6550 (find_default_attach, find_default_create_inferior): Remove.
6551 (find_attach_target, find_run_target): New functions.
6552 (find_default_is_async_p, find_default_can_async_p)
6553 (target_supports_non_stop, target_attach): Remove.
6554 (init_dummy_target): Don't set to_create_inferior or
6555 to_supports_non_stop.
6556 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6557 TARGET_DEFAULT_FUNC.
6558 <to_create_inferior>: Add comment.
6559 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6560 TARGET_DEFAULT_RETURN.
6561 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6562 (find_attach_target, find_run_target): Declare.
6563 (target_create_inferior): Remove.
6564 (target_has_execution_1): Update comment.
6565 (target_supports_non_stop): Remove.
6566 * target-delegates.c: Rebuild.
6567
6568 2014-03-12 Pedro Alves <palves@redhat.com>
6569
6570 * inf-child.h: Update comment to not mention Unix.
6571
6572 2014-03-12 Pedro Alves <palves@redhat.com>
6573
6574 * inf-child.c: Update top comment to not mention Unix. Add
6575 generic comment describing how this target is meant to be used.
6576 (inf_child_post_attach, inf_child_post_startup_inferior)
6577 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6578 Unix in comment.
6579
6580 2014-03-12 Pedro Alves <palves@redhat.com>
6581
6582 * nto-procfs.c: Include inf-child.h.
6583 (procfs_ops): Delete global.
6584 (procfs_can_run): Delete method.
6585 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6586 target pointer instead of referencing procfs_ops.
6587 (procfs_prepare_to_store): Delete.
6588 (init_procfs_ops): Delete function.
6589 (procfs_target): New function, based on init_procfs_ops, but
6590 inherit inf_child_target.
6591 (_initialize_procfs): Use procfs_target.
6592
6593 2014-03-12 Pedro Alves <palves@redhat.com>
6594
6595 * windows-nat.c: Include inf-child.h.
6596 (windows_ops): Delete global.
6597 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6598 methods.
6599 (init_windows_ops): Delete function.
6600 (windows_target): New function, based on init_windows_ops, but
6601 inherit inf_child_target.
6602 (_initialize_windows_nat): Use windows_target. Install x86
6603 specific target methods here.
6604
6605 2014-03-10 Doug Evans <xdje42@gmail.com>
6606
6607 * guile/guile.c (call_initialize_gdb_module): New function.
6608 (initialize_guile): Replace call to scm_init_guile with call to
6609 scm_with_guile.
6610
6611 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6612
6613 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6614 in call to TYPE_CODE macro.
6615
6616 2014-03-10 Jerome Guitton <guitton@adacore.com>
6617
6618 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6619 Resolve tagged types to full view.
6620
6621 2014-03-10 Hui Zhu <hui@codesourcery.com>
6622
6623 * target.h (target_insert_breakpoint): Remove "hardware" from its
6624 comments.
6625
6626 2014-03-07 Doug Evans <dje@google.com>
6627
6628 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6629
6630 2014-03-07 Doug Evans <dje@google.com>
6631
6632 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6633 Remove unused local comp_dir_attr. Assert exactly one of
6634 stub_comp_unit_die, stub_comp_dir is non-NULL.
6635
6636 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6637
6638 * target.h (complete_target_initialization, add_target):
6639 Add comment.
6640
6641 2014-03-07 Pedro Alves <palves@redhat.com>
6642
6643 * go32-nat.c: Include inf-child.h.
6644 (go32_ops): Delete global.
6645 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6646 Delete methods.
6647 (go32_create_inferior): Push the passed in target pointer instead
6648 of referencing go32_ops.
6649 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6650 (go32_target): New function, based on init_go32_ops, but inherit
6651 inf_child_target.
6652 (_initialize_go32_nat): Use go32_target. Move parts of
6653 init_go32_ops here.
6654
6655 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6656
6657 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6658 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6659 SYMBOL_VALUE_ADDRESS.
6660 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6661
6662 2014-03-06 Yao Qi <yao@codesourcery.com>
6663
6664 * breakpoint.c (get_tracepoint_by_number): Remove argument
6665 optional_p. All callers updated. Adjust comments. Update
6666 output message.
6667 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6668
6669 2014-03-06 Yao Qi <yao@codesourcery.com>
6670
6671 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6672 early if get_number returns zero. Use 'p' instead of 'args'.
6673
6674 2014-03-06 Yao Qi <yao@codesourcery.com>
6675
6676 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6677 message.
6678
6679 2014-03-06 Yao Qi <yao@codesourcery.com>
6680
6681 PR breakpoints/16508
6682 * tracepoint.c (check_trace_running): New function.
6683 (trace_find_command): Move code to check_trace_running and
6684 call check_trace_running.
6685 (trace_find_pc_command): Likewise.
6686 (trace_find_tracepoint_command): Likewise.
6687 (trace_find_line_command): Likewise.
6688 (trace_find_range_command): Likewise.
6689 * tracepoint.h (check_trace_running): Likewise.
6690 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6691
6692 2014-03-06 Yao Qi <yao@codesourcery.com>
6693
6694 * target.h (struct target_ops) <to_traceframe_info>: Use
6695 TARGET_DEFAULT_NORETURN (tcomplain ()).
6696 * target-delegates.c: Regenerated.
6697
6698 2014-03-05 Pedro Alves <palves@redhat.com>
6699
6700 PR gdb/16575
6701 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6702 void. Update comment.
6703 (dcache_xfer_memory): Delete.
6704 (dcache_read_memory_partial): New, based on the read bits of
6705 dcache_xfer_memory.
6706 (dcache_update): Add status parameter. Use ULONGEST for len, and
6707 adjust. Discard cache lines if the reason for the update was
6708 error.
6709 * dcache.h (dcache_xfer_memory): Delete declaration.
6710 (dcache_read_memory_partial): New declaration.
6711 (dcache_update): Update prototype.
6712 * target.c (raw_memory_xfer_partial): Update the dcache here.
6713 (memory_xfer_partial_1): Don't handle dcache writes here.
6714
6715 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6716
6717 * remote-sim.c (gdbsim_load): Add const to prog.
6718
6719 2014-03-03 Tom Tromey <tromey@redhat.com>
6720
6721 * elfread.c (probe_key): Change to bfd_data.
6722 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6723 now per-BFD, not per-objfile.
6724 * stap-probe.c (stap_probe_destroy): Update comment.
6725 (handle_stap_probe): Allocate on the per-BFD obstack.
6726
6727 2014-03-03 Tom Tromey <tromey@redhat.com>
6728
6729 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6730 * breakpoint.c (create_longjmp_master_breakpoint): Use
6731 get_probe_address.
6732 (add_location_to_breakpoint, bkpt_probe_insert_location)
6733 (bkpt_probe_remove_location): Update.
6734 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6735 * elfread.c (elf_symfile_relocate_probe): Remove.
6736 (elf_probe_fns): Update.
6737 (insert_exception_resume_breakpoint): Change type of "probe"
6738 parameter to bound_probe.
6739 (check_exception_resume): Update.
6740 * objfiles.c (objfile_relocate1): Don't relocate probes.
6741 * probe.c (bound_probe_s): New typedef.
6742 (parse_probes): Use get_probe_address. Set sal's objfile.
6743 (find_probe_by_pc): Return a bound_probe.
6744 (collect_probes): Return a VEC(bound_probe_s).
6745 (compare_probes): Update.
6746 (gen_ui_out_table_header_info): Change type of "probes"
6747 parameter. Update.
6748 (info_probes_for_ops): Update.
6749 (get_probe_address): New function.
6750 (probe_safe_evaluate_at_pc): Update.
6751 * probe.h (struct probe_ops) <get_probe_address>: New field.
6752 <set_semaphore, clear_semaphore>: Add objfile parameter.
6753 (struct probe) <objfile>: Remove field.
6754 <arch>: New field.
6755 <address>: Update comment.
6756 (struct bound_probe): New.
6757 (find_probe_by_pc): Return a bound_probe.
6758 (get_probe_address): Declare.
6759 * solib-svr4.c (struct probe_and_action) <address>: New field.
6760 (hash_probe_and_action, equal_probe_and_action): Update.
6761 (register_solib_event_probe): Add address parameter.
6762 (solib_event_probe_at): Update.
6763 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6764 get_probe_address.
6765 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6766 (stap_get_probe_address): New function.
6767 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6768 (compile_probe_arg): Update.
6769 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6770 address.
6771 (handle_stap_probe): Don't relocate the probe.
6772 (stap_relocate): Remove.
6773 (stap_gen_info_probes_table_values): Update.
6774 (stap_probe_ops): Remove stap_relocate.
6775 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6776 (debug_sym_probe_fns): Update.
6777 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6778 * symtab.c (init_sal): Use memset.
6779 * symtab.h (struct symtab_and_line) <objfile>: New field.
6780 * tracepoint.c (start_tracing, stop_tracing): Update.
6781
6782 2014-03-03 Tom Tromey <tromey@redhat.com>
6783
6784 * probe.h (parse_probes, find_probe_by_pc)
6785 (find_probes_in_objfile): Fix comments.
6786
6787 2014-03-02 Doug Evans <xdje42@gmail.com>
6788
6789 * infrun.c (handle_signal_stop): Replace test for
6790 TARGET_WAITKIND_STOPPED with an assert.
6791
6792 2014-03-02 Doug Evans <xdje42@gmail.com>
6793
6794 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6795
6796 2014-03-02 Doug Evans <xdje42@gmail.com>
6797
6798 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6799
6800 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6801
6802 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6803
6804 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6805
6806 * i386obsd-nat.c: Include "obsd-nat.h".
6807 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6808 add_target.
6809 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6810
6811 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6812
6813 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6814
6815 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6816
6817 * mips64obsd-nat.c: Include "obsd-nath".
6818 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6819 add_target
6820 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6821
6822 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6823
6824 * amd64obsd-nat.c: Include "obsd-nat,h.
6825 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6826 add_target.
6827 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6828
6829 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6830
6831 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6832 (find_overload_match): Update call to find_oload_champ.
6833 (find_oload_champ_namespace_loop): Likewise
6834
6835 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6836
6837 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6838
6839 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6840 * config/sparc/obsd64.mh: New file.
6841 * sparc64obsd-nat.c: New file.
6842
6843 * obsd-nat.h: New file.
6844 * obsd-nat.c: New file.
6845 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6846 (ALLDEPFILES): Add obsd-nat.c.
6847
6848 2014-02-28 Tom Tromey <tromey@redhat.com>
6849
6850 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6851 * cli-out.h (cli_ui_out_impl): Now const.
6852 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6853 * ui-out.c (struct ui_out) <impl>: Now const.
6854 (default_ui_out_impl): Now const.
6855 (ui_out_new): Make 'impl' parameter const.
6856 * ui-out.h (ui_out_new): Update.
6857
6858 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6859
6860 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6861
6862 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6863
6864 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6865
6866 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6867
6868 Additional PR 8882 fix.
6869 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6870
6871 2014-02-27 Pedro Alves <palves@redhat.com>
6872
6873 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6874 isn't set.
6875
6876 2014-02-27 Pedro Alves <palves@redhat.com>
6877
6878 PR 12702
6879 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6880 * nat/linux-waitpid.c: Include string.h.
6881 (status_to_str): Moved here and made extern.
6882 * nat/linux-waitpid.h (status_to_str): New declaration.
6883
6884 2014-02-27 Hui Zhu <hui@codesourcery.com>
6885
6886 PR 12702
6887 * infrun.c (ptid_match): Move ...
6888 * common/ptid.c (ptid_match): ... here.
6889 * inferior.h (ptid_match): Move ...
6890 * common/ptid.h (ptid_match): ... here.
6891
6892 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6893
6894 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6895 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6896 gdb_target_obs.
6897
6898 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6899
6900 * obsd-tdep.c (obsd_auxv_parse): New function.
6901 (obsd_init_abi): Set auxv_parse.
6902
6903 * gdbarch.sh (auxv_parse): New.
6904 * gdbarch.h: Regenerated.
6905 * gdbarch.c: Regenerated.
6906 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6907
6908 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6909
6910 * guile/scm-value.c (gdbscm_history_append_x): New function.
6911 (value_functions): Add it.
6912
6913 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6914
6915 * dwarf2read.c (attr_value_as_address): New function.
6916 (dwarf2_find_base_address, read_call_site_scope): Use
6917 attr_value_as_address in place of DW_ADDR.
6918 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6919 the low and high addresses. Slight rework of the handling
6920 of the high pc being a constant form, and limit it to
6921 DWARF verson 4 or higher.
6922 (dwarf2_record_block_ranges): Likewise.
6923 (read_partial_die): Likewise.
6924 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6925
6926 2014-02-26 Tom Tromey <tromey@redhat.com>
6927
6928 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6929
6930 2014-02-26 Tom Tromey <tromey@redhat.com>
6931
6932 * elfread.c (elf_read_minimal_symbols): Return early if
6933 minimal symbols have already been read. Add "ei" parameter.
6934 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6935 * minsyms.c (prim_record_minimal_symbol_full): Update.
6936 * objfiles.h (struct objstats) <n_minsyms>: Move...
6937 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6938 * symmisc.c (print_objfile_statistics): Update.
6939
6940 2014-02-26 Tom Tromey <tromey@redhat.com>
6941
6942 * elfread.c (elf_read_minimal_symbols): New function, from
6943 elf_symfile_read.
6944 (elf_symfile_read): Call it.
6945
6946 2014-02-26 Tom Tromey <tromey@redhat.com>
6947
6948 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6949 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6950 (lookup_minimal_symbol_solib_trampoline)
6951 (lookup_minimal_symbol_by_pc_section_1)
6952 (lookup_minimal_symbol_and_objfile): Update.
6953 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6954 Don't allocate a minimal symbol if minsyms have already been read.
6955 (build_minimal_symbol_hash_tables): Update.
6956 (install_minimal_symbols): Do nothing if minsyms already read.
6957 Use the per-BFD obstack.
6958 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6959 * objfiles.c (allocate_objfile): Call
6960 terminate_minimal_symbol_table later.
6961 (have_minimal_symbols): Update.
6962 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6963 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6964 Move from struct objfile.
6965 <minsyms_read>: New field.
6966 (struct objfile) <msymbols, minimal_symbol_count,
6967 msymbol_hash, msymbol_demangled_hash>: Move.
6968 (ALL_OBJFILE_MSYMBOLS): Update.
6969 * symfile.c (read_symbols): Set minsyms_read.
6970 (reread_symbols): Update.
6971 * symmisc.c (dump_objfile, dump_msymbols): Update.
6972
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6974
6975 * minsyms.c (msymbols_sort): Remove.
6976 * minsyms.h (msymbols_sort): Remove.
6977 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6978 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6979 * elfread.c (elf_symtab_read): Don't add section offsets.
6980 * xcoffread.c (record_minimal_symbol): Don't add section offset
6981 to minimal symbol address.
6982 * somread.c (text_offset, data_offset): Remove.
6983 (som_symtab_read): Don't add section offsets to minimal symbol
6984 addresses.
6985 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6986 Don't add section offsets to minimal symbols.
6987 * coffread.c (coff_symtab_read): Don't add section offsets
6988 to minimal symbol addresses.
6989 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6990 to minimal symbol addresses.
6991 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6992 section offset to minimal symbol addresses.
6993 * mdebugread.c (parse_partial_symbols): Don't add section
6994 offset to minimal symbol addresses.
6995 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6996 offset to minimal symbol addresses.
6997
6998 2014-02-26 Tom Tromey <tromey@redhat.com>
6999
7000 * ada-lang.c (ada_main_name): Update.
7001 (ada_add_standard_exceptions): Update.
7002 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7003 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7004 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7005 * auxv.c (ld_so_xfer_auxv): Update.
7006 * avr-tdep.c (avr_scan_prologue): Update.
7007 * ax-gdb.c (gen_var_ref): Update.
7008 * blockframe.c (get_pc_function_start)
7009 (find_pc_partial_function_gnu_ifunc): Update.
7010 * breakpoint.c (create_overlay_event_breakpoint)
7011 (create_longjmp_master_breakpoint)
7012 (create_std_terminate_master_breakpoint)
7013 (create_exception_master_breakpoint): Update.
7014 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7015 * c-valprint.c (c_val_print): Update.
7016 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7017 * common/agent.c (agent_look_up_symbols): Update.
7018 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7019 * dwarf2loc.c (call_site_to_target_addr): Update.
7020 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7021 * elfread.c (elf_gnu_ifunc_record_cache)
7022 (elf_gnu_ifunc_resolve_by_got): Update.
7023 * findvar.c (default_read_var_value): Update.
7024 * frame.c (inside_main_func): Update.
7025 * frv-tdep.c (frv_frame_this_id): Update.
7026 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7027 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7028 Update.
7029 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7030 (hppa_hpux_find_dummy_bpaddr): Update.
7031 * hppa-tdep.c (hppa_symbol_address): Update.
7032 * infcmd.c (until_next_command): Update.
7033 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7034 Update.
7035 * linespec.c (minsym_found, add_minsym): Update.
7036 * linux-nat.c (get_signo): Update.
7037 * linux-thread-db.c (inferior_has_bug): Update.
7038 * m32c-tdep.c (m32c_return_value)
7039 (m32c_m16c_address_to_pointer): Update.
7040 * m32r-tdep.c (m32r_frame_this_id): Update.
7041 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7042 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7043 * maint.c (maintenance_translate_address): Update.
7044 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7045 (frob_address): New function.
7046 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7047 frob_address. Rename parameter to "pc_in".
7048 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7049 addresses.
7050 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7051 Update.
7052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7053 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7054 * objc-lang.c (find_objc_msgsend): Update.
7055 * objfiles.c (objfile_relocate1): Update.
7056 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7057 * p-valprint.c (pascal_val_print): Update.
7058 * parse.c (write_exp_msymbol): Update.
7059 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7060 (ppc_elfv2_skip_entrypoint): Update.
7061 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7062 * printcmd.c (build_address_symbolic, msym_info)
7063 (address_info): Update.
7064 * proc-service.c (ps_pglobal_lookup): Update.
7065 * psymtab.c (find_pc_sect_psymtab_closer)
7066 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7067 Change msymbol parameter to bound_minimal_symbol.
7068 * ravenscar-thread.c (get_running_thread_id): Update.
7069 * remote.c (remote_check_symbols): Update.
7070 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7071 address.
7072 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7073 * solib-dsbt.c (lm_base): Update.
7074 * solib-frv.c (lm_base, main_got): Update.
7075 * solib-irix.c (locate_base): Update.
7076 * solib-som.c (som_solib_create_inferior_hook)
7077 (link_map_start): Update.
7078 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7079 * solib-svr4.c (elf_locate_base, enable_break): Update.
7080 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7081 (flush_ea_cache): Update.
7082 * stabsread.c (define_symbol, scan_file_globals): Update.
7083 * stack.c (find_frame_funname): Update.
7084 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7085 (debug_qf_find_pc_sect_symtab): Update.
7086 * symfile.c (simple_read_overlay_table)
7087 (simple_overlay_update): Update.
7088 * symfile.h (struct quick_symbol_functions)
7089 <find_pc_sect_symtab>: Change type of msymbol to
7090 bound_minimal_symbol.
7091 * symmisc.c (dump_msymbols): Update.
7092 * symtab.c (find_pc_sect_symtab_via_partial)
7093 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7094 (search_symbols, print_msymbol_info): Update.
7095 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7096 (MSYMBOL_VALUE_ADDRESS): Redefine.
7097 (BMSYMBOL_VALUE_ADDRESS): New macro.
7098 * tracepoint.c (scope_info): Update.
7099 * tui/tui-disasm.c (tui_find_disassembly_address)
7100 (tui_get_begin_asm_address): Update.
7101 * valops.c (find_function_in_inferior): Update.
7102 * value.c (value_static_field, value_fn_field): Update.
7103
7104 2014-02-26 Tom Tromey <tromey@redhat.com>
7105
7106 * ada-lang.c (ada_update_initial_language): Update.
7107 (ada_main_name, ada_has_this_exception_support): Update.
7108 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7109 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7110 * arm-tdep.c (arm_skip_stub): Update.
7111 * auxv.c (ld_so_xfer_auxv): Update.
7112 * avr-tdep.c (avr_scan_prologue): Update.
7113 * ax-gdb.c (gen_var_ref): Update.
7114 * breakpoint.c (struct breakpoint_objfile_data)
7115 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7116 type to bound_minimal_symbol.
7117 (create_overlay_event_breakpoint)
7118 (create_longjmp_master_breakpoint)
7119 (create_std_terminate_master_breakpoint)
7120 (create_exception_master_breakpoint): Update.
7121 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7122 * c-exp.y (classify_name): Update.
7123 * coffread.c (coff_symfile_read): Update.
7124 * common/agent.c (agent_look_up_symbols): Update.
7125 * d-lang.c (d_main_name): Update.
7126 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7127 * dec-thread.c (enable_dec_thread): Update.
7128 * dwarf2loc.c (call_site_to_target_addr): Update.
7129 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7130 * eval.c (evaluate_subexp_standard): Update.
7131 * findvar.c (struct minsym_lookup_data) <result>: Change type
7132 to bound_minimal_symbol.
7133 <objfile>: Remove.
7134 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7135 * frame.c (inside_main_func): Update.
7136 * frv-tdep.c (frv_frame_this_id): Update.
7137 * gcore.c (call_target_sbrk): Update.
7138 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7139 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7140 Update.
7141 * go-lang.c (go_main_name): Update.
7142 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7143 (hppa_hpux_find_import_stub_for_addr): Update.
7144 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7145 Update. Change return type.
7146 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7147 type.
7148 * jit.c (jit_breakpoint_re_set_internal): Update.
7149 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7150 Update.
7151 * linux-nat.c (get_signo): Update.
7152 * linux-thread-db.c (inferior_has_bug): Update
7153 * m32c-tdep.c (m32c_return_value)
7154 (m32c_m16c_address_to_pointer): Update.
7155 * m32r-tdep.c (m32r_frame_this_id): Update.
7156 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7157 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7158 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7159 lookup_minimal_symbol. Change return type.
7160 (lookup_minimal_symbol): Remove.
7161 (lookup_bound_minimal_symbol): Update.
7162 (lookup_minimal_symbol_text): Change return type.
7163 (lookup_minimal_symbol_solib_trampoline): Change return type.
7164 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7165 (lookup_minimal_symbol_solib_trampoline): Change return type.
7166 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7167 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7168 (value_nsstring, find_imps): Update.
7169 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7170 * p-lang.c (pascal_main_name): Update.
7171 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7172 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7173 * proc-service.c (ps_pglobal_lookup): Update.
7174 * ravenscar-thread.c (get_running_thread_msymbol): Change
7175 return type.
7176 (has_ravenscar_runtime, get_running_thread_id): Update.
7177 * remote.c (remote_check_symbols): Update.
7178 * sol-thread.c (ps_pglobal_lookup): Update.
7179 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7180 * solib-dsbt.c (lm_base): Update.
7181 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7182 Update.
7183 * solib-irix.c (locate_base): Update.
7184 * solib-som.c (som_solib_create_inferior_hook)
7185 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7186 Update.
7187 * solib-spu.c (spu_enable_break): Update.
7188 * solib-svr4.c (elf_locate_base, enable_break): Update.
7189 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7190 (flush_ea_cache): Update.
7191 * stabsread.c (define_symbol): Update.
7192 * symfile.c (simple_read_overlay_table): Update.
7193 * symtab.c (find_pc_sect_line): Update.
7194 * tracepoint.c (scope_info): Update.
7195 * tui-disasm.c (tui_get_begin_asm_address): Update.
7196 * value.c (value_static_field): Update.
7197
7198 2014-02-26 Tom Tromey <tromey@redhat.com>
7199
7200 * minsyms.c (prim_record_minimal_symbol_full): Use
7201 SET_MSYMBOL_VALUE_ADDRESS.
7202 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7203 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7204 SET_MSYMBOL_VALUE_ADDRESS.
7205 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7206 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7207
7208 2014-02-26 Tom Tromey <tromey@redhat.com>
7209
7210 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7211 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7212 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7213 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7214 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7215 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7216 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7217 * ada-lang.c (ada_main_name): Update.
7218 (ada_lookup_simple_minsym): Update.
7219 (ada_make_symbol_completion_list): Update.
7220 (ada_add_standard_exceptions): Update.
7221 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7222 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7223 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7224 * arm-tdep.c (skip_prologue_function): Update.
7225 (arm_skip_stack_protector, arm_skip_stub): Update.
7226 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7227 (arm_wince_skip_main_prologue): Update.
7228 * auxv.c (ld_so_xfer_auxv): Update.
7229 * avr-tdep.c (avr_scan_prologue): Update.
7230 * ax-gdb.c (gen_var_ref): Update.
7231 * block.c (call_site_for_pc): Update.
7232 * blockframe.c (get_pc_function_start): Update.
7233 (find_pc_partial_function_gnu_ifunc): Update.
7234 * breakpoint.c (create_overlay_event_breakpoint): Update.
7235 (create_longjmp_master_breakpoint): Update.
7236 (create_std_terminate_master_breakpoint): Update.
7237 (create_exception_master_breakpoint): Update.
7238 (resolve_sal_pc): Update.
7239 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7240 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7241 Update.
7242 * c-valprint.c (c_val_print): Update.
7243 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7244 * coffread.c (coff_symfile_read): Update.
7245 * common/agent.c (agent_look_up_symbols): Update.
7246 * dbxread.c (find_stab_function_addr): Update.
7247 (end_psymtab): Update.
7248 * dwarf2loc.c (call_site_to_target_addr): Update.
7249 (func_verify_no_selftailcall): Update.
7250 (tailcall_dump): Update.
7251 (call_site_find_chain_1): Update.
7252 (dwarf_expr_reg_to_entry_parameter): Update.
7253 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7254 (elf_gnu_ifunc_resolve_by_got): Update.
7255 * f-valprint.c (info_common_command): Update.
7256 * findvar.c (read_var_value): Update.
7257 * frame.c (get_prev_frame_1): Update.
7258 (inside_main_func): Update.
7259 * frv-tdep.c (frv_skip_main_prologue): Update.
7260 (frv_frame_this_id): Update.
7261 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7262 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7263 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7264 (gnuv3_skip_trampoline): Update.
7265 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7266 (hppa64_hpux_in_solib_call_trampoline): Update.
7267 (hppa_hpux_skip_trampoline_code): Update.
7268 (hppa64_hpux_search_dummy_call_sequence): Update.
7269 (hppa_hpux_find_import_stub_for_addr): Update.
7270 (hppa_hpux_find_dummy_bpaddr): Update.
7271 * hppa-tdep.c (hppa_symbol_address)
7272 (hppa_lookup_stub_minimal_symbol): Update.
7273 * i386-tdep.c (i386_skip_main_prologue): Update.
7274 (i386_pe_skip_trampoline_code): Update.
7275 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7276 * infcall.c (get_function_name): Update.
7277 * infcmd.c (until_next_command): Update.
7278 * jit.c (jit_breakpoint_re_set_internal): Update.
7279 (jit_inferior_init): Update.
7280 * linespec.c (minsym_found): Update.
7281 (add_minsym): Update.
7282 * linux-fork.c (info_checkpoints_command): Update.
7283 * linux-nat.c (get_signo): Update.
7284 * linux-thread-db.c (inferior_has_bug): Update.
7285 * m32c-tdep.c (m32c_return_value): Update.
7286 (m32c_m16c_address_to_pointer): Update.
7287 (m32c_m16c_pointer_to_address): Update.
7288 * m32r-tdep.c (m32r_frame_this_id): Update.
7289 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7290 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7291 * maint.c (maintenance_translate_address): Update.
7292 * minsyms.c (add_minsym_to_hash_table): Update.
7293 (add_minsym_to_demangled_hash_table): Update.
7294 (msymbol_objfile): Update.
7295 (lookup_minimal_symbol): Update.
7296 (iterate_over_minimal_symbols): Update.
7297 (lookup_minimal_symbol_text): Update.
7298 (lookup_minimal_symbol_by_pc_name): Update.
7299 (lookup_minimal_symbol_solib_trampoline): Update.
7300 (lookup_minimal_symbol_by_pc_section_1): Update.
7301 (lookup_minimal_symbol_and_objfile): Update.
7302 (prim_record_minimal_symbol_full): Update.
7303 (compare_minimal_symbols): Update.
7304 (compact_minimal_symbols): Update.
7305 (build_minimal_symbol_hash_tables): Update.
7306 (install_minimal_symbols): Update.
7307 (terminate_minimal_symbol_table): Update.
7308 (find_solib_trampoline_target): Update.
7309 (minimal_symbol_upper_bound): Update.
7310 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7311 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7312 (mips_skip_pic_trampoline_code): Update.
7313 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7314 * objc-lang.c (selectors_info): Update.
7315 (classes_info): Update.
7316 (find_methods): Update.
7317 (find_imps): Update.
7318 (find_objc_msgsend): Update.
7319 * objfiles.c (objfile_relocate1): Update.
7320 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7321 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7322 * p-valprint.c (pascal_val_print): Update.
7323 * parse.c (write_exp_msymbol): Update.
7324 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7325 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7326 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7327 * printcmd.c (build_address_symbolic): Update.
7328 (sym_info): Update.
7329 (address_info): Update.
7330 * proc-service.c (ps_pglobal_lookup): Update.
7331 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7332 (find_pc_sect_psymtab): Update.
7333 * python/py-framefilter.c (py_print_frame): Update.
7334 * ravenscar-thread.c (get_running_thread_id): Update.
7335 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7336 Update.
7337 * remote.c (remote_check_symbols): Update.
7338 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7339 (rs6000_skip_trampoline_code): Update.
7340 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7341 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7342 * solib-dsbt.c (lm_base): Update.
7343 * solib-frv.c (lm_base): Update.
7344 (main_got): Update.
7345 * solib-irix.c (locate_base): Update.
7346 * solib-som.c (som_solib_create_inferior_hook): Update.
7347 (som_solib_desire_dynamic_linker_symbols): Update.
7348 (link_map_start): Update.
7349 * solib-spu.c (spu_enable_break): Update.
7350 (ocl_enable_break): Update.
7351 * solib-svr4.c (elf_locate_base): Update.
7352 (enable_break): Update.
7353 * spu-tdep.c (spu_get_overlay_table): Update.
7354 (spu_catch_start): Update.
7355 (flush_ea_cache): Update.
7356 * stabsread.c (define_symbol): Update.
7357 (scan_file_globals): Update.
7358 * stack.c (find_frame_funname): Update.
7359 (frame_info): Update.
7360 * symfile.c (simple_read_overlay_table): Update.
7361 (simple_overlay_update): Update.
7362 * symmisc.c (dump_msymbols): Update.
7363 * symtab.c (fixup_section): Update.
7364 (find_pc_sect_line): Update.
7365 (skip_prologue_sal): Update.
7366 (search_symbols): Update.
7367 (print_msymbol_info): Update.
7368 (rbreak_command): Update.
7369 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7370 (completion_list_objc_symbol): Update.
7371 (default_make_symbol_completion_list_break_on): Update.
7372 * tracepoint.c (scope_info): Update.
7373 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7374 (tui_get_begin_asm_address): Update.
7375 * valops.c (find_function_in_inferior): Update.
7376 * value.c (value_static_field): Update.
7377 (value_fn_field): Update.
7378
7379 2014-02-26 Tom Tromey <tromey@redhat.com>
7380
7381 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7382 bound minimal symbols. Move code that knows about minsym
7383 table layout...
7384 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7385 function.
7386 * minsyms.h (minimal_symbol_upper_bound): Declare.
7387 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7388 minimal_symbol_upper_bound.
7389
7390 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7391
7392 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7393 Use the type's name if its basic type does not have a tag.
7394
7395 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7396
7397 * dwarf2read.c (read_subrange_type): Add comment.
7398
7399 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7400
7401 * dwarf2read.c (update_enumeration_type_from_children): New
7402 function, mostly extracted from process_structure_scope.
7403 (read_enumeration_type): Call update_enumeration_type_from_children.
7404 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7405 and flag_flag_enum fields.
7406
7407 2014-02-26 Pedro Alves <palves@redhat.com>
7408
7409 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7410 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7411 to_xfer_partial method.
7412
7413 2014-02-26 Pedro Alves <palves@redhat.com>
7414
7415 * target.c (complete_target_initialization): Don't install
7416 default_xfer_partial as to_xfer_partial hook.
7417 (nomemory): Delete.
7418 (update_current_target): Don't INHERIT nor de_fault
7419 deprecated_xfer_memory. Delete de_fault macro.
7420 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7421 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7422 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7423 field.
7424
7425 2014-02-26 Pedro Alves <palves@redhat.com>
7426
7427 * go32-nat.c (my_write_child): New function.
7428 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7429 (go32_xfer_partial): New function.
7430 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7431 Instead install a to_xfer_partial hook.
7432
7433 2014-02-26 Pedro Alves <palves@redhat.com>
7434
7435 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7436 to_xfer_partial helper. Rewrite.
7437 (procfs_xfer_partial): New function.
7438 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7439 Install a to_xfer_partial hook.
7440
7441 2014-02-26 Pedro Alves <palves@redhat.com>
7442
7443 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7444 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7445 (m32r_xfer_partial): New function.
7446 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7447 Install a to_xfer_partial hook.
7448
7449 2014-02-26 Pedro Alves <palves@redhat.com>
7450
7451 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7452 helper.
7453 (mips_xfer_partial): New function.
7454 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7455 hook. Install a to_xfer_partial hook.
7456
7457 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7458
7459 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7460 * gdbtypes.c (create_array_type_with_stride): New function,
7461 renaming create_array_type, but with an added parameter
7462 called "bit_stride".
7463 (create_array_type): Re-implement using
7464 create_array_type_with_stride.
7465 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7466 and DW_AT_bit_stride attributes.
7467
7468 2014-02-26 Pedro Alves <palves@redhat.com>
7469
7470 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7471 task-specific breakpoints.
7472
7473 2014-02-25 Pedro Alves <palves@redhat.com>
7474
7475 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7476 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7477
7478 2014-02-25 Stan Shebs <stan@codesourcery.com>
7479
7480 * defs.h: Annotate comments for Doxygen.
7481
7482 2014-02-25 Tom Tromey <tromey@redhat.com>
7483
7484 * target.h (target_ignore): Don't declare.
7485 * target.c (target_ignore): Remove.
7486
7487 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 PR gdb/16626
7490 * auto-load.c (auto_load_objfile_script_1): Change filename to
7491 debugfile.
7492
7493 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7494
7495 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7496 documentation. Adjust prototype to match the target_ops
7497 to_xfer_partial method. Adjust implementation accordingly.
7498
7499 2014-02-25 Hui Zhu <hui@codesourcery.com>
7500
7501 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7502 to_traceframe_info.
7503
7504 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7505
7506 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7507 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7508 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7509 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7510 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7511 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7512 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7513 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7514 New constants.
7515 (rl78_register_type): Use a data pointer type for SP and
7516 new pseudo registers mentioned above. Use a 16 bit integer
7517 type for all other register pairs.
7518 (rl78_register_name, rl78_g10_register_name): Update for
7519 new pseudo registers.
7520 (rl78_pseudo_register_read): Likewise.
7521 (rl78_pseudo_register_write): Likewise.
7522 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7523 to the newly added pseudo registers.
7524
7525 2014-02-24 Doug Evans <dje@google.com>
7526
7527 * value.c (record_latest_value): Fix comment.
7528 * printcmd.c (print_command_1): Remove code to handle -1 return from
7529 record_latest_value.
7530
7531 2014-02-24 Pedro Alves <palves@redhat.com>
7532
7533 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7534 deprecated_xfer_memory hook.
7535 (procfs_xfer_partial): Call procfs_xfer_memory instead
7536 of the deprecated_xfer_memory target hook.
7537 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7538 helper.
7539
7540 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7541
7542 * windows-nat.c (windows_xfer_shared_libraries): Return
7543 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7544 requested object is TARGET_OBJECT_LIBRARIES.
7545
7546 2014-02-24 Yao Qi <yao@codesourcery.com>
7547
7548 * target.h (enum target_xfer_status)
7549 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7550 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7551 explicitly. New.
7552 * corefile.c (memory_error_message): User updated.
7553 * exec.c (section_table_read_available_memory): Likewise.
7554 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7555 * target.c (target_xfer_status_to_string): Likewise.
7556 (raw_memory_xfer_partial): Likewise.
7557 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7558 * valops.c (read_value_memory): Likewise.
7559 * exec.h: Update comments.
7560
7561 2014-02-24 Yao Qi <yao@codesourcery.com>
7562
7563 * target.c (target_xfer_status_to_string): Rename argument err
7564 to status.
7565 * target.h (target_xfer_status_to_string): Update declaration.
7566 Replace target_xfer_error_to_string with
7567 target_xfer_status_to_string in comment.
7568
7569 2014-02-24 Yao Qi <yao@codesourcery.com>
7570
7571 * mips-linux-nat.c (super_close): Update its type.
7572 (mips_linux_close): Pass 'self' to super_close.
7573
7574 2014-02-24 Yao Qi <yao@codesourcery.com>
7575
7576 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7577 * corefile.c (read_memory): Adjusted.
7578 * target.c (target_write_with_progress): Adjusted.
7579
7580 2014-02-23 Yao Qi <yao@codesourcery.com>
7581
7582 Revert two patches:
7583
7584 2013-10-25 Yao Qi <yao@codesourcery.com>
7585
7586 * remote.c (remote_traceframe_info): Return early if
7587 traceframe is not selected.
7588
7589 2013-07-19 Yao Qi <yao@codesourcery.com>
7590
7591 * target.c (update_current_target): Change the default action
7592 of 'to_traceframe_info' from tcomplain to return_zero.
7593 * target.h (struct target_ops) <to_traceframe_info>: Add more
7594 comments.
7595
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7597
7598 * valops.c (read_value_memory): Rewrite it. Call
7599 target_xfer_partial in a loop.
7600 * exec.h (section_table_available_memory): Remove declaration.
7601 Move comments to ...
7602 * exec.c (section_table_available_memory): ... here. Make it
7603 static.
7604
7605 2014-02-23 Yao Qi <yao@codesourcery.com>
7606
7607 * exec.c (section_table_read_available_memory): New function.
7608 * exec.h (section_table_read_available_memory): Declare.
7609 * ctf.c (ctf_xfer_partial): Call
7610 section_table_read_available_memory.
7611 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7612
7613 2014-02-23 Yao Qi <yao@codesourcery.com>
7614
7615 * ctf.c (ctf_xfer_partial): Move code to ...
7616 * exec.c (exec_read_partial_read_only): ... it. New function.
7617 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7618 * tracefile.c: Include "exec.h".
7619 * exec.h (exec_read_partial_read_only): Declare.
7620
7621 2014-02-23 Yao Qi <yao@codesourcery.com>
7622
7623 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7624 (tfile_has_memory): Remove.
7625 (init_tfile_ops): Don't set fields to_has_all_memory and
7626 to_has_memory of tfile_ops.
7627 * tracefile.c (tracefile_has_all_memory): New function.
7628 (tracefile_has_memory): New function.
7629 (init_tracefile_ops): Initialize fields to_has_all_memory and
7630 to_has_memory of 'ops'.
7631
7632 2014-02-23 Yao Qi <yao@codesourcery.com>
7633
7634 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7635 (ctf_thread_alive, ctf_get_trace_status): Remove.
7636 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7637 init_tracefile_ops.
7638 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7639 (tfile_has_stack, tfile_has_registers): Remove.
7640 (tfile_thread_alive): Remove.
7641 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7642 init_tracefile_ops.
7643 * tracefile.c (tracefile_has_stack): New function.
7644 (tracefile_has_registers): New function.
7645 (tracefile_thread_alive): New function.
7646 (tracefile_get_trace_status): New function.
7647 (init_tracefile_ops): New function.
7648 * tracefile.h (init_tracefile_ops): Declare.
7649
7650 2014-02-23 Yao Qi <yao@codesourcery.com>
7651
7652 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7653 (O_LARGEFILE): Likewise.
7654 (tfile_ops): Likewise.
7655 (TRACE_HEADER_SIZE): Likewise.
7656 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7657 (cur_data_size): Likewise.
7658 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7659 (tfile_close, tfile_files_info): Likewise.
7660 (tfile_get_trace_status): Likewise.
7661 (tfile_get_tracepoint_status): Likewise.
7662 (tfile_get_traceframe_address): Likewise.
7663 (tfile_trace_find, match_blocktype): Likewise.
7664 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7665 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7666 (tfile_get_trace_state_variable_value): Likewise.
7667 (tfile_has_all_memory, tfile_has_memory): Likewise.
7668 (tfile_has_stack, tfile_has_registers): Likewise.
7669 (tfile_thread_alive, build_traceframe_info): Likewise.
7670 (tfile_traceframe_info, init_tfile_ops): Likewise.
7671 (_initialize_tracepoint): Don't call init_tfile_ops
7672 and add_target_with_completer.
7673 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7674 exec.h, completer.h and filenames.h.
7675 (_initialize_tracefile_tfile): New function.
7676
7677 2014-02-23 Yao Qi <yao@codesourcery.com>
7678
7679 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7680 tracefile-tfile.o.
7681 (HFILES_NO_SRCDIR): Add tracefile.h.
7682 * ctf.c: Include "tracefile.h".
7683 * tracefile.h: New file.
7684 * tracefile.c: New file
7685 * tracefile-tfile.c: New file.
7686 * tracepoint.c: Include "tracefile.h".
7687 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7688 (stop_reason_names): Add const.
7689 (trace_file_writer_xfree): Move it to tracefile.c.
7690 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7691 (trace_save_ctf): Likewise.
7692 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7693 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7694 (tfile_write_header, tfile_write_regblock_type): Likewise.
7695 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7696 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7697 (tfile_write_raw_data, tfile_end): Likewise.
7698 (tfile_trace_file_writer_new): Likewise.
7699 (free_uploaded_tp): Make it extern.
7700 (free_uploaded_tsv): Make it extern.
7701 (_initialize_tracepoint): Move code to register command 'tsave'
7702 to tracefile.c.
7703 * tracepoint.h (stop_reason_names): Declare.
7704 (struct trace_frame_write_ops): Move it to tracefile.h.
7705 (struct trace_file_write_ops): Likewise.
7706 (struct trace_file_writer): Likewise.
7707 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7708
7709 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 PR gdb/16594
7712 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7713 process name.
7714 (get_cores_used_by_process): New parameter num_cores, use it.
7715 (linux_xfer_osdata_processes): Pass num_cores to it.
7716 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7717 process name.
7718
7719 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7720
7721 * target.c (memory_xfer_partial): Fix length arg in call to
7722 breakpoint_xfer_memory.
7723
7724 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7725
7726 PR tdep/16397
7727 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7728 number comes after the + or - signs. Adjust length of register
7729 name to be extracted.
7730
7731 2014-02-20 Tom Tromey <tromey@redhat.com>
7732
7733 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7734 (ada_varobj_ops): Mark "extern".
7735
7736 2014-02-20 Tom Tromey <tromey@redhat.com>
7737
7738 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7739
7740 2014-02-20 Doug Evans <xdje42@gmail.com>
7741
7742 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7743 All callers updated.
7744 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7745 All callers updated.
7746 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7747 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7748
7749 2014-02-20 lin zuojian <manjian2006@gmail.com>
7750 Joel Brobecker <brobecker@adacore.com>
7751 Doug Evans <xdje42@gmail.com>
7752
7753 PR symtab/16581
7754 * dwarf2read.c (struct die_info): New member in_process.
7755 (reset_die_in_process): New function.
7756 (process_die): Set it at the start, reset when returning.
7757 (inherit_abstract_dies): Only call process_die if origin_child_die
7758 not already being processed.
7759
7760 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7761
7762 * windows-nat.c (handle_unload_dll): Add function documentation.
7763 (do_initial_windows_stuff): Add comment explaining why we wait
7764 until after inferior initialization has finished before
7765 processing all DLLs.
7766
7767 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7768
7769 * windows-nat.c (get_module_name): Delete.
7770 (windows_get_exec_module_filename): New function, mostly
7771 inspired from get_module_name.
7772 (windows_pid_to_exec_file): Replace call to get_module_name
7773 by call to windows_get_exec_module_filename.
7774
7775 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7776
7777 * windows-nat.c (handle_load_dll): Rewrite this function's
7778 introductory comment. Remove code using get_module_name
7779 to get the DLL's name.
7780
7781 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7782
7783 * windows-nat.c (get_windows_debug_event): Ignore
7784 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7785 if windows_initialization_done == 0.
7786 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7787 Adjust implementation to always load all DLLs.
7788 (do_initial_windows_stuff): Replace call to
7789 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7790
7791 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7792
7793 * windows-nat.c (_initialize_windows_nat): Deprecate the
7794 "dll-symbols" command. Turn the "add-shared-symbol-files"
7795 and "assf" aliases into commands, and deprecate them as well.
7796 * NEWS: Add entry explaining that "dll-symbols" and its two
7797 aliases are now deprecated.
7798
7799 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7800
7801 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7802 new-line in debug string. Remove trailing spaces.
7803
7804 2014-02-19 Stan Shebs <stan@codesourcery.com>
7805
7806 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7807
7808 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7809
7810 * NEWS: Add entry for the new feature
7811 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7812 and class values.
7813
7814 2014-02-19 Stan Shebs <stan@codesourcery.com>
7815
7816 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7817
7818 2014-02-19 Pedro Alves <palves@redhat.com>
7819
7820 * common/ptid.h (struct ptid): Mention that process_stratum
7821 targets should prefer ptid.lwp.
7822
7823 2014-02-19 Pedro Alves <palves@redhat.com>
7824
7825 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7826 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7827 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7828 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7829 store remote thread ids rather than ptid.tid.
7830 (_initialize_remote): Adjust.
7831
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target.c (target_get_unwinder): Rewrite.
7835 (target_get_tailcall_unwinder): Rewrite.
7836 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7837 (record_btrace_to_get_tailcall_unwinder): New function.
7838 (init_record_btrace_ops): Update.
7839 * target.h (struct target_ops) <to_get_unwinder,
7840 to_get_tailcall_unwinder>: Now function pointers. Use
7841 TARGET_DEFAULT_RETURN.
7842
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7846 argument.
7847 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7848
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7852 directly.
7853 * target-delegates.c: Rebuild.
7854 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7855 TARGET_DEFAULT_FUNC.
7856 * target.c (default_target_decr_pc_after_break): Rename from
7857 forward_target_decr_pc_after_break. Simplify.
7858 (target_decr_pc_after_break): Rely on delegation.
7859
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target.c (update_current_target): Do not INHERIT to_doc or
7863 to_magic. Do not de_fault to_open or to_close.
7864
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7866
7867 * gcore.h (objfile_find_memory_regions): Declare.
7868 * gcore.c (objfile_find_memory_regions): No longer static. Add
7869 "self" argument.
7870 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7871 * exec.c: Include gcore.h.
7872 (exec_set_find_memory_regions): Remove.
7873 (exec_find_memory_regions): Remove.
7874 (exec_do_find_memory_regions): Remove.
7875 (init_exec_ops): Update.
7876 * defs.h (exec_set_find_memory_regions): Remove.
7877
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7879
7880 * target-delegates.c: Rebuild.
7881 * target.h (struct target_ops) <to_extra_thread_info,
7882 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7883 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7884 not 0, in TARGET_DEFAULT_RETURN.
7885
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target.c (complete_target_initialization): Remove casts. Use
7889 return_zero_has_execution.
7890 (return_zero): Add "ignore" argument.
7891 (return_zero_has_execution): New function.
7892 (init_dummy_target): Remove casts. Use
7893 return_zero_has_execution.
7894
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target.c (update_current_target): Update comments. Do not
7898 INHERIT to_stratum.
7899
7900 2014-02-19 Tom Tromey <tromey@redhat.com>
7901
7902 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7903 needed.
7904 * corelow.c (core_read_description): Delegate when needed.
7905 * remote.c (remote_read_description): Delegate when needed.
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_read_description): Rewrite.
7908 * target.h (struct target_ops) <to_read_description>: Update
7909 comment. Use TARGET_DEFAULT_RETURN.
7910
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7915 to_can_run.
7916 (find_default_run_target): Check against delegate_can_run.
7917 * target.h (struct target_ops) <to_can_run>: Use
7918 TARGET_DEFAULT_RETURN.
7919
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7921
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_disconnect): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_disconnect>: Use
7925 TARGET_DEFAULT_NORETURN.
7926
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7928
7929 * record.c (record_stop): Unconditionally delegate.
7930 * target-delegates.c: Rebuild.
7931 * target.c (target_stop_recording): Unconditionally delegate.
7932 * target.h (struct target_ops) <to_stop_recording>: Use
7933 TARGET_DEFAULT_IGNORE.
7934
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target-delegates.c: Rebuild.
7938 * target.c (target_enable_btrace): Unconditionally delegate.
7939 * target.h (struct target_ops) <to_enable_btrace>: Use
7940 TARGET_DEFAULT_NORETURN.
7941
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7943
7944 * target-delegates.c: Rebuild.
7945 * target.c (target_read_btrace): Unconditionally delegate.
7946 * target.h (struct target_ops) <to_read_btrace>: Use
7947 TARGET_DEFAULT_NORETURN.
7948
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target-delegates.c: Rebuild.
7952 * target.c (target_teardown_btrace): Unconditionally delegate.
7953 * target.h (struct target_ops) <to_teardown_btrace>: Use
7954 TARGET_DEFAULT_NORETURN.
7955
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target-delegates.c: Rebuild.
7959 * target.c (target_disable_btrace): Unconditionally delegate.
7960 * target.h (struct target_ops) <to_disable_btrace>: Use
7961 TARGET_DEFAULT_NORETURN.
7962
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (default_search_memory): New function.
7967 (simple_search_memory): Update comment.
7968 (target_search_memory): Unconditionally delegate.
7969 * target.h (struct target_ops) <to_search_memory>: Use
7970 TARGET_DEFAULT_FUNC.
7971
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * auxv.c (default_auxv_parse): No longer static.
7975 (target_auxv_parse): Unconditionally delegate.
7976 * auxv.h (default_auxv_parse): Declare.
7977 * target-delegates.c: Rebuild.
7978 * target.c: Include auxv.h.
7979 * target.h (struct target_ops) <to_auxv_parse>: Use
7980 TARGET_DEFAULT_FUNC.
7981
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7983
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_memory_map): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_memory_map>: Use
7987 TARGET_DEFAULT_RETURN.
7988
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_thread_alive): Unconditionally delegate.
7993 * target.h (struct target_ops) <to_thread_alive>: Use
7994 TARGET_DEFAULT_RETURN.
7995
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_save_record): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_save_record>: Use
8001 TARGET_DEFAULT_NORETURN.
8002
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (target_delete_record): Unconditionally delegate.
8007 * target.h (struct target_ops) <to_delete_record>: Use
8008 TARGET_DEFAULT_NORETURN.
8009
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8011
8012 * target-delegates.c: Rebuild.
8013 * target.c (target_record_is_replaying): Unconditionally
8014 delegate.
8015 * target.h (struct target_ops) <to_record_is_replaying>: Use
8016 TARGET_DEFAULT_RETURN.
8017
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (target_goto_record_begin): Unconditionally delegate.
8022 * target.h (struct target_ops) <to_goto_record_begin>: Use
8023 TARGET_DEFAULT_NORETURN.
8024
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_goto_record_end): Unconditionally delegate.
8029 * target.h (struct target_ops) <to_goto_record_end>: Use
8030 TARGET_DEFAULT_NORETURN.
8031
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_goto_record): Unconditionally delegate.
8036 * target.h (struct target_ops) <to_goto_record>: Use
8037 TARGET_DEFAULT_NORETURN.
8038
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * target-delegates.c: Rebuild.
8042 * target.c (target_insn_history): Unconditionally delegate.
8043 * target.h (struct target_ops) <to_insn_history>: Use
8044 TARGET_DEFAULT_NORETURN.
8045
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (target_insn_history_from): Unconditionally delegate.
8050 * target.h (struct target_ops) <to_insn_history_from>: Use
8051 TARGET_DEFAULT_NORETURN.
8052
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (target_insn_history_range): Unconditionally delegate.
8057 * target.h (struct target_ops) <to_insn_history_range>: Use
8058 TARGET_DEFAULT_NORETURN.
8059
8060 2014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (target_call_history): Unconditionally delegate.
8064 * target.h (struct target_ops) <to_call_history>: Use
8065 TARGET_DEFAULT_NORETURN.
8066
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8068
8069 * target-delegates.c: Rebuild.
8070 * target.c (target_call_history_from): Unconditionally delegate.
8071 * target.h (struct target_ops) <to_call_history_from>: Use
8072 TARGET_DEFAULT_NORETURN.
8073
8074 2014-02-19 Tom Tromey <tromey@redhat.com>
8075
8076 * target-delegates.c: Rebuild.
8077 * target.c (target_call_history_range): Unconditionally delegate.
8078 * target.h (struct target_ops) <to_call_history_range>: Use
8079 TARGET_DEFAULT_NORETURN.
8080
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target-delegates.c: Rebuild.
8084 * target.c (target_verify_memory): Unconditionally delegate.
8085 * target.h (struct target_ops) <to_verify_memory>: Use
8086 TARGET_DEFAULT_NORETURN.
8087
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target-delegates.c: Rebuild.
8091 * target.c (target_core_of_thread): Unconditionally delegate.
8092 * target.h (struct target_ops) <to_core_of_thread>: Use
8093 TARGET_DEFAULT_RETURN.
8094
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target-delegates.c: Rebuild.
8098 * target.c (target_flash_done): Unconditionally delegate.
8099 * target.h (struct target_ops) <to_flash_done>: Use
8100 TARGET_DEFAULT_NORETURN.
8101
8102 2014-02-19 Tom Tromey <tromey@redhat.com>
8103
8104 * target-delegates.c: Rebuild.
8105 * target.c (target_flash_erase): Unconditionally delegate.
8106 * target.h (struct target_ops) <to_flash_erase>: Use
8107 TARGET_DEFAULT_NORETURN.
8108
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (target_get_section_table): Unconditionally delegate.
8113 * target.h (struct target_ops) <to_get_section_table>: Use
8114 TARGET_DEFAULT_RETURN.
8115
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (target_pid_to_str): Unconditionally delegate.
8120 (init_dummy_target): Don't initialize to_pid_to_str.
8121 (default_pid_to_str): Rename from dummy_pid_to_str.
8122 * target.h (struct target_ops) <to_pid_to_str>: Use
8123 TARGET_DEFAULT_FUNC.
8124
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (target_find_new_threads): Unconditionally delegate.
8129 * target.h (struct target_ops) <to_find_new_threads>: Use
8130 TARGET_DEFAULT_RETURN.
8131
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (target_program_signals): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_program_signals>: Use
8137 TARGET_DEFAULT_IGNORE.
8138
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_pass_signals): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_pass_signals>: Use
8144 TARGET_DEFAULT_IGNORE.
8145
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target-delegates.c: Rebuild.
8149 * target.c (default_mourn_inferior): New function.
8150 (target_mourn_inferior): Unconditionally delegate.
8151 * target.h (struct target_ops) <to_mourn_inferior>: Use
8152 TARGET_DEFAULT_FUNC.
8153
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8155
8156 * target-delegates.c: Rebuild.
8157 * target.c (default_follow_fork): New function.
8158 (target_follow_fork): Unconditionally delegate.
8159 * target.h (struct target_ops) <to_follow_fork>: Use
8160 TARGET_DEFAULT_FUNC.
8161
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target-delegates.c: Rebuild.
8165 * target.c (target_kill): Unconditionally delegate.
8166 * target.h (struct target_ops) <to_kill>: Use
8167 TARGET_DEFAULT_NORETURN.
8168
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_masked_watch_num_registers): Unconditionally
8173 delegate.
8174 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8175 Use TARGET_DEFAULT_RETURN.
8176
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_remove_mask_watchpoint): Unconditionally
8181 delegate.
8182 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8183 TARGET_DEFAULT_RETURN.
8184
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_insert_mask_watchpoint): Unconditionally
8189 delegate.
8190 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8191 TARGET_DEFAULT_RETURN.
8192
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target-delegates.c: Rebuild.
8196 * target.c (target_ranged_break_num_registers): Unconditionally
8197 delegate.
8198 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8199 Use TARGET_DEFAULT_RETURN.
8200
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target-delegates.c: Rebuild.
8204 * target.c (target_fetch_registers): Unconditionally delegate.
8205 * target.h (struct target_ops) <to_fetch_registers>: Use
8206 TARGET_DEFAULT_NORETURN.
8207
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_stop.
8213 * target.h (struct target_ops) <to_stop>: Use
8214 TARGET_DEFAULT_IGNORE.
8215
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_can_run_breakpoint_commands.
8221 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8222 Use 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_supports_evaluation_of_breakpoint_conditions.
8229 * target.h (struct target_ops)
8230 <to_supports_evaluation_of_breakpoint_conditions>: Use
8231 TARGET_DEFAULT_RETURN.
8232
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_augmented_libraries_svr4_read.
8238 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8239 Use TARGET_DEFAULT_RETURN.
8240
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_can_use_agent.
8246 * target.h (struct target_ops) <to_can_use_agent>: Use
8247 TARGET_DEFAULT_RETURN.
8248
8249 2014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target-delegates.c: Rebuild.
8252 * target.c (update_current_target): Don't inherit or default
8253 to_use_agent.
8254 * target.h (struct target_ops) <to_use_agent>: Use
8255 TARGET_DEFAULT_NORETURN.
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_traceframe_info.
8262 (return_null): Remove.
8263 * target.h (struct target_ops) <to_traceframe_info>: Use
8264 TARGET_DEFAULT_RETURN.
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_markers_by_strid.
8271 * target.h (struct target_ops)
8272 <to_static_tracepoint_markers_by_strid>: Use
8273 TARGET_DEFAULT_NORETURN.
8274
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (update_current_target): Don't inherit or default
8279 to_static_tracepoint_marker_at.
8280 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8281 Use TARGET_DEFAULT_RETURN.
8282
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8287 to_set_permissions.
8288 * target.h (struct target_ops) <to_set_permissions>: Use
8289 TARGET_DEFAULT_IGNORE.
8290
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8292
8293 * target-delegates.c: Rebuild.
8294 * target.c (update_current_target): Don't inherit or default
8295 to_get_tib_address.
8296 * target.h (struct target_ops) <to_get_tib_address>: Use
8297 TARGET_DEFAULT_NORETURN.
8298
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8300
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_set_trace_notes.
8304 * target.h (struct target_ops) <to_set_trace_notes>: Use
8305 TARGET_DEFAULT_RETURN.
8306
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't initialize
8311 to_set_trace_buffer_size.
8312 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8313 TARGET_DEFAULT_IGNORE.
8314
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_set_circular_trace_buffer.
8320 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8321 TARGET_DEFAULT_IGNORE.
8322
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_set_disconnected_tracing.
8328 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8329 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
8336 (return_minus_one): Remove.
8337 * target.h (struct target_ops)
8338 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8339
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_get_raw_trace_data.
8345 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8346 TARGET_DEFAULT_NORETURN.
8347
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target-delegates.c: Rebuild.
8351 * target.c (update_current_target): Don't inherit or default
8352 to_upload_trace_state_variables.
8353 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8354 Use TARGET_DEFAULT_RETURN.
8355
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target-delegates.c: Rebuild.
8359 * target.c (update_current_target): Don't inherit or default
8360 to_upload_tracepoints.
8361 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8362 TARGET_DEFAULT_RETURN.
8363
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_save_trace_data.
8369 * target.h (struct target_ops) <to_save_trace_data>: Use
8370 TARGET_DEFAULT_NORETURN.
8371
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_get_trace_state_variable_value.
8377 * target.h (struct target_ops)
8378 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8379
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_trace_find.
8385 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8386
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_trace_stop.
8392 * target.h (struct target_ops) <to_trace_stop>: Use
8393 TARGET_DEFAULT_NORETURN.
8394
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_get_tracepoint_status.
8400 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8401 TARGET_DEFAULT_NORETURN.
8402
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_get_trace_status.
8408 * target.h (struct target_ops) <to_get_trace_status>: Use
8409 TARGET_DEFAULT_RETURN.
8410
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_trace_start.
8416 * target.h (struct target_ops) <to_trace_start>: Use
8417 TARGET_DEFAULT_NORETURN.
8418
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_trace_set_readonly_regions.
8424 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8425 Use TARGET_DEFAULT_NORETURN.
8426
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_disable_tracepoint.
8432 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8433 TARGET_DEFAULT_NORETURN.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_enable_tracepoint.
8440 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8441 TARGET_DEFAULT_NORETURN.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_download_trace_state_variable.
8448 * target.h (struct target_ops) <to_download_trace_state_variable>:
8449 Use TARGET_DEFAULT_NORETURN.
8450
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8452
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_can_download_tracepoint.
8456 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8457 TARGET_DEFAULT_RETURN.
8458
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_download_tracepoint.
8464 * target.h (struct target_ops) <to_download_tracepoint>: Use
8465 TARGET_DEFAULT_NORETURN.
8466
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_trace_init.
8472 * target.h (struct target_ops) <to_trace_init>: Use
8473 TARGET_DEFAULT_RETURN.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_supports_string_tracing.
8480 * target.h (struct target_ops) <to_supports_string_tracing>: 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_enable_disable_tracepoint.
8488 * target.h (struct target_ops)
8489 <to_supports_enable_disable_tracepoint>: Use
8490 TARGET_DEFAULT_RETURN.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_supports_multi_process.
8497 * target.h (struct target_ops) <to_supports_multi_process>: Use
8498 TARGET_DEFAULT_RETURN.
8499
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_get_ada_task_ptid.
8505 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8506 TARGET_DEFAULT_FUNC.
8507
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_thread_architecture.
8513 * target.h (struct target_ops) <to_thread_architecture>: Use
8514 TARGET_DEFAULT_FUNC.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_execution_direction.
8521 * target.h (struct target_ops) <to_execution_direction>: Use
8522 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8529 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8530 TARGET_DEFAULT_RETURN.
8531 (target_can_execute_reverse): Unconditionally delegate.
8532
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_goto_bookmark.
8538 (dummy_goto_bookmark): Remove.
8539 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8540 * target.h (struct target_ops) <to_goto_bookmark>: Use
8541 TARGET_DEFAULT_NORETURN.
8542
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8547 to_get_bookmark.
8548 (dummy_get_bookmark): Remove.
8549 (init_dummy_target): Don't inherit or default to_get_bookmark.
8550 * target.h (struct target_ops) <to_get_bookmark>: Use
8551 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
8558 (init_dummy_target): Don't initialize to_make_corefile_notes.
8559 * target.h (struct target_ops) <to_make_corefile_notes>: 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_find_memory_regions.
8567 (init_dummy_target): Don't initialize to_find_memory_regions.
8568 * target.h (struct target_ops) <to_find_memory_regions>: Use
8569 TARGET_DEFAULT_FUNC.
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_log_command.
8576 * target.h (struct target_ops) <to_log_command>: Use
8577 TARGET_DEFAULT_IGNORE.
8578 (target_log_command): Unconditionally delegate.
8579
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_pid_to_exec_file.
8585 * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name.
8593 (target_thread_name): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_thread_name>: Use
8595 TARGET_DEFAULT_RETURN.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_extra_thread_info.
8602 * target.h (struct target_ops) <to_extra_thread_info>: Use
8603 TARGET_DEFAULT_RETURN.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_has_exited.
8610 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8618 (return_one): Remove.
8619 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8620 TARGET_DEFAULT_RETURN.
8621
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8626 to_insert_exec_catchpoint.
8627 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8628 TARGET_DEFAULT_RETURN.
8629
8630 2014-01-08 Tom Tromey <tromey@redhat.com>
8631
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_insert_exec_catchpoint.
8635 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8636 TARGET_DEFAULT_RETURN.
8637
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8639
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_remove_vfork_catchpoint.
8643 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8644 TARGET_DEFAULT_RETURN.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_insert_vfork_catchpoint.
8651 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8652 TARGET_DEFAULT_RETURN.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_remove_fork_catchpoint.
8659 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8660 TARGET_DEFAULT_RETURN.
8661
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_insert_fork_catchpoint.
8667 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8668 TARGET_DEFAULT_RETURN.
8669
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8674 to_post_startup_inferior.
8675 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8676 TARGET_DEFAULT_IGNORE.
8677
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_load.
8683 * target.h (struct target_ops) <to_load>: Use
8684 TARGET_DEFAULT_NORETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_terminal_info.
8691 * target.h (struct target_ops) <to_terminal_info>: Use
8692 TARGET_DEFAULT_FUNC.
8693
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_terminal_save_ours.
8699 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8700 TARGET_DEFAULT_IGNORE.
8701
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_terminal_ours.
8707 * target.h (struct target_ops) <to_terminal_ours>: Use
8708 TARGET_DEFAULT_IGNORE.
8709
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_terminal_ours_for_output.
8715 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8716 TARGET_DEFAULT_IGNORE.
8717
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_terminal_inferior.
8723 * target.h (struct target_ops) <to_terminal_inferior>: Use
8724 TARGET_DEFAULT_IGNORE.
8725
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_terminal_init.
8731 * target.h (struct target_ops) <to_terminal_init>: Use
8732 TARGET_DEFAULT_IGNORE.
8733
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_can_accel_watchpoint_condition.
8739 * target.h (struct target_ops)
8740 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8741
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_region_ok_for_hw_watchpoint.
8747 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8748 Use TARGET_DEFAULT_FUNC.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_watchpoint_addr_within_range.
8755 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8756 Use TARGET_DEFAULT_FUNC.
8757
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_remove_watchpoint.
8763 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8764 TARGET_DEFAULT_NORETURN.
8765
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8770 to_insert_watchpoint.
8771 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8772 TARGET_DEFAULT_RETURN.
8773
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_remove_hw_breakpoint.
8779 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8780 TARGET_DEFAULT_RETURN.
8781
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_insert_hw_breakpoint.
8787 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8788 TARGET_DEFAULT_RETURN.
8789
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_can_use_hw_breakpoint.
8795 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8796 TARGET_DEFAULT_RETURN.
8797
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_files_info.
8803 * target.h (struct target_ops) <to_files_info>: Use
8804 TARGET_DEFAULT_IGNORE.
8805
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_store.
8811 * target.h (struct target_ops) <to_store>: Use
8812 TARGET_DEFAULT_NORETURN.
8813
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_post_attach.
8819 * target.h (struct target_ops) <to_post_attach>: Use
8820 TARGET_DEFAULT_IGNORE.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_rcmd.
8827 (default_rcmd): New function.
8828 (do_monitor_command): Unconditionally delegate.
8829 * target.h (struct target_ops) <to_rmcd>: Use
8830 TARGET_DEFAULT_FUNC.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (init_dummy_target): Don't initialize to_attach.
8836 (target_attach): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_attach>: Use
8838 TARGET_DEFAULT_FUNC.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_detach): Unconditionally delegate.
8844 (init_dummy_target): Don't initialize to_detach.
8845 * target.h (struct target_ops) <to_detach>: Use
8846 TARGET_DEFAULT_IGNORE.
8847
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8851 Add argument.
8852 (target_augmented_libraries_svr4_read): Add argument.
8853 * target.c (update_current_target): Update.
8854 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8855 argument.
8856
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_call_history_range>: Add
8860 argument.
8861 * target.c (target_call_history_range): Add argument.
8862 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8863 argument.
8864 (record_btrace_call_history_from): Update.
8865
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target.h (struct target_ops) <to_call_history_from>: Add
8869 argument.
8870 * target.c (target_call_history_from): Add argument.
8871 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8872 argument.
8873
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target.h (struct target_ops) <to_call_history>: Add argument.
8877 * target.c (target_call_history): Add argument.
8878 * record-btrace.c (record_btrace_call_history): Add 'self'
8879 argument.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target.h (struct target_ops) <to_insn_history_range>: Add
8884 argument.
8885 * target.c (target_insn_history_range): Add argument.
8886 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8887 argument.
8888 (record_btrace_insn_history_from): Update.
8889
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target.h (struct target_ops) <to_insn_history_from>: Add
8893 argument.
8894 * target.c (target_insn_history_from): Add argument.
8895 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8896 argument.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target.h (struct target_ops) <to_insn_history>: Add argument.
8901 * target.c (target_insn_history): Add argument.
8902 * record-btrace.c (record_btrace_insn_history): Add 'self'
8903 argument.
8904
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8906
8907 * target.h (struct target_ops) <to_goto_record>: Add argument.
8908 * target.c (target_goto_record): Add argument.
8909 * record-full.c (record_full_goto): Add 'self' argument.
8910 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8911
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8915 * target.c (target_goto_record_end): Add argument.
8916 * record-full.c (record_full_goto_end): Add 'self' argument.
8917 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8918
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target.h (struct target_ops) <to_goto_record_begin>: Add
8922 argument.
8923 * target.c (target_goto_record_begin): Add argument.
8924 * record-full.c (record_full_goto_begin): Add 'self' argument.
8925 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8926 argument.
8927
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target.h (struct target_ops) <to_record_is_replaying>: Add
8931 argument.
8932 * target.c (target_record_is_replaying): Add argument.
8933 * record-full.c (record_full_is_replaying): Add 'self' argument.
8934 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8935 argument.
8936 (record_btrace_xfer_partial, record_btrace_store_registers)
8937 (record_btrace_prepare_to_store, record_btrace_resume)
8938 (record_btrace_wait, record_btrace_decr_pc_after_break)
8939 (record_btrace_find_new_threads, record_btrace_thread_alive):
8940 Update.
8941
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_delete_record>: Add argument.
8945 * target.c (target_delete_record): Add argument.
8946 * record-full.c (record_full_delete): Add 'self' argument.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_save_record>: Add argument.
8951 * target.c (target_save_record): Add argument.
8952 * record-full.c (record_full_save): Add 'self' argument.
8953 (record_full_save): Add 'self' argument.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target.h (struct target_ops) <to_info_record>: Add argument.
8958 * target.c (target_info_record): Add argument.
8959 * record.c (info_record_command): Add argument.
8960 * record-full.c (record_full_info): Add 'self' argument.
8961 * record-btrace.c (record_btrace_info): Add 'self' argument.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8966 * target.c (target_stop_recording): Add argument.
8967 * record.c (record_stop): Add argument.
8968 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8969 argument.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8974 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8975 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8976 argument.
8977 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8978 (_initialize_amd64_linux_nat): Use it.
8979 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8980 (_initialize_i386_linux_nat): Use it.
8981
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8985 * target.c (target_teardown_btrace): Add argument.
8986 * remote.c (remote_teardown_btrace): Add 'self' argument.
8987 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8988 argument.
8989 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8990 argument.
8991
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8995 * target.c (target_disable_btrace): Add argument.
8996 * remote.c (remote_disable_btrace): Add 'self' argument.
8997 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8998 argument.
8999 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9000 argument.
9001
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9005 * target.c (target_enable_btrace): Add argument.
9006 * remote.c (remote_enable_btrace): Add 'self' argument.
9007 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9008 argument.
9009 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9010 argument.
9011
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9015 (target_can_use_agent): Add argument.
9016 * target.c (update_current_target): Update.
9017 * remote.c (remote_can_use_agent): Add 'self' argument.
9018 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target.h (struct target_ops) <to_use_agent>: Add argument.
9023 (target_use_agent): Add argument.
9024 * target.c (update_current_target): Update.
9025 * remote.c (remote_use_agent): Add 'self' argument.
9026 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9031 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9032 (target_traceframe_info): Add argument.
9033 * target.c (update_current_target): Update.
9034 * remote.c (remote_traceframe_info): Add 'self' argument.
9035 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9036
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target.h (target_static_tracepoint_markers_by_strid): Add
9040 argument.
9041 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9042 'self' argument.
9043 * target.c (update_current_target): Update.
9044 * remote.c (struct target_ops)
9045 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9046 * linux-nat.c (struct target_ops)
9047 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9052 Add argument.
9053 (target_static_tracepoint_marker_at): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9056 argument.
9057
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9061 (target_set_permissions): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_set_permissions): Add 'self' argument.
9064 (remote_start_remote): Update.
9065
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9069 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9070 (target_get_tib_address): Add argument.
9071 * target.c (update_current_target): Update.
9072 * remote.c (remote_get_tib_address): Add 'self' argument.
9073
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9077 (target_set_trace_notes): Add argument.
9078 * target.c (update_current_target): Update.
9079 * remote.c (remote_set_trace_notes): Add 'self' argument.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9084 argument.
9085 (target_set_trace_buffer_size): Add argument.
9086 * target.c (update_current_target): Update.
9087 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9088
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9092 argument.
9093 (target_set_circular_trace_buffer): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9096 argument.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9101 argument.
9102 (target_set_disconnected_tracing): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9105
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target.h (struct target_ops)
9109 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9110 (target_get_min_fast_tracepoint_insn_len): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9113 argument.
9114
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9118 argument.
9119 (target_get_raw_trace_data): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9126 Add argument.
9127 (target_upload_trace_state_variables): Add argument.
9128 * target.c (update_current_target): Update.
9129 * remote.c (remote_upload_trace_state_variables): Add 'self'
9130 argument.
9131 (remote_start_remote): Update.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9136 argument.
9137 (target_upload_tracepoints): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9140 (remote_start_remote): Update.
9141
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9145 (target_save_trace_data): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_save_trace_data): Add 'self' argument.
9148
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9152 argument.
9153 * target.h (struct target_ops)
9154 <to_get_trace_state_variable_value>: Add argument.
9155 (target_get_trace_state_variable_value): Add argument.
9156 * target.c (update_current_target): Update.
9157 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9158 argument.
9159 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9164 * target.h (struct target_ops) <to_trace_find>: Add argument.
9165 (target_trace_find): Add argument.
9166 * target.c (update_current_target): Update.
9167 * remote.c (remote_trace_find): Add 'self' argument.
9168 * ctf.c (ctf_trace_find): Add 'self' argument.
9169
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9173 (target_trace_stop): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_trace_stop): Add 'self' argument.
9176
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9180 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9181 argument.
9182 (target_get_tracepoint_status): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9185
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9189 * target.h (struct target_ops) <to_get_trace_status>: Add
9190 argument.
9191 (target_get_trace_status): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_get_trace_status): Add 'self' argument.
9194 (remote_start_remote, remote_can_download_tracepoint): Update.
9195 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target.h (struct target_ops) <to_trace_start>: Add argument.
9200 (target_trace_start): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_trace_start): Add 'self' argument.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9207 Add argument.
9208 (target_trace_set_readonly_regions): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9211 argument.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9216 argument.
9217 (target_disable_tracepoint): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9224 argument.
9225 (target_enable_tracepoint): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_download_trace_state_variable>:
9232 Add argument.
9233 (target_download_trace_state_variable): Add argument.
9234 * target.c (update_current_target): Update.
9235 * remote.c (remote_download_trace_state_variable): Add 'self'
9236 argument.
9237
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9241 argument.
9242 (target_can_download_tracepoint): Add argument.
9243 * target.c (update_current_target): Update.
9244 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9245
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target.h (struct target_ops) <to_download_tracepoint>: Add
9249 argument.
9250 (target_download_tracepoint): Add argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (remote_download_tracepoint): Add 'self' argument.
9253
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_trace_init>: Add argument.
9257 (target_trace_init): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_trace_init): Add 'self' argument.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9264 * target.c (target_fileio_readlink): Add argument.
9265 * remote.c (remote_hostio_readlink): Add 'self' argument.
9266 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9267
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9271 * target.c (target_fileio_unlink): Add argument.
9272 * remote.c (remote_hostio_unlink): Add 'self' argument.
9273 (remote_file_delete): Update.
9274 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9279 * target.c (target_fileio_close): Add argument.
9280 * remote.c (remote_hostio_close): Add 'self' argument.
9281 (remote_hostio_close_cleanup): Update.
9282 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9283 Update.
9284 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9289 * target.c (target_fileio_pread): Add argument.
9290 * remote.c (remote_hostio_pread): Add 'self' argument.
9291 (remote_bfd_iovec_pread, remote_file_get): Update.
9292 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9293
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9297 * target.c (target_fileio_pwrite): Add argument.
9298 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9299 (remote_file_put): Update.
9300 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9305 * target.c (target_fileio_open): Add argument.
9306 * remote.c (remote_hostio_open): Add 'self' argument.
9307 (remote_bfd_iovec_open): Add 'self' argument.
9308 (remote_file_put): Add 'self' argument.
9309 (remote_file_get): Add 'self' argument.
9310 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9315 Add argument.
9316 (target_can_run_breakpoint_commands): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9319 argument.
9320 (remote_insert_breakpoint): Add 'self' argument.
9321 (remote_insert_hw_breakpoint): Add 'self' argument.
9322 (remote_can_run_breakpoint_commands): Add 'self' argument.
9323
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target.h (struct target_ops)
9327 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9328 (target_supports_evaluation_of_breakpoint_conditions): Add
9329 argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9332 argument.
9333 (remote_insert_breakpoint): Add 'self' argument.
9334 (remote_insert_hw_breakpoint): Add 'self' argument.
9335 (remote_supports_cond_breakpoints): Add 'self' argument.
9336
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9340 argument.
9341 (target_supports_string_tracing): Add argument.
9342 * target.c (update_current_target): Update.
9343 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9344
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target.h (struct target_ops)
9348 <to_supports_disable_randomization>: Add argument.
9349 * target.c (find_default_supports_disable_randomization): Add
9350 argument.
9351 (target_supports_disable_randomization): Add argument.
9352 (find_default_supports_disable_randomization): Add 'self'
9353 argument.
9354 * remote.c (extended_remote_supports_disable_randomization): Add
9355 'self' argument.
9356 (remote_supports_disable_randomization): Add 'self' argument.
9357 (extended_remote_create_inferior): Update.
9358 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9359 'self' argument.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops)
9364 <to_supports_enable_disable_tracepoint>: Add argument.
9365 (target_supports_enable_disable_tracepoint): Add argument.
9366 * target.c (update_current_target): Update.
9367 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9368 argument.
9369
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_supports_multi_process>: Add
9373 argument.
9374 (target_supports_multi_process): Add argument.
9375 * target.c (update_current_target): Update.
9376 * remote.c (remote_supports_multi_process): Add 'self' argument.
9377 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9378 argument.
9379 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9380 argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_execution_direction>: Add
9385 argument.
9386 (target_execution_direction): Add argument.
9387 * target.c (default_execution_direction): Add 'self' argument.
9388 * record-full.c (record_full_execution_direction): Add 'self'
9389 argument.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9394 argument.
9395 (target_can_execute_reverse): Add argument.
9396 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9397 * record-full.c (record_full_can_execute_reverse): Add 'self'
9398 argument.
9399 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9400 argument.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9405 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9406 argument.
9407 (target_get_ada_task_ptid): Add argument.
9408 * target.c (update_current_target): Update.
9409 (default_get_ada_task_ptid): Add 'self' argument.
9410 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9411 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9412 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9413 argument.
9414 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9415 argument.
9416 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9417 argument.
9418 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9419 argument.
9420 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9421 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9422 argument.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9427 (target_goto_bookmark): Add argument.
9428 * target.c (dummy_goto_bookmark): Add 'self' argument.
9429 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9434 (target_get_bookmark): Add argument.
9435 * target.c (dummy_get_bookmark): Add 'self' argument.
9436 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9437
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9441 argument.
9442 (target_make_corefile_notes): Add argument.
9443 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9444 * procfs.c (procfs_make_note_section): Add 'self' argument.
9445 (procfs_make_note_section): Add 'self' argument.
9446 (procfs_make_note_section): Add 'self' argument.
9447 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9448 argument.
9449 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9450 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9451 * exec.c (exec_make_note_section): Add 'self' argument.
9452 (exec_make_note_section): Add 'self' argument.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_find_memory_regions>: Add
9457 argument.
9458 (target_find_memory_regions): Add argument.
9459 * target.c (dummy_find_memory_regions): Add 'self' argument.
9460 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9461 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9462 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9463 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9464 * exec. (exec_do_find_memory_regions): New global.
9465 (exec_set_find_memory_regions): Rewrite.
9466 (exec_find_memory_regions): New function.
9467 (init_exec_ops): Use exec_find_memory_regions.
9468
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9470
9471 * target.h (struct target_ops) <to_supports_non_stop>: Add
9472 argument.
9473 * target.c (find_default_supports_non_stop): Add argument.
9474 (target_supports_non_stop): Add argument.
9475 (find_default_supports_non_stop): Add 'self' argument.
9476 * remote.c (remote_supports_non_stop): Add 'self' argument.
9477 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target.h (struct target_ops) <to_log_command>: Add argument.
9482 (target_log_command): Add argument.
9483 * serial.h (serial_log_command): Add 'self' argument.
9484 * serial.c (serial_log_command): Add 'self' argument.
9485
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9489 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9490 argument.
9491 (target_pid_to_exec_file): Add argument.
9492 * target.c (debug_to_pid_to_exec_file): Add argument.
9493 (update_current_target): Update.
9494 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9495 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9496 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9497 (linux_handle_extended_wait): Update.
9498 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9499 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9500 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9501 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target.h (struct target_ops) <to_rcmd>: Add argument.
9506 (target_rcmd): Add argument.
9507 * target.c (debug_to_rcmd): Add argument.
9508 (update_current_target, do_monitor_command): Update.
9509 * remote.c (remote_rcmd): Add 'self' argument.
9510 * monitor.c (monitor_rcmd): Add 'self' argument.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * windows-nat.c (windows_stop): Add 'self' argument.
9515 * target.h (struct target_ops) <to_stop>: Add argument.
9516 * target.c (target_stop): Add argument.
9517 (debug_to_stop): Add argument.
9518 (update_current_target): Update.
9519 * remote.c (remote_stop): Add 'self' argument.
9520 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9521 (gdbsim_cntrl_c): Update.
9522 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9523 * procfs.c (procfs_stop): Add 'self' argument.
9524 * nto-procfs.c (procfs_stop): Add 'self' argument.
9525 * monitor.c (monitor_stop): Add 'self' argument.
9526 (monitor_open): Update.
9527 * linux-nat.c (linux_nat_stop): Add argument.
9528 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9529 * gnu-nat.c (gnu_stop): Add 'self' argument.
9530 * darwin-nat.c (darwin_stop): Add 'self' argument.
9531
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9533
9534 * target.h (struct target_ops) <to_thread_name>: Add argument.
9535 * target.c (target_thread_name): Add argument.
9536 (update_current_target): Update.
9537 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9538
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target.h (struct target_ops) <to_extra_thread_info>: Add
9542 argument.
9543 (target_extra_thread_info): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_threads_extra_info): Add 'self' argument.
9546 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9547 argument.
9548 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9549 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9550 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9551 argument.
9552 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9553 argument.
9554 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9555 argument.
9556 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9557 argument.
9558
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops) <to_program_signals>: Add argument.
9562 * target.c (target_program_signals): Add argument.
9563 * remote.c (remote_program_signals): Add 'self' argument.
9564
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9568 * target.c (target_pass_signals): Add argument.
9569 * remote.c (remote_pass_signals): Add 'self' argument.
9570 (remote_start_remote): Update.
9571 * procfs.c (procfs_pass_signals): Add 'self' argument.
9572 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9573 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9574 (linux_nat_create_inferior, linux_nat_attach): Update.
9575
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * windows-nat.c (windows_can_run): Add 'self' argument.
9579 * target.h (struct target_ops) <to_can_run>: Add argument.
9580 (target_can_run): Add argument.
9581 * target.c (debug_to_can_run): Add argument.
9582 (update_current_target): Update.
9583 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9584 * inf-child.c (inf_child_can_run): Add 'self' argument.
9585 * go32-nat.c (go32_can_run): Add 'self' argument.
9586
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_has_exited>: Add argument.
9590 (target_has_exited): Add argument.
9591 * target.c (debug_to_has_exited): Add argument.
9592 (update_current_target): Update.
9593
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9597 argument.
9598 (target_set_syscall_catchpoint): Add argument.
9599 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9600 argument.
9601 * target.c (update_current_target): Update.
9602
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9606 argument.
9607 (target_remove_exec_catchpoint): Add argument.
9608 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9609 (update_current_target): Update.
9610 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9611 argument.
9612
9613 2014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9616 argument.
9617 (target_insert_exec_catchpoint): Add argument.
9618 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9619 (update_current_target): Update.
9620 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9621 argument.
9622
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9626 argument.
9627 (target_remove_vfork_catchpoint): Add argument.
9628 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9629 (update_current_target): Update.
9630 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9631 argument.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9636 argument.
9637 (target_insert_vfork_catchpoint): Add argument.
9638 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9639 (update_current_target): Update.
9640 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9641 argument.
9642
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9646 argument.
9647 (target_remove_fork_catchpoint): Add argument.
9648 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9649 (update_current_target): Update.
9650 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9651 argument.
9652
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9656 argument.
9657 (target_insert_fork_catchpoint): Add argument.
9658 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9659 (update_current_target): Update.
9660 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9661 argument.
9662
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9666 argument.
9667 (target_post_startup_inferior): Add argument.
9668 * target.c (debug_to_post_startup_inferior): Add argument.
9669 (update_current_target): Update.
9670 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9671 argument.
9672 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9673 argument.
9674 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9675 argument.
9676 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9677 argument.
9678 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9679 'self' argument.
9680 (super_post_startup_inferior): Likewise.
9681 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9682 'self' argument.
9683 (super_post_startup_inferior): Likewise.
9684 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9685 Add 'self' argument.
9686 (super_post_startup_inferior): Likewise.
9687
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target.h (struct target_ops) <to_load>: Add argument.
9691 * target.c (target_load): Add argument.
9692 (debug_to_load): Add argument.
9693 (update_current_target): Update.
9694 * remote.c (remote_load): Add 'self' argument.
9695 * remote-sim.c (gdbsim_load): Add 'self' argument.
9696 * remote-mips.c (mips_load): Add 'self' argument.
9697 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9698 * monitor.c (monitor_load): Add 'self' argument.
9699 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9700
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9704 (target_terminal_info): Add argument.
9705 * target.c (debug_to_terminal_info): Add argument.
9706 (default_terminal_info): Likewise.
9707 * inflow.c (child_terminal_info): Add 'self' argument.
9708 * inferior.h (child_terminal_info): Add 'self' argument.
9709 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9710
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9714 argument.
9715 (target_terminal_save_ours): Add argument.
9716 * target.c (debug_to_terminal_save_ours): Add argument.
9717 (update_current_target): Update.
9718 * inflow.c (terminal_save_ours): Add 'self' argument.
9719 * inferior.h (terminal_save_ours): Add 'self' argument.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9724 (target_terminal_ours): Add argument.
9725 * target.c (debug_to_terminal_ours): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_terminal_ours): Add 'self' argument.
9728 (remote_close): Update.
9729 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9730 * inflow.c (terminal_ours): Add 'self' argument.
9731 * inferior.h (terminal_ours): Add 'self' argument.
9732 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9733
9734 2014-02-19 Pedro Alves <palves@redhat.com>
9735 Tom Tromey <tromey@redhat.com>
9736
9737 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9738 argument.
9739 (target_terminal_ours_for_output): Add argument.
9740 * target.c (debug_to_terminal_ours_for_output): Add argument.
9741 (update_current_target): Update.
9742 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9743 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9744 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9745
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target.h (struct target_ops) <to_terminal_inferior>: Add
9749 argument.
9750 * target.c (target_terminal_inferior): Add argument.
9751 (update_current_target): Update.
9752 * remote.c (remote_terminal_inferior): Add 'self' argument.
9753 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9754 * inflow.c (terminal_inferior): Add 'self' argument.
9755 * inferior.h (terminal_inferior): Add 'self' argument.
9756 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9757 (go32_terminal_inferior): Add 'self' argument.
9758
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9762 (target_terminal_init): Add argument.
9763 * target.c (debug_to_terminal_init): Add argument.
9764 (update_current_target): Update.
9765 * inflow.c (terminal_init_inferior): Add 'self' argument.
9766 * inferior.h (terminal_init_inferior): Add 'self' argument.
9767 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9768 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9769
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target.h (struct target_ops)
9773 <to_can_accel_watchpoint_condition>: Add argument.
9774 (target_can_accel_watchpoint_condition): Add argument.
9775 * target.c (debug_to_can_accel_watchpoint_condition): Add
9776 argument.
9777 (update_current_target): Update.
9778 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9779 'self' argument.
9780
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9782
9783 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9784 Add argument.
9785 (target_region_ok_for_hw_watchpoint): Add argument.
9786 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9787 (default_region_ok_for_hw_watchpoint): Add argument.
9788 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9789 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9790 argument.
9791 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9792 argument.
9793 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9794 argument.
9795 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9796 'self' argument.
9797 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9798 'self' argument.
9799 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9800 'self' argument.
9801 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9802 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9803 'self' argument.
9804 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9805 Add 'self' argument.
9806
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9810 argument.
9811 (target_insert_watchpoint): Add argument.
9812 * target.c (debug_to_insert_watchpoint): Add argument.
9813 (update_current_target): Update.
9814 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9815 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9816 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9817 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9818 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9819 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9820 argument.
9821 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9822 (procfs_insert_hw_watchpoint): Add 'self' argument.
9823 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9824 argument.
9825 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9826 argument.
9827 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9828 argument.
9829 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9830 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9831 argument.
9832 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9833 'self' argument.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9838 argument.
9839 (target_remove_watchpoint): Add argument.
9840 * target.c (debug_to_remove_watchpoint): Add argument.
9841 (update_current_target): Update.
9842 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9843 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9844 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9845 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9846 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9847 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9848 argument.
9849 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9850 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9851 argument.
9852 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9853 argument.
9854 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9855 argument.
9856 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9857 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9858 argument.
9859 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9860 'self' argument.
9861
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9865 argument.
9866 (target_remove_hw_breakpoint): Add argument.
9867 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9868 (update_current_target): Update.
9869 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9870 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9871 argument.
9872 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9873 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9874 argument.
9875 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9876 'self' argument.
9877
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9881 argument.
9882 (target_insert_hw_breakpoint): Add argument.
9883 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9884 (update_current_target): Update.
9885 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9886 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9887 argument.
9888 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9889 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9890 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9891 argument.
9892 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9893 'self' argument.
9894
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9898 argument.
9899 (target_can_use_hardware_watchpoint): Add argument.
9900 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9901 (update_current_target): Update.
9902 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9903 argument.
9904 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9905 argument.
9906 * remote.c (remote_check_watch_resources): Add 'self' argument.
9907 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9908 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9909 argument.
9910 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9911 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9912 argument.
9913 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9914 argument.
9915 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9916 argument.
9917 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9918 argument.
9919 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9920 argument.
9921 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9922 argument.
9923 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9924 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9925 argument.
9926 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9927 'self' argument.
9928
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9930
9931 * target.h (struct target_ops) <to_post_attach>: Add argument.
9932 (target_post_attach): Add argument.
9933 * target.c (debug_to_post_attach): Add argument.
9934 (update_current_target): Update.
9935 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9936 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9937 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9938 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9939 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * windows-nat.c (windows_close): Add 'self' argument.
9944 * tracepoint.c (tfile_close): Add 'self' argument.
9945 * target.h (struct target_ops) <to_close>: Add argument.
9946 * target.c (target_close): Add argument.
9947 (update_current_target): Update.
9948 * remote.c (remote_close): Add 'self' argument.
9949 * remote-sim.c (gdbsim_close): Add 'self' argument.
9950 * remote-mips.c (mips_close): Add 'self' argument.
9951 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9952 * record-full.c (record_full_close): Add 'self' argument.
9953 * record-btrace.c (record_btrace_close): Add 'self' argument.
9954 * monitor.h (monitor_close): Add 'self' argument.
9955 * monitor.c (monitor_close): Add 'self' argument.
9956 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9957 * linux-nat.c (linux_nat_close): Add argument.
9958 * go32-nat.c (go32_close): Add 'self' argument.
9959 * exec.c (exec_close_1): Add 'self' argument.
9960 * ctf.c (ctf_close): Add 'self' argument.
9961 * corelow.c (core_close): Add 'self' argument.
9962 (core_close_cleanup): Update.
9963 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9964 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * remote.c (remote_load): New function.
9969 (init_remote_ops): Use it.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9974 argument.
9975 * common/linux-btrace.h (linux_supports_btrace): Update.
9976 * remote.c (remote_supports_btrace): Add "self" argument.
9977 * target-delegates.c: Rebuild.
9978 * target.c (target_supports_btrace): Remove.
9979 * target.h (struct target_ops) <to_supports_btrace>: Add
9980 target_ops argument.
9981 (target_supports_btrace): New define.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * record-full.c (record_full_beneath_to_resume_ops)
9986 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9987 (record_full_beneath_to_wait)
9988 (record_full_beneath_to_store_registers_ops)
9989 (record_full_beneath_to_store_registers)
9990 (record_full_beneath_to_xfer_partial_ops)
9991 (record_full_beneath_to_xfer_partial)
9992 (record_full_beneath_to_insert_breakpoint_ops)
9993 (record_full_beneath_to_insert_breakpoint)
9994 (record_full_beneath_to_remove_breakpoint_ops)
9995 (record_full_beneath_to_remove_breakpoint)
9996 (record_full_beneath_to_stopped_by_watchpoint)
9997 (record_full_beneath_to_stopped_data_address)
9998 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9999 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10000 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10001 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10002 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10003 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10004 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10005 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10006 (record_full_resume, record_full_wait_1)
10007 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10008 (record_full_store_registers, record_full_xfer_partial)
10009 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10010 (record_full_async, record_full_core_xfer_partial): Use target
10011 delegation.
10012 * target-delegates.c: Rebuild.
10013 * target.c (current_xfer_partial): Remove.
10014 (update_current_target): Do not INHERIT or de_fault
10015 to_insert_breakpoint, to_remove_breakpoint,
10016 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10017 to_is_async_p, to_async. Do not set to_xfer_partial field.
10018 (default_xfer_partial): Simplify.
10019 (current_xfer_partial): Remove.
10020 (target_wait, target_resume): Simplify.
10021 (find_default_can_async_p, find_default_is_async_p): Update.
10022 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10023 to_xfer_partial, to_stopped_by_watchpoint,
10024 to_stopped_data_address.
10025 (target_store_registers): Simplify.
10026 (forward_target_remove_breakpoint)
10027 (forward_target_insert_breakpoint): Remove.
10028 (target_remove_breakpoint, target_insert_breakpoint)
10029 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10030 * target.h (struct target_ops) <to_resume, to_wait,
10031 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10032 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10033 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10034 markup.
10035 (forward_target_remove_breakpoint)
10036 (forward_target_insert_breakpoint): Remove.
10037 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10038 directly.
10039 (record_btrace_insert_breakpoint): Delegate directly.
10040
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 PR build/7701:
10044 * target-delegates.c: New file.
10045 * target.c: Include target-delegates.c.
10046 (init_dummy_target): Call install_dummy_methods.
10047 (complete_target_initialization): Call install_delegators.
10048 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10049 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10050 * make-target-delegates: New file.
10051
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * record.c (find_record_target): Use find_target_at.
10055 * target.c (find_target_at): New function.
10056 * target.h (find_target_at): Declare.
10057
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10061 Add 'ops' argument.
10062 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10063 'ops' argument.
10064 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10065 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10066 'ops' argument.
10067 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10068 argument.
10069 * linux-nat.c (save_sigtrap): Update.
10070 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10071 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10072 (linux_nat_close): Update.
10073 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10074 argument.
10075 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10076 argument.
10077 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10078 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10079 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10080 (tmp_to_async): Add 'ops' argument.
10081 (record_full_stopped_by_watchpoint, record_full_async)
10082 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10083 argument.
10084 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10085 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10086 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10087 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10088 (remote_is_async_p, remote_async): Add 'ops' argument.
10089 (remote_stopped_data_address): Update.
10090 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10091 * target.c (update_current_target)
10092 (find_default_can_async_p, find_default_is_async_p): Update.
10093 (init_dummy_target): Update.
10094 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10095 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10096 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10097 (target_can_async_p, target_is_async_p, target_async)
10098 (target_stopped_by_watchpoint): Update.
10099
10100 2014-02-19 Yao Qi <yao@codesourcery.com>
10101
10102 PR gdb/16220
10103 * gdbarch.sh: Remove startup_gdbarch.
10104 * gdbarch.c: Regenerated.
10105 * gdbarch.h: Likewise.
10106
10107 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10108
10109 * rl78-tdep.c (rl78_g10_register_name): New function.
10110 (rl78_return_value): Add g10 support.
10111 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10112 g10.
10113
10114 2014-02-17 Doug Evans <xdje42@gmail.com>
10115
10116 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10117 (SUBDIR_GUILE_SRCS): Ditto.
10118 (scm-gsmob.o): Ditto.
10119
10120 2014-02-17 Yao Qi <yao@codesourcery.com>
10121
10122 * gnu-nat.c (ILL_RPC): Declare defined function.
10123
10124 2014-02-17 Yao Qi <yao@codesourcery.com>
10125
10126 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10127 mach_msg_type_number_t.
10128 (gnu_write_inferior): Likewise.
10129
10130 2014-02-17 Yao Qi <yao@codesourcery.com>
10131
10132 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10133 in format string.
10134 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10135 (inf_validate_procs, inf_signal): Likewise.
10136 (S_exception_raise_request): Likewise.
10137 (do_mach_notify_dead_name): Likewise.
10138 (steal_exc_port): Likewise.
10139 (gnu_read_inferior): Change 'copy_count''s type to
10140 mach_msg_type_number_t.
10141 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10142 format string.
10143
10144 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10145
10146 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10147 flag. Adjust all users; in particular...
10148 (gnu_wait): ..., don't decrement its value in here...
10149 (gnu_create_inferior): ..., and instead set the flag in here,
10150 around the startup_inferior call, and call that one with
10151 START_INFERIOR_TRAPS_EXPECTED.
10152
10153 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10154 (ILL_RPC): ... new macro.
10155 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10156 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10157 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10158 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10159 functions with ILL_RPC macro.
10160 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10161 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10162 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10163 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10164 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10165 (S_proc_getlogin_reply, S_proc_getsid_reply)
10166 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10167 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10168 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10169 (S_proc_getnports_reply, S_proc_is_important_reply)
10170 (S_proc_get_code_reply): New stub functions, generated with
10171 ILL_RPC macro.
10172
10173 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10174 collected the type check structures.
10175
10176 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10177
10178 2014-02-14 Doug Evans <dje@google.com>
10179
10180 * target.c (target_write_partial): Fix result type.
10181
10182 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10183
10184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10185 the proper offsets to access fpregset_t.
10186
10187 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10188
10189 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10190 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10191 * h8300-tdep.c (setmachinelist): Remove global.
10192 * hppa-tdep.c (hppa_sigtramp): Remove global.
10193 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10194 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10195 * ravenscar-thread.c (update_target_observer): Remove global.
10196 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10197
10198 2014-02-12 Tom Tromey <tromey@redhat.com>
10199
10200 * common/rsp-low.c: Update comments.
10201 * common/rsp-low.h: Update comments.
10202
10203 2014-02-12 Tom Tromey <tromey@redhat.com>
10204
10205 * common/rsp-low.c (convert_ascii_to_int): Remove.
10206 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10207
10208 2014-02-12 Tom Tromey <tromey@redhat.com>
10209
10210 * common/rsp-low.h (unhexify): Don't declare.
10211 * common/rsp-low.c (unhexify): Remove.
10212
10213 2014-02-12 Tom Tromey <tromey@redhat.com>
10214
10215 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10216 * common/rsp-low.c (convert_int_to_ascii): Remove.
10217
10218 2014-02-12 Tom Tromey <tromey@redhat.com>
10219
10220 * common/rsp-low.h (hexify): Don't declare.
10221 * common/rsp-low.c (hexify): Remove.
10222
10223 2014-02-12 Tom Tromey <tromey@redhat.com>
10224
10225 * common/rsp-low.c (hexify): Never take strlen of argument.
10226
10227 2014-02-12 Tom Tromey <tromey@redhat.com>
10228
10229 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10230 * remote.c (extended_remote_run, remote_rcmd)
10231 (remote_download_trace_state_variable, remote_save_trace_data)
10232 (remote_set_trace_notes): Update.
10233 * tracepoint.c (encode_source_string, tfile_write_status)
10234 (tfile_write_uploaded_tsv): Update.
10235
10236 2014-02-12 Tom Tromey <tromey@redhat.com>
10237
10238 * tracepoint.c: Include rsp-low.h.
10239 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10240 * remote.c: Include rsp-low.h.
10241 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10242 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10243 (remote_unescape_input): Move to common/rsp-low.c.
10244 * common/rsp-low.h: New file.
10245 * common/rsp-low.c: New file.
10246 * Makefile.in (SFILES): Add common/rsp-low.c.
10247 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10248 (COMMON_OBS): Add rsp-low.o.
10249 (rsp-low.o): New target.
10250
10251 2014-02-12 Tom Tromey <tromey@redhat.com>
10252
10253 * utils.h: Include print-utils.h.
10254 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10255 (int_string, core_addr_to_string, core_addr_to_string_nz)
10256 (hex_string, hex_string_custom): Don't declare.
10257 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10258 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10259 (hex_string_custom, int_string, core_addr_to_string)
10260 (core_addr_to_string_nz, host_address_to_string): Move to
10261 common/print-utils.c.
10262 * common/print-utils.h: New file.
10263 * common/print-utils.c: New file
10264 * Makefile.in (SFILES): Add common/print-utils.c.
10265 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10266 (COMMON_OBS): Add print-utils.o.
10267 (print-utils.o): New target.
10268
10269 2014-02-12 Tom Tromey <tromey@redhat.com>
10270
10271 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10272
10273 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10274
10275 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10276
10277 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10278
10279 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10280 if a PT_IO ptrace request returns sucessfully but indicates that 0
10281 bytes were transferred.
10282
10283 2014-02-12 Pedro Alves <palves@redhat.com>
10284 Kevin Buettner <kevinb@redhat.com>
10285
10286 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10287 TYPE_INSTANCE_FLAG_CODE_SPACE.
10288
10289 2014-02-12 Pedro Alves <palves@redhat.com>
10290
10291 * h8300-tdep.c (pseudo_from_raw_register)
10292 (raw_from_pseudo_register): New functions.
10293 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10294 them.
10295
10296 2014-02-12 Pedro Alves <palves@redhat.com>
10297
10298 * h8300-tdep.c (h8300_register_sim_regno): New function.
10299 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10300 gdbarch_register_sim_regno hook.
10301
10302 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10303
10304 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10305
10306 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10307
10308 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10309
10310 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10311
10312 * obsd-tdep.h (obsd_init_abi): New prototype.
10313 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10314 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10315 (obsd_init_abi): New functions.
10316 * i386obsd-tdep.c: Include "obsd-tdep.h".
10317 (i386obsd_init_abi): Call obsd_init_abi.
10318 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10319 (amd64obsd_init_abi): Call obsd_init_abi.
10320 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10321 obsd-tdep.c to gdb_target_obs.
10322
10323 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10324
10325 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10326 double float arguments to 16-byte in the argument slots.
10327
10328 2014-02-11 Doug Evans <xdje42@gmail.com>
10329
10330 * configure.ac: Don't crash if pkg-config is not found and guile
10331 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10332 in guile checks.
10333 * configure: Regenerate.
10334
10335 2014-02-11 Yao Qi <yao@codesourcery.com>
10336
10337 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10338 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10339 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10340 * gnu-nat.c (gnu_xfer_memory): Likewise.
10341 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10342 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10343 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10344 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10345
10346 2014-02-11 Yao Qi <yao@codesourcery.com>
10347
10348 * target.h (enum target_xfer_error): Rename to ...
10349 (enum target_xfer_status): ... it. New. All users updated.
10350 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10351 New.
10352 (TARGET_XFER_STATUS_ERROR_P): New macro.
10353 (target_xfer_error_to_string): Remove declaration.
10354 (target_xfer_status_to_string): Declare.
10355 (target_xfer_partial_ftype): Adjust it.
10356 (struct target_ops) <to_xfer_partial>: Return
10357 target_xfer_status. Add argument xfered_len. Update
10358 comments.
10359 * target.c (target_xfer_error_to_string): Rename to ...
10360 (target_xfer_status_to_string): ... it. New. All callers
10361 updated.
10362 (target_read_live_memory): Likewise. Call target_xfer_partial
10363 instead of target_read.
10364 (memory_xfer_live_readonly_partial): Return
10365 target_xfer_status. Add argument xfered_len.
10366 (raw_memory_xfer_partial): Likewise.
10367 (memory_xfer_partial_1): Likewise.
10368 (memory_xfer_partial): Likewise.
10369 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10370 properly. Update debug message.
10371 (default_xfer_partial, current_xfer_partial): Likewise.
10372 (target_write_partial): Likewise.
10373 (target_read_partial): Likewise. All callers updated.
10374 (read_whatever_is_readable): Likewise.
10375 (target_write_with_progress): Likewise.
10376 (target_read_alloc_1): Likewise.
10377
10378 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10379 * auxv.c (procfs_xfer_auxv): Likewise.
10380 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10381 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10382 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10383 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10384 * corefile.c (read_memory): Adjust.
10385 * corelow.c (core_xfer_partial): Likewise.
10386 * ctf.c (ctf_xfer_partial): Likewise.
10387 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10388 updated.
10389 (darwin_xfer_partial): Likewise.
10390 * exec.c (section_table_xfer_memory_partial): Likewise. All
10391 callers updated.
10392 (exec_xfer_partial): Likewise.
10393 * exec.h (section_table_xfer_memory_partial): Update
10394 declaration.
10395 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10396 negative.
10397 (gnu_xfer_partial): Likewise.
10398 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10399 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10400 (ia64_hpux_xfer_solib_got): Likewise.
10401 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10402 type of 'partial_len' to ULONGEST.
10403 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10404 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10405 (linux_nat_xfer_partial): Likewise.
10406 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10407 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10408 * monitor.c (monitor_xfer_memory): Likewise.
10409 (monitor_xfer_partial): Likewise.
10410 * procfs.c (procfs_xfer_partial): Likewise.
10411 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10412 * record-full.c (record_full_xfer_partial): Likewise.
10413 (record_full_core_xfer_partial): Likewise.
10414 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10415 (gdbsim_xfer_partial): Likewise.
10416 * remote.c (remote_write_bytes_aux): Likewise. All callers
10417 updated.
10418 (remote_write_bytes, remote_read_bytes): Likewise. All
10419 callers updated.
10420 (remote_flash_erase): Likewise. All callers updated.
10421 (remote_write_qxfer): Likewise. All callers updated.
10422 (remote_read_qxfer): Likewise. All callers updated.
10423 (remote_xfer_partial): Likewise.
10424 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10425 (rs6000_xfer_shared_libraries): Likewise.
10426 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10427 (sol_thread_xfer_partial): Likewise.
10428 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10429 (sparc_xfer_partial): Likewise.
10430 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10431 updated.
10432 (spu_xfer_partial): Likewise.
10433 * spu-multiarch.c (spu_xfer_partial): Likewise.
10434 * tracepoint.c (tfile_xfer_partial): Likewise.
10435 * windows-nat.c (windows_xfer_memory): Likewise.
10436 (windows_xfer_shared_libraries): Likewise.
10437 (windows_xfer_partial): Likewise.
10438 * valprint.c: Replace 'target_xfer_error' with
10439 'target_xfer_status' in comments.
10440
10441 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10442
10443 Checked in by Joel Brobecker <brobecker@adacore.com>.
10444 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10445
10446 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10447
10448 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10449 function parameters.
10450
10451 2014-02-10 Will Newton <will.newton@linaro.org>
10452
10453 * elfread.c (elf_rel_plt_read): Look for a .got section if
10454 looking up .got.plt fails.
10455 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10456 on address passed to elf_gnu_ifunc_record_cache.
10457 (elf_gnu_ifunc_resolve_addr): Likewise.
10458 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10459
10460 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10461
10462 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10463 (X_RETTURN): New macro.
10464 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10465
10466 * sparc64-tdep.c (sparc64_init_abi): Hook
10467 sparc_in_function_epilogue_p.
10468
10469 2014-02-10 Gary Benson <gbenson@redhat.com>
10470
10471 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10472 Rename name_matcher to symbol_matcher.
10473
10474 2014-02-10 Gary Benson <gbenson@redhat.com>
10475
10476 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10477 Use expand_symtabs_file_matcher_ftype and
10478 expand_symtabs_symbol_matcher_ftype.
10479
10480 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10481
10482 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10483 (struct ada_symbol_cache): New.
10484 (ada_free_symbol_cache): Forward declare.
10485 (struct ada_pspace_data): New.
10486 (ada_pspace_data_handle): New static global.
10487 (get_ada_pspace_data, ada_pspace_data_cleanup)
10488 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10489 (cache_space, cache): Delete, now folded inside struct
10490 ada_pspace_data.
10491 (ada_get_symbol_cache): New function.
10492 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10493 implementation.
10494 (_initialize_ada_language): Remove initialization of cache_space.
10495 Move call to observer_attach_inferior_exit up, grouping it
10496 with the other observer registrations inside this function.
10497 Rename command to be more general. Add call to
10498 register_program_space_data_with_cleanup.
10499
10500 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10501
10502 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10503 ada_new_objfile_observer.
10504 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10505 (_initialize_tasks): Update uses of ada_new_objfile_observer
10506 and ada_tasks_normal_stop_observer.
10507
10508 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10509
10510 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10511 returned by the 'Length attribute to integer.
10512
10513 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10514
10515 * ada-lang.c (_initialize_ada_language): Initialize
10516 cache_space obstack.
10517
10518 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10519
10520 * ada-lang.c (HASH_SIZE): New macro.
10521 (struct cache_entry): New type.
10522 (cache_space, cache): New static globals.
10523 (ada_clear_symbol_cache, find_entry): New functions.
10524 (lookup_cached_symbol, cache_symbol): Implement.
10525 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10526 (_initialize_ada_language): Attach ada_new_objfile_observer
10527 and ada_free_objfile_observer.
10528
10529 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10530
10531 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10532 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10533 struct block * parameter.
10534 (ada_lookup_symbol_list_worker): Constify local variable "block".
10535 Remove cast which is no longer necessary.
10536
10537 2014-02-10 Doug Evans <xdje42@gmail.com>
10538
10539 Add Guile as an extension language.
10540 * NEWS: Mention Guile scripting.
10541 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10542 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10543 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10544 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10545 (CLIBS): Add GUILE_LIBS.
10546 (install-guile): New rule.
10547 (guile.o): New rule.
10548 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10549 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10550 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10551 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10552 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10553 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10554 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10555 * configure.ac: New option --with-guile.
10556 * configure: Regenerate.
10557 * config.in: Regenerate.
10558 * auto-load.c: Remove #include "python/python.h". Add #include
10559 "gdb/section-scripts.h".
10560 (source_section_scripts): Handle Guile scripts.
10561 (_initialize_auto_load): Add name of Guile objfile script to
10562 scripts-directory help text.
10563 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10564 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10565 (struct breakpoint): New member scm_bp_object.
10566 * defs.h (enum command_control_type): New value guile_control.
10567 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10568 "extension.h".
10569 (show_user): Update comment.
10570 (_initialize_cli_cmds): Update help text for "show user". Update help
10571 text for max-user-call-depth.
10572 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10573 "extension.h".
10574 (multi_line_command_p): Add guile_control.
10575 (print_command_lines): Handle guile_control.
10576 (execute_control_command, recurse_read_control_structure): Ditto.
10577 (process_next_line): Recognize "guile" commands.
10578 * disasm.c (gdb_disassemble_info): Make non-static.
10579 * disasm.h: #include "dis-asm.h".
10580 (struct gdbarch): Add forward decl.
10581 (gdb_disassemble_info): Declare.
10582 * extension.c: #include "guile/guile.h".
10583 (extension_languages): Add guile.
10584 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10585 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10586 * gdbtypes.c (get_unsigned_type_max): New function.
10587 (get_signed_type_minmax): New function.
10588 * gdbtypes.h (get_unsigned_type_max): Declare.
10589 (get_signed_type_minmax): Declare.
10590 * guile/README: New file.
10591 * guile/guile-internal.h: New file.
10592 * guile/guile.c: New file.
10593 * guile/guile.h: New file.
10594 * guile/scm-arch.c: New file.
10595 * guile/scm-auto-load.c: New file.
10596 * guile/scm-block.c: New file.
10597 * guile/scm-breakpoint.c: New file.
10598 * guile/scm-disasm.c: New file.
10599 * guile/scm-exception.c: New file.
10600 * guile/scm-frame.c: New file.
10601 * guile/scm-gsmob.c: New file.
10602 * guile/scm-iterator.c: New file.
10603 * guile/scm-lazy-string.c: New file.
10604 * guile/scm-math.c: New file.
10605 * guile/scm-objfile.c: New file.
10606 * guile/scm-ports.c: New file.
10607 * guile/scm-pretty-print.c: New file.
10608 * guile/scm-safe-call.c: New file.
10609 * guile/scm-string.c: New file.
10610 * guile/scm-symbol.c: New file.
10611 * guile/scm-symtab.c: New file.
10612 * guile/scm-type.c: New file.
10613 * guile/scm-utils.c: New file.
10614 * guile/scm-value.c: New file.
10615 * guile/lib/gdb.scm: New file.
10616 * guile/lib/gdb/boot.scm: New file.
10617 * guile/lib/gdb/experimental.scm: New file.
10618 * guile/lib/gdb/init.scm: New file.
10619 * guile/lib/gdb/iterator.scm: New file.
10620 * guile/lib/gdb/printing.scm: New file.
10621 * guile/lib/gdb/types.scm: New file.
10622 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10623 (VPATH): Add $(GUILE_SRCDIR).
10624 (GUILE_DIR): New variable.
10625 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10626 (all): Add stamp-guile dependency.
10627 (stamp-guile): New rule.
10628 (clean-guile, install-guile, uninstall-guile): New rules.
10629 (install-only): Add install-guile dependency.
10630 (uninstall): Add uninstall-guile dependency.
10631 (clean): Add clean-guile dependency.
10632
10633 2014-02-09 Doug Evans <xdje42@gmail.com>
10634
10635 Revert this patch (which I approved, mea culpa).
10636
10637 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10638
10639 * Makefile.in (all-lib): Remove.
10640 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10641
10642 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10643
10644 Fix Python stack corruption.
10645 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10646 gdb_py_longest.
10647
10648 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10649
10650 * Makefile.in (all-lib): Remove.
10651 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10652
10653 2014-02-07 Doug Evans <dje@google.com>
10654
10655 * extension-priv.h (extension_language_script_ops): Add comment.
10656 (extension_language_ops): Add comment.
10657 (active_ext_lang_state): Fix typo in comment.
10658
10659 2014-02-07 Pedro Alves <palves@redhat.com>
10660
10661 PR breakpoints/16292
10662 * infrun.c (handle_signal_stop) <signal arrives while stepping
10663 over a breakpoint>: Switch back to the stepping thread.
10664
10665 2014-02-07 Yao Qi <yao@codesourcery.com>
10666
10667 * target.c (target_xfer_partial): Return zero if LEN is zero.
10668
10669 2014-02-07 Yao Qi <yao@codesourcery.com>
10670
10671 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10672 (ld_so_xfer_auxv): Likewise.
10673 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10674 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10675 * corelow.c (core_xfer_partial): Likewise.
10676 * ctf.c (ctf_xfer_partial): Likewise.
10677 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10678 (darwin_xfer_partial): Likewise.
10679 * exec.c (exec_xfer_partial): Likewise.
10680 * gnu-nat.c (gnu_xfer_partial): Likewise.
10681 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10682 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10683 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10684 * linux-nat.c (linux_xfer_siginfo): Likewise.
10685 (linux_proc_xfer_spu): Likewise.
10686 * procfs.c (procfs_xfer_partial): Likewise.
10687 * record-full.c (record_full_xfer_partial): Likewise.
10688 (record_full_core_xfer_partial): Likewise.
10689 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10690 * remote.c (remote_write_qxfer): Likewise.
10691 (remote_write_qxfer, remote_read_qxfer): Likewise.
10692 (remote_xfer_partial): Likewise.
10693 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10694 (rs6000_xfer_shared_libraries): Likewise.
10695 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10696 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10697 (spu_xfer_partial): Likewise.
10698 * target.c (memory_xfer_partial_1): Likewise.
10699 * tracepoint.c (tfile_xfer_partial): Likewise.
10700 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10701 (windows_xfer_partial): Likewise.
10702
10703 2014-02-07 Yao Qi <yao@codesourcery.com>
10704
10705 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10706 comments.
10707 (core_xfer_shared_libraries_aix): Likewise.
10708 * gdbarch.c, gdbarch.h: Regenerated.
10709 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10710 ULONGEST. Change 'len_avail' type to ULONGEST.
10711 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10712 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10713 declaration.
10714 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10715
10716 2014-02-07 Yao Qi <yao@codesourcery.com>
10717
10718 * corefile.c (memory_error): Get 'exception' from ERR and pass
10719 'exception' to throw_error.
10720
10721 2014-02-06 Doug Evans <xdje42@gmail.com>
10722
10723 * configure.ac (libpython checking): Remove all but python.o from
10724 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10725 * configure: Regenerate.
10726
10727 * Makefile.in (SFILES): Add extension.c.
10728 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10729 (COMMON_OBS): Add extension.o.
10730 * extension.h: New file.
10731 * extension-priv.h: New file.
10732 * extension.c: New file.
10733
10734 * python/python-internal.h: #include "extension.h".
10735 (gdbpy_auto_load_enabled): Declare.
10736 (gdbpy_apply_val_pretty_printer): Declare.
10737 (gdbpy_apply_frame_filter): Declare.
10738 (gdbpy_preserve_values): Declare.
10739 (gdbpy_breakpoint_cond_says_stop): Declare.
10740 (gdbpy_breakpoint_has_cond): Declare.
10741 (void source_python_script_for_objfile): Delete.
10742 * python/python.c: #include "extension-priv.h".
10743 Delete inclusion of "observer.h".
10744 (extension_language_python): Moved here and renamed from
10745 script_language_python in py-auto-load.c.
10746 Redefined to be of type extension_language_defn.
10747 (python_extension_script_ops): New global.
10748 (python_extension_ops): New global.
10749 (struct python_env): New member previous_active.
10750 (restore_python_env): Call restore_active_ext_lang.
10751 (ensure_python_env): Call set_active_ext_lang.
10752 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10753 New arg extlang.
10754 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10755 New arg extlang.
10756 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10757 New arg extlang.
10758 (gdbpy_eval_from_control_command): Renamed from
10759 eval_python_from_control_command, made static. New arg extlang.
10760 (gdbpy_source_script) Renamed from source_python_script, made static.
10761 New arg extlang.
10762 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10763 result to int. New arg extlang.
10764 (gdbpy_source_objfile_script): Renamed from
10765 source_python_script_for_objfile, made static. New arg extlang.
10766 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10767 static. New args extlang, extlang_printers. Change result type to
10768 "void".
10769 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10770 static. New arg extlang. Rename arg printers to extlang_printers
10771 and change type to ext_lang_type_printers *.
10772 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10773 static. Replace argument arg with extlang, extlang_printers.
10774 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10775 (!HAVE_PYTHON, source_python_script): Delete.
10776 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10777 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10778 (!HAVE_PYTHON, start_type_printers): Delete.
10779 (!HAVE_PYTHON, apply_type_printers): Delete.
10780 (!HAVE_PYTHON, free_type_printers): Delete.
10781 (_initialize_python): Delete call to observer_attach_before_prompt.
10782 (finalize_python): Set/restore active extension language.
10783 (gdbpy_finish_initialization) Renamed from
10784 finish_python_initialization, made static. New arg extlang.
10785 (gdbpy_initialized): New function.
10786 * python/python.h: #include "extension.h". Delete #include
10787 "value.h", "mi/mi-cmds.h".
10788 (extension_language_python): Declare.
10789 (GDBPY_AUTO_FILE_NAME): Delete.
10790 (enum py_bt_status): Moved to extension.h and renamed to
10791 ext_lang_bt_status.
10792 (enum frame_filter_flags): Moved to extension.h.
10793 (enum py_frame_args): Moved to extension.h and renamed to
10794 ext_lang_frame_args.
10795 (finish_python_initialization): Delete.
10796 (eval_python_from_control_command): Delete.
10797 (source_python_script): Delete.
10798 (apply_val_pretty_printer): Delete.
10799 (apply_frame_filter): Delete.
10800 (preserve_python_values): Delete.
10801 (gdbpy_script_language_defn): Delete.
10802 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10803 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10804
10805 * auto-load.c: #include "extension.h".
10806 (GDB_AUTO_FILE_NAME): Delete.
10807 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10808 (script_language_gdb): Delete, moved to extension.c and renamed to
10809 extension_language_gdb.
10810 (source_gdb_script_for_objfile): Delete.
10811 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10812 (loaded_script): Change type of language member to
10813 struct extension_language_defn *.
10814 (init_loaded_scripts_info): Initialize
10815 unsupported_script_warning_printed.
10816 (maybe_add_script): Make static. Change type of language arg to
10817 struct extension_language_defn *.
10818 (clear_section_scripts): Reset unsupported_script_warning_printed.
10819 (auto_load_objfile_script_1): Rewrite to use extension language API.
10820 (auto_load_objfile_script): Make public. Remove support-compiled-in
10821 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10822 (source_section_scripts): Rewrite to use extension language API.
10823 (load_auto_scripts_for_objfile): Rewrite to use
10824 auto_load_scripts_for_objfile.
10825 (collect_matching_scripts_data): Change type of language member to
10826 struct extension_language_defn *.
10827 (auto_load_info_scripts): Change type of language arg to
10828 struct extension_language_defn *.
10829 (unsupported_script_warning_print): New function.
10830 (script_not_found_warning_print): Make static.
10831 (_initialize_auto_load): Rewrite construction of scripts-directory
10832 help.
10833 * auto-load.h (struct objfile): Add forward decl.
10834 (struct script_language): Delete.
10835 (struct auto_load_pspace_info): Add forward decl.
10836 (struct extension_language_defn): Add forward decl.
10837 (maybe_add_script): Delete.
10838 (auto_load_objfile_script): Declare.
10839 (script_not_found_warning_print): Delete.
10840 (auto_load_info_scripts): Update prototype.
10841 (auto_load_gdb_scripts_enabled): Declare.
10842 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10843 auto_load_python_scripts_enabled and made public.
10844 (script_language_python): Delete, moved to python.c.
10845 (gdbpy_script_language_defn): Delete.
10846 (info_auto_load_python_scripts): Update to use
10847 extension_language_python.
10848
10849 * breakpoint.c (condition_command): Replace call to
10850 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10851 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10852 with call to breakpoint_ext_lang_cond_says_stop.
10853 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10854 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10855 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10856 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10857 New arg slang.
10858 (local_setattro): Print name of extension language with existing
10859 stop condition.
10860
10861 * valprint.c (val_print, value_print): Update to call
10862 apply_ext_lang_val_pretty_printer.
10863 * cp-valprint.c (cp_print_value): Update call to
10864 apply_ext_lang_val_pretty_printer.
10865 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10866 (gdbpy_apply_val_pretty_printer): Renamed from
10867 apply_val_pretty_printer. New arg extlang.
10868 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10869
10870 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10871 extension language API.
10872 * cli/cli-script.c (execute_control_command): Update to call
10873 eval_ext_lang_from_control_command.
10874
10875 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10876 enum ext_lang_bt_status values. Update call to
10877 apply_ext_lang_frame_filter.
10878 (mi_cmd_stack_list_locals): Ditto.
10879 (mi_cmd_stack_list_args): Ditto.
10880 (mi_cmd_stack_list_variables): Ditto.
10881 * mi/mi-main.c: Delete #include "python/python-internal.h".
10882 Add #include "extension.h".
10883 (mi_cmd_list_features): Replace reference to python internal variable
10884 gdb_python_initialized with call to ext_lang_initialized_p.
10885
10886 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10887 Update to use enum ext_lang_frame_args. Update to call
10888 apply_ext_lang_frame_filter.
10889 * python/py-framefilter.c (extract_sym): Update to use enum
10890 ext_lang_bt_status.
10891 (extract_value, py_print_type, py_print_value): Ditto.
10892 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10893 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10894 (py_print_frame): Ditto.
10895 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10896 New arg extlang. Update to use enum ext_lang_bt_status.
10897
10898 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10899 finish_python_initialization. Replace with call to
10900 finish_ext_lang_initialization.
10901
10902 * typeprint.c (do_free_global_table): Update to call
10903 free_ext_lang_type_printers.
10904 (create_global_typedef_table): Update to call
10905 start_ext_lang_type_printers.
10906 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10907 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10908 (type_print_options): Change type of global_printers from "void *"
10909 to "struct ext_lang_type_printers *".
10910
10911 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10912 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10913 (gdbpy_preserve_values): Renamed from preserve_python_values.
10914 New arg extlang.
10915 (!HAVE_PYTHON, preserve_python_values): Delete.
10916
10917 * utils.c (quit_flag): Delete, moved to extension.c.
10918 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10919 extension.c.
10920
10921 * eval.c: Delete #include "python/python.h".
10922 * main.c: Delete #include "python/python.h".
10923
10924 * defs.h: Update comment.
10925
10926 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10927
10928 GDB 7.7 released.
10929
10930 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10931
10932 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10933 defined.
10934
10935 2014-02-05 Yao Qi <yao@codesourcery.com>
10936
10937 * remote.c (remote_pass_signals): Remove local 'buf' and use
10938 rs->buf.
10939 (remote_program_signals): Likewise.
10940
10941 2014-02-05 Yao Qi <yao@codesourcery.com>
10942
10943 * ctf.c: Include "inferior.h" and "gdbthread.h".
10944 (CTF_PID): A new macro.
10945 (ctf_open): Call inferior_appeared and add_thread_silent.
10946 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10947 (ctf_thread_alive): New function.
10948 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10949
10950 2014-02-05 Yao Qi <yao@codesourcery.com>
10951
10952 Revert this patch:
10953
10954 2013-05-24 Yao Qi <yao@codesourcery.com>
10955
10956 * tracepoint.c (TFILE_PID): Remove.
10957 (tfile_open): Don't add thread and inferior.
10958 (tfile_close): Don't set 'inferior_ptid'. Don't call
10959 exit_inferior_silent.
10960 (tfile_thread_alive): Remove.
10961 (init_tfile_ops): Don't set field 'to_thread_alive' of
10962 tfile_ops.
10963
10964 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10965
10966 * remote.c (remote_start_remote): Call remote_check_symbols even
10967 if only symbol-file (not file) has been given.
10968
10969 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10970
10971 * gdbarch.sh (skip_entrypoint): New callback.
10972 * gdbarch.c, gdbarch.h: Regenerate.
10973 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10974 * infrun.c (fill_in_stop_func): Likewise.
10975 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10976 (ppc_elfv2_elf_make_msymbol_special): New function.
10977 (ppc_elfv2_skip_entrypoint): Likewise.
10978 (ppc_linux_init_abi): Install them for ELFv2.
10979
10980 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10981
10982 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10983 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10984 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10985 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10986 structures returned in GPRs.
10987
10988 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10989
10990 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10991 offset to the stack parameter list for the ELFv2 ABI.
10992
10993 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10994
10995 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10996 set_gdbarch_convert_from_func_ptr_addr and
10997 set_gdbarch_elf_make_msymbol_special for ELFv1.
10998 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10999 function descriptors on ELFv1.
11000 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11001 set up r12 at function entry.
11002
11003 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11004
11005 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11006 (struct gdbarch_tdep): New member elf_abi.
11007
11008 * rs6000-tdep.c: Include "elf/ppc64.h".
11009 (rs6000_gdbarch_init): Detect ELF ABI version.
11010
11011 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11012
11013 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11014 within a register pair holding a DFP 128-bit value on little-endian.
11015 (ppc64_sysv_abi_return_value_base): Likewise.
11016 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11017 (dfp_pseudo_register_write): Likewise.
11018
11019 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11020
11021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11022 offset on little-endian when passing _Decimal32.
11023 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11024
11025 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11026
11027 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11028 of the overlapped FP register within the VSX register on little-
11029 endian platforms.
11030 (efpr_pseudo_register_write): Likewise.
11031
11032 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11033
11034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11035 offset on little-endian when passing small structures.
11036
11037 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11038
11039 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11040 (struct ppc64_sysv_argpos): New data structure.
11041 (ppc64_sysv_abi_push_float): Remove.
11042 (ppc64_sysv_abi_push_val): New function.
11043 (ppc64_sysv_abi_push_integer): Likewise.
11044 (ppc64_sysv_abi_push_freg): Likewise.
11045 (ppc64_sysv_abi_push_vreg): Likewise.
11046 (ppc64_sysv_abi_push_param): Likewise.
11047 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11048 (ppc64_sysv_abi_return_value_base): New function.
11049 (ppc64_sysv_abi_return_value): Refactor to use it.
11050
11051 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11052
11053 * NEWS: Document new target powerpc64le-*-linux*.
11054
11055 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11056
11057 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11058 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11059 core dumps.
11060 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11061 register set used in ELF core dumps. Add floating-point register set.
11062
11063 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11064
11065 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11066 dwarf2_to_gdb[] table using symbolic constants. Adjust
11067 penultimate entry from number representing the PC register
11068 to symbolic constant representing the MDR register. Add
11069 constant for the PC register to the end of the table.
11070
11071 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11072
11073 * bsd-kvm.c: Include <sys/param.h>
11074
11075 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11076
11077 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11078
11079 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11080
11081 * ada-lang.h (clear_ada_sym_cache): Delete.
11082
11083 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11084
11085 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11086
11087 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11088
11089 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11090 the sigreturn register save area only if the syscall is
11091 sigreturn.
11092
11093 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11094
11095 * valops.c (value_slice): Minor reformatting.
11096
11097 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11098
11099 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11100
11101 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11102
11103 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11104 New static globals.
11105 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11106 (ada_ignore_descriptive_types_p): New static global.
11107 (find_parallel_type_by_descriptive_type): Return immediately
11108 if ada_ignore_descriptive_types_p is set.
11109 (_initialize_ada_language): Register new commands "maintenance
11110 set ada", "maintenance show ada", "maintenance set ada
11111 ignore-descriptive-types" and "maintenance show ada
11112 ignore-descriptive-types".
11113 * NEWS: Add entry for new "maint ada set/show
11114 ignore-descriptive-types" commands.
11115
11116 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11117
11118 * record-btrace.c (record_btrace_close): Call btrace_teardown
11119 for all threads.
11120
11121 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11122
11123 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11124 "ui-out.h".
11125
11126 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11127
11128 * ada-typeprint (type_is_full_subrange_of_target_type):
11129 New function.
11130 (print_range): Add parameter bounds_prefered_p. If not set,
11131 try printing range types using the name of their base type.
11132 (print_range_type): Add parameter bounds_prefered_p.
11133 Use it in call to print_range.
11134 (print_array_type, ada_print_type): Update calls to print_range
11135 and print_range_type.
11136
11137 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11138
11139 * ada-typeprint.c (print_array_type, print_choices, print_range)
11140 (print_range_bound, print_dynamic_range_bound, print_range_type):
11141 Remove declaration.
11142
11143 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11144
11145 * ada-typeprint.c (print_range): Add missing empty line
11146 after local declaration.
11147
11148 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11149
11150 * ada-valprint.c (print_optional_low_bound): Get index_type's
11151 target type for as long as it is a TYPE_CODE_RANGE.
11152
11153 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11154
11155 * procfs.c (procfs_make_note_section): Remove assertion and
11156 associated comment.
11157
11158 2014-01-24 Yao Qi <yao@codesourcery.com>
11159
11160 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11161 * corelow.c (get_core_siginfo): Likewise.
11162
11163 2014-01-24 Yao Qi <yao@codesourcery.com>
11164
11165 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11166 ULONGEST. Don't check 'len' is negative.
11167 (remote_write_bytes): Change type of 'len' to ULONGEST.
11168
11169 2014-01-23 Tom Tromey <tromey@redhat.com>
11170
11171 PR python/16485:
11172 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11173 Handle exception from frame.block.
11174 (FrameVars.fetch_frame_locals): Likewise.
11175
11176 2014-01-23 Tom Tromey <tromey@redhat.com>
11177
11178 PR python/16487:
11179 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11180 on a NULL pointer. Move "goto error" to correct place.
11181
11182 2014-01-23 Tom Tromey <tromey@redhat.com>
11183
11184 PR python/16491:
11185 * python/py-framefilter.c (apply_frame_filter): Call
11186 ensure_python_env after computing gdbarch.
11187
11188 2014-01-23 Yao Qi <yao@codesourcery.com>
11189
11190 * target.c (raw_memory_xfer_partial): Change argument type
11191 from void * to gdb_byte *.
11192 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11193
11194 2014-01-22 Doug Evans <dje@google.com>
11195
11196 New gdbserver option --debug-format=timestamp.
11197 * NEWS: Mention it.
11198
11199 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11200
11201 * syscalls/s390x-linux.xml: New file.
11202 * syscalls/s390-linux.xml: New file.
11203 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11204 (XML_SYSCALL_FILENAME_S390X): Likewise.
11205 (op_svc): New enum value for SVC opcode.
11206 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11207 (s390_linux_get_syscall_number): New function.
11208 (s390_gdbarch_init): Register '*get_syscall_number' and the
11209 syscall xml file name.
11210 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11211 "s390-linux.xml" and "s390x-linux.xml".
11212 * NEWS: Announce new feature.
11213
11214 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11215
11216 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11217
11218 2014-01-22 Pedro Alves <palves@redhat.com>
11219
11220 * xtensa-config.c: Include defs.h.
11221
11222 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11223
11224 * common/common-utils.h: Add "ARI:" comment beside __func__
11225 reference.
11226
11227 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11228
11229 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11230 documentation a bit.
11231
11232 2014-01-21 Roland McGrath <mcgrathr@google.com>
11233
11234 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11235 * configure: Regenerate.
11236 * aclocal.m4: Regenerate.
11237 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11238 New substituted variables.
11239 (install-strip): New target.
11240 (INSTALL_SCRIPT): New substituted variable.
11241 (FLAGS_TO_PASS): Add it.
11242 (install-only): Use $(INSTALL_SCRIPT) rather than
11243 $(INSTALL_PROGRAM) for gcore.
11244
11245 2014-01-20 Tom Tromey <tromey@redhat.com>
11246
11247 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11248 together.
11249
11250 2014-01-20 Tom Tromey <tromey@redhat.com>
11251
11252 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11253 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11254 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11255 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11256 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11257 (struct cmd_list_element) <flags>: Remove.
11258 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11259 doc_allocated>: New fields.
11260 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11261 bitfields.
11262 * maint.c (maintenance_do_deprecate): Update.
11263 * top.c (execute_command): Update.
11264
11265 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11266
11267 * xtensa-linux-nat.c: Include asm/ptrace.h.
11268
11269 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11270
11271 * Makefile.in (SFILES): Add d-support.c.
11272 (COMMON_OBS): Add d-support.o.
11273 * d-lang.h (d_parse_symbol): Add comment, now defined in
11274 d-support.c.
11275 * d-lang.c (parse_call_convention)
11276 (parse_attributes, parse_function_types)
11277 (parse_function_args, parse_type, parse_identifier)
11278 (call_convention_p, d_parse_symbol): Move functions to ...
11279 * d-support.c: ... New file.
11280
11281 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11282
11283 * d-lang.h (d_parse_symbol): Add declaration.
11284 * d-lang.c (extract_identifiers)
11285 (extract_type_info): Remove functions.
11286 (parse_call_convention, parse_attributes)
11287 (parse_function_types, parse_function_args)
11288 (parse_type, parse_identifier, call_convention_p)
11289 (d_parse_symbol): New functions.
11290 (d_demangle): Use d_parse_symbol to demangle D symbols.
11291
11292 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11293
11294 * d-lang.h (struct builtin_d_type): New data type.
11295 (builtin_d_type): Add declaration.
11296 * d-lang.c (d_language_arch_info, build_d_types)
11297 (builtin_d_type): New functions.
11298 (enum d_primitive_types): New data type.
11299 (d_language_defn): Change c_language_arch_info to
11300 d_language_arch_info.
11301 (d_type_data): New static variable.
11302 (_initialize_d_language): Initialize d_type_data.
11303
11304 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11305
11306 * d-lang.h (d_main_name): Add declaration.
11307 * d-lang.c (d_main_name): New function.
11308 * symtab.c (find_main_name): Add call to d_main_name.
11309
11310 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11311
11312 * d-lang.c (d_language_defn): Change macro_expansion_c to
11313 macro_expansion_no.
11314
11315 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11316
11317 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11318
11319 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11320
11321 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11322 gdb_exception" declaration.
11323 * remote.c (getpkt_or_notif_sane): Likewise.
11324
11325 2014-01-17 Doug Evans <dje@google.com>
11326
11327 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11328 function, contents of dirnames_to_char_ptr_vec_append moved here.
11329 (delim_string_to_char_ptr_vec): New function.
11330 (dirnames_to_char_ptr_vec_append): Rewrite.
11331 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11332
11333 2014-01-17 Doug Evans <dje@google.com>
11334
11335 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11336 and moved here ...
11337 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11338 #include "common-utils.h".
11339 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11340 * common/vec.h (VEC_ASSERT_PASS): Update.
11341 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11342 (MACH_CHECK_ERROR): Update.
11343
11344 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11345
11346 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11347 comments.
11348 * gdbarch.h: Regenerate.
11349
11350 2014-01-16 Tom Tromey <tromey@redhat.com>
11351
11352 * value.c (struct value) <regnum>: Move earlier.
11353
11354 2014-01-16 Tom Tromey <tromey@redhat.com>
11355
11356 * remote.c (extended_remote_create_inferior): Rename from
11357 extended_remote_create_inferior_1. Add "ops" argument. Remove
11358 old implementation.
11359
11360 2014-01-16 Pedro Alves <palves@redhat.com>
11361
11362 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11363 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11364 the backchain.
11365
11366 2014-01-16 Doug Evans <dje@google.com>
11367
11368 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11369
11370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371
11372 * btrace.h (btrace_thread_flag): New.
11373 (struct btrace_thread_info) <flags>: New.
11374 * record-btrace.c (record_btrace_resume_thread)
11375 (record_btrace_find_thread_to_move, btrace_step_no_history)
11376 (btrace_step_stopped, record_btrace_start_replaying)
11377 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11378 (record_btrace_find_resume_thread): New.
11379 (record_btrace_resume, record_btrace_wait): Extend.
11380 (record_btrace_can_execute_reverse): New.
11381 (record_btrace_open): Fail in non-stop mode.
11382 (record_btrace_set_replay): Split into this, ...
11383 (record_btrace_stop_replaying): ... this, ...
11384 (record_btrace_clear_histories): ... and this.
11385 (init_record_btrace_ops): Init to_can_execute_reverse.
11386 * NEWS: Announce it.
11387
11388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389
11390 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11391 (forward_target_decr_pc_after_break)
11392 (target_decr_pc_after_break): New.
11393 * target.c (forward_target_decr_pc_after_break)
11394 (target_decr_pc_after_break): New.
11395 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11396 instead of gdbarch_decr_pc_after_break.
11397 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11398 instead of gdbarch_decr_pc_after_break.
11399 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11400 instead of gdbarch_decr_pc_after_break.
11401 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11402 instead of gdbarch_decr_pc_after_break.
11403 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11404 instead of gdbarch_decr_pc_after_break.
11405 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11406 instead of gdbarch_decr_pc_after_break.
11407
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11409
11410 * btrace.c: Include regcache.h.
11411 (btrace_add_pc): New.
11412 (btrace_enable): Call btrace_add_pc.
11413 (btrace_is_empty): New.
11414 * btrace.h (btrace_is_empty): New.
11415 * record-btrace.c (require_btrace, record_btrace_info): Call
11416 btrace_is_empty.
11417
11418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11419
11420 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11421 Support delta reads.
11422 (linux_disable_btrace): Change return type.
11423 * common/linux-btrace.h (linux_read_btrace): Change parameters
11424 and return type to allow error reporting. Update users.
11425 (linux_disable_btrace): Change return type. Update users.
11426 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11427 New.
11428 (btrace_error): New.
11429 (btrace_block) <begin>: Comment on BEGIN == 0.
11430 * btrace.c (btrace_compute_ftrace): Start from the end of
11431 the current trace.
11432 (btrace_stitch_trace, btrace_clear_history): New.
11433 (btrace_fetch): Read delta trace, return if replaying.
11434 (btrace_clear): Move clear history code to btrace_clear_history.
11435 (parse_xml_btrace): Throw an error if parsing failed.
11436 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11437 and return type to allow error reporting.
11438 (target_read_btrace): Change parameters and return type to allow
11439 error reporting.
11440 * target.c (target_read_btrace): Update.
11441 * remote.c (remote_read_btrace): Support delta reads. Pass
11442 errors on.
11443 * NEWS: Announce it.
11444
11445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11446
11447 * record.h (record_btrace_frame_unwind)
11448 (record_btrace_tailcall_frame_unwind): New declarations.
11449 * dwarf2-frame: Include record.h
11450 (dwarf2_frame_cfa): Throw an error for btrace frames.
11451 * record-btrace.c: Include hashtab.h.
11452 (btrace_get_bfun_name): New.
11453 (btrace_call_history): Call btrace_get_bfun_name.
11454 (struct btrace_frame_cache): New.
11455 (bfcache): New.
11456 (bfcache_hash, bfcache_eq, bfcache_new): New.
11457 (btrace_get_frame_function): New.
11458 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11459 (record_btrace_frame_this_id): Compute own id.
11460 (record_btrace_frame_prev_register): Provide PC, throw_error
11461 for all other registers.
11462 (record_btrace_frame_sniffer): Detect btrace frames.
11463 (record_btrace_tailcall_frame_sniffer): New.
11464 (record_btrace_frame_dealloc_cache): New.
11465 (record_btrace_frame_unwind): Add new functions.
11466 (record_btrace_tailcall_frame_unwind): New.
11467 (_initialize_record_btrace): Allocate cache.
11468 * btrace.c (btrace_clear): Call reinit_frame_cache.
11469 * NEWS: Announce it.
11470
11471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11472
11473 * record-btrace.c (record_btrace_set_replay)
11474 (record_btrace_goto_begin, record_btrace_goto_end)
11475 (record_btrace_goto): New.
11476 (init_record_btrace_ops): Initialize them.
11477 * NEWS: Announce it.
11478
11479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * record-btrace.c (record_btrace_find_new_threads)
11482 (record_btrace_thread_alive): New.
11483 (init_record_btrace_ops): Initialize to_find_new_threads and
11484 to_thread_alive.
11485
11486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11487
11488 * record-btrace.c (record_btrace_resume): New.
11489 (record_btrace_wait): New.
11490 (init_record_btrace_ops): Initialize to_wait and to_resume.
11491
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * record-btrace.c (record_btrace_xfer_partial)
11495 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11496 (record_btrace_allow_memory_access): New.
11497 (init_record_btrace_ops): Initialize new methods.
11498 * target.c (raw_memory_xfer_partial): Bail out if target reports
11499 that this memory is not available.
11500
11501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11502
11503 * target.h (target_ops) <to_insert_breakpoint>
11504 <to_remove_breakpoint>: Add target_ops parameter.
11505 (forward_target_insert_breakpoint): New.
11506 (forward_target_remove_breakpoint): New.
11507 (memory_remove_breakpoint, memory_insert_breakpoint):
11508 Add target_ops parameter.
11509 * target.c (target_insert_breakpoint): Split into this and ...
11510 (forward_target_insert_breakpoint): ... this.
11511 (target_remove_breakpoint): Split into this and ...
11512 (forward_target_remove_breakpoint): ... this.
11513 (debug_to_insert_breakpoint): Add target_ops parameter.
11514 Call forward_target_insert_breakpoint.
11515 (debug_to_remove_breakpoint): Add target_ops parameter.
11516 Call forward_target_remove_breakpoint.
11517 (update_current_target): Do not inherit or default to_insert_breakpoint
11518 and to_remove_breakpoint.
11519 * corelow.c (ignore): Add target_ops parameter.
11520 * exec.c (ignore): Add target_ops parameter.
11521 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11522 Add target_ops parameter.
11523 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11524 Add target_ops parameter.
11525 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11526 Add target_ops parameter.
11527 * record-full.c (record_full_beneath_to_insert_breakpoint)
11528 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11529 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11530 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11531 (record_full_core_remove_breakpoint): Add target_ops parameter.
11532 Update users.
11533 (record_full_beneath_to_insert_breakpoint_ops)
11534 (record_full_beneath_to_remove_breakpoint_ops)
11535 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11536 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11537 tmp_to_remove_breakpoint_ops,
11538 record_full_beneath_to_insert_breakpoint_ops, and
11539 record_full_beneath_to_remove_breakpoint_ops.
11540 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11541 (m32r_remove_breakpoint): Add target_ops parameter.
11542 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11543 Add target_ops parameter.
11544 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11545 Add target_ops parameter.
11546
11547 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11548 Markus Metzger <markus.t.metzger@intel.com>
11549
11550 * record-btrace.c: Include frame-unwind.h.
11551 (record_btrace_frame_unwind_stop_reason)
11552 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11553 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11554 New.
11555 (init_record_btrace_ops): Install it.
11556
11557 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11558
11559 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11560 get_prev_frame_1.
11561
11562 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11563
11564 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11565 earlier.
11566
11567 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11568
11569 * frame-unwind.c: Include target.h.
11570 (frame_unwind_try_unwinder): New function with code from ...
11571 (frame_unwind_find_by_frame): ... here. New variable
11572 unwinder_from_target, call also target_get_unwinder)
11573 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11574 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11575 * target.h (struct target_ops): New fields to_get_unwinder and
11576 to_get_tailcall_unwinder.
11577 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11578
11579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11580
11581 * record-btrace.c (record_btrace_fetch_registers)
11582 (record_btrace_store_registers)
11583 (record_btrace_to_prepare_to_store): New.
11584 (init_record_btrace_ops): Add the above.
11585
11586 2014-01-16 Tom Tromey <tromey@redhat.com>
11587
11588 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11589 * target.h (struct target_ops) <to_prepare_to_store>: Add
11590 argument.
11591 (target_prepare_to_store): Add argument.
11592 * target.c (debug_to_prepare_to_store): Add argument.
11593 (update_current_target): Update.
11594 * remote.c (remote_prepare_to_store): Add 'self' argument.
11595 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11596 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11597 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11598 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11599 argument.
11600 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11601 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11602 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11603 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11604 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11605
11606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11607
11608 * btrace.h (replay) <replay>: New.
11609 (btrace_is_replaying): New.
11610 * btrace.c (btrace_clear): Free replay iterator.
11611 (btrace_is_replaying): New.
11612 * record-btrace.c (record_btrace_is_replaying): New.
11613 (record_btrace_info): Print insn number if replaying.
11614 (record_btrace_insn_history): Start at replay position.
11615 (record_btrace_call_history): Start at replay position.
11616 (init_record_btrace_ops): Init to_record_is_replaying.
11617
11618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619
11620 * record-btrace.c (record_btrace_insn_history_range): Include
11621 end.
11622 (record_btrace_insn_history_from): Adjust range.
11623 (record_btrace_call_history_range): Include
11624 end.
11625 (record_btrace_call_history_from): Adjust range.
11626 * NEWS: Announce changes.
11627
11628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11629
11630 * record.h (enum record_print_flag)
11631 <record_print_indent_calls>: New.
11632 * record.c (get_call_history_modifiers): Recognize /c modifier.
11633 (_initialize_record): Document /c modifier.
11634 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11635 Reorder fields. Optionally indent the function name. Update
11636 all users.
11637 * NEWS: Announce changes.
11638
11639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11640
11641 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11642
11643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11644
11645 * btrace.c (ftrace_new_function): Start counting at one.
11646 * record-btrace.c (record_btrace_info): Adjust number of calls
11647 and insns.
11648 * NEWS: Announce it.
11649
11650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11651
11652 * record-btrace.c (btrace_call_history_insn_range): Print
11653 insn range as [begin, end].
11654
11655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11656
11657 * btrace.h (struct btrace_func_link): New.
11658 (enum btrace_function_flag): New.
11659 (struct btrace_inst): Rename to ...
11660 (struct btrace_insn): ...this. Update all users.
11661 (struct btrace_func) <ibegin, iend>: Remove.
11662 (struct btrace_func_link): New.
11663 (struct btrace_func): Rename to ...
11664 (struct btrace_function): ...this. Update all users.
11665 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11666 (number, level, flags>: New.
11667 (struct btrace_insn_iterator): Rename to ...
11668 (struct btrace_insn_history): ...this.
11669 Update all users.
11670 (struct btrace_insn_iterator, btrace_call_iterator): New.
11671 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11672 (struct btrace_target_info) <begin, end, level>
11673 <insn_history, call_history>: New.
11674 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11675 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11676 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11677 (btrace_call_number, btrace_call_begin, btrace_call_end)
11678 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11679 (btrace_find_function_by_number, btrace_set_insn_history)
11680 (btrace_set_call_history): New.
11681 * btrace.c (btrace_init_insn_iterator)
11682 (btrace_init_func_iterator, compute_itrace): Remove.
11683 (ftrace_print_function_name, ftrace_print_filename)
11684 (ftrace_skip_file): Change
11685 parameter to const.
11686 (ftrace_init_func): Remove.
11687 (ftrace_debug): Use new btrace_function fields.
11688 (ftrace_function_switched): Also consider gaining and
11689 losing symbol information).
11690 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11691 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11692 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11693 New.
11694 (ftrace_new_function): Move. Remove debug print.
11695 (ftrace_update_lines, ftrace_update_insns): New.
11696 (ftrace_update_function): Check for call, ret, and jump.
11697 (compute_ftrace): Renamed to ...
11698 (btrace_compute_ftrace): ...this. Rewritten to compute call
11699 stack.
11700 (btrace_fetch, btrace_clear): Updated.
11701 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11702 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11703 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11704 (btrace_call_number, btrace_call_begin, btrace_call_end)
11705 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11706 (btrace_find_function_by_number, btrace_set_insn_history)
11707 (btrace_set_call_history): New.
11708 * record-btrace.c (require_btrace): Use new btrace thread
11709 info fields.
11710 (record_btrace_info, btrace_insn_history)
11711 (record_btrace_insn_history, record_btrace_insn_history_range):
11712 Use new btrace thread info fields and new iterator.
11713 (btrace_func_history_src_line): Rename to ...
11714 (btrace_call_history_src_line): ...this. Use new btrace
11715 thread info fields.
11716 (btrace_func_history): Rename to ...
11717 (btrace_call_history): ...this. Use new btrace thread info
11718 fields and new iterator.
11719 (record_btrace_call_history, record_btrace_call_history_range):
11720 Use new btrace thread info fields and new iterator.
11721
11722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11723
11724 * frame.h (frame_id_build_unavailable_stack_special): New.
11725 * frame.c (frame_id_build_unavailable_stack_special): New.
11726
11727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11728
11729 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11730 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11731 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11732 to gdbarch.
11733 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11734 (i386_insn_is_jump, i386_jmp_p): New.
11735 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11736 insn_is_jump to gdbarch.
11737 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11738 * gdbarch.h: Regenerated.
11739 * gdbarch.c: Regenerated.
11740 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11741 (default_insn_is_jump): New.
11742 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11743 (default_insn_is_jump): New.
11744
11745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746
11747 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11748 Change to ...
11749 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11750 (btrace_read_type) <btrace_read_new>: Change to ...
11751 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11752
11753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11754
11755 * common/linux-btrace.c (linux_read_btrace): Free trace from
11756 previous iteration.
11757
11758 2014-01-15 Doug Evans <dje@google.com>
11759
11760 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11761 uint32_t.
11762
11763 2014-01-15 Tom Tromey <tromey@redhat.com>
11764
11765 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11766 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11767 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11768 (set_objfile_main_name): New function.
11769 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11770 language_of_main>: New fields.
11771 (set_objfile_main_name): Declare.
11772 * symtab.c (find_main_name): Loop over objfiles to find the main
11773 name and language.
11774 (set_main_name): Now static.
11775 (get_main_info): Add comment.
11776 * symtab.h (set_main_name): Don't declare.
11777
11778 2014-01-15 Tom Tromey <tromey@redhat.com>
11779
11780 * symtab.c (main_progspace_key): New global.
11781 (struct main_info): New.
11782 (name_of_main, language_of_main): Remove.
11783 (get_main_info, main_info_cleanup): New function.
11784 (set_main_name, main_name, main_language): Use get_main_info.
11785 (_initialize_symtab): Initialize main_progspace_key.
11786
11787 2014-01-15 Tom Tromey <tromey@redhat.com>
11788
11789 * dbxread.c (process_one_symbol): Update.
11790 * dwarf2read.c (read_partial_die): Update.
11791 * symfile.c (set_initial_language): Call main_language.
11792 * symtab.c (language_of_main): Now static.
11793 (set_main_name): Add 'lang' parameter.
11794 (find_main_name): Update.
11795 (main_language): New function.
11796 (symtab_observer_executable_changed): Update.
11797 * symtab.h (set_main_name): Update.
11798 (language_of_main): Remove.
11799 (main_language): Declare.
11800
11801 2014-01-15 Tom Tromey <tromey@redhat.com>
11802
11803 * symfile.c (init_entry_point_info): Use new "initialized" field.
11804 Update.
11805 * objfiles.h (struct entry_point) <initialized>: New field.
11806 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11807 (struct objfile) <ei>: ...here. Remove.
11808 * objfiles.c (entry_point_address_query): Update.
11809
11810 2014-01-15 Tom Tromey <tromey@redhat.com>
11811
11812 * objfiles.c (entry_point_address_query): Relocate entry point
11813 address.
11814 (objfile_relocate1): Do not relocate entry point address.
11815 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11816 <the_bfd_section_index>: New field.
11817 * symfile.c (init_entry_point_info): Find the entry point's
11818 section.
11819
11820 2014-01-15 Tom Tromey <tromey@redhat.com>
11821
11822 * solib-frv.c (enable_break): Use entry_point_address_query.
11823
11824 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11825
11826 * NEWS: Add note on improved process record-replay on
11827 arm*-linux* targets.
11828
11829 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11830
11831 * arm-tdep.c (enum arm_record_result): New enum.
11832 (arm_record_unsupported_insn): New function.
11833 (arm_record_coproc_data_proc): Removed.
11834 (thumb2_record_ld_st_multiple): New function.
11835 (thumb2_record_ld_st_dual_ex_tbb): New function.
11836 (thumb2_record_data_proc_sreg_mimm): New function.
11837 (thumb2_record_ps_dest_generic): New function.
11838 (thumb2_record_branch_misc_cntrl): New function.
11839 (thumb2_record_str_single_data): New function.
11840 (thumb2_record_ld_mem_hints): New function.
11841 (thumb2_record_ld_word): New function.
11842 (thumb2_record_lmul_lmla_div): New function.
11843 (thumb2_record_decode_insn_handler): New function.
11844 (decode_insn): Add thumb32 instruction handlers.
11845
11846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11847
11848 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11849 (struct arm_linux_record_tdep): Declare.
11850 (arm_canonicalize_syscall): New function.
11851 (arm_all_but_pc_registers_record): New function.
11852 (arm_linux_syscall_record): New function.
11853 (arm_linux_init_abi): Add syscall recording constructs.
11854 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11855 decoding. (arm_record_coproc_data_proc): Update arm syscall
11856 decoding.
11857 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11858 <arm_syscall_record>: New field.
11859 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11860 gdb_target_obs.
11861
11862 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11863
11864 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11865 register for push instruction recording.
11866
11867 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11868
11869 * arm-tdep.c (thumb_record_misc): Update to correct logical
11870 error while recording ldm, ldmia and pop instructions.
11871
11872 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11873
11874 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11875
11876 2014-01-15 Pedro Alves <palves@redhat.com>
11877
11878 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11879 (go32_resume, go32_fetch_registers, store_register)
11880 (go32_store_registers, go32_prepare_to_store)
11881 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11882 (go32_create_inferior, go32_can_run, go32_terminal_init)
11883 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11884 declarations.
11885
11886 2014-01-15 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (async_callback_ftype): New typedef.
11889 (struct target_ops) <to_async>: Use it.
11890
11891 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11892
11893 * python/py-value.c (get_field_type): Remove unnecessary curly
11894 braces for single-statement if block.
11895
11896 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11897
11898 * python/py-type.c (convert_field): Add missing empty line
11899 after declarations.
11900
11901 2014-01-14 Doug Evans <dje@google.com>
11902
11903 * symfile.h (expand_symtabs_matching): Renamed from
11904 expand_partial_symbol_names. Update prototype.
11905 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11906 * symfile.c (expand_symtabs_matching): Renamed from
11907 expand_partial_symbol_names. New args file_matcher, kind.
11908 Rename arg fun to symbol_matcher.
11909 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11910 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11911 ada_expand_partial_symbol_name.
11912 (ada_make_symbol_completion_list): Update to call
11913 expand_symtabs_matching.
11914 (ada_add_global_exceptions): Call expand_symtabs_matching.
11915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11916 call map_symbol_filenames.
11917 * symtab.c (sources_info): Update to call map_symbol_filenames.
11918 (search_symbols): Call expand_symtabs_matching.
11919 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11920 (default_make_symbol_completion_list_break_on): Update to call
11921 expand_symtabs_matching.
11922 (make_source_files_completion_list): Update to call
11923 map_symbol_filenames.
11924
11925 2014-01-14 Doug Evans <dje@google.com>
11926
11927 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11928 (expand_symtabs_symbol_matcher_ftype): New typedef.
11929 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11930 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11931 * symfile.c (expand_partial_symbol_names): Update to use
11932 expand_symtabs_symbol_matcher_ftype.
11933 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11934 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11935 Arg name_matcher renamed to symbol_matcher.
11936 * psymtab.c (recursively_search_psymtabs): Update to use
11937 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11938 sym_matcher.
11939 (expand_symtabs_matching_via_partial): Update to use
11940 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11941 Arg name_matcher renamed to symbol_matcher.
11942
11943 2014-01-14 Doug Evans <dje@google.com>
11944
11945 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11946 (map_partial_symbol_filenames): Ditto.
11947 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11948 (map_partial_symbol_filenames): Ditto.
11949 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11950 (map_partial_symbol_filenames): Ditto.
11951 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11952 (map_partial_symbol_filenames): Ditto.
11953 * symtab.c: Delete #include "psymtab.h".
11954
11955 2014-01-14 Pedro Alves <palves@redhat.com>
11956 Tom Tromey <tromey@redhat.com>
11957
11958 * infrun.c (use_displaced_stepping): Use find_record_target
11959 instead of RECORD_IS_USED.
11960 (adjust_pc_after_break): Use record_full_is_used instead of
11961 RECORD_IS_USED.
11962 * record-btrace.c (record_btrace_open): Call record_preopen
11963 instead of checking RECORD_IS_USED.
11964 * record-full.c (record_full_shortname)
11965 (record_full_core_shortname): New globals.
11966 (record_full_is_used): New function.
11967 (find_full_open): Call record_preopen instead of checking
11968 RECORD_IS_USED.
11969 (init_record_full_ops): Set the target's shortname to
11970 record_full_shortname.
11971 (init_record_full_core_ops): Set the target's shortname to
11972 record_full_core_shortname.
11973 * record-full.h (record_full_is_used): Declare.
11974 * record.c (find_record_target): Make extern.
11975 (record_preopen): New function.
11976 * record.h (RECORD_IS_USED): Delete macro.
11977 (find_record_target, record_preopen): Declare functions.
11978
11979 2014-01-14 Yao Qi <yao@codesourcery.com>
11980
11981 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11982 'len''s type to ULONGEST.
11983 (core_xfer_shared_libraries_aix): Likewise.
11984 * gdbarch.c, gdbarch.h: Regenerated.
11985 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11986 Change type of 'len' to ULONGEST.
11987 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11988 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11989
11990 2014-01-14 Yao Qi <yao@codesourcery.com>
11991
11992 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11993 type of 'len' to ULONGEST.
11994 (linux_xfer_osdata_processgroups): Likewise.
11995 (linux_xfer_osdata_threads): Likewise.
11996 (linux_xfer_osdata_fds): Likewise.
11997 (linux_xfer_osdata_isockets): Likewise.
11998 (linux_xfer_osdata_shm): Likewise.
11999 (linux_xfer_osdata_sem): Likewise.
12000 (linux_xfer_osdata_msg): Likewise.
12001 (linux_common_xfer_osdata): Likewise.
12002 (struct osdata_type) <getter>: Likewise.
12003 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12004 the declaration.
12005
12006 2014-01-14 Yao Qi <yao@codesourcery.com>
12007
12008 * target.h (target_xfer_partial_ftype): Update.
12009 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12010 ULONGEST.
12011 * aix-thread.c (aix_thread_xfer_partial): Change type of
12012 argument 'len' to ULONGEST.
12013 * auxv.c (procfs_xfer_auxv): Likewise.
12014 (ld_so_xfer_auxv): Likewise.
12015 (memory_xfer_auxv): Likewise.
12016 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12017 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12018 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12019 * corelow.c (core_xfer_partial): Likewise.
12020 * ctf.c (ctf_xfer_partial): Likewise.
12021 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12022 '%u'.
12023 (darwin_read_dyld_info): Likewise.
12024 (darwin_xfer_partial): Likewise.
12025 * exec.c (section_table_xfer_memory_partial): Likewise.
12026 (exec_xfer_partial): Likewise.
12027 * exec.h (section_table_xfer_memory_partial): Update
12028 declaration.
12029 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12030 instead of plongest.
12031 (gnu_xfer_partial): Likewise.
12032 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12033 (ia64_hpux_xfer_solib_got): Likewise.
12034 (ia64_hpux_xfer_partial): Likewise.
12035 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12036 * inf-ptrace.c (inf_ptrace_xfer_partial):
12037 * inf-ttrace.c (inf_ttrace_xfer_partial):
12038 * linux-nat.c (linux_xfer_siginfo): Likewise.
12039 (linux_nat_xfer_partial): Likewise.
12040 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12041 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12042 * monitor.c (monitor_xfer_memory): Likewise.
12043 (monitor_xfer_partial): Likewise.
12044 * procfs.c (procfs_xfer_partial): Likewise.
12045 * record-full.c (record_full_xfer_partial): Likewise.
12046 (record_full_core_xfer_partial): Likewise.
12047 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12048 instead of plongest.
12049 (gdbsim_xfer_partial): Likewise.
12050 * remote.c (remote_xfer_partial): Likewise.
12051 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12052 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12053 declaration.
12054 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12055 (rs6000_xfer_shared_libraries): Likewise.
12056 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12057 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12058 (sparc_xfer_partial): Likewise.
12059 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12060 (spu_xfer_partial): Likewise.
12061 * spu-multiarch.c (spu_xfer_partial): Likewise.
12062 * target.c (target_read_live_memory): Likewise.
12063 (memory_xfer_live_readonly_partial): Likewise.
12064 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12065 (target_xfer_partial, default_xfer_partial): Likewise.
12066 (current_xfer_partial): Likewise.
12067 * tracepoint.c (tfile_xfer_partial): Likewise.
12068 * windows-nat.c (windows_xfer_memory): Likewise. Call
12069 pulongest instead of plongest.
12070 (windows_xfer_partial): Likewise.
12071 (windows_xfer_shared_libraries): Likewise.
12072
12073 2014-01-14 Yao Qi <yao@codesourcery.com>
12074
12075 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12076 target_xfer_partial_ftype.
12077
12078 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12079
12080 PR python/15464
12081 PR python/16113
12082 * valops.c (value_struct_elt_bitpos): New function
12083 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12084 object to 'None' if the field name is an empty string ("").
12085 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12086 attribute to look for a field when 'name' is 'None'.
12087 (get_field_type): New function
12088
12089 2014-01-13 Doug Evans <dje@google.com>
12090
12091 PR symtab/16426
12092 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12093 (try_open_dwop_file): Ditto.
12094 * gdb_bfd.c: #include "vec.h".
12095 (bfdp): New typedef.
12096 (struct gdb_bfd_data): New member included_bfds.
12097 (gdb_bfd_unref): Unref all included bfds.
12098 (gdb_bfd_record_inclusion): New function.
12099 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12100
12101 2014-01-13 Tom Tromey <tromey@redhat.com>
12102
12103 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12104
12105 2014-01-13 Tom Tromey <tromey@redhat.com>
12106
12107 * defs.h (use_windows): Remove.
12108 * gdb.c (main): Update.
12109 * main.c (captured_main, gdb_main): Update.
12110 * main.h (struct captured_main_args) <use_windows>: Remove.
12111 * top.c (use_windows): Remove.
12112
12113 2014-01-13 Tom Tromey <tromey@redhat.com>
12114
12115 * defs.h (deprecated_flush_hook): Remove.
12116
12117 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12118
12119 PR threads/16216
12120 * linux-thread-db.c (try_thread_db_load): Add parameter
12121 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12122 (try_thread_db_load_from_pdir_1): Move it there from here.
12123 (try_thread_db_load_from_sdir): Update caller.
12124 (try_thread_db_load_from_dir): Move it there from here.
12125
12126 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12127
12128 * regformats/regdat.sh: Always rewrite the register file.
12129
12130 2014-01-13 Pedro Alves <palves@redhat.com>
12131
12132 * Makefile.in (CHECK_HEADERS): New variable.
12133 (check-headers:): New rule.
12134
12135 2014-01-13 Tom Tromey <tromey@redhat.com>
12136
12137 * cli/cli-setshow.c (do_set_command): Update.
12138 * defs.h (deprecated_set_hook): Remove.
12139 * top.c (deprecated_set_hook): Remove.
12140
12141 2014-01-13 Pedro Alves <palves@redhat.com>
12142
12143 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12144 the tracepoint if the PC is a pseudo-register.
12145
12146 2014-01-13 Tom Tromey <tromey@redhat.com>
12147
12148 * defs.h (XCALLOC): Remove.
12149 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12150 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12151 * dwarf2loc.c (allocate_piece_closure): Likewise.
12152 * elfread.c (elf_symfile_segments): Likewise.
12153 (elf_symfile_segments): Likewise.
12154 * gdbtypes.c (copy_type_recursive): Likewise.
12155 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12156 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12157 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12158 XCALLOC.
12159 * mt-tdep.c (mt_gdbarch_init): Likewise.
12160 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12161 XCALLOC.
12162 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12163 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12164 * registry.c (registry_alloc_data): Likewise.
12165 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12166 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12167 * serial.c (serial_fdopen_ops): Likewise.
12168 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12169 XCALLOC.
12170 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12171 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12172 not XCALLOC.
12173
12174 2014-01-13 Tom Tromey <tromey@redhat.com>
12175
12176 * defs.h (XMALLOC): Remove.
12177 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12178 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12179 * cli-out.c (struct ui_out *): Likewise.
12180 * cli/cli-dump.c (add_dump_command): Likewise.
12181 (add_dump_command): Likewise.
12182 * complaints.c (get_complaints): Likewise.
12183 (find_complaint): Likewise.
12184 * dwarf2-frame.c (execute_cfa_program): Likewise.
12185 * dwarf2read.c (abbrev_table_read_table): Likewise.
12186 * gdbarch.sh: Likewise.
12187 * gdbarch.c: Rebuild.
12188 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12189 * interps.c (interp_new): Likewise.
12190 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12191 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12192 * mi/mi-console.c (mi_console_file_new): Likewise.
12193 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12194 * mi/mi-out.c (mi_out_new): Likewise.
12195 * mi/mi-parse.c (mi_parse): Likewise.
12196 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12197 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12198 * observer.c (xalloc_observer_list_node): Likewise.
12199 * regcache.c (regcache_xmalloc_1): Likewise.
12200 * reggroups.c (reggroup_new): Likewise.
12201 (_initialize_reggroup): Likewise.
12202 * registry.c (register_data_with_cleanup): Likewise.
12203 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12204 * ser-base.c (serial_ttystate): Likewise.
12205 * ser-mingw.c (make_pipe_state): Likewise.
12206 * ser-pipe.c (pipe_open): Likewise.
12207 * serial.c (serial_open): Likewise.
12208 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12209 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12210 (tui_alloc_win_info): Likewise.
12211 (tui_add_content_elements): Likewise.
12212 * tui/tui-file.c (tui_file_new): Likewise.
12213 * tui/tui-out.c (tui_out_new): Likewise.
12214 * ui-file.c (mem_file_new): Likewise.
12215 * ui-out.c (push_level): Likewise.
12216 (make_cleanup_ui_out_end): Likewise.
12217 (append_header_to_list): Likewise.
12218 (ui_out_new): Likewise.
12219 * user-regs.c (user_reg_add_builtin): Likewise.
12220
12221 2014-01-13 Tom Tromey <tromey@redhat.com>
12222
12223 * defs.h (XZALLOC): Remove.
12224 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12225 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12226 (get_ada_tasks_inferior_data): Likewise.
12227 * auto-load.c (get_auto_load_pspace_data): Likewise.
12228 * auxv.c (get_auxv_inferior_data): Likewise.
12229 * bfd-target.c (target_bfd_reopen): Likewise.
12230 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12231 (deprecated_insert_raw_breakpoint): Likewise.
12232 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12233 * corelow.c (core_open): Likewise.
12234 * darwin-nat.c (darwin_check_new_threads): Likewise.
12235 (darwin_attach_pid): Likewise.
12236 * dummy-frame.c (dummy_frame_push): Likewise.
12237 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12238 * dwarf2loc.c (allocate_piece_closure): Likewise.
12239 * elfread.c (elf_symfile_segments): Likewise.
12240 * eval.c (ptrmath_type_p): Likewise.
12241 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12242 * gdbtypes.c (alloc_type_arch): Likewise.
12243 (alloc_type_instance): Likewise.
12244 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12245 * inf-child.c (inf_child_can_use_agent): Likewise.
12246 * inflow.c (get_inflow_inferior_data): Likewise.
12247 * infrun.c (save_infcall_suspend_state): Likewise.
12248 * jit.c (jit_reader_load): Likewise.
12249 (get_jit_objfile_data): Likewise.
12250 (get_jit_program_space_data): Likewise.
12251 (jit_object_open_impl): Likewise.
12252 (jit_symtab_open_impl): Likewise.
12253 (jit_block_open_impl): Likewise.
12254 (jit_frame_sniffer): Likewise.
12255 * linux-fork.c (add_fork): Likewise.
12256 * maint.c (make_command_stats_cleanup): Likewise.
12257 * objfiles.c (get_objfile_pspace_data): Likewise.
12258 * opencl-lang.c (struct lval_closure): Likewise.
12259 * osdata.c (osdata_start_osdata): Likewise.
12260 * progspace.c (new_address_space): Likewise.
12261 (add_program_space): Likewise.
12262 * remote-sim.c (get_sim_inferior_data): Likewise.
12263 * sh-tdep.c (sh_gdbarch_init): Likewise.
12264 * skip.c (Ignore): Likewise.
12265 (skip_delete_command): Likewise.
12266 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12267 (library_list_start_library): Likewise.
12268 (solib_aix_current_sos): Likewise.
12269 * solib-darwin.c (get_darwin_info): Likewise.
12270 (darwin_current_sos): Likewise.
12271 * solib-dsbt.c (get_dsbt_info): Likewise.
12272 * solib-ia64-hpux.c (new_so_list): Likewise.
12273 (ia64_hpux_get_solib_linkage_addr): Likewise.
12274 * solib-spu.c (append_ocl_sos): Likewise.
12275 (spu_current_sos): Likewise.
12276 * solib-svr4.c (get_svr4_info): Likewise.
12277 (svr4_keep_data_in_core): Likewise.
12278 (library_list_start_library): Likewise.
12279 (svr4_default_sos): Likewise.
12280 (svr4_read_so_list): Likewise.
12281 * solib-target.c (library_list_start_library): Likewise.
12282 (solib_target_current_sos): Likewise.
12283 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12284 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12285 * symfile.c (default_symfile_segments): Likewise.
12286 * target-descriptions.c (tdesc_data_init): Likewise.
12287 (tdesc_create_reg): Likewise.
12288 (struct tdesc_type *): Likewise.
12289 (tdesc_create_vector): Likewise.
12290 (tdesc_set_struct_size): Likewise.
12291 (struct tdesc_type *): Likewise.
12292 (tdesc_free_feature): Likewise.
12293 (tdesc_create_feature): Likewise.
12294 * windows-nat.c (windows_add_thread): Likewise.
12295 (windows_make_so): Likewise.
12296 * xml-support.c (gdb_xml_body_text): Likewise.
12297 (gdb_xml_create_parser_and_cleanup): Likewise.
12298 (xml_process_xincludes): Likewise.
12299 * xml-syscall.c (allocate_syscalls_info): Likewise.
12300 (syscall_create_syscall_desc): Likewise.
12301
12302 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12303
12304 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12305 function, with code from i386_stap_parse_special_token.
12306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12307 (i386_stap_parse_special_token): Move code to the two functions
12308 above; simplify it.
12309
12310 2014-01-09 Pedro Alves <palves@redhat.com>
12311 Hui Zhu <hui@codesourcery.com>
12312
12313 PR gdb/16101
12314 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12315 bp_err_string. Don't mark the location shlib_disabled if the
12316 error thrown wasn't a generic or memory error. Catch errors
12317 thrown while inserting breakpoints in overlayed code. Output
12318 error message of software breakpoints.
12319 * remote.c (remote_insert_breakpoint): If this breakpoint has
12320 target-side commands but this stub doesn't support Z0 packets,
12321 throw NOT_SUPPORTED_ERROR error.
12322 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12323 * target.h (target_insert_breakpoint): Extend comment.
12324 (target_insert_hw_breakpoint): Add comment.
12325
12326 2014-01-08 Pedro Alves <palves@redhat.com>
12327
12328 * remote.c (remote_add_thread): Add threads silently if starting
12329 up.
12330 (remote_notice_new_inferior): If in all-stop, and starting up,
12331 don't call notice_new_inferior.
12332 (get_current_thread): New function, factored out from ...
12333 (add_current_inferior_and_thread): ... this. Adjust.
12334 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12335 found any thread, then select the remote's current thread as GDB's
12336 current thread too.
12337
12338 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12339
12340 * NEWS: Create a new section for the next release branch.
12341 Rename the section of the current branch, now that it has
12342 been cut.
12343
12344 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12345
12346 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12347 * version.in: Bump version to 7.7.50.DATE-cvs.
12348
12349 2014-01-08 Yao Qi <yao@codesourcery.com>
12350
12351 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12352 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12353 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12354
12355 2014-01-08 Yao Qi <yao@codesourcery.com>
12356
12357 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12358 return value of bfd_get_filename to symbol_file_add_from_bfd.
12359
12360 2014-01-08 Pierre Muller <muller@sourceware.org>
12361
12362 Fix PR16201.
12363 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12364 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12365 to prim_record_mininal_symbol_and_info.
12366 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12367 in call to prim_record_minimal_symbol_and_info.
12368 (read_pe_exported_syms): Set index field of section_data.
12369
12370 2014-01-07 Andrew Pinski <apinski@cavium.com>
12371
12372 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12373 * features/aarch64.c: Regenerate.
12374
12375 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12376
12377 * target.c (return_null): Define.
12378 (update_current_target): Use it instead of return_zero for
12379 functions that return a pointer.
12380
12381 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12382
12383 * source.c (add_path): Fix check for duplicated paths in the previously
12384 included paths.
12385
12386 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12387
12388 * ada-lang.c: Remove duplicated include statements.
12389 * alphabsd-nat.c: Ditto.
12390 * amd64-darwin-tdep.c: Ditto.
12391 * amd64fbsd-nat.c: Ditto.
12392 * auto-load.c: Ditto.
12393 * ax-gdb.c: Ditto.
12394 * breakpoint.c: Ditto.
12395 * dbxread.c: Ditto.
12396 * fork-child.c: Ditto.
12397 * gdb_usleep.c: Ditto.
12398 * i386-darwin-tdep.c: Ditto.
12399 * i386fbsd-nat.c: Ditto.
12400 * infcmd.c: Ditto.
12401 * inferior.c: Ditto.
12402 * jv-lang.c: Ditto.
12403 * linux-nat.c: Ditto.
12404 * linux-tdep.c: Ditto.
12405 * m68kbsd-nat.c: Ditto.
12406 * m68klinux-nat.c: Ditto.
12407 * microblaze-tdep.c: Ditto.
12408 * mips-linux-tdep.c: Ditto.
12409 * mn10300-tdep.c: Ditto.
12410 * nto-tdep.c: Ditto.
12411 * opencl-lang.c: Ditto.
12412 * osdata.c: Ditto.
12413 * printcmd.c: Ditto.
12414 * regcache.c: Ditto.
12415 * remote-m32r-sdi.c: Ditto.
12416 * remote.c: Ditto.
12417 * symfile.c: Ditto.
12418 * symtab.c: Ditto.
12419 * tilegx-linux-nat.c: Ditto.
12420 * tilegx-tdep.c: Ditto.
12421 * tracepoint.c: Ditto.
12422 * valops.c: Ditto.
12423 * vaxbsd-nat.c: Ditto.
12424 * windows-nat.c: Ditto.
12425 * xtensa-tdep.c: Ditto.
12426
12427 2014-01-07 Yao Qi <yao@codesourcery.com>
12428
12429 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12430
12431 2014-01-07 Yao Qi <yao@codesourcery.com>
12432 Joel Brobecker <brobecker@adacore.com>
12433
12434 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12435 (pdc_write_regs): Likewise.
12436 (fetch_regs_kernel_thread): Likewise.
12437 (store_regs_kernel_thread): Likewise.
12438
12439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12440
12441 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12442 tagged type objects to their actual type.
12443
12444 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12445
12446 * ada-valprint.c (print_field_values): Add "language" parameter.
12447 Update calls to print_field_values and print_variant_part.
12448 Pass new parameter "language" in call to val_print instead
12449 of "current_language". Replace call to ada_val_print by call
12450 to val_print.
12451 (print_variant_part): Add "language" parameter.
12452 (ada_val_print_struct_union): Update call to print_field_values.
12453
12454 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12455
12456 * ada-valprint.c (ui_memcpy): Delete.
12457 (ada_print_floating): Update documentation. Add empty line
12458 between between function documentation and implementation.
12459 Delete variable "buffer". Use ui_file_xstrdup in place of
12460 ui_file_put. Minor adjustments following this change.
12461
12462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12463
12464 * ada-valprint.c (ada_val_print_string): New function,
12465 extracted from ada_val_print_array.
12466 (ada_val_print_array): Replace extracted code by call
12467 to ada_val_print_string followed by a return. Move
12468 "else" branch to the function's top block.
12469
12470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12471
12472 * ada-valprint.c (ada_val_print_array): Move implementation
12473 down. Rename parameter "offset" and "val" into "offset_aligned"
12474 and "original_value" respectively. Add parameter "offset".
12475
12476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12477
12478 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12479 re-organizing the code. Change the "???" message printed
12480 when target type is a TYPE_CODE_UNDEF into
12481 "<ref to undefined type>".
12482
12483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12484
12485 * ada-valprint.c (print_record): Delete, implementation inlined...
12486 (ada_val_print_struct_union): ... here. Remove call to
12487 ada_check_typedef in inlined implementation.
12488
12489 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12490
12491 * ada-valprint.c (ada_val_print_gnat_array): New function,
12492 extracted from ada_val_print_1;
12493 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12494 (ada_val_print_flt, ada_val_print_struct_union)
12495 (ada_val_print_ref): Likewise.
12496 (ada_val_print_1): Delete variables i and elttype.
12497 Replace extracted-out code by call to corresponding
12498 new functions.
12499
12500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12501
12502 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12503
12504 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12505
12506 * ada-valprint.c (ada_val_print_1): Replace calls to
12507 ada_val_print_1 by calls to val_print.
12508
12509 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12510
12511 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12512 Update calls to self accordingly. Replace calls to c_val_print
12513 by calls to val_print.
12514
12515 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12516
12517 * ada-valprint.c (print_record): Delete declaration.
12518 (adjust_type_signedness, ada_val_print_1): Likewise.
12519 (ada_val_print): Move function implementation down.
12520 (print_variant_part, print_field_values, print_record):
12521 Move function implementation up.
12522
12523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12524
12525 * python/py-type.c (typy_get_name): New function.
12526 (type_object_getset): Add entry for attribute "name".
12527 * NEWS: Add entry mentioning this new attribute.
12528
12529 2014-01-07 Yao Qi <yao@codesourcery.com>
12530
12531 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12532 statement.
12533
12534 2014-01-07 Yao Qi <yao@codesourcery.com>
12535
12536 * gnu-nat.c (info_port_rights): Add qualifier const to
12537 argument args.
12538
12539 2014-01-07 Yao Qi <yao@codesourcery.com>
12540
12541 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12542
12543 2014-01-07 Yao Qi <yao@codesourcery.com>
12544
12545 * gnu-nat.c (make_inf) Update declaration.
12546 (make_inf): Make it static.
12547 (inf_set_traced): Likewise.
12548 (inf_port_to_thread, inf_task_died_status): Likewise.
12549
12550 2014-01-07 Yao Qi <yao@codesourcery.com>
12551
12552 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12553
12554 2014-01-07 Yao Qi <yao@codesourcery.com>
12555
12556 * gnu-nat.c (_initialize_gnu_nat): Declare.
12557
12558 2014-01-07 Yao Qi <yao@codesourcery.com>
12559
12560 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12561 'enum bfd_endian'.
12562 (struct gdbarch_info) <byte_order>: Change type to
12563 'enum bfd_endian'.
12564 <byte_order_for_code>: Likewise.
12565 * gdbarch.c, gdbarch.h: Regenerated.
12566
12567 2014-01-06 Sasha Smundak <asmundak@google.com>
12568
12569 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12570
12571 2014-01-06 Tom Tromey <tromey@redhat.com>
12572
12573 * doublest.c (convert_doublest_to_floatformat): Use const, not
12574 CONST.
12575 * somread.c (som_symtab_read): Likewise.
12576
12577 2014-01-07 Hui Zhu <hui@codesourcery.com>
12578
12579 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12580 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12581 (gdb_bfd_fopen): Ditto.
12582 (gdb_bfd_openr): Ditto.
12583 (gdb_bfd_openw): Ditto.
12584 (gdb_bfd_openr_iovec): Ditto.
12585 (gdb_bfd_fdopenr): Ditto.
12586 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12587 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12588 with xstrdup.
12589 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12590 with xstrdup.
12591 * symfile-mem.c (symbol_file_add_from_memory): Removed
12592 gdb_bfd_stash_filename.
12593
12594 2014-01-03 Doug Evans <dje@google.com>
12595
12596 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12597 output.
12598
12599 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12600
12601 Update year range in copyright notice of all files.
12602
12603 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12604
12605 * top.c (print_gdb_version): Set copyright year to 2014.
12606
12607 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12608
12609 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12610
12611 For older changes see ChangeLog-2013.
12612 \f
12613 Local Variables:
12614 mode: change-log
12615 left-margin: 8
12616 fill-column: 74
12617 version-control: never
12618 coding: utf-8
12619 End: