Add myself as write-after-approval GDB maintainer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a1ada89a
JH
12014-09-09 James Hogan <james.hogan@imgtec.com>
2
3 * MAINTAINERS (Write After Approval): Add "James Hogan".
4
86db008d
JH
52014-09-09 James Hogan <james.hogan@imgtec.com>
6
7 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
8
72fde3df
JB
92014-09-09 Joel Brobecker <brobecker@adacore.com>
10
11 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
12
92d8d229
DE
132014-09-08 Doug Evans <xdje42@gmail.com>
14
15 PR 17247
16 * guile.c: #include <signal.h>.
17 (_initialize_guile): Block SIGCHLD while initializing Guile.
18
19 Replaces the following, which is reverted.
20
21 2014-07-26 Doug Evans <xdje42@gmail.com>
22
23 PR 17185
24 * configure.ac: Add check for header gc/gc.h.
25 Add check for function setenv.
26 * configure: Regenerate.
27 * config.in: Regenerate.
28 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
29
d81412aa
DE
302014-09-08 Doug Evans <xdje42@gmail.com>
31
32 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
33 with named constant. Fix style of pointer comparison.
34 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
35
a9f116cb
GKB
362014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
37
38 PR gdb/17035
39 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
40 decide whether we display the command on "show user".
41 * cli/cli-script.c (show_user_1): Only verify cmdlines after
42 printing command name.
43 * cli/cli-decode.h (cli_user_command_p): Declare new function.
44 * cli/cli-decode.c (cli_user_command_p): Create helper function
45 to verify whether cmd_list_element is a user-defined command.
46
c75bd3a2
JK
472014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 PR python/17355
50 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
51 Fix goto out of TRY_CATCH.
52
faa42425 532014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 54 Tom Tromey <tromey@redhat.com>
faa42425
DE
55
56 PR 15276
57 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
58 $_any_caller_matches.
59 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
60 * python/lib/gdb/function/caller_is.py: New file.
61
0d41ba00
DE
622014-09-06 Doug Evans <xdje42@gmail.com>
63
64 * infcmd.c (program_info): Fix typo.
65
474ca4f6
SDJ
662014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
67
68 PR gdb/17235
69 * stap-probe.c (stap_parse_single_operand): Delete unused variable
70 'number'. New variable 'has_digit'. Rewrite code to deal with
71 subexpressions on SDT probes.
72
ebf13736
PA
732014-09-04 Pedro Alves <palves@redhat.com>
74
75 * c-exp.y (parse_number): Skip handling base-switching prefixes if
76 the input is only one character long.
77
eb0b0463
SDJ
782014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
79
80 PR fortran/17237
81 * f-valprint.c (f_val_print): Specify the correct print option to
82 use when printing integer values.
83
5ee44bfa
GB
842014-09-04 Gary Benson <gbenson@redhat.com>
85
86 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
87 Remove code to cope with LWPs wrapped as PIDs.
88 Add assertions to ensure no wrapped LWPs are passed.
89
4875ffdb
PA
902014-09-04 Pedro Alves <palves@redhat.com>
91
92 * value.c (value_ranges_copy_adjusted): New function, factored out
93 from ...
94 (value_contents_copy_raw): ... here.
95 (unpack_value_bits_as_long_1): Rename back to ...
96 (unpack_bits_as_long): ... this. Remove 'original_value' and
97 'result' parameters. Change return type to LONGEST.
98 (unpack_value_bits_as_long): Delete.
99 (unpack_value_field_as_long_1): Delete.
100 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
101 (unpack_value_bitfield): New function.
102 (value_field_bitfield): Reimplement using unpack_value_bitfield.
103 (value_fetch_lazy): Use unpack_value_bitfield.
104 * value.h (unpack_value_bits_as_long): Delete declaration.
105
5f3b99cf
SS
1062014-09-03 Sasha Smundak <asmundak@google.com>
107
108 * python/py-frame.c (frapy_read_register): New function.
109
ac740bc7
JH
1102014-09-03 James Hogan <james.hogan@imgtec.com>
111
112 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
113 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
114
7d793aa9
SDJ
1152014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
116
117 PR python/16699
118 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
119 function.
120 (add_cmd): Set "completer_handle_brkchars" to NULL.
121 * cli/cli-decode.h (struct cmd_list_element)
122 <completer_handle_brkchars>: New field.
123 * command.h (completer_ftype_void): New typedef.
124 (set_cmd_completer_handle_brkchars): New prototype.
125 * completer.c (set_gdb_completion_word_break_characters): New
126 function.
127 (complete_line_internal): Call "completer_handle_brkchars"
128 callback from command.
129 * completer.h: Include "command.h".
130 (set_gdb_completion_word_break_characters): New prototype.
131 * python/py-cmd.c (cmdpy_completer_helper): New function.
132 (cmdpy_completer_handle_brkchars): New function.
133 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
134 (cmdpy_init): Set completer_handle_brkchars to
135 cmdpy_completer_handle_brkchars.
136
97ea6506
GB
1372014-09-03 Gary Benson <gbenson@redhat.com>
138
139 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
140 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
141 Loop conditions changed to equivalent form.
142 (struct x86_debug_reg_state): Updated dr_ref_count comment.
143 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
144 ALL_DEBUG_ADDRESS_REGISTERS.
145
d1437815
JB
1462014-09-03 Joel Brobecker <brobecker@adacore.com>
147
148 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
149 description fix.
150
9b94fcf1
DE
1512014-09-02 Doug Evans <dje@google.com>
152
153 * typeprint.c (find_global_typedef): Fix comment.
154
df7e5265
GB
1552014-09-02 Gary Benson <gbenson@redhat.com>
156
157 * i386-nat.h: Renamed as...
158 * x86-nat.h: New file. All type, function and variable name
159 prefixes changed from "i386_" to "x86_". All references updated.
160 * i386-nat.c: Renamed as...
161 * x86-nat.c: New file. All type, function and variable name
162 prefixes changed from "i386_" to "x86_". All references updated.
163 * common/i386-xstate.h: Renamed as...
164 * common/x86-xstate.h: New file. All type, function and variable
165 name prefixes changed from "i386_" to "x86_". All references
166 updated.
167 * nat/i386-cpuid.h: Renamed as...
168 * nat/x86-cpuid.h: New file. All type, function and variable name
169 prefixes changed from "i386_" to "x86_". All references updated.
170 * nat/i386-gcc-cpuid.h: Renamed as...
171 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
172 name prefixes changed from "i386_" to "x86_". All references
173 updated.
174 * nat/i386-dregs.h: Renamed as...
175 * nat/x86-dregs.h: New file. All type, function and variable name
176 prefixes changed from "i386_" to "x86_". All references updated.
177 * nat/i386-dregs.c: Renamed as...
178 * nat/x86-dregs.c: New file. All type, function and variable name
179 prefixes changed from "i386_" to "x86_". All references updated.
180
1c3569d4
MR
1812014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
182
183 * varobj.c (_initialize_varobj): Move to the end of file.
184
ff55e1b5
GB
1852014-08-29 Gary Benson <gbenson@redhat.com>
186
187 * common/common-exceptions.h: New file.
188 * common/common-exceptions.c: Likewise.
189 * Makefile.in (SFILES): Add common/common-exceptions.c.
190 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
191 (COMMON_OBS): Add common-exceptions.o.
192 (common-exceptions.o): New rule.
193 * exceptions.h (common-exceptions.h): Include.
194 (gdb_setjmp.h): Do not include.
195 (return_reason): Moved to common-exceptions.h.
196 (enum return_reason): Likewise.
197 (RETURN_MASK): Likewise.
198 (typedef return_mask): Likewise.
199 (enum errors): Likewise.
200 (struct gdb_exception): Likewise.
201 (exceptions_state_mc_init): Likewise.
202 (exceptions_state_mc_action_iter): Likewise.
203 (exceptions_state_mc_action_iter_1): Likewise.
204 (TRY_CATCH): Likewise.
205 (throw_exception): Likewise.
206 (throw_verror): Likewise.
207 (throw_vquit): Likewise.
208 (throw_error): Likewise.
209 (throw_quit): Likewise.
210 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
211 (enum catcher_action): Likewise.
212 (struct catcher): Likewise.
213 (current_catcher): Likewise.
214 (catcher_list_size): Likewise.
215 (exceptions_state_mc_init): Likewise.
216 (catcher_pop): Likewise.
217 (exceptions_state_mc): Likewise.
218 (exceptions_state_mc_action_iter): Likewise.
219 (exceptions_state_mc_action_iter_1): Likewise.
220 (throw_exception): Likewise.
221 (exception_messages): Likewise.
222 (exception_messages_size): Likewise.
223 (throw_it): Likewise.
224 (throw_verror): Likewise.
225 (throw_vquit): Likewise.
226 (throw_error): Likewise.
227 (throw_quit): Likewise.
228 (prepare_to_throw_exception): New function.
229
e9bcb658
GB
2302014-08-29 Gary Benson <gbenson@redhat.com>
231
232 * common/gdb_setjmp.h: New file.
233 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
234 * configure.ac: Move sigsetjmp check...
235 * common/common.m4: ...here.
236 * configure: Regenerate.
237 * cp-support.c (SIGJMP_BUF): Delete.
238 (SIGSETJMP): Likewise.
239 (SIGLONGJMP): Likewise.
240 * exceptions.h (gdb_setjmp.h): Include.
241 (setjmp.h): Do not include.
242 (EXCEPTIONS_SIGJMP_BUF): Delete.
243 (EXCEPTIONS_SIGSETJMP): Likewise.
244 (EXCEPTIONS_SIGLONGJMP): Likewise.
245 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
246 from gdb_setjmp.h.
247 * exceptions.c: Likewise.
248
e3180625
GB
2492014-08-29 Gary Benson <gbenson@redhat.com>
250
251 * cleanups.h: Moved to...
252 * common/cleanups.h: New file.
253 * cleanups.c: Moved to...
254 * common/cleanups.c: New file. Include common-defs.h and
255 cleanups.h. Do not include defs.h.
256 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
257 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
258 (cleanups.o): New rule.
259
e3d6ba5d
GB
2602014-08-29 Gary Benson <gbenson@redhat.com>
261
262 * common/errors.h (internal_warning): New declaration.
263 (internal_vwarning): Likewise.
264 * common/errors.c (internal_warning): New function.
265 * utils.h (internal_warning): Don't declare.
266 (internal_vwarning): Likewise.
267 * utils.c (internal_warning): Removed.
268
075c7033
GB
2692014-08-29 Gary Benson <gbenson@redhat.com>
270
271 * main.c (captured_main): Use warning during startup.
272 Prefix startup warning messages with command name.
273
91b35fd0
GB
2742014-08-29 Gary Benson <gbenson@redhat.com>
275
276 * main.c (captured_main): Handle usage errors with error.
277
b1ec390e
GB
2782014-08-29 Gary Benson <gbenson@redhat.com>
279
280 * go32-nat.c (go32_create_inferior): Replace a fprintf/
281 exit pair with a call to error. Wrap the message with _().
282
fd0ef3dd
GB
2832014-08-29 Gary Benson <gbenson@redhat.com>
284
285 * main.c (captured_main): Replace a fprintf/exit
286 pair with a call to error. Wrap the message with _().
287
e0e6bcab
GB
2882014-08-29 Gary Benson <gbenson@redhat.com>
289
290 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
291 pairs with calls to error. Wrap the message with _().
292
0d2f5c07
GB
2932014-08-29 Gary Benson <gbenson@redhat.com>
294
295 * utils.c (vwarning): Protect calls to target_terminal_ours
296 and wrap_here.
297
5df43998
GB
2982014-08-29 Gary Benson <gbenson@redhat.com>
299
300 * exceptions.c (print_flush): Protect calls to
301 target_terminal_ours and wrap_here.
302
2437fd32
GB
3032014-08-29 Gary Benson <gbenson@redhat.com>
304
305 * utils.h (filtered_printing_initialized): New declaration.
306 * utils.c (abort_with_message): New function.
307 (internal_vproblem): Use abort_with_message for first level
308 recursive internal problems, and if gdb_stderr is not set up.
309 Protect calls to target_terminal_ours, begin_line and query.
310
f1f58506
DE
3112014-08-28 Doug Evans <dje@google.com>
312
313 * symtab.c (in_prologue): Move definition to better spot.
314 (skip_prologue_using_sal): Ditto.
315
aab2f208
DE
3162014-08-28 Doug Evans <dje@google.com>
317
318 * symtab.c (find_function_start_sal): Move definition to better spot.
319
6b65d1b6
YQ
3202014-08-28 Yao Qi <yao@codesourcery.com>
321
322 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
323 found_stack_adjust in forward scan. Remove condition check
324 on found_stack_adjust which is always true. Indent the code.
325
a1b34d15
YQ
3262014-08-28 Yao Qi <yao@codesourcery.com>
327
328 * dwarf2read.c (dwarf_decode_lines): Update declaration.
329 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
330 (dwarf_decode_lines): Remove argument
331 want_line_info. Remove condition check on want_line_info.
332 Callers update.
333
d5962de5
DE
3342014-08-27 Doug Evans <dje@google.com>
335
336 * dwarf2read.c (dwarf_record_line): Fix typo.
337
9b139002
SDJ
3382014-08-27 Patrick Palka <patrick@parcs.ath.cx>
339
340 * target.h (struct target_ops::to_terminal_save_ours): Remove
341 declaration.
342 (target_terminal_save_ours): Remove macro.
343 * target-delegates.c: Regenerate.
344 * inf-child.c (inf_child_target): Don't set the nonexistent
345 field to_terminal_save_ours.
346 * inferior.h (child_terminal_save_ours): Remove declaration.
347 * terminal.h (gdb_save_tty_state): New declaration.
348 * inflow.c (child_terminal_save_ours): Rename to ...
349 (gdb_save_tty_state): ... this.
350 * tui/tui.c: Include terminal.h.
351 (tui_enable): Use gdb_save_tty_state instead of
352 target_terminal_save_ours.
353 (tui_disable): Likewise.
354
9debeba0
DE
3552014-08-25 Doug Evans <dje@google.com>
356
357 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
358 Pass NULL instead of 0 for context pointer.
359
428fc5fc
YQ
3602014-08-25 Yao Qi <yao@codesourcery.com>
361
362 * dwarf2read.c: Fix grammatical error.
363
cdc07690
YQ
3642014-08-24 Yao Qi <yao@codesourcery.com>
365
366 * dwarf2read.c (scan_partial_symbols): Update comments.
367 Rename argument 'need_pc' with 'set_addrmap'.
368 (add_partial_namespace): Rename argument 'need_pc' with
369 'set_addrmap'.
370 (add_partial_module): Likewise.
371 (add_partial_subprogram): Likewise. Update comments.
372 (dwarf2_name): Fix typo.
373
a05a36a5
DE
3742014-08-22 Doug Evans <dje@google.com>
375
376 PR 17276
377 * dwarf2read.c (dwarf_record_line_p): New function.
378 (dwarf_decode_lines_1): Ignore subsequent line number entries
379 for the same line if any entry had a non-zero discriminator.
380
252a6764
DE
3812014-08-22 Doug Evans <dje@google.com>
382
383 * buildsym.h (record_line_ftype): New typedef.
384 (record_line): Use it.
385 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
386 (dwarf_decode_lines_1): Call them.
387
510db052
YQ
3882014-08-22 Yao Qi <yao@codesourcery.com>
389
390 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
391 (ctf_end): Remove code.
392
22fd09ae
JK
3932014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
396 (linux_make_corefile_notes): call update_thread_list, protected against
397 exceptions.
398
656e8868
PA
3992014-08-21 Pedro Alves <palves@redhat.com>
400
401 * infcmd.c (attach_command): Remove comment.
402
de589d04
WN
4032014-08-21 Bin Cheng <bin.cheng@arm.com>
404
405 * aarch64-linux-nat.c (dr_changed_t): Change the type from
406 unsigned LONGEST to ULONGEST.
407
2a31c623
PA
4082014-08-20 Pedro Alves <palves@redhat.com>
409
410 * Makefile.in (check-read1): New rule.
411
d36430db
JB
4122014-08-20 Joel Brobecker <brobecker@adacore.com>
413
414 * value.c (value_from_contents_and_address): Strip resolved_type's
415 typedef layers before checking its TYPE_DATA_LOCATION.
416
000339af
PA
4172014-08-20 Pedro Alves <palves@redhat.com>
418
419 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
420
5f52445b
YQ
4212014-08-20 Yao Qi <yao@codesourcery.com>
422
423 * amd64-tdep.c (amd64_classify): Add a blank line after the
424 example. Move "*/" to a new line.
425 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
426 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
427 * dwarf2read.c (psymtab_include_file_name): Likewise.
428
9a0dc9e3
PA
4292014-08-19 Andrew Burgess <aburgess@broadcom.com>
430 Pedro Alves <palves@redhat.com>
431
432 PR symtab/14604
433 PR symtab/14605
434 * ada-lang.c (coerce_unspec_val_to_type): Use
435 value_contents_copy_raw.
436 * ada-valprint.c (val_print_packed_array_elements): Adjust.
437 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
438 * cp-valprint.c (cp_print_value_fields): Let the common printing
439 code handle optimized out values.
440 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
441 * d-valprint.c (dynamic_array_type): Use
442 value_bits_any_optimized_out.
443 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
444 check_any_valid fields.
445 (check_pieced_value_bits): Delete and inline ...
446 (check_pieced_synthetic_pointer): ... here.
447 (check_pieced_value_validity): Delete.
448 (check_pieced_value_invalid): Delete.
449 (pieced_value_funcs): Remove check_validity and check_any_valid
450 fields.
451 (read_pieced_value): Use mark_value_bits_optimized_out.
452 (write_pieced_value): Switch to use
453 mark_value_bytes_optimized_out.
454 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
455 of assuming the whole value is optimized out.
456 * findvar.c (read_frame_register_value): Remove special handling
457 of optimized out registers.
458 (value_from_register): Use mark_value_bytes_optimized_out.
459 * frame-unwind.c (frame_unwind_got_optimized): Use
460 mark_value_bytes_optimized_out.
461 * jv-valprint.c (java_value_print): Adjust.
462 (java_print_value_fields): Let the common printing code handle
463 optimized out values.
464 * mips-tdep.c (mips_print_register): Remove special handling of
465 optimized out registers.
466 * opencl-lang.c (lval_func_check_validity): Delete.
467 (lval_func_check_any_valid): Delete.
468 (opencl_value_funcs): Remove check_validity and check_any_valid
469 fields.
470 * p-valprint.c (pascal_object_print_value_fields): Let the common
471 printing code handle optimized out values.
472 * stack.c (read_frame_arg): Remove special handling of optimized
473 out values. Fetch both VAL and ENTRYVAL before comparing
474 contents. Adjust to value_available_contents_eq rename.
475 * valprint.c (valprint_check_validity)
476 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
477 (val_print_array_elements): Adjust.
478 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
479 (value_bits_any_optimized_out): New function.
480 (value_entirely_covered_by_range_vector): New function, factored
481 out from value_entirely_unavailable.
482 (value_entirely_unavailable): Reimplement.
483 (value_entirely_optimized_out): New function.
484 (insert_into_bit_range_vector): New function, factored out from
485 mark_value_bits_unavailable.
486 (mark_value_bits_unavailable): Reimplement.
487 (struct ranges_and_idx): New struct.
488 (find_first_range_overlap_and_match): New function, factored out
489 from value_available_contents_bits_eq.
490 (value_available_contents_bits_eq): Rename to ...
491 (value_contents_bits_eq): ... this. Check both unavailable
492 contents and optimized out contents.
493 (value_available_contents_eq): Rename to ...
494 (value_contents_eq): ... this.
495 (allocate_value_lazy): Remove reference to the old optimized_out
496 boolean.
497 (allocate_optimized_out_value): Use
498 mark_value_bytes_optimized_out.
499 (require_not_optimized_out): Adjust to check whether the
500 optimized_out vec is empty.
501 (ranges_copy_adjusted): New function, factored out from
502 value_contents_copy_raw.
503 (value_contents_copy_raw): Also copy the optimized out ranges.
504 Assert the destination ranges aren't optimized out.
505 (value_contents_copy): Update comment, remove call to
506 require_not_optimized_out.
507 (value_contents_equal): Adjust to check whether the optimized_out
508 vec is empty.
509 (set_value_optimized_out, value_optimized_out_const): Delete.
510 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
511 New functions.
512 (value_entirely_optimized_out, value_bits_valid): Delete.
513 (value_copy): Take a VEC copy of the 'optimized_out' field.
514 (value_primitive_field): Remove special handling of optimized out.
515 (value_fetch_lazy): Assert that lazy values have no unavailable
516 regions. Use value_bits_any_optimized_out. Remove some special
517 handling for optimized out values.
518 * value.h: Add intro comment about <optimized out> and
519 <unavailable>.
520 (struct lval_funcs): Remove check_validity and check_any_valid
521 fields.
522 (set_value_optimized_out, value_optimized_out_const): Remove.
523 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
524 New declarations.
525 (value_bits_any_optimized_out): New declaration.
526 (value_bits_valid): Delete declaration.
527 (value_available_contents_eq): Rename to ...
528 (value_contents_eq): ... this, and extend comments.
529
6694c411
JK
5302014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
531
532 Fix -fsanitize=address on unreadable inferior strings.
533 * valprint.c (val_print_string): Fix access before BUFFER.
534
89a1c21a
SM
5352014-08-19 Simon Marchi <simon.marchi@ericsson.com>
536
537 * target.c (target_struct_size): Remove.
538 (target_struct_allocsize): Remove.
539 (DEFAULT_ALLOCSIZE): Remove.
540 (target_ops_p): New typedef.
541 (DEF_VEC_P (target_ops_p)): New vector type.
542 (target_structs): Change type to VEC (target_ops_p).
543 (add_target_with_completer): Replace "push" code by VEC_safe_push.
544 (find_default_run_target): Rewrite for loop following changes to
545 target_structs.
546
cb417230
JB
5472014-08-19 Joel Brobecker <brobecker@adacore.com>
548
549 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
550 Adjust code accordingly. Adjust function description comment.
551
817e0957
YQ
5522014-08-19 Yao Qi <yao@codesourcery.com>
553
554 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
555 types.
556
2974be62
AM
5572014-08-19 Alan Modra <amodra@gmail.com>
558
559 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
560 * config.in: Regenerate.
561 * configure: Regenerate.
562
34abf635
GB
5632014-08-19 Tom Tromey <tromey@redhat.com>
564 Gary Benson <gbenson@redhat.com>
565
566 * common/common-debug.h: New file.
567 * common/common-debug.c: Likewise.
568 * debug.c: Likewise.
569 * Makefile.in (SFILES): Add common/common-debug.c.
570 (HFILES_NO_SRCDIR): Add common/common-debug.h.
571 (COMMON_OBS): Add common-debug.o and debug.o.
572 (common-debug.o): New rule.
573 * common/common-defs.h: Include common-debug.h.
574 * common/agent.c (debug_agent_printf): New function.
575 (DEBUG_AGENT): Redefine.
576 * nat/i386-dregs.c (debug_printf): Undefine.
577
f6e94d78
GB
5782014-08-19 Gary Benson <gbenson@redhat.com>
579
580 * common/common-defs.h: Include print-utils.h.
581 * utils.h: Do not include print-utils.h.
582
9239eeab
GB
5832014-08-19 Tom Tromey <tromey@redhat.com>
584 Gary Benson <gbenson@redhat.com>
585
586 * common/common-types.h: New file.
587 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
588 * common/common-defs.h: Include common-types.h.
589 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
590 (ULONGEST): Remove.
591
ef87c8bb
GB
5922014-08-19 Tom Tromey <tromey@redhat.com>
593 Gary Benson <gbenson@redhat.com>
594
595 * common/errors.h: New file.
596 * common/errors.c: Likewise.
597 * Makefile.in (SFILES): Add common/errors.c.
598 (HFILES_NO_SRCDIR): Add common/errors.h.
599 (COMMON_OBS): Add errors.o.
600 (errors.o): New rule.
601 * common/common-defs.h: Include errors.h.
602 * utils.h (perror_with_name, error, verror, warning, vwarning):
603 Don't declare.
604 * common/common-utils.h: (malloc_failure, internal_error):
605 Likewise.
606
196a707b
GB
6072014-08-19 Gary Benson <gbenson@redhat.com>
608
609 * utils.c (internal_vproblem): Always print the message.
610
ded4fc8f
DE
6112014-08-18 Doug Evans <dje@google.com>
612
613 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
614
950c97d8
JB
6152014-08-18 Joel Brobecker <brobecker@adacore.com>
616
617 * ada-typeprint.c (type_is_full_subrange_of_target_type):
618 Return 0 if TYPE is dynamic.
619 (print_range): Add handling of dynamic ranges.
620
3cdcd0ce
JB
6212014-08-18 Keven Boell <keven.boell@intel.com>
622 Joel Brobecker <brobecker@adacore.com>
623
624 * gdbtypes.h (struct main_type): Add field "data_location".
625 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
626 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
627 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
628 a dynamic data location.
629 (resolve_dynamic_type): Add DW_AT_data_location handling.
630 (copy_recursive, copy_type): Copy the data_location information
631 when present.
632 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
633 * value.c (value_from_contents_and_address): Add
634 DW_AT_data_location handling.
635
08412b07
JB
6362014-08-18 Keven Boell <keven.boell@intel.com>
637 Joel Brobecker <brobecker@adacore.com>
638
639 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
640 field "get_object_address".
641 * dwarf2expr.c (execute_stack_op): Add handling for
642 DW_OP_push_object_address.
643 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
644 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
645 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
646 (dwarf_expr_get_obj_addr): New function.
647 (dwarf_expr_ctx_funcs): Add get_object_address field.
648 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
649 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
650 (dwarf2_evaluate_property): Add parameter "address". Use it.
651 (needs_get_obj_addr): New function.
652 (needs_frame_ctx_funcs): Add get_object_address field.
653 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
654 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
655 (resolve_dynamic_array): Likewise.
656
84754697
JB
6572014-08-18 Joel Brobecker <brobecker@adacore.com>
658
659 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
660 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
661 fixed value for records and unions for which some GNAT encodings
662 are present.
663
da5c522f
JB
6642014-08-18 Joel Brobecker <brobecker@adacore.com>
665
666 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
667 rewrite to avoid "else if" and "else" constructs. Should be
668 a no-op in practice.
669
0d72a7c3
JB
6702014-08-18 Joel Brobecker <brobecker@adacore.com>
671
672 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
673 of lexical block.
674
e66d4446
SC
6752014-08-15 Siva Chandra Reddy <sivachandra@google.com>
676
677 PR c++/17132
678 * eval.c: Update all calls to find_overload_match.
679 * valarith.c: Likewise.
680 (value_user_defined_cpp_op, value_user_defined_op): New
681 argument NOSIDE. Update all callers.
682 * valops.c (find_overload_match): New argument NOSIDE.
683 * value.h (find_overload_match): Update signature.
684
940df408
SC
6852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
686
687 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
688 'items' methods instead of 'iteritems' method on dictionaries.
689
699ca60a
DE
6902014-08-15 Doug Evans <dje@google.com>
691
692 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
693 closer to use.
694
37780ee5
DE
6952014-08-15 Doug Evans <dje@google.com>
696
697 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
698
0ad93d4f
DE
6992014-08-15 Doug Evans <dje@google.com>
700
701 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
702
20d8c372
DE
7032014-08-15 Doug Evans <dje@google.com>
704
705 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
706 unused.
707
cb039ba4
EZ
7082014-08-15 Eli Zaretskii <eliz@gnu.org>
709
710 * dcache.h: Include target.h, to avoid compile time warnings.
711
eb7a547a
JB
7122014-08-15 Joel Brobecker <brobecker@adacore.com>
713
714 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
715 frame_info" partial declaration.
716 * gdbarch.h: Regenerate.
717
783cecc8
YQ
7182014-08-15 Yao Qi <yao@codesourcery.com>
719
720 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
721 Add parameter 'decode_for_pst_p'. Callers update.
722
65c749e7
YQ
7232014-08-13 Yao Qi <yao@codesourcery.com>
724
725 PR build/17104
726 * configure.ac: Use local variable 'pos'.
727 * configure: Regenerated.
728
d769e349
DE
7292014-08-11 Doug Evans <dje@google.com>
730
731 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
732 message, it is redundant with "Reading symbols from ..." message.
733
24f1235e
DE
7342014-08-10 Doug Evans <xdje42@gmail.com>
735
736 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
737
dcd2e6ef
YQ
7382014-08-09 Yao Qi <yao@codesourcery.com>
739
740 PR remote/9053
741 * remote.c (remote_xfer_partial): Remove dead code.
742
070bdf0b
AA
7432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
744
745 * ia64-linux-tdep.c: Include "regset.h".
746 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
747 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
748 (ia64_linux_supply_fpregset): New function.
749 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
750 (ia64_linux_regset_from_core_section): New function.
751 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
752 method.
753
08f9f542
AA
7542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * m68klinux-tdep.c: Include "regset.h".
757 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
758 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
759 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
760 (m68k_linux_regset_from_core_section): New function.
761 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
762 method.
763
8f1cee41
AA
7642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
765
766 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
767 function. Move logic to...
768 (tilegx_linux_regmap): ... this new register map.
769 (tilegx_linux_regset): Refer to register map, replace supply
770 method by regcache_supply_regset, and add collect method.
771 * tilegx-tdep.h (enum tilegx_regnum): New enum value
772 TILEGX_FIRST_EASY_REGNUM.
773
c5741217
AA
7742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
775
776 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
777 that calls regcache_supply_regset and handles the EPC register
778 separately. Move main logic to...
779 (score7_linux_gregmap): ... this new register map.
780 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
781 (score7_linux_gregset): Refer to register map. Add collect method.
782 (score7_linux_regset_from_core_section): Replace
783 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
784 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
785 (struct regset): Delete unused forward declaraction.
786 (struct pt_regs): Delete structure definition.
787 (elf_gregset_t): Delete typedef.
788
81580573
AA
7892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
790
791 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
792 (nios2_core_regset): Add collect method.
793
ba199d7d
AA
7942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
795
796 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
797 platform-independent and don't write to read-only input buffer.
798 (m32r_linux_collect_gregset): New function.
799 (m32r_linux_gregset): Add collect method.
800
0006a9da
AA
8012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
802
803 * hppa-linux-tdep.c (greg_map): Rename to...
804 (hppa_linux_gregmap): ... this. Also convert to
805 regcache_map_entry format.
806 (hppa_linux_supply_regset): Delete function.
807 (hppa_linux_supply_fpregset): Delete function. Move logic to...
808 (hppa_linux_fpregmap): ... this new register map.
809 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
810 register map, replace supply method by regcache_supply_regset, and
811 add collect method regcache_collect_regset.
812
901e1b23
AA
8132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
814
815 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
816 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
817 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
818 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
819 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
820 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
821 (frv_linux_supply_gregset): Replace main logic by call to
822 regcache_supply_regset, but keep clearing gr32-gr63.
823 (frv_linux_supply_fpregset): Delete function.
824 (frv_linux_gregset): Refer to appropriate register map and add
825 regcache_collect_regset as the collect method.
826 (frv_linux_fpregset): Likewise. Also exchange the supply method
827 by regcache_supply_regset.
828
1d6e7555
AA
8292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
830
831 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
832 by call to alpha_supply_int_regs.
833 (alpha_linux_collect_gregset): New function.
834 (alpha_linux_supply_fpregset): Replace logic by call to
835 alpha_supply_fp_regs.
836 (alpha_linux_collect_fpregset): New function.
837 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
838
d4d793bf
AA
8392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
840
841 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
842 by call to regcache_collect_regset.
843 (supply_gregset, supply_fpregset): Call regcache_supply_regset
844 instead of aarch64_linux_supply_gregset/_fpregset.
845 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
846 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
847 header file instead.
848 (aarch64_linux_supply_gregset, supply_gregset_from_core)
849 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
850 functions. Move logic to ...
851 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
852 register maps.
853 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
854 refer to new register maps, replace *_regset_from_core by
855 regcache_supply_regset, and also use regcache_collect_regset.
856 * aarch64-linux-tdep.h: Include "regset.h".
857 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
858 Delete prototypes.
859 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
860 macros, moved from C source file.
861 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
862 variable declarations.
863
99b7da5d
AA
8642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
865
866 * s390-linux-nat.c: Include "regset.h".
867 (regmap_gregset): Delete macro.
868 (s390_64_regmap_gregset): New register map for
869 regcache_supply/_collect_regset.
870 (s390_64_gregset): New regset.
871 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
872 (regmap_fpregset): Delete macro.
873 (s390_native_supply, s390_native_collect): Delete functions.
874 (supply_gregset, fill_gregset): Replace s390-specific regmap
875 handling by a call to regcache_supply/_collect_regset.
876 (supply_fpregset, fill_fpregset): Call regcache_supply/
877 _collect_regset instead of s390_native_supply/_collect.
878 (fetch_regset, store_regset): Likewise. Also change the last
879 parameter to a regset instead of a regmap.
880 (s390_linux_fetch_inferior_registers)
881 (390_linux_store_inferior_registers): Adjust last parameter in
882 calls to fetch_regset and store_regset.
883 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
884 (s390_gregmap): ... this. Also make static const and convert to
885 regcache_map_entry format.
886 (s390x_regmap_gregset): Delete.
887 (s390_regmap_fpregset): Rename to...
888 (s390_fpregmap): ... this. Make static const and convert to
889 regcache_map_entry format.
890 (s390_regmap_upper, s390_regmap_last_break)
891 (s390x_regmap_last_break, s390_regmap_system_call)
892 (s390_regmap_tdb): Likewise.
893 (s390_supply_regset, s390_collect_regset): Remove functions.
894 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
895 s390_supply_regset.
896 (s390_gregset, s390_fpregset, s390_upper_regset)
897 (s390_last_break_regset, s390x_last_break_regset)
898 (s390_system_call_regset, s390_tdb_regset): Make global and
899 replace s390_supply/_collect_regset by regcache_supply/
900 _collect_regset.
901 (s390x_gregset): Delete.
902 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
903 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
904 (s390_regmap_fpregset, s390_regmap_last_break)
905 (s390x_regmap_last_break, s390_regmap_system_call)
906 (s390_regmap_tdb): Delete global variable declarations.
907 (s390_gregset, s390_fpregset, s390_last_break_regset)
908 (s390x_last_break_regset, s390_system_call_regset)
909 (s390_tdb_regset): New global variable declarations.
910
0b309272
AA
9112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
912
913 * regcache.c: Include "regset.h".
914 (regcache_transfer_regset): New local function.
915 (regcache_supply_regset, regcache_collect_regset): New functions.
916 * regcache.h (struct regcache_map_entry): New structure.
917 (REGCACHE_MAP_SKIP): New enum value.
918 (regcache_supply_regset, regcache_collect_regset): New prototypes.
919
7fefa8d7
AA
9202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
921
922 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
923 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
924 (ppc_linux_collect_gregset ): Likewise.
925 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
926 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
927 (ppc_collect_vrregset): Likewise.
928 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
929 Likewise.
930
96c4f946
YQ
9312014-08-07 Yao Qi <yao@codesourcery.com>
932
933 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
934 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
935 * remote.c (remote_read_bytes): Likewise.
936
fffbe6a8
YQ
9372014-08-07 Yao Qi <yao@codesourcery.com>
938
939 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
940
5ee8a82c
YQ
9412014-08-07 Yao Qi <yao@codesourcery.com>
942
943 PR remote/17230
944 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
945 TARGET_XFER_OK instead of 0.
946
bb974a24
GB
9472014-08-07 Gary Benson <gbenson@redhat.com>
948
949 * common/common-defs.h: Include errno.h.
950 * defs.h: Do not include errno.h.
951 * ada-typeprint.c: Likewise.
952 * c-typeprint.c: Likewise.
953 * core-regset.c: Likewise.
954 * corefile.c: Likewise.
955 * corelow.c: Likewise.
956 * event-loop.c: Likewise.
957 * f-typeprint.c: Likewise.
958 * gnu-nat.c: Likewise.
959 * go32-nat.c: Likewise.
960 * i386gnu-nat.c: Likewise.
961 * m2-typeprint.c: Likewise.
962 * nat/linux-btrace.c: Likewise.
963 * p-typeprint.c: Likewise.
964 * procfs.c: Likewise.
965 * remote-sim.c: Likewise.
966 * rs6000-nat.c: Likewise.
967 * target.c: Likewise.
968 * typeprint.c: Likewise.
969 * ui-file.c: Likewise.
970 * valops.c: Likewise.
971 * valprint.c: Likewise.
972
6d3d12eb
GB
9732014-08-07 Gary Benson <gbenson@redhat.com>
974
975 * common/common-defs.h: Include string.h.
976 * aarch64-tdep.c: Do not include string.h.
977 * ada-exp.y: Likewise.
978 * ada-lang.c: Likewise.
979 * ada-lex.l: Likewise.
980 * ada-typeprint.c: Likewise.
981 * ada-valprint.c: Likewise.
982 * aix-thread.c: Likewise.
983 * alpha-linux-tdep.c: Likewise.
984 * alpha-mdebug-tdep.c: Likewise.
985 * alpha-nat.c: Likewise.
986 * alpha-osf1-tdep.c: Likewise.
987 * alpha-tdep.c: Likewise.
988 * alphanbsd-tdep.c: Likewise.
989 * amd64-dicos-tdep.c: Likewise.
990 * amd64-linux-tdep.c: Likewise.
991 * amd64-nat.c: Likewise.
992 * amd64-sol2-tdep.c: Likewise.
993 * amd64fbsd-tdep.c: Likewise.
994 * amd64obsd-tdep.c: Likewise.
995 * arch-utils.c: Likewise.
996 * arm-linux-nat.c: Likewise.
997 * arm-linux-tdep.c: Likewise.
998 * arm-tdep.c: Likewise.
999 * arm-wince-tdep.c: Likewise.
1000 * armbsd-tdep.c: Likewise.
1001 * armnbsd-nat.c: Likewise.
1002 * armnbsd-tdep.c: Likewise.
1003 * armobsd-tdep.c: Likewise.
1004 * avr-tdep.c: Likewise.
1005 * ax-gdb.c: Likewise.
1006 * ax-general.c: Likewise.
1007 * bcache.c: Likewise.
1008 * bfin-tdep.c: Likewise.
1009 * breakpoint.c: Likewise.
1010 * build-id.c: Likewise.
1011 * buildsym.c: Likewise.
1012 * c-exp.y: Likewise.
1013 * c-lang.c: Likewise.
1014 * c-typeprint.c: Likewise.
1015 * c-valprint.c: Likewise.
1016 * charset.c: Likewise.
1017 * cli-out.c: Likewise.
1018 * cli/cli-cmds.c: Likewise.
1019 * cli/cli-decode.c: Likewise.
1020 * cli/cli-dump.c: Likewise.
1021 * cli/cli-interp.c: Likewise.
1022 * cli/cli-logging.c: Likewise.
1023 * cli/cli-script.c: Likewise.
1024 * cli/cli-setshow.c: Likewise.
1025 * cli/cli-utils.c: Likewise.
1026 * coffread.c: Likewise.
1027 * common/agent.c: Likewise.
1028 * common/buffer.c: Likewise.
1029 * common/buffer.h: Likewise.
1030 * common/common-utils.c: Likewise.
1031 * common/filestuff.c: Likewise.
1032 * common/filestuff.c: Likewise.
1033 * common/format.c: Likewise.
1034 * common/print-utils.c: Likewise.
1035 * common/rsp-low.c: Likewise.
1036 * common/signals.c: Likewise.
1037 * common/vec.h: Likewise.
1038 * common/xml-utils.c: Likewise.
1039 * core-regset.c: Likewise.
1040 * corefile.c: Likewise.
1041 * corelow.c: Likewise.
1042 * cp-abi.c: Likewise.
1043 * cp-name-parser.y: Likewise.
1044 * cp-support.c: Likewise.
1045 * cp-valprint.c: Likewise.
1046 * cris-tdep.c: Likewise.
1047 * d-exp.y: Likewise.
1048 * darwin-nat.c: Likewise.
1049 * dbxread.c: Likewise.
1050 * dcache.c: Likewise.
1051 * demangle.c: Likewise.
1052 * dicos-tdep.c: Likewise.
1053 * disasm.c: Likewise.
1054 * doublest.c: Likewise.
1055 * dsrec.c: Likewise.
1056 * dummy-frame.c: Likewise.
1057 * dwarf2-frame.c: Likewise.
1058 * dwarf2loc.c: Likewise.
1059 * dwarf2read.c: Likewise.
1060 * elfread.c: Likewise.
1061 * environ.c: Likewise.
1062 * eval.c: Likewise.
1063 * event-loop.c: Likewise.
1064 * exceptions.c: Likewise.
1065 * exec.c: Likewise.
1066 * expprint.c: Likewise.
1067 * f-exp.y: Likewise.
1068 * f-lang.c: Likewise.
1069 * f-typeprint.c: Likewise.
1070 * f-valprint.c: Likewise.
1071 * fbsd-nat.c: Likewise.
1072 * findcmd.c: Likewise.
1073 * findvar.c: Likewise.
1074 * fork-child.c: Likewise.
1075 * frame.c: Likewise.
1076 * frv-linux-tdep.c: Likewise.
1077 * frv-tdep.c: Likewise.
1078 * gdb.c: Likewise.
1079 * gdb_bfd.c: Likewise.
1080 * gdbarch.c: Likewise.
1081 * gdbarch.sh: Likewise.
1082 * gdbtypes.c: Likewise.
1083 * gnu-nat.c: Likewise.
1084 * gnu-v2-abi.c: Likewise.
1085 * gnu-v3-abi.c: Likewise.
1086 * go-exp.y: Likewise.
1087 * go-lang.c: Likewise.
1088 * go32-nat.c: Likewise.
1089 * guile/guile.c: Likewise.
1090 * guile/scm-auto-load.c: Likewise.
1091 * hppa-hpux-tdep.c: Likewise.
1092 * hppa-linux-nat.c: Likewise.
1093 * hppanbsd-tdep.c: Likewise.
1094 * hppaobsd-tdep.c: Likewise.
1095 * i386-cygwin-tdep.c: Likewise.
1096 * i386-dicos-tdep.c: Likewise.
1097 * i386-linux-tdep.c: Likewise.
1098 * i386-nto-tdep.c: Likewise.
1099 * i386-sol2-tdep.c: Likewise.
1100 * i386-tdep.c: Likewise.
1101 * i386bsd-tdep.c: Likewise.
1102 * i386gnu-nat.c: Likewise.
1103 * i386nbsd-tdep.c: Likewise.
1104 * i386obsd-tdep.c: Likewise.
1105 * i387-tdep.c: Likewise.
1106 * ia64-libunwind-tdep.c: Likewise.
1107 * ia64-linux-nat.c: Likewise.
1108 * inf-child.c: Likewise.
1109 * inf-ptrace.c: Likewise.
1110 * inf-ttrace.c: Likewise.
1111 * infcall.c: Likewise.
1112 * infcmd.c: Likewise.
1113 * inflow.c: Likewise.
1114 * infrun.c: Likewise.
1115 * interps.c: Likewise.
1116 * iq2000-tdep.c: Likewise.
1117 * irix5-nat.c: Likewise.
1118 * jv-exp.y: Likewise.
1119 * jv-lang.c: Likewise.
1120 * jv-typeprint.c: Likewise.
1121 * jv-valprint.c: Likewise.
1122 * language.c: Likewise.
1123 * linux-fork.c: Likewise.
1124 * linux-nat.c: Likewise.
1125 * lm32-tdep.c: Likewise.
1126 * m2-exp.y: Likewise.
1127 * m2-typeprint.c: Likewise.
1128 * m32c-tdep.c: Likewise.
1129 * m32r-linux-nat.c: Likewise.
1130 * m32r-linux-tdep.c: Likewise.
1131 * m32r-rom.c: Likewise.
1132 * m32r-tdep.c: Likewise.
1133 * m68hc11-tdep.c: Likewise.
1134 * m68k-tdep.c: Likewise.
1135 * m68kbsd-tdep.c: Likewise.
1136 * m68klinux-nat.c: Likewise.
1137 * m68klinux-tdep.c: Likewise.
1138 * m88k-tdep.c: Likewise.
1139 * machoread.c: Likewise.
1140 * macrocmd.c: Likewise.
1141 * main.c: Likewise.
1142 * mdebugread.c: Likewise.
1143 * mem-break.c: Likewise.
1144 * memattr.c: Likewise.
1145 * memory-map.c: Likewise.
1146 * mep-tdep.c: Likewise.
1147 * mi/mi-cmd-break.c: Likewise.
1148 * mi/mi-cmd-disas.c: Likewise.
1149 * mi/mi-cmd-env.c: Likewise.
1150 * mi/mi-cmd-stack.c: Likewise.
1151 * mi/mi-cmd-var.c: Likewise.
1152 * mi/mi-cmds.c: Likewise.
1153 * mi/mi-console.c: Likewise.
1154 * mi/mi-getopt.c: Likewise.
1155 * mi/mi-interp.c: Likewise.
1156 * mi/mi-main.c: Likewise.
1157 * mi/mi-parse.c: Likewise.
1158 * microblaze-rom.c: Likewise.
1159 * microblaze-tdep.c: Likewise.
1160 * mingw-hdep.c: Likewise.
1161 * minidebug.c: Likewise.
1162 * minsyms.c: Likewise.
1163 * mips-irix-tdep.c: Likewise.
1164 * mips-linux-tdep.c: Likewise.
1165 * mips-tdep.c: Likewise.
1166 * mips64obsd-tdep.c: Likewise.
1167 * mipsnbsd-tdep.c: Likewise.
1168 * mipsread.c: Likewise.
1169 * mn10300-linux-tdep.c: Likewise.
1170 * mn10300-tdep.c: Likewise.
1171 * monitor.c: Likewise.
1172 * moxie-tdep.c: Likewise.
1173 * mt-tdep.c: Likewise.
1174 * nat/linux-btrace.c: Likewise.
1175 * nat/linux-osdata.c: Likewise.
1176 * nat/linux-procfs.c: Likewise.
1177 * nat/linux-ptrace.c: Likewise.
1178 * nat/linux-waitpid.c: Likewise.
1179 * nbsd-tdep.c: Likewise.
1180 * nios2-linux-tdep.c: Likewise.
1181 * nto-procfs.c: Likewise.
1182 * nto-tdep.c: Likewise.
1183 * objc-lang.c: Likewise.
1184 * objfiles.c: Likewise.
1185 * opencl-lang.c: Likewise.
1186 * osabi.c: Likewise.
1187 * osdata.c: Likewise.
1188 * p-exp.y: Likewise.
1189 * p-lang.c: Likewise.
1190 * p-typeprint.c: Likewise.
1191 * parse.c: Likewise.
1192 * posix-hdep.c: Likewise.
1193 * ppc-linux-nat.c: Likewise.
1194 * ppc-sysv-tdep.c: Likewise.
1195 * ppcfbsd-tdep.c: Likewise.
1196 * ppcnbsd-tdep.c: Likewise.
1197 * ppcobsd-tdep.c: Likewise.
1198 * printcmd.c: Likewise.
1199 * procfs.c: Likewise.
1200 * prologue-value.c: Likewise.
1201 * python/py-auto-load.c: Likewise.
1202 * python/py-gdb-readline.c: Likewise.
1203 * ravenscar-thread.c: Likewise.
1204 * regcache.c: Likewise.
1205 * registry.c: Likewise.
1206 * remote-fileio.c: Likewise.
1207 * remote-m32r-sdi.c: Likewise.
1208 * remote-mips.c: Likewise.
1209 * remote-notif.c: Likewise.
1210 * remote-sim.c: Likewise.
1211 * remote.c: Likewise.
1212 * reverse.c: Likewise.
1213 * rs6000-aix-tdep.c: Likewise.
1214 * ser-base.c: Likewise.
1215 * ser-go32.c: Likewise.
1216 * ser-mingw.c: Likewise.
1217 * ser-pipe.c: Likewise.
1218 * ser-tcp.c: Likewise.
1219 * ser-unix.c: Likewise.
1220 * serial.c: Likewise.
1221 * sh-tdep.c: Likewise.
1222 * sh64-tdep.c: Likewise.
1223 * shnbsd-tdep.c: Likewise.
1224 * skip.c: Likewise.
1225 * sol-thread.c: Likewise.
1226 * solib-dsbt.c: Likewise.
1227 * solib-frv.c: Likewise.
1228 * solib-osf.c: Likewise.
1229 * solib-som.c: Likewise.
1230 * solib-spu.c: Likewise.
1231 * solib-target.c: Likewise.
1232 * solib.c: Likewise.
1233 * somread.c: Likewise.
1234 * source.c: Likewise.
1235 * sparc-nat.c: Likewise.
1236 * sparc-sol2-tdep.c: Likewise.
1237 * sparc-tdep.c: Likewise.
1238 * sparc64-tdep.c: Likewise.
1239 * sparc64fbsd-tdep.c: Likewise.
1240 * sparc64nbsd-tdep.c: Likewise.
1241 * sparcnbsd-tdep.c: Likewise.
1242 * spu-linux-nat.c: Likewise.
1243 * spu-multiarch.c: Likewise.
1244 * spu-tdep.c: Likewise.
1245 * stabsread.c: Likewise.
1246 * stack.c: Likewise.
1247 * std-regs.c: Likewise.
1248 * symfile.c: Likewise.
1249 * symmisc.c: Likewise.
1250 * symtab.c: Likewise.
1251 * target.c: Likewise.
1252 * thread.c: Likewise.
1253 * tilegx-linux-nat.c: Likewise.
1254 * tilegx-tdep.c: Likewise.
1255 * top.c: Likewise.
1256 * tracepoint.c: Likewise.
1257 * tui/tui-command.c: Likewise.
1258 * tui/tui-data.c: Likewise.
1259 * tui/tui-disasm.c: Likewise.
1260 * tui/tui-file.c: Likewise.
1261 * tui/tui-layout.c: Likewise.
1262 * tui/tui-out.c: Likewise.
1263 * tui/tui-regs.c: Likewise.
1264 * tui/tui-source.c: Likewise.
1265 * tui/tui-stack.c: Likewise.
1266 * tui/tui-win.c: Likewise.
1267 * tui/tui-windata.c: Likewise.
1268 * tui/tui-winsource.c: Likewise.
1269 * typeprint.c: Likewise.
1270 * ui-file.c: Likewise.
1271 * ui-out.c: Likewise.
1272 * user-regs.c: Likewise.
1273 * utils.c: Likewise.
1274 * v850-tdep.c: Likewise.
1275 * valarith.c: Likewise.
1276 * valops.c: Likewise.
1277 * valprint.c: Likewise.
1278 * value.c: Likewise.
1279 * varobj.c: Likewise.
1280 * vax-tdep.c: Likewise.
1281 * vaxnbsd-tdep.c: Likewise.
1282 * vaxobsd-tdep.c: Likewise.
1283 * windows-nat.c: Likewise.
1284 * xcoffread.c: Likewise.
1285 * xml-support.c: Likewise.
1286 * xstormy16-tdep.c: Likewise.
1287 * xtensa-linux-nat.c: Likewise.
1288
dccbb609
GB
12892014-08-07 Gary Benson <gbenson@redhat.com>
1290
1291 * common/common-defs.h: Include gdb_assert.h.
1292 * aarch64-tdep.c: Do not include gdb_assert.h.
1293 * addrmap.c: Likewise.
1294 * aix-thread.c: Likewise.
1295 * alpha-linux-tdep.c: Likewise.
1296 * alpha-mdebug-tdep.c: Likewise.
1297 * alphanbsd-tdep.c: Likewise.
1298 * amd64-nat.c: Likewise.
1299 * amd64-tdep.c: Likewise.
1300 * amd64bsd-nat.c: Likewise.
1301 * amd64fbsd-nat.c: Likewise.
1302 * amd64fbsd-tdep.c: Likewise.
1303 * amd64nbsd-nat.c: Likewise.
1304 * amd64nbsd-tdep.c: Likewise.
1305 * amd64obsd-nat.c: Likewise.
1306 * amd64obsd-tdep.c: Likewise.
1307 * arch-utils.c: Likewise.
1308 * arm-tdep.c: Likewise.
1309 * armbsd-tdep.c: Likewise.
1310 * auxv.c: Likewise.
1311 * bcache.c: Likewise.
1312 * bfin-tdep.c: Likewise.
1313 * blockframe.c: Likewise.
1314 * breakpoint.c: Likewise.
1315 * bsd-kvm.c: Likewise.
1316 * bsd-uthread.c: Likewise.
1317 * buildsym.c: Likewise.
1318 * c-exp.y: Likewise.
1319 * c-lang.c: Likewise.
1320 * charset.c: Likewise.
1321 * cleanups.c: Likewise.
1322 * cli-out.c: Likewise.
1323 * cli/cli-decode.c: Likewise.
1324 * cli/cli-dump.c: Likewise.
1325 * cli/cli-logging.c: Likewise.
1326 * cli/cli-script.c: Likewise.
1327 * cli/cli-utils.c: Likewise.
1328 * coffread.c: Likewise.
1329 * common/common-utils.c: Likewise.
1330 * common/queue.h: Likewise.
1331 * common/signals.c: Likewise.
1332 * common/vec.h: Likewise.
1333 * complaints.c: Likewise.
1334 * completer.c: Likewise.
1335 * corelow.c: Likewise.
1336 * cp-abi.c: Likewise.
1337 * cp-name-parser.y: Likewise.
1338 * cp-namespace.c: Likewise.
1339 * cp-support.c: Likewise.
1340 * cris-tdep.c: Likewise.
1341 * dbxread.c: Likewise.
1342 * dictionary.c: Likewise.
1343 * doublest.c: Likewise.
1344 * dsrec.c: Likewise.
1345 * dummy-frame.c: Likewise.
1346 * dwarf2-frame-tailcall.c: Likewise.
1347 * dwarf2-frame.c: Likewise.
1348 * dwarf2expr.c: Likewise.
1349 * dwarf2loc.c: Likewise.
1350 * dwarf2read.c: Likewise.
1351 * eval.c: Likewise.
1352 * event-loop.c: Likewise.
1353 * exceptions.c: Likewise.
1354 * expprint.c: Likewise.
1355 * f-valprint.c: Likewise.
1356 * fbsd-nat.c: Likewise.
1357 * findvar.c: Likewise.
1358 * frame-unwind.c: Likewise.
1359 * frame.c: Likewise.
1360 * frv-tdep.c: Likewise.
1361 * gcore.c: Likewise.
1362 * gdb-dlfcn.c: Likewise.
1363 * gdb_bfd.c: Likewise.
1364 * gdbarch.c: Likewise.
1365 * gdbarch.sh: Likewise.
1366 * gdbtypes.c: Likewise.
1367 * gnu-nat.c: Likewise.
1368 * gnu-v3-abi.c: Likewise.
1369 * go-lang.c: Likewise.
1370 * guile/scm-exception.c: Likewise.
1371 * guile/scm-gsmob.c: Likewise.
1372 * guile/scm-lazy-string.c: Likewise.
1373 * guile/scm-math.c: Likewise.
1374 * guile/scm-pretty-print.c: Likewise.
1375 * guile/scm-safe-call.c: Likewise.
1376 * guile/scm-utils.c: Likewise.
1377 * guile/scm-value.c: Likewise.
1378 * h8300-tdep.c: Likewise.
1379 * hppa-hpux-nat.c: Likewise.
1380 * hppa-tdep.c: Likewise.
1381 * hppanbsd-tdep.c: Likewise.
1382 * hppaobsd-tdep.c: Likewise.
1383 * i386-darwin-nat.c: Likewise.
1384 * i386-darwin-tdep.c: Likewise.
1385 * i386-nto-tdep.c: Likewise.
1386 * i386-tdep.c: Likewise.
1387 * i386bsd-nat.c: Likewise.
1388 * i386fbsd-tdep.c: Likewise.
1389 * i386gnu-nat.c: Likewise.
1390 * i386nbsd-tdep.c: Likewise.
1391 * i386obsd-tdep.c: Likewise.
1392 * i387-tdep.c: Likewise.
1393 * ia64-libunwind-tdep.c: Likewise.
1394 * ia64-tdep.c: Likewise.
1395 * inf-ptrace.c: Likewise.
1396 * inf-ttrace.c: Likewise.
1397 * infcall.c: Likewise.
1398 * infcmd.c: Likewise.
1399 * infrun.c: Likewise.
1400 * inline-frame.c: Likewise.
1401 * interps.c: Likewise.
1402 * jv-lang.c: Likewise.
1403 * jv-typeprint.c: Likewise.
1404 * linux-fork.c: Likewise.
1405 * linux-nat.c: Likewise.
1406 * linux-thread-db.c: Likewise.
1407 * m32c-tdep.c: Likewise.
1408 * m32r-linux-nat.c: Likewise.
1409 * m32r-tdep.c: Likewise.
1410 * m68k-tdep.c: Likewise.
1411 * m68kbsd-nat.c: Likewise.
1412 * m68kbsd-tdep.c: Likewise.
1413 * m88k-tdep.c: Likewise.
1414 * machoread.c: Likewise.
1415 * macroexp.c: Likewise.
1416 * macrotab.c: Likewise.
1417 * maint.c: Likewise.
1418 * mdebugread.c: Likewise.
1419 * memory-map.c: Likewise.
1420 * mep-tdep.c: Likewise.
1421 * mi/mi-common.c: Likewise.
1422 * microblaze-tdep.c: Likewise.
1423 * mingw-hdep.c: Likewise.
1424 * mips-linux-nat.c: Likewise.
1425 * mips-linux-tdep.c: Likewise.
1426 * mips-tdep.c: Likewise.
1427 * mips64obsd-tdep.c: Likewise.
1428 * mipsnbsd-tdep.c: Likewise.
1429 * mn10300-linux-tdep.c: Likewise.
1430 * mn10300-tdep.c: Likewise.
1431 * moxie-tdep.c: Likewise.
1432 * mt-tdep.c: Likewise.
1433 * nat/linux-btrace.c: Likewise.
1434 * nat/linux-osdata.c: Likewise.
1435 * nat/linux-ptrace.c: Likewise.
1436 * nat/mips-linux-watch.c: Likewise.
1437 * nios2-linux-tdep.c: Likewise.
1438 * nios2-tdep.c: Likewise.
1439 * objc-lang.c: Likewise.
1440 * objfiles.c: Likewise.
1441 * obsd-nat.c: Likewise.
1442 * opencl-lang.c: Likewise.
1443 * osabi.c: Likewise.
1444 * parse.c: Likewise.
1445 * ppc-linux-nat.c: Likewise.
1446 * ppc-sysv-tdep.c: Likewise.
1447 * ppcfbsd-nat.c: Likewise.
1448 * ppcfbsd-tdep.c: Likewise.
1449 * ppcnbsd-nat.c: Likewise.
1450 * ppcnbsd-tdep.c: Likewise.
1451 * ppcobsd-nat.c: Likewise.
1452 * ppcobsd-tdep.c: Likewise.
1453 * printcmd.c: Likewise.
1454 * procfs.c: Likewise.
1455 * prologue-value.c: Likewise.
1456 * psymtab.c: Likewise.
1457 * python/py-lazy-string.c: Likewise.
1458 * python/py-value.c: Likewise.
1459 * regcache.c: Likewise.
1460 * reggroups.c: Likewise.
1461 * registry.c: Likewise.
1462 * remote-sim.c: Likewise.
1463 * remote.c: Likewise.
1464 * rs6000-aix-tdep.c: Likewise.
1465 * rs6000-tdep.c: Likewise.
1466 * s390-linux-tdep.c: Likewise.
1467 * score-tdep.c: Likewise.
1468 * ser-base.c: Likewise.
1469 * ser-mingw.c: Likewise.
1470 * sh-tdep.c: Likewise.
1471 * sh64-tdep.c: Likewise.
1472 * solib-darwin.c: Likewise.
1473 * solib-spu.c: Likewise.
1474 * solib-svr4.c: Likewise.
1475 * source.c: Likewise.
1476 * sparc-nat.c: Likewise.
1477 * sparc-sol2-tdep.c: Likewise.
1478 * sparc-tdep.c: Likewise.
1479 * sparc64-sol2-tdep.c: Likewise.
1480 * sparc64-tdep.c: Likewise.
1481 * sparc64fbsd-tdep.c: Likewise.
1482 * sparc64nbsd-tdep.c: Likewise.
1483 * sparc64obsd-tdep.c: Likewise.
1484 * sparcnbsd-tdep.c: Likewise.
1485 * sparcobsd-tdep.c: Likewise.
1486 * spu-multiarch.c: Likewise.
1487 * spu-tdep.c: Likewise.
1488 * stabsread.c: Likewise.
1489 * stack.c: Likewise.
1490 * symfile.c: Likewise.
1491 * symtab.c: Likewise.
1492 * target-descriptions.c: Likewise.
1493 * target-memory.c: Likewise.
1494 * target.c: Likewise.
1495 * tic6x-linux-tdep.c: Likewise.
1496 * tic6x-tdep.c: Likewise.
1497 * tilegx-linux-nat.c: Likewise.
1498 * tilegx-tdep.c: Likewise.
1499 * top.c: Likewise.
1500 * tramp-frame.c: Likewise.
1501 * tui/tui-out.c: Likewise.
1502 * tui/tui-winsource.c: Likewise.
1503 * ui-out.c: Likewise.
1504 * user-regs.c: Likewise.
1505 * utils.c: Likewise.
1506 * v850-tdep.c: Likewise.
1507 * valops.c: Likewise.
1508 * value.c: Likewise.
1509 * varobj.c: Likewise.
1510 * vax-nat.c: Likewise.
1511 * xml-syscall.c: Likewise.
1512 * xml-tdesc.c: Likewise.
1513 * xstormy16-tdep.c: Likewise.
1514 * xtensa-linux-nat.c: Likewise.
1515 * xtensa-tdep.c: Likewise.
1516
e76df0d0
GB
15172014-08-07 Gary Benson <gbenson@redhat.com>
1518
1519 * common/common-defs.h: Include common-utils.h.
1520 * defs.h: Do not include common-utils.h.
1521 * common/gdb_assert.h: Likewise.
1522 * darwin-nat.h: Likewise.
1523 * nat/linux-btrace.c: Likewise.
1524 * target/waitstatus.h: Likewise.
1525
4cb9c816
GB
15262014-08-07 Gary Benson <gbenson@redhat.com>
1527
1528 * common/common-defs.h: Include ptid.h.
1529 * defs.h: Do not include ptid.h.
1530 * inferior.h: Likewise.
1531 * infrun.h: Likewise.
1532 * nat/linux-btrace.h: Likewise.
1533 * nat/linux-osdata.h: Likewise.
1534 * target/waitstatus.h: Likewise.
1535
3995eeee
GB
15362014-08-07 Gary Benson <gbenson@redhat.com>
1537
1538 * common/common-defs.h: Include gdb_locale.h.
1539 * defs.h: Do not include gdb_locale.h.
1540
cb9f1a9b
GB
15412014-08-07 Gary Benson <gbenson@redhat.com>
1542
1543 * common/common-defs.h: Include gdb/signals.h.
1544 * defs.h: Do not include gdb/signals.h.
1545
a5fceff8
GB
15462014-08-07 Gary Benson <gbenson@redhat.com>
1547
1548 * common/common-defs.h: Include pathmax.h.
1549 * defs.h: Do not include pathmax.h.
1550
b9391142
GB
15512014-08-07 Gary Benson <gbenson@redhat.com>
1552
1553 * common/common-defs.h: Include libiberty.h.
1554 * defs.h: Do not include libiberty.h.
1555 * common/queue.h: Likewise.
1556 * cp-name-parser.y: Likewise.
1557 * mi/mi-cmd-catch.c: Likewise.
1558 * python/python.c: Likewise.
1559
0e443c87
GB
15602014-08-07 Gary Benson <gbenson@redhat.com>
1561
1562 * common/common-defs.h: Include ansidecl.h.
1563 * defs.h: Do not include ansidecl.h.
1564 * common/buffer.h: Likewise.
1565 * common/common-utils.h: Likewise.
1566
8ebb3f56
GB
15672014-08-07 Gary Benson <gbenson@redhat.com>
1568
1569 * common/common-defs.h: Include stddef.h.
1570 * defs.h: Do not include stddef.h.
1571 * common/common-utils.h: Likewise.
1572 * amd64fbsd-nat.c: Likewise.
1573 * bcache.c: Likewise.
1574 * charset.c: Likewise.
1575 * common/buffer.h: Likewise.
1576 * common/vec.h: Likewise.
1577 * i386bsd-nat.c: Likewise.
1578 * nat/linux-btrace.h: Likewise.
1579 * ppcfbsd-nat.c: Likewise.
1580 * ppcnbsd-tdep.h: Likewise.
1581 * ppcobsd-nat.c: Likewise.
1582 * ppcobsd-tdep.h: Likewise.
1583 * python/py-gdb-readline.c: Likewise.
1584
8980bdf6
GB
15852014-08-07 Gary Benson <gbenson@redhat.com>
1586
1587 * common/common-defs.h: Include stdarg.h.
1588 * defs.h: Do not include stdarg.h.
1589 * ada-lang.c: Likewise.
1590 * common/common-utils.h: Likewise.
1591 * guile/scm-string.c: Likewise.
1592 * guile/scm-utils.c: Likewise.
1593 * m32c-tdep.c: Likewise.
1594
d7096f71
GB
15952014-08-07 Gary Benson <gbenson@redhat.com>
1596
1597 * common/common-defs.h: Include stdlib.h.
1598 * defs.h: Do not include stdlib.h.
1599 * addrmap.c: Likewise.
1600 * bcache.c: Likewise.
1601 * common/buffer.c: Likewise.
1602 * common/common-utils.c: Likewise.
1603 * cp-name-parser.y: Likewise.
1604 * go32-nat.c: Likewise.
1605 * mn10300-linux-tdep.c: Likewise.
1606 * nat/linux-osdata.c: Likewise.
1607 * tui/tui.c: Likewise.
1608 * windows-nat.c: Likewise.
1609
d02f550d
GB
16102014-08-07 Gary Benson <gbenson@redhat.com>
1611
1612 * common/common-defs.h: Include stdio.h.
1613 * defs.h: Do not include stdio.h.
1614 * ada-lang.c: Likewise.
1615 * common/buffer.c: Likewise.
1616 * common/common-utils.c: Likewise.
1617 * cp-name-parser.y: Likewise.
1618 * gnu-nat.c: Likewise.
1619 * go32-nat.c: Likewise.
1620 * i386gnu-nat.c: Likewise.
1621 * proc-api.c: Likewise.
1622 * proc-events.c: Likewise.
1623 * proc-flags.c: Likewise.
1624 * proc-why.c: Likewise.
1625 * python/python-internal.h: Likewise.
1626 * target-memory.c: Likewise.
1627 * tui/tui-io.c: Likewise.
1628 * tui/tui.c: Likewise.
1629
b6d7a4bf
SM
16302014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1631
1632 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1633 (scan_dyntag_auxv): Same.
1634
af19829b
YQ
16352014-08-06 Yao Qi <yao@codesourcery.com>
1636
1637 * amd64-linux-nat.c: Remove duplicated include
1638 "x86-linux-nat.h".
1639 * i386-linux-nat.c: Likewise.
1640
8e07a239
YQ
16412014-08-06 Yao Qi <yao@codesourcery.com>
1642
1643 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1644 operand" with "Special opcode" in comments.
1645
7bfe8241
GB
16462014-08-05 Gary Benson <gbenson@redhat.com>
1647
1648 * interps.c (initialize_interps): Remove prototype.
1649 (interpreter_initialized): Remove static global.
1650 (interp_add): Do not call initialize_interps.
1651 (initialize_interps): Remove function.
1652
d6c95504
GB
16532014-08-05 Gary Benson <gbenson@redhat.com>
1654
1655 * utils.c (vwarning): Remove spurious va_end.
1656
241fd515
AM
16572014-08-05 Alan Modra <amodra@gmail.com>
1658
1659 * charset.c (convert_between_encodings): Cast result of obstack_base.
1660 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1661 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1662 (read_unwind_info): Use size_t for some locals.
1663 * jit.c (finalize_symtab): Likewise.
1664 * utils.c (hashtab_obstack_allocate): Likewise.
1665 * symmisc.c (print_objfile_statistics): Update format strings.
1666
dc304a94
JK
16672014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1670 (Changes in GDB 7.8): ... here.
1671
3cecbbbe
TT
16722014-08-04 Tom Tromey <tromey@redhat.com>
1673
1674 * target.c (set_targetdebug): New function.
1675 (initialize_targets): Pass set_targetdebug when creating "set
1676 debug target".
1677
6908c509
JB
16782014-08-01 Joel Brobecker <brobecker@adacore.com>
1679
1680 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1681 if detecting a variable-sized field that is not the last field.
1682 Fix struct type length computation.
1683
53e8f97d
JB
16842014-08-01 Joel Brobecker <brobecker@adacore.com>
1685
1686 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1687 Add debug trace.
1688
e068c55d
JB
16892014-08-01 Joel Brobecker <brobecker@adacore.com>
1690
1691 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1692 Remove "+ 8" offset in computation of CHAIN_VMA.
1693
4d4ca2a1
DE
16942014-07-31 Doug Evans <dje@google.com>
1695
1696 * inflow.c (child_terminal_inferior): Add comment.
1697 (child_terminal_ours_for_output): Add comment.
1698 (child_terminal_ours): Add comment.
1699 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1700 (linux_nat_terminal_ours): Add comment.
1701
462f517e
GB
17022014-07-31 Gary Benson <gbenson@redhat.com>
1703
1704 * common/btrace-common.h: Do not include defs.h or server.h.
1705 * nat/mips-linux-watch.h: Likewise.
1706 * gdb-dlfcn.h: Do not include defs.h.
1707 * tracefile.h: Likewise.
1708
74228e77
RM
17092014-07-30 Roland McGrath <mcgrathr@google.com>
1710
1711 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1712
014f9477
TT
17132014-07-30 Tom Tromey <tromey@redhat.com>
1714
1715 * bsd-kvm.c (bsd_kvm_open): Constify.
1716 * corelow.c (core_open): Constify.
1717 * ctf.c (ctf_open): Constify.
1718 * dbug-rom.c (dbug_open): Constify.
1719 * exec.c (exec_open): Constify.
1720 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1721 * microblaze-rom.c (picobug_open): Constify.
1722 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1723 Constify.
1724 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1725 * record-btrace.c (record_btrace_open): Constify.
1726 * record-full.c (record_full_core_open_1, record_full_open_1)
1727 (record_full_open): Constify.
1728 * remote-m32r-sdi.c (m32r_open): Constify.
1729 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1730 (rockhopper_open, lsi_open): Constify.
1731 * remote-sim.c (gdbsim_open): Constify.
1732 * remote.c (remote_open, extended_remote_open, remote_open_1):
1733 Constify.
1734 * target.h (struct target_ops) <to_open>: Make "arg" const.
1735 * tracefile-tfile.c (tfile_open): Constify.
1736
e799154c
TT
17372014-07-30 Tom Tromey <tromey@redhat.com>
1738
1739 * breakpoint.c (map_breakpoint_numbers): Update.
1740 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1741 (get_number_const): New function.
1742 (get_number): Rewrite using get_number_const.
1743 (init_number_or_range): Make "string" const.
1744 (number_is_in_list): Make "list" const.
1745 * cli/cli-utils.h (get_number_const): Declare.
1746 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1747 (init_number_or_range, number_is_in_list): Update.
1748 * printcmd.c (map_display_numbers): Update.
1749 * value.c (value_from_history_ref): Constify.
1750 * value.h (value_from_history_ref): Update.
1751
5f08566b
TT
17522014-07-30 Tom Tromey <tromey@redhat.com>
1753
1754 * corefile.c (hook_type, call_extra_exec_file_hooks)
1755 (specify_exec_file_hook): Constify.
1756 * exec.c (exec_file_attach): Make "filename" const.
1757 * gdbcore.h (deprecated_exec_file_display_hook)
1758 (specify_exec_file_hook, exec_file_attach): Constify.
1759 * main.c (captured_main): Use catch_command_errors_const.
1760
8981c758
TT
17612014-07-30 Tom Tromey <tromey@redhat.com>
1762
1763 * target.c (open_target): New function.
1764 (add_target_with_completer, add_deprecated_target_alias): Use
1765 set_cmd_sfunc, set_cmd_context.
1766 (debug_to_open): Remove.
1767 (setup_target_debug): Update.
1768
a1c7835a
YQ
17692014-07-30 Yao Qi <yao@codesourcery.com>
1770
1771 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1772 comments.
1773 * parse.c (exp_iterate): Update comments.
1774
976411d6
GB
17752014-07-30 Gary Benson <gbenson@redhat.com>
1776
1777 * common/common-defs.h: New file.
1778 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1779 * defs.h: Include common-defs.h.
1780 Do not include config.h or build-gnulib/config.h.
1781
5d4848a4
GB
17822014-07-30 Gary Benson <gbenson@redhat.com>
1783
1784 * common/common-utils.h: Do not include config.h.
1785 * nat/linux-btrace.h: Likewise.
1786
d41f6d8e
GB
17872014-07-30 Gary Benson <gbenson@redhat.com>
1788
1789 * btrace.c: Include defs.h.
1790 * common/ptid.c: Include defs.h or server.h as appropriate.
1791 * nat/mips-linux-watch.c: Likewise.
1792
84202f9c
TT
17932014-07-29 Tom Tromey <tromey@redhat.com>
1794
1795 * target.c (target_is_pushed): Simplify.
1796
2530441c
JB
17972014-07-29 Joel Brobecker <brobecker@adacore.com>
1798
1799 GDB 7.8 released.
1800
7e09a223
YQ
18012014-07-29 Yao Qi <yao@codesourcery.com>
1802
1803 PR gdb/17206
1804 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1805
7ebdbe92
DE
18062014-07-28 Doug Evans <xdje42@gmail.com>
1807
1808 PR guile/17203
1809 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1810 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1811 parameters.
1812
f347ffc9
WN
18132014-07-28 Will Newton <will.newton@linaro.org>
1814
1815 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1816 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1817 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1818 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1819 (THUMB2_EABI_SYSCALL): Likewise.
1820 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1821 struct tramp_frame.
1822 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1823 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1824
37c5f1f7
DE
18252014-07-27 Doug Evans <xdje42@gmail.com>
1826
1827 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1828
0c3abbc7
DE
18292014-07-27 Doug Evans <xdje42@gmail.com>
1830
1831 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1832
e76c5d17
DE
18332014-07-26 Ludovic Courtès <ludo@gnu.org>
1834 Doug Evans <xdje42@gmail.com>
1835
1836 PR guile/17146
1837 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1838 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1839 * configure.ac: Try to use guild to compile an scm file, if it fails
1840 then disable guile support.
1841 * configure: Regenerate.
1842 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1843 GUILE_FILE_LIST.
1844 (GUILE_COMPILED_FILES): New variable.
1845 (GUILE_FILES) Update.
1846 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1847 (stamp-guile): Compile scm files.
1848 * guile/guile.c (boot_guile_support): New function.
1849 (standard_throw_args_p): New function.
1850 (print_standard_throw_error, print_throw_error): New functions.
1851 (handle_boot_error): New function.
1852 (initialize_scheme_side): Rewrite to call boot_guile_support.
1853 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1854 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1855
186fcde0
DE
18562014-07-26 Ludovic Courtès <ludo@gnu.org>
1857 Doug Evans <xdje42@gmail.com>
1858
1859 PR guile/17146
1860 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1861 * guile/lib/gdb/support.scm: New file.
1862 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1863 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1864 All uses updated.
1865 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1866 All uses updated.
1867 (%assert-type): Ditto, and renamed to assert-type.
1868 (%exception-print-style): Delete.
1869
4df42755
DE
18702014-07-26 Doug Evans <xdje42@gmail.com>
1871
1872 PR build/17105
1873 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1874 * configure: Regenerate.
1875 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1876 PYTHON_FILES.
1877 (PYTHON_FILES): New variable.
1878 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1879 (GUILE_FILES): New variable.
1880 (stamp-python, install-python, uninstall-python): Handle empty
1881 file list.
1882 (stamp-guile, install-guile, uninstall-guile): Ditto.
1883
ee7333ae
DE
18842014-07-26 Doug Evans <xdje42@gmail.com>
1885
1886 PR guile/17177
1887 * guile/lib/gdb.scm (pretty-printers): Export.
1888 (set-pretty-printers!): Export.
1889 * guile/lib/gdb/printing.scm (gdb module): Update.
1890 (prepend-pretty-printer!, append-pretty-printer!): Update.
1891 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1892 (pretty_printer_list_var): Delete.
1893 (pretty_printer_list): New static global.
1894 (gdbscm_pretty_printers): New function.
1895 (gdbscm_set_pretty_printers_x): New function.
1896 (ppscm_find_pretty_printer_from_gdb): Update.
1897 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1898 (gdbscm_initialize_pretty_printers): Update.
1899
74edf516
DE
19002014-07-26 Doug Evans <xdje42@gmail.com>
1901
1902 PR 17185
1903 * configure.ac: Add check for header gc/gc.h.
1904 Add check for function setenv.
1905 * configure: Regenerate.
1906 * config.in: Regenerate.
1907 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1908
d54398a7
MR
19092014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1910
1911 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1912 variation in gdbarch matching.
1913
ab16fce8
TT
19142014-07-25 Tom Tromey <tromey@redhat.com>
1915
1916 * exec.c (using_exec_ops): Remove.
1917 (exec_close_1): Update. Remove extraneous block, reindent.
1918 (add_target_sections): Use target_is_pushed.
1919
88056fbb
PA
19202014-07-25 Pedro Alves <palves@redhat.com>
1921
1922 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1923 * monitor.c (monitor_create_inferior): Likewise.
1924 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1925 * remote-sim.c (gdbsim_create_inferior): Likewise.
1926 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1927 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1928 * windows-nat.c (do_initial_windows_stuff): Likewise.
1929
70509625
PA
19302014-07-25 Pedro Alves <palves@redhat.com>
1931
1932 * NEWS: Mention signal passing and "signal" command changes.
1933 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1934 comment.
1935 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1936 call.
1937 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1938 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1939 (jump_command): Adjust clear_proceed_status call.
1940 (signal_command): Warn if other thread that are resumed have
1941 signals that will be delivered. Adjust clear_proceed_status call.
1942 (until_next_command, finish_command)
1943 (proceed_after_attach_callback, attach_command_post_wait)
1944 (attach_command): Adjust clear_proceed_status call.
1945 * infrun.c (proceed_after_vfork_done): Likewise.
1946 (proceed_after_attach_callback): Adjust comment.
1947 (clear_proceed_status_thread): Clear stop_signal if not in pass
1948 state.
1949 (clear_proceed_status_callback): Delete.
1950 (clear_proceed_status): New 'step' parameter. Only clear the
1951 proceed status of threads the command being prepared is about to
1952 resume.
1953 (proceed): If passed in an explicit signal, override stop_signal
1954 with it. Don't pass the last stop signal to the thread we're
1955 resuming.
1956 (init_wait_for_inferior): Adjust clear_proceed_status call.
1957 (switch_back_to_stepped_thread): Clear the signal if it should not
1958 be passed.
1959 * infrun.h (clear_proceed_status): New 'step' parameter.
1960 (user_visible_resume_ptid): Add comment.
1961 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1962 signal is in pass state.
1963 * remote.c (append_pending_thread_resumptions): Likewise.
1964 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1965
d8be2939
TT
19662014-07-25 Tom Tromey <tromey@redhat.com>
1967
1968 * target.h (target_stopped_data_address)
1969 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1970 parentheses.
1971
7d0d9d2b
PL
19722014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1973
1974 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1975 comments.
1976 (avr_pointer_to_address): Likewise.
1977
e9e7f724
TT
19782014-07-24 Tom Tromey <tromey@redhat.com>
1979
1980 * monitor.c (compile_pattern): Update.
1981 * target.h (struct target_ops) <to_shortname, to_longname,
1982 to_doc>: Now const.
1983
1947513d
TT
19842014-07-24 Tom Tromey <tromey@redhat.com>
1985
1986 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1987 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1988 (add_info_alias, add_com): Make "doc" const.
1989 (print_doc_line): Make "str" const.
1990 (delete_cmd): Update.
1991 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1992 (print_doc_line): Update.
1993 * cli/cli-script.c (document_command): Update.
1994 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1995 (add_com, add_info, add_info_alias): Update.
1996 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1997 * python/py-cmd.c (cmdpy_destroyer): Update.
1998
64e61d29
TT
19992014-07-24 Tom Tromey <tromey@redhat.com>
2000
2001 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2002 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2003 (help_cmd_list): Constify.
2004 (lookup_cmd): Update.
2005 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2006 const.
2007 (help_cmd_list, apropos_cmd): Update.
2008 * cli/cli-script.c (show_user): Update.
2009 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2010 * cli/cli-setshow.h (cmd_show_list): Update.
2011 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2012 (cmd_show_list): Update.
2013 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2014 * python/py-cmd.c (cmdpy_destroyer): Update.
2015
429e55ea
TT
20162014-07-24 Tom Tromey <tromey@redhat.com>
2017
2018 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2019 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2020 const.
2021 * command.h (deprecate_cmd): Update.
2022 * maint.c (maintenance_do_deprecate): Add casts.
2023
64669f3b
TT
20242014-07-24 Tom Tromey <tromey@redhat.com>
2025
2026 * cli/cli-decode.c (help_cmd): Make parameter "const".
2027 * cli/cli-decode.h (help_cmd): Update.
2028
d3d3328b
TT
20292014-07-24 Tom Tromey <tromey@redhat.com>
2030
2031 * stack.c (up_silently_base, down_silently_base): Make argument
2032 const.
2033
414842dc
TT
20342014-07-24 Tom Tromey <tromey@redhat.com>
2035
2036 * solib.c (solib_add): Make "pattern" const.
2037 * solib.h (solib_add): Update.
2038
baa336ce
TT
20392014-07-24 Tom Tromey <tromey@redhat.com>
2040
2041 * remote.c (remote_serial_open, print_packet, putpkt)
2042 (putpkt_binary): Constify.
2043 * remote.h (putpkt): Update.
2044
5a19e2d0
TT
20452014-07-24 Tom Tromey <tromey@redhat.com>
2046
2047 * monitor.c (monitor_open): Make "args" const.
2048 * monitor.h (monitor_open): Update.
2049
fc4baa5e
TT
20502014-07-24 Tom Tromey <tromey@redhat.com>
2051
2052 * maint.c (match_bfd_flags): Make "string" const.
2053 (print_bfd_section_info): Remove casts.
2054 (print_objfile_section_info): Make "string" const.
2055
0d5f0dbe
TT
20562014-07-24 Tom Tromey <tromey@redhat.com>
2057
2058 * inf-child.c (inf_child_open_target): Make "arg" const.
2059 * inf-child.h (inf_child_open_target): Update.
2060
41c77899
TT
20612014-07-24 Tom Tromey <tromey@redhat.com>
2062
2063 * environ.c (unset_in_environ): Make "var" const.
2064 * environ.h (unset_in_environ): Update.
2065
93db0d79
TT
20662014-07-24 Tom Tromey <tromey@redhat.com>
2067
2068 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2069 Make "cmd" const.
2070 (scan_filename_with_cleanup): Likewise.
2071 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2072 Make arguments const.
2073 (restore_command): Update.
2074
36d6eb95
PA
20752014-07-24 Pedro Alves <palves@redhat.com>
2076
2077 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2078
8009206a
TT
20792014-07-24 Tom Tromey <tromey@redhat.com>
2080 Gary Benson <gbenson@redhat.com>
2081
2082 * nat/linux-ptrace.c (additional_flags): New global.
2083 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2084 additional_flags; don't check GDBSERVER.
2085 (linux_ptrace_set_additional_flags): New function.
2086 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2087 Declare.
2088 * linux-nat.c (_initialize_linux_nat): Call
2089 linux_ptrace_set_additional_flags.
2090
a7068b60
TT
20912014-07-24 Tom Tromey <tromey@redhat.com>
2092
2093 * make-target-delegates (munge_type, write_debugmethod): New
2094 functions.
2095 (debug_names): New global.
2096 ($TARGET_DEBUG_PRINTER): New global.
2097 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2098 name.
2099 Write debug methods. Generate init_debug_target.
2100 * target-debug.h: New file.
2101 * target-delegates.c: Rebuild.
2102 * target.c: Include target-debug.h.
2103 (debug_target): Hoist definition.
2104 (target_kill, target_get_section_table, target_memory_map)
2105 (target_flash_erase, target_flash_done, target_detach)
2106 (target_disconnect, target_wait, target_resume)
2107 (target_pass_signals, target_program_signals, target_follow_fork)
2108 (target_mourn_inferior, target_search_memory)
2109 (target_thread_address_space, target_close)
2110 (target_find_new_threads, target_core_of_thread)
2111 (target_verify_memory, target_insert_mask_watchpoint)
2112 (target_remove_mask_watchpoint): Remove targetdebug code.
2113 (debug_to_post_attach, debug_to_prepare_to_store)
2114 (debug_to_files_info, debug_to_insert_breakpoint)
2115 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2116 (debug_to_region_ok_for_hw_watchpoint)
2117 (debug_to_can_accel_watchpoint_condition)
2118 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2119 (debug_to_watchpoint_addr_within_range)
2120 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2121 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2122 (debug_to_terminal_init, debug_to_terminal_inferior)
2123 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2124 (debug_to_terminal_save_ours, debug_to_terminal_info)
2125 (debug_to_load, debug_to_post_startup_inferior)
2126 (debug_to_insert_fork_catchpoint)
2127 (debug_to_remove_fork_catchpoint)
2128 (debug_to_insert_vfork_catchpoint)
2129 (debug_to_remove_vfork_catchpoint)
2130 (debug_to_insert_exec_catchpoint)
2131 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2132 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2133 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2134 (setup_target_debug): Call init_debug_target.
2135 * target.h (TARGET_DEBUG_PRINTER): New macro.
2136 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2137 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2138
2c51604d
GB
21392014-07-24 Gary Benson <gbenson@redhat.com>
2140
2141 * exceptions.h (throw_vfatal): Renamed to...
2142 (throw_vquit): New declaration.
2143 (throw_quit): Likewise.
2144 * exceptions.c (throw_vfatal): Renamed to...
2145 (throw_vquit): New function.
2146 (throw_quit): Likewise.
2147 (throw_error): Call throw_verror rather than throw_it.
2148 * utils.h (vfatal): Removed.
2149 (fatal): Likewise.
2150 * utils.c (vfatal): Removed.
2151 (fatal): Likewise.
2152 (internal_verror): Replaced call to fatal with call to throw_quit.
2153 (quit): Replaced calls to fatal with calls to throw_quit.
2154
34211963
ME
21552014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2156
2157 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2158 target_read_code.
2159
a52b4d3e
ME
21602014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2161
2162 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2163 less than zero in conditional expression.
2164
a8bdc56b
TT
21652014-07-23 Tom Tromey <tromey@redhat.com>
2166
2167 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2168 ($INTRO_PART): Don't match whitespace.
2169 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2170 argument matching.
2171 ($METHOD): Add $METHOD_TRAILER.
2172 (trim): Rewrite.
2173 (scan_target_h): New sub.
2174 Change main loop not to collect state.
2175 * target-delegates.c: Rebuild.
2176
91b52240
GB
21772014-07-23 Gary Benson <gbenson@redhat.com>
2178
2179 * cp-support.c (gdb_demangle): Fix build on systems without
2180 sigaltstack.
2181
45326f6f
JK
21822014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2185 for reference entry value target data value.
2186
e214cf6c
JK
21872014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2188
2189 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2190 value_available_contents_eq.
2191
bddbbedd
PA
21922014-07-22 Pedro Alves <palves@redhat.com>
2193
2194 * value.c (allocate_optimized_out_value): Don't mark value as
2195 non-lazy.
2196
45c71484
JW
21972014-07-22 Jiong Wang <jiong.wang@arm.com>
2198
2199 * MAINTAINERS (Write After Approval): Update my email address.
2200
9597b22a
DE
22012014-07-20 Doug Evans <dje@google.com>
2202
2203 PR server/17147
2204 * remote.c (putpkt_binary): Add text to error message.
2205
91101fe5
YQ
22062014-07-20 Yao Qi <yao@codesourcery.com>
2207
2208 * eval.c: Remove "Chill" from comments.
2209 * gdbtypes.h: Likewise.
2210 * symtab.h: Likewise.
2211
c9402c95
YQ
22122014-07-20 Yao Qi <yao@codesourcery.com>
2213
2214 * std-operator.def: Update comments to TERNOP_SLICE.
2215
ae8fddda
YQ
22162014-07-20 Yao Qi <yao@codesourcery.com>
2217
2218 * std-operator.def: Remove BINOP_RANGE.
2219 * breakpoint.c (watchpoint_exp_is_const): Update.
2220 * expprint.c (dump_subexp_body_standard): Likewise.
2221 * eval.c (init_array_element): Remove dead code.
2222 (evaluate_subexp_standard): Likewise.
2223
9c816640
YQ
22242014-07-20 Yao Qi <yao@codesourcery.com>
2225
2226 * std-operator.def: Remove BINOP_IN.
2227 * breakpoint.c (watchpoint_exp_is_const): Update.
2228 * eval.c (evaluate_subexp_standard): Likewise.
2229 * expprint.c (dump_subexp_body_standard): Likewise.
2230
164224e9
ME
22312014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2232
2233 * microblaze-tdep.c (microblaze_register_names): Add
2234 the rshr and rslr register names.
2235 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2236 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2237 Use of tdesc_numbered_register. Use of
2238 microblaze_register_g_packet_guesses. Use of
2239 tdesc_use_registers. Use of set_gdbarch_register_type.
2240 (microblaze_register_g_packet_guesses): New.
2241 * microblaze-tdep.h (microblaze_reg_num): Add
2242 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2243 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2244 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2245 * features/microblaze-core.xml: New file.
2246 * features/microblaze-stack-protect.xml: New file.
2247 * features/microblaze-with-stack-protect.c: New file.
2248 * features/microblaze-with-stack-protect.xml: New file.
2249 * features/microblaze.xml: New file.
2250 * features/microblaze.c: New file.
2251 * features/Makefile (microblaze-with-stack-protect): Add
2252 microblaze-with-stack-protect microblaze and microblaze-expedite.
2253 * regformats/microblaze-with-stack-protect.dat: New file.
2254 * regformats/microblaze.dat: New file.
2255 * doc/gdb.texinfo (MicroBlaze Features): Added.
2256
e8b2341c
TT
22572014-07-18 Tom Tromey <tromey@redhat.com>
2258
2259 * exec.c (exec_ops): Now static.
2260 * exec.h (exec_ops): Don't declare.
2261
44e89118
TT
22622014-07-18 Tom Tromey <tromey@redhat.com>
2263
2264 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2265 to find_target_beneath.
2266 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2267 find_target_beneath.
2268 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2269
b0ed115f
TT
22702014-07-18 Tom Tromey <tromey@redhat.com>
2271
2272 PR gdb/17130:
2273 * utils.c (quit): Use target_supports_terminal_ours.
2274 * target.h (target_supports_terminal_ours): Declare.
2275 * target.c (target_supports_delete_record): Don't check
2276 to_delete_record against NULL.
2277 (target_supports_terminal_ours): New function.
2278
e75fdfca
TT
22792014-07-18 Tom Tromey <tromey@redhat.com>
2280
2281 PR gdb/17130:
2282 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2283 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2284 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2285 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2286 * windows-nat.c (windows_xfer_partial): Always delegate.
2287 * record-btrace.c (record_btrace_xfer_partial): Simplify
2288 delegation.
2289 (record_btrace_fetch_registers, record_btrace_store_registers)
2290 (record_btrace_prepare_to_store, record_btrace_resume)
2291 (record_btrace_wait, record_btrace_find_new_threads)
2292 (record_btrace_thread_alive): Likewise.
2293 * procfs.c (procfs_xfer_partial): Always delegate.
2294 * corelow.c (core_xfer_partial): Always delegate.
2295 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2296
83814951
TT
22972014-07-18 Tom Tromey <tromey@redhat.com>
2298
2299 * exec.c (exec_make_note_section): Move earlier.
2300
b8b8facf
DE
23012014-07-17 Doug Evans <dje@google.com>
2302
74b49205 2303 PR gdb/17170
b8b8facf
DE
2304 * maint.c (count_symtabs_and_blocks): Handle NULL
2305 current_program_space.
2306 (report_command_stats): Check global enabled flag in addition to
2307 recorded enabled flag.
2308 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2309
69ff6be5
PA
23102014-07-16 Pedro Alves <palves@redhat.com>
2311
2312 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2313
252db1b5
TT
23142014-07-16 Tom Tromey <tromey@redhat.com>
2315
2316 * target.h (struct target_ops) <to_delete_record>: Reformat
2317 comment.
2318
a432721e
TT
23192014-07-16 Tom Tromey <tromey@redhat.com>
2320
2321 * target-delegates.c: Rebuild.
2322
487d9753
PL
23232014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2324
2325 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2326 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2327 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2328 (avr_pointer_to_address): Likewise.
2329 (avr_address_class_type_flags): New function.
2330 (avr_address_class_type_flags_to_name): Likewise.
2331 (avr_address_class_name_to_type_flags): Likewise.
2332 (avr_gdbarch_init): Set address_class_type_flags,
2333 address_class_type_flags_to_name and
2334 address_class_name_to_type_flags.
2335
57745c90
PA
23362014-07-15 Pedro Alves <palves@redhat.com>
2337
2338 * linux-nat.c (kill_callback): Save errno and work with saved
2339 copy.
2340
2d40be18
SM
23412014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2342
2343 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2344
572f6555
EBM
23452014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2346
2347 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2348 breakpoint support correctly.
2349
cc1c52ad
PA
23502014-07-14 Pedro Alves <palves@redhat.com>
2351
2352 * utils.c (prompt_for_continue): Call target_terminal_ours.
2353
1e973570
PA
23542014-07-14 Pedro Alves <palves@redhat.com>
2355
2356 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2357 catch_errors. Don't re-enable stdin or notify observers where,
2358 and rethrow error.
2359 (fetch_inferior_event_wrapper): Delete.
2360
93d6eb10
PA
23612014-07-14 Pedro Alves <palves@redhat.com>
2362
2363 PR gdb/17072
2364 * top.c: Include "inf-loop.h".
2365 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2366 field.
2367 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2368 was async before.
2369 (gdb_readline_wrapper): Store whether the target is async, and
2370 make it sync.
2371
0017922d
PA
23722014-07-14 Pedro Alves <palves@redhat.com>
2373
2374 PR gdb/17072
2375 * top.c (gdb_readline_wrapper_line): Tweak comment.
2376 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2377 the input handler callback.
2378
94696ad3
PA
23792014-07-14 Pedro Alves <palves@redhat.com>
2380
2381 PR gdb/17072
2382 * main.c: Include event-top.h.
2383 (handle_command_errors): New function.
2384 (catch_command_errors, catch_command_errors_const): Use it.
2385
9d1e69a2
PA
23862014-07-14 Pedro Alves <palves@redhat.com>
2387
2388 * exceptions.c (catch_command_errors, catch_command_errors_const):
2389 Moved to main.c.
2390 * exceptions.h (catch_command_errors_ftype)
2391 (catch_command_errors_const_ftype): Moved to main.c.
2392 (catch_command_errors, catch_command_errors_const): Delete
2393 declarations.
2394 * main.c (catch_command_errors_ftype)
2395 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2396 (catch_command_errors, catch_command_errors_const)): Moved here
2397 from exceptions.c and make static.
2398
feefc97b
PA
23992014-07-14 Pedro Alves <palves@redhat.com>
2400
2401 * exceptions.c (print_any_exception): Delete.
2402 (catch_exceptions_with_msg): Use exception_print instead of
2403 print_any_exception.
2404 (catch_errors): Use exception_fprintf instead of
2405 print_any_exception.
2406 (catch_command_errors, catch_command_errors_const): Use
2407 exception_print instead of print_any_exception.
2408
c933f875
PA
24092014-07-14 Pedro Alves <palves@redhat.com>
2410
2411 * infcall.c (run_inferior_call): Set 'sync_execution' while
2412 running the inferior call.
2413
feb6f816
PA
24142014-07-14 Pedro Alves <palves@redhat.com>
2415
2416 * value.c (value_contents_equal): Delete function.
2417 * value.h (value_contents_equal): Delete declaration.
2418
d98b7a16
TT
24192014-07-14 Tom Tromey <tromey@redhat.com>
2420
2421 PR exp/17106:
2422 * gdbtypes.c (is_dynamic_type_internal): New function, from
2423 is_dynamic_type.
2424 (is_dynamic_type): Rewrite.
2425 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2426 (resolve_dynamic_struct): Likewise.
2427 (resolve_dynamic_type_internal): New function, from
2428 resolve_dynamic_type.
2429 (resolve_dynamic_type): Rewrite.
2430
548740d6
TT
24312014-07-14 Tom Tromey <tromey@redhat.com>
2432
2433 * target.c (target_require_runnable): Also check record_stratum.
2434 Update comment.
2435
808f7ab1
YQ
24362014-07-11 Yao Qi <yao@codesourcery.com>
2437
2438 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2439 thumb_instruction_restores_sp return true.
2440
540314bd
YQ
24412014-07-11 Yao Qi <yao@codesourcery.com>
2442
2443 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2444 (thumb_in_function_epilogue_p): Call
2445 thumb_instruction_restores_sp.
2446
1db01f22
YQ
24472014-07-11 Yao Qi <yao@codesourcery.com>
2448
2449 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2450 'add sp, #imm'.
2451 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2452
3116063b
GB
24532014-07-11 Gary Benson <gbenson@redhat.com>
2454
2455 * amd64-linux-nat.c (gdbcore.h): Remove include.
2456 (regset.h): Likewise.
2457 (nat/linux-btrace.h): Likewise.
2458 (btrace.h): Likewise.
2459 (gdb_assert.h): Likewise.
2460 (string.h): Likewise.
2461 (sys/uio.h): Likewise.
2462 (sys/debugreg.h): Likewise.
2463 (sys/syscall.h): Likewise.
2464 (sys/procfs.h): Likewise.
2465 (sys/user.h): Likewise.
2466 (asm/ptrace.h): Likewise.
2467 (i386-nat.h): Likewise.
2468 * i386-linux-nat.c (i386-nat.h): Likewise.
2469 (regset.h): Likewise.
2470 (target.h): Likewise.
2471 (linux-nat.h): Likewise.
2472 (nat/linux-btrace.h): Likewise.
2473 (btrace.h): Likewise.
2474 (gdb_assert.h): Likewise.
2475 (string.h): Likewise.
2476 (sys/uio.h): Likewise.
2477 (sys/user.h): Likewise.
2478 (sys/procfs.h): Likewise.
2479 (sys/reg.h): Likewise.
2480 (sys/debugreg.h): Likewise.
2481 (ORIG_EAX): Remove definition.
2482
040baaf6
GB
24832014-07-11 Gary Benson <gbenson@redhat.com>
2484
2485 * i386-linux-nat.h: New file.
2486 * x86-linux-nat.h: Likewise.
2487 * x86-linux-nat.c: Likewise.
2488 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2489 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2490 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2491 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2492 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2493 (PTRACE_SETREGSET): Likewise.
2494 (arch_lwp_info): Now in x86-linux-nat.c.
2495 (have_ptrace_getregset): Now in x86-linux-nat.h.
2496 (x86_linux_dr_get): Now in x86-linux-nat.c.
2497 (x86_linux_dr_set): Likewise.
2498 (x86_linux_dr_get_addr): Likewise.
2499 (x86_linux_dr_get_control): Likewise.
2500 (x86_linux_dr_get_status): Likewise.
2501 (update_debug_registers_callback): Likewise.
2502 (x86_linux_dr_set_control): Likewise.
2503 (x86_linux_dr_set_addr): Likewise.
2504 (x86_linux_prepare_to_resume): Likewise.
2505 (x86_linux_new_thread): Likewise.
2506 (x86_linux_new_fork): Likewise.
2507 (x86_linux_get_thread_area): Likewise.
2508 (super_post_startup_inferior): Likewise.
2509 (x86_linux_child_post_startup_inferior): Likewise.
2510 (AMD64_LINUX_USER64_CS): Likewise.
2511 (AMD64_LINUX_X32_DS): Likewise.
2512 (x86_linux_read_description): Likewise.
2513 (x86_linux_enable_btrace): Likewise.
2514 (x86_linux_disable_btrace): Likewise.
2515 (x86_linux_teardown_btrace): Likewise.
2516 (x86_linux_read_btrace): Likewise.
2517 (x86_linux_create_target): Likewise.
2518 (x86_linux_add_target): Likewise.
2519 * i386-linux-nat.c (x86-linux-nat.h): New include.
2520 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2521 (PTRACE_SETREGSET): Likewise.
2522 (arch_lwp_info): Now in x86-linux-nat.c.
2523 (have_ptrace_getregset): Now in x86-linux-nat.h.
2524 (x86_linux_dr_get): Now in x86-linux-nat.c.
2525 (x86_linux_dr_set): Likewise.
2526 (x86_linux_dr_get_addr): Likewise.
2527 (x86_linux_dr_get_control): Likewise.
2528 (x86_linux_dr_get_status): Likewise.
2529 (update_debug_registers_callback): Likewise.
2530 (x86_linux_dr_set_control): Likewise.
2531 (x86_linux_dr_set_addr): Likewise.
2532 (x86_linux_prepare_to_resume): Likewise.
2533 (x86_linux_new_thread): Likewise.
2534 (x86_linux_new_fork): Likewise.
2535 (x86_linux_get_thread_area): Likewise.
2536 (super_post_startup_inferior): Likewise.
2537 (x86_linux_child_post_startup_inferior): Likewise.
2538 (AMD64_LINUX_USER64_CS): Likewise.
2539 (AMD64_LINUX_X32_DS): Likewise.
2540 (x86_linux_read_description): Likewise.
2541 (x86_linux_enable_btrace): Likewise.
2542 (x86_linux_disable_btrace): Likewise.
2543 (x86_linux_teardown_btrace): Likewise.
2544 (x86_linux_read_btrace): Likewise.
2545 (x86_linux_create_target): Likewise.
2546 (x86_linux_add_target): Likewise.
2547
1aa7e42c
GB
25482014-07-11 Gary Benson <gbenson@redhat.com>
2549
2550 * amd64-linux-nat.c: Comment and whitespace changes.
2551 * i386-linux-nat.c: Comment and whitespace changes.
2552
c1e246a0
GB
25532014-07-11 Gary Benson <gbenson@redhat.com>
2554
2555 * amd64-linux-nat.c (x86_linux_create_target): New function.
2556 (x86_linux_add_target): Likewise.
2557 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2558 * i386-linux-nat.c (x86_linux_create_target): New function.
2559 (x86_linux_add_target): Likewise.
2560 (_initialize_i386_linux_nat): Delegate to the above new functions.
2561
8c420b8d
GB
25622014-07-11 Gary Benson <gbenson@redhat.com>
2563
2564 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2565 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2566 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2567 (ps_get_thread_area): Delegate to the above.
2568
cb1da100
GB
25692014-07-11 Gary Benson <gbenson@redhat.com>
2570
2571 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2572 x86_linux_read_description. All uses updated. amd64-specific
2573 code conditionalized. Conditionalized i386-specific code added.
2574 Redundant cast removed.
2575 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2576 x86_linux_read_description. All uses updated. i386-specific
2577 code conditionalized. Conditionalized amd64-specific code added.
2578 One sizeof replaced with the actual type it is describing.
2579
2acf3cd0
GB
25802014-07-11 Gary Benson <gbenson@redhat.com>
2581
2582 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2583 x86_linux_dr_get. All uses updated.
2584 (amd64_linux_dr_set): Renamed to
2585 x86_linux_dr_set. All uses updated.
2586 (amd64_linux_dr_get_addr): Renamed to
2587 x86_linux_dr_get_addr. All uses updated.
2588 (amd64_linux_dr_get_control): Renamed to
2589 x86_linux_dr_get_control. All uses updated.
2590 (amd64_linux_dr_get_status): Renamed to
2591 x86_linux_dr_get_status. All uses updated.
2592 (amd64_linux_dr_set_control): Renamed to
2593 x86_linux_dr_set_control. All uses updated.
2594 (amd64_linux_dr_set_addr): Renamed to
2595 x86_linux_dr_set_addr. All uses updated.
2596 (amd64_linux_prepare_to_resume): Renamed to
2597 x86_linux_prepare_to_resume. All uses updated.
2598 (amd64_linux_new_thread): Renamed to
2599 x86_linux_new_thread. All uses updated.
2600 (amd64_linux_new_fork): Renamed to
2601 x86_linux_new_fork. All uses updated.
2602 (amd64_linux_child_post_startup_inferior): Renamed to
2603 x86_linux_child_post_startup_inferior. All uses updated.
2604 (amd64_linux_enable_btrace): Renamed to
2605 x86_linux_enable_btrace. All uses updated.
2606 (amd64_linux_disable_btrace): Renamed to
2607 x86_linux_disable_btrace. All uses updated.
2608 (amd64_linux_teardown_btrace): Renamed to
2609 x86_linux_teardown_btrace. All uses updated.
2610 (amd64_linux_read_btrace): Renamed to
2611 x86_linux_read_btrace. All uses updated.
2612 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2613 x86_linux_dr_get. All uses updated.
2614 (i386_linux_dr_set): Renamed to
2615 x86_linux_dr_set. All uses updated.
2616 (i386_linux_dr_get_addr): Renamed to
2617 x86_linux_dr_get_addr. All uses updated.
2618 (i386_linux_dr_get_control): Renamed to
2619 x86_linux_dr_get_control. All uses updated.
2620 (i386_linux_dr_get_status): Renamed to
2621 x86_linux_dr_get_status. All uses updated.
2622 (i386_linux_dr_set_control): Renamed to
2623 x86_linux_dr_set_control. All uses updated.
2624 (i386_linux_dr_set_addr): Renamed to
2625 x86_linux_dr_set_addr. All uses updated.
2626 (i386_linux_prepare_to_resume): Renamed to
2627 x86_linux_prepare_to_resume. All uses updated.
2628 (i386_linux_new_thread): Renamed to
2629 x86_linux_new_thread. All uses updated.
2630 (i386_linux_new_fork): Renamed to
2631 x86_linux_new_fork. All uses updated.
2632 (i386_linux_child_post_startup_inferior): Renamed to
2633 x86_linux_child_post_startup_inferior. All uses updated.
2634 (i386_linux_enable_btrace): Renamed to
2635 x86_linux_enable_btrace. All uses updated.
2636 (i386_linux_disable_btrace): Renamed to
2637 x86_linux_disable_btrace. All uses updated.
2638 (i386_linux_teardown_btrace): Renamed to
2639 x86_linux_teardown_btrace. All uses updated.
2640 (i386_linux_read_btrace): Renamed to
2641 x86_linux_read_btrace. All uses updated.
2642
b9c1d481
AS
26432014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2644
2645 * remote.c (extended_remote_post_attach): New function.
2646 (init_extended_remote_ops): Install it as to_post_attach method.
2647
7180e04a
PA
26482014-07-09 Pedro Alves <palves@redhat.com>
2649
2650 * infcmd.c (attach_command_post_wait): Don't call
2651 target_terminal_inferior here.
2652 (attach_command): Call it here instead.
2653
9a9a7608
AB
26542014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2657 field.
2658 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2659 from varobj.c, with additional checks.
2660 (c_varobj_ops): Fill in is_path_expr_parent field.
2661 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2662 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2663 field.
2664 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2665 ops method.
2666 (varobj_default_is_path_expr_parent): New function.
2667 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2668 (varobj_default_is_path_expr_parent): Declare new function.
2669
1f267ae3
MM
26702014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2671
2672 * infcmd.c (finish_backward): Turn internal error into normal error.
2673
b2ee242b
PA
26742014-07-07 Pedro Alves <palves@redhat.com>
2675
8a869bca 2676 PR gdb/17096
b2ee242b
PA
2677 * remote.c (async_handle_remote_sigint)
2678 (async_handle_remote_sigint_twice): Call
2679 gdb_call_async_signal_handler instead of
2680 mark_async_signal_handler.
2681
38e229b2
TT
26822014-07-07 Tom Tromey <tromey@redhat.com>
2683
2684 * target-delegates.c: Rebuild.
2685 * target.c (target_info_record): Remove.
2686 * record.c (info_record_command): Unconditionally call
2687 to_info_record.
2688 * target.h (struct target_ops) <to_info_record>: Use
2689 TARGET_DEFAULT_IGNORE.
2690 (target_info_record): Remove.
2691
f0f9ff95
TT
26922014-07-07 Tom Tromey <tromey@redhat.com>
2693
2694 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2695 TARGET_DEFAULT_NORETURN.
2696 * target.c (generic_tls_error): New function.
2697 (target_translate_tls_address): Don't search target stack.
2698 * target-delegates.c: Rebuild.
2699 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2700 stack.
2701 * linux-thread-db.c (thread_db_get_thread_local_address):
2702 Unconditionally call beneath target.
2703
4a5be5ee
MK
27042014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2705
2706 * cli/cli-logging.c (pop_output_files): Assign targerr to
2707 gdb_stdtargerr.
2708
92c3b204
AB
27092014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * MAINTAINERS (Write After Approval): Update my email address.
2712
9b11e3a7
GB
27132014-07-02 Gary Benson <gbenson@redhat.com>
2714
2715 * proc-service.c (ps_xfer_memory): Update comment.
2716 (ps_pstop): Remove unused function.
2717 (ps_pcontinue): Likewise.
2718 (ps_lstop): Likewise.
2719 (ps_lcontinue): Likewise.
2720 (ps_lgetxregsize): Likewise.
2721 (ps_lgetxregs): Likewise.
2722 (ps_lsetxregs): Likewise.
2723 (ps_plog): Likewise.
2724 (ps_ptread): Likewise.
2725 (ps_ptwrite): Likewise.
2726
cf363f18
MW
27272014-07-01 Mark Wielaard <mjw@redhat.com>
2728
2729 * dwarf2read.c (add_array_cv_type): New function.
2730 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2731 (read_tag_volatile_type): Likewise.
2732
82ae6c8d
TT
27332014-07-01 Tom Tromey <tromey@redhat.com>
2734
2735 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2736 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2737 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2738 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2739 * command.h (cmd_cfunc_ftype): Move earlier.
2740 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2741 (add_com, add_info): Use cmd_cfunc_ftype.
2742
96142726
TT
27432014-06-30 Tom Tromey <tromey@redhat.com>
2744
2745 * symtab.c (operator_chars): Make parameters and return type
2746 const.
2747 (file_matches): Make "files" const.
2748 (struct search_symbols_data) <files>: Now const.
2749 (search_symbols): Make "regexp" and "files" parameters const.
2750 Update.
2751 (symtab_symbol_info): Remove cast.
2752 (rbreak_command): Update.
2753 * symtab.h (search_symbols): Update.
2754
b67a2c6f
YQ
27552014-06-27 Yao Qi <yao@codesourcery.com>
2756
2757 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2758 Change parameter type to 'struct thread_info *'. Caller
2759 updated.
2760 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2761 Update declaration.
2762 * dummy-frame.c (struct dummy_frame_id): New.
2763 (dummy_frame_id_eq): New function.
2764 (struct dummy_frame) <id>: Change its type to 'struct
2765 dummy_frame_id'.
2766 (dummy_frame_push): Add parameter ptid and save it in
2767 dummy_frame_id.
2768 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2769 inferior_ptid.
2770 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2771 to inferior_ptid.
2772 (lookup_dummy_frame): Change parameter type to 'struct
2773 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2774 instead of frame_id_eq.
2775 (dummy_frame_pop): Add parameter ptid. Callers updated.
2776 Update comments. Compose dummy_frame_id and pass it to
2777 lookup_dummy_frame.
2778 (dummy_frame_discard): Add parameter ptid.
2779 (dummy_frame_sniffer): Compose dummy_frame_id and call
2780 dummy_frame_id_eq instead of frame_id_eq.
2781 (fprint_dummy_frames): Print ptid.
2782 * dummy-frame.h: Remove comments.
2783 (dummy_frame_push): Add ptid in declaration.
2784 (dummy_frame_pop, dummy_frame_discard): Likewise.
2785
5b10184c
TT
27862014-06-26 Tom Tromey <tromey@redhat.com>
2787
2788 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2789 * command.h (error_no_arg): Update.
2790
06900326
TT
27912014-06-26 Tom Tromey <tromey@redhat.com>
2792
2793 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2794 (do_show_command): Make "arg" const.
2795 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2796
c2bcbb1d
TT
27972014-06-26 Tom Tromey <tromey@redhat.com>
2798
2799 * record-full.c (record_full_get_bookmark): Make "args" const.
2800 (record_full_goto_bookmark): Make "raw_bookmark" const.
2801 * record.c (record_goto): New function.
2802 (cmd_record_goto): Use it. Now static.
2803 * record.h (record_goto): Declare.
2804 (cmd_record_goto): Remove declaration.
2805 * target-delegates.c: Rebuild.
2806 * target.h (struct target_ops) <to_get_bookmark,
2807 to_goto_bookmark>: Make parameter const.
2808
9cbe5fff
TT
28092014-06-26 Tom Tromey <tromey@redhat.com>
2810
2811 * defs.h (generic_load): Update.
2812 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2813 * monitor.c (monitor_load): Make "args" const.
2814 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2815 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2816 const.
2817 (mips_load): Make "file" const.
2818 * remote-sim.c (gdbsim_load): Make "args" const.
2819 * remote.c (remote_load): Make "name" const.
2820 * symfile.c (generic_load): Make "args" const.
2821 * target-delegates.c: Rebuild.
2822 * target.c (target_load): Make "arg" const.
2823 (debug_to_load): Make "args" const.
2824 * target.h (struct target_ops) <to_load>: Make parameter const.
2825 (target_load): Update.
2826
34a68019
TT
28272014-06-26 Tom Tromey <tromey@redhat.com>
2828
2829 PR symtab/16902:
2830 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2831 (dwarf2_physname, read_partial_die)
2832 (guess_partial_die_structure_name, fixup_partial_die)
2833 (guess_full_die_structure_name, anonymous_struct_prefix)
2834 (dwarf2_name): Use per-BFD obstack.
2835
efc889c1
YQ
28362014-06-26 Yao Qi <yao@codesourcery.com>
2837
2838 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2839 dummyframe and this_id into inner block below.
2840
4395285e
YQ
28412014-06-26 Yao Qi <yao@codesourcery.com>
2842
2843 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2844 with "signal_pass[0]" in the initialization of signal_pass.
2845
aef92902
MM
28462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2847
2848 * record-btrace.c (record_btrace_generating_corefile)
2849 (record_btrace_prepare_to_generate_core)
2850 (record_btrace_done_generating_core): New.
2851 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2852 (record_btrace_store_registers, record_btrace_prepare_to_store):
2853 Forward request when generating a core file.
2854 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2855 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2856 to_done_generating_core.
2857
5fff78c4
MM
28582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2859
2860 * target.h (target_ops) <to_prepare_to_generate_core>
2861 <to_done_generating_core>: New.
2862 (target_prepare_to_generate_core, target_done_generating_core): New.
2863 * target.c (target_prepare_to_generate_core)
2864 (target_done_generating_core): New.
2865 * target-delegates.c: Regenerate.
2866 * gcore.c: (write_gcore_file): Rename to ...
2867 (write_gcore_file_1): ...this.
2868 (write_gcore_file): Call target_prepare_to_generate_core
2869 and target_done_generating_core.
2870
1d1f1ccb
MM
28712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2872
2873 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2874 * gcore.c (write_gcore_file): Free memory returned from
2875 make_corefile_notes.
2876 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2877 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2878
3343ef86
YQ
28792014-06-24 Yao Qi <yao@codesourcery.com>
2880
2881 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2882 (arm_linux_init_abi): Set skip_trampoline_code with
2883 gdbarch_skip_trampoline_code instead of
2884 find_solib_trampoline_target.
2885
18d18ac8
YQ
28862014-06-24 Yao Qi <yao@codesourcery.com>
2887
2888 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2889 arm_skip_bx_reg returns non-zero.
2890
80d8d390
YQ
28912014-06-24 Yao Qi <yao@codesourcery.com>
2892
2893 * arm-tdep.c (arm_skip_bx_reg): New function.
2894 (arm_skip_stub): Call arm_skip_bx_reg.
2895
6a18a01c
DB
28962014-06-23 Don Breazeal <donb@codesourcery.com>
2897
2898 * MAINTAINERS: Add myself as write-after-approval maintainer.
2899
8e9db26e
PA
29002014-06-23 Pedro Alves <palves@redhat.com>
2901
2902 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2903 DR_CONTROL before setting DR0..DR3.
2904 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2905 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2906 bits of DR_CONTROL related to the debug register slot being
2907 disabled. If all slots are vacant, clear local slowdown as well,
2908 and assert DR_CONTROL is 0.
2909
70afc5b7
SC
29102014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2911
2912 * python/lib/gdb/command/xmethods.py
2913 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2914 current progspace only if the string "progspace" matches LOCUS_RE.
2915
840ed64d
JK
29162014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 Fix --with-system-readline with readline-6.3 patch 5.
2919 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2920 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2921 types.
2922
26f2dc30
TT
29232014-06-20 Tom Tromey <tromey@redhat.com>
2924
2925 * dwarf2read.c (dw2_get_real_path): Use correct type in
2926 OBSTACK_CALLOC.
2927 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2928
125f8a3d
GB
29292014-06-20 Gary Benson <gbenson@redhat.com>
2930
2931 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2932 * common/glibc_thread_db.h: Likewise.
2933 * common/i386-cpuid.h: Likewise.
2934 * common/i386-gcc-cpuid.h: Likewise.
2935 * common/linux-btrace.h: Likewise.
2936 * common/linux-osdata.h: Likewise.
2937 * common/linux-procfs.h: Likewise.
2938 * common/linux-ptrace.h: Likewise.
2939 * common/mips-linux-watch.h: Likewise.
2940 * common/linux-btrace.c: Moved to nat.
2941 * common/linux-osdata.c: Likewise.
2942 * common/linux-procfs.c: Likewise.
2943 * common/linux-ptrace.c: Likewise.
2944 * common/mips-linux-watch.c: Likewise.
2945 * nat/gdb_thread_db.h: Moved from common.
2946 * nat/glibc_thread_db.h: Likewise.
2947 * nat/i386-cpuid.h: Likewise.
2948 * nat/i386-gcc-cpuid.h: Likewise.
2949 * nat/linux-btrace.c: Likewise.
2950 * nat/linux-btrace.h: Likewise.
2951 * nat/linux-osdata.c: Likewise.
2952 * nat/linux-osdata.h: Likewise.
2953 * nat/linux-procfs.c: Likewise.
2954 * nat/linux-procfs.h: Likewise.
2955 * nat/linux-ptrace.c: Likewise.
2956 * nat/linux-ptrace.h: Likewise.
2957 * nat/mips-linux-watch.c: Likewise.
2958 * nat/mips-linux-watch.h: Likewise.
2959 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2960 (object file files): Reordered.
2961 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2962 of glibc_thread_db.h.
2963
42995dbd
GB
29642014-06-20 Gary Benson <gbenson@redhat.com>
2965
2966 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2967 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2968 (i386_dr_low): Likewise.
2969 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2970 (i386_dr_low_set_addr): Likewise.
2971 (i386_dr_low_get_addr): Likewise.
2972 (i386_dr_low_can_set_control): Likewise.
2973 (i386_dr_low_set_control): Likewise.
2974 (i386_dr_low_get_control): Likewise.
2975 (i386_dr_low_get_status): Likewise.
2976 (i386_get_debug_register_length): Likewise.
2977 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2978 (i386_dr_low): Likewise.
2979 * nat/i386-dregs.c (i386-low.h): Remove include.
2980 (i386-nat.h): Likewise.
2981 (nat/i386-dregs.h): New include.
2982 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2983 (i386_dr_low_set_addr): Likewise.
2984 (i386_dr_low_get_addr): Likewise.
2985 (i386_dr_low_can_set_control): Likewise.
2986 (i386_dr_low_set_control): Likewise.
2987 (i386_dr_low_get_control): Likewise.
2988 (i386_dr_low_get_status): Likewise.
2989 (i386_get_debug_register_length): Likewise.
2990 (debug_hw_points): Likewise.
2991
3ed9baed
IB
29922014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2993
2994 * Makefile.in (SFILES): Add d-exp.y.
2995 (YYFILES): Add d-exp.c.
2996 (YYOBJ): Add d-exp.o.
2997 (local-maintainer-clean): Delete d-exp.c.
2998 * d-exp.y: New file.
2999 * d-lang.h (d_parse): New declaration.
3000 (d_error): New declaration.
3001 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3002 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3003 PREC_ORDER operators.
3004 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3005
78c164b0
YQ
30062014-06-19 Yao Qi <yao@codesourcery.com>
3007
3008 * gdbthread.h (any_running): Remove the declaration.
3009 * thread.c (any_running): Remove.
3010
f6e29b6e
YQ
30112014-06-19 Yao Qi <yao@codesourcery.com>
3012
3013 * gdbthread.h (struct thread_info) <state>: Change its type to
3014 'enum thread_state'. Update comments.
3015
034f788c
PA
30162014-06-19 Pedro Alves <palves@redhat.com>
3017
3018 * gdbthread.h (ALL_THREADS): Delete.
3019 (ALL_NON_EXITED_THREADS): New macro.
3020 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3021 instead of ALL_THREADS.
3022 * infrun.c (find_thread_needs_step_over)
3023 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3024 instead of ALL_THREADS.
3025 * record-btrace.c (record_btrace_open)
3026 (record_btrace_stop_recording, record_btrace_close)
3027 (record_btrace_is_replaying, record_btrace_resume)
3028 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3029 * remote.c (append_pending_thread_resumptions): Likewise.
3030 * thread.c (thread_apply_all_command): Likewise.
3031
46e33252
GB
30322014-06-19 Gary Benson <gbenson@redhat.com>
3033
3034 * i386-nat.c (i386_stopped_by_watchpoint):
3035 Use i386_dr_stopped_by_watchpoint.
3036 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3037 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3038
3a8ee006
GB
30392014-06-19 Gary Benson <gbenson@redhat.com>
3040
3041 * nat/i386-dregs.c: New file.
3042 * Makefile.in (i386-dregs.o): New rule.
3043 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3044 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3045 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3046 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3047 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3048 * config/i386/go32.mh (NATDEPFILES): Likewise.
3049 * config/i386/linux.mh (NATDEPFILES): Likewise.
3050 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3051 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3052 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3053 * i386-nat.h (debug_hw_points): New declaration.
3054 * i386-nat.c (breakpoint.h): Remove include.
3055 (command.h): Likewise.
3056 (target.h): Likewise.
3057 (gdb_assert.h): Likewise.
3058 (debug_hw_points): Made nonstatic.
3059 (debug_printf): Now in i386-dregs.c.
3060 (TARGET_HAS_DR_LEN_8): Likewise.
3061 (DR_CONTROL_SHIFT): Likewise.
3062 (DR_CONTROL_SIZE): Likewise.
3063 (DR_RW_EXECUTE): Likewise.
3064 (DR_RW_WRITE): Likewise.
3065 (DR_RW_READ): Likewise.
3066 (DR_RW_IORW): Likewise.
3067 (DR_LEN_1): Likewise.
3068 (DR_LEN_2): Likewise.
3069 (DR_LEN_4): Likewise.
3070 (DR_LEN_8): Likewise.
3071 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3072 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3073 (DR_ENABLE_SIZE): Likewise.
3074 (DR_LOCAL_SLOWDOWN): Likewise.
3075 (DR_GLOBAL_SLOWDOWN): Likewise.
3076 (DR_CONTROL_RESERVED): Likewise.
3077 (I386_DR_CONTROL_MASK): Likewise.
3078 (I386_DR_VACANT): Likewise.
3079 (I386_DR_LOCAL_ENABLE): Likewise.
3080 (I386_DR_GLOBAL_ENABLE): Likewise.
3081 (I386_DR_DISABLE): Likewise.
3082 (I386_DR_SET_RW_LEN): Likewise.
3083 (I386_DR_GET_RW_LEN): Likewise.
3084 (I386_DR_WATCH_HIT): Likewise.
3085 (i386_wp_op_t): Likewise.
3086 (i386_show_dr): Likewise.
3087 (i386_length_and_rw_bits): Likewise.
3088 (i386_insert_aligned_watchpoint): Likewise.
3089 (i386_remove_aligned_watchpoint): Likewise.
3090 (i386_handle_nonaligned_watchpoint): Likewise.
3091 (i386_update_inferior_debug_regs): Likewise.
3092 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3093 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3094 (i386_region_ok_for_watchpoint):
3095 Use i386_dr_region_ok_for_watchpoint.
3096 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3097
322a8e06
GB
30982014-06-19 Gary Benson <gbenson@redhat.com>
3099
3100 * i386-nat.c (i386_insert_hw_breakpoint): Use
3101 i386_insert_watchpoint.
3102 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3103
8f26655c
GB
31042014-06-19 Gary Benson <gbenson@redhat.com>
3105
3106 * i386-nat.c (i386_dr_show): Renamed to
3107 i386_show_dr and made static. All uses updated.
3108 (i386_dr_length_and_rw_bits): Renamed to
3109 i386_length_and_rw_bits and made static.
3110 All uses updated.
3111 (i386_dr_insert_aligned_watchpoint): Renamed to
3112 i386_insert_aligned_watchpoint and made static.
3113 All uses updated.
3114 (i386_dr_remove_aligned_watchpoint): Renamed to
3115 i386_remove_aligned_watchpoint and made static.
3116 All uses updated.
3117 (i386_dr_update_inferior_debug_regs): Renamed to
3118 i386_update_inferior_debug_regs and made static.
3119 All uses updated.
3120 * nat/i386-dregs.h (i386_dr_show): Removed.
3121 (i386_dr_length_and_rw_bits): Likewise.
3122 (i386_dr_insert_aligned_watchpoint): Likewise.
3123 (i386_dr_remove_aligned_watchpoint): Likewise.
3124 (i386_dr_update_inferior_debug_regs): Likewise.
3125
992c7d70
GB
31262014-06-19 Gary Benson <gbenson@redhat.com>
3127
3128 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3129 * configure: Regenerate.
3130 * config.in: Likewise.
3131 * main.c (signal.h): New include.
3132 (setup_alternate_signal_stack): New function.
3133 (captured_main): Call the above.
3134 * cp-support.c (signal.h): New include.
3135 (catch_demangler_crashes): New flag.
3136 (SIGJMP_BUF): New define.
3137 (SIGSETJMP): Likewise.
3138 (SIGLONGJMP): Likewise.
3139 (gdb_demangle_jmp_buf): New static global.
3140 (gdb_demangle_attempt_core_dump): Likewise.
3141 (gdb_demangle_signal_handler): New function.
3142 (gdb_demangle): If catch_demangler_crashes is set, install the
3143 above signal handler before calling bfd_demangle, and restore
3144 the original signal handler afterwards. Display the offending
3145 symbol and call demangler_warning the first time a segmentation
3146 fault is caught.
3147 (_initialize_cp_support): New maint set/show command.
3148
eae7090b
GB
31492014-06-19 Gary Benson <gbenson@redhat.com>
3150
3151 * utils.h (resource_limit_kind): New enum.
3152 (can_dump_core): New declaration.
3153 (warn_cant_dump_core): Likewise.
3154 (dump_core): Likewise.
3155 * utils.c (dump_core): Made nonstatic. Added new
3156 parameter "limit_kind".
3157 (can_dump_core): Made nonstatic. Moved printing code to...
3158 (warn_cant_dump_core): New function.
3159 (can_dump_core_warn): Likewise.
3160 (internal_vproblem): Replace calls to can_dump_core with
3161 calls to can_dump_core_warn. Supply new argument to each.
3162
57fcfb1b
GB
31632014-06-19 Gary Benson <gbenson@redhat.com>
3164
3165 * utils.h (demangler_vwarning): New declaration.
3166 (demangler_warning): Likewise.
3167 * utils.c (struct internal_problem)
3168 <user_settable_should_quit>: New field.
3169 <user_settable_should_dump_core>: Likewise
3170 (internal_error_problem): Add values for above new fields.
3171 (internal_warning_problem): Likewise.
3172 (demangler_warning_problem): New static global.
3173 (demangler_vwarning): New function.
3174 (demangler_warning): Likewise.
3175 (add_internal_problem_command): Selectively add commands.
3176 (_initialize_utils): New internal problem command.
3177 * maint.c (maintenance_demangler_warning): New function.
3178 (_initialize_maint_cmds): New command.
3179
17a40b44
TT
31802014-06-18 Tom Tromey <tromey@redhat.com>
3181
3182 * f-valprint.c (info_common_command_for_block): Update.
3183 * symtab.h (struct general_symbol_info) <common_block>: Now
3184 const.
3185
346d1dfe
TT
31862014-06-18 Tom Tromey <tromey@redhat.com>
3187
3188 * symtab.h (struct symtab) <blockvector>: Now const.
3189 * ada-lang.c (ada_add_global_exceptions): Update.
3190 * buildsym.c (augment_type_symtab): Update.
3191 * dwarf2read.c (dw2_lookup_symbol): Update.
3192 * jit.c (finalize_symtab): Update.
3193 * jv-lang.c (add_class_symtab_symbol): Update.
3194 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3195 Update.
3196 * objfiles.c (objfile_relocate1): Update.
3197 * psymtab.c (lookup_symbol_aux_psymtabs)
3198 (maintenance_check_psymtabs): Update.
3199 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3200 Update.
3201 * spu-tdep.c (spu_catch_start): Update.
3202 * symmisc.c (dump_symtab_1): Update.
3203 * symtab.c (lookup_global_symbol_from_objfile)
3204 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3205 (basic_lookup_transparent_type_quick)
3206 (basic_lookup_transparent_type, find_pc_sect_symtab)
3207 (find_pc_sect_line, search_symbols): Update.
3208 * block.c (find_block_in_blockvector): Make "bl" const.
3209 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3210 const.
3211 (blockvector_contains_pc): Make "bv" const.
3212 (block_for_pc_sect): Update.
3213 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3214 (blockvector_contains_pc): Update.
3215 * breakpoint.c (resolve_sal_pc): Update.
3216 * inline-frame.c (block_starting_point_at): Update.
3217
1834676b
TT
32182014-06-18 Tom Tromey <tromey@redhat.com>
3219
3220 * completer.c (complete_line): Make "line_buffer" const.
3221 * completer.h (complete_line): Update.
3222
ac1a991b
TT
32232014-06-18 Tom Tromey <tromey@redhat.com>
3224
3225 * symtab.c (add_macro_name): Remove unneeded cast.
3226
5bc98e52
TT
32272014-06-18 Tom Tromey <tromey@redhat.com>
3228
3229 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3230 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3231
8236def8
TT
32322014-06-18 Tom Tromey <tromey@redhat.com>
3233
3234 * probe.c (info_probes_for_ops): Make "arg" const.
3235 * probe.h (info_probes_for_ops): Update.
3236
3977b71f
TT
32372014-06-18 Tom Tromey <tromey@redhat.com>
3238
3239 * varobj.c (varobj_create): Update.
3240 * valops.c (value_of_this): Update.
3241 * tracepoint.c (add_local_symbols, scope_info): Update.
3242 * symtab.h (struct general_symbol_info) <block>: Now const.
3243 * symtab.c (skip_prologue_sal)
3244 (default_make_symbol_completion_list_break_on)
3245 (skip_prologue_using_sal): Update.
3246 * stack.h (iterate_over_block_locals)
3247 (iterate_over_block_local_vars): Update.
3248 * stack.c (print_frame_args): Update.
3249 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3250 parameter const.
3251 (get_selected_block): Make return type const.
3252 * python/py-frame.c (frapy_block): Update.
3253 * python/py-block.c (gdbpy_block_for_pc): Update.
3254 * p-exp.y (%union) <bval>: Now const.
3255 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3256 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3257 * m2-exp.y (%union) <bval>: Now const.
3258 * linespec.c (get_current_search_block): Make return type const.
3259 (create_sals_line_offset, find_label_symbols): Update.
3260 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3261 Update.
3262 (block_starting_point_at): Make "block" const.
3263 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3264 (check_exception_resume): Update.
3265 * guile/scm-frame.c (gdbscm_frame_block): Update.
3266 * guile/scm-block.c (gdbscm_lookup_block): Update.
3267 * frame.h (get_frame_block): Update.
3268 (get_selected_block): Make return type const.
3269 * frame.c (frame_id_inner): Update.
3270 * f-valprint.c (info_common_command_for_block)
3271 (info_common_command): Update.
3272 * dwarf2loc.c (dwarf2_find_location_expression)
3273 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3274 (locexpr_describe_location_piece): Update.
3275 * c-exp.y (%union) <bval>: Now const.
3276 * breakpoint.c (resolve_sal_pc): Update.
3277 * blockframe.c (get_frame_block):Make return type const.
3278 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3279 (block_innermost_frame): Update.
3280 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3281 (block_for_pc, block_for_pc_sect): Update.
3282 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3283 'pblock' const.
3284 (block_for_pc_sect, block_for_pc): Make return type const.
3285 * ax-gdb.c (gen_expr): Update.
3286 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3287 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3288 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3289 (ada_read_var_value): Update.
3290 * ada-exp.y (struct name_info) <block>: Now const.
3291 (%union): Likewise.
3292 (block_lookup): Constify.
3293
b9228891
GB
32942014-06-18 Gary Benson <gbenson@redhat.com>
3295
3296 * nat/i386-dregs.h: New file.
3297 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3298 * i386-nat.h (i386-dregs.h): New include.
3299 (DR_FIRSTADDR): Now in i386-dregs.h.
3300 (DR_LASTADDR): Likewise.
3301 (DR_NADDR): Likewise.
3302 (DR_STATUS): Likewise.
3303 (DR_CONTROL): Likewise.
3304 (i386_debug_reg_state): Likewise.
3305 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3306
a1aa2221
LM
33072014-06-18 Don Breazeal <donb@codesourcery.com>
3308
3309 * breakpoint.c (set_longjmp_breakpoint): Call
3310 momentary_breakpoint_from_master with additional argument.
3311 (set_longjmp_breakpoint_for_call_dummy): Call
3312 momentary_breakpoint_from_master with additional argument.
3313 (set_std_terminate_breakpoint): Call
3314 momentary_breakpoint_from_master with additional argument.
3315 (momentary_breakpoint_from_master): Add argument to function
3316 definition and use it to initialize structure member flag.
74228e77 3317 (clone_momentary_breakpoint): Call
a1aa2221
LM
3318 momentary_breakpoint_from_master with additional argument.
3319 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3320 member flags set in momentary_breakpoint_from_master.
3321
4be83cc2
GB
33222014-06-18 Gary Benson <gbenson@redhat.com>
3323
3324 * i386-nat.c (i386_show_dr): Renamed to
3325 i386_dr_show and made nonstatic. All uses updated.
3326 (i386_length_and_rw_bits): Renamed to
3327 i386_dr_length_and_rw_bits and made nonstatic.
3328 All uses updated.
3329 (i386_insert_aligned_watchpoint): Renamed to
3330 i386_dr_insert_aligned_watchpoint and made nonstatic.
3331 All uses updated.
3332 (i386_remove_aligned_watchpoint): Renamed to
3333 i386_dr_remove_aligned_watchpoint and made nonstatic.
3334 All uses updated.
3335 (i386_update_inferior_debug_regs): Renamed to
3336 i386_dr_update_inferior_debug_regs and made nonstatic.
3337 All uses updated.
3338
131aa0d4
GB
33392014-06-18 Gary Benson <gbenson@redhat.com>
3340
3341 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3342 (i386_dr_low_can_set_control): Likewise.
3343 (i386_dr_low_set_addr): Likewise.
3344 (i386_dr_low_set_control): Likewise.
3345 (i386_dr_low_get_addr): Likewise.
3346 (i386_dr_low_get_status): Likewise.
3347 (i386_dr_low_get_control): Likewise.
3348 (i386_insert_aligned_watchpoint): Use new macros.
3349 (i386_update_inferior_debug_regs): Likewise.
3350 (i386_stopped_data_address): Likewise.
3351
d9305f7f
GB
33522014-06-18 Gary Benson <gbenson@redhat.com>
3353
3354 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3355 New parameter. All uses updated.
3356
ea008da4
GB
33572014-06-18 Gary Benson <gbenson@redhat.com>
3358
3359 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3360 All uses updated.
3361
1b6d4134
GB
33622014-06-18 Gary Benson <gbenson@redhat.com>
3363
3364 * i386-nat.c (debug_printf): New macro.
3365 (i386_get_debug_register_length): Likewise.
3366 (TARGET_HAS_DR_LEN_8): Use above macro.
3367 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3368 and printf_unfiltered. Use phex to format values.
3369
9b4550ef
GB
33702014-06-18 Gary Benson <gbenson@redhat.com>
3371
3372 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3373 Make const.
3374
6e62758f
GB
33752014-06-18 Gary Benson <gbenson@redhat.com>
3376
3377 * i386-nat.c: Comment changes.
3378
51c79e94
GB
33792014-06-18 Gary Benson <gbenson@redhat.com>
3380
3381 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3382
3e11889a
GB
33832014-06-18 Gary Benson <gbenson@redhat.com>
3384
3385 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3386 (i386_insert_aligned_watchpoint): Likewise.
3387 (i386_remove_aligned_watchpoint): Likewise.
3388 (i386_handle_nonaligned_watchpoint): Likewise.
3389
fc6e2f03
GB
33902014-06-18 Gary Benson <gbenson@redhat.com>
3391
3392 * i386-nat.c: Whitespace changes.
3393
2afe7d50
SB
33942014-06-17 Samuel Bronson <naesten@gmail.com>
3395
3396 * MAINTAINERS: Update Roland McGrath's email address.
3397 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3398 Red Hat a while ago, and giving me a current address.
2afe7d50 3399
3bca49ee
TT
34002014-06-17 Tom Tromey <tromey@redhat.com>
3401
3402 * utils.h (savestring): Remove declaration.
3403
6e366df1
TT
34042014-06-17 Tom Tromey <tromey@redhat.com>
3405
3406 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3407
6be47f0c
KS
34082014-06-16 Keith Seitz <keiths@redhat.com>
3409
3410 PR mi/15863
3411 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3412 to update the varobj if inferior_ptid is null_ptid.
3413
7bc112c1
TT
34142014-06-16 Tom Tromey <tromey@redhat.com>
3415
3416 * target.h (struct target_ops) <to_info_proc>: Make parameter
3417 const.
3418 (target_info_proc): Update.
3419 * target.c (target_info_proc): Make "args" const.
3420 * procfs.c (procfs_info_proc): Update.
3421 * linux-tdep.c (linux_info_proc): Update.
3422 (linux_core_info_proc_mappings): Make "args" const.
3423 (linux_core_info_proc): Update.
3424 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3425 * gdbarch.c: Rebuild.
3426 * gdbarch.h: Rebuild.
3427 * corelow.c (core_info_proc): Update.
3428
fee354ee
TT
34292014-06-16 Tom Tromey <tromey@redhat.com>
3430
3431 * target.h (struct target_ops) <to_disconnect>: Make parameter
3432 const.
3433 (target_disconnect): Update.
3434 * target.c (target_disconnect): Make "args" const.
3435 * target-delegates.c: Rebuild.
3436 * remote.c (remote_disconnect): Update.
3437 * record.h (record_disconnect): Update.
3438 * record.c (record_disconnect): Update.
3439 * inf-child.c (inf_child_disconnect): Update.
3440
a30bf1f1
TT
34412014-06-16 Tom Tromey <tromey@redhat.com>
3442
3443 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3444 * target.c (debug_to_rcmd, default_rcmd): Update.
3445 * target-delegates.c: Rebuild.
3446 * remote.c (remote_rcmd): Update.
3447 * monitor.c (monitor_rcmd): Update.
3448
d03de421
PA
34492014-06-16 Pedro Alves <palves@redhat.com>
3450
3451 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3452 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3453 have OBJF_SHARED set.
3454 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3455 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3456 instead of OBJF_USERLOADED.
3457 * objfiles.h (OBJF_SHARED): Update comment.
3458 (userloaded_objfile_contains_address_p): Rename to ...
3459 (shared_objfile_contains_address_p): ... this, and update
3460 comments.
3461 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3462 new objfile.
3463 (remove_symbol_file_command): Skip objfiles that don't have
3464 OBJF_SHARED set.
3465
99f4262f
TT
34662014-06-16 Tom Tromey <tromey@redhat.com>
3467
3468 * minsyms.h (prim_record_minimal_symbol)
3469 (prim_record_minimal_symbol_and_info): Update comments.
3470
97d66cc6
EZ
34712014-06-14 Eli Zaretskii <eliz@gnu.org>
3472
3473 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3474 or --without-guile, according to how GDB was built.
3475
635c7e8a
TT
34762014-06-13 Tom Tromey <tromey@redhat.com>
3477
3478 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3479 to help_list.
3480 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3481 to help_list.
3482 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3483 help_list.
3484 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3485 help_list.Pass all_commands, not -1, to help_list.
3486 * cli/cli-dump.c (dump_command, append_command)
3487 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3488 (binary_dump_command, binary_append_command): Pass all_commands,
3489 not -1, to help_list.
3490 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3491 -1, to help_list.
3492 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3493 -1, to help_list.
3494 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3495 help_list.
3496 * top.c (set_history): Pass all_commands, not -1, to help_list.
3497 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3498 all_commands, not -1, to help_list.
3499 * symfile.c (overlay_command): Pass all_commands, not -1, to
3500 help_list.
3501 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3502 help_list.
3503 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3504 help_list.
3505 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3506 -1, to help_list.
3507 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3508 not -1, to help_list.
3509 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3510 not -1, to help_list.
3511 * maint.c (maintenance_command, maintenance_info_command)
3512 (maintenance_print_command, maintenance_set_cmd): Pass
3513 all_commands, not -1, to help_list.
3514 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3515 help_list.
3516 * language.c (set_check): Pass all_commands, not -1, to help_list.
3517 * infcmd.c (unset_command): Pass all_commands, not -1, to
3518 help_list.
3519 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3520 help_list.
3521 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3522 help_list.
3523 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3524 help_list.
3525 * breakpoint.c (save_command): Pass all_commands, not -1, to
3526 help_list.
3527 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3528 all_commands, not -1, to help_list.
3529
b94ade42
PL
35302014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3531
3532 * regcache.c (struct register_to_invalidate): New structure.
3533 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3534 functions.
3535 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3536
31f628ae
YQ
35372014-06-12 Yao Qi <yao@codesourcery.com>
3538
3539 * varobj.c (varobj_get_num_children): Call
3540 varobj_is_dynamic_p.
3541 (varobj_list_children): Likewise.
3542 (varobj_update): Likewise. Update comments.
3543
cde5ef40
YQ
35442014-06-12 Yao Qi <yao@codesourcery.com>
3545
3546 * varobj.c (varobj_pretty_printed_p): Rename to ...
3547 (varobj_is_dynamic_p): ... this. New function.
3548 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3549 (varobj_is_dynamic_p): Declare.
3550 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3551 (mi_print_value_p, varobj_update_one): Likewise.
3552
576ea091
YQ
35532014-06-12 Pedro Alves <pedro@codesourcery.com>
3554 Yao Qi <yao@codesourcery.com>
3555
3556 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3557 (varobj_get_iterator): Wrap up code for pretty-printer by
3558 "#if HAVE_PYTHON" and "#endif".
3559 (update_dynamic_varobj_children): Likewise.
3560
827f100c
YQ
35612014-06-12 Pedro Alves <pedro@codesourcery.com>
3562 Yao Qi <yao@codesourcery.com>
3563
3564 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3565 gdb_python_initialized is false. Move some code from varobj.c.
3566 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3567 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3568 (struct varobj_item): Moved to varobj-iter.h".
3569 (varobj_clear_saved_item): New function.
3570 (update_dynamic_varobj_children): Move python-related code to
3571 py-varobj.c.
3572 (free_variable): Call varobj_clear_saved_item and
3573 varobj_iter_delete.
3574
e5250216
YQ
35752014-06-12 Pedro Alves <pedro@codesourcery.com>
3576 Yao Qi <yao@codesourcery.com>
3577
3578 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3579 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3580 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3581 (py-varobj.o): New rule.
3582 * python/py-varobj.c: New file.
3583 * python/python-internal.h (py_varobj_get_iterator): Declare.
3584 * varobj-iter.h: New file.
3585 * varobj.c: Include "varobj-iter.h"
3586 (struct varobj) <child_iter>: Change its type from "PyObject *"
3587 to "struct varobj_iter *".
3588 <saved_item>: Likewise.
3589 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3590 [HAVE_PYTHON] (varobj_get_iterator): New function.
3591 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3592 python-specific code to python/py-varobj.c.
3593 (install_visualizer): Call varobj_iter_delete instead of
3594 Py_XDECREF.
3595 * varobj.h (varobj_ensure_python_env): Declare.
3596
5a2e0d6e
YQ
35972014-06-12 Yao Qi <yao@codesourcery.com>
3598
3599 * varobj.c (struct varobj_item): New structure.
3600 (create_child_with_value): Update declaration.
3601 (varobj_add_child): Replace arguments 'name' and 'value' with
3602 'item'. All callers updated.
3603 (install_dynamic_child): Likewise.
3604 (update_dynamic_varobj_children): Likewise.
3605 (varobj_add_child): Likewise.
3606 (create_child_with_value): Likewise.
3607
919b9a93
JB
36082014-06-11 Joel Brobecker <brobecker@adacore.com>
3609
3610 * NEWS: Create a new section for the next release branch.
3611 Rename the section of the current branch, now that it has
3612 been cut.
3613
71a55bdf
JB
36142014-06-11 Joel Brobecker <brobecker@adacore.com>
3615
3616 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3617 * version.in: Bump version to 7.8.50.DATE-cvs.
3618
364fe1f7
PA
36192014-06-11 Pedro Alves <palves@redhat.com>
3620
3621 PR remote/17028
3622 * ser-mingw.c (net_windows_socket_check_pending): New function.
3623 (net_windows_select_thread): Ignore spurious wakeups. Use
3624 net_windows_socket_check_pending.
3625 (net_windows_wait_handle): Check for pending events with
3626 ioctlsocket, through net_windows_socket_check_pending, instead of
3627 checking the socket's event.
3628
5a6c7709
SC
36292014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3630
3631 * python/python-internal.h (gdb_PyObject_GetAttrString)
3632 (gdb_PyObject_HasAttrString): New inline function definitions.
3633 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3634 char * of the second argument to PyObject_GetAttrString.
74228e77 3635
0e58ee40
JB
36362014-06-10 Joel Brobecker <brobecker@adacore.com>
3637
3638 * serial.c (serial_write): Fix index of character to be printed
3639 in call to serial_logchar when serial debug traces are enabled.
3640
d190df30
JB
36412014-06-10 Joel Brobecker <brobecker@adacore.com>
3642
3643 * gdbtypes (resolve_dynamic_range): Add function description.
3644
b4b01d36
PA
36452014-06-09 Pedro Alves <palves@redhat.com>
3646
3647 * linux-nat.c (linux_child_follow_fork): Initialize status with
3648 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3649 inner block. Only pass the signal to PTRACE_DETACH if in pass
3650 state.
3651
3657956b
GB
36522014-06-09 Gary Benson <gbenson@redhat.com>
3653
3654 * common/signals.c (gdb_signal_from_host): Reorder to separate
3655 the always-available ANSI-standard signals from the signals that
3656 require checking.
3657 (do_gdb_signal_to_host): Likewise.
3658 * proc-events.c (signal_table): Likewise.
3659
c077881a
HZ
36602014-06-08 Hui Zhu <hui@codesourcery.com>
3661
3662 * common/linux-ptrace.c (linux_disable_event_reporting): New
3663 function.
3664 * common/linux-ptrace.h (linux_disable_event_reporting): New
3665 declaration.
3666 * linux-nat.c (linux_child_follow_fork): Do a single step before
3667 detach.
3668
4186eb54
KS
36692014-06-07 Keith Seitz <keiths@redhat.com>
3670
3671 Revert:
3672 PR c++/16253
3673 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3674 from symbol_matches_domain in symtab.c. All local callers
3675 of symbol_matches_domain updated.
3676 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3677 search STRUCT_DOMAIN.
3678 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3679 independently. standard_lookup will do that automatically.
3680 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3681 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3682 (cp_lookup_symbol_in_namespace): Likewise.
3683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3684 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3685 may return a STRUCT_DOMAIN match.
3686 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3687 * cp-support.c: Include language.h.
3688 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3689 VAR_DOMAIN.
3690 * psymtab.c (match_partial_symbol): Compare the requested
3691 domain with the symbol's domain directly.
3692 (lookup_partial_symbol): Likewise.
3693 * symtab.c (lookup_symbol_in_language): Explain when/why
3694 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3695 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3696 appropriate languages.
3697 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3698 and moved to ada-lang.c
3699 (lookup_block_symbol): Explain that this function only returns
3700 symbol matching the requested DOMAIN.
3701 Compare the requested domain with the symbol's domain directly.
3702 (iterate_over_symbols): Compare the requested domain with the
3703 symbol's domain directly.
3704 * symtab.h (symbol_matches_domain): Remove.
3705
25326a28 37062014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3707
3708 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3709 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3710 (gdbscm_guile_version_is_at_least): Declare.
3711 (gdbscm_scm_string_to_int): Declare.
3712 * guile/guile.c (gdbscm_guile_major_version): New global.
3713 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3714 (guile_datadir): New static global.
3715 (gdbscm_guile_data_directory): New function.
3716 (initialize_scheme_side): Update.
3717 (misc_guile_functions): Add guile-data-directory.
3718 (initialize_gdb_module): Fetch guile version number.
3719 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3720 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3721 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3722 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3723 comments.
3724 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3725 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3726 * guile/scm-value.c (gdbscm_value_to_string): Only call
3727 scm_port_conversion_strategy if Guile version >= 2.0.6.
3728
0a770bb2 37292014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3730
3731 * main.c (print_gdb_help): Add -q and --silent.
3732
73ba372c
GB
37332014-06-06 Gary Benson <gbenson@redhat.com>
3734
3735 * common/signals.c: Remove preprocessor conditionals for
3736 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3737 SIGSEGV and SIGTERM.
3738 * proc-events.c: Likewise.
3739
c33b2f12
MM
37402014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3741
3742 * symfile.c (symfile_free_objfile): Remove restriction to
3743 OBJF_USERLOADED.
3744 * symfile-mem.c (symbol_file_add_from_memory): Call
3745 add_target_sections_of_objfile.
3746
fb934770
LC
37472014-06-05 Ludovic Courtès <ludo@gnu.org>
3748
3749 * guile/scm-value.c (gdbscm_history_append_x): Use
3750 'vlscm_get_value_smob_arg_unsafe' instead of
3751 'vlscm_scm_to_value'.
3752
6ef284bd
SM
37532014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3754
3755 PR mi/15806
3756 * utils.c (printchar): Don't escape at all if quoter is NUL.
3757 Update function documentation to clarify effect of parameter
3758 QUOTER.
3759 * remote.c (escape_buffer): Pass '\\' as the quoter to
3760 fputstrn_unfiltered.
3761 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3762 generate the output.
3763 (mi_solib_unloaded): Same.
3764
270c9937
JB
37652014-06-05 Joel Brobecker <brobecker@adacore.com>
3766
3767 * development.sh: Delete.
3768 * Makefile.in (config.status): Adjust dependency on development.sh.
3769 * configure.ac: Adjust development.sh source call.
3770 * configure: Regenerate.
3771
16f691fb
DE
37722014-06-04 Doug Evans <xdje42@gmail.com>
3773
3774 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3775 is_scheme_bkpt, spec.
3776 (bpscm_make_breakpoint_smob): Initialize new members.
3777 (gdbscm_create_breakpoint_x): Split into two ...
3778 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3779 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3780 (scheme_function breakpoint_functions): Update.
3781 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3782 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3783 register-breakpoint!.
3784
ef7cab6b
JB
37852014-06-04 Joel Brobecker <brobecker@adacorer.com>
3786
3787 PR server/17023
3788 * mem-break.c (z_type_supported): Return zero if
3789 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3790
012370f6
TT
37912014-06-04 Tom Tromey <tromey@redhat.com>
3792
3793 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3794 value_from_contents_and_address_unresolved.
3795 (ada_template_to_fixed_record_type_1): Likewise.
3796 (ada_which_variant_applies): Likewise.
3797 * value.h (value_from_contents_and_address_unresolved): Declare.
3798 * value.c (value_from_contents_and_address_unresolved): New
3799 function.
3800 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3801 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3802 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3803
92e2a17f
TT
38042014-06-04 Tom Tromey <tromey@redhat.com>
3805
3806 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3807
c0939df1
TT
38082014-06-04 Tom Tromey <tromey@redhat.com>
3809
3810 * procfs.c (procfs_attach): Make "args" const.
3811 * windows-nat.c (windows_attach): Make "args" const.
3812 * nto-procfs.c (procfs_attach): Make "args" const.
3813 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3814 * go32-nat.c (go32_attach): Make "args" const.
3815 * gnu-nat.c (gnu_attach): Make "args" const.
3816 * darwin-nat.c (darwin_attach): Make "args" const.
3817 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3818 * linux-nat.c (linux_nat_attach): Make "args" const.
3819 * remote.c (extended_remote_attach_1, extended_remote_attach):
3820 Make "args" const.
3821 * target.h (struct target_ops) <to_attach>: Make "args" const.
3822 (find_default_attach): Likewise.
3823 * utils.c (parse_pid_to_attach): Make "args" const.
3824 * utils.h (parse_pid_to_attach): Update.
3825
8eaff7cd
TT
38262014-06-04 Tom Tromey <tromey@redhat.com>
3827
3828 * target-delegates.c: Rebuild.
3829 * target.c (default_thread_address_space): New function.
3830 (target_thread_address_space): Simplify.
3831 * target.h (struct target_ops) <to_thread_address_space>: Add
3832 TARGET_DEFAULT_FUNC.
3833
1913f160
DE
38342014-06-04 Doug Evans <xdje42@gmail.com>
3835
3836 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3837
70ad5bff
MM
38382014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3839
3840 * record-btrace.c: Include event-loop.h and inf-loop.h.
3841 (record_btrace_resume_exec_dir)
3842 (record_btrace_async_inferior_event_handler)
3843 (record_btrace_handle_async_inferior_event): New.
3844 (record_btrace_open): Create async event handler.
3845 (record_btrace_close): Delete async event handler.
3846 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3847 Mark async event handler.
3848 (record_btrace_execution_direction): New.
3849 (init_record_btrace_ops): Initialize to_execution_direction.
3850
b6210538
DE
38512014-06-03 Doug Evans <xdje42@gmail.com>
3852
3853 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3854 (gdbscm_make_parameter): Ditto.
3855
a5b1fd27
DE
38562014-06-03 Doug Evans <dje@google.com>
3857
3858 * exec.c (exec_close_1): Call clear_section_table instead of
3859 resize_section_table.
3860 (clear_section_table): New function.
3861 (resize_section_table): Make static. Rename arg num_added to
3862 adjustment.
3863 * exec.h (clear_section_table): Declare.
3864 (resize_section_table): Delete.
3865 * progspace.c (release_program_space): Call clear_section_table
3866 instead of resize_section_table.
3867
0c6e92a5
SC
38682014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3869
3870 * NEWS (Python Scripting): Add entry about the new xmethods
3871 feature.
3872
883964a7
SC
38732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3874
3875 * python/py-xmethods.c: New file.
3876 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3877 (objfpy_dealloc): XDECREF on the new xmethods field.
3878 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3879 field.
3880 (objfpy_get_xmethods): New function.
3881 (objfile_getset): New entry 'xmethods'.
3882 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3883 (pspy_dealloc): XDECREF on the new xmethods field.
3884 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3885 field.
3886 (pspy_get_xmethods): New function.
3887 (pspace_getset): New entry 'xmethods'.
3888 * python/python-internal.h: Add declarations for new functions.
3889 * python/python.c (_initialize_python): Invoke
3890 gdbpy_initialize_xmethods.
3891 * python/lib/gdb/__init__.py (xmethods): New
3892 attribute.
3893 * python/lib/gdb/xmethod.py: New file.
3894 * python/lib/gdb/command/xmethods.py: New file.
3895
58992dc5
SC
38962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3897
3898 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3899 best match method returned by find_overload_match is an xmethod.
3900 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3901 the best matching operator returned by find_overload_match is an
3902 xmethod.
3903 * valops.c: #include "extension.h".
3904 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3905 Return void. The list of matching source methods is returned in
3906 "fn_list" and a vector of matching debug method workers is
3907 returned in "xm_worker_vec". Update all callers.
3908 (value_find_oload_method_list): Likewise.
3909 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3910 non-NULL, then the index of the best matching method in this
3911 vector is returned. Update all callers.
3912 (find_overload_match): Include xmethods while performing overload
3913 resolution.
3914
e81e7f5e
SC
39152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3916
3917 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3918 * extension-priv.h (struct extension_language_ops): Add the
3919 xmethod interface.
3920 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3921 get_matching_xmethod_workers, get_xmethod_argtypes,
3922 invoke_xmethod, free_xmethod_worker,
3923 free_xmethod_worker_vec): New functions.
3924 * extension.h: #include "common/vec.h".
3925 New function declarations.
3926 (struct xmethod_worker): New struct.
3927 (VEC (xmethod_worker_ptr)): New vector type.
3928 (xmethod_worker_ptr): New typedef.
3929 (xmethod_worker_vec): Likewise.
3930 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3931 builtin_type.
3932 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3933 (struct builtin_type): New field "xmethod".
3934 * valarith.c (value_ptradd): Assert that the value argument is not
3935 lval_xcallable.
3936 * valops.c (value_must_coerce_to_target): Return 0 for
3937 lval_xcallable values.
3938 * value.c (struct value): New field XM_WORKER in the field
3939 LOCATION.
3940 (value_address, value_raw_address): Return 0 for lval_xcallable
3941 values.
3942 (set_value_address): Assert that the value is not an
3943 lval_xcallable.
3944 (value_free): Free the associated xmethod worker when freeing
3945 lval_xcallable values.
3946 (set_value_component_location): Assert that the WHOLE value is not
3947 lval_xcallable.
3948 (value_of_xmethod, call_xmethod): New functions.
3949 * value.h: Declare "struct xmethod_worker".
3950 Declare new functions value_of_xmethod, call_xmethod.
3951
ef370185
JB
39522014-06-03 Joel Brobecker <brobecker@adacore.com>
3953 Pedro Alves <palves@redhat.com>
3954
3955 PR breakpoints/17000
3956 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3957 New function, extracted from software_breakpoint_inserted_here_p.
3958 (software_breakpoint_inserted_here_p): Replace factored out code
3959 by call to find_non_raw_software_breakpoint_inserted_here.
3960 (bp_target_info_copy_insertion_state): New function.
3961 (bkpt_insert_location): Handle the case of a single-step
3962 breakpoint already inserted at the same address.
3963 (bkpt_remove_location): Handle the case of a single-step
3964 breakpoint still inserted at the same address.
3965 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3966 breakpoint already inserted at the same address.
3967 (deprecated_remove_raw_breakpoint): Handle the case of a
3968 non-raw breakpoint still inserted at the same address.
3969 (find_single_step_breakpoint): New function, extracted from
3970 single_step_breakpoint_inserted_here_p.
3971 (find_single_step_breakpoint): New function,
3972 factored out from single_step_breakpoint_inserted_here_p.
3973 (single_step_breakpoint_inserted_here_p): Reimplement.
3974
1e2ccb61
BM
39752014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3976
3977 Pushed by Joel Brobecker <brobecker@adacore.com>
3978 * source.c (show_substitute_path_command): Fix display of matching
3979 substitution rules.
3980
d3448d85
GB
39812014-06-03 Gary Benson <gbenson@redhat.com>
3982
3983 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3984
06eb1586
DE
39852014-06-02 Doug Evans <xdje42@gmail.com>
3986
3987 Add parameter support for Guile.
3988 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3989 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3990 (scm-param.o): New rule.
3991 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3992 (gdbscm_misc_error): Declare.
3993 (gdbscm_canonicalize_command_name): Declare.
3994 (gdbscm_scm_to_host_string): Declare.
3995 (gdbscm_scm_from_host_string): Declare.
3996 (gdbscm_initialize_parameters): Declare.
3997 * guile/guile.c (initialize_gdb_module): Call
3998 gdbscm_initialize_parameters.
3999 * guile/lib/gdb.scm: Export parameter symbols.
4000 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4001 cmdscm_canonicalize_name and made public. All callers updated.
4002 * guile/scm-exception.c (gdbscm_misc_error): New function.
4003 * guile/scm-param.c: New file.
4004 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4005 (gdbscm_scm_to_host_string): New function.
4006 (gdbscm_scm_from_host_string): New function.
4007 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4008
e698b8c4
DE
40092014-06-02 Doug Evans <xdje42@gmail.com>
4010
4011 Add command support for Guile.
4012 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4013 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4014 (scm-cmd.o): New rule.
4015 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4016 (gdbscm_user_error_p): Declare.
4017 (gdbscm_parse_command_name): Declare.
4018 (gdbscm_valid_command_class_p): Declare.
4019 (gdbscm_initialize_commands): Declare.
4020 * guile/guile.c (initialize_gdb_module): Call
4021 gdbscm_initialize_commands.
4022 * guile/lib/gdb.scm: Export command symbols.
4023 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4024 (throw-user-error): New function.
4025 * guile/scm-cmd.c: New file.
4026 * guile/scm-exception.c (user_error_symbol): New static global.
4027 (gdbscm_user_error_p): New function.
4028 (gdbscm_initialize_exceptions): Set user_error_symbol.
4029 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4030
fb1f94b0
PM
40312014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4032
4033 * top.c (command_loop): Handle comments here...
4034 (command_line_input): ... not here.
4035
ded03782
DE
40362014-06-02 Doug Evans <xdje42@gmail.com>
4037
4038 Add progspace support for Guile.
4039 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4040 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4041 (scm-progspace.o): New rule.
4042 * guile/guile-internal.h (pspace_smob): New typedef.
4043 (psscm_pspace_smob_pretty_printers): Declare.
4044 (psscm_pspace_smob_from_pspace): Declare.
4045 (psscm_scm_from_pspace): Declare.
4046 * guile/guile.c (initialize_gdb_module): Call
4047 gdbscm_initialize_pspaces.
4048 * guile/lib/gdb.scm: Export progspace symbols.
4049 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4050 support.
4051 (append-pretty-printer!): Ditto.
4052 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4053 Implement.
4054 * guile/scm-progspace.c: New file.
4055
397998fc
AM
40562014-06-03 Alan Modra <amodra@gmail.com>
4057
4058 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4059 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4060
6aa5f3a6
DE
40612014-06-02 Doug Evans <dje@google.com>
4062
4063 Add support for skeletonless type units.
4064 * dwarf2read.c (struct dwarf2_per_objfile): New member
4065 n_allocated_type_units.
4066 (struct dwarf2_per_objfile) <tu_stats>: New member
4067 nr_all_type_units_reallocs.
4068 (create_signatured_type_table_from_index): Initialize
4069 n_allocated_type_units
4070 (create_all_type_units): Ditto.
4071 (add_type_unit): Move up in file. New arg slot.
4072 All callers updated. Increase space for all_type_units more
4073 efficiently.
4074 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4075 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4076 (lookup_dwp_signatured_type): Ditto.
4077 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4078 All callers updated.
4079 (build_type_psymtabs_1): Leave type_unit_groups as
4080 NULL if no TUs present.
4081 (print_tu_stats): New function.
4082 (process_skeletonless_type_unit): New function.
4083 (process_dwo_file_for_skeletonless_type_units): New
4084 function.
4085 (process_skeletonless_type_units): New function.
4086 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4087 Call print tu_stats if debugging enabled.
4088
41fac0cf
PA
40892014-06-02 Pedro Alves <palves@redhat.com>
4090
4091 * breakpoint.c (build_target_command_list): Don't build a command
4092 list if we have any duplicate location that isn't a dprintf.
4093
cd1608cc
PA
40942014-06-02 Pedro Alves <palves@redhat.com>
4095
4096 * breakpoint.c (dprintf_breakpoint_hit): New function.
4097 (initialize_breakpoint_ops): Install it as dprintf's
4098 breakpoint_hit method.
4099
486ef3b9
JB
41002014-06-02 Joel Brobecker <brobecker@adacore.com>
4101
4102 * source.c (substitute_path_rule_matches): Simplify using
4103 filename_ncmp instead of FILENAME_CMP.
4104
230cd560
JB
41052014-06-02 Joel Brobecker <brobecker@adacore.com>
4106
4107 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4108
16954d5d
LC
41092014-06-01 Ludovic Courtès <ludo@gnu.org>
4110
4111 * configure.ac: When Guile is available, check for the
4112 availability of 'scm_new_smob'.
4113 * configure, config.h.in: Regenerate.
4114 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4115 function.
4116
53e8a631
AB
41172014-05-30 Andrew Burgess <aburgess@broadcom.com>
4118
4119 * frame.c (struct frame_info): Add stop_string field.
4120 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4121 (get_prev_frame_always): Old content moved into
4122 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4123 TRY_CATCH, handle MEMORY_ERROR exceptions.
4124 (frame_stop_reason_string): New function definition.
4125 * frame.h (unwind_stop_reason_to_string): Extend comment to
4126 mention frame_stop_reason_string.
4127 (frame_stop_reason_string): New function declaration.
4128 * stack.c (frame_info): Switch to frame_stop_reason_string.
4129 (backtrace_command_1): Switch to frame_stop_reason_string.
4130 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4131 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4132 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4133
70e38b8e
AB
41342014-05-30 Andrew Burgess <aburgess@broadcom.com>
4135
4136 * frame.c (frame_stop_reason_string): Rename to ...
4137 (unwind_stop_reason_to_string): this.
4138 * frame.h (frame_stop_reason_string): Rename to ...
4139 (unwind_stop_reason_to_string): this.
4140 * stack.c (frame_info): Update call to frame_stop_reason_string.
4141 (backtrace_command_1): Likewise.
4142 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4143 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4144
938f0e2f
AB
41452014-05-30 Andrew Burgess <aburgess@broadcom.com>
4146
4147 * frame.c (remove_prev_frame): New function.
4148 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4149 remove_prev_frame.
4150
a09dd441
PA
41512014-05-29 Pedro Alves <palves@redhat.com>
4152
4153 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4154 and make it const. When a single-step decays to a continue,
4155 clear 'step', not 'hw_step'. Pass whether the caller wanted
4156 to step to user_visible_resume_ptid, not what we ask the
4157 target to do.
4158
bdc36728
PA
41592014-05-29 Pedro Alves <palves@redhat.com>
4160
4161 * infrun.c (process_event_stop_test, handle_step_into_function)
4162 (handle_step_into_function_backward): Adjust.
4163 Don't set the even thread's stop_step and call stop_waiting before
4164 calling end_stepping_range. Instead do that ...
4165 (end_stepping_range): ... here. Take an ecs pointer parameter.
4166
22bcd14b
PA
41672014-05-29 Pedro Alves <palves@redhat.com>
4168
4169 * infrun.c (stop_stepping): Rename to ...
4170 (stop_waiting): ... this.
4171 (proceed): Update comment.
4172 (process_event_stop_test, handle_inferior_event)
4173 (handle_signal_stop, handle_step_into_function)
4174 (handle_step_into_function_backward): Update.
4175
4ae57c05
PA
41762014-05-29 Pedro Alves <palves@redhat.com>
4177
4178 * infcall.c (run_inferior_call): Don't check whether the current
4179 thread is running after the proceed call.
4180
329ea579
PA
41812014-05-29 Pedro Alves <palves@redhat.com>
4182 Tom Tromey <tromey@redhat.com>
4183
4184 * NEWS: Mention "maint set target-async", "set mi-async", and that
4185 background execution commands are now always available.
4186 * target.h (target_async_permitted): Update comment.
4187 * target.c (target_async_permitted, target_async_permitted_1):
4188 Default to 1.
4189 (set_target_async_command): Rename to ...
4190 (maint_set_target_async_command): ... this.
4191 (show_target_async_command): Rename to ...
4192 (maint_show_target_async_command): ... this.
4193 (_initialize_target): Adjust.
4194 * infcmd.c (prepare_execution_command): Make extern.
4195 * inferior.h (prepare_execution_command): Declare.
4196 * infrun.c (set_observer_mode): Leave target async alone.
4197 * mi/mi-interp.c (mi_interpreter_init): Install
4198 mi_on_sync_execution_done as sync_execution_done observer.
4199 (mi_on_sync_execution_done): New function.
4200 (mi_execute_command_input_handler): Don't print the prompt if we
4201 just started a synchronous command with an async target.
4202 (mi_on_resume): Check sync_execution before printing prompt.
4203 * mi/mi-main.h (mi_async_p): Declare.
4204 * mi/mi-main.c: Include gdbcmd.h.
4205 (mi_async_p): New function.
4206 (mi_async, mi_async_1): New globals.
4207 (set_mi_async_command, show_mi_async_command, mi_async): New
4208 functions.
4209 (exec_continue): Call prepare_execution_command.
4210 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4211 (mi_execute_async_cli_command): Use mi_async_p.
4212 (_initialize_mi_main): Install "set mi-async". Make
4213 "target-async" a deprecated alias.
4214
92bcb5f9
PA
42152014-05-29 Pedro Alves <palves@redhat.com>
4216
4217 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4218 (_initialize_cli_interp): Adjust.
4219 * event-loop.c: Include "observer.h".
4220 (start_event_loop): Notify 'command_error' observers instead of
4221 calling display_gdb_prompt. Remove FIXME comment.
4222 * event-top.c (display_gdb_prompt): Remove call into the
4223 interpreters.
4224 * inf-loop.c: Include "observer.h".
4225 (inferior_event_handler): Notify 'command_error' observers instead
4226 of calling display_gdb_prompt.
4227 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4228 observers instead of calling display_gdb_prompt.
4229 * interps.c (interp_set): Don't call display_gdb_prompt.
4230 (current_interp_display_prompt_p): Delete.
4231 * interps.h (interp_prompt_p): Delete declaration.
4232 (interp_prompt_p_ftype): Delete.
4233 (struct interp_procs) <prompt_proc_p>: Delete field.
4234 (current_interp_display_prompt_p): Delete declaration.
4235 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4236 (_initialize_mi_interp): Adjust.
4237 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4238 'command_error' observers.
4239 (tui_on_sync_execution_done, tui_on_command_error): New
4240 functions.
4241 (tui_display_prompt_p): Delete.
4242 (_initialize_tui_interp): Adjust.
4243
fd664c91
PA
42442014-05-29 Pedro Alves <palves@redhat.com>
4245
4246 PR gdb/13860
4247 * cli/cli-interp.c: Include infrun.h and observer.h.
4248 (cli_uiout, cli_interp): New globals.
4249 (cli_on_signal_received, cli_on_end_stepping_range)
4250 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4251 functions.
4252 (cli_interpreter_init): Install them as 'end_stepping_range',
4253 'signal_received' 'signal_exited', 'exited' and 'no_history'
4254 observers.
4255 (_initialize_cli_interp): Remove cli_interp local.
4256 * infrun.c (handle_inferior_event): Call the several stop reason
4257 observers instead of printing the stop reason directly.
4258 (end_stepping_range): New function.
4259 (print_end_stepping_range_reason, print_signal_exited_reason)
4260 (print_exited_reason, print_signal_received_reason)
4261 (print_no_history_reason): Make static, and add an uiout
4262 parameter. Print to that instead of to CURRENT_UIOUT.
4263 * infrun.h (print_end_stepping_range_reason)
4264 (print_signal_exited_reason, print_exited_reason)
4265 (print_signal_received_reason print_no_history_reason): New
4266 declarations.
4267 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4268 'mi_uiout'.
4269 <cli_uiout>: New field.
4270 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4271 uiout for CLI output. Install 'signal_received',
4272 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4273 observers.
4274 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4275 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4276 (mi_on_no_history): New functions.
4277 (ui_out_free_cleanup): Delete function.
4278 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4279 instead use the one already stored in the MI interpreter data.
4280 (mi_ui_out): Adjust.
4281 * tui/tui-interp.c: Include infrun.h and observer.h.
4282 (tui_interp): New global.
4283 (tui_on_signal_received, tui_on_end_stepping_range)
4284 (tui_on_signal_exited, tui_on_exited)
4285 (tui_on_no_history): New functions.
4286 (tui_init): Install them as 'end_stepping_range',
4287 'signal_received' 'signal_exited', 'exited' and 'no_history'
4288 observers.
4289 (_initialize_tui_interp): Delete tui_interp local.
4290
8817a6f2
PA
42912014-05-29 Pedro Alves <palves@redhat.com>
4292
4293 PR gdb/15713
4294 * linux-nat.c (linux_nat_resume_callback): Rename the second
4295 parameter to 'except'. Skip LP if it points to EXCEPT.
4296 (linux_nat_resume): Don't mark the event lwp as not stopped
4297 before resuming sibling lwps. Instead ask
4298 linux_nat_resume_callback to skip the event lwp. Mark it as not
4299 stopped after actually resuming it.
4300 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4301 resuming it.
4302 (wait_lwp): Mark the lwp as stopped here.
4303 (stop_wait_callback): Mark the lwp as not stopped right after
4304 resuming it. Don't mark lwps as stopped here.
4305 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4306 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4307
251bde03
PA
43082014-05-29 Pedro Alves <palves@redhat.com>
4309
4310 PR PR15693
4311 * infrun.c (resume): Determine how much to resume depending on
4312 whether the caller wanted a step, not whether we can hardware step
4313 the target. Mark all threads that we intend to run as running,
4314 unless we're calling an inferior function.
4315 (normal_stop): If the thread is running an infcall, don't finish
4316 thread state.
4317 * target.c (target_resume): Don't mark threads as running here.
4318
7f3c0343
JB
43192014-05-28 Joel Brobecker <brobecker@adacore.com>
4320
4321 * serial.c (_initialize_serial): Remove support for
4322 the "set remotebaud" and "show remotebaud" commands.
4323 * NEWS: Add entry documenting the removal of that command.
4324
ee34b3f9
YQ
43252014-05-28 Yao Qi <yao@codesourcery.com>
4326
4327 * charset.c: Fix typo in comments.
4328
add6c04d
GB
43292014-05-27 Gary Benson <gbenson@redhat.com>
4330
4331 * utils.c (internal_vproblem): Prompt for a bug report.
4332
92c48fc5
AW
43332014-05-26 Andy Wingo <wingo@igalia.com>
4334
4335 * guile/scm-arch.c (arscm_mark_arch_smob):
4336 * guile/scm-block.c (bkscm_mark_block_smob)
4337 (bkscm_mark_block_syms_progress_smob):
4338 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4339 * guile/scm-exception.c (exscm_mark_exception_smob):
4340 * guile/scm-frame.c (frscm_mark_frame_smob):
4341 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4342 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4343 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4344 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4345 (ppscm_mark_pretty_printer_worker_smob):
4346 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4347 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4348 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4349 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4350 mark functions.
4351 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4352 function.
4353
b2715b27
AW
43542014-05-26 Andy Wingo <wingo@igalia.com>
4355 Doug Evans <xdje42@gmail.com>
4356
4357 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4358 empty_base_class. All uses updated.
4359 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4360 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4361 Adapt all callers.
4362 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4363 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4364 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4365 (gdbscm_gsmob_has_property_p, add_property_name)
4366 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4367 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4368 (gdb-object-has-property?, gdb-object-properties): Remove.
4369 (gdb-object-kind): Renamed from gsmob-kind.
4370
214ab2da
AW
43712014-05-26 Andy Wingo <wingo@igalia.com>
4372
4373 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4374 * configure: Regenerate.
4375
589fdceb
MM
43762014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4377
4378 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4379
67b5c0c1
MM
43802014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4381
4382 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4383 (replay_memory_access_read_only, replay_memory_access_read_write)
4384 (replay_memory_access_types, replay_memory_access)
4385 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4386 (cmd_set_record_btrace, cmd_show_record_btrace)
4387 (cmd_show_replay_memory_access): New.
4388 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4389 (record_btrace_remove_breakpoint): Replace
4390 record_btrace_allow_memory_access with replay_memory_access.
4391 (_initialize_record_btrace): Add commands.
4392 * NEWS: Announce it.
4393
036cd381
RR
43942014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4395
4396 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4397
c77c1e42
RR
43982014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4399
4400 * MAINTAINERS (Write After Approval): Move self back from
4401 paper trail.
4402
45741a9c
PA
44032014-05-22 Pedro Alves <palves@redhat.com>
4404
4405 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4406 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4407 (disable_randomization, enum exec_direction_kind)
4408 (execution_direction, stop_registers, start_remote)
4409 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4410 (wait_for_inferior, normal_stop, get_last_target_status)
4411 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4412 (insert_step_resume_breakpoint_at_sal)
4413 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4414 (set_step_info, print_stop_event, signal_stop_state)
4415 (signal_print_state, signal_pass_state, signal_stop_update)
4416 (signal_print_update, signal_pass_update)
4417 (update_signals_program_target, clear_exit_convenience_vars)
4418 (displaced_step_dump_bytes, update_observer_mode)
4419 (signal_catch_update, gdb_signal_from_command): Move
4420 declarations ...
4421 * infrun.h: ... to this new file.
4422 * amd64-tdep.c: Include infrun.h.
4423 * annotate.c: Include infrun.h.
4424 * arch-utils.c: Include infrun.h.
4425 * arm-linux-tdep.c: Include infrun.h.
4426 * arm-tdep.c: Include infrun.h.
4427 * break-catch-sig.c: Include infrun.h.
4428 * breakpoint.c: Include infrun.h.
4429 * common/agent.c: Include infrun.h instead of inferior.h.
4430 * corelow.c: Include infrun.h.
4431 * event-top.c: Include infrun.h.
4432 * go32-nat.c: Include infrun.h.
4433 * i386-tdep.c: Include infrun.h.
4434 * inf-loop.c: Include infrun.h.
4435 * infcall.c: Include infrun.h.
4436 * infcmd.c: Include infrun.h.
4437 * infrun.c: Include infrun.h.
4438 * linux-fork.c: Include infrun.h.
4439 * linux-nat.c: Include infrun.h.
4440 * linux-thread-db.c: Include infrun.h.
4441 * monitor.c: Include infrun.h.
4442 * nto-tdep.c: Include infrun.h.
4443 * procfs.c: Include infrun.h.
4444 * record-btrace.c: Include infrun.h.
4445 * record-full.c: Include infrun.h.
4446 * remote-m32r-sdi.c: Include infrun.h.
4447 * remote-mips.c: Include infrun.h.
4448 * remote-notif.c: Include infrun.h.
4449 * remote-sim.c: Include infrun.h.
4450 * remote.c: Include infrun.h.
4451 * reverse.c: Include infrun.h.
4452 * rs6000-tdep.c: Include infrun.h.
4453 * s390-linux-tdep.c: Include infrun.h.
4454 * solib-irix.c: Include infrun.h.
4455 * solib-osf.c: Include infrun.h.
4456 * solib-svr4.c: Include infrun.h.
4457 * target.c: Include infrun.h.
4458 * top.c: Include infrun.h.
4459 * windows-nat.c: Include infrun.h.
4460 * mi/mi-interp.c: Include infrun.h.
4461 * mi/mi-main.c: Include infrun.h.
4462 * python/py-threadevent.c: Include infrun.h.
4463
98eb56a4
PA
44642014-05-22 Pedro Alves <palves@redhat.com>
4465
4466 * infrun.c (handle_inferior_event): Store the exit code for
4467 --return-child-result here, instead of ...
4468 (print_exited_reason): ... here.
4469
17b2616c
PA
44702014-05-21 Pedro Alves <palves@redhat.com>
4471
4472 PR gdb/13860
4473 * gdbthread.h (struct thread_control_state): New field
4474 `command_interp'.
4475 * infrun.c (follow_fork): Copy the new thread control field to the
4476 child fork thread.
4477 (clear_proceed_status_thread): Clear the new thread control field.
4478 (proceed): Set the new thread control field.
4479 * interps.h (command_interp): Declare.
4480 * interps.c (command_interpreter): New global.
4481 (command_interp): New function.
4482 (interp_exec): Set `command_interpreter' while here.
4483 * cli-out.c (cli_uiout_dtor): New function.
4484 (cli_ui_out_impl): Install it.
4485 * mi/mi-interp.c: Include cli-out.h.
4486 (mi_cmd_interpreter_exec): Add comment.
4487 (restore_current_uiout_cleanup): New function.
4488 (ui_out_free_cleanup): New function.
4489 (mi_on_normal_stop): If finishing an execution command started by
4490 a CLI command, or any kind of breakpoint-like event triggered,
4491 print the stop event to the output (CLI) stream.
4492 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4493
5166082f
PA
44942014-05-21 Pedro Alves <palves@redhat.com>
4495
4496 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4497 current source line having changed.
4498 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4499 * infrun.c (normal_stop): Adjust call to
4500 set_current_sal_from_frame.
4501 * source.c (clear_lines_listed_range): New function.
4502 (set_current_source_symtab_and_line, identify_source_line): Clear
4503 the lines listed range.
4504 (line_info): Handle the first "info line" after the current source
4505 line having changed.
4506 * stack.c (print_stack_frame): Remove center handling.
4507 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4508 center sal.line.
4509
c1ee2fb3
PA
45102014-05-21 Pedro Alves <palves@redhat.com>
4511
4512 * inf-child.c (inf_child_mourn_inferior): New function.
4513 * inf-child.h (inf_child_mourn_inferior): New declaration.
4514 * darwin-nat.c (darwin_mourn_inferior): Use
4515 inf_child_mourn_inferior.
4516 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4517 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4518 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4519 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4520 * windows-nat.c (windows_mourn_inferior): Likewise.
4521
5c6d4fb2
DE
45222014-05-21 Doug Evans <xdje42@gmail.com>
4523
250748cb 4524 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4525
4a2722c5
DE
45262014-05-21 Doug Evans <xdje42@gmail.com>
4527
17292b30 4528 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4529 (gdbscm_out_of_range_error): Ditto.
4530 (gdbscm_memory_error): Ditto.
250748cb
DE
4531 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4532 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4533 (gdbscm_out_of_range_error): Update.
4534 (gdbscm_memory_error): Update.
4535 (gdbscm_scm_to_target_string_unsafe): Delete.
4536
6a3cb8e8
PA
45372014-05-21 Pedro Alves <palves@redhat.com>
4538
4539 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4540 globals.
4541 (inf_child_open_target): New function.
4542 (inf_child_open): Use inf_child_open_target to push the target
4543 instead of erroring out.
4544 (inf_child_disconnect, inf_child_close)
4545 (inf_child_maybe_unpush_target): New functions.
4546 (inf_child_target): Install inf_child_disconnect and
4547 inf_child_close. Store a pointer to the returned object.
4548 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4549 declarations.
4550 * target.c (auto_connect_native_target): New global.
4551 (show_default_run_target): New function.
4552 (find_default_run_target): Return NULL if automatically connecting
4553 to the native target is disabled.
4554 (_initialize_target): Install set/show auto-connect-native-target.
4555 * NEWS: Mention "set auto-connect-native-target", and "target
4556 native".
4557 * linux-nat.c (super_close): New global.
4558 (linux_nat_close): Call super_close.
4559 (linux_nat_add_target): Store a pointer to the base class's
4560 to_close method.
4561 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4562 inf_child_maybe_unpush.
4563 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4564 already pushed.
4565 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4566 the inferior. Use inf_child_maybe_unpush_target.
4567 (inf_ttrace_attach): Don't push the target if it is already
4568 pushed.
4569 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4570 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4571 after mourning the inferior. Use inf_child_maybe_unpush_target.
4572 (darwin_attach_pid): Don't push the target if it is already
4573 pushed.
4574 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4575 mourning the inferior. Use inf_child_maybe_unpush_target.
4576 (gnu_detach): Use inf_child_maybe_unpush_target.
4577 * go32-nat.c (go32_create_inferior): Don't push the target if it
4578 is already pushed.
4579 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4580 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4581 (procfs_open): Rename to ...
4582 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4583 comments. Can target_preopen before changing node. Call
4584 inf_child_open_target to push the target explicitly.
4585 (procfs_attach): Don't push the target if it is already pushed.
4586 (procfs_detach): Use inf_child_maybe_unpush_target.
4587 (procfs_create_inferior): Don't push the target if it is already
4588 pushed.
4589 (nto_native_ops): New global.
4590 (procfs_open): Reimplement.
4591 (procfs_native_open): New function.
4592 (init_procfs_targets): Install procfs_native_open as to_open of
4593 "target native". Store a pointer to the "native" target in
4594 nto_native_ops.
4595 * procfs.c (procfs_attach): Don't push the target if it is already
4596 pushed.
4597 (procfs_detach): Use inf_child_maybe_unpush_target.
4598 (procfs_mourn_inferior): Only unpush the target after mourning the
4599 inferior. Use inf_child_maybe_unpush_target.
4600 (procfs_init_inferior): Don't push the target if it is already
4601 pushed.
4602 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4603 if it is already pushed.
4604
930ee1b1
PA
46052014-05-21 Pedro Alves <palves@redhat.com>
4606
4607 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4608 and "procfs" targets are now called "native" instead.
4609
1f5d1b13
PA
46102014-05-21 Pedro Alves <palves@redhat.com>
4611
4612 * go32-nat.c (go32_open): Delete.
4613 (go32_target): Don't override the to_open method.
4614
132f8e03
PA
46152014-05-21 Pedro Alves <palves@redhat.com>
4616
4617 * nto-procfs.c (procfs_can_run): New function.
4618 (nto_procfs_ops): New global.
4619 (init_procfs_targets): New, based on procfs_target. Install
4620 "target native" in addition to "target procfs".
4621 (_initialize_procfs): Call init_procfs_targets instead of adding
4622 the target here.
4623
03c136c3
PA
46242014-05-21 Pedro Alves <palves@redhat.com>
4625
4626 * windows-nat.c (windows_target): Don't override to_shortname,
4627 to_longname or to_doc.
4628
a635d0f3
PA
46292014-05-21 Pedro Alves <palves@redhat.com>
4630
4631 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4632 to_doc.
4633
4f9b5133
PA
46342014-05-21 Pedro Alves <palves@redhat.com>
4635
4636 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4637 to_shortname, to_longname or to_doc.
4638
bc85afde
PA
46392014-05-21 Pedro Alves <palves@redhat.com>
4640
4641 * go32-nat.c (go32_target): Don't override to_shortname,
4642 to_longname or to_doc.
4643
4ebfc96e
PA
46442014-05-21 Pedro Alves <palves@redhat.com>
4645
4646 * inf-child.c (inf_child_open): Remove mention of "child".
4647 (inf_child_target): Rename target to "native" instead of "child".
4648
2648dfed
AA
46492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4650
4651 * Makefile.in (SFILES): Delete "regset.c".
4652 (COMMON_OBS): Delete "regset.o".
4653 * regset.c: Remove.
4654 * regset.h (regset_alloc): Delete prototype.
4655
b13feb94
AA
46562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4657
4658 * sparc-linux-tdep.c (sparc32_linux_gregset)
4659 (sparc32_linux_fpregset): New static regset structures.
4660 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4661 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4662 'fpregset' fields.
4663 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4664 (sparc64_linux_fpregset): New static regset structures.
4665 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4666 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4667 New static regset structures.
4668 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4669 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4670 New static regset structures.
4671 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4672 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4673 New static regset structures.
4674 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4675 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4676 New static regset structures.
4677 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4678
b4fd25c9
AA
46792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4680
4681 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4682 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4683 register maps ("regmaps") from "*regset" to "*regmap". Do this
4684 for all regmap types and variables.
4685 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4686 (sparc32_linux_supply_core_gregset)
4687 (sparc32_linux_collect_core_gregset)
4688 (sparc32_linux_supply_core_fpregset)
4689 (sparc32_linux_collect_core_fpregset): Likewise.
4690 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4691 (sparc_gregmap, sparc_fpregmap): ... these.
4692 (sparc_supply_gregset, sparc_collect_gregset)
4693 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4694 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4695 (_initialize_sparc_nat): Rename regmaps.
4696 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4697 (sparc_gregmap, sparc_fpregmap): ... these.
4698 (sparc_supply_gregset, sparc_collect_gregset)
4699 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4700 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4701 Rename macros to...
4702 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4703 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4704 Likewise.
4705 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4706 Rename to...
4707 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4708 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4709 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4710 regmaps.
4711 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4712 (sparc32_bsd_fpregset): Rename to...
4713 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4714 (sparc32_bsd_fpregmap): ... these.
4715 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4716 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4717 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4718 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4719 (struct sparc_gregmap, struct sparc_fpregmap)
4720 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4721 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4722 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4723 (sparc32_supply_regset, sparc32_collect_gregset)
4724 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4725 prototypes.
4726 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4727 (sparc64_linux_ptrace_gregmap): ... this.
4728 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4729 (_initialize_sparc64_linux_nat): Rename regmaps.
4730 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4731 (sparc64_linux_core_gregmap): ... this.
4732 (sparc64_linux_supply_core_gregset)
4733 (sparc64_linux_collect_core_gregset)
4734 (sparc64_linux_supply_core_fpregset)
4735 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4736 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4737 (sparc64_sol2_fpregset): Rename to...
4738 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4739 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4740 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4741 regmaps.
4742 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4743 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4744 (sparc64_bsd_fpregset): Rename to...
4745 (struct sparc_gregmap, sparc64_sol2_gregmap)
4746 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4747 (sparc64_bsd_fpregmap): ... these.
4748 (sparc64_supply_gregset, sparc64_collect_gregset)
4749 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4750 prototypes.
4751 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4752 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4753 (sparc64fbsd_gregmap): ... this.
4754 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4755 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4756 Rename regmaps.
4757 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4758 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4759 (sparc64nbsd_collect_fpregset): Likewise.
4760 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4761 (sparc64nbsd_gregmap): ... this.
4762 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4763 regmaps.
4764 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4765 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4766 (sparc64obsd_gregmap): ... this.
4767 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4768 regmaps.
4769 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4770 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4771 (sparc32nbsd_gregmap): ... this.
4772 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4773 regmaps.
4774
8fea3224
AA
47752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4776
4777 * score-tdep.c (score7_linux_gregset): New static regset
4778 structure.
4779 (score7_linux_regset_from_core_section): Remove dynamic regset
4780 allocation.
4781 (score_gdbarch_init): Drop allocation of tdep structure.
4782 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4783
24534243
AA
47842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4785
4786 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4787 regset structures.
4788 (am33_regset_from_core_section): Remove dynamic regset
4789 allocations.
4790
b7195f27
AA
47912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4792
4793 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4794 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4795 structures.
4796 (mips_linux_regset_from_core_section): Remove dynamic regset
4797 allocations.
4798 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4799 'gregset64', 'fpregset', and 'fpregset64'.
4800 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4801 deleted tdep fields.
4802
ecc37a5a
AA
48032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4804
4805 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4806 regset structures.
4807 (amd64_regset_from_core_section): Remove dynamic regset
4808 allocations.
4809 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4810 structure.
4811 (amd64obsd_regset_from_core_section): Remove dynamic regset
4812 allocation.
4813 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4814 Likewise.
4815 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4816 x86-common regset supply function.
4817 * i386-tdep.c (i386_collect_gregset): Make static.
4818 (i386_gregset): New global regset structure.
4819 (i386_fpregset, i386_xstateregset): New static regset structures.
4820 (i386_regset_from_core_section): Remove dynamic regset
4821 allocations.
4822 (i386_gdbarch_init): Remove initialization of tdep fields
4823 'gregset', 'fpregset', and 'xstateregset'.
4824 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4825 'fpregset', and 'xstateregset'.
4826 (i386_collect_gregset): Remove prototype.
4827 (i386_gregset): New declaration.
4828 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4829 structure.
4830 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4831 allocation.
4832
b7611c43
AA
48332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4834
4835 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4836 (arm_linux_vfpregset): New static regset structures.
4837 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4838 regset structures.
4839 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4840 and 'vfpregset' fields.
4841
a069a2bd
AA
48422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4843
4844 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4845 (aarch64_linux_fpregset): New static regset structures.
4846 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4847 of regset structures.
4848 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4849 'fpregset' fields.
4850
09424cff
AA
48512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4852
4853 * regset.h (struct regset): Remove gdbarch field.
4854 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4855 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4856 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4857 Likewise.
4858 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4859 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4860 (ppc32_linux_vsxregset): Likewise.
4861 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4862 via the regcache instead of the regset.
4863 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4864 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4865 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4866 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4867 Likewise.
4868
3ca7dae4
AA
48692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4870
4871 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4872 Constify structures.
4873 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4874 (alphanbsd_aout_gregset): Likewise.
4875 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4876 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4877 Likewise.
4878 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4879 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4880 Likewise.
4881 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4882 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4883 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4884 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4885 * m88k-tdep.c (m88k_gregset): Likewise.
4886 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4887 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4888 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4889 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4890 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4891 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4892 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4893 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4894 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4895 Likewise.
4896 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4897 * sh-tdep.h (sh_corefile_gregset): Likewise.
4898 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4899 * vax-tdep.c (vax_gregset): Likewise.
4900
5876f503
JK
49012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4902
4903 Fix TLS access for -static -pthread.
4904 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4905 (try_thread_db_load_1): Initialize it.
4906 (thread_db_get_thread_local_address): Call it if LM is zero.
4907 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4908 * target.h (struct target_ops) (to_get_thread_local_address): Add
4909 load_module_addr comment.
4910
0256a6ac
PA
49112014-05-21 Pedro Alves <palves@redhat.com>
4912
4913 * dcache.c (dcache_read_memory_partial): If reading the cache line
4914 fails, fallback to reading just the memory the caller wanted.
4915
227533ac
DE
49162014-05-20 Doug Evans <dje@google.com>
4917
4918 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4919 instead of get_current_arch.
4920
936d2992
PA
49212014-05-20 Pedro Alves <palves@redhat.com>
4922
4923 * NEWS: Mention that compare-sections now works with all targets.
4924
4925 * remote.c (PACKET_qCRC): New enum value.
4926 (remote_verify_memory): Don't send qCRC if the target has no
4927 execution. Use packet_support/packet_ok. If the target doesn't
4928 support the qCRC packet, fallback to a deep memory copy.
4929 (compare_sections_command): Say "target image" instead of "remote
4930 executable".
4931 (_initialize_remote): Add PACKET_qCRC to the list of config
4932 packets that have no associated command. Extend comment.
4933 * target.c (simple_verify_memory, default_verify_memory): New
4934 function.
4935 * target.h (struct target_ops) <to_verify_memory>: Default to
4936 default_verify_memory.
4937 (simple_verify_memory): New declaration.
4938 * target-delegates.c: Regenerate.
4939
e59fa00f
MM
49402014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4941
4942 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4943
f2205de0
HZ
49442014-05-20 Hui Zhu <hui@codesourcery.com>
4945 Yao Qi <yao@codesourcery.com>
4946
4947 PR backtrace/16558
4948 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4949 and change address of sp and pc.
4950
c4e54771
TT
49512014-05-19 Tom Tromey <tromey@redhat.com>
4952
4953 * gdbtypes.c (rank_function): Use XNEWVEC.
4954 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4955
73051182
DE
49562014-05-19 Doug Evans <dje@google.com>
4957
4958 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4959 build_type_unit_groups and moved closer to only caller. Remove
4960 arguments. All references updated. Remove outdated .gdb_index
4961 comment.
4962 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4963 build_type_psymtabs_1.
4964
8832e7e3
DE
49652014-05-19 Doug Evans <dje@google.com>
4966
4967 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4968 n_type_unit_groups, all_type_unit_groups. All uses removed.
4969 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4970 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4971 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4972 (add_type_unit_group_to_table): Delete.
4973
cd8ae15e
DE
49742014-05-19 Doug Evans <dje@google.com>
4975
4976 * eval.c (evaluate_subexp_standard): Add some comments.
4977
08f4850b
DE
49782014-05-17 Doug Evans <xdje42@gmail.com>
4979
4980 * progspace.c (remove_program_space): Delete, unused.
4981 * progspace.h (remove_program_space): Ditto.
4982
bed8455c
DE
49832014-05-17 Doug Evans <xdje42@gmail.com>
4984
4985 * inferior.c (prune_inferiors): Fix comment.
4986 (remove_inferior_command): Call prune_program_spaces.
4987
8d551b02
DE
49882014-05-16 Doug Evans <dje@google.com>
4989
4990 New command line option -D.
4991 * NEWS: Mention it.
4992 * main.c (set_gdb_data_directory): New function.
4993 (captured_main): Recognize -D. Flag error for --data-directory "".
4994 Call set_gdb_data_directory.
4995 (print_gdb_help): Print --data-directory, -D.
4996 * main.h (set_gdb_data_directory): Declare.
4997 * top.c (staged_gdb_datadir): New static global.
4998 (set_gdb_datadir): Call set_gdb_data_directory
4999 (show_gdb_datadir): New function.
5000 (init_main): Update init of data-directory parameter.
5001
18848e28
GF
50022014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5003
5004 Import the "dirfd" gnulib module.
5005 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5006 * gnulib/aclocal.m4: Update.
5007 * gnulib/config.in: Update.
5008 * gnulib/configure: Update.
5009 * gnulib/import/Makefile.am: Update.
5010 * gnulib/import/Makefile.in: Update.
5011 * gnulib/import/dirfd.c: New.
5012 * gnulib/import/m4/dirfd.m4: New.
5013 * gnulib/import/m4/gnulib-cache.m4: Update.
5014 * gnulib/import/m4/gnulib-comp.m4: Update.
5015
95c64f92
YQ
50162014-05-16 Pierre Muller <muller@sourceware.org>
5017 Yao Qi <yao@codesourcery.com>
5018
5019 * valprint.c (print_wchar): Move the code on checking whether
5020 W is a printable wide char to the default branch of switch
5021 statement below. Call wchar_printable instead of gdb_iswprint.
5022
cac395ea
TM
50232014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5024
19679eca 5025 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5026 ldr.w and ldrd instructions.
5027
83655187
DE
50282014-05-15 Doug Evans <dje@google.com>
5029
5030 * dwarf2read.c (read_structure_type): Delete outdated comments.
5031
dd756689
TT
50322014-05-14 Tom Tromey <tromey@redhat.com>
5033
5034 * macrocmd.c (print_macro_definition): Reindent.
5035
75ddda77
DE
50362014-05-13 Doug Evans <xdje42@gmail.com>
5037
5038 * python/py-cmd.c (cmdpy_completer): Add comment.
5039 (completers): Make const.
5040
b0f16a3e
SM
50412014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5042
5043 * infrun.c (resume): Remove should_resume (unused). Move up
5044 declaration of resume_ptid.
5045
033c3379
TT
50462014-05-13 Tom Tromey <tromey@redhat.com>
5047
5048 * language.h (unop_type_check): Remove.
5049 (binop_type_check): Don't declare.
5050
9b44a3a5
AA
50512014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5052
5053 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5054 call to regcache_raw_collect.
5055
303a33fa
SM
50562014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5057
5058 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5059 mi_console->quote as the quoting character.
5060
196100a0
SM
50612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5062
5063 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5064
f989a1c8
TT
50652014-04-29 Tom Tromey <tromey@redhat.com>
5066
5067 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5068 "show debug varobj".
5069
9404b58f
KM
50702014-05-07 Kyle McMartin <kyle@redhat.com>
5071
5072 Pushed by Joel Brobecker <brobecker@adacore.com>.
5073 * aarch64-tdep.c (aarch64_software_single_step): New function.
5074 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5075 with aarch64_software_single_step.
5076
5e49ba57
JB
50772014-05-05 Joel Brobecker <brobecker@adacore.com>
5078
5079 GDB 7.7.1 released.
5080
c888a17d
KS
50812014-05-05 Keith Seitz <keiths@redhat.com>
5082
5083 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5084 variable or history value is successfully parsed.
5085
290a839c
YQ
50862014-05-05 Yao Qi <yao@codesourcery.com>
5087 Pedro Alves <palves@redhat.com>
5088
5089 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5090 address of blocks that intersects the requested range. Trim
5091 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5092 sections.
5093 * ctf.c (ctf_xfer_partial): Likewise.
5094
91256dc2
YQ
50952014-05-05 Yao Qi <yao@codesourcery.com>
5096
5097 * printcmd.c (display_command): Remove the check to
5098 target_has_execution.
5099
07284463
MK
51002014-05-03 Mark Kettenis <kettenis@gnu.org>
5101
5102 * ppcobsd-nat.c: Include "obsd-nat.h".
5103 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5104 add_target.
5105 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5106
30a1e6cc
SDJ
51072014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5108
5109 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5110 and 16-bit signed and unsigned arguments. Update comment.
5111 (stap_parse_probe_arguments): Extend code to handle such
5112 arguments. Use warning instead of complaint to notify about
5113 unrecognized bitness.
5114
f33da99a
SDJ
51152014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5116
5117 PR breakpoints/16889
5118 * stap-probe.c (stap_parse_probe_arguments): Simplify
5119 check for non-prefixed probes (i.e., probes whose
5120 arguments do not start with "N@"). Always set the
5121 argument type to a sane value.
5122
95cf3b38
DT
51232014-05-01 David Taylor <dtaylor@emc.com>
5124
5125 * remote.c (compare_sections_command): Add -r option to compare
5126 all loadable read-only sections.
5127
1cfdf534
SC
51282014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5129
5130 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5131 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5132 Update all callers.
5133 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5134 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5135 Remove unused CORE_ADDR argument. Update all callers.
5136
ca4f7f8b
PA
51372014-04-29 Pedro Alves <palves@redhat.com>
5138
5139 * remote.c (struct packet_config) <detect>: Extend comment.
5140 (add_packet_config_cmd): Don't set the config's detect or support
5141 fields here.
5142 (init_all_packet_configs): Also initialize the config's 'detect'
5143 field.
5144 (reset_all_packet_configs_support): New function.
5145 (remote_open_1): Call reset_all_packet_configs_support instead of
5146 init_all_packet_configs.
5147 (_initialize_remote): Initialize all packet configs. Assert that
5148 all packets have an associated command, except a few known
5149 outliers.
5150
11c1ba78
JB
51512014-04-28 Joel Brobecker <brobecker@adacore.com>
5152
5153 * dwarf2read.c (read_subrange_type): Handle dynamic
5154 DW_AT_lower_bound attributes.
5155
8739bc53
JB
51562014-04-28 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5159 dynamic bounds before computing its upper bound.
5160 (ada_discrete_type_low_bound): Same as above with the lower bound.
5161
6f8a3220
JB
51622014-04-28 Joel Brobecker <brobecker@adacore.com>
5163
5164 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5165 range types. Adjust the array handling implementation to
5166 take advantage of this change.
5167 (resolve_dynamic_range): New function, mostly extracted from
5168 resolve_dynamic_bounds.
5169 (resolve_dynamic_array): New function, mostly extracted from
5170 resolve_dynamic_bounds.
5171 (resolve_dynamic_bounds): Delete.
5172 (resolve_dynamic_type): Reimplement. Add handling of
5173 TYPE_CODE_RANGE types.
5174
4d072ce4
JB
51752014-04-28 Joel Brobecker <brobecker@adacore.com>
5176
5177 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5178 handling of parallel ___XA types.
5179
52865325
JB
51802014-04-28 Joel Brobecker <brobecker@adacore.com>
5181
5182 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5183 unnecessary second call to static_unwrap_type.
5184
433e77fa
HZ
51852014-04-27 Hui Zhu <hui@codesourcery.com>
5186
5187 * stack.c (print_frame_info): Call do_gdb_disassembly with
5188 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5189
b51a69ee
DE
51902014-04-26 Doug Evans <xdje42@gmail.com>
5191
5192 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5193
7ae1a6a6
PA
51942014-04-25 Pedro Alves <palves@redhat.com>
5195
5196 PR server/16255
5197 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5198 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5199 and newline from built string.
5200 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5201 (linux_ptrace_attach_fail_reason): ... this.
5202 * linux-nat.c (linux_nat_attach): Adjust to use
5203 linux_ptrace_attach_fail_reason.
5204
4082afcc
PA
52052014-04-25 Pedro Alves <palves@redhat.com>
5206
5207 * remote.c (struct remote_state): Remove multi_process_aware,
5208 non_stop_aware, cond_tracepoints, cond_breakpoints,
5209 breakpoint_commands, fast_tracepoints, static_tracepoints,
5210 install_in_trace, disconnected_tracing,
5211 enable_disable_tracepoints, string_tracing, and
5212 augmented_libraries_svr4_read fields.
5213 (remote_multi_process_p): Move further below in the file.
5214 (struct packet_config): Add comments.
5215 (update_packet_config): Delete function.
5216 (show_packet_config_cmd): Use packet_config_support.
5217 (add_packet_config_cmd): Use NULL as set callback.
5218 (packet_ok): "set remote foo-packet"-style commands no longer
5219 change config->supported -- adjust.
5220 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5221 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5222 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5223 (PACKET_QNonStop, PACKET_multiprocess_feature)
5224 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5225 (PACKET_DisconnectedTracing_feature)
5226 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5227 (set_remote_protocol_packet_cmd): Delete function.
5228 (packet_config_support, packet_support): New functions.
5229 (set_remote_protocol_Z_packet_cmd): Don't call
5230 update_packet_config.
5231 (remote_query_attached, remote_pass_signals)
5232 (remote_program_signals, remote_threads_info)
5233 (remote_threads_extra_info, remote_start_remote): Use
5234 packet_support.
5235 (remote_start_remote): Use packet_config_support and
5236 packet_support.
5237 (init_all_packet_configs): Set all packets to unknown support,
5238 instead of calling update_packet_config.
5239 (remote_check_symbols): Use packet_support.
5240 (remote_supported_packet): Unconditionally set the packet config's
5241 support status.
5242 (remote_multi_process_feature, remote_non_stop_feature)
5243 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5244 (remote_breakpoint_commands_feature)
5245 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5246 (remote_install_in_trace_feature)
5247 (remote_disconnected_tracing_feature)
5248 (remote_enable_disable_tracepoint_feature)
5249 (remote_string_tracing_feature)
5250 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5251 (remote_protocol_features): Adjust to use remote_supported_packet
5252 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5253 "ConditionalTracepoints", "ConditionalBreakpoints",
5254 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5255 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5256 "EnableDisableTracepoints", and "tracenz".
5257 (remote_query_supported): Use packet_support.
5258 (remote_open_1): Adjust.
5259 (extended_remote_attach_1): Use packet_support. Switch on the
5260 result of packet_ok instead of checking whether the packet ended
5261 up disabled.
5262 (remote_vcont_resume): Use packet_support.
5263 (remote_resume, remote_stop_ns, fetch_register_using_p)
5264 (remote_prepare_to_store, store_register_using_P)
5265 (check_binary_download, remote_write_bytes): Use packet_support.
5266 (remote_vkill): Use packet_support. Switch on the result of
5267 packet_ok instead of checking whether the packet ended up
5268 disabled.
5269 (extended_remote_supports_disable_randomization): Use
5270 packet_support.
5271 (extended_remote_run): Switch on the result of packet_ok instead
5272 of checking whether the packet ended up disabled.
5273 (remote_insert_breakpoint, remote_remove_breakpoint)
5274 (remote_insert_watchpoint, remote_remove_watchpoint)
5275 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5276 packet_support.
5277 (remote_search_memory): Use packet_config_support.
5278 (remote_get_thread_local_address, remote_get_tib_address)
5279 (remote_hostio_send_command, remote_can_execute_reverse): Use
5280 packet_support.
5281 (remote_supports_cond_tracepoints)
5282 (remote_supports_cond_breakpoints)
5283 (remote_supports_fast_tracepoints)
5284 (remote_supports_static_tracepoints)
5285 (remote_supports_install_in_trace)
5286 (remote_supports_enable_disable_tracepoint)
5287 (remote_supports_string_tracing)
5288 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5289 the packet config says the feature is enabled or disabled.
5290 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5291 (remote_get_trace_status): Use packet_support.
5292 (remote_set_disconnected_tracing): Adjust to check whether the
5293 feature is enabled with packet_support.
5294 (remote_set_trace_buffer_size, remote_use_agent)
5295 (remote_can_use_agent, remote_supports_btrace): Use
5296 packet_support.
5297 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5298 Use packet_config_support.
5299 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5300 the packet config says the feature is enabled or disabled.
5301 (set_range_stepping): Use packet_support.
5302
bdb52a22
TT
53032014-04-25 Tom Tromey <tromey@redhat.com>
5304
5305 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5306 argument.
5307
e9475ead
SA
53082014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5309
5310 * NEWS: Mention support for C99 variable length arrays.
5311
82eacd52
JB
53122014-04-24 Joel Brobecker <brobecker@adacore.com>
5313
5314 * ada-lang.c (standard_exc): Expand introductory comment.
5315
01f9f808
MS
53162014-04-24 Michael Sturm <michael.sturm@mintel.com>
5317 Walfred Tedeschi <walfred.tedeschi@intel.com>
5318
5319 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5320 AVX512 registers.
5321 (amd64_linux_read_description): Add code to handle AVX512 xstate
5322 mask and return respective tdesc.
5323 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5324 and features/i386/x32-avx512-linux.c.
5325 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5326 (amd64_linux_core_read_description): Add code to handle AVX512
5327 xstate mask and return respective tdesc.
5328 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5329 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5330 calculation.
5331 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5332 (tdesc_amd64_avx512_linux): New prototype.
5333 (tdesc_x32_avx512_linux): Likewise.
5334 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5335 features/i386/x32-avx512.c.
5336 (amd64_ymm_avx512_names): New register names for pseudo
5337 registers YMM16-31.
5338 (amd64_ymmh_avx512_names): New register names for raw registers
5339 YMMH16-31.
5340 (amd64_k_names): New register names for K registers.
5341 (amd64_zmmh_names): New register names for ZMM raw registers.
5342 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5343 (amd64_xmm_avx512_names): New register names for XMM16-31
5344 registers.
5345 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5346 registers.
5347 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5348 if feature is present.
5349 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5350 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5351 (AMD64_NUM_REGS): Adjust to new number of registers.
5352 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5353 registers supplied via XSTATE by AVX512 registers.
5354 (i386_linux_read_description): Add case for AVX512.
5355 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5356 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5357 (i386_linux_core_read_description): Add case for AVX512.
5358 (i386_linux_init_abi): Install supported register note section
5359 for AVX512.
5360 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5361 AVX512.
5362 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5363 registers to be number of zmm7h + 1.
5364 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5365 * i386-tdep.c: Include features/i386/i386-avx512.c.
5366 (i386_zmm_names): Add ZMM pseudo register names array.
5367 (i386_zmmh_names): Add ZMM raw register names array.
5368 (i386_k_names): Add K raw register names array.
5369 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5370 registers. AVX512 has 16 more ZMM registers than there are YMM
5371 registers.
5372 (i386_zmmh_regnum_p): Add function to look up register number of
5373 ZMM raw registers.
5374 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5375 (i386_k_regnum_p): Likewise for K raw registers.
5376 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5377 registers added by AVX512.
5378 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5379 registers added by AVX512.
5380 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5381 added by AVX512.
5382 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5383 (i386_pseudo_register_name): Add ZMM pseudo registers.
5384 (i386_zmm_type): Construct and return vector registers type for ZMM
5385 registers.
5386 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5387 ZMM0-31 pseudo registers and K registers.
5388 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5389 and YMM16-31 registers from register cache.
5390 (i386_pseudo_register_write): Add code to write K, ZMM and
5391 YMM16-31 registers.
5392 (i386_register_reggroup_p): Add code to include/exclude AVX512
5393 registers in/from respective register groups.
5394 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5395 registers if feature is present in xcr0.
5396 (i386_gdbarch_init): Add code to initialize AVX512 feature
5397 variables in tdep structure, wire in pseudo registers and call
5398 initialize_tdesc_i386_avx512.
5399 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5400 variables.
5401 (i386_regnum): Add AVX512 registers.
5402 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5403 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5404 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5405 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5406 512 bits wide.
5407 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5408 (i386_ymm_avx512_regnum_p): Likewise.
5409 (i386_k_regnum_p): Likewise.
5410 (i386_zmm_regnum_p): Likewise.
5411 (i386_zmmh_regnum_p): Likewise.
5412 * i387-tdep.c : Update year in copyright notice.
5413 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5414 XSAVE buffer.
5415 (XSAVE_YMM_AVX512_ADDR): New macro.
5416 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5417 XSAVE buffer.
5418 (XSAVE_XMM_AVX512_ADDR): New macro.
5419 (xsave_avx512_k_offset): New table for K register offsets in
5420 XSAVE buffer.
5421 (XSAVE_AVX512_K_ADDR): New macro.
5422 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5423 in XSAVE buffer.
5424 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5425 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5426 buffer.
5427 (i387_collect_xsave): Add code to collect AVX512 registers from
5428 XSAVE buffer.
5429 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5430 of XMM16-31 registers.
5431 (I387_NUM_K_REGS): New define for number of K registers.
5432 (I387_K0_REGNUM): New define for K0 register number.
5433 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5434 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5435 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5436 registers.
5437 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5438 (I387_XMM16_REGNUM): New define for XMM16 register number.
5439 (I387_YMM0_REGNUM): New define for YMM0 register number.
5440 (I387_KEND_REGNUM): New define for last K register number.
5441 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5442 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5443 number.
5444 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5445 number.
5446 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5447 size.
5448 * features/Makefile: Add AVX512 related files.
5449 * features/i386/32bit-avx512.xml: New file.
5450 * features/i386/64bit-avx512.xml: Likewise.
5451 * features/i386/amd64-avx512-linux.c: Likewise.
5452 * features/i386/amd64-avx512-linux.xml: Likewise.
5453 * features/i386/amd64-avx512.c: Likewise.
5454 * features/i386/amd64-avx512.xml: Likewise.
5455 * features/i386/i386-avx512-linux.c: Likewise.
5456 * features/i386/i386-avx512-linux.xml: Likewise.
5457 * features/i386/i386-avx512.c: Likewise.
5458 * features/i386/i386-avx512.xml: Likewise.
5459 * features/i386/x32-avx512-linux.c: Likewise.
5460 * features/i386/x32-avx512-linux.xml: Likewise.
5461 * features/i386/x32-avx512.c: Likewise.
5462 * features/i386/x32-avx512.xml: Likewise.
5463 * regformats/i386/amd64-avx512-linux.dat: New file.
5464 * regformats/i386/amd64-avx512.dat: Likewise.
5465 * regformats/i386/i386-avx512-linux.dat: Likewise.
5466 * regformats/i386/i386-avx512.dat: Likewise.
5467 * regformats/i386/x32-avx512-linux.dat: Likewise.
5468 * regformats/i386/x32-avx512.dat: Likewise.
5469 * NEWS: Add note about new support for AVX512.
5470
5471
08351840
PA
54722014-04-23 Pedro Alves <palves@redhat.com>
5473
5474 * breakpoint.c (insert_bp_location): Tolerate errors if the
5475 breakpoint is set in a user-loaded objfile.
5476 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5477 location is marked shlib_disabled. If the breakpoint is set in a
5478 user-loaded objfile is a GDB-side memory breakpoint, validate it
5479 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5480 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5481 flag.
5482 * mem-break.c (memory_validate_breakpoint): New function.
5483 * objfiles.c (userloaded_objfile_contains_address_p): New
5484 function.
5485 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5486 * target.h (memory_validate_breakpoint): New declaration.
5487
076855f9
PA
54882014-04-23 Pedro Alves <palves@redhat.com>
5489
5490 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5491 the breakpoint is set in a shared library, only suppress
5492 errors for software breakpoints, not hardware breakpoints.
5493
483805cf
PA
54942014-04-22 Pedro Alves <palves@redhat.com>
5495
5496 * infrun.c (schedlock_applies): New function, factored out from
5497 find_thread_needs_step_over.
5498 (find_thread_needs_step_over): Use it.
5499 (switch_back_to_stepped_thread): Always clear trap_expected if the
5500 step over is finished. Return early if scheduler locking applies.
5501 Look for the stepping thread and a potential step-over thread with
5502 a single loop.
5503 (currently_stepping_or_nexting_callback): Delete.
5504
a75fef0e
NC
55052014-04-22 Nick Clifton <nickc@redhat.com>
5506
5507 * NEWS: Mention that ARM sim now supports tracing.
5508
48b6e87e
YQ
55092014-04-22 Yao Qi <yao@codesourcery.com>
5510
5511 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5512 to ...
5513 * tracefile.c (tracefile_fetch_registers): ... it. New
5514 function.
5515 * tracefile.h (tracefile_fetch_registers): Declare.
5516 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5517 tracefile_fetch_registers.
5518
17617f2d
EZ
55192014-04-19 Eli Zaretskii <eliz@gnu.org>
5520
5521 PR gdb/14018
5522 * windows-nat.c (thread_rec): Don't display a warning when
5523 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5524 fails for any reason, set th->suspended to -1, so that we don't
5525 try to resume such a thread. Also, don't return NULL in these
5526 cases, to avoid completely ruin the session due to "PC register is
5527 not available" error.
5528 (do_windows_fetch_inferior_registers): Check errors in
5529 GetThreadContext call.
5530 (windows_continue): Accept an additional argument KILLED; if not
5531 zero, ignore errors in the SetThreadContext call, since the
5532 inferior was killed and is shutting down.
5533 (windows_resume, get_windows_debug_event)
5534 (windows_create_inferior, windows_mourn_inferior)
5535 (windows_kill_inferior): All callers of windows_continue changed
5536 to adjust to its new calling sequence.
5537
5723a6fd
YQ
55382014-04-19 Yao Qi <yao@codesourcery.com>
5539
5540 * ctf.c (ctf_open): Call post_create_inferior.
5541
614d5099
YQ
55422014-04-19 Yao Qi <yao@codesourcery.com>
5543
5544 * ctf.c (handle_id): New static variable.
5545 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5546 value. Get the declaration of event "register" and get length
5547 of field "contents".
5548
dac3e710
YQ
55492014-04-19 Yao Qi <yao@codesourcery.com>
5550
5551 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5552
2bca57ba
SC
55532014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5554
5555 * valops.c (oload_method_static): Remove unnecessary argument
5556 METHOD. Update all callers.
5557
51d48146
PA
55582014-04-18 Pedro alves <palves@redhat.com>
5559 Tom Tromey <tromey@redhat.com>
5560
5561 PR backtrace/15558
5562 * frame.c (get_prev_frame_1): Rename to ...
5563 (get_prev_frame_always): ... this, and make extern. Adjust.
5564 (skip_artificial_frames): Use get_prev_frame_always.
5565 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5566 (get_frame_unwind_stop_reason): Adjust to rename.
5567 * frame.h (get_prev_frame_always): Declare.
5568 * inline-frame.c: Include frame.h.
5569 (inline_frame_this_id): Use get_prev_frame_always.
5570
1bdad2e0
TG
55712014-04-18 Tristan Gingold <gingold@adacore.com>
5572
5573 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5574 code by using bfd_mach_o_get_base_address.
5575
7ce16bd4
UW
55762014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5577
5578 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5579 (spu_ax_pseudo_register_collect): New function.
5580 (spu_ax_pseudo_register_push_stack): Likewise.
5581 (spu_dwarf_reg_to_regnum): Likewise.
5582 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5583
2ed3c037
UW
55842014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5585
5586 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5587 Replace FRAME argument with FRAME_ID.
5588 * gdbarch.c, gdbarch.h: Regenerate.
5589 * findvar.c (default_value_from_register): Add GDBARCH argument;
5590 replace FRAME by FRAME_ID. No longer call get_frame_id.
5591 (value_from_register): Update call to gdbarch_value_from_register.
5592 * value.h (default_value_from_register): Update prototype.
5593 * s390-linux-tdep.c (s390_value_from_register): Update interface
5594 and call to default_value_from_register.
5595 * spu-tdep.c (spu_value_from_register): Likewise.
5596
5597 * findvar.c (address_from_register): Remove TYPE argument.
5598 Do not call value_from_register; use gdbarch_value_from_register
5599 with null_frame_id instead.
5600 * value.h (address_from_register): Update prototype.
5601 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5602 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5603 address_from_register interface change.
5604
71e50e83
YQ
56052014-04-17 Yao Qi <yao@codesourcery.com>
5606
5607 * gdbtypes.h: Update comments to link to types and macros'
5608 definitions.
5609
7a23c549
SC
56102014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5611
5612 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5613
22869d73
KS
56142014-04-16 Keith Seitz <keiths@redhat.com>
5615
5616 PR gdb/15827
5617 * dwarf2read.c (skip_one_die): Check that all relative-offset
5618 sibling DIEs fall within range of the current reader's buffer.
5619 (read_partial_die): Likewise.
5620
c4f87ca6
KS
56212014-04-16 Keith Seitz <keiths@redhat.com>
5622
5623 PR c++/16597
5624 * cp-namespace.c (lookup_symbol_file): If the type name of
5625 `this' is NULL, return immediately.
5626
b50c8614
KS
56272014-04-14 Keith Seitz <keiths@redhat.com>
5628
5629 PR c++/16253
5630 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5631 from symbol_matches_domain in symtab.c. All local callers
5632 of symbol_matches_domain updated.
5633 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5634 search STRUCT_DOMAIN.
5635 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5636 independently. standard_lookup will do that automatically.
5637 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5638 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5639 (cp_lookup_symbol_in_namespace): Likewise.
5640 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5641 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5642 may return a STRUCT_DOMAIN match.
5643 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5644 * cp-support.c: Include language.h.
5645 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5646 VAR_DOMAIN.
5647 * psymtab.c (match_partial_symbol): Compare the requested
5648 domain with the symbol's domain directly.
5649 (lookup_partial_symbol): Likewise.
5650 * symtab.c (lookup_symbol_in_language): Explain when/why
5651 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5652 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5653 appropriate languages.
5654 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5655 and moved to ada-lang.c
5656 (lookup_block_symbol): Explain that this function only returns
5657 symbol matching the requested DOMAIN.
5658 Compare the requested domain with the symbol's domain directly.
5659 (iterate_over_symbols): Compare the requested domain with the
5660 symbol's domain directly.
5661 * symtab.h (symbol_matches_domain): Remove.
5662
3d567982
TT
56632014-04-14 Tom Tromey <tromey@redhat.com>
5664
5665 PR c++/15246:
5666 * c-exp.y (type_aggregate_p): New function.
5667 (qualified_name, classify_inner_name): Use it.
5668 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5669 and TYPE_TARGET_TYPE of an enum type.
5670 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5671 an enum type.
5672 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5673 handle TYPE_DECLARED_CLASS.
5674 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5675 types.
5676 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5677 * valops.c (enum_constant_from_type): New function.
5678 (value_aggregate_elt): Use it.
5679 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5680 TYPE_CODE_ENUM.
5681
c848d642
TT
56822014-04-14 Tom Tromey <tromey@redhat.com>
5683
5684 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5685 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5686 const.
5687 * value.h (value_aggregate_elt): Update.
5688
0626fc76
TT
56892014-04-14 Tom Tromey <tromey@redhat.com>
5690
5691 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5692
5ecaaa66
SA
56932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5694
5695 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5696 (evaluate_subexp_standard): Pass noside argument.
5697 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5698 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5699 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5700 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5701 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5702
1612e0c0
SA
57032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5704
5705 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5706 points to a constant blob.
5707
c451ebe5
SA
57082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5709
5710 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5711 property and store it as the high bound and flag the range accordingly.
5712 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5713 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5714 * gdbtypes.h (enum range_flags): New enum.
5715 (struct range_bounds): Add flags member.
5716
1d42e4c4
SA
57172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5718
5719 * c-typeprint.c (c_type_print_varspec_suffix): Added
5720 check for not yet resolved high bound. If unresolved, print
5721 "variable length" string to the console instead of random
5722 length.
5723
9f1f738a
SA
57242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5725
5726 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5727 value.
5728 (ada_template_to_fixed_record_type_1): Likewise.
5729 (ada_to_fixed_type_1): Likewise.
5730 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5731 (cp_print_value): Likewise.
5732 * d-valprint.c (dynamic_array_type): Likewise.
5733 * findvar.c (address_of_variable): Likewise.
5734 * jv-valprint.c (java_value_print): Likewise.
5735 * valops.c (value_ind): Likewise.
5736 * value.c (coerce_ref): Likewise.
5737
3c8452d4
SA
57382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5739
5740 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5741 value and retrieve the dynamic type size.
5742
4ad88275
SA
57432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5744
5745 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5746 passed to sizeof is dynamic evaluate the argument to compute the length.
5747
80180f79
SA
57482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5749 Joel Brobecker <brobecker@adacore.com>
5750
5751 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5752 (dwarf2_evaluate_property): New function.
5753 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5754 * dwarf2read.c (attr_to_dynamic_prop): New function.
5755 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5756 attribute.
5757 * gdbtypes.c: Include dwarf2loc.h.
5758 (is_dynamic_type): New function.
5759 (resolve_dynamic_type): New function.
5760 (resolve_dynamic_bounds): New function.
5761 (get_type_length): New function.
5762 (check_typedef): Use get_type_length to compute type length.
5763 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5764 (TYPE_LOW_BOUND_KIND): New macro.
5765 (is_dynamic_type): New function prototype.
5766 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5767 to resolve dynamic properties of the type. Update comment.
5768 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5769
a1556843
RH
57702014-04-14 Richard Henderson <rth@redhat.com>
5771
5772 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5773
0be03e84
DE
57742014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5775 Doug Evans <xdje42@gmail.com>
5776
5777 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5778 dereference TYPE_CODE_REF values.
5779
6b662e19
JB
57802014-04-11 Joel Brobecker <brobecker@adacore.com>
5781
5782 Revert the following changes due to regressions:
5783
5784 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5785 (dwarf2_evaluate_property): New function.
5786 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5787 * dwarf2read.c (attr_to_dynamic_prop): New function.
5788 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5789 attribute.
5790 * gdbtypes.c: Include dwarf2loc.h.
5791 (is_dynamic_type): New function.
5792 (resolve_dynamic_type): New function.
5793 (resolve_dynamic_bounds): New function.
5794 (get_type_length): New function.
5795 (check_typedef): Use get_type_length to compute type length.
5796 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5797 (TYPE_LOW_BOUND_KIND): New macro.
5798 (is_dynamic_type): New function prototype.
5799 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5800 to resolve dynamic properties of the type. Update comment.
5801 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5802
5803 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5804 passed to sizeof is dynamic evaluate the argument to compute the length.
5805
5806 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5807 value and retrieve the dynamic type size.
5808
5809 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5810 (ada_template_to_fixed_record_type_1): Likewise.
5811 (ada_to_fixed_type_1): Likewise.
5812 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5813 (cp_print_value): Likewise.
5814 * d-valprint.c (dynamic_array_type): Likewise.
5815 * eval.c (evaluate_subexp_with_coercion): Likewise.
5816 * findvar.c (address_of_variable): Likewise.
5817 * jv-valprint.c (java_value_print): Likewise.
5818 * valops.c (value_ind): Likewise.
5819 * value.c (coerce_ref): Likewise.
5820
5821 * c-typeprint.c (c_type_print_varspec_suffix): Added
5822 check for not yet resolved high bound. If unresolved, print
5823 "variable length" string to the console instead of random
5824 length.
5825
5826 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5827 property and store it as the high bound and flag the range accordingly.
5828 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5829 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5830 * gdbtypes.h (enum range_flags): New enum.
5831 (struct range_bounds): Add flags member.
5832
5833 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5834 points to a constant blob.
5835
5836 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5837 (evaluate_subexp_standard): Pass noside argument.
5838 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5839 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5840 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5841 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5842 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5843
245a5f0b
KS
58442014-04-11 Keith Seitz <keiths@redhat.com>
5845
5846 PR c++/16675
5847 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5848 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5849 reference types.
5850
3bce8237
SA
58512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5852
5853 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5854 (evaluate_subexp_standard): Pass noside argument.
5855 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5856 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5857 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5858 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5859 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5860
92b09522
SA
58612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5862
5863 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5864 points to a constant blob.
5865
e1969afb
SA
58662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5867
5868 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5869 property and store it as the high bound and flag the range accordingly.
5870 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5871 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5872 * gdbtypes.h (enum range_flags): New enum.
5873 (struct range_bounds): Add flags member.
5874
b86138fb
SA
58752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5876
5877 * c-typeprint.c (c_type_print_varspec_suffix): Added
5878 check for not yet resolved high bound. If unresolved, print
5879 "variable length" string to the console instead of random
5880 length.
5881
bcd629a4
SA
58822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5883
5884 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5885 (ada_template_to_fixed_record_type_1): Likewise.
5886 (ada_to_fixed_type_1): Likewise.
5887 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5888 (cp_print_value): Likewise.
5889 * d-valprint.c (dynamic_array_type): Likewise.
5890 * eval.c (evaluate_subexp_with_coercion): Likewise.
5891 * findvar.c (address_of_variable): Likewise.
5892 * jv-valprint.c (java_value_print): Likewise.
5893 * valops.c (value_ind): Likewise.
5894 * value.c (coerce_ref): Likewise.
5895
04b19544
SA
58962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5897
5898 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5899 value and retrieve the dynamic type size.
5900
26cb189f
SA
59012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5902
5903 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5904 passed to sizeof is dynamic evaluate the argument to compute the length.
5905
37c1ab67
SA
59062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5907
5908 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5909 (dwarf2_evaluate_property): New function.
5910 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5911 * dwarf2read.c (attr_to_dynamic_prop): New function.
5912 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5913 attribute.
5914 * gdbtypes.c: Include dwarf2loc.h.
5915 (is_dynamic_type): New function.
5916 (resolve_dynamic_type): New function.
5917 (resolve_dynamic_bounds): New function.
5918 (get_type_length): New function.
5919 (check_typedef): Use get_type_length to compute type length.
5920 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5921 (TYPE_LOW_BOUND_KIND): New macro.
5922 (is_dynamic_type): New function prototype.
5923 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5924 to resolve dynamic properties of the type. Update comment.
5925 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5926
729efb13
SA
59272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5928
5929 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5930 declaring high/low bounds and change uses accordingly. Call
5931 create_range_type instead of create_static_range_type.
5932 * gdbtypes.c (create_range_type): New function.
5933 (create_range_type): Convert bounds into struct bound_prop and pass
5934 them to create_range_type.
5935 * gdbtypes.h (struct bound_prop): New struct.
5936 (create_range_type): New function prototype.
5937 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5938 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5939 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5940 part of the bound.
5941 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5942
0c9c3474
SA
59432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5944
5945 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5946 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5947 * ada-lang.c: All uses of create_range_type updated.
5948 * coffread.c: All uses of create_range_type updated.
5949 * dwarf2read.c: All uses of create_range_type updated.
5950 * f-exp.y: All uses of create_range_type updated.
5951 * m2-valprint.c: All uses of create_range_type updated.
5952 * mdebugread.c: All uses of create_range_type updated.
5953 * stabsread.c: All uses of create_range_type updated.
5954 * valops.c: All uses of create_range_type updated.
5955 * valprint.c: All uses of create_range_type updated.
5956
9d497a19
PA
59572014-04-10 Pedro Alves <palves@redhat.com>
5958
5959 * breakpoint.c (single_step_breakpoints)
5960 (single_step_gdbarch): Move up in the file.
5961 (one_breakpoint_xfer_memory): New function, factored out from ...
5962 (breakpoint_xfer_memory): ... here. Also process single-step
5963 breakpoints.
5964
15a9128a
TG
59652014-04-09 Tristan Gingold <gingold@adacore.com>
5966
5967 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5968 comments.
5969 (darwin_decode_exception_message): Free port only after use.
5970
9c97a070
PL
59712014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5972
5973 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5974 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5975 when setting the size of call_length.
5976
7af389b8
SC
59772014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5978
5979 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5980 dereference TYPE_CODE_REF values.
5981
86ad98c3
JB
59822014-04-07 Joel Brobecker <brobecker@adacore.com>
5983
5984 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5985 end of warning message.
5986
b0aeadb3
DE
59872014-04-03 Doug Evans <dje@google.com>
5988
5989 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5990 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5991
5979d6b6
AM
59922014-04-02 Alan Modra <amodra@gmail.com>
5993
5994 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5995 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5996 (struct symbol_file_add_from_memory_args): Add size field.
5997 (find_vdso_size): New function.
5998 (add_vsyscall_page): Attempt to find vdso size.
5999
0d60c288
DE
60002014-04-01 Doug Evans <dje@google.com>
6001
6002 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6003
a41f2563
TG
60042014-04-01 Tristan Gingold <gingold@adacore.com>
6005
6006 * darwin-nat.c (darwin_encode_reply): Add prototype.
6007 (darwin_decode_exception_message): Reply to unknown inferiors.
6008 (darwin_decode_message): Handle message by id. Ignore message
6009 to unknown inferior.
6010 (darwin_wait): Discard unknown messages, add debug trace.
6011
11a865c8
DE
60122014-03-31 Doug Evans <dje@google.com>
6013
6014 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6015 comp_dir_string.
6016
770e7fc7
DE
60172014-03-31 Doug Evans <dje@google.com>
6018
6019 New option "set print symbol-loading".
6020 * NEWS: Mention it.
6021 * solib.c (solib_read_symbols): Only print symbol loading messages
6022 if requested.
6023 (solib_add): If symbol loading is in "brief" mode, notify user
6024 symbols are being loaded.
6025 (reload_shared_libraries_1): Ditto.
6026 * symfile.c (print_symbol_loading_off): New static global.
6027 (print_symbol_loading_brief): New static global.
6028 (print_symbol_loading_full): New static global.
6029 (print_symbol_loading_enums): New static global.
6030 (print_symbol_loading): New static global.
6031 (print_symbol_loading_p): New function.
6032 (symbol_file_add_with_addrs): Only print symbol loading messages
6033 if requested.
6034 (_initialize_symfile): Register "print symbol-loading" set/show
6035 command.
6036 * symfile.h (print_symbol_loading_p): Declare.
6037
c32c64b7
DE
60382014-03-30 Doug Evans <xdje42@gmail.com>
6039
6040 * infrun.c (set_last_target_status): New function.
6041 (handle_inferior_event): Call it.
6042
7c0bc051
DE
60432014-03-30 Doug Evans <xdje42@gmail.com>
6044
6045 * inferior.h (enum stop_kind): Improve comment.
6046
8776cfe9
JB
60472014-03-28 Joel Brobecker <brobecker@adacore.com>
6048
6049 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6050 a reference, strip the reference layer before calling
6051 the lang_ops value_has_mutated callback.
6052
410a0ff2
SDJ
60532014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6054
6055 Remove some globals from our parser.
6056 * language.c (unk_lang_parser): Add "struct parser_state"
6057 argument.
6058 * language.h (struct language_defn) <la_parser>: Likewise.
6059 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6060 (initialize_expout): Add "struct parser_state" argument.
6061 Rewrite function to use the parser state.
6062 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6063 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6064 write_exp_elt_longcst, write_exp_elt_dblcst,
6065 write_exp_elt_decfloatcst, write_exp_elt_type,
6066 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6067 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6068 write_dollar_variable): Likewise.
6069 (parse_exp_in_context_1): Use parser state.
6070 (insert_type_address_space): Add "struct parser_state" argument.
6071 Use parser state.
6072 (increase_expout_size): New function.
6073 * parser-defs.h: Forward declare "struct language_defn" and
6074 "struct parser_state".
6075 (expout, expout_size, expout_ptr): Remove extern declarations.
6076 (parse_gdbarch, parse_language): Rewrite macro declarations to
6077 accept the parser state.
6078 (struct parser_state): New struct.
6079 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6080 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6081 write_exp_elt_decfloatcst, write_exp_elt_type,
6082 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6083 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6084 write_exp_msymbol, write_dollar_variable,
6085 mark_struct_expression, insert_type_address_space): Add "struct
6086 parser_state" argument.
6087 (increase_expout_size): New function.
6088 * utils.c (do_clear_parser_state): New function.
6089 (make_cleanup_clear_parser_state): Likewise.
6090 * utils.h (make_cleanup_clear_parser_state): New function
6091 prototype.
6092 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6093 Update calls to write_exp* in order to pass the parser state.
6094 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6095 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6096 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6097 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6098 * stap-probe.c (stap_parse_register_operand): Likewise.
6099 (stap_parse_single_operand): Likewise.
6100 (stap_parse_argument_1): Likewise.
6101 (stap_parse_argument): Use parser state.
6102 * stap-probe.h: Include "parser-defs.h".
6103 (struct stap_parse_info) <pstate>: New field.
6104 * c-exp.y (parse_type): Rewrite to use parser state.
6105 (yyparse): Redefine to c_parse_internal.
6106 (pstate): New global variable.
6107 (parse_number): Add "struct parser_state" argument.
6108 (write_destructor_name): Likewise.
6109 (type_exp): Update calls to write_exp* and similars in order to
6110 use parser state.
6111 (exp1, exp, variable, qualified_name, space_identifier,
6112 typename, typebase): Likewise.
6113 (write_destructor_name, parse_number, lex_one_token,
6114 classify_name, classify_inner_name, c_parse): Add "struct
6115 parser_state" argument. Update function to use parser state.
6116 * c-lang.h: Forward declare "struct parser_state".
6117 (c_parse): Add "struct parser_state" argument.
6118 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6119 (yyparse): Redefine macro to ada_parse_internal.
6120 (pstate): New variable.
6121 (write_int, write_object_renaming, write_var_or_type,
6122 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6123 type_int, type_long, type_long_long, type_float, type_double,
6124 type_long_double, type_char, type_boolean, type_system_address):
6125 Add "struct parser_state" argument.
6126 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6127 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6128 var_or_type, aggregate, aggregate_component_list,
6129 positional_list, others, component_group,
6130 component_associations): Update calls to write_exp* and similar
6131 functions in order to use parser state.
6132 (ada_parse, write_var_from_sym, write_int,
6133 write_exp_op_with_string, write_object_renaming,
6134 find_primitive_type, write_selectors, write_ambiguous_var,
6135 write_var_or_type, write_name_assoc, type_int, type_long,
6136 type_long_long, type_float, type_double, type_long_double,
6137 type_char, type_boolean, type_system_address): Add "struct
6138 parser_state" argument. Adjust function to use parser state.
6139 * ada-lang.c (parse): Likewise.
6140 * ada-lang.h: Forward declare "struct parser_state".
6141 (ada_parse): Add "struct parser_state" argument.
6142 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6143 calls to both functions.
6144 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6145 parser state.
6146 (yyparse): Redefine macro to f_parse_internal.
6147 (pstate): New variable.
6148 (parse_number): Add "struct parser_state" argument.
6149 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6150 and similars in order to use parser state.
6151 (parse_number): Adjust code to use parser state.
6152 (yylex): Likewise.
6153 (f_parse): New function.
6154 * f-lang.h: Forward declare "struct parser_state".
6155 (f_parse): Add "struct parser_state" argument.
6156 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6157 parser state.
6158 (yyparse): Redefine macro for java_parse_internal.
6159 (pstate): New variable.
6160 (push_expression_name, push_expression_name, insert_exp): Add
6161 "struct parser_state" argument.
6162 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6163 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6164 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6165 PostIncrementExpression, PostDecrementExpression,
6166 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6167 UnaryExpressionNotPlusMinus, CastExpression,
6168 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6169 RelationalExpression, EqualityExpression, AndExpression,
6170 ExclusiveOrExpression, InclusiveOrExpression,
6171 ConditionalAndExpression, ConditionalOrExpression,
6172 ConditionalExpression, Assignment, LeftHandSide): Update
6173 calls to write_exp* and similars in order to use parser state.
6174 (parse_number): Ajust code to use parser state.
6175 (yylex): Likewise.
6176 (java_parse): New function.
6177 (push_variable): Add "struct parser_state" argument. Adjust
6178 code to user parser state.
6179 (push_fieldnames, push_qualified_expression_name,
6180 push_expression_name, insert_exp): Likewise.
6181 * jv-lang.h: Forward declare "struct parser_state".
6182 (java_parse): Add "struct parser_state" argument.
6183 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6184 parser state.
6185 (yyparse): Redefine macro to m2_parse_internal.
6186 (pstate): New variable.
6187 (type_exp, exp, fblock, variable, type): Update calls to
6188 write_exp* and similars to use parser state.
6189 (yylex): Likewise.
6190 (m2_parse): New function.
6191 * m2-lang.h: Forward declare "struct parser_state".
6192 (m2_parse): Add "struct parser_state" argument.
6193 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6194 * objc-lang.h: Forward declare "struct parser_state".
6195 (end_msglist): Add "struct parser_state" argument.
6196 * p-exp.y (parse_type): Rewrite macro to use parser state.
6197 (yyparse): Redefine macro to pascal_parse_internal.
6198 (pstate): New variable.
6199 (parse_number): Add "struct parser_state" argument.
6200 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6201 write_exp* and similars in order to use parser state.
6202 (parse_number, yylex): Adjust code to use parser state.
6203 (pascal_parse): New function.
6204 * p-lang.h: Forward declare "struct parser_state".
6205 (pascal_parse): Add "struct parser_state" argument.
6206 * go-exp.y (parse_type): Rewrite macro to use parser state.
6207 (yyparse): Redefine macro to go_parse_internal.
6208 (pstate): New variable.
6209 (parse_number): Add "struct parser_state" argument.
6210 (type_exp, exp1, exp, variable, type): Update calls to
6211 write_exp* and similars in order to use parser state.
6212 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6213 to use parser state.
6214 (go_parse): Likewise.
6215 * go-lang.h: Forward declare "struct parser_state".
6216 (go_parse): Add "struct parser_state" argument.
6217
342587c4
DE
62182014-03-27 Doug Evans <dje@google.com>
6219
6220 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6221
33e80786
DE
62222014-03-27 Doug Evans <dje@google.com>
6223
6224 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6225 Remove argument abbrev_section. All callers updated.
6226
1dbab08b
DE
62272014-03-27 Doug Evans <dje@google.com>
6228
6229 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6230 addr_base, ranges_base.
6231
318d3177
KS
62322014-03-26 Keith Seitz <keiths@redhat.com>
6233
6234 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6235 types, not VAR_DOMAIN.
6236
1e54db15
SL
62372014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6238
6239 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6240 "ra" registers.
6241 * features/nios2-linux.c: Regenerated.
6242 * features/nios2.c: Regenerated.
6243
d3839ede
PA
62442014-03-25 Pedro Alves <palves@redhat.com>
6245
6246 * cli/cli-script.c (script_from_file): Force the interpreter to
6247 sync mode.
6248
7588d2ec
PL
62492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6250
6251 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6252 small stack allocation.
6253
a6290449
TG
62542014-03-24 Tristan Gingold <gingold@adacore.com>
6255
6256 * darwin-nat.c (exc_server): Remove unused prototype.
6257 (darwin_dump_message): Correctly display data on x86_64.
6258 (darwin_encode_reply): Fix style.
6259 Add comments and fix indentation.
6260
31ae9d24 62612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6262
6263 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6264
6339bfc4
DE
62652014-03-22 Doug Evans <xdje42@gmail.com>
6266
6267 * infcmd.c: Whitespace fixes.
6268 (interrupt_command): Merge two function comments into one.
6269
0a07590b
DE
62702014-03-22 Doug Evans <xdje42@gmail.com>
6271
6272 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6273 All uses updated.
6274
b55fbac4
YQ
62752014-03-22 Yao Qi <yao@codesourcery.com>
6276
6277 * remote.c (target_read_live_memory): Remove.
6278 (memory_xfer_live_readonly_partial): Rename it to
6279 remote_xfer_live_readonly_partial. Remove argument 'object'.
6280 All callers updated. Call remote_read_bytes_1
6281 instead of target_read_live_memory.
6282 * tracepoint.c (set_traceframe_number): Remove.
6283 (make_cleanup_restore_traceframe_number): Likewise .
6284 * tracepoint.h (set_traceframe_number): Remove declaration.
6285 (make_cleanup_restore_traceframe_number): Likewise.
6286
9217e74e
YQ
62872014-03-22 Yao Qi <yao@codesourcery.com>
6288
6289 * remote.c (remote_read_bytes): Move code on reading from the
6290 remote stub to ...
6291 (remote_read_bytes_1): ... here. New function.
6292
8acf9577
YQ
62932014-03-22 Yao Qi <yao@codesourcery.com>
6294
6295 * ctf.c (ctf_xfer_partial): Check the return value of
6296 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6297 return TARGET_XFER_UNAVAILABLE.
6298 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6299 * target.c (target_read_live_memory): Move it to remote.c.
6300 (memory_xfer_live_readonly_partial): Likewise.
6301 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6302 * remote.c (target_read_live_memory): Moved from target.c.
6303 (memory_xfer_live_readonly_partial): Likewise.
6304 (remote_read_bytes): Factored out from
6305 memory_xfer_partial_1.
6306
feef67ab
DE
63072014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6308
6309 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6310 NULL pointer.
6311
b65dc60b
PA
63122014-03-21 Pedro Alves <palves@redhat.com>
6313
6314 * infrun.c (normal_stop): Extend comment.
6315
b4ab256d
HZ
63162014-03-21 Hui Zhu <hui@codesourcery.com>
6317 Pedro Alves <palves@redhat.com>
6318
6319 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6320 static buffer.
6321 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6322 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6323 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6324
deba7593
MR
63252014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6326
6327 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6328 `z' formatted output modifier.
6329
1bff71c3
SDJ
63302014-03-20 Tom Tromey <tromey@redhat.com>
6331 Sergio Durigan Junior <sergiodj@redhat.com>
6332
6333 * probe.c (parse_probes): Turn assert into an ordinary error.
6334 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6335 exceptions when parsing probes. Rearrange the code for clarity.
6336
90e28950
TT
63372014-03-20 Tom Tromey <tromey@redhat.com>
6338
6339 PR gdb/14135
6340 * top.c (execute_command): Only dispatch events if the command
6341 started the target.
6342
beb460e8
PA
63432014-03-20 Tom Tromey <tromey@redhat.com>
6344
6345 PR cli/15718
6346 * infcall.c: Include event-top.h.
6347 (run_inferior_call): Call async_disable_stdin if needed.
6348
99619bea
PA
63492014-03-20 Pedro Alves <palves@redhat.com>
6350
6351 * infrun.c (prepare_to_proceed): Delete.
6352 (thread_still_needs_step_over): New function.
6353 (find_thread_needs_step_over): New function.
6354 (proceed): If the current thread needs a step-over, set its
6355 steping_over_breakpoint flag. Adjust to use
6356 find_thread_needs_step_over instead of prepare_to_proceed.
6357 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6358 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6359 breakpoint.
6360 (switch_back_to_stepped_thread): Step over breakpoints of all
6361 threads not the stepping thread, before switching back to the
6362 stepping thread.
6363
2adfaa28
PA
63642014-03-20 Pedro Alves <palves@redhat.com>
6365
6366 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6367 extern.
6368 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6369 * infrun.c (saved_singlestep_ptid)
6370 (stepping_past_singlestep_breakpoint): Delete.
6371 (resume): Remove stepping_past_singlestep_breakpoint handling.
6372 (proceed): Store the prev_pc of the stepping thread too.
6373 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6374 singlestep_pc.
6375 (enum infwait_states): Delete infwait_thread_hop_state.
6376 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6377 field.
6378 (handle_inferior_event): Adjust.
6379 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6380 handling and the thread-hop code. Before removing single-step
6381 breakpoints, check whether the thread hit a single-step breakpoint
6382 of another thread. If it did, the trap is not a random signal.
6383 (switch_back_to_stepped_thread): If the event thread hit a
6384 single-step breakpoint, unblock it before switching to the
6385 stepping thread. Handle the case of the stepped thread having
6386 advanced already.
6387 (keep_going): Handle the case of the current thread moving past a
6388 single-step breakpoint.
6389
31e77af2
PA
63902014-03-20 Pedro Alves <palves@redhat.com>
6391
6392 PR breakpoints/7143
6393 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6394 are being stepped over.
6395 (breakpoint_address_match): Make extern.
6396 * breakpoint.h (breakpoint_address_match): New declaration.
6397 * inferior.h (stepping_past_instruction_at): New declaration.
6398 * infrun.c (struct step_over_info): New type.
6399 (step_over_info): New global.
6400 (set_step_over_info, clear_step_over_info)
6401 (stepping_past_instruction_at): New functions.
6402 (handle_inferior_event): Clear the step-over info when
6403 trap_expected is cleared.
6404 (resume): Remove now stale comment.
6405 (clear_proceed_status): Clear step-over info.
6406 (proceed): Adjust step-over handling to set or clear the step-over
6407 info instead of removing all breakpoints.
6408 (handle_signal_stop): When setting up a thread-hop, don't remove
6409 breakpoints here.
6410 (stop_stepping): Clear step-over info.
6411 (keep_going): Adjust step-over handling to set or clear step-over
6412 info and then always inserting breakpoints, instead of removing
6413 all breakpoints when stepping over one.
6414
b9f437de
PA
64152014-03-20 Pedro Alves <palves@redhat.com>
6416
6417 * infrun.c (previous_inferior_ptid): Adjust comment.
6418 (deferred_step_ptid): Delete.
6419 (infrun_thread_ptid_changed, prepare_to_proceed)
6420 (init_wait_for_inferior): Adjust.
6421 (handle_signal_stop): Delete deferred_step_ptid handling.
6422
06c868a8
JK
64232014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6424
6425 PR gdb/15358
6426 * defs.h (sync_quit_force_run): New declaration.
6427 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6428 * event-top.c (async_sigterm_handler): New declaration.
6429 (async_sigterm_token): New variable.
6430 (async_init_signals): Create also async_sigterm_token.
6431 (async_sigterm_handler): New function.
6432 (sync_quit_force_run): New variable.
6433 (handle_sigterm): Replace quit_force call by other calls.
6434 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6435
dea80df0
MR
64362014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6437
6438 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6439 offset into SPE pseudo registers.
6440
0c7e1a46
PA
64412014-03-18 Pedro Alves <palves@redhat.com>
6442
6443 PR gdb/13860
6444 * inferior.h (print_stop_event): Declare.
6445 * infrun.c (print_stop_event): New, factored out from ...
6446 (normal_stop): ... this.
6447 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6448 of bpstat_print/print_stack_frame.
6449
9c1fcd01
TT
64502014-03-17 Tom Tromey <tromey@redhat.com>
6451
6452 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6453
11aa919a
PMR
64542014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6455
6456 * ada-lang.c (decode_constrained_packed_array): Perform a
6457 minimal coercion for reference with coerce_ref instead of
6458 ada_coerce_ref.
6459
d4ccb5e0
TG
64602014-03-17 Tristan Gingold <gingold@adacore.com>
6461
6462 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6463 (darwin_solib_create_inferior_hook): Emit a warning if version
6464 is unhandled.
6465
49840f2a
UW
64662014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6467
6468 * python/py-value.c (get_field_flag): Cast flag_name argument to
6469 PyObject_GetAttrString to support Python 2.4.
6470
ed4123e5
JK
64712014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6472
6473 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6474 (Global Maintainers): Remove Jan Kratochvil.
6475
d6b64346
PA
64762014-03-14 Pedro Alves <palves@redhat.com>
6477
6478 * inferior.h (terminal_ours_for_output): Rename to ...
6479 (child_terminal_ours_for_output): ... this.
6480 (terminal_save_ours): Rename to ...
6481 (child_terminal_save_ours): ... this.
6482 (terminal_ours): Rename to ...
6483 (child_terminal_ours): ... this.
6484 (terminal_inferior): Rename to ...
6485 (child_terminal_inferior): ... this.
6486 (terminal_init_inferior): Rename to ...
6487 (child_terminal_init_inferior): ... this.
6488 (terminal_init_inferior_with_pgrp): Rename to ...
6489 (child_terminal_init_inferior_with_pgrp): ... this.
6490 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6491 (child_terminal_init_with_pgrp): ... this.
6492 (terminal_save_ours): Rename to ...
6493 (child_terminal_save_ours): ... this.
6494 (terminal_init_inferior): Rename to ...
6495 (child_terminal_init): ... this. Adjust.
6496 (terminal_inferior): Rename to ...
6497 (child_terminal_inferior): ... this.
6498 (terminal_ours_for_output): Rename to ...
6499 (child_terminal_ours_for_output): ... this. Adjust.
6500 (terminal_ours): Rename to ...
6501 (child_terminal_ours): ... this.
6502 (terminal_ours_1): Rename to ...
6503 (child_terminal_ours_1): ... this. Adjust.
6504 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6505 * windows-nat.c (do_initial_windows_stuff): Adjust.
6506 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6507 (gnu_terminal_init): ... this. Adjust.
6508 (gnu_target): Adjust.
6509 * inf-child.c (inf_child_target): Adjust.
6510
5a1e8c7a
DE
65112014-03-13 Doug Evans <xdje42@gmail.com>
6512
6513 PR guile/16612
6514 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6515 new eq?-hashtab.
6516
350e1a76
DE
65172014-03-13 Doug Evans <xdje42@gmail.com>
6518
6519 * value.c (record_latest_value): Call release_value_or_incref
6520 instead of release_value.
6521
a69900ae
PA
65222014-03-13 Pedro Alves <palves@redhat.com>
6523
6524 * procfs.c (procfs_target): Don't override to_shortname,
6525 to_longname or to_doc.
6526
5db9f0bd
PA
65272014-03-13 Pedro Alves <palves@redhat.com>
6528
6529 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6530 Unix in user visible strings.
6531
5e3a2c38
SS
65322014-03-12 Stan Shebs <stan@codesourcery.com>
6533
6534 * gdbtypes.h: Annotate comments for Doxygen, add a page
6535 block comment with some general info.
6536
8bc2fe48
PA
65372014-03-12 Pedro Alves <palves@redhat.com>
6538
6539 * infcmd.c (prepare_execution_command): New function, factored out
6540 from several execution commands.
6541 (run_command_1, continue_command, step_1, jump_command)
6542 (signal_command, until_command, advance_command, finish_command)
6543 (attach_command): Use prepare_execution_command.
6544
638c5f49
OJ
65452014-03-12 Omair Javaid <omair.javaid@linaro.org>
6546
6547 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6548 (MAX_BPTS): Define.
6549 (MAX_WPTS): Define.
6550 (struct arm_linux_thread_points): Removed.
6551 (struct arm_linux_process_info): New.
6552 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6553 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6554 (arm_linux_find_breakpoints_by_tid): Removed.
6555 (struct arch_lwp_info): New.
6556 (arm_linux_find_process_pid): New functions.
6557 (arm_linux_add_process): New functions.
6558 (arm_linux_process_info_get): New functions.
6559 (arm_linux_forget_process): New function.
6560 (arm_linux_get_debug_reg_state): New function.
6561 (struct update_registers_data): New.
6562 (update_registers_callback): New function.
6563 (arm_linux_insert_hw_breakpoint1): Updated.
6564 (arm_linux_remove_hw_breakpoint1): Updated.
6565 (arm_linux_insert_hw_breakpoint): Updated.
6566 (arm_linux_remove_hw_breakpoint): Updated.
6567 (arm_linux_insert_watchpoint): Updated.
6568 (arm_linux_remove_watchpoint): Updated.
6569 (arm_linux_new_thread): Updated.
6570 (arm_linux_prepare_to_resume): New function.
6571 (arm_linux_new_fork): New function.
6572 (_initialize_arm_linux_nat): Updated.
6573
6d03af93
PA
65742014-03-12 Pedro Alves <palves@redhat.com>
6575
6576 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6577
b3ccfe11
TT
65782014-03-12 Tom Tromey <tromey@redhat.com>
6579
6580 * inf-child.c (return_zero): New function.
6581 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6582 * aix-thread.c (aix_thread_inferior_created): New function.
6583 (aix_thread_attach): Remove.
6584 (init_aix_thread_ops): Don't set to_attach.
6585 (_initialize_aix_thread): Register inferior_created observer.
6586 * corelow.c (init_core_ops): Don't set to_attach or
6587 to_create_inferior.
6588 * exec.c (init_exec_ops): Don't set to_attach or
6589 to_create_inferior.
6590 * infcmd.c (run_command_1): Use find_run_target. Make direct
6591 target calls.
6592 (attach_command): Use find_attach_target. Make direct target
6593 calls.
6594 * record-btrace.c (init_record_btrace_ops): Don't set
6595 to_create_inferior.
6596 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6597 Remove.
6598 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6599 set to_create_inferior.
6600 * target.c (complete_target_initialization): Add assertion.
6601 (target_create_inferior): Remove.
6602 (find_default_attach, find_default_create_inferior): Remove.
6603 (find_attach_target, find_run_target): New functions.
6604 (find_default_is_async_p, find_default_can_async_p)
6605 (target_supports_non_stop, target_attach): Remove.
6606 (init_dummy_target): Don't set to_create_inferior or
6607 to_supports_non_stop.
6608 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6609 TARGET_DEFAULT_FUNC.
6610 <to_create_inferior>: Add comment.
6611 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6612 TARGET_DEFAULT_RETURN.
6613 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6614 (find_attach_target, find_run_target): Declare.
6615 (target_create_inferior): Remove.
6616 (target_has_execution_1): Update comment.
6617 (target_supports_non_stop): Remove.
6618 * target-delegates.c: Rebuild.
6619
91f83b02
PA
66202014-03-12 Pedro Alves <palves@redhat.com>
6621
6622 * inf-child.h: Update comment to not mention Unix.
6623
f1aea813
PA
66242014-03-12 Pedro Alves <palves@redhat.com>
6625
6626 * inf-child.c: Update top comment to not mention Unix. Add
6627 generic comment describing how this target is meant to be used.
6628 (inf_child_post_attach, inf_child_post_startup_inferior)
6629 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6630 Unix in comment.
6631
ee8e9165
PA
66322014-03-12 Pedro Alves <palves@redhat.com>
6633
6634 * nto-procfs.c: Include inf-child.h.
6635 (procfs_ops): Delete global.
6636 (procfs_can_run): Delete method.
6637 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6638 target pointer instead of referencing procfs_ops.
6639 (procfs_prepare_to_store): Delete.
6640 (init_procfs_ops): Delete function.
6641 (procfs_target): New function, based on init_procfs_ops, but
6642 inherit inf_child_target.
6643 (_initialize_procfs): Use procfs_target.
6644
51a9c8c5
PA
66452014-03-12 Pedro Alves <palves@redhat.com>
6646
6647 * windows-nat.c: Include inf-child.h.
6648 (windows_ops): Delete global.
6649 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6650 methods.
6651 (init_windows_ops): Delete function.
6652 (windows_target): New function, based on init_windows_ops, but
6653 inherit inf_child_target.
6654 (_initialize_windows_nat): Use windows_target. Install x86
6655 specific target methods here.
6656
c1966e26
DE
66572014-03-10 Doug Evans <xdje42@gmail.com>
6658
6659 * guile/guile.c (call_initialize_gdb_module): New function.
6660 (initialize_guile): Replace call to scm_init_guile with call to
6661 scm_with_guile.
6662
023db19c
JB
66632014-03-10 Joel Brobecker <brobecker@adacore.com>
6664
6665 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6666 in call to TYPE_CODE macro.
6667
5ec18f2b
JG
66682014-03-10 Jerome Guitton <guitton@adacore.com>
6669
8668be63
JB
6670 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6671 Resolve tagged types to full view.
5ec18f2b 6672
7d03f2eb
HZ
66732014-03-10 Hui Zhu <hui@codesourcery.com>
6674
6675 * target.h (target_insert_breakpoint): Remove "hardware" from its
6676 comments.
6677
c5164cbc
DE
66782014-03-07 Doug Evans <dje@google.com>
6679
6680 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6681
c4a3fee2
DE
66822014-03-07 Doug Evans <dje@google.com>
6683
6684 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6685 Remove unused local comp_dir_attr. Assert exactly one of
6686 stub_comp_unit_die, stub_comp_dir is non-NULL.
6687
3156469c
JB
66882014-03-07 Joel Brobecker <brobecker@adacore.com>
6689
6690 * target.h (complete_target_initialization, add_target):
6691 Add comment.
6692
c1a7b7c6
PA
66932014-03-07 Pedro Alves <palves@redhat.com>
6694
6695 * go32-nat.c: Include inf-child.h.
6696 (go32_ops): Delete global.
6697 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6698 Delete methods.
6699 (go32_create_inferior): Push the passed in target pointer instead
6700 of referencing go32_ops.
6701 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6702 (go32_target): New function, based on init_go32_ops, but inherit
6703 inf_child_target.
6704 (_initialize_go32_nat): Use go32_target. Move parts of
6705 init_go32_ops here.
6706
d3c1a85f
JB
67072014-03-06 Joel Brobecker <brobecker@adacore.com>
6708
6709 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6710 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6711 SYMBOL_VALUE_ADDRESS.
6712 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6713
5fa1d40e
YQ
67142014-03-06 Yao Qi <yao@codesourcery.com>
6715
6716 * breakpoint.c (get_tracepoint_by_number): Remove argument
6717 optional_p. All callers updated. Adjust comments. Update
6718 output message.
6719 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6720
0c13193f
YQ
67212014-03-06 Yao Qi <yao@codesourcery.com>
6722
6723 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6724 early if get_number returns zero. Use 'p' instead of 'args'.
6725
2217da06
YQ
67262014-03-06 Yao Qi <yao@codesourcery.com>
6727
6728 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6729 message.
6730
cc3da688
YQ
67312014-03-06 Yao Qi <yao@codesourcery.com>
6732
6733 PR breakpoints/16508
6734 * tracepoint.c (check_trace_running): New function.
6735 (trace_find_command): Move code to check_trace_running and
6736 call check_trace_running.
6737 (trace_find_pc_command): Likewise.
6738 (trace_find_tracepoint_command): Likewise.
6739 (trace_find_line_command): Likewise.
6740 (trace_find_range_command): Likewise.
6741 * tracepoint.h (check_trace_running): Likewise.
6742 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6743
6a5f844b
YQ
67442014-03-06 Yao Qi <yao@codesourcery.com>
6745
6746 * target.h (struct target_ops) <to_traceframe_info>: Use
6747 TARGET_DEFAULT_NORETURN (tcomplain ()).
6748 * target-delegates.c: Regenerated.
6749
0f26cec1
PA
67502014-03-05 Pedro Alves <palves@redhat.com>
6751
6752 PR gdb/16575
6753 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6754 void. Update comment.
6755 (dcache_xfer_memory): Delete.
6756 (dcache_read_memory_partial): New, based on the read bits of
6757 dcache_xfer_memory.
6758 (dcache_update): Add status parameter. Use ULONGEST for len, and
6759 adjust. Discard cache lines if the reason for the update was
6760 error.
6761 * dcache.h (dcache_xfer_memory): Delete declaration.
6762 (dcache_read_memory_partial): New declaration.
6763 (dcache_update): Update prototype.
6764 * target.c (raw_memory_xfer_partial): Update the dcache here.
6765 (memory_xfer_partial_1): Don't handle dcache writes here.
6766
b2b255bd
MF
67672014-03-05 Mike Frysinger <vapier@gentoo.org>
6768
6769 * remote-sim.c (gdbsim_load): Add const to prog.
6770
5d9cf8a4
TT
67712014-03-03 Tom Tromey <tromey@redhat.com>
6772
6773 * elfread.c (probe_key): Change to bfd_data.
6774 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6775 now per-BFD, not per-objfile.
6776 * stap-probe.c (stap_probe_destroy): Update comment.
6777 (handle_stap_probe): Allocate on the per-BFD obstack.
6778
729662a5
TT
67792014-03-03 Tom Tromey <tromey@redhat.com>
6780
6781 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6782 * breakpoint.c (create_longjmp_master_breakpoint): Use
6783 get_probe_address.
6784 (add_location_to_breakpoint, bkpt_probe_insert_location)
6785 (bkpt_probe_remove_location): Update.
6786 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6787 * elfread.c (elf_symfile_relocate_probe): Remove.
6788 (elf_probe_fns): Update.
6789 (insert_exception_resume_breakpoint): Change type of "probe"
6790 parameter to bound_probe.
6791 (check_exception_resume): Update.
6792 * objfiles.c (objfile_relocate1): Don't relocate probes.
6793 * probe.c (bound_probe_s): New typedef.
6794 (parse_probes): Use get_probe_address. Set sal's objfile.
6795 (find_probe_by_pc): Return a bound_probe.
6796 (collect_probes): Return a VEC(bound_probe_s).
6797 (compare_probes): Update.
6798 (gen_ui_out_table_header_info): Change type of "probes"
6799 parameter. Update.
6800 (info_probes_for_ops): Update.
6801 (get_probe_address): New function.
6802 (probe_safe_evaluate_at_pc): Update.
6803 * probe.h (struct probe_ops) <get_probe_address>: New field.
6804 <set_semaphore, clear_semaphore>: Add objfile parameter.
6805 (struct probe) <objfile>: Remove field.
6806 <arch>: New field.
6807 <address>: Update comment.
6808 (struct bound_probe): New.
6809 (find_probe_by_pc): Return a bound_probe.
6810 (get_probe_address): Declare.
6811 * solib-svr4.c (struct probe_and_action) <address>: New field.
6812 (hash_probe_and_action, equal_probe_and_action): Update.
6813 (register_solib_event_probe): Add address parameter.
6814 (solib_event_probe_at): Update.
6815 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6816 get_probe_address.
6817 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6818 (stap_get_probe_address): New function.
6819 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6820 (compile_probe_arg): Update.
6821 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6822 address.
6823 (handle_stap_probe): Don't relocate the probe.
6824 (stap_relocate): Remove.
6825 (stap_gen_info_probes_table_values): Update.
6826 (stap_probe_ops): Remove stap_relocate.
6827 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6828 (debug_sym_probe_fns): Update.
6829 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6830 * symtab.c (init_sal): Use memset.
6831 * symtab.h (struct symtab_and_line) <objfile>: New field.
6832 * tracepoint.c (start_tracing, stop_tracing): Update.
6833
ff887920
TT
68342014-03-03 Tom Tromey <tromey@redhat.com>
6835
6836 * probe.h (parse_probes, find_probe_by_pc)
6837 (find_probes_in_objfile): Fix comments.
6838
f0407826
DE
68392014-03-02 Doug Evans <xdje42@gmail.com>
6840
6841 * infrun.c (handle_signal_stop): Replace test for
6842 TARGET_WAITKIND_STOPPED with an assert.
6843
35e6a711
DE
68442014-03-02 Doug Evans <xdje42@gmail.com>
6845
6846 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6847
667f9d0b
DE
68482014-03-02 Doug Evans <xdje42@gmail.com>
6849
6850 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6851
dc92ace0
MK
68522014-03-01 Mark Kettenis <kettenis@gnu.org>
6853
6854 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6855
a900370f
MK
68562014-03-01 Mark Kettenis <kettenis@gnu.org>
6857
6858 * i386obsd-nat.c: Include "obsd-nat.h".
6859 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6860 add_target.
6861 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6862
b72a7981
MK
68632014-03-01 Mark Kettenis <kettenis@gnu.org>
6864
6865 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6866
96c70aba
MK
68672014-03-01 Mark Kettenis <kettenis@gnu.org>
6868
6869 * mips64obsd-nat.c: Include "obsd-nath".
6870 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6871 add_target
6872 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6873
874a80af
MK
68742014-03-01 Mark Kettenis <kettenis@gnu.org>
6875
8fd408f1
MK
6876 * amd64obsd-nat.c: Include "obsd-nat,h.
6877 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6878 add_target.
874a80af
MK
6879 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6880
9cf95373
SC
68812014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6882
6883 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6884 (find_overload_match): Update call to find_oload_champ.
6885 (find_oload_champ_namespace_loop): Likewise
6886
863e4da4
MK
68872014-02-28 Mark Kettenis <kettenis@gnu.org>
6888
025cac40
MK
6889 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6890
1ed586ce
MK
6891 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6892 * config/sparc/obsd64.mh: New file.
6893 * sparc64obsd-nat.c: New file.
6894
863e4da4
MK
6895 * obsd-nat.h: New file.
6896 * obsd-nat.c: New file.
6897 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6898 (ALLDEPFILES): Add obsd-nat.c.
6899
89de4da4
TT
69002014-02-28 Tom Tromey <tromey@redhat.com>
6901
6902 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6903 * cli-out.h (cli_ui_out_impl): Now const.
6904 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6905 * ui-out.c (struct ui_out) <impl>: Now const.
6906 (default_ui_out_impl): Now const.
6907 (ui_out_new): Make 'impl' parameter const.
6908 * ui-out.h (ui_out_new): Update.
6909
c725e7b6
MK
69102014-02-27 Mark Kettenis <kettenis@gnu.org>
6911
6912 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6913
670b46b3
MK
69142014-02-27 Mark Kettenis <kettenis@gnu.org>
6915
6916 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6917
c91550fc
JK
69182014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6919
6920 Additional PR 8882 fix.
6921 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6922
2fa0369e
PA
69232014-02-27 Pedro Alves <palves@redhat.com>
6924
6925 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6926 isn't set.
6927
d632a097
PA
69282014-02-27 Pedro Alves <palves@redhat.com>
6929
6930 PR 12702
6931 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6932 * nat/linux-waitpid.c: Include string.h.
6933 (status_to_str): Moved here and made extern.
6934 * nat/linux-waitpid.h (status_to_str): New declaration.
6935
2ebd5a35
HZ
69362014-02-27 Hui Zhu <hui@codesourcery.com>
6937
6938 PR 12702
6939 * infrun.c (ptid_match): Move ...
6940 * common/ptid.c (ptid_match): ... here.
6941 * inferior.h (ptid_match): Move ...
6942 * common/ptid.h (ptid_match): ... here.
6943
3cdd631f
MK
69442014-02-27 Mark Kettenis <kettenis@gnu.org>
6945
6946 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6947 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6948 gdb_target_obs.
6949
bee30a64
MK
69502014-02-27 Mark Kettenis <kettenis@gnu.org>
6951
6952 * obsd-tdep.c (obsd_auxv_parse): New function.
6953 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6954
6955 * gdbarch.sh (auxv_parse): New.
6956 * gdbarch.h: Regenerated.
6957 * gdbarch.c: Regenerated.
6958 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6959
7a5a839f
LC
69602014-02-26 Ludovic Courtès <ludo@gnu.org>
6961
6962 * guile/scm-value.c (gdbscm_history_append_x): New function.
6963 (value_functions): Add it.
6964
31aa7e4e
JB
69652014-02-27 Joel Brobecker <brobecker@adacore.com>
6966
6967 * dwarf2read.c (attr_value_as_address): New function.
6968 (dwarf2_find_base_address, read_call_site_scope): Use
6969 attr_value_as_address in place of DW_ADDR.
6970 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6971 the low and high addresses. Slight rework of the handling
6972 of the high pc being a constant form, and limit it to
6973 DWARF verson 4 or higher.
6974 (dwarf2_record_block_ranges): Likewise.
6975 (read_partial_die): Likewise.
6976 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6977
9b333ba3
TT
69782014-02-26 Tom Tromey <tromey@redhat.com>
6979
6980 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6981
5f6cac40
TT
69822014-02-26 Tom Tromey <tromey@redhat.com>
6983
6984 * elfread.c (elf_read_minimal_symbols): Return early if
6985 minimal symbols have already been read. Add "ei" parameter.
6986 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6987 * minsyms.c (prim_record_minimal_symbol_full): Update.
6988 * objfiles.h (struct objstats) <n_minsyms>: Move...
6989 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6990 * symmisc.c (print_objfile_statistics): Update.
6991
2750ef27
TT
69922014-02-26 Tom Tromey <tromey@redhat.com>
6993
6994 * elfread.c (elf_read_minimal_symbols): New function, from
6995 elf_symfile_read.
6996 (elf_symfile_read): Call it.
6997
34643a32
TT
69982014-02-26 Tom Tromey <tromey@redhat.com>
6999
7000 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7001 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7002 (lookup_minimal_symbol_solib_trampoline)
7003 (lookup_minimal_symbol_by_pc_section_1)
7004 (lookup_minimal_symbol_and_objfile): Update.
7005 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7006 Don't allocate a minimal symbol if minsyms have already been read.
7007 (build_minimal_symbol_hash_tables): Update.
7008 (install_minimal_symbols): Do nothing if minsyms already read.
7009 Use the per-BFD obstack.
7010 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7011 * objfiles.c (allocate_objfile): Call
7012 terminate_minimal_symbol_table later.
7013 (have_minimal_symbols): Update.
7014 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7015 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7016 Move from struct objfile.
7017 <minsyms_read>: New field.
7018 (struct objfile) <msymbols, minimal_symbol_count,
7019 msymbol_hash, msymbol_demangled_hash>: Move.
7020 (ALL_OBJFILE_MSYMBOLS): Update.
7021 * symfile.c (read_symbols): Set minsyms_read.
7022 (reread_symbols): Update.
7023 * symmisc.c (dump_objfile, dump_msymbols): Update.
7024
2273f0ac
TT
70252014-02-26 Tom Tromey <tromey@redhat.com>
7026
7027 * minsyms.c (msymbols_sort): Remove.
7028 * minsyms.h (msymbols_sort): Remove.
7029 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7030 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7031 * elfread.c (elf_symtab_read): Don't add section offsets.
7032 * xcoffread.c (record_minimal_symbol): Don't add section offset
7033 to minimal symbol address.
7034 * somread.c (text_offset, data_offset): Remove.
7035 (som_symtab_read): Don't add section offsets to minimal symbol
7036 addresses.
7037 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7038 Don't add section offsets to minimal symbols.
7039 * coffread.c (coff_symtab_read): Don't add section offsets
7040 to minimal symbol addresses.
7041 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7042 to minimal symbol addresses.
7043 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7044 section offset to minimal symbol addresses.
7045 * mdebugread.c (parse_partial_symbols): Don't add section
7046 offset to minimal symbol addresses.
7047 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7048 offset to minimal symbol addresses.
7049
77e371c0
TT
70502014-02-26 Tom Tromey <tromey@redhat.com>
7051
7052 * ada-lang.c (ada_main_name): Update.
7053 (ada_add_standard_exceptions): Update.
7054 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7055 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7056 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7057 * auxv.c (ld_so_xfer_auxv): Update.
7058 * avr-tdep.c (avr_scan_prologue): Update.
7059 * ax-gdb.c (gen_var_ref): Update.
7060 * blockframe.c (get_pc_function_start)
7061 (find_pc_partial_function_gnu_ifunc): Update.
7062 * breakpoint.c (create_overlay_event_breakpoint)
7063 (create_longjmp_master_breakpoint)
7064 (create_std_terminate_master_breakpoint)
7065 (create_exception_master_breakpoint): Update.
7066 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7067 * c-valprint.c (c_val_print): Update.
7068 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7069 * common/agent.c (agent_look_up_symbols): Update.
7070 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7071 * dwarf2loc.c (call_site_to_target_addr): Update.
7072 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7073 * elfread.c (elf_gnu_ifunc_record_cache)
7074 (elf_gnu_ifunc_resolve_by_got): Update.
7075 * findvar.c (default_read_var_value): Update.
7076 * frame.c (inside_main_func): Update.
7077 * frv-tdep.c (frv_frame_this_id): Update.
7078 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7079 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7080 Update.
7081 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7082 (hppa_hpux_find_dummy_bpaddr): Update.
7083 * hppa-tdep.c (hppa_symbol_address): Update.
7084 * infcmd.c (until_next_command): Update.
7085 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7086 Update.
7087 * linespec.c (minsym_found, add_minsym): Update.
7088 * linux-nat.c (get_signo): Update.
7089 * linux-thread-db.c (inferior_has_bug): Update.
7090 * m32c-tdep.c (m32c_return_value)
7091 (m32c_m16c_address_to_pointer): Update.
7092 * m32r-tdep.c (m32r_frame_this_id): Update.
7093 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7094 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7095 * maint.c (maintenance_translate_address): Update.
7096 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7097 (frob_address): New function.
7098 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7099 frob_address. Rename parameter to "pc_in".
7100 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7101 addresses.
7102 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7103 Update.
7104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7105 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7106 * objc-lang.c (find_objc_msgsend): Update.
7107 * objfiles.c (objfile_relocate1): Update.
7108 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7109 * p-valprint.c (pascal_val_print): Update.
7110 * parse.c (write_exp_msymbol): Update.
7111 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7112 (ppc_elfv2_skip_entrypoint): Update.
7113 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7114 * printcmd.c (build_address_symbolic, msym_info)
7115 (address_info): Update.
7116 * proc-service.c (ps_pglobal_lookup): Update.
7117 * psymtab.c (find_pc_sect_psymtab_closer)
7118 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7119 Change msymbol parameter to bound_minimal_symbol.
7120 * ravenscar-thread.c (get_running_thread_id): Update.
7121 * remote.c (remote_check_symbols): Update.
7122 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7123 address.
7124 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7125 * solib-dsbt.c (lm_base): Update.
7126 * solib-frv.c (lm_base, main_got): Update.
7127 * solib-irix.c (locate_base): Update.
7128 * solib-som.c (som_solib_create_inferior_hook)
7129 (link_map_start): Update.
7130 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7131 * solib-svr4.c (elf_locate_base, enable_break): Update.
7132 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7133 (flush_ea_cache): Update.
7134 * stabsread.c (define_symbol, scan_file_globals): Update.
7135 * stack.c (find_frame_funname): Update.
7136 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7137 (debug_qf_find_pc_sect_symtab): Update.
7138 * symfile.c (simple_read_overlay_table)
7139 (simple_overlay_update): Update.
7140 * symfile.h (struct quick_symbol_functions)
7141 <find_pc_sect_symtab>: Change type of msymbol to
7142 bound_minimal_symbol.
7143 * symmisc.c (dump_msymbols): Update.
7144 * symtab.c (find_pc_sect_symtab_via_partial)
7145 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7146 (search_symbols, print_msymbol_info): Update.
7147 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7148 (MSYMBOL_VALUE_ADDRESS): Redefine.
7149 (BMSYMBOL_VALUE_ADDRESS): New macro.
7150 * tracepoint.c (scope_info): Update.
7151 * tui/tui-disasm.c (tui_find_disassembly_address)
7152 (tui_get_begin_asm_address): Update.
7153 * valops.c (find_function_in_inferior): Update.
7154 * value.c (value_static_field, value_fn_field): Update.
7155
3b7344d5
TT
71562014-02-26 Tom Tromey <tromey@redhat.com>
7157
7158 * ada-lang.c (ada_update_initial_language): Update.
7159 (ada_main_name, ada_has_this_exception_support): Update.
7160 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7161 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7162 * arm-tdep.c (arm_skip_stub): Update.
7163 * auxv.c (ld_so_xfer_auxv): Update.
7164 * avr-tdep.c (avr_scan_prologue): Update.
7165 * ax-gdb.c (gen_var_ref): Update.
7166 * breakpoint.c (struct breakpoint_objfile_data)
7167 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7168 type to bound_minimal_symbol.
7169 (create_overlay_event_breakpoint)
7170 (create_longjmp_master_breakpoint)
7171 (create_std_terminate_master_breakpoint)
7172 (create_exception_master_breakpoint): Update.
7173 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7174 * c-exp.y (classify_name): Update.
7175 * coffread.c (coff_symfile_read): Update.
7176 * common/agent.c (agent_look_up_symbols): Update.
7177 * d-lang.c (d_main_name): Update.
7178 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7179 * dec-thread.c (enable_dec_thread): Update.
7180 * dwarf2loc.c (call_site_to_target_addr): Update.
7181 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7182 * eval.c (evaluate_subexp_standard): Update.
7183 * findvar.c (struct minsym_lookup_data) <result>: Change type
7184 to bound_minimal_symbol.
7185 <objfile>: Remove.
7186 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7187 * frame.c (inside_main_func): Update.
7188 * frv-tdep.c (frv_frame_this_id): Update.
7189 * gcore.c (call_target_sbrk): Update.
7190 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7191 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7192 Update.
7193 * go-lang.c (go_main_name): Update.
7194 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7195 (hppa_hpux_find_import_stub_for_addr): Update.
7196 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7197 Update. Change return type.
7198 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7199 type.
7200 * jit.c (jit_breakpoint_re_set_internal): Update.
7201 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7202 Update.
7203 * linux-nat.c (get_signo): Update.
7204 * linux-thread-db.c (inferior_has_bug): Update
7205 * m32c-tdep.c (m32c_return_value)
7206 (m32c_m16c_address_to_pointer): Update.
7207 * m32r-tdep.c (m32r_frame_this_id): Update.
7208 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7209 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7210 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7211 lookup_minimal_symbol. Change return type.
7212 (lookup_minimal_symbol): Remove.
7213 (lookup_bound_minimal_symbol): Update.
7214 (lookup_minimal_symbol_text): Change return type.
7215 (lookup_minimal_symbol_solib_trampoline): Change return type.
7216 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7217 (lookup_minimal_symbol_solib_trampoline): Change return type.
7218 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7219 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7220 (value_nsstring, find_imps): Update.
7221 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7222 * p-lang.c (pascal_main_name): Update.
7223 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7224 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7225 * proc-service.c (ps_pglobal_lookup): Update.
7226 * ravenscar-thread.c (get_running_thread_msymbol): Change
7227 return type.
7228 (has_ravenscar_runtime, get_running_thread_id): Update.
7229 * remote.c (remote_check_symbols): Update.
7230 * sol-thread.c (ps_pglobal_lookup): Update.
7231 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7232 * solib-dsbt.c (lm_base): Update.
7233 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7234 Update.
7235 * solib-irix.c (locate_base): Update.
7236 * solib-som.c (som_solib_create_inferior_hook)
7237 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7238 Update.
7239 * solib-spu.c (spu_enable_break): Update.
7240 * solib-svr4.c (elf_locate_base, enable_break): Update.
7241 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7242 (flush_ea_cache): Update.
7243 * stabsread.c (define_symbol): Update.
7244 * symfile.c (simple_read_overlay_table): Update.
7245 * symtab.c (find_pc_sect_line): Update.
7246 * tracepoint.c (scope_info): Update.
7247 * tui-disasm.c (tui_get_begin_asm_address): Update.
7248 * value.c (value_static_field): Update.
7249
40c1a007
TT
72502014-02-26 Tom Tromey <tromey@redhat.com>
7251
7252 * minsyms.c (prim_record_minimal_symbol_full): Use
7253 SET_MSYMBOL_VALUE_ADDRESS.
7254 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7255 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7256 SET_MSYMBOL_VALUE_ADDRESS.
7257 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7258 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7259
efd66ac6
TT
72602014-02-26 Tom Tromey <tromey@redhat.com>
7261
7262 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7263 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7264 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7265 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7266 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7267 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7268 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7269 * ada-lang.c (ada_main_name): Update.
7270 (ada_lookup_simple_minsym): Update.
7271 (ada_make_symbol_completion_list): Update.
7272 (ada_add_standard_exceptions): Update.
7273 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7274 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7275 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7276 * arm-tdep.c (skip_prologue_function): Update.
7277 (arm_skip_stack_protector, arm_skip_stub): Update.
7278 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7279 (arm_wince_skip_main_prologue): Update.
7280 * auxv.c (ld_so_xfer_auxv): Update.
7281 * avr-tdep.c (avr_scan_prologue): Update.
7282 * ax-gdb.c (gen_var_ref): Update.
7283 * block.c (call_site_for_pc): Update.
7284 * blockframe.c (get_pc_function_start): Update.
7285 (find_pc_partial_function_gnu_ifunc): Update.
7286 * breakpoint.c (create_overlay_event_breakpoint): Update.
7287 (create_longjmp_master_breakpoint): Update.
7288 (create_std_terminate_master_breakpoint): Update.
7289 (create_exception_master_breakpoint): Update.
7290 (resolve_sal_pc): Update.
7291 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7292 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7293 Update.
7294 * c-valprint.c (c_val_print): Update.
7295 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7296 * coffread.c (coff_symfile_read): Update.
7297 * common/agent.c (agent_look_up_symbols): Update.
7298 * dbxread.c (find_stab_function_addr): Update.
7299 (end_psymtab): Update.
7300 * dwarf2loc.c (call_site_to_target_addr): Update.
7301 (func_verify_no_selftailcall): Update.
7302 (tailcall_dump): Update.
7303 (call_site_find_chain_1): Update.
7304 (dwarf_expr_reg_to_entry_parameter): Update.
7305 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7306 (elf_gnu_ifunc_resolve_by_got): Update.
7307 * f-valprint.c (info_common_command): Update.
7308 * findvar.c (read_var_value): Update.
7309 * frame.c (get_prev_frame_1): Update.
7310 (inside_main_func): Update.
7311 * frv-tdep.c (frv_skip_main_prologue): Update.
7312 (frv_frame_this_id): Update.
7313 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7314 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7315 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7316 (gnuv3_skip_trampoline): Update.
7317 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7318 (hppa64_hpux_in_solib_call_trampoline): Update.
7319 (hppa_hpux_skip_trampoline_code): Update.
7320 (hppa64_hpux_search_dummy_call_sequence): Update.
7321 (hppa_hpux_find_import_stub_for_addr): Update.
7322 (hppa_hpux_find_dummy_bpaddr): Update.
7323 * hppa-tdep.c (hppa_symbol_address)
7324 (hppa_lookup_stub_minimal_symbol): Update.
7325 * i386-tdep.c (i386_skip_main_prologue): Update.
7326 (i386_pe_skip_trampoline_code): Update.
7327 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7328 * infcall.c (get_function_name): Update.
7329 * infcmd.c (until_next_command): Update.
7330 * jit.c (jit_breakpoint_re_set_internal): Update.
7331 (jit_inferior_init): Update.
7332 * linespec.c (minsym_found): Update.
7333 (add_minsym): Update.
7334 * linux-fork.c (info_checkpoints_command): Update.
7335 * linux-nat.c (get_signo): Update.
7336 * linux-thread-db.c (inferior_has_bug): Update.
7337 * m32c-tdep.c (m32c_return_value): Update.
7338 (m32c_m16c_address_to_pointer): Update.
7339 (m32c_m16c_pointer_to_address): Update.
7340 * m32r-tdep.c (m32r_frame_this_id): Update.
7341 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7342 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7343 * maint.c (maintenance_translate_address): Update.
7344 * minsyms.c (add_minsym_to_hash_table): Update.
7345 (add_minsym_to_demangled_hash_table): Update.
7346 (msymbol_objfile): Update.
7347 (lookup_minimal_symbol): Update.
7348 (iterate_over_minimal_symbols): Update.
7349 (lookup_minimal_symbol_text): Update.
7350 (lookup_minimal_symbol_by_pc_name): Update.
7351 (lookup_minimal_symbol_solib_trampoline): Update.
7352 (lookup_minimal_symbol_by_pc_section_1): Update.
7353 (lookup_minimal_symbol_and_objfile): Update.
7354 (prim_record_minimal_symbol_full): Update.
7355 (compare_minimal_symbols): Update.
7356 (compact_minimal_symbols): Update.
7357 (build_minimal_symbol_hash_tables): Update.
7358 (install_minimal_symbols): Update.
7359 (terminate_minimal_symbol_table): Update.
7360 (find_solib_trampoline_target): Update.
7361 (minimal_symbol_upper_bound): Update.
7362 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7363 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7364 (mips_skip_pic_trampoline_code): Update.
7365 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7366 * objc-lang.c (selectors_info): Update.
7367 (classes_info): Update.
7368 (find_methods): Update.
7369 (find_imps): Update.
7370 (find_objc_msgsend): Update.
7371 * objfiles.c (objfile_relocate1): Update.
7372 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7373 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7374 * p-valprint.c (pascal_val_print): Update.
7375 * parse.c (write_exp_msymbol): Update.
7376 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7377 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7378 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7379 * printcmd.c (build_address_symbolic): Update.
7380 (sym_info): Update.
7381 (address_info): Update.
7382 * proc-service.c (ps_pglobal_lookup): Update.
7383 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7384 (find_pc_sect_psymtab): Update.
7385 * python/py-framefilter.c (py_print_frame): Update.
7386 * ravenscar-thread.c (get_running_thread_id): Update.
7387 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7388 Update.
7389 * remote.c (remote_check_symbols): Update.
7390 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7391 (rs6000_skip_trampoline_code): Update.
7392 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7393 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7394 * solib-dsbt.c (lm_base): Update.
7395 * solib-frv.c (lm_base): Update.
7396 (main_got): Update.
7397 * solib-irix.c (locate_base): Update.
7398 * solib-som.c (som_solib_create_inferior_hook): Update.
7399 (som_solib_desire_dynamic_linker_symbols): Update.
7400 (link_map_start): Update.
7401 * solib-spu.c (spu_enable_break): Update.
7402 (ocl_enable_break): Update.
7403 * solib-svr4.c (elf_locate_base): Update.
7404 (enable_break): Update.
7405 * spu-tdep.c (spu_get_overlay_table): Update.
7406 (spu_catch_start): Update.
7407 (flush_ea_cache): Update.
7408 * stabsread.c (define_symbol): Update.
7409 (scan_file_globals): Update.
7410 * stack.c (find_frame_funname): Update.
7411 (frame_info): Update.
7412 * symfile.c (simple_read_overlay_table): Update.
7413 (simple_overlay_update): Update.
7414 * symmisc.c (dump_msymbols): Update.
7415 * symtab.c (fixup_section): Update.
7416 (find_pc_sect_line): Update.
7417 (skip_prologue_sal): Update.
7418 (search_symbols): Update.
7419 (print_msymbol_info): Update.
7420 (rbreak_command): Update.
7421 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7422 (completion_list_objc_symbol): Update.
7423 (default_make_symbol_completion_list_break_on): Update.
7424 * tracepoint.c (scope_info): Update.
7425 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7426 (tui_get_begin_asm_address): Update.
7427 * valops.c (find_function_in_inferior): Update.
7428 * value.c (value_static_field): Update.
7429 (value_fn_field): Update.
7430
50e65b17
TT
74312014-02-26 Tom Tromey <tromey@redhat.com>
7432
7433 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7434 bound minimal symbols. Move code that knows about minsym
7435 table layout...
7436 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7437 function.
7438 * minsyms.h (minimal_symbol_upper_bound): Declare.
7439 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7440 minimal_symbol_upper_bound.
7441
1b588015
JB
74422014-02-27 Joel Brobecker <brobecker@adacore.com>
7443
7444 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7445 Use the type's name if its basic type does not have a tag.
7446
dbb9c2b1
JB
74472014-02-27 Joel Brobecker <brobecker@adacore.com>
7448
7449 * dwarf2read.c (read_subrange_type): Add comment.
7450
55426c9d
JB
74512014-02-27 Joel Brobecker <brobecker@adacore.com>
7452
7453 * dwarf2read.c (update_enumeration_type_from_children): New
7454 function, mostly extracted from process_structure_scope.
7455 (read_enumeration_type): Call update_enumeration_type_from_children.
7456 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7457 and flag_flag_enum fields.
7458
f2fce0ca
PA
74592014-02-26 Pedro Alves <palves@redhat.com>
7460
7461 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7462 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7463 to_xfer_partial method.
7464
7a44e40e
PA
74652014-02-26 Pedro Alves <palves@redhat.com>
7466
7467 * target.c (complete_target_initialization): Don't install
7468 default_xfer_partial as to_xfer_partial hook.
7469 (nomemory): Delete.
7470 (update_current_target): Don't INHERIT nor de_fault
7471 deprecated_xfer_memory. Delete de_fault macro.
7472 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7473 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7474 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7475 field.
7476
bd265cd0
PA
74772014-02-26 Pedro Alves <palves@redhat.com>
7478
7479 * go32-nat.c (my_write_child): New function.
7480 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7481 (go32_xfer_partial): New function.
7482 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7483 Instead install a to_xfer_partial hook.
7484
9d46c4e5
PA
74852014-02-26 Pedro Alves <palves@redhat.com>
7486
7487 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7488 to_xfer_partial helper. Rewrite.
7489 (procfs_xfer_partial): New function.
7490 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7491 Install a to_xfer_partial hook.
7492
a1583b1f
PA
74932014-02-26 Pedro Alves <palves@redhat.com>
7494
7495 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7496 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7497 (m32r_xfer_partial): New function.
7498 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7499 Install a to_xfer_partial hook.
7500
6df1b29f
PA
75012014-02-26 Pedro Alves <palves@redhat.com>
7502
7503 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7504 helper.
7505 (mips_xfer_partial): New function.
7506 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7507 hook. Install a to_xfer_partial hook.
7508
dc53a7ad
JB
75092014-02-26 Joel Brobecker <brobecker@adacore.com>
7510
7511 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7512 * gdbtypes.c (create_array_type_with_stride): New function,
7513 renaming create_array_type, but with an added parameter
7514 called "bit_stride".
7515 (create_array_type): Re-implement using
7516 create_array_type_with_stride.
7517 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7518 and DW_AT_bit_stride attributes.
7519
12ab52e9
PA
75202014-02-26 Pedro Alves <palves@redhat.com>
7521
7522 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7523 task-specific breakpoints.
7524
d16461ae
PA
75252014-02-25 Pedro Alves <palves@redhat.com>
7526
7527 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7528 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7529
a8b16220
SS
75302014-02-25 Stan Shebs <stan@codesourcery.com>
7531
7532 * defs.h: Annotate comments for Doxygen.
7533
b9e795ee
TT
75342014-02-25 Tom Tromey <tromey@redhat.com>
7535
7536 * target.h (target_ignore): Don't declare.
7537 * target.c (target_ignore): Remove.
7538
849c862e
JK
75392014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7540
7541 PR gdb/16626
7542 * auto-load.c (auto_load_objfile_script_1): Change filename to
7543 debugfile.
7544
475109d8
JB
75452014-02-25 Joel Brobecker <brobecker@adacore.com>
7546
7547 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7548 documentation. Adjust prototype to match the target_ops
7549 to_xfer_partial method. Adjust implementation accordingly.
7550
e186c3bd
HZ
75512014-02-25 Hui Zhu <hui@codesourcery.com>
7552
7553 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7554 to_traceframe_info.
7555
6d451942
KB
75562014-02-25 Kevin Buettner <kevinb@redhat.com>
7557
041ab8b4 7558 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7559 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7560 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7561 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7562 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7563 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7564 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7565 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7566 New constants.
7567 (rl78_register_type): Use a data pointer type for SP and
7568 new pseudo registers mentioned above. Use a 16 bit integer
7569 type for all other register pairs.
7570 (rl78_register_name, rl78_g10_register_name): Update for
7571 new pseudo registers.
7572 (rl78_pseudo_register_read): Likewise.
7573 (rl78_pseudo_register_write): Likewise.
7574 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7575 to the newly added pseudo registers.
7576
eddf0bae
DE
75772014-02-24 Doug Evans <dje@google.com>
7578
7579 * value.c (record_latest_value): Fix comment.
7580 * printcmd.c (print_command_1): Remove code to handle -1 return from
7581 record_latest_value.
7582
e96027e0
PA
75832014-02-24 Pedro Alves <palves@redhat.com>
7584
7585 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7586 deprecated_xfer_memory hook.
7587 (procfs_xfer_partial): Call procfs_xfer_memory instead
7588 of the deprecated_xfer_memory target hook.
7589 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7590 helper.
7591
0837c976
YZ
75922014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7593
7594 * windows-nat.c (windows_xfer_shared_libraries): Return
7595 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7596 requested object is TARGET_OBJECT_LIBRARIES.
7597
bc113b4e
YQ
75982014-02-24 Yao Qi <yao@codesourcery.com>
7599
7600 * target.h (enum target_xfer_status)
7601 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7602 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7603 explicitly. New.
7604 * corefile.c (memory_error_message): User updated.
7605 * exec.c (section_table_read_available_memory): Likewise.
7606 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7607 * target.c (target_xfer_status_to_string): Likewise.
7608 (raw_memory_xfer_partial): Likewise.
7609 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7610 * valops.c (read_value_memory): Likewise.
7611 * exec.h: Update comments.
7612
01cb8804
YQ
76132014-02-24 Yao Qi <yao@codesourcery.com>
7614
7615 * target.c (target_xfer_status_to_string): Rename argument err
7616 to status.
7617 * target.h (target_xfer_status_to_string): Update declaration.
7618 Replace target_xfer_error_to_string with
7619 target_xfer_status_to_string in comment.
7620
93063aa6
YQ
76212014-02-24 Yao Qi <yao@codesourcery.com>
7622
7623 * mips-linux-nat.c (super_close): Update its type.
7624 (mips_linux_close): Pass 'self' to super_close.
7625
5c328c05
YQ
76262014-02-24 Yao Qi <yao@codesourcery.com>
7627
7628 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7629 * corefile.c (read_memory): Adjusted.
7630 * target.c (target_write_with_progress): Adjusted.
7631
f73023dd
YQ
76322014-02-23 Yao Qi <yao@codesourcery.com>
7633
7634 Revert two patches:
7635
7636 2013-10-25 Yao Qi <yao@codesourcery.com>
7637
7638 * remote.c (remote_traceframe_info): Return early if
7639 traceframe is not selected.
7640
7641 2013-07-19 Yao Qi <yao@codesourcery.com>
7642
7643 * target.c (update_current_target): Change the default action
7644 of 'to_traceframe_info' from tcomplain to return_zero.
7645 * target.h (struct target_ops) <to_traceframe_info>: Add more
7646 comments.
7647
5a2eb0ef
YQ
76482014-02-23 Yao Qi <yao@codesourcery.com>
7649
7650 * valops.c (read_value_memory): Rewrite it. Call
7651 target_xfer_partial in a loop.
7652 * exec.h (section_table_available_memory): Remove declaration.
7653 Move comments to ...
7654 * exec.c (section_table_available_memory): ... here. Make it
7655 static.
7656
1ee79381
YQ
76572014-02-23 Yao Qi <yao@codesourcery.com>
7658
7659 * exec.c (section_table_read_available_memory): New function.
7660 * exec.h (section_table_read_available_memory): Declare.
7661 * ctf.c (ctf_xfer_partial): Call
7662 section_table_read_available_memory.
7663 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7664
1ca49d37
YQ
76652014-02-23 Yao Qi <yao@codesourcery.com>
7666
7667 * ctf.c (ctf_xfer_partial): Move code to ...
7668 * exec.c (exec_read_partial_read_only): ... it. New function.
7669 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7670 * tracefile.c: Include "exec.h".
7671 * exec.h (exec_read_partial_read_only): Declare.
7672
a283690e
YQ
76732014-02-23 Yao Qi <yao@codesourcery.com>
7674
7675 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7676 (tfile_has_memory): Remove.
7677 (init_tfile_ops): Don't set fields to_has_all_memory and
7678 to_has_memory of tfile_ops.
7679 * tracefile.c (tracefile_has_all_memory): New function.
7680 (tracefile_has_memory): New function.
7681 (init_tracefile_ops): Initialize fields to_has_all_memory and
7682 to_has_memory of 'ops'.
7683
12e03cd0
YQ
76842014-02-23 Yao Qi <yao@codesourcery.com>
7685
7686 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7687 (ctf_thread_alive, ctf_get_trace_status): Remove.
7688 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7689 init_tracefile_ops.
7690 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7691 (tfile_has_stack, tfile_has_registers): Remove.
7692 (tfile_thread_alive): Remove.
7693 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7694 init_tracefile_ops.
7695 * tracefile.c (tracefile_has_stack): New function.
7696 (tracefile_has_registers): New function.
7697 (tracefile_thread_alive): New function.
7698 (tracefile_get_trace_status): New function.
7699 (init_tracefile_ops): New function.
7700 * tracefile.h (init_tracefile_ops): Declare.
7701
11395323
YQ
77022014-02-23 Yao Qi <yao@codesourcery.com>
7703
7704 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7705 (O_LARGEFILE): Likewise.
7706 (tfile_ops): Likewise.
7707 (TRACE_HEADER_SIZE): Likewise.
7708 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7709 (cur_data_size): Likewise.
7710 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7711 (tfile_close, tfile_files_info): Likewise.
7712 (tfile_get_trace_status): Likewise.
7713 (tfile_get_tracepoint_status): Likewise.
7714 (tfile_get_traceframe_address): Likewise.
7715 (tfile_trace_find, match_blocktype): Likewise.
7716 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7717 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7718 (tfile_get_trace_state_variable_value): Likewise.
7719 (tfile_has_all_memory, tfile_has_memory): Likewise.
7720 (tfile_has_stack, tfile_has_registers): Likewise.
7721 (tfile_thread_alive, build_traceframe_info): Likewise.
7722 (tfile_traceframe_info, init_tfile_ops): Likewise.
7723 (_initialize_tracepoint): Don't call init_tfile_ops
7724 and add_target_with_completer.
7725 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7726 exec.h, completer.h and filenames.h.
7727 (_initialize_tracefile_tfile): New function.
7728
7951c4eb
YQ
77292014-02-23 Yao Qi <yao@codesourcery.com>
7730
7731 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7732 tracefile-tfile.o.
7733 (HFILES_NO_SRCDIR): Add tracefile.h.
7734 * ctf.c: Include "tracefile.h".
7735 * tracefile.h: New file.
7736 * tracefile.c: New file
7737 * tracefile-tfile.c: New file.
7738 * tracepoint.c: Include "tracefile.h".
7739 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7740 (stop_reason_names): Add const.
7741 (trace_file_writer_xfree): Move it to tracefile.c.
7742 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7743 (trace_save_ctf): Likewise.
7744 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7745 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7746 (tfile_write_header, tfile_write_regblock_type): Likewise.
7747 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7748 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7749 (tfile_write_raw_data, tfile_end): Likewise.
7750 (tfile_trace_file_writer_new): Likewise.
7751 (free_uploaded_tp): Make it extern.
7752 (free_uploaded_tsv): Make it extern.
7753 (_initialize_tracepoint): Move code to register command 'tsave'
7754 to tracefile.c.
7755 * tracepoint.h (stop_reason_names): Declare.
7756 (struct trace_frame_write_ops): Move it to tracefile.h.
7757 (struct trace_file_write_ops): Likewise.
7758 (struct trace_file_writer): Likewise.
7759 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7760
184cd072
JK
77612014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7762
7763 PR gdb/16594
7764 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7765 process name.
7766 (get_cores_used_by_process): New parameter num_cores, use it.
7767 (linux_xfer_osdata_processes): Pass num_cores to it.
7768 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7769 process name.
7770
c63528fc
AK
77712014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7772
7773 * target.c (memory_xfer_partial): Fix length arg in call to
7774 breakpoint_xfer_memory.
7775
d7b30f67
SDJ
77762014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7777
7778 PR tdep/16397
7779 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7780 number comes after the + or - signs. Adjust length of register
7781 name to be extracted.
7782
8838afaf
TT
77832014-02-20 Tom Tromey <tromey@redhat.com>
7784
7785 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7786 (ada_varobj_ops): Mark "extern".
7787
05227d14
TT
77882014-02-20 Tom Tromey <tromey@redhat.com>
7789
7790 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7791
1254eefc
DE
77922014-02-20 Doug Evans <xdje42@gmail.com>
7793
7794 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7795 All callers updated.
7796 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7797 All callers updated.
7798 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7799 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7800
adde2bff
DE
78012014-02-20 lin zuojian <manjian2006@gmail.com>
7802 Joel Brobecker <brobecker@adacore.com>
7803 Doug Evans <xdje42@gmail.com>
7804
7805 PR symtab/16581
7806 * dwarf2read.c (struct die_info): New member in_process.
7807 (reset_die_in_process): New function.
7808 (process_die): Set it at the start, reset when returning.
7809 (inherit_abstract_dies): Only call process_die if origin_child_die
7810 not already being processed.
7811
3be75f87
JB
78122014-02-20 Joel Brobecker <brobecker@adacore.com>
7813
7814 * windows-nat.c (handle_unload_dll): Add function documentation.
7815 (do_initial_windows_stuff): Add comment explaining why we wait
7816 until after inferior initialization has finished before
7817 processing all DLLs.
7818
47f7ffdb
JB
78192014-02-20 Joel Brobecker <brobecker@adacore.com>
7820
7821 * windows-nat.c (get_module_name): Delete.
7822 (windows_get_exec_module_filename): New function, mostly
7823 inspired from get_module_name.
7824 (windows_pid_to_exec_file): Replace call to get_module_name
7825 by call to windows_get_exec_module_filename.
7826
1cd9feab
JB
78272014-02-20 Joel Brobecker <brobecker@adacore.com>
7828
7829 * windows-nat.c (handle_load_dll): Rewrite this function's
7830 introductory comment. Remove code using get_module_name
7831 to get the DLL's name.
7832
ea39ad35
JB
78332014-02-20 Joel Brobecker <brobecker@adacore.com>
7834
7835 * windows-nat.c (get_windows_debug_event): Ignore
7836 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7837 if windows_initialization_done == 0.
7838 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7839 Adjust implementation to always load all DLLs.
7840 (do_initial_windows_stuff): Replace call to
7841 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7842
95060284
JB
78432014-02-20 Joel Brobecker <brobecker@adacore.com>
7844
7845 * windows-nat.c (_initialize_windows_nat): Deprecate the
7846 "dll-symbols" command. Turn the "add-shared-symbol-files"
7847 and "assf" aliases into commands, and deprecate them as well.
7848 * NEWS: Add entry explaining that "dll-symbols" and its two
7849 aliases are now deprecated.
7850
8d4fdb12
JB
78512014-02-20 Joel Brobecker <brobecker@adacore.com>
7852
7853 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7854 new-line in debug string. Remove trailing spaces.
7855
1b281443
SS
78562014-02-19 Stan Shebs <stan@codesourcery.com>
7857
7858 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7859
f7bd0f78
SC
78602014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7861
7862 * NEWS: Add entry for the new feature
7863 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7864 and class values.
7865
399ebc3d
SS
78662014-02-19 Stan Shebs <stan@codesourcery.com>
7867
7868 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7869
c658158d
PA
78702014-02-19 Pedro Alves <palves@redhat.com>
7871
7872 * common/ptid.h (struct ptid): Mention that process_stratum
7873 targets should prefer ptid.lwp.
7874
ba348170
PA
78752014-02-19 Pedro Alves <palves@redhat.com>
7876
7877 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7878 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7879 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7880 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7881 store remote thread ids rather than ptid.tid.
7882 (_initialize_remote): Adjust.
7883
ac01945b
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target.c (target_get_unwinder): Rewrite.
7887 (target_get_tailcall_unwinder): Rewrite.
7888 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7889 (record_btrace_to_get_tailcall_unwinder): New function.
7890 (init_record_btrace_ops): Update.
7891 * target.h (struct target_ops) <to_get_unwinder,
7892 to_get_tailcall_unwinder>: Now function pointers. Use
7893 TARGET_DEFAULT_RETURN.
7894
8476dc92
TT
78952014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7898 argument.
7899 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7900
c0eca49f
TT
79012014-02-19 Tom Tromey <tromey@redhat.com>
7902
7903 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7904 directly.
7905 * target-delegates.c: Rebuild.
7906 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7907 TARGET_DEFAULT_FUNC.
7908 * target.c (default_target_decr_pc_after_break): Rename from
7909 forward_target_decr_pc_after_break. Simplify.
7910 (target_decr_pc_after_break): Rely on delegation.
7911
596b6b39
TT
79122014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target.c (update_current_target): Do not INHERIT to_doc or
7915 to_magic. Do not de_fault to_open or to_close.
7916
b427c1bc
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * gcore.h (objfile_find_memory_regions): Declare.
7920 * gcore.c (objfile_find_memory_regions): No longer static. Add
7921 "self" argument.
7922 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7923 * exec.c: Include gcore.h.
7924 (exec_set_find_memory_regions): Remove.
7925 (exec_find_memory_regions): Remove.
7926 (exec_do_find_memory_regions): Remove.
7927 (init_exec_ops): Update.
7928 * defs.h (exec_set_find_memory_regions): Remove.
7929
9b144037
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.h (struct target_ops) <to_extra_thread_info,
7934 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7935 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7936 not 0, in TARGET_DEFAULT_RETURN.
7937
555bbdeb
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target.c (complete_target_initialization): Remove casts. Use
7941 return_zero_has_execution.
7942 (return_zero): Add "ignore" argument.
7943 (return_zero_has_execution): New function.
7944 (init_dummy_target): Remove casts. Use
7945 return_zero_has_execution.
7946
be4ddd36
TT
79472014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target.c (update_current_target): Update comments. Do not
7950 INHERIT to_stratum.
7951
2117c711
TT
79522014-02-19 Tom Tromey <tromey@redhat.com>
7953
7954 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7955 needed.
7956 * corelow.c (core_read_description): Delegate when needed.
7957 * remote.c (remote_read_description): Delegate when needed.
7958 * target-delegates.c: Rebuild.
7959 * target.c (target_read_description): Rewrite.
7960 * target.h (struct target_ops) <to_read_description>: Update
7961 comment. Use TARGET_DEFAULT_RETURN.
7962
e88ef65c
TT
79632014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7967 to_can_run.
7968 (find_default_run_target): Check against delegate_can_run.
7969 * target.h (struct target_ops) <to_can_run>: Use
7970 TARGET_DEFAULT_RETURN.
7971
86a0854a
TT
79722014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target-delegates.c: Rebuild.
7975 * target.c (target_disconnect): Unconditionally delegate.
7976 * target.h (struct target_ops) <to_disconnect>: Use
7977 TARGET_DEFAULT_NORETURN.
7978
ee97f592
TT
79792014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * record.c (record_stop): Unconditionally delegate.
7982 * target-delegates.c: Rebuild.
7983 * target.c (target_stop_recording): Unconditionally delegate.
7984 * target.h (struct target_ops) <to_stop_recording>: Use
7985 TARGET_DEFAULT_IGNORE.
7986
6dc7fcf4
TT
79872014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * target-delegates.c: Rebuild.
7990 * target.c (target_enable_btrace): Unconditionally delegate.
7991 * target.h (struct target_ops) <to_enable_btrace>: Use
7992 TARGET_DEFAULT_NORETURN.
7993
eb5b20d4
TT
79942014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * target-delegates.c: Rebuild.
7997 * target.c (target_read_btrace): Unconditionally delegate.
7998 * target.h (struct target_ops) <to_read_btrace>: Use
7999 TARGET_DEFAULT_NORETURN.
8000
9ace480d
TT
80012014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (target_teardown_btrace): Unconditionally delegate.
8005 * target.h (struct target_ops) <to_teardown_btrace>: Use
8006 TARGET_DEFAULT_NORETURN.
8007
8dc292d3
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * target-delegates.c: Rebuild.
8011 * target.c (target_disable_btrace): Unconditionally delegate.
8012 * target.h (struct target_ops) <to_disable_btrace>: Use
8013 TARGET_DEFAULT_NORETURN.
8014
58a5184e
TT
80152014-02-19 Tom Tromey <tromey@redhat.com>
8016
8017 * target-delegates.c: Rebuild.
8018 * target.c (default_search_memory): New function.
8019 (simple_search_memory): Update comment.
8020 (target_search_memory): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_search_memory>: Use
8022 TARGET_DEFAULT_FUNC.
8023
8de71aab
TT
80242014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * auxv.c (default_auxv_parse): No longer static.
8027 (target_auxv_parse): Unconditionally delegate.
8028 * auxv.h (default_auxv_parse): Declare.
8029 * target-delegates.c: Rebuild.
8030 * target.c: Include auxv.h.
8031 * target.h (struct target_ops) <to_auxv_parse>: Use
8032 TARGET_DEFAULT_FUNC.
8033
6b2c5a57
TT
80342014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target-delegates.c: Rebuild.
8037 * target.c (target_memory_map): Unconditionally delegate.
8038 * target.h (struct target_ops) <to_memory_map>: Use
8039 TARGET_DEFAULT_RETURN.
8040
cbffc065
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_thread_alive): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_thread_alive>: Use
8046 TARGET_DEFAULT_RETURN.
8047
f09e2107
TT
80482014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * target-delegates.c: Rebuild.
8051 * target.c (target_save_record): Unconditionally delegate.
8052 * target.h (struct target_ops) <to_save_record>: Use
8053 TARGET_DEFAULT_NORETURN.
8054
07366925
TT
80552014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target-delegates.c: Rebuild.
8058 * target.c (target_delete_record): Unconditionally delegate.
8059 * target.h (struct target_ops) <to_delete_record>: Use
8060 TARGET_DEFAULT_NORETURN.
8061
dd2e9d25
TT
80622014-02-19 Tom Tromey <tromey@redhat.com>
8063
8064 * target-delegates.c: Rebuild.
8065 * target.c (target_record_is_replaying): Unconditionally
8066 delegate.
8067 * target.h (struct target_ops) <to_record_is_replaying>: Use
8068 TARGET_DEFAULT_RETURN.
8069
671e76cc
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_goto_record_begin): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_goto_record_begin>: Use
8075 TARGET_DEFAULT_NORETURN.
8076
e9179bb3
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_goto_record_end): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_goto_record_end>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
05969c84
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_goto_record): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_goto_record>: Use
8089 TARGET_DEFAULT_NORETURN.
8090
3679abfa
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_insn_history): Unconditionally delegate.
8095 * target.h (struct target_ops) <to_insn_history>: Use
8096 TARGET_DEFAULT_NORETURN.
8097
8444ab58
TT
80982014-02-19 Tom Tromey <tromey@redhat.com>
8099
8100 * target-delegates.c: Rebuild.
8101 * target.c (target_insn_history_from): Unconditionally delegate.
8102 * target.h (struct target_ops) <to_insn_history_from>: Use
8103 TARGET_DEFAULT_NORETURN.
8104
c29302cc
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (target_insn_history_range): Unconditionally delegate.
8109 * target.h (struct target_ops) <to_insn_history_range>: Use
8110 TARGET_DEFAULT_NORETURN.
8111
170049d4
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_call_history): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_call_history>: Use
8117 TARGET_DEFAULT_NORETURN.
8118
16fc27d6
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_call_history_from): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_call_history_from>: Use
8124 TARGET_DEFAULT_NORETURN.
8125
115d9817
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target-delegates.c: Rebuild.
8129 * target.c (target_call_history_range): Unconditionally delegate.
8130 * target.h (struct target_ops) <to_call_history_range>: Use
8131 TARGET_DEFAULT_NORETURN.
8132
eb276a6b
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (target_verify_memory): Unconditionally delegate.
8137 * target.h (struct target_ops) <to_verify_memory>: Use
8138 TARGET_DEFAULT_NORETURN.
8139
9e538d0d
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (target_core_of_thread): Unconditionally delegate.
8144 * target.h (struct target_ops) <to_core_of_thread>: Use
8145 TARGET_DEFAULT_RETURN.
8146
f6fb2925
TT
81472014-02-19 Tom Tromey <tromey@redhat.com>
8148
8149 * target-delegates.c: Rebuild.
8150 * target.c (target_flash_done): Unconditionally delegate.
8151 * target.h (struct target_ops) <to_flash_done>: Use
8152 TARGET_DEFAULT_NORETURN.
8153
e8a6c6ac
TT
81542014-02-19 Tom Tromey <tromey@redhat.com>
8155
8156 * target-delegates.c: Rebuild.
8157 * target.c (target_flash_erase): Unconditionally delegate.
8158 * target.h (struct target_ops) <to_flash_erase>: Use
8159 TARGET_DEFAULT_NORETURN.
8160
7e35c012
TT
81612014-02-19 Tom Tromey <tromey@redhat.com>
8162
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_get_section_table): Unconditionally delegate.
8165 * target.h (struct target_ops) <to_get_section_table>: Use
8166 TARGET_DEFAULT_RETURN.
8167
770234d3
TT
81682014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_pid_to_str): Unconditionally delegate.
8172 (init_dummy_target): Don't initialize to_pid_to_str.
8173 (default_pid_to_str): Rename from dummy_pid_to_str.
8174 * target.h (struct target_ops) <to_pid_to_str>: Use
8175 TARGET_DEFAULT_FUNC.
8176
09b0dc2b
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_find_new_threads): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_find_new_threads>: Use
8182 TARGET_DEFAULT_RETURN.
8183
7d4f8efa
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_program_signals): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_program_signals>: Use
8189 TARGET_DEFAULT_IGNORE.
8190
035cad7f
TT
81912014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_pass_signals): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_pass_signals>: Use
8196 TARGET_DEFAULT_IGNORE.
8197
8d657035
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (default_mourn_inferior): New function.
8202 (target_mourn_inferior): Unconditionally delegate.
8203 * target.h (struct target_ops) <to_mourn_inferior>: Use
8204 TARGET_DEFAULT_FUNC.
8205
098dba18
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (default_follow_fork): New function.
8210 (target_follow_fork): Unconditionally delegate.
8211 * target.h (struct target_ops) <to_follow_fork>: Use
8212 TARGET_DEFAULT_FUNC.
8213
423a4807
TT
82142014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target-delegates.c: Rebuild.
8217 * target.c (target_kill): Unconditionally delegate.
8218 * target.h (struct target_ops) <to_kill>: Use
8219 TARGET_DEFAULT_NORETURN.
8220
6c7e5e5c
TT
82212014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_masked_watch_num_registers): Unconditionally
8225 delegate.
8226 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8227 Use TARGET_DEFAULT_RETURN.
8228
8b1c364c
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_remove_mask_watchpoint): Unconditionally
8233 delegate.
8234 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8235 TARGET_DEFAULT_RETURN.
8236
cd4ae029
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (target_insert_mask_watchpoint): Unconditionally
8241 delegate.
8242 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8243 TARGET_DEFAULT_RETURN.
8244
a134316b
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (target_ranged_break_num_registers): Unconditionally
8249 delegate.
8250 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8251 Use TARGET_DEFAULT_RETURN.
8252
ad5989bd
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_fetch_registers): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_fetch_registers>: Use
8258 TARGET_DEFAULT_NORETURN.
8259
46ee7e8d
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_stop.
8265 * target.h (struct target_ops) <to_stop>: Use
8266 TARGET_DEFAULT_IGNORE.
8267
843f59ed
TT
82682014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8272 to_can_run_breakpoint_commands.
8273 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8274 Use TARGET_DEFAULT_RETURN.
8275
ccfde2a0
TT
82762014-02-19 Tom Tromey <tromey@redhat.com>
8277
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't inherit or default
8280 to_supports_evaluation_of_breakpoint_conditions.
8281 * target.h (struct target_ops)
8282 <to_supports_evaluation_of_breakpoint_conditions>: Use
8283 TARGET_DEFAULT_RETURN.
8284
0de91722
TT
82852014-02-19 Tom Tromey <tromey@redhat.com>
8286
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8289 to_augmented_libraries_svr4_read.
8290 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8291 Use TARGET_DEFAULT_RETURN.
8292
9a7d8b48
TT
82932014-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * target-delegates.c: Rebuild.
8296 * target.c (update_current_target): Don't inherit or default
8297 to_can_use_agent.
8298 * target.h (struct target_ops) <to_can_use_agent>: Use
8299 TARGET_DEFAULT_RETURN.
8300
d9db5b21
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target-delegates.c: Rebuild.
8304 * target.c (update_current_target): Don't inherit or default
8305 to_use_agent.
8306 * target.h (struct target_ops) <to_use_agent>: Use
8307 TARGET_DEFAULT_NORETURN.
8308
92155eeb
TT
83092014-02-19 Tom Tromey <tromey@redhat.com>
8310
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8313 to_traceframe_info.
8314 (return_null): Remove.
8315 * target.h (struct target_ops) <to_traceframe_info>: Use
8316 TARGET_DEFAULT_RETURN.
8317
d6522a22
TT
83182014-02-19 Tom Tromey <tromey@redhat.com>
8319
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8322 to_static_tracepoint_markers_by_strid.
8323 * target.h (struct target_ops)
8324 <to_static_tracepoint_markers_by_strid>: Use
8325 TARGET_DEFAULT_NORETURN.
8326
4c3e4425
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_static_tracepoint_marker_at.
8332 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8333 Use TARGET_DEFAULT_RETURN.
8334
dcd6917f
TT
83352014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_set_permissions.
8340 * target.h (struct target_ops) <to_set_permissions>: Use
8341 TARGET_DEFAULT_IGNORE.
8342
22bcceee
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8347 to_get_tib_address.
8348 * target.h (struct target_ops) <to_get_tib_address>: Use
8349 TARGET_DEFAULT_NORETURN.
8350
8586ccaa
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't inherit or default
8355 to_set_trace_notes.
8356 * target.h (struct target_ops) <to_set_trace_notes>: Use
8357 TARGET_DEFAULT_RETURN.
8358
91df8d1d
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't initialize
8363 to_set_trace_buffer_size.
8364 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8365 TARGET_DEFAULT_IGNORE.
8366
8d526939
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_set_circular_trace_buffer.
8372 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8373 TARGET_DEFAULT_IGNORE.
8374
0bcfeddf
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_set_disconnected_tracing.
8380 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8381 TARGET_DEFAULT_IGNORE.
8382
9249843f
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_get_min_fast_tracepoint_insn_len.
8388 (return_minus_one): Remove.
8389 * target.h (struct target_ops)
8390 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8391
ace92e7d
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_get_raw_trace_data.
8397 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8398 TARGET_DEFAULT_NORETURN.
8399
08120467
TT
84002014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_upload_trace_state_variables.
8405 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8406 Use TARGET_DEFAULT_RETURN.
8407
1e949b00
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_upload_tracepoints.
8413 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8414 TARGET_DEFAULT_RETURN.
8415
a2e6c147
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_save_trace_data.
8421 * target.h (struct target_ops) <to_save_trace_data>: Use
8422 TARGET_DEFAULT_NORETURN.
8423
959bcd0b
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_get_trace_state_variable_value.
8429 * target.h (struct target_ops)
8430 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8431
afc94e66
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_trace_find.
8437 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8438
e51c07ea
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_trace_stop.
8444 * target.h (struct target_ops) <to_trace_stop>: Use
8445 TARGET_DEFAULT_NORETURN.
8446
6fea14cd
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_get_tracepoint_status.
8452 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8453 TARGET_DEFAULT_NORETURN.
8454
4072d4ff
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_get_trace_status.
8460 * target.h (struct target_ops) <to_get_trace_status>: Use
8461 TARGET_DEFAULT_RETURN.
8462
25da2e80
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_trace_start.
8468 * target.h (struct target_ops) <to_trace_start>: Use
8469 TARGET_DEFAULT_NORETURN.
8470
86dd181d
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_trace_set_readonly_regions.
8476 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8477 Use TARGET_DEFAULT_NORETURN.
8478
05c41993
TT
84792014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_disable_tracepoint.
8484 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8485 TARGET_DEFAULT_NORETURN.
8486
151f70f1
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_enable_tracepoint.
8492 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8493 TARGET_DEFAULT_NORETURN.
8494
94eb98b9
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_download_trace_state_variable.
8500 * target.h (struct target_ops) <to_download_trace_state_variable>:
8501 Use TARGET_DEFAULT_NORETURN.
8502
719acc4a
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_can_download_tracepoint.
8508 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8509 TARGET_DEFAULT_RETURN.
8510
9a980a22
TT
85112014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_download_tracepoint.
8516 * target.h (struct target_ops) <to_download_tracepoint>: Use
8517 TARGET_DEFAULT_NORETURN.
8518
5536135b
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8523 to_trace_init.
8524 * target.h (struct target_ops) <to_trace_init>: Use
8525 TARGET_DEFAULT_RETURN.
8526
9409d39e
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8531 to_supports_string_tracing.
8532 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8533 TARGET_DEFAULT_RETURN.
8534
aab1b22d
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target-delegates.c: Rebuild.
8538 * target.c (update_current_target): Don't inherit or default
8539 to_supports_enable_disable_tracepoint.
8540 * target.h (struct target_ops)
8541 <to_supports_enable_disable_tracepoint>: Use
8542 TARGET_DEFAULT_RETURN.
8543
a7304748
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_supports_multi_process.
8549 * target.h (struct target_ops) <to_supports_multi_process>: Use
8550 TARGET_DEFAULT_RETURN.
8551
4229b31d
TT
85522014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_get_ada_task_ptid.
8557 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8558 TARGET_DEFAULT_FUNC.
8559
43eba180
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_thread_architecture.
8565 * target.h (struct target_ops) <to_thread_architecture>: Use
8566 TARGET_DEFAULT_FUNC.
8567
fe31bf5b
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_execution_direction.
8573 * target.h (struct target_ops) <to_execution_direction>: Use
8574 TARGET_DEFAULT_FUNC.
8575
53e1cfc7
TT
85762014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_can_execute_reverse.
8581 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8582 TARGET_DEFAULT_RETURN.
8583 (target_can_execute_reverse): Unconditionally delegate.
8584
9bb9d61d
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8589 to_goto_bookmark.
8590 (dummy_goto_bookmark): Remove.
8591 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8592 * target.h (struct target_ops) <to_goto_bookmark>: Use
8593 TARGET_DEFAULT_NORETURN.
8594
3dbafbbb
TT
85952014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (update_current_target): Don't inherit or default
8599 to_get_bookmark.
8600 (dummy_get_bookmark): Remove.
8601 (init_dummy_target): Don't inherit or default to_get_bookmark.
8602 * target.h (struct target_ops) <to_get_bookmark>: Use
8603 TARGET_DEFAULT_NORETURN
8604
16f796b1
TT
86052014-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_make_corefile_notes.
8610 (init_dummy_target): Don't initialize to_make_corefile_notes.
8611 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8612 TARGET_DEFAULT_FUNC.
8613
0b5a2719
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target-delegates.c: Rebuild.
8617 * target.c (update_current_target): Don't inherit or default
8618 to_find_memory_regions.
8619 (init_dummy_target): Don't initialize to_find_memory_regions.
8620 * target.h (struct target_ops) <to_find_memory_regions>: Use
8621 TARGET_DEFAULT_FUNC.
8622
d9cb0195
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target-delegates.c: Rebuild.
8626 * target.c (update_current_target): Don't inherit or default
8627 to_log_command.
8628 * target.h (struct target_ops) <to_log_command>: Use
8629 TARGET_DEFAULT_IGNORE.
8630 (target_log_command): Unconditionally delegate.
8631
830ca330
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8636 to_pid_to_exec_file.
8637 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8638 TARGET_DEFAULT_RETURN.
8639
825828fc
TT
86402014-02-19 Tom Tromey <tromey@redhat.com>
8641
8642 * target-delegates.c: Rebuild.
8643 * target.c (update_current_target): Don't inherit or default
8644 to_thread_name.
8645 (target_thread_name): Unconditionally delegate.
8646 * target.h (struct target_ops) <to_thread_name>: Use
8647 TARGET_DEFAULT_RETURN.
8648
4a7e6dda
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_extra_thread_info.
8654 * target.h (struct target_ops) <to_extra_thread_info>: Use
8655 TARGET_DEFAULT_RETURN.
8656
0db88c1d
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_has_exited.
8662 * target.h (struct target_ops) <to_has_exited>: Use
8663 TARGET_DEFAULT_RETURN..
8664
6a9fa051
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_set_syscall_catchpoint.
8670 (return_one): Remove.
8671 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8672 TARGET_DEFAULT_RETURN.
8673
62f64d7a
TT
86742014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_insert_exec_catchpoint.
8679 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8680 TARGET_DEFAULT_RETURN.
8681
cda0f38c
TT
86822014-01-08 Tom Tromey <tromey@redhat.com>
8683
8684 * target-delegates.c: Rebuild.
8685 * target.c (update_current_target): Don't inherit or default
8686 to_insert_exec_catchpoint.
8687 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8688 TARGET_DEFAULT_RETURN.
8689
95c3375e
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target-delegates.c: Rebuild.
8693 * target.c (update_current_target): Don't inherit or default
8694 to_remove_vfork_catchpoint.
8695 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8696 TARGET_DEFAULT_RETURN.
8697
7e18a8dc
TT
86982014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_insert_vfork_catchpoint.
8703 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8704 TARGET_DEFAULT_RETURN.
8705
e1a21fb7
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_remove_fork_catchpoint.
8711 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8712 TARGET_DEFAULT_RETURN.
8713
5958ebeb
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_insert_fork_catchpoint.
8719 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8720 TARGET_DEFAULT_RETURN.
8721
340ba4bf
TT
87222014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_post_startup_inferior.
8727 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8728 TARGET_DEFAULT_IGNORE.
8729
7634da87
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8734 to_load.
8735 * target.h (struct target_ops) <to_load>: Use
8736 TARGET_DEFAULT_NORETURN.
8737
e19e919f
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_terminal_info.
8743 * target.h (struct target_ops) <to_terminal_info>: Use
8744 TARGET_DEFAULT_FUNC.
8745
c6ea8f79
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8750 to_terminal_save_ours.
8751 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8752 TARGET_DEFAULT_IGNORE.
8753
e4a733f1
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_terminal_ours.
8759 * target.h (struct target_ops) <to_terminal_ours>: Use
8760 TARGET_DEFAULT_IGNORE.
8761
74fcbef9
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_terminal_ours_for_output.
8767 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8768 TARGET_DEFAULT_IGNORE.
8769
ddeaacc9
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_terminal_inferior.
8775 * target.h (struct target_ops) <to_terminal_inferior>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
0343661d
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_terminal_init.
8783 * target.h (struct target_ops) <to_terminal_init>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
77cdffe9
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_can_accel_watchpoint_condition.
8791 * target.h (struct target_ops)
8792 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8793
d03655e4
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_region_ok_for_hw_watchpoint.
8799 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8800 Use TARGET_DEFAULT_FUNC.
8801
65f160a9
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_watchpoint_addr_within_range.
8807 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8808 Use TARGET_DEFAULT_FUNC.
8809
61dd109f
TT
88102014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_remove_watchpoint.
8815 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8816 TARGET_DEFAULT_NORETURN.
8817
016facd4
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target-delegates.c: Rebuild.
8821 * target.c (update_current_target): Don't inherit or default
8822 to_insert_watchpoint.
8823 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8824 TARGET_DEFAULT_RETURN.
8825
418dabac
TT
88262014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target-delegates.c: Rebuild.
8829 * target.c (update_current_target): Don't inherit or default
8830 to_remove_hw_breakpoint.
8831 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8832 TARGET_DEFAULT_RETURN.
8833
61b371f9
TT
88342014-02-19 Tom Tromey <tromey@redhat.com>
8835
8836 * target-delegates.c: Rebuild.
8837 * target.c (update_current_target): Don't inherit or default
8838 to_insert_hw_breakpoint.
8839 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8840 TARGET_DEFAULT_RETURN.
8841
52b51d06
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target-delegates.c: Rebuild.
8845 * target.c (update_current_target): Don't inherit or default
8846 to_can_use_hw_breakpoint.
8847 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8848 TARGET_DEFAULT_RETURN.
8849
f86e59b2
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8854 to_files_info.
8855 * target.h (struct target_ops) <to_files_info>: Use
8856 TARGET_DEFAULT_IGNORE.
8857
6c628163
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (update_current_target): Don't inherit or default
8862 to_store.
8863 * target.h (struct target_ops) <to_store>: Use
8864 TARGET_DEFAULT_NORETURN.
8865
bebd3233
TT
88662014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8870 to_post_attach.
8871 * target.h (struct target_ops) <to_post_attach>: Use
8872 TARGET_DEFAULT_IGNORE.
8873
a53f3625
TT
88742014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_rcmd.
8879 (default_rcmd): New function.
8880 (do_monitor_command): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_rmcd>: Use
8882 TARGET_DEFAULT_FUNC.
8883
e9a29200
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target-delegates.c: Rebuild.
8887 * target.c (init_dummy_target): Don't initialize to_attach.
8888 (target_attach): Unconditionally delegate.
8889 * target.h (struct target_ops) <to_attach>: Use
8890 TARGET_DEFAULT_FUNC.
8891
09da0d0a
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target-delegates.c: Rebuild.
8895 * target.c (target_detach): Unconditionally delegate.
8896 (init_dummy_target): Don't initialize to_detach.
8897 * target.h (struct target_ops) <to_detach>: Use
8898 TARGET_DEFAULT_IGNORE.
8899
5436ff03
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8903 Add argument.
8904 (target_augmented_libraries_svr4_read): Add argument.
8905 * target.c (update_current_target): Update.
8906 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8907 argument.
8908
f0d960ea
TT
89092014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target.h (struct target_ops) <to_call_history_range>: Add
8912 argument.
8913 * target.c (target_call_history_range): Add argument.
8914 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8915 argument.
8916 (record_btrace_call_history_from): Update.
8917
ec0aea04
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target.h (struct target_ops) <to_call_history_from>: Add
8921 argument.
8922 * target.c (target_call_history_from): Add argument.
8923 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8924 argument.
8925
5df2fcba
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target.h (struct target_ops) <to_call_history>: Add argument.
8929 * target.c (target_call_history): Add argument.
8930 * record-btrace.c (record_btrace_call_history): Add 'self'
8931 argument.
8932
4e99c6b7
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_insn_history_range>: Add
8936 argument.
8937 * target.c (target_insn_history_range): Add argument.
8938 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8939 argument.
8940 (record_btrace_insn_history_from): Update.
8941
9abc3ff3
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_insn_history_from>: Add
8945 argument.
8946 * target.c (target_insn_history_from): Add argument.
8947 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8948 argument.
8949
7a6c5609
TT
89502014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target.h (struct target_ops) <to_insn_history>: Add argument.
8953 * target.c (target_insn_history): Add argument.
8954 * record-btrace.c (record_btrace_insn_history): Add 'self'
8955 argument.
8956
606183ac
TT
89572014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target.h (struct target_ops) <to_goto_record>: Add argument.
8960 * target.c (target_goto_record): Add argument.
8961 * record-full.c (record_full_goto): Add 'self' argument.
8962 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8963
307a1b91
TT
89642014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8967 * target.c (target_goto_record_end): Add argument.
8968 * record-full.c (record_full_goto_end): Add 'self' argument.
8969 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8970
08475817
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_goto_record_begin>: Add
8974 argument.
8975 * target.c (target_goto_record_begin): Add argument.
8976 * record-full.c (record_full_goto_begin): Add 'self' argument.
8977 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8978 argument.
8979
1c63c994
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target.h (struct target_ops) <to_record_is_replaying>: Add
8983 argument.
8984 * target.c (target_record_is_replaying): Add argument.
8985 * record-full.c (record_full_is_replaying): Add 'self' argument.
8986 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8987 argument.
8988 (record_btrace_xfer_partial, record_btrace_store_registers)
8989 (record_btrace_prepare_to_store, record_btrace_resume)
8990 (record_btrace_wait, record_btrace_decr_pc_after_break)
8991 (record_btrace_find_new_threads, record_btrace_thread_alive):
8992 Update.
8993
d1b55219
TT
89942014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target.h (struct target_ops) <to_delete_record>: Add argument.
8997 * target.c (target_delete_record): Add argument.
8998 * record-full.c (record_full_delete): Add 'self' argument.
8999
1390f529
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_save_record>: Add argument.
9003 * target.c (target_save_record): Add argument.
9004 * record-full.c (record_full_save): Add 'self' argument.
9005 (record_full_save): Add 'self' argument.
9006
630d6a4a
TT
90072014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target.h (struct target_ops) <to_info_record>: Add argument.
9010 * target.c (target_info_record): Add argument.
9011 * record.c (info_record_command): Add argument.
9012 * record-full.c (record_full_info): Add 'self' argument.
9013 * record-btrace.c (record_btrace_info): Add 'self' argument.
9014
c6cd7c02
TT
90152014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9018 * target.c (target_stop_recording): Add argument.
9019 * record.c (record_stop): Add argument.
9020 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9021 argument.
9022
39c49f83
TT
90232014-02-19 Tom Tromey <tromey@redhat.com>
9024
9025 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9026 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9027 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9028 argument.
9029 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9030 (_initialize_amd64_linux_nat): Use it.
9031 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9032 (_initialize_i386_linux_nat): Use it.
9033
1777056d
TT
90342014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9037 * target.c (target_teardown_btrace): Add argument.
9038 * remote.c (remote_teardown_btrace): Add 'self' argument.
9039 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9040 argument.
9041 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9042 argument.
9043
25e95349
TT
90442014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9047 * target.c (target_disable_btrace): Add argument.
9048 * remote.c (remote_disable_btrace): Add 'self' argument.
9049 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9050 argument.
9051 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9052 argument.
9053
e3c49f88
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9057 * target.c (target_enable_btrace): Add argument.
9058 * remote.c (remote_enable_btrace): Add 'self' argument.
9059 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9060 argument.
9061 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9062 argument.
9063
fe38f897
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9067 (target_can_use_agent): Add argument.
9068 * target.c (update_current_target): Update.
9069 * remote.c (remote_can_use_agent): Add 'self' argument.
9070 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9071
2c152180
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target.h (struct target_ops) <to_use_agent>: Add argument.
9075 (target_use_agent): Add argument.
9076 * target.c (update_current_target): Update.
9077 * remote.c (remote_use_agent): Add 'self' argument.
9078 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9079
a893e81f
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9083 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9084 (target_traceframe_info): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_traceframe_info): Add 'self' argument.
9087 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9088
c686c57f
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (target_static_tracepoint_markers_by_strid): Add
9092 argument.
9093 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9094 'self' argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (struct target_ops)
9097 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9098 * linux-nat.c (struct target_ops)
9099 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9100
61fc905d
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9104 Add argument.
9105 (target_static_tracepoint_marker_at): Add argument.
9106 * target.c (update_current_target): Update.
9107 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9108 argument.
9109
c378d69d
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9113 (target_set_permissions): Add argument.
9114 * target.c (update_current_target): Update.
9115 * remote.c (remote_set_permissions): Add 'self' argument.
9116 (remote_start_remote): Update.
9117
bd7ae0f5
TT
91182014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9121 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9122 (target_get_tib_address): Add argument.
9123 * target.c (update_current_target): Update.
9124 * remote.c (remote_get_tib_address): Add 'self' argument.
9125
d9e68a2c
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9129 (target_set_trace_notes): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_set_trace_notes): Add 'self' argument.
9132
4da384be
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9136 argument.
9137 (target_set_trace_buffer_size): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9140
736d5b1f
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9144 argument.
9145 (target_set_circular_trace_buffer): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9148 argument.
9149
37b25738
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9153 argument.
9154 (target_set_disconnected_tracing): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9157
0e67620a
TT
91582014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target.h (struct target_ops)
9161 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9162 (target_get_min_fast_tracepoint_insn_len): Add argument.
9163 * target.c (update_current_target): Update.
9164 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9165 argument.
9166
88ee6f45
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9170 argument.
9171 (target_get_raw_trace_data): Add argument.
9172 * target.c (update_current_target): Update.
9173 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9174
181e3713
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9178 Add argument.
9179 (target_upload_trace_state_variables): Add argument.
9180 * target.c (update_current_target): Update.
9181 * remote.c (remote_upload_trace_state_variables): Add 'self'
9182 argument.
9183 (remote_start_remote): Update.
9184
ab6617cc
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9188 argument.
9189 (target_upload_tracepoints): Add argument.
9190 * target.c (update_current_target): Update.
9191 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9192 (remote_start_remote): Update.
9193
dc3decaf
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9197 (target_save_trace_data): Add argument.
9198 * target.c (update_current_target): Update.
9199 * remote.c (remote_save_trace_data): Add 'self' argument.
9200
4011015b
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9204 argument.
9205 * target.h (struct target_ops)
9206 <to_get_trace_state_variable_value>: Add argument.
9207 (target_get_trace_state_variable_value): Add argument.
9208 * target.c (update_current_target): Update.
9209 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9210 argument.
9211 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9212
bd4c6793
TT
92132014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9216 * target.h (struct target_ops) <to_trace_find>: Add argument.
9217 (target_trace_find): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_trace_find): Add 'self' argument.
9220 * ctf.c (ctf_trace_find): Add 'self' argument.
9221
74499f1b
TT
92222014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9225 (target_trace_stop): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_trace_stop): Add 'self' argument.
9228
db90e85c
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9232 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9233 argument.
9234 (target_get_tracepoint_status): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9237
8bd200f1
TT
92382014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9241 * target.h (struct target_ops) <to_get_trace_status>: Add
9242 argument.
9243 (target_get_trace_status): Add argument.
9244 * target.c (update_current_target): Update.
9245 * remote.c (remote_get_trace_status): Add 'self' argument.
9246 (remote_start_remote, remote_can_download_tracepoint): Update.
9247 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9248
e2d1aae3
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target.h (struct target_ops) <to_trace_start>: Add argument.
9252 (target_trace_start): Add argument.
9253 * target.c (update_current_target): Update.
9254 * remote.c (remote_trace_start): Add 'self' argument.
9255
583f9a86
TT
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9259 Add argument.
9260 (target_trace_set_readonly_regions): Add argument.
9261 * target.c (update_current_target): Update.
9262 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9263 argument.
9264
780b049c
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9268 argument.
9269 (target_disable_tracepoint): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9272
46670d57
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9276 argument.
9277 (target_enable_tracepoint): Add argument.
9278 * target.c (update_current_target): Update.
9279 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9280
559d2b81
TT
92812014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * target.h (struct target_ops) <to_download_trace_state_variable>:
9284 Add argument.
9285 (target_download_trace_state_variable): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_download_trace_state_variable): Add 'self'
9288 argument.
9289
a52a8357
TT
92902014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9293 argument.
9294 (target_can_download_tracepoint): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9297
548f7808
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target.h (struct target_ops) <to_download_tracepoint>: Add
9301 argument.
9302 (target_download_tracepoint): Add argument.
9303 * target.c (update_current_target): Update.
9304 * remote.c (remote_download_tracepoint): Add 'self' argument.
9305
ecae04e1
TT
93062014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_trace_init>: Add argument.
9309 (target_trace_init): Add argument.
9310 * target.c (update_current_target): Update.
9311 * remote.c (remote_trace_init): Add 'self' argument.
9312
fab5aa7c
TT
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9316 * target.c (target_fileio_readlink): Add argument.
9317 * remote.c (remote_hostio_readlink): Add 'self' argument.
9318 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9319
dbbca37d
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9323 * target.c (target_fileio_unlink): Add argument.
9324 * remote.c (remote_hostio_unlink): Add 'self' argument.
9325 (remote_file_delete): Update.
9326 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9327
df39ea25
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9331 * target.c (target_fileio_close): Add argument.
9332 * remote.c (remote_hostio_close): Add 'self' argument.
9333 (remote_hostio_close_cleanup): Update.
9334 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9335 Update.
9336 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9337
a3be983c
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9341 * target.c (target_fileio_pread): Add argument.
9342 * remote.c (remote_hostio_pread): Add 'self' argument.
9343 (remote_bfd_iovec_pread, remote_file_get): Update.
9344 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9345
0d866f62
TT
93462014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9349 * target.c (target_fileio_pwrite): Add argument.
9350 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9351 (remote_file_put): Update.
9352 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9353
cd897586
TT
93542014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9357 * target.c (target_fileio_open): Add argument.
9358 * remote.c (remote_hostio_open): Add 'self' argument.
9359 (remote_bfd_iovec_open): Add 'self' argument.
9360 (remote_file_put): Add 'self' argument.
9361 (remote_file_get): Add 'self' argument.
9362 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9363
78eff0ec
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9367 Add argument.
9368 (target_can_run_breakpoint_commands): Add argument.
9369 * target.c (update_current_target): Update.
9370 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9371 argument.
9372 (remote_insert_breakpoint): Add 'self' argument.
9373 (remote_insert_hw_breakpoint): Add 'self' argument.
9374 (remote_can_run_breakpoint_commands): Add 'self' argument.
9375
efcc2da7
TT
93762014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target.h (struct target_ops)
9379 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9380 (target_supports_evaluation_of_breakpoint_conditions): Add
9381 argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9384 argument.
9385 (remote_insert_breakpoint): Add 'self' argument.
9386 (remote_insert_hw_breakpoint): Add 'self' argument.
9387 (remote_supports_cond_breakpoints): Add 'self' argument.
9388
6de37a3a
TT
93892014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9392 argument.
9393 (target_supports_string_tracing): Add argument.
9394 * target.c (update_current_target): Update.
9395 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9396
2bfc0540
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target.h (struct target_ops)
9400 <to_supports_disable_randomization>: Add argument.
9401 * target.c (find_default_supports_disable_randomization): Add
9402 argument.
9403 (target_supports_disable_randomization): Add argument.
9404 (find_default_supports_disable_randomization): Add 'self'
9405 argument.
9406 * remote.c (extended_remote_supports_disable_randomization): Add
9407 'self' argument.
9408 (remote_supports_disable_randomization): Add 'self' argument.
9409 (extended_remote_create_inferior): Update.
9410 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9411 'self' argument.
9412
7d178d6a
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops)
9416 <to_supports_enable_disable_tracepoint>: Add argument.
9417 (target_supports_enable_disable_tracepoint): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9420 argument.
9421
86ce2668
TT
94222014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target.h (struct target_ops) <to_supports_multi_process>: Add
9425 argument.
9426 (target_supports_multi_process): Add argument.
9427 * target.c (update_current_target): Update.
9428 * remote.c (remote_supports_multi_process): Add 'self' argument.
9429 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9430 argument.
9431 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9432 argument.
9433
4c612759
TT
94342014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops) <to_execution_direction>: Add
9437 argument.
9438 (target_execution_direction): Add argument.
9439 * target.c (default_execution_direction): Add 'self' argument.
9440 * record-full.c (record_full_execution_direction): Add 'self'
9441 argument.
9442
19db3e69
TT
94432014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9446 argument.
9447 (target_can_execute_reverse): Add argument.
9448 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9449 * record-full.c (record_full_can_execute_reverse): Add 'self'
9450 argument.
9451 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9452 argument.
9453
1e6b91a4
TT
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9457 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9458 argument.
9459 (target_get_ada_task_ptid): Add argument.
9460 * target.c (update_current_target): Update.
9461 (default_get_ada_task_ptid): Add 'self' argument.
9462 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9463 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9464 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9465 argument.
9466 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9467 argument.
9468 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9469 argument.
9470 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9471 argument.
9472 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9473 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9474 argument.
9475
3c80fb48
TT
94762014-02-19 Tom Tromey <tromey@redhat.com>
9477
9478 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9479 (target_goto_bookmark): Add argument.
9480 * target.c (dummy_goto_bookmark): Add 'self' argument.
9481 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9482
dd0e2830
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9486 (target_get_bookmark): Add argument.
9487 * target.c (dummy_get_bookmark): Add 'self' argument.
9488 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9489
fc6691b2
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9493 argument.
9494 (target_make_corefile_notes): Add argument.
9495 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9496 * procfs.c (procfs_make_note_section): Add 'self' argument.
9497 (procfs_make_note_section): Add 'self' argument.
9498 (procfs_make_note_section): Add 'self' argument.
9499 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9500 argument.
9501 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9502 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9503 * exec.c (exec_make_note_section): Add 'self' argument.
9504 (exec_make_note_section): Add 'self' argument.
9505
2e73927c
TT
95062014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target.h (struct target_ops) <to_find_memory_regions>: Add
9509 argument.
9510 (target_find_memory_regions): Add argument.
9511 * target.c (dummy_find_memory_regions): Add 'self' argument.
9512 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9513 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9514 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9515 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9516 * exec. (exec_do_find_memory_regions): New global.
9517 (exec_set_find_memory_regions): Rewrite.
9518 (exec_find_memory_regions): New function.
9519 (init_exec_ops): Use exec_find_memory_regions.
9520
2a9a2795
TT
95212014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (struct target_ops) <to_supports_non_stop>: Add
9524 argument.
9525 * target.c (find_default_supports_non_stop): Add argument.
9526 (target_supports_non_stop): Add argument.
9527 (find_default_supports_non_stop): Add 'self' argument.
9528 * remote.c (remote_supports_non_stop): Add 'self' argument.
9529 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9530
4ab76ea3
TT
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target.h (struct target_ops) <to_log_command>: Add argument.
9534 (target_log_command): Add argument.
9535 * serial.h (serial_log_command): Add 'self' argument.
9536 * serial.c (serial_log_command): Add 'self' argument.
9537
8dd27370
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9541 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9542 argument.
9543 (target_pid_to_exec_file): Add argument.
9544 * target.c (debug_to_pid_to_exec_file): Add argument.
9545 (update_current_target): Update.
9546 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9547 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9548 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9549 (linux_handle_extended_wait): Update.
9550 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9551 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9552 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9553 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9554
1aac633b
TT
95552014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target.h (struct target_ops) <to_rcmd>: Add argument.
9558 (target_rcmd): Add argument.
9559 * target.c (debug_to_rcmd): Add argument.
9560 (update_current_target, do_monitor_command): Update.
9561 * remote.c (remote_rcmd): Add 'self' argument.
9562 * monitor.c (monitor_rcmd): Add 'self' argument.
9563
1eab8a48
TT
95642014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * windows-nat.c (windows_stop): Add 'self' argument.
9567 * target.h (struct target_ops) <to_stop>: Add argument.
9568 * target.c (target_stop): Add argument.
9569 (debug_to_stop): Add argument.
9570 (update_current_target): Update.
9571 * remote.c (remote_stop): Add 'self' argument.
9572 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9573 (gdbsim_cntrl_c): Update.
9574 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9575 * procfs.c (procfs_stop): Add 'self' argument.
9576 * nto-procfs.c (procfs_stop): Add 'self' argument.
9577 * monitor.c (monitor_stop): Add 'self' argument.
9578 (monitor_open): Update.
9579 * linux-nat.c (linux_nat_stop): Add argument.
9580 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9581 * gnu-nat.c (gnu_stop): Add 'self' argument.
9582 * darwin-nat.c (darwin_stop): Add 'self' argument.
9583
503a628d
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target.h (struct target_ops) <to_thread_name>: Add argument.
9587 * target.c (target_thread_name): Add argument.
9588 (update_current_target): Update.
9589 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9590
c15906d8
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target.h (struct target_ops) <to_extra_thread_info>: Add
9594 argument.
9595 (target_extra_thread_info): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_threads_extra_info): Add 'self' argument.
9598 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9599 argument.
9600 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9601 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9602 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9603 argument.
9604 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9605 argument.
9606 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9607 argument.
9608 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9609 argument.
9610
daf5e9b6
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.h (struct target_ops) <to_program_signals>: Add argument.
9614 * target.c (target_program_signals): Add argument.
9615 * remote.c (remote_program_signals): Add 'self' argument.
9616
94bedb42
TT
96172014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9620 * target.c (target_pass_signals): Add argument.
9621 * remote.c (remote_pass_signals): Add 'self' argument.
9622 (remote_start_remote): Update.
9623 * procfs.c (procfs_pass_signals): Add 'self' argument.
9624 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9625 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9626 (linux_nat_create_inferior, linux_nat_attach): Update.
9627
da82bd6b
TT
96282014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * windows-nat.c (windows_can_run): Add 'self' argument.
9631 * target.h (struct target_ops) <to_can_run>: Add argument.
9632 (target_can_run): Add argument.
9633 * target.c (debug_to_can_run): Add argument.
9634 (update_current_target): Update.
9635 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9636 * inf-child.c (inf_child_can_run): Add 'self' argument.
9637 * go32-nat.c (go32_can_run): Add 'self' argument.
9638
d796e1d6
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.h (struct target_ops) <to_has_exited>: Add argument.
9642 (target_has_exited): Add argument.
9643 * target.c (debug_to_has_exited): Add argument.
9644 (update_current_target): Update.
9645
ff214e67
TT
96462014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9649 argument.
9650 (target_set_syscall_catchpoint): Add argument.
9651 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9652 argument.
9653 * target.c (update_current_target): Update.
9654
758e29d2
TT
96552014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9658 argument.
9659 (target_remove_exec_catchpoint): Add argument.
9660 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9661 (update_current_target): Update.
9662 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9663 argument.
9664
ba025e51
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9668 argument.
9669 (target_insert_exec_catchpoint): Add argument.
9670 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9671 (update_current_target): Update.
9672 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9673 argument.
9674
e98cf0cd
TT
96752014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9678 argument.
9679 (target_remove_vfork_catchpoint): Add argument.
9680 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9681 (update_current_target): Update.
9682 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9683 argument.
9684
3ecc7da0
TT
96852014-02-19 Tom Tromey <tromey@redhat.com>
9686
9687 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9688 argument.
9689 (target_insert_vfork_catchpoint): Add argument.
9690 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9691 (update_current_target): Update.
9692 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9693 argument.
9694
973fc227
TT
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9698 argument.
9699 (target_remove_fork_catchpoint): Add argument.
9700 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9701 (update_current_target): Update.
9702 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9703 argument.
9704
a863b201
TT
97052014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9708 argument.
9709 (target_insert_fork_catchpoint): Add argument.
9710 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9711 (update_current_target): Update.
9712 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9713 argument.
9714
2e97a79e
TT
97152014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9718 argument.
9719 (target_post_startup_inferior): Add argument.
9720 * target.c (debug_to_post_startup_inferior): Add argument.
9721 (update_current_target): Update.
9722 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9723 argument.
9724 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9725 argument.
9726 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9727 argument.
9728 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9729 argument.
9730 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9731 'self' argument.
9732 (super_post_startup_inferior): Likewise.
9733 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9734 'self' argument.
9735 (super_post_startup_inferior): Likewise.
9736 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9737 Add 'self' argument.
9738 (super_post_startup_inferior): Likewise.
9739
71a9f134
TT
97402014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * target.h (struct target_ops) <to_load>: Add argument.
9743 * target.c (target_load): Add argument.
9744 (debug_to_load): Add argument.
9745 (update_current_target): Update.
9746 * remote.c (remote_load): Add 'self' argument.
9747 * remote-sim.c (gdbsim_load): Add 'self' argument.
9748 * remote-mips.c (mips_load): Add 'self' argument.
9749 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9750 * monitor.c (monitor_load): Add 'self' argument.
9751 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9752
0a4f40a2
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9756 (target_terminal_info): Add argument.
9757 * target.c (debug_to_terminal_info): Add argument.
9758 (default_terminal_info): Likewise.
9759 * inflow.c (child_terminal_info): Add 'self' argument.
9760 * inferior.h (child_terminal_info): Add 'self' argument.
9761 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9762
ae3bd431
TT
97632014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9766 argument.
9767 (target_terminal_save_ours): Add argument.
9768 * target.c (debug_to_terminal_save_ours): Add argument.
9769 (update_current_target): Update.
9770 * inflow.c (terminal_save_ours): Add 'self' argument.
9771 * inferior.h (terminal_save_ours): Add 'self' argument.
9772
e3594fd1
TT
97732014-02-19 Tom Tromey <tromey@redhat.com>
9774
9775 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9776 (target_terminal_ours): Add argument.
9777 * target.c (debug_to_terminal_ours): Add argument.
9778 (update_current_target): Update.
9779 * remote.c (remote_terminal_ours): Add 'self' argument.
9780 (remote_close): Update.
9781 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9782 * inflow.c (terminal_ours): Add 'self' argument.
9783 * inferior.h (terminal_ours): Add 'self' argument.
9784 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9785
2e1e1a19
TT
97862014-02-19 Pedro Alves <palves@redhat.com>
9787 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9790 argument.
9791 (target_terminal_ours_for_output): Add argument.
9792 * target.c (debug_to_terminal_ours_for_output): Add argument.
9793 (update_current_target): Update.
9794 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9795 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9796 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9797
d2f640d4
TT
97982014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target.h (struct target_ops) <to_terminal_inferior>: Add
9801 argument.
9802 * target.c (target_terminal_inferior): Add argument.
9803 (update_current_target): Update.
9804 * remote.c (remote_terminal_inferior): Add 'self' argument.
9805 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9806 * inflow.c (terminal_inferior): Add 'self' argument.
9807 * inferior.h (terminal_inferior): Add 'self' argument.
9808 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9809 (go32_terminal_inferior): Add 'self' argument.
9810
c42bf286
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9814 (target_terminal_init): Add argument.
9815 * target.c (debug_to_terminal_init): Add argument.
9816 (update_current_target): Update.
9817 * inflow.c (terminal_init_inferior): Add 'self' argument.
9818 * inferior.h (terminal_init_inferior): Add 'self' argument.
9819 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9820 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9821
c3a5ff89
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops)
9825 <to_can_accel_watchpoint_condition>: Add argument.
9826 (target_can_accel_watchpoint_condition): Add argument.
9827 * target.c (debug_to_can_accel_watchpoint_condition): Add
9828 argument.
9829 (update_current_target): Update.
9830 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9831 'self' argument.
9832
31568a15
TT
98332014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9836 Add argument.
9837 (target_region_ok_for_hw_watchpoint): Add argument.
9838 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9839 (default_region_ok_for_hw_watchpoint): Add argument.
9840 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9841 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9842 argument.
9843 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9844 argument.
9845 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9846 argument.
9847 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9848 'self' argument.
9849 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9850 'self' argument.
9851 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9852 'self' argument.
9853 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9854 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9855 'self' argument.
9856 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9857 Add 'self' argument.
9858
7bb99c53
TT
98592014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9862 argument.
9863 (target_insert_watchpoint): Add argument.
9864 * target.c (debug_to_insert_watchpoint): Add argument.
9865 (update_current_target): Update.
9866 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9867 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9868 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9869 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9870 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9871 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9872 argument.
9873 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9874 (procfs_insert_hw_watchpoint): Add 'self' argument.
9875 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9876 argument.
9877 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9878 argument.
9879 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9880 argument.
9881 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9882 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9883 argument.
9884 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9885 'self' argument.
9886
11b5219a
TT
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9890 argument.
9891 (target_remove_watchpoint): Add argument.
9892 * target.c (debug_to_remove_watchpoint): Add argument.
9893 (update_current_target): Update.
9894 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9895 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9896 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9897 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9898 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9899 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9900 argument.
9901 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9902 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9903 argument.
9904 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9905 argument.
9906 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9907 argument.
9908 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9909 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9910 argument.
9911 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9912 'self' argument.
9913
a64dc96c
TT
99142014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9917 argument.
9918 (target_remove_hw_breakpoint): Add argument.
9919 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9920 (update_current_target): Update.
9921 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9922 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9923 argument.
9924 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9925 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9926 argument.
9927 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9928 'self' argument.
9929
23a26771
TT
99302014-02-19 Tom Tromey <tromey@redhat.com>
9931
9932 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9933 argument.
9934 (target_insert_hw_breakpoint): Add argument.
9935 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9936 (update_current_target): Update.
9937 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9938 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9939 argument.
9940 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9941 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9942 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9943 argument.
9944 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9945 'self' argument.
9946
5461485a
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9950 argument.
9951 (target_can_use_hardware_watchpoint): Add argument.
9952 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9953 (update_current_target): Update.
9954 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9955 argument.
9956 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9957 argument.
9958 * remote.c (remote_check_watch_resources): Add 'self' argument.
9959 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9960 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9961 argument.
9962 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9963 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9964 argument.
9965 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9966 argument.
9967 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9968 argument.
9969 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9970 argument.
9971 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9972 argument.
9973 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9974 argument.
9975 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9976 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9977 argument.
9978 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9979 'self' argument.
9980
f045800c
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target.h (struct target_ops) <to_post_attach>: Add argument.
9984 (target_post_attach): Add argument.
9985 * target.c (debug_to_post_attach): Add argument.
9986 (update_current_target): Update.
9987 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9988 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9989 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9990 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9991 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9992
de90e03d
TT
99932014-02-19 Tom Tromey <tromey@redhat.com>
9994
9995 * windows-nat.c (windows_close): Add 'self' argument.
9996 * tracepoint.c (tfile_close): Add 'self' argument.
9997 * target.h (struct target_ops) <to_close>: Add argument.
9998 * target.c (target_close): Add argument.
9999 (update_current_target): Update.
10000 * remote.c (remote_close): Add 'self' argument.
10001 * remote-sim.c (gdbsim_close): Add 'self' argument.
10002 * remote-mips.c (mips_close): Add 'self' argument.
10003 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10004 * record-full.c (record_full_close): Add 'self' argument.
10005 * record-btrace.c (record_btrace_close): Add 'self' argument.
10006 * monitor.h (monitor_close): Add 'self' argument.
10007 * monitor.c (monitor_close): Add 'self' argument.
10008 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10009 * linux-nat.c (linux_nat_close): Add argument.
10010 * go32-nat.c (go32_close): Add 'self' argument.
10011 * exec.c (exec_close_1): Add 'self' argument.
10012 * ctf.c (ctf_close): Add 'self' argument.
10013 * corelow.c (core_close): Add 'self' argument.
10014 (core_close_cleanup): Update.
10015 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10016 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10017
9dd130a0
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * remote.c (remote_load): New function.
10021 (init_remote_ops): Use it.
10022
46917d26
TT
100232014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10026 argument.
10027 * common/linux-btrace.h (linux_supports_btrace): Update.
10028 * remote.c (remote_supports_btrace): Add "self" argument.
10029 * target-delegates.c: Rebuild.
10030 * target.c (target_supports_btrace): Remove.
10031 * target.h (struct target_ops) <to_supports_btrace>: Add
10032 target_ops argument.
10033 (target_supports_btrace): New define.
10034
6b84065d
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * record-full.c (record_full_beneath_to_resume_ops)
10038 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10039 (record_full_beneath_to_wait)
10040 (record_full_beneath_to_store_registers_ops)
10041 (record_full_beneath_to_store_registers)
10042 (record_full_beneath_to_xfer_partial_ops)
10043 (record_full_beneath_to_xfer_partial)
10044 (record_full_beneath_to_insert_breakpoint_ops)
10045 (record_full_beneath_to_insert_breakpoint)
10046 (record_full_beneath_to_remove_breakpoint_ops)
10047 (record_full_beneath_to_remove_breakpoint)
10048 (record_full_beneath_to_stopped_by_watchpoint)
10049 (record_full_beneath_to_stopped_data_address)
10050 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10051 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10052 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10053 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10054 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10055 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10056 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10057 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10058 (record_full_resume, record_full_wait_1)
10059 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10060 (record_full_store_registers, record_full_xfer_partial)
10061 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10062 (record_full_async, record_full_core_xfer_partial): Use target
10063 delegation.
10064 * target-delegates.c: Rebuild.
10065 * target.c (current_xfer_partial): Remove.
10066 (update_current_target): Do not INHERIT or de_fault
10067 to_insert_breakpoint, to_remove_breakpoint,
10068 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10069 to_is_async_p, to_async. Do not set to_xfer_partial field.
10070 (default_xfer_partial): Simplify.
10071 (current_xfer_partial): Remove.
10072 (target_wait, target_resume): Simplify.
10073 (find_default_can_async_p, find_default_is_async_p): Update.
10074 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10075 to_xfer_partial, to_stopped_by_watchpoint,
10076 to_stopped_data_address.
10077 (target_store_registers): Simplify.
10078 (forward_target_remove_breakpoint)
10079 (forward_target_insert_breakpoint): Remove.
10080 (target_remove_breakpoint, target_insert_breakpoint)
10081 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10082 * target.h (struct target_ops) <to_resume, to_wait,
10083 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10084 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10085 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10086 markup.
10087 (forward_target_remove_breakpoint)
10088 (forward_target_insert_breakpoint): Remove.
10089 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10090 directly.
10091 (record_btrace_insert_breakpoint): Delegate directly.
10092
1101cb7b
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 PR build/7701:
10096 * target-delegates.c: New file.
10097 * target.c: Include target-delegates.c.
10098 (init_dummy_target): Call install_dummy_methods.
10099 (complete_target_initialization): Call install_delegators.
10100 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10101 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10102 * make-target-delegates: New file.
10103
8b06beed
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * record.c (find_record_target): Use find_target_at.
10107 * target.c (find_target_at): New function.
10108 * target.h (find_target_at): Declare.
10109
6a109b6b
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10113 Add 'ops' argument.
10114 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10115 'ops' argument.
10116 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10117 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10118 'ops' argument.
10119 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10120 argument.
10121 * linux-nat.c (save_sigtrap): Update.
10122 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10123 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10124 (linux_nat_close): Update.
10125 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10126 argument.
10127 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10128 argument.
10129 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10130 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10131 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10132 (tmp_to_async): Add 'ops' argument.
10133 (record_full_stopped_by_watchpoint, record_full_async)
10134 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10135 argument.
10136 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10137 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10138 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10139 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10140 (remote_is_async_p, remote_async): Add 'ops' argument.
10141 (remote_stopped_data_address): Update.
10142 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10143 * target.c (update_current_target)
10144 (find_default_can_async_p, find_default_is_async_p): Update.
10145 (init_dummy_target): Update.
10146 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10147 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10148 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10149 (target_can_async_p, target_is_async_p, target_async)
10150 (target_stopped_by_watchpoint): Update.
10151
e095146b
YQ
101522014-02-19 Yao Qi <yao@codesourcery.com>
10153
10154 PR gdb/16220
10155 * gdbarch.sh: Remove startup_gdbarch.
10156 * gdbarch.c: Regenerated.
10157 * gdbarch.h: Likewise.
10158
bc3c6b36
KB
101592014-02-17 Kevin Buettner <kevinb@redhat.com>
10160
10161 * rl78-tdep.c (rl78_g10_register_name): New function.
10162 (rl78_return_value): Add g10 support.
10163 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10164 g10.
10165
98dc0167 101662014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10167
10168 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10169 (SUBDIR_GUILE_SRCS): Ditto.
10170 (scm-gsmob.o): Ditto.
10171
842c05cd
YQ
101722014-02-17 Yao Qi <yao@codesourcery.com>
10173
10174 * gnu-nat.c (ILL_RPC): Declare defined function.
10175
25c0bd04
YQ
101762014-02-17 Yao Qi <yao@codesourcery.com>
10177
10178 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10179 mach_msg_type_number_t.
10180 (gnu_write_inferior): Likewise.
10181
a9a758e3
YQ
101822014-02-17 Yao Qi <yao@codesourcery.com>
10183
10184 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10185 in format string.
10186 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10187 (inf_validate_procs, inf_signal): Likewise.
10188 (S_exception_raise_request): Likewise.
10189 (do_mach_notify_dead_name): Likewise.
10190 (steal_exc_port): Likewise.
10191 (gnu_read_inferior): Change 'copy_count''s type to
10192 mach_msg_type_number_t.
10193 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10194 format string.
10195
bae8023e
TS
101962014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10197
c82f56d9
TS
10198 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10199 flag. Adjust all users; in particular...
10200 (gnu_wait): ..., don't decrement its value in here...
10201 (gnu_create_inferior): ..., and instead set the flag in here,
10202 around the startup_inferior call, and call that one with
10203 START_INFERIOR_TRAPS_EXPECTED.
10204
3398af6a
TS
10205 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10206 (ILL_RPC): ... new macro.
10207 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10208 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10209 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10210 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10211 functions with ILL_RPC macro.
10212 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10213 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10214 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10215 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10216 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10217 (S_proc_getlogin_reply, S_proc_getsid_reply)
10218 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10219 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10220 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10221 (S_proc_getnports_reply, S_proc_is_important_reply)
10222 (S_proc_get_code_reply): New stub functions, generated with
10223 ILL_RPC macro.
10224
d47642c9
TS
10225 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10226 collected the type check structures.
10227
bae8023e
TS
10228 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10229
8a55ffb0
DE
102302014-02-14 Doug Evans <dje@google.com>
10231
10232 * target.c (target_write_partial): Fix result type.
10233
c2853f3d
JM
102342014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10235
10236 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10237 the proper offsets to access fpregset_t.
10238
ac61d2db
SA
102392014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10240
10241 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10242 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10243 * h8300-tdep.c (setmachinelist): Remove global.
10244 * hppa-tdep.c (hppa_sigtramp): Remove global.
10245 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10246 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10247 * ravenscar-thread.c (update_target_observer): Remove global.
10248 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10249
9d2d0b8b
TT
102502014-02-12 Tom Tromey <tromey@redhat.com>
10251
10252 * common/rsp-low.c: Update comments.
10253 * common/rsp-low.h: Update comments.
10254
a7191e8b
TT
102552014-02-12 Tom Tromey <tromey@redhat.com>
10256
10257 * common/rsp-low.c (convert_ascii_to_int): Remove.
10258 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10259
ff0e980e
TT
102602014-02-12 Tom Tromey <tromey@redhat.com>
10261
10262 * common/rsp-low.h (unhexify): Don't declare.
10263 * common/rsp-low.c (unhexify): Remove.
10264
e9371aff
TT
102652014-02-12 Tom Tromey <tromey@redhat.com>
10266
10267 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10268 * common/rsp-low.c (convert_int_to_ascii): Remove.
10269
971dc0b8
TT
102702014-02-12 Tom Tromey <tromey@redhat.com>
10271
10272 * common/rsp-low.h (hexify): Don't declare.
10273 * common/rsp-low.c (hexify): Remove.
10274
0a822afb
TT
102752014-02-12 Tom Tromey <tromey@redhat.com>
10276
10277 * common/rsp-low.c (hexify): Never take strlen of argument.
10278
9f1b45b0
TT
102792014-02-12 Tom Tromey <tromey@redhat.com>
10280
10281 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10282 * remote.c (extended_remote_run, remote_rcmd)
10283 (remote_download_trace_state_variable, remote_save_trace_data)
10284 (remote_set_trace_notes): Update.
10285 * tracepoint.c (encode_source_string, tfile_write_status)
10286 (tfile_write_uploaded_tsv): Update.
10287
9c3d6531
TT
102882014-02-12 Tom Tromey <tromey@redhat.com>
10289
10290 * tracepoint.c: Include rsp-low.h.
10291 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10292 * remote.c: Include rsp-low.h.
10293 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10294 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10295 (remote_unescape_input): Move to common/rsp-low.c.
10296 * common/rsp-low.h: New file.
10297 * common/rsp-low.c: New file.
10298 * Makefile.in (SFILES): Add common/rsp-low.c.
10299 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10300 (COMMON_OBS): Add rsp-low.o.
10301 (rsp-low.o): New target.
10302
01fd3ea5
TT
103032014-02-12 Tom Tromey <tromey@redhat.com>
10304
10305 * utils.h: Include print-utils.h.
10306 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10307 (int_string, core_addr_to_string, core_addr_to_string_nz)
10308 (hex_string, hex_string_custom): Don't declare.
10309 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10310 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10311 (hex_string_custom, int_string, core_addr_to_string)
10312 (core_addr_to_string_nz, host_address_to_string): Move to
10313 common/print-utils.c.
10314 * common/print-utils.h: New file.
10315 * common/print-utils.c: New file
10316 * Makefile.in (SFILES): Add common/print-utils.c.
10317 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10318 (COMMON_OBS): Add print-utils.o.
10319 (print-utils.o): New target.
10320
9fb50108
TT
103212014-02-12 Tom Tromey <tromey@redhat.com>
10322
10323 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10324
0548b5db
MK
103252014-02-12 Mark Kettenis <kettenis@gnu.org>
10326
10327 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10328
493443a4
MK
103292014-02-12 Mark Kettenis <kettenis@gnu.org>
10330
10331 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10332 if a PT_IO ptrace request returns sucessfully but indicates that 0
10333 bytes were transferred.
10334
706d0883
PA
103352014-02-12 Pedro Alves <palves@redhat.com>
10336 Kevin Buettner <kevinb@redhat.com>
10337
10338 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10339 TYPE_INSTANCE_FLAG_CODE_SPACE.
10340
5caa2f0b
PA
103412014-02-12 Pedro Alves <palves@redhat.com>
10342
10343 * h8300-tdep.c (pseudo_from_raw_register)
10344 (raw_from_pseudo_register): New functions.
10345 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10346 them.
10347
76fd5f74
PA
103482014-02-12 Pedro Alves <palves@redhat.com>
10349
10350 * h8300-tdep.c (h8300_register_sim_regno): New function.
10351 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10352 gdbarch_register_sim_regno hook.
10353
8f008406
SA
103542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10355
10356 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10357
195abc10
SA
103582014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10359
10360 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10361
93ffa5b9
MK
103622014-02-12 Mark Kettenis <kettenis@gnu.org>
10363
10364 * obsd-tdep.h (obsd_init_abi): New prototype.
10365 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10366 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10367 (obsd_init_abi): New functions.
10368 * i386obsd-tdep.c: Include "obsd-tdep.h".
10369 (i386obsd_init_abi): Call obsd_init_abi.
10370 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10371 (amd64obsd_init_abi): Call obsd_init_abi.
10372 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10373 obsd-tdep.c to gdb_target_obs.
10374
49caec94
JM
103752014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10376
10377 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10378 double float arguments to 16-byte in the argument slots.
10379
e1402065
DE
103802014-02-11 Doug Evans <xdje42@gmail.com>
10381
10382 * configure.ac: Don't crash if pkg-config is not found and guile
10383 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10384 in guile checks.
10385 * configure: Regenerate.
10386
edcc890f
YQ
103872014-02-11 Yao Qi <yao@codesourcery.com>
10388
10389 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10390 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10391 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10392 * gnu-nat.c (gnu_xfer_memory): Likewise.
10393 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10394 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10395 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10396 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10397
9b409511
YQ
103982014-02-11 Yao Qi <yao@codesourcery.com>
10399
10400 * target.h (enum target_xfer_error): Rename to ...
10401 (enum target_xfer_status): ... it. New. All users updated.
10402 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10403 New.
10404 (TARGET_XFER_STATUS_ERROR_P): New macro.
10405 (target_xfer_error_to_string): Remove declaration.
10406 (target_xfer_status_to_string): Declare.
10407 (target_xfer_partial_ftype): Adjust it.
10408 (struct target_ops) <to_xfer_partial>: Return
10409 target_xfer_status. Add argument xfered_len. Update
10410 comments.
10411 * target.c (target_xfer_error_to_string): Rename to ...
10412 (target_xfer_status_to_string): ... it. New. All callers
10413 updated.
10414 (target_read_live_memory): Likewise. Call target_xfer_partial
10415 instead of target_read.
10416 (memory_xfer_live_readonly_partial): Return
10417 target_xfer_status. Add argument xfered_len.
10418 (raw_memory_xfer_partial): Likewise.
10419 (memory_xfer_partial_1): Likewise.
10420 (memory_xfer_partial): Likewise.
10421 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10422 properly. Update debug message.
10423 (default_xfer_partial, current_xfer_partial): Likewise.
10424 (target_write_partial): Likewise.
10425 (target_read_partial): Likewise. All callers updated.
10426 (read_whatever_is_readable): Likewise.
10427 (target_write_with_progress): Likewise.
10428 (target_read_alloc_1): Likewise.
10429
10430 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10431 * auxv.c (procfs_xfer_auxv): Likewise.
10432 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10433 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10434 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10435 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10436 * corefile.c (read_memory): Adjust.
10437 * corelow.c (core_xfer_partial): Likewise.
10438 * ctf.c (ctf_xfer_partial): Likewise.
10439 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10440 updated.
10441 (darwin_xfer_partial): Likewise.
10442 * exec.c (section_table_xfer_memory_partial): Likewise. All
10443 callers updated.
10444 (exec_xfer_partial): Likewise.
10445 * exec.h (section_table_xfer_memory_partial): Update
10446 declaration.
10447 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10448 negative.
10449 (gnu_xfer_partial): Likewise.
10450 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10451 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10452 (ia64_hpux_xfer_solib_got): Likewise.
10453 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10454 type of 'partial_len' to ULONGEST.
10455 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10456 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10457 (linux_nat_xfer_partial): Likewise.
10458 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10459 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10460 * monitor.c (monitor_xfer_memory): Likewise.
10461 (monitor_xfer_partial): Likewise.
10462 * procfs.c (procfs_xfer_partial): Likewise.
10463 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10464 * record-full.c (record_full_xfer_partial): Likewise.
10465 (record_full_core_xfer_partial): Likewise.
10466 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10467 (gdbsim_xfer_partial): Likewise.
10468 * remote.c (remote_write_bytes_aux): Likewise. All callers
10469 updated.
10470 (remote_write_bytes, remote_read_bytes): Likewise. All
10471 callers updated.
10472 (remote_flash_erase): Likewise. All callers updated.
10473 (remote_write_qxfer): Likewise. All callers updated.
10474 (remote_read_qxfer): Likewise. All callers updated.
10475 (remote_xfer_partial): Likewise.
10476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10477 (rs6000_xfer_shared_libraries): Likewise.
10478 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10479 (sol_thread_xfer_partial): Likewise.
10480 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10481 (sparc_xfer_partial): Likewise.
10482 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10483 updated.
10484 (spu_xfer_partial): Likewise.
10485 * spu-multiarch.c (spu_xfer_partial): Likewise.
10486 * tracepoint.c (tfile_xfer_partial): Likewise.
10487 * windows-nat.c (windows_xfer_memory): Likewise.
10488 (windows_xfer_shared_libraries): Likewise.
10489 (windows_xfer_partial): Likewise.
10490 * valprint.c: Replace 'target_xfer_error' with
10491 'target_xfer_status' in comments.
10492
a8e63083
JB
104932014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10494
10495 Checked in by Joel Brobecker <brobecker@adacore.com>.
10496 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10497
e86b67d3
JB
104982014-02-11 Joel Brobecker <brobecker@adacore.com>
10499
10500 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10501 function parameters.
10502
4b7d1f7f
WN
105032014-02-10 Will Newton <will.newton@linaro.org>
10504
10505 * elfread.c (elf_rel_plt_read): Look for a .got section if
10506 looking up .got.plt fails.
10507 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10508 on address passed to elf_gnu_ifunc_record_cache.
10509 (elf_gnu_ifunc_resolve_addr): Likewise.
10510 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10511
961842b2
JM
105122014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10513
10514 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10515 (X_RETTURN): New macro.
10516 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10517
10518 * sparc64-tdep.c (sparc64_init_abi): Hook
10519 sparc_in_function_epilogue_p.
10520
3f03e7b1
GB
105212014-02-10 Gary Benson <gbenson@redhat.com>
10522
10523 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10524 Rename name_matcher to symbol_matcher.
10525
96f861ef
GB
105262014-02-10 Gary Benson <gbenson@redhat.com>
10527
10528 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10529 Use expand_symtabs_file_matcher_ftype and
10530 expand_symtabs_symbol_matcher_ftype.
10531
ee01b665
JB
105322014-02-10 Joel Brobecker <brobecker@adacore.com>
10533
10534 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10535 (struct ada_symbol_cache): New.
10536 (ada_free_symbol_cache): Forward declare.
10537 (struct ada_pspace_data): New.
10538 (ada_pspace_data_handle): New static global.
10539 (get_ada_pspace_data, ada_pspace_data_cleanup)
10540 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10541 (cache_space, cache): Delete, now folded inside struct
10542 ada_pspace_data.
10543 (ada_get_symbol_cache): New function.
10544 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10545 implementation.
10546 (_initialize_ada_language): Remove initialization of cache_space.
10547 Move call to observer_attach_inferior_exit up, grouping it
10548 with the other observer registrations inside this function.
10549 Rename command to be more general. Add call to
10550 register_program_space_data_with_cleanup.
10551
143adbbf
JB
105522014-02-10 Joel Brobecker <brobecker@adacore.com>
10553
10554 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10555 ada_new_objfile_observer.
10556 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10557 (_initialize_tasks): Update uses of ada_new_objfile_observer
10558 and ada_tasks_normal_stop_observer.
10559
aa4fb036
JB
105602014-02-10 Joel Brobecker <brobecker@adacore.com>
10561
10562 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10563 returned by the 'Length attribute to integer.
10564
9dee8cc6
JB
105652014-02-10 Joel Brobecker <brobecker@adacore.com>
10566
10567 * ada-lang.c (_initialize_ada_language): Initialize
10568 cache_space obstack.
10569
3d9434b5
JB
105702014-02-10 Joel Brobecker <brobecker@adacore.com>
10571
10572 * ada-lang.c (HASH_SIZE): New macro.
10573 (struct cache_entry): New type.
10574 (cache_space, cache): New static globals.
10575 (ada_clear_symbol_cache, find_entry): New functions.
10576 (lookup_cached_symbol, cache_symbol): Implement.
10577 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10578 (_initialize_ada_language): Attach ada_new_objfile_observer
10579 and ada_free_objfile_observer.
10580
f0c5f9b2
JB
105812014-02-10 Joel Brobecker <brobecker@adacore.com>
10582
10583 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10584 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10585 struct block * parameter.
10586 (ada_lookup_symbol_list_worker): Constify local variable "block".
10587 Remove cast which is no longer necessary.
10588
ed3ef339
DE
105892014-02-10 Doug Evans <xdje42@gmail.com>
10590
10591 Add Guile as an extension language.
10592 * NEWS: Mention Guile scripting.
10593 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10594 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10595 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10596 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10597 (CLIBS): Add GUILE_LIBS.
10598 (install-guile): New rule.
10599 (guile.o): New rule.
10600 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10601 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10602 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10603 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10604 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10605 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10606 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10607 * configure.ac: New option --with-guile.
10608 * configure: Regenerate.
10609 * config.in: Regenerate.
10610 * auto-load.c: Remove #include "python/python.h". Add #include
10611 "gdb/section-scripts.h".
10612 (source_section_scripts): Handle Guile scripts.
10613 (_initialize_auto_load): Add name of Guile objfile script to
10614 scripts-directory help text.
10615 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10616 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10617 (struct breakpoint): New member scm_bp_object.
10618 * defs.h (enum command_control_type): New value guile_control.
10619 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10620 "extension.h".
10621 (show_user): Update comment.
10622 (_initialize_cli_cmds): Update help text for "show user". Update help
10623 text for max-user-call-depth.
10624 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10625 "extension.h".
10626 (multi_line_command_p): Add guile_control.
10627 (print_command_lines): Handle guile_control.
10628 (execute_control_command, recurse_read_control_structure): Ditto.
10629 (process_next_line): Recognize "guile" commands.
10630 * disasm.c (gdb_disassemble_info): Make non-static.
10631 * disasm.h: #include "dis-asm.h".
10632 (struct gdbarch): Add forward decl.
10633 (gdb_disassemble_info): Declare.
10634 * extension.c: #include "guile/guile.h".
10635 (extension_languages): Add guile.
10636 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10637 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10638 * gdbtypes.c (get_unsigned_type_max): New function.
10639 (get_signed_type_minmax): New function.
10640 * gdbtypes.h (get_unsigned_type_max): Declare.
10641 (get_signed_type_minmax): Declare.
10642 * guile/README: New file.
10643 * guile/guile-internal.h: New file.
10644 * guile/guile.c: New file.
10645 * guile/guile.h: New file.
10646 * guile/scm-arch.c: New file.
10647 * guile/scm-auto-load.c: New file.
10648 * guile/scm-block.c: New file.
10649 * guile/scm-breakpoint.c: New file.
10650 * guile/scm-disasm.c: New file.
10651 * guile/scm-exception.c: New file.
10652 * guile/scm-frame.c: New file.
10653 * guile/scm-gsmob.c: New file.
10654 * guile/scm-iterator.c: New file.
10655 * guile/scm-lazy-string.c: New file.
10656 * guile/scm-math.c: New file.
10657 * guile/scm-objfile.c: New file.
10658 * guile/scm-ports.c: New file.
10659 * guile/scm-pretty-print.c: New file.
10660 * guile/scm-safe-call.c: New file.
10661 * guile/scm-string.c: New file.
10662 * guile/scm-symbol.c: New file.
10663 * guile/scm-symtab.c: New file.
10664 * guile/scm-type.c: New file.
10665 * guile/scm-utils.c: New file.
10666 * guile/scm-value.c: New file.
10667 * guile/lib/gdb.scm: New file.
10668 * guile/lib/gdb/boot.scm: New file.
10669 * guile/lib/gdb/experimental.scm: New file.
10670 * guile/lib/gdb/init.scm: New file.
10671 * guile/lib/gdb/iterator.scm: New file.
10672 * guile/lib/gdb/printing.scm: New file.
10673 * guile/lib/gdb/types.scm: New file.
10674 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10675 (VPATH): Add $(GUILE_SRCDIR).
10676 (GUILE_DIR): New variable.
10677 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10678 (all): Add stamp-guile dependency.
10679 (stamp-guile): New rule.
10680 (clean-guile, install-guile, uninstall-guile): New rules.
10681 (install-only): Add install-guile dependency.
10682 (uninstall): Add uninstall-guile dependency.
10683 (clean): Add clean-guile dependency.
10684
ac020ec5
DE
106852014-02-09 Doug Evans <xdje42@gmail.com>
10686
10687 Revert this patch (which I approved, mea culpa).
10688
10689 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10690
10691 * Makefile.in (all-lib): Remove.
10692 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10693
2a081c59
JK
106942014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10695
10696 Fix Python stack corruption.
10697 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10698 gdb_py_longest.
10699
0a6bd22d
MK
107002014-02-08 Mark Kettenis <kettenis@gnu.org>
10701
10702 * Makefile.in (all-lib): Remove.
10703 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10704
1a860409
DE
107052014-02-07 Doug Evans <dje@google.com>
10706
10707 * extension-priv.h (extension_language_script_ops): Add comment.
10708 (extension_language_ops): Add comment.
caf5a491 10709 (active_ext_lang_state): Fix typo in comment.
1a860409 10710
d137e6dc
PA
107112014-02-07 Pedro Alves <palves@redhat.com>
10712
0dcb32c3 10713 PR breakpoints/16292
d137e6dc
PA
10714 * infrun.c (handle_signal_stop) <signal arrives while stepping
10715 over a breakpoint>: Switch back to the stepping thread.
10716
ce6d0892
YQ
107172014-02-07 Yao Qi <yao@codesourcery.com>
10718
10719 * target.c (target_xfer_partial): Return zero if LEN is zero.
10720
2ed4b548
YQ
107212014-02-07 Yao Qi <yao@codesourcery.com>
10722
10723 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10724 (ld_so_xfer_auxv): Likewise.
10725 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10726 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10727 * corelow.c (core_xfer_partial): Likewise.
10728 * ctf.c (ctf_xfer_partial): Likewise.
10729 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10730 (darwin_xfer_partial): Likewise.
10731 * exec.c (exec_xfer_partial): Likewise.
10732 * gnu-nat.c (gnu_xfer_partial): Likewise.
10733 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10734 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10735 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10736 * linux-nat.c (linux_xfer_siginfo): Likewise.
10737 (linux_proc_xfer_spu): Likewise.
10738 * procfs.c (procfs_xfer_partial): Likewise.
10739 * record-full.c (record_full_xfer_partial): Likewise.
10740 (record_full_core_xfer_partial): Likewise.
10741 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10742 * remote.c (remote_write_qxfer): Likewise.
10743 (remote_write_qxfer, remote_read_qxfer): Likewise.
10744 (remote_xfer_partial): Likewise.
10745 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10746 (rs6000_xfer_shared_libraries): Likewise.
10747 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10748 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10749 (spu_xfer_partial): Likewise.
10750 * target.c (memory_xfer_partial_1): Likewise.
10751 * tracepoint.c (tfile_xfer_partial): Likewise.
10752 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10753 (windows_xfer_partial): Likewise.
10754
c09f20e4
YQ
107552014-02-07 Yao Qi <yao@codesourcery.com>
10756
10757 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10758 comments.
10759 (core_xfer_shared_libraries_aix): Likewise.
10760 * gdbarch.c, gdbarch.h: Regenerated.
10761 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10762 ULONGEST. Change 'len_avail' type to ULONGEST.
10763 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10764 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10765 declaration.
10766 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10767
8635b3bf
YQ
107682014-02-07 Yao Qi <yao@codesourcery.com>
10769
10770 * corefile.c (memory_error): Get 'exception' from ERR and pass
10771 'exception' to throw_error.
10772
6dddc817
DE
107732014-02-06 Doug Evans <xdje42@gmail.com>
10774
10775 * configure.ac (libpython checking): Remove all but python.o from
10776 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10777 * configure: Regenerate.
10778
10779 * Makefile.in (SFILES): Add extension.c.
10780 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10781 (COMMON_OBS): Add extension.o.
10782 * extension.h: New file.
10783 * extension-priv.h: New file.
10784 * extension.c: New file.
10785
10786 * python/python-internal.h: #include "extension.h".
10787 (gdbpy_auto_load_enabled): Declare.
10788 (gdbpy_apply_val_pretty_printer): Declare.
10789 (gdbpy_apply_frame_filter): Declare.
10790 (gdbpy_preserve_values): Declare.
10791 (gdbpy_breakpoint_cond_says_stop): Declare.
10792 (gdbpy_breakpoint_has_cond): Declare.
10793 (void source_python_script_for_objfile): Delete.
10794 * python/python.c: #include "extension-priv.h".
10795 Delete inclusion of "observer.h".
10796 (extension_language_python): Moved here and renamed from
10797 script_language_python in py-auto-load.c.
10798 Redefined to be of type extension_language_defn.
10799 (python_extension_script_ops): New global.
10800 (python_extension_ops): New global.
10801 (struct python_env): New member previous_active.
10802 (restore_python_env): Call restore_active_ext_lang.
10803 (ensure_python_env): Call set_active_ext_lang.
10804 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10805 New arg extlang.
10806 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10807 New arg extlang.
10808 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10809 New arg extlang.
10810 (gdbpy_eval_from_control_command): Renamed from
10811 eval_python_from_control_command, made static. New arg extlang.
10812 (gdbpy_source_script) Renamed from source_python_script, made static.
10813 New arg extlang.
10814 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10815 result to int. New arg extlang.
10816 (gdbpy_source_objfile_script): Renamed from
10817 source_python_script_for_objfile, made static. New arg extlang.
10818 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10819 static. New args extlang, extlang_printers. Change result type to
10820 "void".
10821 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10822 static. New arg extlang. Rename arg printers to extlang_printers
10823 and change type to ext_lang_type_printers *.
10824 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10825 static. Replace argument arg with extlang, extlang_printers.
10826 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10827 (!HAVE_PYTHON, source_python_script): Delete.
10828 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10829 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10830 (!HAVE_PYTHON, start_type_printers): Delete.
10831 (!HAVE_PYTHON, apply_type_printers): Delete.
10832 (!HAVE_PYTHON, free_type_printers): Delete.
10833 (_initialize_python): Delete call to observer_attach_before_prompt.
10834 (finalize_python): Set/restore active extension language.
10835 (gdbpy_finish_initialization) Renamed from
10836 finish_python_initialization, made static. New arg extlang.
10837 (gdbpy_initialized): New function.
10838 * python/python.h: #include "extension.h". Delete #include
10839 "value.h", "mi/mi-cmds.h".
10840 (extension_language_python): Declare.
10841 (GDBPY_AUTO_FILE_NAME): Delete.
10842 (enum py_bt_status): Moved to extension.h and renamed to
10843 ext_lang_bt_status.
10844 (enum frame_filter_flags): Moved to extension.h.
10845 (enum py_frame_args): Moved to extension.h and renamed to
10846 ext_lang_frame_args.
10847 (finish_python_initialization): Delete.
10848 (eval_python_from_control_command): Delete.
10849 (source_python_script): Delete.
10850 (apply_val_pretty_printer): Delete.
10851 (apply_frame_filter): Delete.
10852 (preserve_python_values): Delete.
10853 (gdbpy_script_language_defn): Delete.
10854 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10855 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10856
10857 * auto-load.c: #include "extension.h".
10858 (GDB_AUTO_FILE_NAME): Delete.
10859 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10860 (script_language_gdb): Delete, moved to extension.c and renamed to
10861 extension_language_gdb.
10862 (source_gdb_script_for_objfile): Delete.
10863 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10864 (loaded_script): Change type of language member to
10865 struct extension_language_defn *.
10866 (init_loaded_scripts_info): Initialize
10867 unsupported_script_warning_printed.
10868 (maybe_add_script): Make static. Change type of language arg to
10869 struct extension_language_defn *.
10870 (clear_section_scripts): Reset unsupported_script_warning_printed.
10871 (auto_load_objfile_script_1): Rewrite to use extension language API.
10872 (auto_load_objfile_script): Make public. Remove support-compiled-in
10873 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10874 (source_section_scripts): Rewrite to use extension language API.
10875 (load_auto_scripts_for_objfile): Rewrite to use
10876 auto_load_scripts_for_objfile.
10877 (collect_matching_scripts_data): Change type of language member to
10878 struct extension_language_defn *.
10879 (auto_load_info_scripts): Change type of language arg to
10880 struct extension_language_defn *.
10881 (unsupported_script_warning_print): New function.
10882 (script_not_found_warning_print): Make static.
10883 (_initialize_auto_load): Rewrite construction of scripts-directory
10884 help.
10885 * auto-load.h (struct objfile): Add forward decl.
10886 (struct script_language): Delete.
10887 (struct auto_load_pspace_info): Add forward decl.
10888 (struct extension_language_defn): Add forward decl.
10889 (maybe_add_script): Delete.
10890 (auto_load_objfile_script): Declare.
10891 (script_not_found_warning_print): Delete.
10892 (auto_load_info_scripts): Update prototype.
10893 (auto_load_gdb_scripts_enabled): Declare.
10894 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10895 auto_load_python_scripts_enabled and made public.
10896 (script_language_python): Delete, moved to python.c.
10897 (gdbpy_script_language_defn): Delete.
10898 (info_auto_load_python_scripts): Update to use
10899 extension_language_python.
10900
10901 * breakpoint.c (condition_command): Replace call to
10902 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10903 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10904 with call to breakpoint_ext_lang_cond_says_stop.
10905 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10906 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10907 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10908 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10909 New arg slang.
10910 (local_setattro): Print name of extension language with existing
10911 stop condition.
10912
10913 * valprint.c (val_print, value_print): Update to call
10914 apply_ext_lang_val_pretty_printer.
10915 * cp-valprint.c (cp_print_value): Update call to
10916 apply_ext_lang_val_pretty_printer.
10917 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10918 (gdbpy_apply_val_pretty_printer): Renamed from
10919 apply_val_pretty_printer. New arg extlang.
10920 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10921
10922 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10923 extension language API.
10924 * cli/cli-script.c (execute_control_command): Update to call
10925 eval_ext_lang_from_control_command.
10926
10927 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10928 enum ext_lang_bt_status values. Update call to
10929 apply_ext_lang_frame_filter.
10930 (mi_cmd_stack_list_locals): Ditto.
10931 (mi_cmd_stack_list_args): Ditto.
10932 (mi_cmd_stack_list_variables): Ditto.
10933 * mi/mi-main.c: Delete #include "python/python-internal.h".
10934 Add #include "extension.h".
10935 (mi_cmd_list_features): Replace reference to python internal variable
10936 gdb_python_initialized with call to ext_lang_initialized_p.
10937
10938 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10939 Update to use enum ext_lang_frame_args. Update to call
10940 apply_ext_lang_frame_filter.
10941 * python/py-framefilter.c (extract_sym): Update to use enum
10942 ext_lang_bt_status.
10943 (extract_value, py_print_type, py_print_value): Ditto.
10944 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10945 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10946 (py_print_frame): Ditto.
10947 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10948 New arg extlang. Update to use enum ext_lang_bt_status.
10949
10950 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10951 finish_python_initialization. Replace with call to
10952 finish_ext_lang_initialization.
10953
10954 * typeprint.c (do_free_global_table): Update to call
10955 free_ext_lang_type_printers.
10956 (create_global_typedef_table): Update to call
10957 start_ext_lang_type_printers.
10958 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10959 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10960 (type_print_options): Change type of global_printers from "void *"
10961 to "struct ext_lang_type_printers *".
10962
10963 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10964 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10965 (gdbpy_preserve_values): Renamed from preserve_python_values.
10966 New arg extlang.
10967 (!HAVE_PYTHON, preserve_python_values): Delete.
10968
10969 * utils.c (quit_flag): Delete, moved to extension.c.
10970 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10971 extension.c.
10972
10973 * eval.c: Delete #include "python/python.h".
10974 * main.c: Delete #include "python/python.h".
10975
10976 * defs.h: Update comment.
10977
6af79985
JB
109782014-02-06 Joel Brobecker <brobecker@adacore.com>
10979
10980 GDB 7.7 released.
10981
12c5175d
MK
109822014-02-05 Mark Kettenis <kettenis@gnu.org>
10983
10984 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10985 defined.
10986
8dc5b319
YQ
109872014-02-05 Yao Qi <yao@codesourcery.com>
10988
10989 * remote.c (remote_pass_signals): Remove local 'buf' and use
10990 rs->buf.
10991 (remote_program_signals): Likewise.
10992
de7b2893
YQ
109932014-02-05 Yao Qi <yao@codesourcery.com>
10994
10995 * ctf.c: Include "inferior.h" and "gdbthread.h".
10996 (CTF_PID): A new macro.
10997 (ctf_open): Call inferior_appeared and add_thread_silent.
10998 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10999 (ctf_thread_alive): New function.
11000 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11001
66d032ac
YQ
110022014-02-05 Yao Qi <yao@codesourcery.com>
11003
11004 Revert this patch:
11005
11006 2013-05-24 Yao Qi <yao@codesourcery.com>
11007
11008 * tracepoint.c (TFILE_PID): Remove.
11009 (tfile_open): Don't add thread and inferior.
11010 (tfile_close): Don't set 'inferior_ptid'. Don't call
11011 exit_inferior_silent.
11012 (tfile_thread_alive): Remove.
11013 (init_tfile_ops): Don't set field 'to_thread_alive' of
11014 tfile_ops.
11015
f4ccffad
CE
110162014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11017
11018 * remote.c (remote_start_remote): Call remote_check_symbols even
11019 if only symbol-file (not file) has been given.
11020
591a12a1
UW
110212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11022
11023 * gdbarch.sh (skip_entrypoint): New callback.
11024 * gdbarch.c, gdbarch.h: Regenerate.
11025 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11026 * infrun.c (fill_in_stop_func): Likewise.
11027 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11028 (ppc_elfv2_elf_make_msymbol_special): New function.
11029 (ppc_elfv2_skip_entrypoint): Likewise.
11030 (ppc_linux_init_abi): Install them for ELFv2.
11031
cc0e89c5
UW
110322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11033
11034 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11035 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11036 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11037 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11038 structures returned in GPRs.
11039
52f548e4
UW
110402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11041
11042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11043 offset to the stack parameter list for the ELFv2 ABI.
11044
d4094b6a
UW
110452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11046
11047 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11048 set_gdbarch_convert_from_func_ptr_addr and
11049 set_gdbarch_elf_make_msymbol_special for ELFv1.
11050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11051 function descriptors on ELFv1.
11052 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11053 set up r12 at function entry.
11054
cd453cd0
UW
110552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11056
11057 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11058 (struct gdbarch_tdep): New member elf_abi.
11059
11060 * rs6000-tdep.c: Include "elf/ppc64.h".
11061 (rs6000_gdbarch_init): Detect ELF ABI version.
11062
0ff3e01f
UW
110632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11064
11065 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11066 within a register pair holding a DFP 128-bit value on little-endian.
11067 (ppc64_sysv_abi_return_value_base): Likewise.
11068 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11069 (dfp_pseudo_register_write): Likewise.
11070
5b757e5d
UW
110712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11072
11073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11074 offset on little-endian when passing _Decimal32.
11075 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11076
084ee545
UW
110772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11078
11079 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11080 of the overlapped FP register within the VSX register on little-
11081 endian platforms.
11082 (efpr_pseudo_register_write): Likewise.
11083
d63167af
UW
110842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11085
11086 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11087 offset on little-endian when passing small structures.
11088
e765b44c
UW
110892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11090
11091 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11092 (struct ppc64_sysv_argpos): New data structure.
11093 (ppc64_sysv_abi_push_float): Remove.
11094 (ppc64_sysv_abi_push_val): New function.
11095 (ppc64_sysv_abi_push_integer): Likewise.
11096 (ppc64_sysv_abi_push_freg): Likewise.
11097 (ppc64_sysv_abi_push_vreg): Likewise.
11098 (ppc64_sysv_abi_push_param): Likewise.
11099 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11100 (ppc64_sysv_abi_return_value_base): New function.
11101 (ppc64_sysv_abi_return_value): Refactor to use it.
11102
36c24d95
UW
111032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11104
11105 * NEWS: Document new target powerpc64le-*-linux*.
11106
26fd9228
MK
111072014-02-04 Mark Kettenis <kettenis@gnu.org>
11108
11109 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11110 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11111 core dumps.
11112 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11113 register set used in ELF core dumps. Add floating-point register set.
11114
c5bb7362
KB
111152014-02-03 Kevin Buettner <kevinb@redhat.com>
11116
74228e77 11117 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11118 dwarf2_to_gdb[] table using symbolic constants. Adjust
11119 penultimate entry from number representing the PC register
11120 to symbolic constant representing the MDR register. Add
11121 constant for the PC register to the end of the table.
11122
af09351e
MK
111232014-02-03 Mark Kettenis <kettenis@gnu.org>
11124
11125 * bsd-kvm.c: Include <sys/param.h>
11126
8507e05d
MK
111272014-02-03 Mark Kettenis <kettenis@gnu.org>
11128
11129 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11130
ae56bfb8
JB
111312014-01-31 Joel Brobecker <brobecker@adacore.com>
11132
11133 * ada-lang.h (clear_ada_sym_cache): Delete.
11134
718ee4dc
UW
111352014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11136
11137 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11138
401e27fd
JM
111392014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11140
11141 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11142 the sigreturn register save area only if the syscall is
11143 sigreturn.
11144
a7c88acd
JB
111452014-01-29 Joel Brobecker <brobecker@adacore.com>
11146
11147 * valops.c (value_slice): Minor reformatting.
11148
fa0079ea
UW
111492014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11150
11151 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11152
c6044dd1
JB
111532014-01-28 Joel Brobecker <brobecker@adacore.com>
11154
11155 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11156 New static globals.
11157 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11158 (ada_ignore_descriptive_types_p): New static global.
11159 (find_parallel_type_by_descriptive_type): Return immediately
11160 if ada_ignore_descriptive_types_p is set.
11161 (_initialize_ada_language): Register new commands "maintenance
11162 set ada", "maintenance show ada", "maintenance set ada
11163 ignore-descriptive-types" and "maintenance show ada
11164 ignore-descriptive-types".
11165 * NEWS: Add entry for new "maint ada set/show
11166 ignore-descriptive-types" commands.
11167
568e808b
MM
111682014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11169
11170 * record-btrace.c (record_btrace_close): Call btrace_teardown
11171 for all threads.
11172
467d141b
JB
111732014-01-27 Joel Brobecker <brobecker@adacore.com>
11174
11175 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11176 "ui-out.h".
11177
fb151210
JB
111782014-01-27 Joel Brobecker <brobecker@adacore.com>
11179
11180 * ada-typeprint (type_is_full_subrange_of_target_type):
11181 New function.
11182 (print_range): Add parameter bounds_prefered_p. If not set,
11183 try printing range types using the name of their base type.
11184 (print_range_type): Add parameter bounds_prefered_p.
11185 Use it in call to print_range.
11186 (print_array_type, ada_print_type): Update calls to print_range
11187 and print_range_type.
11188
aba02109
JB
111892014-01-27 Joel Brobecker <brobecker@adacore.com>
11190
11191 * ada-typeprint.c (print_array_type, print_choices, print_range)
11192 (print_range_bound, print_dynamic_range_bound, print_range_type):
11193 Remove declaration.
11194
e62e21fd
JB
111952014-01-27 Joel Brobecker <brobecker@adacore.com>
11196
11197 * ada-typeprint.c (print_range): Add missing empty line
11198 after local declaration.
11199
859cf5d1
JB
112002014-01-27 Joel Brobecker <brobecker@adacore.com>
11201
11202 * ada-valprint.c (print_optional_low_bound): Get index_type's
11203 target type for as long as it is a TYPE_CODE_RANGE.
11204
25790f6f
JB
112052014-01-27 Joel Brobecker <brobecker@adacore.com>
11206
11207 * procfs.c (procfs_make_note_section): Remove assertion and
11208 associated comment.
11209
6b6aa828
YQ
112102014-01-24 Yao Qi <yao@codesourcery.com>
11211
11212 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11213 * corelow.c (get_core_siginfo): Likewise.
11214
5d6df423
YQ
112152014-01-24 Yao Qi <yao@codesourcery.com>
11216
11217 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11218 ULONGEST. Don't check 'len' is negative.
11219 (remote_write_bytes): Change type of 'len' to ULONGEST.
11220
83b645b8
TT
112212014-01-23 Tom Tromey <tromey@redhat.com>
11222
11223 PR python/16485:
11224 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11225 Handle exception from frame.block.
11226 (FrameVars.fetch_frame_locals): Likewise.
11227
0740f8d8
TT
112282014-01-23 Tom Tromey <tromey@redhat.com>
11229
11230 PR python/16487:
11231 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11232 on a NULL pointer. Move "goto error" to correct place.
11233
21909fa1
TT
112342014-01-23 Tom Tromey <tromey@redhat.com>
11235
11236 PR python/16491:
11237 * python/py-framefilter.c (apply_frame_filter): Call
11238 ensure_python_env after computing gdbarch.
11239
17fde6d0
YQ
112402014-01-23 Yao Qi <yao@codesourcery.com>
11241
11242 * target.c (raw_memory_xfer_partial): Change argument type
11243 from void * to gdb_byte *.
11244 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11245
87ce2a04
DE
112462014-01-22 Doug Evans <dje@google.com>
11247
11248 New gdbserver option --debug-format=timestamp.
11249 * NEWS: Mention it.
11250
237b092b
AA
112512014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11252
11253 * syscalls/s390x-linux.xml: New file.
11254 * syscalls/s390-linux.xml: New file.
11255 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11256 (XML_SYSCALL_FILENAME_S390X): Likewise.
11257 (op_svc): New enum value for SVC opcode.
11258 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11259 (s390_linux_get_syscall_number): New function.
11260 (s390_gdbarch_init): Register '*get_syscall_number' and the
11261 syscall xml file name.
11262 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11263 "s390-linux.xml" and "s390x-linux.xml".
11264 * NEWS: Announce new feature.
11265
54bff650
BS
112662014-01-22 Baruch Siach <baruch@tkos.co.il>
11267
11268 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11269
14e361d7
PA
112702014-01-22 Pedro Alves <palves@redhat.com>
11271
11272 * xtensa-config.c: Include defs.h.
11273
46bbb3ed
JB
112742014-01-22 Joel Brobecker <brobecker@adacore.com>
11275
11276 * common/common-utils.h: Add "ARI:" comment beside __func__
11277 reference.
11278
3a80edfc
JB
112792014-01-22 Joel Brobecker <brobecker@adacore.com>
11280
11281 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11282 documentation a bit.
11283
4869db5e
RM
112842014-01-21 Roland McGrath <mcgrathr@google.com>
11285
11286 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11287 * configure: Regenerate.
11288 * aclocal.m4: Regenerate.
11289 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11290 New substituted variables.
11291 (install-strip): New target.
11292 (INSTALL_SCRIPT): New substituted variable.
11293 (FLAGS_TO_PASS): Add it.
11294 (install-only): Use $(INSTALL_SCRIPT) rather than
11295 $(INSTALL_PROGRAM) for gcore.
11296
9ea4267d
TT
112972014-01-20 Tom Tromey <tromey@redhat.com>
11298
11299 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11300 together.
11301
1f2bdf09
TT
113022014-01-20 Tom Tromey <tromey@redhat.com>
11303
11304 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11305 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11306 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11307 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11308 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11309 (struct cmd_list_element) <flags>: Remove.
11310 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11311 doc_allocated>: New fields.
11312 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11313 bitfields.
11314 * maint.c (maintenance_do_deprecate): Update.
11315 * top.c (execute_command): Update.
11316
e671835b
BS
113172014-01-20 Baruch Siach <baruch@tkos.co.il>
11318
11319 * xtensa-linux-nat.c: Include asm/ptrace.h.
11320
50367cd2
IB
113212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11322
11323 * Makefile.in (SFILES): Add d-support.c.
11324 (COMMON_OBS): Add d-support.o.
11325 * d-lang.h (d_parse_symbol): Add comment, now defined in
11326 d-support.c.
11327 * d-lang.c (parse_call_convention)
11328 (parse_attributes, parse_function_types)
11329 (parse_function_args, parse_type, parse_identifier)
11330 (call_convention_p, d_parse_symbol): Move functions to ...
11331 * d-support.c: ... New file.
11332
ec9f644a
IB
113332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11334
11335 * d-lang.h (d_parse_symbol): Add declaration.
11336 * d-lang.c (extract_identifiers)
11337 (extract_type_info): Remove functions.
11338 (parse_call_convention, parse_attributes)
11339 (parse_function_types, parse_function_args)
11340 (parse_type, parse_identifier, call_convention_p)
11341 (d_parse_symbol): New functions.
11342 (d_demangle): Use d_parse_symbol to demangle D symbols.
11343
94b1b47e
IB
113442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11345
11346 * d-lang.h (struct builtin_d_type): New data type.
11347 (builtin_d_type): Add declaration.
11348 * d-lang.c (d_language_arch_info, build_d_types)
11349 (builtin_d_type): New functions.
11350 (enum d_primitive_types): New data type.
11351 (d_language_defn): Change c_language_arch_info to
11352 d_language_arch_info.
11353 (d_type_data): New static variable.
11354 (_initialize_d_language): Initialize d_type_data.
11355
63778547
IB
113562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11357
11358 * d-lang.h (d_main_name): Add declaration.
11359 * d-lang.c (d_main_name): New function.
11360 * symtab.c (find_main_name): Add call to d_main_name.
11361
3271ba66
IB
113622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11363
11364 * d-lang.c (d_language_defn): Change macro_expansion_c to
11365 macro_expansion_no.
11366
d36b3012
IB
113672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11368
11369 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11370
c90a6fb7
SDJ
113712014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11372
11373 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11374 gdb_exception" declaration.
11375 * remote.c (getpkt_or_notif_sane): Likewise.
11376
749234e5
DE
113772014-01-17 Doug Evans <dje@google.com>
11378
11379 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11380 function, contents of dirnames_to_char_ptr_vec_append moved here.
11381 (delim_string_to_char_ptr_vec): New function.
11382 (dirnames_to_char_ptr_vec_append): Rewrite.
11383 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11384
df049a58
DE
113852014-01-17 Doug Evans <dje@google.com>
11386
11387 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11388 and moved here ...
11389 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11390 #include "common-utils.h".
11391 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11392 * common/vec.h (VEC_ASSERT_PASS): Update.
11393 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11394 (MACH_CHECK_ERROR): Update.
11395
69f97648
SM
113962014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11397
11398 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11399 comments.
11400 * gdbarch.h: Regenerate.
11401
98b1cfdc
TT
114022014-01-16 Tom Tromey <tromey@redhat.com>
11403
11404 * value.c (struct value) <regnum>: Move earlier.
11405
77a19445
TT
114062014-01-16 Tom Tromey <tromey@redhat.com>
11407
11408 * remote.c (extended_remote_create_inferior): Rename from
11409 extended_remote_create_inferior_1. Add "ops" argument. Remove
11410 old implementation.
11411
62261490
PA
114122014-01-16 Pedro Alves <palves@redhat.com>
11413
11414 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11415 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11416 the backchain.
11417
4d65956b
DE
114182014-01-16 Doug Evans <dje@google.com>
11419
11420 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11421
52834460
MM
114222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11423
11424 * btrace.h (btrace_thread_flag): New.
11425 (struct btrace_thread_info) <flags>: New.
11426 * record-btrace.c (record_btrace_resume_thread)
11427 (record_btrace_find_thread_to_move, btrace_step_no_history)
11428 (btrace_step_stopped, record_btrace_start_replaying)
11429 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11430 (record_btrace_find_resume_thread): New.
11431 (record_btrace_resume, record_btrace_wait): Extend.
11432 (record_btrace_can_execute_reverse): New.
11433 (record_btrace_open): Fail in non-stop mode.
11434 (record_btrace_set_replay): Split into this, ...
11435 (record_btrace_stop_replaying): ... this, ...
11436 (record_btrace_clear_histories): ... and this.
11437 (init_record_btrace_ops): Init to_can_execute_reverse.
11438 * NEWS: Announce it.
11439
118e6252
MM
114402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11441
11442 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11443 (forward_target_decr_pc_after_break)
11444 (target_decr_pc_after_break): New.
11445 * target.c (forward_target_decr_pc_after_break)
11446 (target_decr_pc_after_break): New.
11447 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11448 instead of gdbarch_decr_pc_after_break.
11449 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11450 instead of gdbarch_decr_pc_after_break.
11451 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11452 instead of gdbarch_decr_pc_after_break.
11453 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11454 instead of gdbarch_decr_pc_after_break.
11455 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11456 instead of gdbarch_decr_pc_after_break.
11457 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11458 instead of gdbarch_decr_pc_after_break.
11459
6e07b1d2
MM
114602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11461
11462 * btrace.c: Include regcache.h.
11463 (btrace_add_pc): New.
11464 (btrace_enable): Call btrace_add_pc.
11465 (btrace_is_empty): New.
11466 * btrace.h (btrace_is_empty): New.
11467 * record-btrace.c (require_btrace, record_btrace_info): Call
11468 btrace_is_empty.
11469
969c39fb
MM
114702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11473 Support delta reads.
11474 (linux_disable_btrace): Change return type.
11475 * common/linux-btrace.h (linux_read_btrace): Change parameters
11476 and return type to allow error reporting. Update users.
11477 (linux_disable_btrace): Change return type. Update users.
11478 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11479 New.
11480 (btrace_error): New.
11481 (btrace_block) <begin>: Comment on BEGIN == 0.
11482 * btrace.c (btrace_compute_ftrace): Start from the end of
11483 the current trace.
11484 (btrace_stitch_trace, btrace_clear_history): New.
11485 (btrace_fetch): Read delta trace, return if replaying.
11486 (btrace_clear): Move clear history code to btrace_clear_history.
11487 (parse_xml_btrace): Throw an error if parsing failed.
11488 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11489 and return type to allow error reporting.
11490 (target_read_btrace): Change parameters and return type to allow
11491 error reporting.
11492 * target.c (target_read_btrace): Update.
11493 * remote.c (remote_read_btrace): Support delta reads. Pass
11494 errors on.
11495 * NEWS: Announce it.
11496
0b722aec
MM
114972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11498
11499 * record.h (record_btrace_frame_unwind)
11500 (record_btrace_tailcall_frame_unwind): New declarations.
11501 * dwarf2-frame: Include record.h
11502 (dwarf2_frame_cfa): Throw an error for btrace frames.
11503 * record-btrace.c: Include hashtab.h.
11504 (btrace_get_bfun_name): New.
11505 (btrace_call_history): Call btrace_get_bfun_name.
11506 (struct btrace_frame_cache): New.
11507 (bfcache): New.
11508 (bfcache_hash, bfcache_eq, bfcache_new): New.
11509 (btrace_get_frame_function): New.
11510 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11511 (record_btrace_frame_this_id): Compute own id.
11512 (record_btrace_frame_prev_register): Provide PC, throw_error
11513 for all other registers.
11514 (record_btrace_frame_sniffer): Detect btrace frames.
11515 (record_btrace_tailcall_frame_sniffer): New.
11516 (record_btrace_frame_dealloc_cache): New.
11517 (record_btrace_frame_unwind): Add new functions.
11518 (record_btrace_tailcall_frame_unwind): New.
11519 (_initialize_record_btrace): Allocate cache.
11520 * btrace.c (btrace_clear): Call reinit_frame_cache.
11521 * NEWS: Announce it.
11522
066ce621
MM
115232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524
11525 * record-btrace.c (record_btrace_set_replay)
11526 (record_btrace_goto_begin, record_btrace_goto_end)
11527 (record_btrace_goto): New.
11528 (init_record_btrace_ops): Initialize them.
11529 * NEWS: Announce it.
11530
e2887aa3
MM
115312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11532
11533 * record-btrace.c (record_btrace_find_new_threads)
11534 (record_btrace_thread_alive): New.
11535 (init_record_btrace_ops): Initialize to_find_new_threads and
11536 to_thread_alive.
11537
b2f4cfde
MM
115382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11539
11540 * record-btrace.c (record_btrace_resume): New.
11541 (record_btrace_wait): New.
11542 (init_record_btrace_ops): Initialize to_wait and to_resume.
11543
633785ff
MM
115442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11545
11546 * record-btrace.c (record_btrace_xfer_partial)
11547 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11548 (record_btrace_allow_memory_access): New.
11549 (init_record_btrace_ops): Initialize new methods.
11550 * target.c (raw_memory_xfer_partial): Bail out if target reports
11551 that this memory is not available.
11552
3db08215
MM
115532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11554
11555 * target.h (target_ops) <to_insert_breakpoint>
11556 <to_remove_breakpoint>: Add target_ops parameter.
11557 (forward_target_insert_breakpoint): New.
11558 (forward_target_remove_breakpoint): New.
11559 (memory_remove_breakpoint, memory_insert_breakpoint):
11560 Add target_ops parameter.
11561 * target.c (target_insert_breakpoint): Split into this and ...
11562 (forward_target_insert_breakpoint): ... this.
11563 (target_remove_breakpoint): Split into this and ...
11564 (forward_target_remove_breakpoint): ... this.
11565 (debug_to_insert_breakpoint): Add target_ops parameter.
11566 Call forward_target_insert_breakpoint.
11567 (debug_to_remove_breakpoint): Add target_ops parameter.
11568 Call forward_target_remove_breakpoint.
11569 (update_current_target): Do not inherit or default to_insert_breakpoint
11570 and to_remove_breakpoint.
11571 * corelow.c (ignore): Add target_ops parameter.
11572 * exec.c (ignore): Add target_ops parameter.
11573 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11574 Add target_ops parameter.
11575 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11576 Add target_ops parameter.
11577 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11578 Add target_ops parameter.
11579 * record-full.c (record_full_beneath_to_insert_breakpoint)
11580 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11581 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11582 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11583 (record_full_core_remove_breakpoint): Add target_ops parameter.
11584 Update users.
11585 (record_full_beneath_to_insert_breakpoint_ops)
11586 (record_full_beneath_to_remove_breakpoint_ops)
11587 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11588 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11589 tmp_to_remove_breakpoint_ops,
11590 record_full_beneath_to_insert_breakpoint_ops, and
11591 record_full_beneath_to_remove_breakpoint_ops.
11592 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11593 (m32r_remove_breakpoint): Add target_ops parameter.
11594 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11595 Add target_ops parameter.
11596 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11597 Add target_ops parameter.
11598
cecac1ab
MM
115992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11600 Markus Metzger <markus.t.metzger@intel.com>
11601
11602 * record-btrace.c: Include frame-unwind.h.
11603 (record_btrace_frame_unwind_stop_reason)
11604 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11605 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11606 New.
11607 (init_record_btrace_ops): Install it.
11608
824344ca
MM
116092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11610
11611 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11612 get_prev_frame_1.
11613
32261e52
MM
116142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11615
11616 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11617 earlier.
11618
ea001bdc
MM
116192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11620
11621 * frame-unwind.c: Include target.h.
11622 (frame_unwind_try_unwinder): New function with code from ...
11623 (frame_unwind_find_by_frame): ... here. New variable
11624 unwinder_from_target, call also target_get_unwinder)
11625 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11626 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11627 * target.h (struct target_ops): New fields to_get_unwinder and
11628 to_get_tailcall_unwinder.
11629 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11630
1f3ef581
MM
116312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11632
11633 * record-btrace.c (record_btrace_fetch_registers)
11634 (record_btrace_store_registers)
11635 (record_btrace_to_prepare_to_store): New.
11636 (init_record_btrace_ops): Add the above.
11637
f32dbf8c
MM
116382014-01-16 Tom Tromey <tromey@redhat.com>
11639
11640 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11641 * target.h (struct target_ops) <to_prepare_to_store>: Add
11642 argument.
11643 (target_prepare_to_store): Add argument.
11644 * target.c (debug_to_prepare_to_store): Add argument.
11645 (update_current_target): Update.
11646 * remote.c (remote_prepare_to_store): Add 'self' argument.
11647 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11648 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11649 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11650 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11651 argument.
11652 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11653 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11654 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11655 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11656 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11657
07bbe694
MM
116582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11659
11660 * btrace.h (replay) <replay>: New.
11661 (btrace_is_replaying): New.
11662 * btrace.c (btrace_clear): Free replay iterator.
11663 (btrace_is_replaying): New.
11664 * record-btrace.c (record_btrace_is_replaying): New.
11665 (record_btrace_info): Print insn number if replaying.
11666 (record_btrace_insn_history): Start at replay position.
11667 (record_btrace_call_history): Start at replay position.
11668 (init_record_btrace_ops): Init to_record_is_replaying.
11669
0688d04e
MM
116702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11671
11672 * record-btrace.c (record_btrace_insn_history_range): Include
11673 end.
11674 (record_btrace_insn_history_from): Adjust range.
11675 (record_btrace_call_history_range): Include
11676 end.
11677 (record_btrace_call_history_from): Adjust range.
11678 * NEWS: Announce changes.
11679
8710b709
MM
116802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11681
11682 * record.h (enum record_print_flag)
11683 <record_print_indent_calls>: New.
11684 * record.c (get_call_history_modifiers): Recognize /c modifier.
11685 (_initialize_record): Document /c modifier.
11686 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11687 Reorder fields. Optionally indent the function name. Update
11688 all users.
11689 * NEWS: Announce changes.
11690
d0fa7535
MM
116912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11692
11693 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11694
5de9129b
MM
116952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696
11697 * btrace.c (ftrace_new_function): Start counting at one.
11698 * record-btrace.c (record_btrace_info): Adjust number of calls
11699 and insns.
11700 * NEWS: Announce it.
11701
7acbe133
MM
117022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * record-btrace.c (btrace_call_history_insn_range): Print
11705 insn range as [begin, end].
11706
23a7fe75
MM
117072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11708
11709 * btrace.h (struct btrace_func_link): New.
11710 (enum btrace_function_flag): New.
11711 (struct btrace_inst): Rename to ...
11712 (struct btrace_insn): ...this. Update all users.
11713 (struct btrace_func) <ibegin, iend>: Remove.
11714 (struct btrace_func_link): New.
11715 (struct btrace_func): Rename to ...
11716 (struct btrace_function): ...this. Update all users.
11717 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11718 (number, level, flags>: New.
11719 (struct btrace_insn_iterator): Rename to ...
11720 (struct btrace_insn_history): ...this.
11721 Update all users.
11722 (struct btrace_insn_iterator, btrace_call_iterator): New.
11723 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11724 (struct btrace_target_info) <begin, end, level>
11725 <insn_history, call_history>: New.
11726 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11727 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11728 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11729 (btrace_call_number, btrace_call_begin, btrace_call_end)
11730 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11731 (btrace_find_function_by_number, btrace_set_insn_history)
11732 (btrace_set_call_history): New.
11733 * btrace.c (btrace_init_insn_iterator)
11734 (btrace_init_func_iterator, compute_itrace): Remove.
11735 (ftrace_print_function_name, ftrace_print_filename)
11736 (ftrace_skip_file): Change
11737 parameter to const.
11738 (ftrace_init_func): Remove.
11739 (ftrace_debug): Use new btrace_function fields.
11740 (ftrace_function_switched): Also consider gaining and
11741 losing symbol information).
11742 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11743 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11744 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11745 New.
11746 (ftrace_new_function): Move. Remove debug print.
11747 (ftrace_update_lines, ftrace_update_insns): New.
11748 (ftrace_update_function): Check for call, ret, and jump.
11749 (compute_ftrace): Renamed to ...
11750 (btrace_compute_ftrace): ...this. Rewritten to compute call
11751 stack.
11752 (btrace_fetch, btrace_clear): Updated.
11753 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11754 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11755 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11756 (btrace_call_number, btrace_call_begin, btrace_call_end)
11757 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11758 (btrace_find_function_by_number, btrace_set_insn_history)
11759 (btrace_set_call_history): New.
11760 * record-btrace.c (require_btrace): Use new btrace thread
11761 info fields.
11762 (record_btrace_info, btrace_insn_history)
11763 (record_btrace_insn_history, record_btrace_insn_history_range):
11764 Use new btrace thread info fields and new iterator.
11765 (btrace_func_history_src_line): Rename to ...
11766 (btrace_call_history_src_line): ...this. Use new btrace
11767 thread info fields.
11768 (btrace_func_history): Rename to ...
11769 (btrace_call_history): ...this. Use new btrace thread info
11770 fields and new iterator.
11771 (record_btrace_call_history, record_btrace_call_history_range):
11772 Use new btrace thread info fields and new iterator.
11773
8372a7cb
MM
117742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11775
11776 * frame.h (frame_id_build_unavailable_stack_special): New.
11777 * frame.c (frame_id_build_unavailable_stack_special): New.
11778
c2170eef
MM
117792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11780
11781 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11782 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11783 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11784 to gdbarch.
11785 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11786 (i386_insn_is_jump, i386_jmp_p): New.
11787 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11788 insn_is_jump to gdbarch.
11789 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11790 * gdbarch.h: Regenerated.
11791 * gdbarch.c: Regenerated.
11792 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11793 (default_insn_is_jump): New.
11794 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11795 (default_insn_is_jump): New.
11796
864089d2
MM
117972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11798
11799 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11800 Change to ...
11801 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11802 (btrace_read_type) <btrace_read_new>: Change to ...
11803 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11804
ed9edfb5
MM
118052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11806
11807 * common/linux-btrace.c (linux_read_btrace): Free trace from
11808 previous iteration.
11809
fbcbc3fd
DE
118102014-01-15 Doug Evans <dje@google.com>
11811
11812 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11813 uint32_t.
11814
3d548a53
TT
118152014-01-15 Tom Tromey <tromey@redhat.com>
11816
11817 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11818 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11819 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11820 (set_objfile_main_name): New function.
11821 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11822 language_of_main>: New fields.
11823 (set_objfile_main_name): Declare.
11824 * symtab.c (find_main_name): Loop over objfiles to find the main
11825 name and language.
11826 (set_main_name): Now static.
11827 (get_main_info): Add comment.
11828 * symtab.h (set_main_name): Don't declare.
11829
32ac0d11
TT
118302014-01-15 Tom Tromey <tromey@redhat.com>
11831
11832 * symtab.c (main_progspace_key): New global.
11833 (struct main_info): New.
11834 (name_of_main, language_of_main): Remove.
11835 (get_main_info, main_info_cleanup): New function.
11836 (set_main_name, main_name, main_language): Use get_main_info.
11837 (_initialize_symtab): Initialize main_progspace_key.
11838
9e6c82ad
TT
118392014-01-15 Tom Tromey <tromey@redhat.com>
11840
11841 * dbxread.c (process_one_symbol): Update.
11842 * dwarf2read.c (read_partial_die): Update.
11843 * symfile.c (set_initial_language): Call main_language.
11844 * symtab.c (language_of_main): Now static.
11845 (set_main_name): Add 'lang' parameter.
11846 (find_main_name): Update.
11847 (main_language): New function.
11848 (symtab_observer_executable_changed): Update.
11849 * symtab.h (set_main_name): Update.
11850 (language_of_main): Remove.
11851 (main_language): Declare.
11852
6ef55de7
TT
118532014-01-15 Tom Tromey <tromey@redhat.com>
11854
11855 * symfile.c (init_entry_point_info): Use new "initialized" field.
11856 Update.
11857 * objfiles.h (struct entry_point) <initialized>: New field.
11858 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11859 (struct objfile) <ei>: ...here. Remove.
11860 * objfiles.c (entry_point_address_query): Update.
11861
53eddfa6
TT
118622014-01-15 Tom Tromey <tromey@redhat.com>
11863
11864 * objfiles.c (entry_point_address_query): Relocate entry point
11865 address.
11866 (objfile_relocate1): Do not relocate entry point address.
11867 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11868 <the_bfd_section_index>: New field.
11869 * symfile.c (init_entry_point_info): Find the entry point's
11870 section.
11871
d56e56aa
TT
118722014-01-15 Tom Tromey <tromey@redhat.com>
11873
11874 * solib-frv.c (enable_break): Use entry_point_address_query.
11875
33a97bbe
OJ
118762014-01-15 Omair Javaid <omair.javaid@linaro.org>
11877
11878 * NEWS: Add note on improved process record-replay on
11879 arm*-linux* targets.
11880
c6ec2b30
OJ
118812014-01-15 Omair Javaid <omair.javaid@linaro.org>
11882
11883 * arm-tdep.c (enum arm_record_result): New enum.
11884 (arm_record_unsupported_insn): New function.
11885 (arm_record_coproc_data_proc): Removed.
11886 (thumb2_record_ld_st_multiple): New function.
11887 (thumb2_record_ld_st_dual_ex_tbb): New function.
11888 (thumb2_record_data_proc_sreg_mimm): New function.
11889 (thumb2_record_ps_dest_generic): New function.
11890 (thumb2_record_branch_misc_cntrl): New function.
11891 (thumb2_record_str_single_data): New function.
11892 (thumb2_record_ld_mem_hints): New function.
11893 (thumb2_record_ld_word): New function.
11894 (thumb2_record_lmul_lmla_div): New function.
11895 (thumb2_record_decode_insn_handler): New function.
11896 (decode_insn): Add thumb32 instruction handlers.
11897
97dfe206
OJ
118982014-01-15 Omair Javaid <omair.javaid@linaro.org>
11899
11900 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11901 (struct arm_linux_record_tdep): Declare.
11902 (arm_canonicalize_syscall): New function.
11903 (arm_all_but_pc_registers_record): New function.
11904 (arm_linux_syscall_record): New function.
11905 (arm_linux_init_abi): Add syscall recording constructs.
11906 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11907 decoding. (arm_record_coproc_data_proc): Update arm syscall
11908 decoding.
11909 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11910 <arm_syscall_record>: New field.
11911 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11912 gdb_target_obs.
11913
9904a494
OJ
119142014-01-15 Omair Javaid <omair.javaid@linaro.org>
11915
11916 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11917 register for push instruction recording.
11918
f969241e
OJ
119192014-01-15 Omair Javaid <omair.javaid@linaro.org>
11920
11921 * arm-tdep.c (thumb_record_misc): Update to correct logical
11922 error while recording ldm, ldmia and pop instructions.
11923
bfbbec00
OJ
119242014-01-15 Omair Javaid <omair.javaid@linaro.org>
11925
11926 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11927
e40adcc9
PA
119282014-01-15 Pedro Alves <palves@redhat.com>
11929
11930 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11931 (go32_resume, go32_fetch_registers, store_register)
11932 (go32_store_registers, go32_prepare_to_store)
11933 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11934 (go32_create_inferior, go32_can_run, go32_terminal_init)
11935 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11936 declarations.
11937
b0a16e66
TT
119382014-01-15 Tom Tromey <tromey@redhat.com>
11939
11940 * target.h (async_callback_ftype): New typedef.
11941 (struct target_ops) <to_async>: Use it.
11942
bf7105a4
JB
119432014-01-15 Joel Brobecker <brobecker@adacore.com>
11944
11945 * python/py-value.c (get_field_type): Remove unnecessary curly
11946 braces for single-statement if block.
11947
a8f35c2e
JB
119482014-01-15 Joel Brobecker <brobecker@adacore.com>
11949
11950 * python/py-type.c (convert_field): Add missing empty line
11951 after declarations.
11952
bb4142cf
DE
119532014-01-14 Doug Evans <dje@google.com>
11954
11955 * symfile.h (expand_symtabs_matching): Renamed from
11956 expand_partial_symbol_names. Update prototype.
11957 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11958 * symfile.c (expand_symtabs_matching): Renamed from
11959 expand_partial_symbol_names. New args file_matcher, kind.
11960 Rename arg fun to symbol_matcher.
11961 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11962 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11963 ada_expand_partial_symbol_name.
11964 (ada_make_symbol_completion_list): Update to call
11965 expand_symtabs_matching.
11966 (ada_add_global_exceptions): Call expand_symtabs_matching.
11967 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11968 call map_symbol_filenames.
11969 * symtab.c (sources_info): Update to call map_symbol_filenames.
11970 (search_symbols): Call expand_symtabs_matching.
11971 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11972 (default_make_symbol_completion_list_break_on): Update to call
11973 expand_symtabs_matching.
11974 (make_source_files_completion_list): Update to call
11975 map_symbol_filenames.
11976
206f2a57
DE
119772014-01-14 Doug Evans <dje@google.com>
11978
11979 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11980 (expand_symtabs_symbol_matcher_ftype): New typedef.
11981 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11982 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11983 * symfile.c (expand_partial_symbol_names): Update to use
11984 expand_symtabs_symbol_matcher_ftype.
11985 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11986 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11987 Arg name_matcher renamed to symbol_matcher.
11988 * psymtab.c (recursively_search_psymtabs): Update to use
11989 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11990 sym_matcher.
11991 (expand_symtabs_matching_via_partial): Update to use
11992 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11993 Arg name_matcher renamed to symbol_matcher.
11994
540c2971
DE
119952014-01-14 Doug Evans <dje@google.com>
11996
11997 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11998 (map_partial_symbol_filenames): Ditto.
11999 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12000 (map_partial_symbol_filenames): Ditto.
12001 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12002 (map_partial_symbol_filenames): Ditto.
12003 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12004 (map_partial_symbol_filenames): Ditto.
12005 * symtab.c: Delete #include "psymtab.h".
12006
8213266a
PA
120072014-01-14 Pedro Alves <palves@redhat.com>
12008 Tom Tromey <tromey@redhat.com>
12009
12010 * infrun.c (use_displaced_stepping): Use find_record_target
12011 instead of RECORD_IS_USED.
12012 (adjust_pc_after_break): Use record_full_is_used instead of
12013 RECORD_IS_USED.
12014 * record-btrace.c (record_btrace_open): Call record_preopen
12015 instead of checking RECORD_IS_USED.
12016 * record-full.c (record_full_shortname)
12017 (record_full_core_shortname): New globals.
12018 (record_full_is_used): New function.
12019 (find_full_open): Call record_preopen instead of checking
12020 RECORD_IS_USED.
12021 (init_record_full_ops): Set the target's shortname to
12022 record_full_shortname.
12023 (init_record_full_core_ops): Set the target's shortname to
12024 record_full_core_shortname.
12025 * record-full.h (record_full_is_used): Declare.
12026 * record.c (find_record_target): Make extern.
12027 (record_preopen): New function.
12028 * record.h (RECORD_IS_USED): Delete macro.
12029 (find_record_target, record_preopen): Declare functions.
12030
7ec1862d
YQ
120312014-01-14 Yao Qi <yao@codesourcery.com>
12032
12033 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12034 'len''s type to ULONGEST.
12035 (core_xfer_shared_libraries_aix): Likewise.
12036 * gdbarch.c, gdbarch.h: Regenerated.
12037 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12038 Change type of 'len' to ULONGEST.
12039 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12040 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12041
dea80a27
YQ
120422014-01-14 Yao Qi <yao@codesourcery.com>
12043
12044 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12045 type of 'len' to ULONGEST.
12046 (linux_xfer_osdata_processgroups): Likewise.
12047 (linux_xfer_osdata_threads): Likewise.
12048 (linux_xfer_osdata_fds): Likewise.
12049 (linux_xfer_osdata_isockets): Likewise.
12050 (linux_xfer_osdata_shm): Likewise.
12051 (linux_xfer_osdata_sem): Likewise.
12052 (linux_xfer_osdata_msg): Likewise.
12053 (linux_common_xfer_osdata): Likewise.
12054 (struct osdata_type) <getter>: Likewise.
12055 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12056 the declaration.
12057
b55e14c7
YQ
120582014-01-14 Yao Qi <yao@codesourcery.com>
12059
12060 * target.h (target_xfer_partial_ftype): Update.
12061 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12062 ULONGEST.
12063 * aix-thread.c (aix_thread_xfer_partial): Change type of
12064 argument 'len' to ULONGEST.
12065 * auxv.c (procfs_xfer_auxv): Likewise.
12066 (ld_so_xfer_auxv): Likewise.
12067 (memory_xfer_auxv): Likewise.
12068 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12069 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12070 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12071 * corelow.c (core_xfer_partial): Likewise.
12072 * ctf.c (ctf_xfer_partial): Likewise.
12073 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12074 '%u'.
12075 (darwin_read_dyld_info): Likewise.
12076 (darwin_xfer_partial): Likewise.
12077 * exec.c (section_table_xfer_memory_partial): Likewise.
12078 (exec_xfer_partial): Likewise.
12079 * exec.h (section_table_xfer_memory_partial): Update
12080 declaration.
12081 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12082 instead of plongest.
12083 (gnu_xfer_partial): Likewise.
12084 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12085 (ia64_hpux_xfer_solib_got): Likewise.
12086 (ia64_hpux_xfer_partial): Likewise.
12087 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12088 * inf-ptrace.c (inf_ptrace_xfer_partial):
12089 * inf-ttrace.c (inf_ttrace_xfer_partial):
12090 * linux-nat.c (linux_xfer_siginfo): Likewise.
12091 (linux_nat_xfer_partial): Likewise.
12092 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12093 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12094 * monitor.c (monitor_xfer_memory): Likewise.
12095 (monitor_xfer_partial): Likewise.
12096 * procfs.c (procfs_xfer_partial): Likewise.
12097 * record-full.c (record_full_xfer_partial): Likewise.
12098 (record_full_core_xfer_partial): Likewise.
12099 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12100 instead of plongest.
12101 (gdbsim_xfer_partial): Likewise.
12102 * remote.c (remote_xfer_partial): Likewise.
12103 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12104 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12105 declaration.
12106 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12107 (rs6000_xfer_shared_libraries): Likewise.
12108 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12109 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12110 (sparc_xfer_partial): Likewise.
12111 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12112 (spu_xfer_partial): Likewise.
12113 * spu-multiarch.c (spu_xfer_partial): Likewise.
12114 * target.c (target_read_live_memory): Likewise.
12115 (memory_xfer_live_readonly_partial): Likewise.
12116 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12117 (target_xfer_partial, default_xfer_partial): Likewise.
12118 (current_xfer_partial): Likewise.
12119 * tracepoint.c (tfile_xfer_partial): Likewise.
12120 * windows-nat.c (windows_xfer_memory): Likewise. Call
12121 pulongest instead of plongest.
12122 (windows_xfer_partial): Likewise.
12123 (windows_xfer_shared_libraries): Likewise.
12124
05804640
YQ
121252014-01-14 Yao Qi <yao@codesourcery.com>
12126
12127 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12128 target_xfer_partial_ftype.
12129
b5b08fb4
SC
121302014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12131
12132 PR python/15464
12133 PR python/16113
12134 * valops.c (value_struct_elt_bitpos): New function
12135 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12136 object to 'None' if the field name is an empty string ("").
12137 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12138 attribute to look for a field when 'name' is 'None'.
12139 (get_field_type): New function
12140
13aaf454
DE
121412014-01-13 Doug Evans <dje@google.com>
12142
12143 PR symtab/16426
12144 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12145 (try_open_dwop_file): Ditto.
12146 * gdb_bfd.c: #include "vec.h".
12147 (bfdp): New typedef.
12148 (struct gdb_bfd_data): New member included_bfds.
12149 (gdb_bfd_unref): Unref all included bfds.
12150 (gdb_bfd_record_inclusion): New function.
12151 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12152
c2cec97c
TT
121532014-01-13 Tom Tromey <tromey@redhat.com>
12154
12155 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12156
78e5999d
TT
121572014-01-13 Tom Tromey <tromey@redhat.com>
12158
12159 * defs.h (use_windows): Remove.
12160 * gdb.c (main): Update.
12161 * main.c (captured_main, gdb_main): Update.
12162 * main.h (struct captured_main_args) <use_windows>: Remove.
12163 * top.c (use_windows): Remove.
12164
f2052bbe
TT
121652014-01-13 Tom Tromey <tromey@redhat.com>
12166
12167 * defs.h (deprecated_flush_hook): Remove.
12168
fde4f8ed
JK
121692014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12170
12171 PR threads/16216
12172 * linux-thread-db.c (try_thread_db_load): Add parameter
12173 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12174 (try_thread_db_load_from_pdir_1): Move it there from here.
12175 (try_thread_db_load_from_sdir): Update caller.
12176 (try_thread_db_load_from_dir): Move it there from here.
12177
bdf61915
PP
121782014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12179
12180 * regformats/regdat.sh: Always rewrite the register file.
12181
f71e1a8d
PA
121822014-01-13 Pedro Alves <palves@redhat.com>
12183
12184 * Makefile.in (CHECK_HEADERS): New variable.
12185 (check-headers:): New rule.
12186
42c85435
TT
121872014-01-13 Tom Tromey <tromey@redhat.com>
12188
12189 * cli/cli-setshow.c (do_set_command): Update.
12190 * defs.h (deprecated_set_hook): Remove.
12191 * top.c (deprecated_set_hook): Remove.
12192
f8de5129
PA
121932014-01-13 Pedro Alves <palves@redhat.com>
12194
12195 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12196 the tracepoint if the PC is a pseudo-register.
12197
fc270c35
TT
121982014-01-13 Tom Tromey <tromey@redhat.com>
12199
12200 * defs.h (XCALLOC): Remove.
12201 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12202 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12203 * dwarf2loc.c (allocate_piece_closure): Likewise.
12204 * elfread.c (elf_symfile_segments): Likewise.
12205 (elf_symfile_segments): Likewise.
12206 * gdbtypes.c (copy_type_recursive): Likewise.
12207 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12208 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12209 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12210 XCALLOC.
12211 * mt-tdep.c (mt_gdbarch_init): Likewise.
12212 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12213 XCALLOC.
12214 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12215 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12216 * registry.c (registry_alloc_data): Likewise.
12217 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12218 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12219 * serial.c (serial_fdopen_ops): Likewise.
12220 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12221 XCALLOC.
12222 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12223 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12224 not XCALLOC.
12225
70ba0933
TT
122262014-01-13 Tom Tromey <tromey@redhat.com>
12227
12228 * defs.h (XMALLOC): Remove.
12229 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12230 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12231 * cli-out.c (struct ui_out *): Likewise.
12232 * cli/cli-dump.c (add_dump_command): Likewise.
12233 (add_dump_command): Likewise.
12234 * complaints.c (get_complaints): Likewise.
12235 (find_complaint): Likewise.
12236 * dwarf2-frame.c (execute_cfa_program): Likewise.
12237 * dwarf2read.c (abbrev_table_read_table): Likewise.
12238 * gdbarch.sh: Likewise.
12239 * gdbarch.c: Rebuild.
12240 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12241 * interps.c (interp_new): Likewise.
12242 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12243 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12244 * mi/mi-console.c (mi_console_file_new): Likewise.
12245 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12246 * mi/mi-out.c (mi_out_new): Likewise.
12247 * mi/mi-parse.c (mi_parse): Likewise.
12248 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12249 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12250 * observer.c (xalloc_observer_list_node): Likewise.
12251 * regcache.c (regcache_xmalloc_1): Likewise.
12252 * reggroups.c (reggroup_new): Likewise.
12253 (_initialize_reggroup): Likewise.
12254 * registry.c (register_data_with_cleanup): Likewise.
12255 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12256 * ser-base.c (serial_ttystate): Likewise.
12257 * ser-mingw.c (make_pipe_state): Likewise.
12258 * ser-pipe.c (pipe_open): Likewise.
12259 * serial.c (serial_open): Likewise.
12260 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12261 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12262 (tui_alloc_win_info): Likewise.
12263 (tui_add_content_elements): Likewise.
12264 * tui/tui-file.c (tui_file_new): Likewise.
12265 * tui/tui-out.c (tui_out_new): Likewise.
12266 * ui-file.c (mem_file_new): Likewise.
12267 * ui-out.c (push_level): Likewise.
12268 (make_cleanup_ui_out_end): Likewise.
12269 (append_header_to_list): Likewise.
12270 (ui_out_new): Likewise.
12271 * user-regs.c (user_reg_add_builtin): Likewise.
12272
41bf6aca
TT
122732014-01-13 Tom Tromey <tromey@redhat.com>
12274
12275 * defs.h (XZALLOC): Remove.
12276 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12277 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12278 (get_ada_tasks_inferior_data): Likewise.
12279 * auto-load.c (get_auto_load_pspace_data): Likewise.
12280 * auxv.c (get_auxv_inferior_data): Likewise.
12281 * bfd-target.c (target_bfd_reopen): Likewise.
12282 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12283 (deprecated_insert_raw_breakpoint): Likewise.
12284 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12285 * corelow.c (core_open): Likewise.
12286 * darwin-nat.c (darwin_check_new_threads): Likewise.
12287 (darwin_attach_pid): Likewise.
12288 * dummy-frame.c (dummy_frame_push): Likewise.
12289 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12290 * dwarf2loc.c (allocate_piece_closure): Likewise.
12291 * elfread.c (elf_symfile_segments): Likewise.
12292 * eval.c (ptrmath_type_p): Likewise.
12293 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12294 * gdbtypes.c (alloc_type_arch): Likewise.
12295 (alloc_type_instance): Likewise.
12296 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12297 * inf-child.c (inf_child_can_use_agent): Likewise.
12298 * inflow.c (get_inflow_inferior_data): Likewise.
12299 * infrun.c (save_infcall_suspend_state): Likewise.
12300 * jit.c (jit_reader_load): Likewise.
12301 (get_jit_objfile_data): Likewise.
12302 (get_jit_program_space_data): Likewise.
12303 (jit_object_open_impl): Likewise.
12304 (jit_symtab_open_impl): Likewise.
12305 (jit_block_open_impl): Likewise.
12306 (jit_frame_sniffer): Likewise.
12307 * linux-fork.c (add_fork): Likewise.
12308 * maint.c (make_command_stats_cleanup): Likewise.
12309 * objfiles.c (get_objfile_pspace_data): Likewise.
12310 * opencl-lang.c (struct lval_closure): Likewise.
12311 * osdata.c (osdata_start_osdata): Likewise.
12312 * progspace.c (new_address_space): Likewise.
12313 (add_program_space): Likewise.
12314 * remote-sim.c (get_sim_inferior_data): Likewise.
12315 * sh-tdep.c (sh_gdbarch_init): Likewise.
12316 * skip.c (Ignore): Likewise.
12317 (skip_delete_command): Likewise.
12318 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12319 (library_list_start_library): Likewise.
12320 (solib_aix_current_sos): Likewise.
12321 * solib-darwin.c (get_darwin_info): Likewise.
12322 (darwin_current_sos): Likewise.
12323 * solib-dsbt.c (get_dsbt_info): Likewise.
12324 * solib-ia64-hpux.c (new_so_list): Likewise.
12325 (ia64_hpux_get_solib_linkage_addr): Likewise.
12326 * solib-spu.c (append_ocl_sos): Likewise.
12327 (spu_current_sos): Likewise.
12328 * solib-svr4.c (get_svr4_info): Likewise.
12329 (svr4_keep_data_in_core): Likewise.
12330 (library_list_start_library): Likewise.
12331 (svr4_default_sos): Likewise.
12332 (svr4_read_so_list): Likewise.
12333 * solib-target.c (library_list_start_library): Likewise.
12334 (solib_target_current_sos): Likewise.
12335 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12336 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12337 * symfile.c (default_symfile_segments): Likewise.
12338 * target-descriptions.c (tdesc_data_init): Likewise.
12339 (tdesc_create_reg): Likewise.
12340 (struct tdesc_type *): Likewise.
12341 (tdesc_create_vector): Likewise.
12342 (tdesc_set_struct_size): Likewise.
12343 (struct tdesc_type *): Likewise.
12344 (tdesc_free_feature): Likewise.
12345 (tdesc_create_feature): Likewise.
12346 * windows-nat.c (windows_add_thread): Likewise.
12347 (windows_make_so): Likewise.
12348 * xml-support.c (gdb_xml_body_text): Likewise.
12349 (gdb_xml_create_parser_and_cleanup): Likewise.
12350 (xml_process_xincludes): Likewise.
12351 * xml-syscall.c (allocate_syscalls_info): Likewise.
12352 (syscall_create_syscall_desc): Likewise.
12353
5acfdbae
SDJ
123542014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12355
12356 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12357 function, with code from i386_stap_parse_special_token.
12358 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12359 (i386_stap_parse_special_token): Move code to the two functions
12360 above; simplify it.
12361
0000e5cc
PA
123622014-01-09 Pedro Alves <palves@redhat.com>
12363 Hui Zhu <hui@codesourcery.com>
12364
12365 PR gdb/16101
12366 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12367 bp_err_string. Don't mark the location shlib_disabled if the
12368 error thrown wasn't a generic or memory error. Catch errors
12369 thrown while inserting breakpoints in overlayed code. Output
12370 error message of software breakpoints.
12371 * remote.c (remote_insert_breakpoint): If this breakpoint has
12372 target-side commands but this stub doesn't support Z0 packets,
12373 throw NOT_SUPPORTED_ERROR error.
12374 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12375 * target.h (target_insert_breakpoint): Extend comment.
12376 (target_insert_hw_breakpoint): Add comment.
12377
b7ea362b
PA
123782014-01-08 Pedro Alves <palves@redhat.com>
12379
12380 * remote.c (remote_add_thread): Add threads silently if starting
12381 up.
12382 (remote_notice_new_inferior): If in all-stop, and starting up,
12383 don't call notice_new_inferior.
12384 (get_current_thread): New function, factored out from ...
12385 (add_current_inferior_and_thread): ... this. Adjust.
12386 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12387 found any thread, then select the remote's current thread as GDB's
12388 current thread too.
12389
b7bba001
JB
123902014-01-08 Joel Brobecker <brobecker@adacore.com>
12391
12392 * NEWS: Create a new section for the next release branch.
12393 Rename the section of the current branch, now that it has
12394 been cut.
12395
16dfbded
JB
123962014-01-08 Joel Brobecker <brobecker@adacore.com>
12397
12398 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12399 * version.in: Bump version to 7.7.50.DATE-cvs.
12400
22c90ac1
YQ
124012014-01-08 Yao Qi <yao@codesourcery.com>
12402
12403 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12404 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12405 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12406
d64ad97c
YQ
124072014-01-08 Yao Qi <yao@codesourcery.com>
12408
12409 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12410 return value of bfd_get_filename to symbol_file_add_from_bfd.
12411
f93ba80c
PM
124122014-01-08 Pierre Muller <muller@sourceware.org>
12413
12414 Fix PR16201.
12415 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12416 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12417 to prim_record_mininal_symbol_and_info.
12418 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12419 in call to prim_record_minimal_symbol_and_info.
12420 (read_pe_exported_syms): Set index field of section_data.
12421
a4d9ba85
AP
124222014-01-07 Andrew Pinski <apinski@cavium.com>
12423
12424 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12425 * features/aarch64.c: Regenerate.
12426
1b67eb02
AS
124272014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12428
12429 * target.c (return_null): Define.
12430 (update_current_target): Use it instead of return_zero for
12431 functions that return a pointer.
12432
5e3f4fab
EBM
124332014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12434
12435 * source.c (add_path): Fix check for duplicated paths in the previously
12436 included paths.
12437
e2616788
HK
124382014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12439
12440 * ada-lang.c: Remove duplicated include statements.
12441 * alphabsd-nat.c: Ditto.
12442 * amd64-darwin-tdep.c: Ditto.
12443 * amd64fbsd-nat.c: Ditto.
12444 * auto-load.c: Ditto.
12445 * ax-gdb.c: Ditto.
12446 * breakpoint.c: Ditto.
12447 * dbxread.c: Ditto.
12448 * fork-child.c: Ditto.
12449 * gdb_usleep.c: Ditto.
12450 * i386-darwin-tdep.c: Ditto.
12451 * i386fbsd-nat.c: Ditto.
12452 * infcmd.c: Ditto.
12453 * inferior.c: Ditto.
12454 * jv-lang.c: Ditto.
12455 * linux-nat.c: Ditto.
12456 * linux-tdep.c: Ditto.
12457 * m68kbsd-nat.c: Ditto.
12458 * m68klinux-nat.c: Ditto.
12459 * microblaze-tdep.c: Ditto.
12460 * mips-linux-tdep.c: Ditto.
12461 * mn10300-tdep.c: Ditto.
12462 * nto-tdep.c: Ditto.
12463 * opencl-lang.c: Ditto.
12464 * osdata.c: Ditto.
12465 * printcmd.c: Ditto.
12466 * regcache.c: Ditto.
12467 * remote-m32r-sdi.c: Ditto.
12468 * remote.c: Ditto.
12469 * symfile.c: Ditto.
12470 * symtab.c: Ditto.
12471 * tilegx-linux-nat.c: Ditto.
12472 * tilegx-tdep.c: Ditto.
12473 * tracepoint.c: Ditto.
12474 * valops.c: Ditto.
12475 * vaxbsd-nat.c: Ditto.
12476 * windows-nat.c: Ditto.
12477 * xtensa-tdep.c: Ditto.
12478
bd1f7788
YQ
124792014-01-07 Yao Qi <yao@codesourcery.com>
12480
12481 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12482
79301218
JB
124832014-01-07 Yao Qi <yao@codesourcery.com>
12484 Joel Brobecker <brobecker@adacore.com>
12485
12486 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12487 (pdc_write_regs): Likewise.
12488 (fetch_regs_kernel_thread): Likewise.
12489 (store_regs_kernel_thread): Likewise.
12490
124912014-01-07 Joel Brobecker <brobecker@adacore.com>
12492
12493 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12494 tagged type objects to their actual type.
12495
8e355c5d
JB
124962014-01-07 Joel Brobecker <brobecker@adacore.com>
12497
12498 * ada-valprint.c (print_field_values): Add "language" parameter.
12499 Update calls to print_field_values and print_variant_part.
12500 Pass new parameter "language" in call to val_print instead
12501 of "current_language". Replace call to ada_val_print by call
12502 to val_print.
12503 (print_variant_part): Add "language" parameter.
12504 (ada_val_print_struct_union): Update call to print_field_values.
12505
4fbf5aa5
JB
125062014-01-07 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-valprint.c (ui_memcpy): Delete.
12509 (ada_print_floating): Update documentation. Add empty line
12510 between between function documentation and implementation.
12511 Delete variable "buffer". Use ui_file_xstrdup in place of
12512 ui_file_put. Minor adjustments following this change.
12513
71855601
JB
125142014-01-07 Joel Brobecker <brobecker@adacore.com>
12515
12516 * ada-valprint.c (ada_val_print_string): New function,
12517 extracted from ada_val_print_array.
12518 (ada_val_print_array): Replace extracted code by call
12519 to ada_val_print_string followed by a return. Move
12520 "else" branch to the function's top block.
12521
4eb27a30
JB
125222014-01-07 Joel Brobecker <brobecker@adacore.com>
12523
12524 * ada-valprint.c (ada_val_print_array): Move implementation
12525 down. Rename parameter "offset" and "val" into "offset_aligned"
12526 and "original_value" respectively. Add parameter "offset".
12527
34b27950
JB
125282014-01-07 Joel Brobecker <brobecker@adacore.com>
12529
12530 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12531 re-organizing the code. Change the "???" message printed
12532 when target type is a TYPE_CODE_UNDEF into
12533 "<ref to undefined type>".
12534
079e4591
JB
125352014-01-07 Joel Brobecker <brobecker@adacore.com>
12536
12537 * ada-valprint.c (print_record): Delete, implementation inlined...
12538 (ada_val_print_struct_union): ... here. Remove call to
12539 ada_check_typedef in inlined implementation.
12540
8004dfd1
JB
125412014-01-07 Joel Brobecker <brobecker@adacore.com>
12542
12543 * ada-valprint.c (ada_val_print_gnat_array): New function,
12544 extracted from ada_val_print_1;
12545 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12546 (ada_val_print_flt, ada_val_print_struct_union)
12547 (ada_val_print_ref): Likewise.
12548 (ada_val_print_1): Delete variables i and elttype.
12549 Replace extracted-out code by call to corresponding
12550 new functions.
12551
760a2db0
JB
125522014-01-07 Joel Brobecker <brobecker@adacore.com>
12553
12554 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12555
3a92c861
JB
125562014-01-07 Joel Brobecker <brobecker@adacore.com>
12557
12558 * ada-valprint.c (ada_val_print_1): Replace calls to
12559 ada_val_print_1 by calls to val_print.
12560
cd1630f9
JB
125612014-01-07 Joel Brobecker <brobecker@adacore.com>
12562
12563 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12564 Update calls to self accordingly. Replace calls to c_val_print
12565 by calls to val_print.
12566
bdf779a0
JB
125672014-01-07 Joel Brobecker <brobecker@adacore.com>
12568
12569 * ada-valprint.c (print_record): Delete declaration.
12570 (adjust_type_signedness, ada_val_print_1): Likewise.
12571 (ada_val_print): Move function implementation down.
12572 (print_variant_part, print_field_values, print_record):
12573 Move function implementation up.
12574
c0d48811
JB
125752014-01-07 Joel Brobecker <brobecker@adacore.com>
12576
12577 * python/py-type.c (typy_get_name): New function.
12578 (type_object_getset): Add entry for attribute "name".
12579 * NEWS: Add entry mentioning this new attribute.
12580
c26e9cbb
YQ
125812014-01-07 Yao Qi <yao@codesourcery.com>
12582
12583 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12584 statement.
12585
0cc6f43d
YQ
125862014-01-07 Yao Qi <yao@codesourcery.com>
12587
12588 * gnu-nat.c (info_port_rights): Add qualifier const to
12589 argument args.
12590
eec03155
YQ
125912014-01-07 Yao Qi <yao@codesourcery.com>
12592
12593 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12594
f04a82ef
YQ
125952014-01-07 Yao Qi <yao@codesourcery.com>
12596
12597 * gnu-nat.c (make_inf) Update declaration.
12598 (make_inf): Make it static.
12599 (inf_set_traced): Likewise.
12600 (inf_port_to_thread, inf_task_died_status): Likewise.
12601
d57dda0a
YQ
126022014-01-07 Yao Qi <yao@codesourcery.com>
12603
12604 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12605
3aa8c969
YQ
126062014-01-07 Yao Qi <yao@codesourcery.com>
12607
12608 * gnu-nat.c (_initialize_gnu_nat): Declare.
12609
94123b4f
YQ
126102014-01-07 Yao Qi <yao@codesourcery.com>
12611
12612 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12613 'enum bfd_endian'.
12614 (struct gdbarch_info) <byte_order>: Change type to
12615 'enum bfd_endian'.
12616 <byte_order_for_code>: Likewise.
12617 * gdbarch.c, gdbarch.h: Regenerated.
12618
dc81d70a
TT
126192014-01-06 Sasha Smundak <asmundak@google.com>
12620
12621 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12622
cc2f3c35
TT
126232014-01-06 Tom Tromey <tromey@redhat.com>
12624
12625 * doublest.c (convert_doublest_to_floatformat): Use const, not
12626 CONST.
12627 * somread.c (som_symtab_read): Likewise.
12628
adcf2eed
HZ
126292014-01-07 Hui Zhu <hui@codesourcery.com>
12630
12631 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12632 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12633 (gdb_bfd_fopen): Ditto.
12634 (gdb_bfd_openr): Ditto.
12635 (gdb_bfd_openw): Ditto.
12636 (gdb_bfd_openr_iovec): Ditto.
12637 (gdb_bfd_fdopenr): Ditto.
12638 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12639 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12640 with xstrdup.
12641 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12642 with xstrdup.
12643 * symfile-mem.c (symbol_file_add_from_memory): Removed
12644 gdb_bfd_stash_filename.
12645
50722198
DE
126462014-01-03 Doug Evans <dje@google.com>
12647
12648 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12649 output.
12650
2fa4b862
JB
126512014-01-01 Joel Brobecker <brobecker@adacore.com>
12652
12653 Update year range in copyright notice of all files.
12654
28498c42
JB
126552014-01-01 Joel Brobecker <brobecker@adacore.com>
12656
12657 * top.c (print_gdb_version): Set copyright year to 2014.
12658
7b6e1046
JB
126592014-01-01 Joel Brobecker <brobecker@adacore.com>
12660
12661 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12662
df96af55 12663For older changes see ChangeLog-2013.
c906108c
SS
12664\f
12665Local Variables:
12666mode: change-log
12667left-margin: 8
12668fill-column: 74
12669version-control: never
57da7796 12670coding: utf-8
c906108c 12671End:
This page took 3.256723 seconds and 4 git commands to generate.