[PATCH][ARM] Add Cortex-A17 support to gas
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
92d8d229
DE
12014-09-08 Doug Evans <xdje42@gmail.com>
2
3 PR 17247
4 * guile.c: #include <signal.h>.
5 (_initialize_guile): Block SIGCHLD while initializing Guile.
6
7 Replaces the following, which is reverted.
8
9 2014-07-26 Doug Evans <xdje42@gmail.com>
10
11 PR 17185
12 * configure.ac: Add check for header gc/gc.h.
13 Add check for function setenv.
14 * configure: Regenerate.
15 * config.in: Regenerate.
16 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
17
d81412aa
DE
182014-09-08 Doug Evans <xdje42@gmail.com>
19
20 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
21 with named constant. Fix style of pointer comparison.
22 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
23
a9f116cb
GKB
242014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
25
26 PR gdb/17035
27 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
28 decide whether we display the command on "show user".
29 * cli/cli-script.c (show_user_1): Only verify cmdlines after
30 printing command name.
31 * cli/cli-decode.h (cli_user_command_p): Declare new function.
32 * cli/cli-decode.c (cli_user_command_p): Create helper function
33 to verify whether cmd_list_element is a user-defined command.
34
c75bd3a2
JK
352014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
36
37 PR python/17355
38 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
39 Fix goto out of TRY_CATCH.
40
faa42425 412014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 42 Tom Tromey <tromey@redhat.com>
faa42425
DE
43
44 PR 15276
45 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
46 $_any_caller_matches.
47 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
48 * python/lib/gdb/function/caller_is.py: New file.
49
0d41ba00
DE
502014-09-06 Doug Evans <xdje42@gmail.com>
51
52 * infcmd.c (program_info): Fix typo.
53
474ca4f6
SDJ
542014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 PR gdb/17235
57 * stap-probe.c (stap_parse_single_operand): Delete unused variable
58 'number'. New variable 'has_digit'. Rewrite code to deal with
59 subexpressions on SDT probes.
60
ebf13736
PA
612014-09-04 Pedro Alves <palves@redhat.com>
62
63 * c-exp.y (parse_number): Skip handling base-switching prefixes if
64 the input is only one character long.
65
eb0b0463
SDJ
662014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
67
68 PR fortran/17237
69 * f-valprint.c (f_val_print): Specify the correct print option to
70 use when printing integer values.
71
5ee44bfa
GB
722014-09-04 Gary Benson <gbenson@redhat.com>
73
74 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
75 Remove code to cope with LWPs wrapped as PIDs.
76 Add assertions to ensure no wrapped LWPs are passed.
77
4875ffdb
PA
782014-09-04 Pedro Alves <palves@redhat.com>
79
80 * value.c (value_ranges_copy_adjusted): New function, factored out
81 from ...
82 (value_contents_copy_raw): ... here.
83 (unpack_value_bits_as_long_1): Rename back to ...
84 (unpack_bits_as_long): ... this. Remove 'original_value' and
85 'result' parameters. Change return type to LONGEST.
86 (unpack_value_bits_as_long): Delete.
87 (unpack_value_field_as_long_1): Delete.
88 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
89 (unpack_value_bitfield): New function.
90 (value_field_bitfield): Reimplement using unpack_value_bitfield.
91 (value_fetch_lazy): Use unpack_value_bitfield.
92 * value.h (unpack_value_bits_as_long): Delete declaration.
93
5f3b99cf
SS
942014-09-03 Sasha Smundak <asmundak@google.com>
95
96 * python/py-frame.c (frapy_read_register): New function.
97
ac740bc7
JH
982014-09-03 James Hogan <james.hogan@imgtec.com>
99
100 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
101 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
102
7d793aa9
SDJ
1032014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
104
105 PR python/16699
106 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
107 function.
108 (add_cmd): Set "completer_handle_brkchars" to NULL.
109 * cli/cli-decode.h (struct cmd_list_element)
110 <completer_handle_brkchars>: New field.
111 * command.h (completer_ftype_void): New typedef.
112 (set_cmd_completer_handle_brkchars): New prototype.
113 * completer.c (set_gdb_completion_word_break_characters): New
114 function.
115 (complete_line_internal): Call "completer_handle_brkchars"
116 callback from command.
117 * completer.h: Include "command.h".
118 (set_gdb_completion_word_break_characters): New prototype.
119 * python/py-cmd.c (cmdpy_completer_helper): New function.
120 (cmdpy_completer_handle_brkchars): New function.
121 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
122 (cmdpy_init): Set completer_handle_brkchars to
123 cmdpy_completer_handle_brkchars.
124
97ea6506
GB
1252014-09-03 Gary Benson <gbenson@redhat.com>
126
127 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
128 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
129 Loop conditions changed to equivalent form.
130 (struct x86_debug_reg_state): Updated dr_ref_count comment.
131 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
132 ALL_DEBUG_ADDRESS_REGISTERS.
133
d1437815
JB
1342014-09-03 Joel Brobecker <brobecker@adacore.com>
135
136 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
137 description fix.
138
9b94fcf1
DE
1392014-09-02 Doug Evans <dje@google.com>
140
141 * typeprint.c (find_global_typedef): Fix comment.
142
df7e5265
GB
1432014-09-02 Gary Benson <gbenson@redhat.com>
144
145 * i386-nat.h: Renamed as...
146 * x86-nat.h: New file. All type, function and variable name
147 prefixes changed from "i386_" to "x86_". All references updated.
148 * i386-nat.c: Renamed as...
149 * x86-nat.c: New file. All type, function and variable name
150 prefixes changed from "i386_" to "x86_". All references updated.
151 * common/i386-xstate.h: Renamed as...
152 * common/x86-xstate.h: New file. All type, function and variable
153 name prefixes changed from "i386_" to "x86_". All references
154 updated.
155 * nat/i386-cpuid.h: Renamed as...
156 * nat/x86-cpuid.h: New file. All type, function and variable name
157 prefixes changed from "i386_" to "x86_". All references updated.
158 * nat/i386-gcc-cpuid.h: Renamed as...
159 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
160 name prefixes changed from "i386_" to "x86_". All references
161 updated.
162 * nat/i386-dregs.h: Renamed as...
163 * nat/x86-dregs.h: New file. All type, function and variable name
164 prefixes changed from "i386_" to "x86_". All references updated.
165 * nat/i386-dregs.c: Renamed as...
166 * nat/x86-dregs.c: New file. All type, function and variable name
167 prefixes changed from "i386_" to "x86_". All references updated.
168
1c3569d4
MR
1692014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
170
171 * varobj.c (_initialize_varobj): Move to the end of file.
172
ff55e1b5
GB
1732014-08-29 Gary Benson <gbenson@redhat.com>
174
175 * common/common-exceptions.h: New file.
176 * common/common-exceptions.c: Likewise.
177 * Makefile.in (SFILES): Add common/common-exceptions.c.
178 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
179 (COMMON_OBS): Add common-exceptions.o.
180 (common-exceptions.o): New rule.
181 * exceptions.h (common-exceptions.h): Include.
182 (gdb_setjmp.h): Do not include.
183 (return_reason): Moved to common-exceptions.h.
184 (enum return_reason): Likewise.
185 (RETURN_MASK): Likewise.
186 (typedef return_mask): Likewise.
187 (enum errors): Likewise.
188 (struct gdb_exception): Likewise.
189 (exceptions_state_mc_init): Likewise.
190 (exceptions_state_mc_action_iter): Likewise.
191 (exceptions_state_mc_action_iter_1): Likewise.
192 (TRY_CATCH): Likewise.
193 (throw_exception): Likewise.
194 (throw_verror): Likewise.
195 (throw_vquit): Likewise.
196 (throw_error): Likewise.
197 (throw_quit): Likewise.
198 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
199 (enum catcher_action): Likewise.
200 (struct catcher): Likewise.
201 (current_catcher): Likewise.
202 (catcher_list_size): Likewise.
203 (exceptions_state_mc_init): Likewise.
204 (catcher_pop): Likewise.
205 (exceptions_state_mc): Likewise.
206 (exceptions_state_mc_action_iter): Likewise.
207 (exceptions_state_mc_action_iter_1): Likewise.
208 (throw_exception): Likewise.
209 (exception_messages): Likewise.
210 (exception_messages_size): Likewise.
211 (throw_it): Likewise.
212 (throw_verror): Likewise.
213 (throw_vquit): Likewise.
214 (throw_error): Likewise.
215 (throw_quit): Likewise.
216 (prepare_to_throw_exception): New function.
217
e9bcb658
GB
2182014-08-29 Gary Benson <gbenson@redhat.com>
219
220 * common/gdb_setjmp.h: New file.
221 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
222 * configure.ac: Move sigsetjmp check...
223 * common/common.m4: ...here.
224 * configure: Regenerate.
225 * cp-support.c (SIGJMP_BUF): Delete.
226 (SIGSETJMP): Likewise.
227 (SIGLONGJMP): Likewise.
228 * exceptions.h (gdb_setjmp.h): Include.
229 (setjmp.h): Do not include.
230 (EXCEPTIONS_SIGJMP_BUF): Delete.
231 (EXCEPTIONS_SIGSETJMP): Likewise.
232 (EXCEPTIONS_SIGLONGJMP): Likewise.
233 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
234 from gdb_setjmp.h.
235 * exceptions.c: Likewise.
236
e3180625
GB
2372014-08-29 Gary Benson <gbenson@redhat.com>
238
239 * cleanups.h: Moved to...
240 * common/cleanups.h: New file.
241 * cleanups.c: Moved to...
242 * common/cleanups.c: New file. Include common-defs.h and
243 cleanups.h. Do not include defs.h.
244 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
245 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
246 (cleanups.o): New rule.
247
e3d6ba5d
GB
2482014-08-29 Gary Benson <gbenson@redhat.com>
249
250 * common/errors.h (internal_warning): New declaration.
251 (internal_vwarning): Likewise.
252 * common/errors.c (internal_warning): New function.
253 * utils.h (internal_warning): Don't declare.
254 (internal_vwarning): Likewise.
255 * utils.c (internal_warning): Removed.
256
075c7033
GB
2572014-08-29 Gary Benson <gbenson@redhat.com>
258
259 * main.c (captured_main): Use warning during startup.
260 Prefix startup warning messages with command name.
261
91b35fd0
GB
2622014-08-29 Gary Benson <gbenson@redhat.com>
263
264 * main.c (captured_main): Handle usage errors with error.
265
b1ec390e
GB
2662014-08-29 Gary Benson <gbenson@redhat.com>
267
268 * go32-nat.c (go32_create_inferior): Replace a fprintf/
269 exit pair with a call to error. Wrap the message with _().
270
fd0ef3dd
GB
2712014-08-29 Gary Benson <gbenson@redhat.com>
272
273 * main.c (captured_main): Replace a fprintf/exit
274 pair with a call to error. Wrap the message with _().
275
e0e6bcab
GB
2762014-08-29 Gary Benson <gbenson@redhat.com>
277
278 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
279 pairs with calls to error. Wrap the message with _().
280
0d2f5c07
GB
2812014-08-29 Gary Benson <gbenson@redhat.com>
282
283 * utils.c (vwarning): Protect calls to target_terminal_ours
284 and wrap_here.
285
5df43998
GB
2862014-08-29 Gary Benson <gbenson@redhat.com>
287
288 * exceptions.c (print_flush): Protect calls to
289 target_terminal_ours and wrap_here.
290
2437fd32
GB
2912014-08-29 Gary Benson <gbenson@redhat.com>
292
293 * utils.h (filtered_printing_initialized): New declaration.
294 * utils.c (abort_with_message): New function.
295 (internal_vproblem): Use abort_with_message for first level
296 recursive internal problems, and if gdb_stderr is not set up.
297 Protect calls to target_terminal_ours, begin_line and query.
298
f1f58506
DE
2992014-08-28 Doug Evans <dje@google.com>
300
301 * symtab.c (in_prologue): Move definition to better spot.
302 (skip_prologue_using_sal): Ditto.
303
aab2f208
DE
3042014-08-28 Doug Evans <dje@google.com>
305
306 * symtab.c (find_function_start_sal): Move definition to better spot.
307
6b65d1b6
YQ
3082014-08-28 Yao Qi <yao@codesourcery.com>
309
310 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
311 found_stack_adjust in forward scan. Remove condition check
312 on found_stack_adjust which is always true. Indent the code.
313
a1b34d15
YQ
3142014-08-28 Yao Qi <yao@codesourcery.com>
315
316 * dwarf2read.c (dwarf_decode_lines): Update declaration.
317 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
318 (dwarf_decode_lines): Remove argument
319 want_line_info. Remove condition check on want_line_info.
320 Callers update.
321
d5962de5
DE
3222014-08-27 Doug Evans <dje@google.com>
323
324 * dwarf2read.c (dwarf_record_line): Fix typo.
325
9b139002
SDJ
3262014-08-27 Patrick Palka <patrick@parcs.ath.cx>
327
328 * target.h (struct target_ops::to_terminal_save_ours): Remove
329 declaration.
330 (target_terminal_save_ours): Remove macro.
331 * target-delegates.c: Regenerate.
332 * inf-child.c (inf_child_target): Don't set the nonexistent
333 field to_terminal_save_ours.
334 * inferior.h (child_terminal_save_ours): Remove declaration.
335 * terminal.h (gdb_save_tty_state): New declaration.
336 * inflow.c (child_terminal_save_ours): Rename to ...
337 (gdb_save_tty_state): ... this.
338 * tui/tui.c: Include terminal.h.
339 (tui_enable): Use gdb_save_tty_state instead of
340 target_terminal_save_ours.
341 (tui_disable): Likewise.
342
9debeba0
DE
3432014-08-25 Doug Evans <dje@google.com>
344
345 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
346 Pass NULL instead of 0 for context pointer.
347
428fc5fc
YQ
3482014-08-25 Yao Qi <yao@codesourcery.com>
349
350 * dwarf2read.c: Fix grammatical error.
351
cdc07690
YQ
3522014-08-24 Yao Qi <yao@codesourcery.com>
353
354 * dwarf2read.c (scan_partial_symbols): Update comments.
355 Rename argument 'need_pc' with 'set_addrmap'.
356 (add_partial_namespace): Rename argument 'need_pc' with
357 'set_addrmap'.
358 (add_partial_module): Likewise.
359 (add_partial_subprogram): Likewise. Update comments.
360 (dwarf2_name): Fix typo.
361
a05a36a5
DE
3622014-08-22 Doug Evans <dje@google.com>
363
364 PR 17276
365 * dwarf2read.c (dwarf_record_line_p): New function.
366 (dwarf_decode_lines_1): Ignore subsequent line number entries
367 for the same line if any entry had a non-zero discriminator.
368
252a6764
DE
3692014-08-22 Doug Evans <dje@google.com>
370
371 * buildsym.h (record_line_ftype): New typedef.
372 (record_line): Use it.
373 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
374 (dwarf_decode_lines_1): Call them.
375
510db052
YQ
3762014-08-22 Yao Qi <yao@codesourcery.com>
377
378 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
379 (ctf_end): Remove code.
380
22fd09ae
JK
3812014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
384 (linux_make_corefile_notes): call update_thread_list, protected against
385 exceptions.
386
656e8868
PA
3872014-08-21 Pedro Alves <palves@redhat.com>
388
389 * infcmd.c (attach_command): Remove comment.
390
de589d04
WN
3912014-08-21 Bin Cheng <bin.cheng@arm.com>
392
393 * aarch64-linux-nat.c (dr_changed_t): Change the type from
394 unsigned LONGEST to ULONGEST.
395
2a31c623
PA
3962014-08-20 Pedro Alves <palves@redhat.com>
397
398 * Makefile.in (check-read1): New rule.
399
d36430db
JB
4002014-08-20 Joel Brobecker <brobecker@adacore.com>
401
402 * value.c (value_from_contents_and_address): Strip resolved_type's
403 typedef layers before checking its TYPE_DATA_LOCATION.
404
000339af
PA
4052014-08-20 Pedro Alves <palves@redhat.com>
406
407 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
408
5f52445b
YQ
4092014-08-20 Yao Qi <yao@codesourcery.com>
410
411 * amd64-tdep.c (amd64_classify): Add a blank line after the
412 example. Move "*/" to a new line.
413 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
414 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
415 * dwarf2read.c (psymtab_include_file_name): Likewise.
416
9a0dc9e3
PA
4172014-08-19 Andrew Burgess <aburgess@broadcom.com>
418 Pedro Alves <palves@redhat.com>
419
420 PR symtab/14604
421 PR symtab/14605
422 * ada-lang.c (coerce_unspec_val_to_type): Use
423 value_contents_copy_raw.
424 * ada-valprint.c (val_print_packed_array_elements): Adjust.
425 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
426 * cp-valprint.c (cp_print_value_fields): Let the common printing
427 code handle optimized out values.
428 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
429 * d-valprint.c (dynamic_array_type): Use
430 value_bits_any_optimized_out.
431 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
432 check_any_valid fields.
433 (check_pieced_value_bits): Delete and inline ...
434 (check_pieced_synthetic_pointer): ... here.
435 (check_pieced_value_validity): Delete.
436 (check_pieced_value_invalid): Delete.
437 (pieced_value_funcs): Remove check_validity and check_any_valid
438 fields.
439 (read_pieced_value): Use mark_value_bits_optimized_out.
440 (write_pieced_value): Switch to use
441 mark_value_bytes_optimized_out.
442 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
443 of assuming the whole value is optimized out.
444 * findvar.c (read_frame_register_value): Remove special handling
445 of optimized out registers.
446 (value_from_register): Use mark_value_bytes_optimized_out.
447 * frame-unwind.c (frame_unwind_got_optimized): Use
448 mark_value_bytes_optimized_out.
449 * jv-valprint.c (java_value_print): Adjust.
450 (java_print_value_fields): Let the common printing code handle
451 optimized out values.
452 * mips-tdep.c (mips_print_register): Remove special handling of
453 optimized out registers.
454 * opencl-lang.c (lval_func_check_validity): Delete.
455 (lval_func_check_any_valid): Delete.
456 (opencl_value_funcs): Remove check_validity and check_any_valid
457 fields.
458 * p-valprint.c (pascal_object_print_value_fields): Let the common
459 printing code handle optimized out values.
460 * stack.c (read_frame_arg): Remove special handling of optimized
461 out values. Fetch both VAL and ENTRYVAL before comparing
462 contents. Adjust to value_available_contents_eq rename.
463 * valprint.c (valprint_check_validity)
464 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
465 (val_print_array_elements): Adjust.
466 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
467 (value_bits_any_optimized_out): New function.
468 (value_entirely_covered_by_range_vector): New function, factored
469 out from value_entirely_unavailable.
470 (value_entirely_unavailable): Reimplement.
471 (value_entirely_optimized_out): New function.
472 (insert_into_bit_range_vector): New function, factored out from
473 mark_value_bits_unavailable.
474 (mark_value_bits_unavailable): Reimplement.
475 (struct ranges_and_idx): New struct.
476 (find_first_range_overlap_and_match): New function, factored out
477 from value_available_contents_bits_eq.
478 (value_available_contents_bits_eq): Rename to ...
479 (value_contents_bits_eq): ... this. Check both unavailable
480 contents and optimized out contents.
481 (value_available_contents_eq): Rename to ...
482 (value_contents_eq): ... this.
483 (allocate_value_lazy): Remove reference to the old optimized_out
484 boolean.
485 (allocate_optimized_out_value): Use
486 mark_value_bytes_optimized_out.
487 (require_not_optimized_out): Adjust to check whether the
488 optimized_out vec is empty.
489 (ranges_copy_adjusted): New function, factored out from
490 value_contents_copy_raw.
491 (value_contents_copy_raw): Also copy the optimized out ranges.
492 Assert the destination ranges aren't optimized out.
493 (value_contents_copy): Update comment, remove call to
494 require_not_optimized_out.
495 (value_contents_equal): Adjust to check whether the optimized_out
496 vec is empty.
497 (set_value_optimized_out, value_optimized_out_const): Delete.
498 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
499 New functions.
500 (value_entirely_optimized_out, value_bits_valid): Delete.
501 (value_copy): Take a VEC copy of the 'optimized_out' field.
502 (value_primitive_field): Remove special handling of optimized out.
503 (value_fetch_lazy): Assert that lazy values have no unavailable
504 regions. Use value_bits_any_optimized_out. Remove some special
505 handling for optimized out values.
506 * value.h: Add intro comment about <optimized out> and
507 <unavailable>.
508 (struct lval_funcs): Remove check_validity and check_any_valid
509 fields.
510 (set_value_optimized_out, value_optimized_out_const): Remove.
511 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
512 New declarations.
513 (value_bits_any_optimized_out): New declaration.
514 (value_bits_valid): Delete declaration.
515 (value_available_contents_eq): Rename to ...
516 (value_contents_eq): ... this, and extend comments.
517
6694c411
JK
5182014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 Fix -fsanitize=address on unreadable inferior strings.
521 * valprint.c (val_print_string): Fix access before BUFFER.
522
89a1c21a
SM
5232014-08-19 Simon Marchi <simon.marchi@ericsson.com>
524
525 * target.c (target_struct_size): Remove.
526 (target_struct_allocsize): Remove.
527 (DEFAULT_ALLOCSIZE): Remove.
528 (target_ops_p): New typedef.
529 (DEF_VEC_P (target_ops_p)): New vector type.
530 (target_structs): Change type to VEC (target_ops_p).
531 (add_target_with_completer): Replace "push" code by VEC_safe_push.
532 (find_default_run_target): Rewrite for loop following changes to
533 target_structs.
534
cb417230
JB
5352014-08-19 Joel Brobecker <brobecker@adacore.com>
536
537 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
538 Adjust code accordingly. Adjust function description comment.
539
817e0957
YQ
5402014-08-19 Yao Qi <yao@codesourcery.com>
541
542 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
543 types.
544
2974be62
AM
5452014-08-19 Alan Modra <amodra@gmail.com>
546
547 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
548 * config.in: Regenerate.
549 * configure: Regenerate.
550
34abf635
GB
5512014-08-19 Tom Tromey <tromey@redhat.com>
552 Gary Benson <gbenson@redhat.com>
553
554 * common/common-debug.h: New file.
555 * common/common-debug.c: Likewise.
556 * debug.c: Likewise.
557 * Makefile.in (SFILES): Add common/common-debug.c.
558 (HFILES_NO_SRCDIR): Add common/common-debug.h.
559 (COMMON_OBS): Add common-debug.o and debug.o.
560 (common-debug.o): New rule.
561 * common/common-defs.h: Include common-debug.h.
562 * common/agent.c (debug_agent_printf): New function.
563 (DEBUG_AGENT): Redefine.
564 * nat/i386-dregs.c (debug_printf): Undefine.
565
f6e94d78
GB
5662014-08-19 Gary Benson <gbenson@redhat.com>
567
568 * common/common-defs.h: Include print-utils.h.
569 * utils.h: Do not include print-utils.h.
570
9239eeab
GB
5712014-08-19 Tom Tromey <tromey@redhat.com>
572 Gary Benson <gbenson@redhat.com>
573
574 * common/common-types.h: New file.
575 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
576 * common/common-defs.h: Include common-types.h.
577 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
578 (ULONGEST): Remove.
579
ef87c8bb
GB
5802014-08-19 Tom Tromey <tromey@redhat.com>
581 Gary Benson <gbenson@redhat.com>
582
583 * common/errors.h: New file.
584 * common/errors.c: Likewise.
585 * Makefile.in (SFILES): Add common/errors.c.
586 (HFILES_NO_SRCDIR): Add common/errors.h.
587 (COMMON_OBS): Add errors.o.
588 (errors.o): New rule.
589 * common/common-defs.h: Include errors.h.
590 * utils.h (perror_with_name, error, verror, warning, vwarning):
591 Don't declare.
592 * common/common-utils.h: (malloc_failure, internal_error):
593 Likewise.
594
196a707b
GB
5952014-08-19 Gary Benson <gbenson@redhat.com>
596
597 * utils.c (internal_vproblem): Always print the message.
598
ded4fc8f
DE
5992014-08-18 Doug Evans <dje@google.com>
600
601 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
602
950c97d8
JB
6032014-08-18 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-typeprint.c (type_is_full_subrange_of_target_type):
606 Return 0 if TYPE is dynamic.
607 (print_range): Add handling of dynamic ranges.
608
3cdcd0ce
JB
6092014-08-18 Keven Boell <keven.boell@intel.com>
610 Joel Brobecker <brobecker@adacore.com>
611
612 * gdbtypes.h (struct main_type): Add field "data_location".
613 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
614 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
615 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
616 a dynamic data location.
617 (resolve_dynamic_type): Add DW_AT_data_location handling.
618 (copy_recursive, copy_type): Copy the data_location information
619 when present.
620 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
621 * value.c (value_from_contents_and_address): Add
622 DW_AT_data_location handling.
623
08412b07
JB
6242014-08-18 Keven Boell <keven.boell@intel.com>
625 Joel Brobecker <brobecker@adacore.com>
626
627 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
628 field "get_object_address".
629 * dwarf2expr.c (execute_stack_op): Add handling for
630 DW_OP_push_object_address.
631 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
632 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
633 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
634 (dwarf_expr_get_obj_addr): New function.
635 (dwarf_expr_ctx_funcs): Add get_object_address field.
636 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
637 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
638 (dwarf2_evaluate_property): Add parameter "address". Use it.
639 (needs_get_obj_addr): New function.
640 (needs_frame_ctx_funcs): Add get_object_address field.
641 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
642 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
643 (resolve_dynamic_array): Likewise.
644
84754697
JB
6452014-08-18 Joel Brobecker <brobecker@adacore.com>
646
647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
648 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
649 fixed value for records and unions for which some GNAT encodings
650 are present.
651
da5c522f
JB
6522014-08-18 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
655 rewrite to avoid "else if" and "else" constructs. Should be
656 a no-op in practice.
657
0d72a7c3
JB
6582014-08-18 Joel Brobecker <brobecker@adacore.com>
659
660 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
661 of lexical block.
662
e66d4446
SC
6632014-08-15 Siva Chandra Reddy <sivachandra@google.com>
664
665 PR c++/17132
666 * eval.c: Update all calls to find_overload_match.
667 * valarith.c: Likewise.
668 (value_user_defined_cpp_op, value_user_defined_op): New
669 argument NOSIDE. Update all callers.
670 * valops.c (find_overload_match): New argument NOSIDE.
671 * value.h (find_overload_match): Update signature.
672
940df408
SC
6732014-08-15 Siva Chandra Reddy <sivachandra@google.com>
674
675 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
676 'items' methods instead of 'iteritems' method on dictionaries.
677
699ca60a
DE
6782014-08-15 Doug Evans <dje@google.com>
679
680 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
681 closer to use.
682
37780ee5
DE
6832014-08-15 Doug Evans <dje@google.com>
684
685 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
686
0ad93d4f
DE
6872014-08-15 Doug Evans <dje@google.com>
688
689 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
690
20d8c372
DE
6912014-08-15 Doug Evans <dje@google.com>
692
693 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
694 unused.
695
cb039ba4
EZ
6962014-08-15 Eli Zaretskii <eliz@gnu.org>
697
698 * dcache.h: Include target.h, to avoid compile time warnings.
699
eb7a547a
JB
7002014-08-15 Joel Brobecker <brobecker@adacore.com>
701
702 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
703 frame_info" partial declaration.
704 * gdbarch.h: Regenerate.
705
783cecc8
YQ
7062014-08-15 Yao Qi <yao@codesourcery.com>
707
708 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
709 Add parameter 'decode_for_pst_p'. Callers update.
710
65c749e7
YQ
7112014-08-13 Yao Qi <yao@codesourcery.com>
712
713 PR build/17104
714 * configure.ac: Use local variable 'pos'.
715 * configure: Regenerated.
716
d769e349
DE
7172014-08-11 Doug Evans <dje@google.com>
718
719 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
720 message, it is redundant with "Reading symbols from ..." message.
721
24f1235e
DE
7222014-08-10 Doug Evans <xdje42@gmail.com>
723
724 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
725
dcd2e6ef
YQ
7262014-08-09 Yao Qi <yao@codesourcery.com>
727
728 PR remote/9053
729 * remote.c (remote_xfer_partial): Remove dead code.
730
070bdf0b
AA
7312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
732
733 * ia64-linux-tdep.c: Include "regset.h".
734 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
735 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
736 (ia64_linux_supply_fpregset): New function.
737 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
738 (ia64_linux_regset_from_core_section): New function.
739 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
740 method.
741
08f9f542
AA
7422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
743
744 * m68klinux-tdep.c: Include "regset.h".
745 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
746 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
747 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
748 (m68k_linux_regset_from_core_section): New function.
749 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
750 method.
751
8f1cee41
AA
7522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
753
754 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
755 function. Move logic to...
756 (tilegx_linux_regmap): ... this new register map.
757 (tilegx_linux_regset): Refer to register map, replace supply
758 method by regcache_supply_regset, and add collect method.
759 * tilegx-tdep.h (enum tilegx_regnum): New enum value
760 TILEGX_FIRST_EASY_REGNUM.
761
c5741217
AA
7622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
763
764 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
765 that calls regcache_supply_regset and handles the EPC register
766 separately. Move main logic to...
767 (score7_linux_gregmap): ... this new register map.
768 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
769 (score7_linux_gregset): Refer to register map. Add collect method.
770 (score7_linux_regset_from_core_section): Replace
771 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
772 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
773 (struct regset): Delete unused forward declaraction.
774 (struct pt_regs): Delete structure definition.
775 (elf_gregset_t): Delete typedef.
776
81580573
AA
7772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
778
779 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
780 (nios2_core_regset): Add collect method.
781
ba199d7d
AA
7822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
783
784 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
785 platform-independent and don't write to read-only input buffer.
786 (m32r_linux_collect_gregset): New function.
787 (m32r_linux_gregset): Add collect method.
788
0006a9da
AA
7892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
790
791 * hppa-linux-tdep.c (greg_map): Rename to...
792 (hppa_linux_gregmap): ... this. Also convert to
793 regcache_map_entry format.
794 (hppa_linux_supply_regset): Delete function.
795 (hppa_linux_supply_fpregset): Delete function. Move logic to...
796 (hppa_linux_fpregmap): ... this new register map.
797 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
798 register map, replace supply method by regcache_supply_regset, and
799 add collect method regcache_collect_regset.
800
901e1b23
AA
8012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
802
803 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
804 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
805 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
806 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
807 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
808 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
809 (frv_linux_supply_gregset): Replace main logic by call to
810 regcache_supply_regset, but keep clearing gr32-gr63.
811 (frv_linux_supply_fpregset): Delete function.
812 (frv_linux_gregset): Refer to appropriate register map and add
813 regcache_collect_regset as the collect method.
814 (frv_linux_fpregset): Likewise. Also exchange the supply method
815 by regcache_supply_regset.
816
1d6e7555
AA
8172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
818
819 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
820 by call to alpha_supply_int_regs.
821 (alpha_linux_collect_gregset): New function.
822 (alpha_linux_supply_fpregset): Replace logic by call to
823 alpha_supply_fp_regs.
824 (alpha_linux_collect_fpregset): New function.
825 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
826
d4d793bf
AA
8272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
828
829 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
830 by call to regcache_collect_regset.
831 (supply_gregset, supply_fpregset): Call regcache_supply_regset
832 instead of aarch64_linux_supply_gregset/_fpregset.
833 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
834 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
835 header file instead.
836 (aarch64_linux_supply_gregset, supply_gregset_from_core)
837 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
838 functions. Move logic to ...
839 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
840 register maps.
841 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
842 refer to new register maps, replace *_regset_from_core by
843 regcache_supply_regset, and also use regcache_collect_regset.
844 * aarch64-linux-tdep.h: Include "regset.h".
845 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
846 Delete prototypes.
847 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
848 macros, moved from C source file.
849 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
850 variable declarations.
851
99b7da5d
AA
8522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
853
854 * s390-linux-nat.c: Include "regset.h".
855 (regmap_gregset): Delete macro.
856 (s390_64_regmap_gregset): New register map for
857 regcache_supply/_collect_regset.
858 (s390_64_gregset): New regset.
859 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
860 (regmap_fpregset): Delete macro.
861 (s390_native_supply, s390_native_collect): Delete functions.
862 (supply_gregset, fill_gregset): Replace s390-specific regmap
863 handling by a call to regcache_supply/_collect_regset.
864 (supply_fpregset, fill_fpregset): Call regcache_supply/
865 _collect_regset instead of s390_native_supply/_collect.
866 (fetch_regset, store_regset): Likewise. Also change the last
867 parameter to a regset instead of a regmap.
868 (s390_linux_fetch_inferior_registers)
869 (390_linux_store_inferior_registers): Adjust last parameter in
870 calls to fetch_regset and store_regset.
871 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
872 (s390_gregmap): ... this. Also make static const and convert to
873 regcache_map_entry format.
874 (s390x_regmap_gregset): Delete.
875 (s390_regmap_fpregset): Rename to...
876 (s390_fpregmap): ... this. Make static const and convert to
877 regcache_map_entry format.
878 (s390_regmap_upper, s390_regmap_last_break)
879 (s390x_regmap_last_break, s390_regmap_system_call)
880 (s390_regmap_tdb): Likewise.
881 (s390_supply_regset, s390_collect_regset): Remove functions.
882 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
883 s390_supply_regset.
884 (s390_gregset, s390_fpregset, s390_upper_regset)
885 (s390_last_break_regset, s390x_last_break_regset)
886 (s390_system_call_regset, s390_tdb_regset): Make global and
887 replace s390_supply/_collect_regset by regcache_supply/
888 _collect_regset.
889 (s390x_gregset): Delete.
890 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
891 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
892 (s390_regmap_fpregset, s390_regmap_last_break)
893 (s390x_regmap_last_break, s390_regmap_system_call)
894 (s390_regmap_tdb): Delete global variable declarations.
895 (s390_gregset, s390_fpregset, s390_last_break_regset)
896 (s390x_last_break_regset, s390_system_call_regset)
897 (s390_tdb_regset): New global variable declarations.
898
0b309272
AA
8992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
900
901 * regcache.c: Include "regset.h".
902 (regcache_transfer_regset): New local function.
903 (regcache_supply_regset, regcache_collect_regset): New functions.
904 * regcache.h (struct regcache_map_entry): New structure.
905 (REGCACHE_MAP_SKIP): New enum value.
906 (regcache_supply_regset, regcache_collect_regset): New prototypes.
907
7fefa8d7
AA
9082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
909
910 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
911 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
912 (ppc_linux_collect_gregset ): Likewise.
913 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
914 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
915 (ppc_collect_vrregset): Likewise.
916 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
917 Likewise.
918
96c4f946
YQ
9192014-08-07 Yao Qi <yao@codesourcery.com>
920
921 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
922 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
923 * remote.c (remote_read_bytes): Likewise.
924
fffbe6a8
YQ
9252014-08-07 Yao Qi <yao@codesourcery.com>
926
927 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
928
5ee8a82c
YQ
9292014-08-07 Yao Qi <yao@codesourcery.com>
930
931 PR remote/17230
932 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
933 TARGET_XFER_OK instead of 0.
934
bb974a24
GB
9352014-08-07 Gary Benson <gbenson@redhat.com>
936
937 * common/common-defs.h: Include errno.h.
938 * defs.h: Do not include errno.h.
939 * ada-typeprint.c: Likewise.
940 * c-typeprint.c: Likewise.
941 * core-regset.c: Likewise.
942 * corefile.c: Likewise.
943 * corelow.c: Likewise.
944 * event-loop.c: Likewise.
945 * f-typeprint.c: Likewise.
946 * gnu-nat.c: Likewise.
947 * go32-nat.c: Likewise.
948 * i386gnu-nat.c: Likewise.
949 * m2-typeprint.c: Likewise.
950 * nat/linux-btrace.c: Likewise.
951 * p-typeprint.c: Likewise.
952 * procfs.c: Likewise.
953 * remote-sim.c: Likewise.
954 * rs6000-nat.c: Likewise.
955 * target.c: Likewise.
956 * typeprint.c: Likewise.
957 * ui-file.c: Likewise.
958 * valops.c: Likewise.
959 * valprint.c: Likewise.
960
6d3d12eb
GB
9612014-08-07 Gary Benson <gbenson@redhat.com>
962
963 * common/common-defs.h: Include string.h.
964 * aarch64-tdep.c: Do not include string.h.
965 * ada-exp.y: Likewise.
966 * ada-lang.c: Likewise.
967 * ada-lex.l: Likewise.
968 * ada-typeprint.c: Likewise.
969 * ada-valprint.c: Likewise.
970 * aix-thread.c: Likewise.
971 * alpha-linux-tdep.c: Likewise.
972 * alpha-mdebug-tdep.c: Likewise.
973 * alpha-nat.c: Likewise.
974 * alpha-osf1-tdep.c: Likewise.
975 * alpha-tdep.c: Likewise.
976 * alphanbsd-tdep.c: Likewise.
977 * amd64-dicos-tdep.c: Likewise.
978 * amd64-linux-tdep.c: Likewise.
979 * amd64-nat.c: Likewise.
980 * amd64-sol2-tdep.c: Likewise.
981 * amd64fbsd-tdep.c: Likewise.
982 * amd64obsd-tdep.c: Likewise.
983 * arch-utils.c: Likewise.
984 * arm-linux-nat.c: Likewise.
985 * arm-linux-tdep.c: Likewise.
986 * arm-tdep.c: Likewise.
987 * arm-wince-tdep.c: Likewise.
988 * armbsd-tdep.c: Likewise.
989 * armnbsd-nat.c: Likewise.
990 * armnbsd-tdep.c: Likewise.
991 * armobsd-tdep.c: Likewise.
992 * avr-tdep.c: Likewise.
993 * ax-gdb.c: Likewise.
994 * ax-general.c: Likewise.
995 * bcache.c: Likewise.
996 * bfin-tdep.c: Likewise.
997 * breakpoint.c: Likewise.
998 * build-id.c: Likewise.
999 * buildsym.c: Likewise.
1000 * c-exp.y: Likewise.
1001 * c-lang.c: Likewise.
1002 * c-typeprint.c: Likewise.
1003 * c-valprint.c: Likewise.
1004 * charset.c: Likewise.
1005 * cli-out.c: Likewise.
1006 * cli/cli-cmds.c: Likewise.
1007 * cli/cli-decode.c: Likewise.
1008 * cli/cli-dump.c: Likewise.
1009 * cli/cli-interp.c: Likewise.
1010 * cli/cli-logging.c: Likewise.
1011 * cli/cli-script.c: Likewise.
1012 * cli/cli-setshow.c: Likewise.
1013 * cli/cli-utils.c: Likewise.
1014 * coffread.c: Likewise.
1015 * common/agent.c: Likewise.
1016 * common/buffer.c: Likewise.
1017 * common/buffer.h: Likewise.
1018 * common/common-utils.c: Likewise.
1019 * common/filestuff.c: Likewise.
1020 * common/filestuff.c: Likewise.
1021 * common/format.c: Likewise.
1022 * common/print-utils.c: Likewise.
1023 * common/rsp-low.c: Likewise.
1024 * common/signals.c: Likewise.
1025 * common/vec.h: Likewise.
1026 * common/xml-utils.c: Likewise.
1027 * core-regset.c: Likewise.
1028 * corefile.c: Likewise.
1029 * corelow.c: Likewise.
1030 * cp-abi.c: Likewise.
1031 * cp-name-parser.y: Likewise.
1032 * cp-support.c: Likewise.
1033 * cp-valprint.c: Likewise.
1034 * cris-tdep.c: Likewise.
1035 * d-exp.y: Likewise.
1036 * darwin-nat.c: Likewise.
1037 * dbxread.c: Likewise.
1038 * dcache.c: Likewise.
1039 * demangle.c: Likewise.
1040 * dicos-tdep.c: Likewise.
1041 * disasm.c: Likewise.
1042 * doublest.c: Likewise.
1043 * dsrec.c: Likewise.
1044 * dummy-frame.c: Likewise.
1045 * dwarf2-frame.c: Likewise.
1046 * dwarf2loc.c: Likewise.
1047 * dwarf2read.c: Likewise.
1048 * elfread.c: Likewise.
1049 * environ.c: Likewise.
1050 * eval.c: Likewise.
1051 * event-loop.c: Likewise.
1052 * exceptions.c: Likewise.
1053 * exec.c: Likewise.
1054 * expprint.c: Likewise.
1055 * f-exp.y: Likewise.
1056 * f-lang.c: Likewise.
1057 * f-typeprint.c: Likewise.
1058 * f-valprint.c: Likewise.
1059 * fbsd-nat.c: Likewise.
1060 * findcmd.c: Likewise.
1061 * findvar.c: Likewise.
1062 * fork-child.c: Likewise.
1063 * frame.c: Likewise.
1064 * frv-linux-tdep.c: Likewise.
1065 * frv-tdep.c: Likewise.
1066 * gdb.c: Likewise.
1067 * gdb_bfd.c: Likewise.
1068 * gdbarch.c: Likewise.
1069 * gdbarch.sh: Likewise.
1070 * gdbtypes.c: Likewise.
1071 * gnu-nat.c: Likewise.
1072 * gnu-v2-abi.c: Likewise.
1073 * gnu-v3-abi.c: Likewise.
1074 * go-exp.y: Likewise.
1075 * go-lang.c: Likewise.
1076 * go32-nat.c: Likewise.
1077 * guile/guile.c: Likewise.
1078 * guile/scm-auto-load.c: Likewise.
1079 * hppa-hpux-tdep.c: Likewise.
1080 * hppa-linux-nat.c: Likewise.
1081 * hppanbsd-tdep.c: Likewise.
1082 * hppaobsd-tdep.c: Likewise.
1083 * i386-cygwin-tdep.c: Likewise.
1084 * i386-dicos-tdep.c: Likewise.
1085 * i386-linux-tdep.c: Likewise.
1086 * i386-nto-tdep.c: Likewise.
1087 * i386-sol2-tdep.c: Likewise.
1088 * i386-tdep.c: Likewise.
1089 * i386bsd-tdep.c: Likewise.
1090 * i386gnu-nat.c: Likewise.
1091 * i386nbsd-tdep.c: Likewise.
1092 * i386obsd-tdep.c: Likewise.
1093 * i387-tdep.c: Likewise.
1094 * ia64-libunwind-tdep.c: Likewise.
1095 * ia64-linux-nat.c: Likewise.
1096 * inf-child.c: Likewise.
1097 * inf-ptrace.c: Likewise.
1098 * inf-ttrace.c: Likewise.
1099 * infcall.c: Likewise.
1100 * infcmd.c: Likewise.
1101 * inflow.c: Likewise.
1102 * infrun.c: Likewise.
1103 * interps.c: Likewise.
1104 * iq2000-tdep.c: Likewise.
1105 * irix5-nat.c: Likewise.
1106 * jv-exp.y: Likewise.
1107 * jv-lang.c: Likewise.
1108 * jv-typeprint.c: Likewise.
1109 * jv-valprint.c: Likewise.
1110 * language.c: Likewise.
1111 * linux-fork.c: Likewise.
1112 * linux-nat.c: Likewise.
1113 * lm32-tdep.c: Likewise.
1114 * m2-exp.y: Likewise.
1115 * m2-typeprint.c: Likewise.
1116 * m32c-tdep.c: Likewise.
1117 * m32r-linux-nat.c: Likewise.
1118 * m32r-linux-tdep.c: Likewise.
1119 * m32r-rom.c: Likewise.
1120 * m32r-tdep.c: Likewise.
1121 * m68hc11-tdep.c: Likewise.
1122 * m68k-tdep.c: Likewise.
1123 * m68kbsd-tdep.c: Likewise.
1124 * m68klinux-nat.c: Likewise.
1125 * m68klinux-tdep.c: Likewise.
1126 * m88k-tdep.c: Likewise.
1127 * machoread.c: Likewise.
1128 * macrocmd.c: Likewise.
1129 * main.c: Likewise.
1130 * mdebugread.c: Likewise.
1131 * mem-break.c: Likewise.
1132 * memattr.c: Likewise.
1133 * memory-map.c: Likewise.
1134 * mep-tdep.c: Likewise.
1135 * mi/mi-cmd-break.c: Likewise.
1136 * mi/mi-cmd-disas.c: Likewise.
1137 * mi/mi-cmd-env.c: Likewise.
1138 * mi/mi-cmd-stack.c: Likewise.
1139 * mi/mi-cmd-var.c: Likewise.
1140 * mi/mi-cmds.c: Likewise.
1141 * mi/mi-console.c: Likewise.
1142 * mi/mi-getopt.c: Likewise.
1143 * mi/mi-interp.c: Likewise.
1144 * mi/mi-main.c: Likewise.
1145 * mi/mi-parse.c: Likewise.
1146 * microblaze-rom.c: Likewise.
1147 * microblaze-tdep.c: Likewise.
1148 * mingw-hdep.c: Likewise.
1149 * minidebug.c: Likewise.
1150 * minsyms.c: Likewise.
1151 * mips-irix-tdep.c: Likewise.
1152 * mips-linux-tdep.c: Likewise.
1153 * mips-tdep.c: Likewise.
1154 * mips64obsd-tdep.c: Likewise.
1155 * mipsnbsd-tdep.c: Likewise.
1156 * mipsread.c: Likewise.
1157 * mn10300-linux-tdep.c: Likewise.
1158 * mn10300-tdep.c: Likewise.
1159 * monitor.c: Likewise.
1160 * moxie-tdep.c: Likewise.
1161 * mt-tdep.c: Likewise.
1162 * nat/linux-btrace.c: Likewise.
1163 * nat/linux-osdata.c: Likewise.
1164 * nat/linux-procfs.c: Likewise.
1165 * nat/linux-ptrace.c: Likewise.
1166 * nat/linux-waitpid.c: Likewise.
1167 * nbsd-tdep.c: Likewise.
1168 * nios2-linux-tdep.c: Likewise.
1169 * nto-procfs.c: Likewise.
1170 * nto-tdep.c: Likewise.
1171 * objc-lang.c: Likewise.
1172 * objfiles.c: Likewise.
1173 * opencl-lang.c: Likewise.
1174 * osabi.c: Likewise.
1175 * osdata.c: Likewise.
1176 * p-exp.y: Likewise.
1177 * p-lang.c: Likewise.
1178 * p-typeprint.c: Likewise.
1179 * parse.c: Likewise.
1180 * posix-hdep.c: Likewise.
1181 * ppc-linux-nat.c: Likewise.
1182 * ppc-sysv-tdep.c: Likewise.
1183 * ppcfbsd-tdep.c: Likewise.
1184 * ppcnbsd-tdep.c: Likewise.
1185 * ppcobsd-tdep.c: Likewise.
1186 * printcmd.c: Likewise.
1187 * procfs.c: Likewise.
1188 * prologue-value.c: Likewise.
1189 * python/py-auto-load.c: Likewise.
1190 * python/py-gdb-readline.c: Likewise.
1191 * ravenscar-thread.c: Likewise.
1192 * regcache.c: Likewise.
1193 * registry.c: Likewise.
1194 * remote-fileio.c: Likewise.
1195 * remote-m32r-sdi.c: Likewise.
1196 * remote-mips.c: Likewise.
1197 * remote-notif.c: Likewise.
1198 * remote-sim.c: Likewise.
1199 * remote.c: Likewise.
1200 * reverse.c: Likewise.
1201 * rs6000-aix-tdep.c: Likewise.
1202 * ser-base.c: Likewise.
1203 * ser-go32.c: Likewise.
1204 * ser-mingw.c: Likewise.
1205 * ser-pipe.c: Likewise.
1206 * ser-tcp.c: Likewise.
1207 * ser-unix.c: Likewise.
1208 * serial.c: Likewise.
1209 * sh-tdep.c: Likewise.
1210 * sh64-tdep.c: Likewise.
1211 * shnbsd-tdep.c: Likewise.
1212 * skip.c: Likewise.
1213 * sol-thread.c: Likewise.
1214 * solib-dsbt.c: Likewise.
1215 * solib-frv.c: Likewise.
1216 * solib-osf.c: Likewise.
1217 * solib-som.c: Likewise.
1218 * solib-spu.c: Likewise.
1219 * solib-target.c: Likewise.
1220 * solib.c: Likewise.
1221 * somread.c: Likewise.
1222 * source.c: Likewise.
1223 * sparc-nat.c: Likewise.
1224 * sparc-sol2-tdep.c: Likewise.
1225 * sparc-tdep.c: Likewise.
1226 * sparc64-tdep.c: Likewise.
1227 * sparc64fbsd-tdep.c: Likewise.
1228 * sparc64nbsd-tdep.c: Likewise.
1229 * sparcnbsd-tdep.c: Likewise.
1230 * spu-linux-nat.c: Likewise.
1231 * spu-multiarch.c: Likewise.
1232 * spu-tdep.c: Likewise.
1233 * stabsread.c: Likewise.
1234 * stack.c: Likewise.
1235 * std-regs.c: Likewise.
1236 * symfile.c: Likewise.
1237 * symmisc.c: Likewise.
1238 * symtab.c: Likewise.
1239 * target.c: Likewise.
1240 * thread.c: Likewise.
1241 * tilegx-linux-nat.c: Likewise.
1242 * tilegx-tdep.c: Likewise.
1243 * top.c: Likewise.
1244 * tracepoint.c: Likewise.
1245 * tui/tui-command.c: Likewise.
1246 * tui/tui-data.c: Likewise.
1247 * tui/tui-disasm.c: Likewise.
1248 * tui/tui-file.c: Likewise.
1249 * tui/tui-layout.c: Likewise.
1250 * tui/tui-out.c: Likewise.
1251 * tui/tui-regs.c: Likewise.
1252 * tui/tui-source.c: Likewise.
1253 * tui/tui-stack.c: Likewise.
1254 * tui/tui-win.c: Likewise.
1255 * tui/tui-windata.c: Likewise.
1256 * tui/tui-winsource.c: Likewise.
1257 * typeprint.c: Likewise.
1258 * ui-file.c: Likewise.
1259 * ui-out.c: Likewise.
1260 * user-regs.c: Likewise.
1261 * utils.c: Likewise.
1262 * v850-tdep.c: Likewise.
1263 * valarith.c: Likewise.
1264 * valops.c: Likewise.
1265 * valprint.c: Likewise.
1266 * value.c: Likewise.
1267 * varobj.c: Likewise.
1268 * vax-tdep.c: Likewise.
1269 * vaxnbsd-tdep.c: Likewise.
1270 * vaxobsd-tdep.c: Likewise.
1271 * windows-nat.c: Likewise.
1272 * xcoffread.c: Likewise.
1273 * xml-support.c: Likewise.
1274 * xstormy16-tdep.c: Likewise.
1275 * xtensa-linux-nat.c: Likewise.
1276
dccbb609
GB
12772014-08-07 Gary Benson <gbenson@redhat.com>
1278
1279 * common/common-defs.h: Include gdb_assert.h.
1280 * aarch64-tdep.c: Do not include gdb_assert.h.
1281 * addrmap.c: Likewise.
1282 * aix-thread.c: Likewise.
1283 * alpha-linux-tdep.c: Likewise.
1284 * alpha-mdebug-tdep.c: Likewise.
1285 * alphanbsd-tdep.c: Likewise.
1286 * amd64-nat.c: Likewise.
1287 * amd64-tdep.c: Likewise.
1288 * amd64bsd-nat.c: Likewise.
1289 * amd64fbsd-nat.c: Likewise.
1290 * amd64fbsd-tdep.c: Likewise.
1291 * amd64nbsd-nat.c: Likewise.
1292 * amd64nbsd-tdep.c: Likewise.
1293 * amd64obsd-nat.c: Likewise.
1294 * amd64obsd-tdep.c: Likewise.
1295 * arch-utils.c: Likewise.
1296 * arm-tdep.c: Likewise.
1297 * armbsd-tdep.c: Likewise.
1298 * auxv.c: Likewise.
1299 * bcache.c: Likewise.
1300 * bfin-tdep.c: Likewise.
1301 * blockframe.c: Likewise.
1302 * breakpoint.c: Likewise.
1303 * bsd-kvm.c: Likewise.
1304 * bsd-uthread.c: Likewise.
1305 * buildsym.c: Likewise.
1306 * c-exp.y: Likewise.
1307 * c-lang.c: Likewise.
1308 * charset.c: Likewise.
1309 * cleanups.c: Likewise.
1310 * cli-out.c: Likewise.
1311 * cli/cli-decode.c: Likewise.
1312 * cli/cli-dump.c: Likewise.
1313 * cli/cli-logging.c: Likewise.
1314 * cli/cli-script.c: Likewise.
1315 * cli/cli-utils.c: Likewise.
1316 * coffread.c: Likewise.
1317 * common/common-utils.c: Likewise.
1318 * common/queue.h: Likewise.
1319 * common/signals.c: Likewise.
1320 * common/vec.h: Likewise.
1321 * complaints.c: Likewise.
1322 * completer.c: Likewise.
1323 * corelow.c: Likewise.
1324 * cp-abi.c: Likewise.
1325 * cp-name-parser.y: Likewise.
1326 * cp-namespace.c: Likewise.
1327 * cp-support.c: Likewise.
1328 * cris-tdep.c: Likewise.
1329 * dbxread.c: Likewise.
1330 * dictionary.c: Likewise.
1331 * doublest.c: Likewise.
1332 * dsrec.c: Likewise.
1333 * dummy-frame.c: Likewise.
1334 * dwarf2-frame-tailcall.c: Likewise.
1335 * dwarf2-frame.c: Likewise.
1336 * dwarf2expr.c: Likewise.
1337 * dwarf2loc.c: Likewise.
1338 * dwarf2read.c: Likewise.
1339 * eval.c: Likewise.
1340 * event-loop.c: Likewise.
1341 * exceptions.c: Likewise.
1342 * expprint.c: Likewise.
1343 * f-valprint.c: Likewise.
1344 * fbsd-nat.c: Likewise.
1345 * findvar.c: Likewise.
1346 * frame-unwind.c: Likewise.
1347 * frame.c: Likewise.
1348 * frv-tdep.c: Likewise.
1349 * gcore.c: Likewise.
1350 * gdb-dlfcn.c: Likewise.
1351 * gdb_bfd.c: Likewise.
1352 * gdbarch.c: Likewise.
1353 * gdbarch.sh: Likewise.
1354 * gdbtypes.c: Likewise.
1355 * gnu-nat.c: Likewise.
1356 * gnu-v3-abi.c: Likewise.
1357 * go-lang.c: Likewise.
1358 * guile/scm-exception.c: Likewise.
1359 * guile/scm-gsmob.c: Likewise.
1360 * guile/scm-lazy-string.c: Likewise.
1361 * guile/scm-math.c: Likewise.
1362 * guile/scm-pretty-print.c: Likewise.
1363 * guile/scm-safe-call.c: Likewise.
1364 * guile/scm-utils.c: Likewise.
1365 * guile/scm-value.c: Likewise.
1366 * h8300-tdep.c: Likewise.
1367 * hppa-hpux-nat.c: Likewise.
1368 * hppa-tdep.c: Likewise.
1369 * hppanbsd-tdep.c: Likewise.
1370 * hppaobsd-tdep.c: Likewise.
1371 * i386-darwin-nat.c: Likewise.
1372 * i386-darwin-tdep.c: Likewise.
1373 * i386-nto-tdep.c: Likewise.
1374 * i386-tdep.c: Likewise.
1375 * i386bsd-nat.c: Likewise.
1376 * i386fbsd-tdep.c: Likewise.
1377 * i386gnu-nat.c: Likewise.
1378 * i386nbsd-tdep.c: Likewise.
1379 * i386obsd-tdep.c: Likewise.
1380 * i387-tdep.c: Likewise.
1381 * ia64-libunwind-tdep.c: Likewise.
1382 * ia64-tdep.c: Likewise.
1383 * inf-ptrace.c: Likewise.
1384 * inf-ttrace.c: Likewise.
1385 * infcall.c: Likewise.
1386 * infcmd.c: Likewise.
1387 * infrun.c: Likewise.
1388 * inline-frame.c: Likewise.
1389 * interps.c: Likewise.
1390 * jv-lang.c: Likewise.
1391 * jv-typeprint.c: Likewise.
1392 * linux-fork.c: Likewise.
1393 * linux-nat.c: Likewise.
1394 * linux-thread-db.c: Likewise.
1395 * m32c-tdep.c: Likewise.
1396 * m32r-linux-nat.c: Likewise.
1397 * m32r-tdep.c: Likewise.
1398 * m68k-tdep.c: Likewise.
1399 * m68kbsd-nat.c: Likewise.
1400 * m68kbsd-tdep.c: Likewise.
1401 * m88k-tdep.c: Likewise.
1402 * machoread.c: Likewise.
1403 * macroexp.c: Likewise.
1404 * macrotab.c: Likewise.
1405 * maint.c: Likewise.
1406 * mdebugread.c: Likewise.
1407 * memory-map.c: Likewise.
1408 * mep-tdep.c: Likewise.
1409 * mi/mi-common.c: Likewise.
1410 * microblaze-tdep.c: Likewise.
1411 * mingw-hdep.c: Likewise.
1412 * mips-linux-nat.c: Likewise.
1413 * mips-linux-tdep.c: Likewise.
1414 * mips-tdep.c: Likewise.
1415 * mips64obsd-tdep.c: Likewise.
1416 * mipsnbsd-tdep.c: Likewise.
1417 * mn10300-linux-tdep.c: Likewise.
1418 * mn10300-tdep.c: Likewise.
1419 * moxie-tdep.c: Likewise.
1420 * mt-tdep.c: Likewise.
1421 * nat/linux-btrace.c: Likewise.
1422 * nat/linux-osdata.c: Likewise.
1423 * nat/linux-ptrace.c: Likewise.
1424 * nat/mips-linux-watch.c: Likewise.
1425 * nios2-linux-tdep.c: Likewise.
1426 * nios2-tdep.c: Likewise.
1427 * objc-lang.c: Likewise.
1428 * objfiles.c: Likewise.
1429 * obsd-nat.c: Likewise.
1430 * opencl-lang.c: Likewise.
1431 * osabi.c: Likewise.
1432 * parse.c: Likewise.
1433 * ppc-linux-nat.c: Likewise.
1434 * ppc-sysv-tdep.c: Likewise.
1435 * ppcfbsd-nat.c: Likewise.
1436 * ppcfbsd-tdep.c: Likewise.
1437 * ppcnbsd-nat.c: Likewise.
1438 * ppcnbsd-tdep.c: Likewise.
1439 * ppcobsd-nat.c: Likewise.
1440 * ppcobsd-tdep.c: Likewise.
1441 * printcmd.c: Likewise.
1442 * procfs.c: Likewise.
1443 * prologue-value.c: Likewise.
1444 * psymtab.c: Likewise.
1445 * python/py-lazy-string.c: Likewise.
1446 * python/py-value.c: Likewise.
1447 * regcache.c: Likewise.
1448 * reggroups.c: Likewise.
1449 * registry.c: Likewise.
1450 * remote-sim.c: Likewise.
1451 * remote.c: Likewise.
1452 * rs6000-aix-tdep.c: Likewise.
1453 * rs6000-tdep.c: Likewise.
1454 * s390-linux-tdep.c: Likewise.
1455 * score-tdep.c: Likewise.
1456 * ser-base.c: Likewise.
1457 * ser-mingw.c: Likewise.
1458 * sh-tdep.c: Likewise.
1459 * sh64-tdep.c: Likewise.
1460 * solib-darwin.c: Likewise.
1461 * solib-spu.c: Likewise.
1462 * solib-svr4.c: Likewise.
1463 * source.c: Likewise.
1464 * sparc-nat.c: Likewise.
1465 * sparc-sol2-tdep.c: Likewise.
1466 * sparc-tdep.c: Likewise.
1467 * sparc64-sol2-tdep.c: Likewise.
1468 * sparc64-tdep.c: Likewise.
1469 * sparc64fbsd-tdep.c: Likewise.
1470 * sparc64nbsd-tdep.c: Likewise.
1471 * sparc64obsd-tdep.c: Likewise.
1472 * sparcnbsd-tdep.c: Likewise.
1473 * sparcobsd-tdep.c: Likewise.
1474 * spu-multiarch.c: Likewise.
1475 * spu-tdep.c: Likewise.
1476 * stabsread.c: Likewise.
1477 * stack.c: Likewise.
1478 * symfile.c: Likewise.
1479 * symtab.c: Likewise.
1480 * target-descriptions.c: Likewise.
1481 * target-memory.c: Likewise.
1482 * target.c: Likewise.
1483 * tic6x-linux-tdep.c: Likewise.
1484 * tic6x-tdep.c: Likewise.
1485 * tilegx-linux-nat.c: Likewise.
1486 * tilegx-tdep.c: Likewise.
1487 * top.c: Likewise.
1488 * tramp-frame.c: Likewise.
1489 * tui/tui-out.c: Likewise.
1490 * tui/tui-winsource.c: Likewise.
1491 * ui-out.c: Likewise.
1492 * user-regs.c: Likewise.
1493 * utils.c: Likewise.
1494 * v850-tdep.c: Likewise.
1495 * valops.c: Likewise.
1496 * value.c: Likewise.
1497 * varobj.c: Likewise.
1498 * vax-nat.c: Likewise.
1499 * xml-syscall.c: Likewise.
1500 * xml-tdesc.c: Likewise.
1501 * xstormy16-tdep.c: Likewise.
1502 * xtensa-linux-nat.c: Likewise.
1503 * xtensa-tdep.c: Likewise.
1504
e76df0d0
GB
15052014-08-07 Gary Benson <gbenson@redhat.com>
1506
1507 * common/common-defs.h: Include common-utils.h.
1508 * defs.h: Do not include common-utils.h.
1509 * common/gdb_assert.h: Likewise.
1510 * darwin-nat.h: Likewise.
1511 * nat/linux-btrace.c: Likewise.
1512 * target/waitstatus.h: Likewise.
1513
4cb9c816
GB
15142014-08-07 Gary Benson <gbenson@redhat.com>
1515
1516 * common/common-defs.h: Include ptid.h.
1517 * defs.h: Do not include ptid.h.
1518 * inferior.h: Likewise.
1519 * infrun.h: Likewise.
1520 * nat/linux-btrace.h: Likewise.
1521 * nat/linux-osdata.h: Likewise.
1522 * target/waitstatus.h: Likewise.
1523
3995eeee
GB
15242014-08-07 Gary Benson <gbenson@redhat.com>
1525
1526 * common/common-defs.h: Include gdb_locale.h.
1527 * defs.h: Do not include gdb_locale.h.
1528
cb9f1a9b
GB
15292014-08-07 Gary Benson <gbenson@redhat.com>
1530
1531 * common/common-defs.h: Include gdb/signals.h.
1532 * defs.h: Do not include gdb/signals.h.
1533
a5fceff8
GB
15342014-08-07 Gary Benson <gbenson@redhat.com>
1535
1536 * common/common-defs.h: Include pathmax.h.
1537 * defs.h: Do not include pathmax.h.
1538
b9391142
GB
15392014-08-07 Gary Benson <gbenson@redhat.com>
1540
1541 * common/common-defs.h: Include libiberty.h.
1542 * defs.h: Do not include libiberty.h.
1543 * common/queue.h: Likewise.
1544 * cp-name-parser.y: Likewise.
1545 * mi/mi-cmd-catch.c: Likewise.
1546 * python/python.c: Likewise.
1547
0e443c87
GB
15482014-08-07 Gary Benson <gbenson@redhat.com>
1549
1550 * common/common-defs.h: Include ansidecl.h.
1551 * defs.h: Do not include ansidecl.h.
1552 * common/buffer.h: Likewise.
1553 * common/common-utils.h: Likewise.
1554
8ebb3f56
GB
15552014-08-07 Gary Benson <gbenson@redhat.com>
1556
1557 * common/common-defs.h: Include stddef.h.
1558 * defs.h: Do not include stddef.h.
1559 * common/common-utils.h: Likewise.
1560 * amd64fbsd-nat.c: Likewise.
1561 * bcache.c: Likewise.
1562 * charset.c: Likewise.
1563 * common/buffer.h: Likewise.
1564 * common/vec.h: Likewise.
1565 * i386bsd-nat.c: Likewise.
1566 * nat/linux-btrace.h: Likewise.
1567 * ppcfbsd-nat.c: Likewise.
1568 * ppcnbsd-tdep.h: Likewise.
1569 * ppcobsd-nat.c: Likewise.
1570 * ppcobsd-tdep.h: Likewise.
1571 * python/py-gdb-readline.c: Likewise.
1572
8980bdf6
GB
15732014-08-07 Gary Benson <gbenson@redhat.com>
1574
1575 * common/common-defs.h: Include stdarg.h.
1576 * defs.h: Do not include stdarg.h.
1577 * ada-lang.c: Likewise.
1578 * common/common-utils.h: Likewise.
1579 * guile/scm-string.c: Likewise.
1580 * guile/scm-utils.c: Likewise.
1581 * m32c-tdep.c: Likewise.
1582
d7096f71
GB
15832014-08-07 Gary Benson <gbenson@redhat.com>
1584
1585 * common/common-defs.h: Include stdlib.h.
1586 * defs.h: Do not include stdlib.h.
1587 * addrmap.c: Likewise.
1588 * bcache.c: Likewise.
1589 * common/buffer.c: Likewise.
1590 * common/common-utils.c: Likewise.
1591 * cp-name-parser.y: Likewise.
1592 * go32-nat.c: Likewise.
1593 * mn10300-linux-tdep.c: Likewise.
1594 * nat/linux-osdata.c: Likewise.
1595 * tui/tui.c: Likewise.
1596 * windows-nat.c: Likewise.
1597
d02f550d
GB
15982014-08-07 Gary Benson <gbenson@redhat.com>
1599
1600 * common/common-defs.h: Include stdio.h.
1601 * defs.h: Do not include stdio.h.
1602 * ada-lang.c: Likewise.
1603 * common/buffer.c: Likewise.
1604 * common/common-utils.c: Likewise.
1605 * cp-name-parser.y: Likewise.
1606 * gnu-nat.c: Likewise.
1607 * go32-nat.c: Likewise.
1608 * i386gnu-nat.c: Likewise.
1609 * proc-api.c: Likewise.
1610 * proc-events.c: Likewise.
1611 * proc-flags.c: Likewise.
1612 * proc-why.c: Likewise.
1613 * python/python-internal.h: Likewise.
1614 * target-memory.c: Likewise.
1615 * tui/tui-io.c: Likewise.
1616 * tui/tui.c: Likewise.
1617
b6d7a4bf
SM
16182014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1619
1620 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1621 (scan_dyntag_auxv): Same.
1622
af19829b
YQ
16232014-08-06 Yao Qi <yao@codesourcery.com>
1624
1625 * amd64-linux-nat.c: Remove duplicated include
1626 "x86-linux-nat.h".
1627 * i386-linux-nat.c: Likewise.
1628
8e07a239
YQ
16292014-08-06 Yao Qi <yao@codesourcery.com>
1630
1631 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1632 operand" with "Special opcode" in comments.
1633
7bfe8241
GB
16342014-08-05 Gary Benson <gbenson@redhat.com>
1635
1636 * interps.c (initialize_interps): Remove prototype.
1637 (interpreter_initialized): Remove static global.
1638 (interp_add): Do not call initialize_interps.
1639 (initialize_interps): Remove function.
1640
d6c95504
GB
16412014-08-05 Gary Benson <gbenson@redhat.com>
1642
1643 * utils.c (vwarning): Remove spurious va_end.
1644
241fd515
AM
16452014-08-05 Alan Modra <amodra@gmail.com>
1646
1647 * charset.c (convert_between_encodings): Cast result of obstack_base.
1648 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1649 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1650 (read_unwind_info): Use size_t for some locals.
1651 * jit.c (finalize_symtab): Likewise.
1652 * utils.c (hashtab_obstack_allocate): Likewise.
1653 * symmisc.c (print_objfile_statistics): Update format strings.
1654
dc304a94
JK
16552014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1656
1657 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1658 (Changes in GDB 7.8): ... here.
1659
3cecbbbe
TT
16602014-08-04 Tom Tromey <tromey@redhat.com>
1661
1662 * target.c (set_targetdebug): New function.
1663 (initialize_targets): Pass set_targetdebug when creating "set
1664 debug target".
1665
6908c509
JB
16662014-08-01 Joel Brobecker <brobecker@adacore.com>
1667
1668 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1669 if detecting a variable-sized field that is not the last field.
1670 Fix struct type length computation.
1671
53e8f97d
JB
16722014-08-01 Joel Brobecker <brobecker@adacore.com>
1673
1674 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1675 Add debug trace.
1676
e068c55d
JB
16772014-08-01 Joel Brobecker <brobecker@adacore.com>
1678
1679 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1680 Remove "+ 8" offset in computation of CHAIN_VMA.
1681
4d4ca2a1
DE
16822014-07-31 Doug Evans <dje@google.com>
1683
1684 * inflow.c (child_terminal_inferior): Add comment.
1685 (child_terminal_ours_for_output): Add comment.
1686 (child_terminal_ours): Add comment.
1687 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1688 (linux_nat_terminal_ours): Add comment.
1689
462f517e
GB
16902014-07-31 Gary Benson <gbenson@redhat.com>
1691
1692 * common/btrace-common.h: Do not include defs.h or server.h.
1693 * nat/mips-linux-watch.h: Likewise.
1694 * gdb-dlfcn.h: Do not include defs.h.
1695 * tracefile.h: Likewise.
1696
74228e77
RM
16972014-07-30 Roland McGrath <mcgrathr@google.com>
1698
1699 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1700
014f9477
TT
17012014-07-30 Tom Tromey <tromey@redhat.com>
1702
1703 * bsd-kvm.c (bsd_kvm_open): Constify.
1704 * corelow.c (core_open): Constify.
1705 * ctf.c (ctf_open): Constify.
1706 * dbug-rom.c (dbug_open): Constify.
1707 * exec.c (exec_open): Constify.
1708 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1709 * microblaze-rom.c (picobug_open): Constify.
1710 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1711 Constify.
1712 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1713 * record-btrace.c (record_btrace_open): Constify.
1714 * record-full.c (record_full_core_open_1, record_full_open_1)
1715 (record_full_open): Constify.
1716 * remote-m32r-sdi.c (m32r_open): Constify.
1717 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1718 (rockhopper_open, lsi_open): Constify.
1719 * remote-sim.c (gdbsim_open): Constify.
1720 * remote.c (remote_open, extended_remote_open, remote_open_1):
1721 Constify.
1722 * target.h (struct target_ops) <to_open>: Make "arg" const.
1723 * tracefile-tfile.c (tfile_open): Constify.
1724
e799154c
TT
17252014-07-30 Tom Tromey <tromey@redhat.com>
1726
1727 * breakpoint.c (map_breakpoint_numbers): Update.
1728 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1729 (get_number_const): New function.
1730 (get_number): Rewrite using get_number_const.
1731 (init_number_or_range): Make "string" const.
1732 (number_is_in_list): Make "list" const.
1733 * cli/cli-utils.h (get_number_const): Declare.
1734 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1735 (init_number_or_range, number_is_in_list): Update.
1736 * printcmd.c (map_display_numbers): Update.
1737 * value.c (value_from_history_ref): Constify.
1738 * value.h (value_from_history_ref): Update.
1739
5f08566b
TT
17402014-07-30 Tom Tromey <tromey@redhat.com>
1741
1742 * corefile.c (hook_type, call_extra_exec_file_hooks)
1743 (specify_exec_file_hook): Constify.
1744 * exec.c (exec_file_attach): Make "filename" const.
1745 * gdbcore.h (deprecated_exec_file_display_hook)
1746 (specify_exec_file_hook, exec_file_attach): Constify.
1747 * main.c (captured_main): Use catch_command_errors_const.
1748
8981c758
TT
17492014-07-30 Tom Tromey <tromey@redhat.com>
1750
1751 * target.c (open_target): New function.
1752 (add_target_with_completer, add_deprecated_target_alias): Use
1753 set_cmd_sfunc, set_cmd_context.
1754 (debug_to_open): Remove.
1755 (setup_target_debug): Update.
1756
a1c7835a
YQ
17572014-07-30 Yao Qi <yao@codesourcery.com>
1758
1759 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1760 comments.
1761 * parse.c (exp_iterate): Update comments.
1762
976411d6
GB
17632014-07-30 Gary Benson <gbenson@redhat.com>
1764
1765 * common/common-defs.h: New file.
1766 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1767 * defs.h: Include common-defs.h.
1768 Do not include config.h or build-gnulib/config.h.
1769
5d4848a4
GB
17702014-07-30 Gary Benson <gbenson@redhat.com>
1771
1772 * common/common-utils.h: Do not include config.h.
1773 * nat/linux-btrace.h: Likewise.
1774
d41f6d8e
GB
17752014-07-30 Gary Benson <gbenson@redhat.com>
1776
1777 * btrace.c: Include defs.h.
1778 * common/ptid.c: Include defs.h or server.h as appropriate.
1779 * nat/mips-linux-watch.c: Likewise.
1780
84202f9c
TT
17812014-07-29 Tom Tromey <tromey@redhat.com>
1782
1783 * target.c (target_is_pushed): Simplify.
1784
2530441c
JB
17852014-07-29 Joel Brobecker <brobecker@adacore.com>
1786
1787 GDB 7.8 released.
1788
7e09a223
YQ
17892014-07-29 Yao Qi <yao@codesourcery.com>
1790
1791 PR gdb/17206
1792 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1793
7ebdbe92
DE
17942014-07-28 Doug Evans <xdje42@gmail.com>
1795
1796 PR guile/17203
1797 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1798 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1799 parameters.
1800
f347ffc9
WN
18012014-07-28 Will Newton <will.newton@linaro.org>
1802
1803 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1804 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1805 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1806 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1807 (THUMB2_EABI_SYSCALL): Likewise.
1808 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1809 struct tramp_frame.
1810 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1811 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1812
37c5f1f7
DE
18132014-07-27 Doug Evans <xdje42@gmail.com>
1814
1815 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1816
0c3abbc7
DE
18172014-07-27 Doug Evans <xdje42@gmail.com>
1818
1819 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1820
e76c5d17
DE
18212014-07-26 Ludovic Courtès <ludo@gnu.org>
1822 Doug Evans <xdje42@gmail.com>
1823
1824 PR guile/17146
1825 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1826 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1827 * configure.ac: Try to use guild to compile an scm file, if it fails
1828 then disable guile support.
1829 * configure: Regenerate.
1830 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1831 GUILE_FILE_LIST.
1832 (GUILE_COMPILED_FILES): New variable.
1833 (GUILE_FILES) Update.
1834 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1835 (stamp-guile): Compile scm files.
1836 * guile/guile.c (boot_guile_support): New function.
1837 (standard_throw_args_p): New function.
1838 (print_standard_throw_error, print_throw_error): New functions.
1839 (handle_boot_error): New function.
1840 (initialize_scheme_side): Rewrite to call boot_guile_support.
1841 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1842 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1843
186fcde0
DE
18442014-07-26 Ludovic Courtès <ludo@gnu.org>
1845 Doug Evans <xdje42@gmail.com>
1846
1847 PR guile/17146
1848 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1849 * guile/lib/gdb/support.scm: New file.
1850 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1851 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1852 All uses updated.
1853 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1854 All uses updated.
1855 (%assert-type): Ditto, and renamed to assert-type.
1856 (%exception-print-style): Delete.
1857
4df42755
DE
18582014-07-26 Doug Evans <xdje42@gmail.com>
1859
1860 PR build/17105
1861 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1862 * configure: Regenerate.
1863 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1864 PYTHON_FILES.
1865 (PYTHON_FILES): New variable.
1866 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1867 (GUILE_FILES): New variable.
1868 (stamp-python, install-python, uninstall-python): Handle empty
1869 file list.
1870 (stamp-guile, install-guile, uninstall-guile): Ditto.
1871
ee7333ae
DE
18722014-07-26 Doug Evans <xdje42@gmail.com>
1873
1874 PR guile/17177
1875 * guile/lib/gdb.scm (pretty-printers): Export.
1876 (set-pretty-printers!): Export.
1877 * guile/lib/gdb/printing.scm (gdb module): Update.
1878 (prepend-pretty-printer!, append-pretty-printer!): Update.
1879 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1880 (pretty_printer_list_var): Delete.
1881 (pretty_printer_list): New static global.
1882 (gdbscm_pretty_printers): New function.
1883 (gdbscm_set_pretty_printers_x): New function.
1884 (ppscm_find_pretty_printer_from_gdb): Update.
1885 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1886 (gdbscm_initialize_pretty_printers): Update.
1887
74edf516
DE
18882014-07-26 Doug Evans <xdje42@gmail.com>
1889
1890 PR 17185
1891 * configure.ac: Add check for header gc/gc.h.
1892 Add check for function setenv.
1893 * configure: Regenerate.
1894 * config.in: Regenerate.
1895 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1896
d54398a7
MR
18972014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1898
1899 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1900 variation in gdbarch matching.
1901
ab16fce8
TT
19022014-07-25 Tom Tromey <tromey@redhat.com>
1903
1904 * exec.c (using_exec_ops): Remove.
1905 (exec_close_1): Update. Remove extraneous block, reindent.
1906 (add_target_sections): Use target_is_pushed.
1907
88056fbb
PA
19082014-07-25 Pedro Alves <palves@redhat.com>
1909
1910 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1911 * monitor.c (monitor_create_inferior): Likewise.
1912 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1913 * remote-sim.c (gdbsim_create_inferior): Likewise.
1914 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1915 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1916 * windows-nat.c (do_initial_windows_stuff): Likewise.
1917
70509625
PA
19182014-07-25 Pedro Alves <palves@redhat.com>
1919
1920 * NEWS: Mention signal passing and "signal" command changes.
1921 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1922 comment.
1923 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1924 call.
1925 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1926 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1927 (jump_command): Adjust clear_proceed_status call.
1928 (signal_command): Warn if other thread that are resumed have
1929 signals that will be delivered. Adjust clear_proceed_status call.
1930 (until_next_command, finish_command)
1931 (proceed_after_attach_callback, attach_command_post_wait)
1932 (attach_command): Adjust clear_proceed_status call.
1933 * infrun.c (proceed_after_vfork_done): Likewise.
1934 (proceed_after_attach_callback): Adjust comment.
1935 (clear_proceed_status_thread): Clear stop_signal if not in pass
1936 state.
1937 (clear_proceed_status_callback): Delete.
1938 (clear_proceed_status): New 'step' parameter. Only clear the
1939 proceed status of threads the command being prepared is about to
1940 resume.
1941 (proceed): If passed in an explicit signal, override stop_signal
1942 with it. Don't pass the last stop signal to the thread we're
1943 resuming.
1944 (init_wait_for_inferior): Adjust clear_proceed_status call.
1945 (switch_back_to_stepped_thread): Clear the signal if it should not
1946 be passed.
1947 * infrun.h (clear_proceed_status): New 'step' parameter.
1948 (user_visible_resume_ptid): Add comment.
1949 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1950 signal is in pass state.
1951 * remote.c (append_pending_thread_resumptions): Likewise.
1952 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1953
d8be2939
TT
19542014-07-25 Tom Tromey <tromey@redhat.com>
1955
1956 * target.h (target_stopped_data_address)
1957 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1958 parentheses.
1959
7d0d9d2b
PL
19602014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1961
1962 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1963 comments.
1964 (avr_pointer_to_address): Likewise.
1965
e9e7f724
TT
19662014-07-24 Tom Tromey <tromey@redhat.com>
1967
1968 * monitor.c (compile_pattern): Update.
1969 * target.h (struct target_ops) <to_shortname, to_longname,
1970 to_doc>: Now const.
1971
1947513d
TT
19722014-07-24 Tom Tromey <tromey@redhat.com>
1973
1974 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1975 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1976 (add_info_alias, add_com): Make "doc" const.
1977 (print_doc_line): Make "str" const.
1978 (delete_cmd): Update.
1979 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1980 (print_doc_line): Update.
1981 * cli/cli-script.c (document_command): Update.
1982 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1983 (add_com, add_info, add_info_alias): Update.
1984 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1985 * python/py-cmd.c (cmdpy_destroyer): Update.
1986
64e61d29
TT
19872014-07-24 Tom Tromey <tromey@redhat.com>
1988
1989 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1990 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1991 (help_cmd_list): Constify.
1992 (lookup_cmd): Update.
1993 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1994 const.
1995 (help_cmd_list, apropos_cmd): Update.
1996 * cli/cli-script.c (show_user): Update.
1997 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1998 * cli/cli-setshow.h (cmd_show_list): Update.
1999 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2000 (cmd_show_list): Update.
2001 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2002 * python/py-cmd.c (cmdpy_destroyer): Update.
2003
429e55ea
TT
20042014-07-24 Tom Tromey <tromey@redhat.com>
2005
2006 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2007 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2008 const.
2009 * command.h (deprecate_cmd): Update.
2010 * maint.c (maintenance_do_deprecate): Add casts.
2011
64669f3b
TT
20122014-07-24 Tom Tromey <tromey@redhat.com>
2013
2014 * cli/cli-decode.c (help_cmd): Make parameter "const".
2015 * cli/cli-decode.h (help_cmd): Update.
2016
d3d3328b
TT
20172014-07-24 Tom Tromey <tromey@redhat.com>
2018
2019 * stack.c (up_silently_base, down_silently_base): Make argument
2020 const.
2021
414842dc
TT
20222014-07-24 Tom Tromey <tromey@redhat.com>
2023
2024 * solib.c (solib_add): Make "pattern" const.
2025 * solib.h (solib_add): Update.
2026
baa336ce
TT
20272014-07-24 Tom Tromey <tromey@redhat.com>
2028
2029 * remote.c (remote_serial_open, print_packet, putpkt)
2030 (putpkt_binary): Constify.
2031 * remote.h (putpkt): Update.
2032
5a19e2d0
TT
20332014-07-24 Tom Tromey <tromey@redhat.com>
2034
2035 * monitor.c (monitor_open): Make "args" const.
2036 * monitor.h (monitor_open): Update.
2037
fc4baa5e
TT
20382014-07-24 Tom Tromey <tromey@redhat.com>
2039
2040 * maint.c (match_bfd_flags): Make "string" const.
2041 (print_bfd_section_info): Remove casts.
2042 (print_objfile_section_info): Make "string" const.
2043
0d5f0dbe
TT
20442014-07-24 Tom Tromey <tromey@redhat.com>
2045
2046 * inf-child.c (inf_child_open_target): Make "arg" const.
2047 * inf-child.h (inf_child_open_target): Update.
2048
41c77899
TT
20492014-07-24 Tom Tromey <tromey@redhat.com>
2050
2051 * environ.c (unset_in_environ): Make "var" const.
2052 * environ.h (unset_in_environ): Update.
2053
93db0d79
TT
20542014-07-24 Tom Tromey <tromey@redhat.com>
2055
2056 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2057 Make "cmd" const.
2058 (scan_filename_with_cleanup): Likewise.
2059 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2060 Make arguments const.
2061 (restore_command): Update.
2062
36d6eb95
PA
20632014-07-24 Pedro Alves <palves@redhat.com>
2064
2065 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2066
8009206a
TT
20672014-07-24 Tom Tromey <tromey@redhat.com>
2068 Gary Benson <gbenson@redhat.com>
2069
2070 * nat/linux-ptrace.c (additional_flags): New global.
2071 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2072 additional_flags; don't check GDBSERVER.
2073 (linux_ptrace_set_additional_flags): New function.
2074 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2075 Declare.
2076 * linux-nat.c (_initialize_linux_nat): Call
2077 linux_ptrace_set_additional_flags.
2078
a7068b60
TT
20792014-07-24 Tom Tromey <tromey@redhat.com>
2080
2081 * make-target-delegates (munge_type, write_debugmethod): New
2082 functions.
2083 (debug_names): New global.
2084 ($TARGET_DEBUG_PRINTER): New global.
2085 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2086 name.
2087 Write debug methods. Generate init_debug_target.
2088 * target-debug.h: New file.
2089 * target-delegates.c: Rebuild.
2090 * target.c: Include target-debug.h.
2091 (debug_target): Hoist definition.
2092 (target_kill, target_get_section_table, target_memory_map)
2093 (target_flash_erase, target_flash_done, target_detach)
2094 (target_disconnect, target_wait, target_resume)
2095 (target_pass_signals, target_program_signals, target_follow_fork)
2096 (target_mourn_inferior, target_search_memory)
2097 (target_thread_address_space, target_close)
2098 (target_find_new_threads, target_core_of_thread)
2099 (target_verify_memory, target_insert_mask_watchpoint)
2100 (target_remove_mask_watchpoint): Remove targetdebug code.
2101 (debug_to_post_attach, debug_to_prepare_to_store)
2102 (debug_to_files_info, debug_to_insert_breakpoint)
2103 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2104 (debug_to_region_ok_for_hw_watchpoint)
2105 (debug_to_can_accel_watchpoint_condition)
2106 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2107 (debug_to_watchpoint_addr_within_range)
2108 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2109 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2110 (debug_to_terminal_init, debug_to_terminal_inferior)
2111 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2112 (debug_to_terminal_save_ours, debug_to_terminal_info)
2113 (debug_to_load, debug_to_post_startup_inferior)
2114 (debug_to_insert_fork_catchpoint)
2115 (debug_to_remove_fork_catchpoint)
2116 (debug_to_insert_vfork_catchpoint)
2117 (debug_to_remove_vfork_catchpoint)
2118 (debug_to_insert_exec_catchpoint)
2119 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2120 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2121 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2122 (setup_target_debug): Call init_debug_target.
2123 * target.h (TARGET_DEBUG_PRINTER): New macro.
2124 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2125 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2126
2c51604d
GB
21272014-07-24 Gary Benson <gbenson@redhat.com>
2128
2129 * exceptions.h (throw_vfatal): Renamed to...
2130 (throw_vquit): New declaration.
2131 (throw_quit): Likewise.
2132 * exceptions.c (throw_vfatal): Renamed to...
2133 (throw_vquit): New function.
2134 (throw_quit): Likewise.
2135 (throw_error): Call throw_verror rather than throw_it.
2136 * utils.h (vfatal): Removed.
2137 (fatal): Likewise.
2138 * utils.c (vfatal): Removed.
2139 (fatal): Likewise.
2140 (internal_verror): Replaced call to fatal with call to throw_quit.
2141 (quit): Replaced calls to fatal with calls to throw_quit.
2142
34211963
ME
21432014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2144
2145 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2146 target_read_code.
2147
a52b4d3e
ME
21482014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2149
2150 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2151 less than zero in conditional expression.
2152
a8bdc56b
TT
21532014-07-23 Tom Tromey <tromey@redhat.com>
2154
2155 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2156 ($INTRO_PART): Don't match whitespace.
2157 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2158 argument matching.
2159 ($METHOD): Add $METHOD_TRAILER.
2160 (trim): Rewrite.
2161 (scan_target_h): New sub.
2162 Change main loop not to collect state.
2163 * target-delegates.c: Rebuild.
2164
91b52240
GB
21652014-07-23 Gary Benson <gbenson@redhat.com>
2166
2167 * cp-support.c (gdb_demangle): Fix build on systems without
2168 sigaltstack.
2169
45326f6f
JK
21702014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2173 for reference entry value target data value.
2174
e214cf6c
JK
21752014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2176
2177 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2178 value_available_contents_eq.
2179
bddbbedd
PA
21802014-07-22 Pedro Alves <palves@redhat.com>
2181
2182 * value.c (allocate_optimized_out_value): Don't mark value as
2183 non-lazy.
2184
45c71484
JW
21852014-07-22 Jiong Wang <jiong.wang@arm.com>
2186
2187 * MAINTAINERS (Write After Approval): Update my email address.
2188
9597b22a
DE
21892014-07-20 Doug Evans <dje@google.com>
2190
2191 PR server/17147
2192 * remote.c (putpkt_binary): Add text to error message.
2193
91101fe5
YQ
21942014-07-20 Yao Qi <yao@codesourcery.com>
2195
2196 * eval.c: Remove "Chill" from comments.
2197 * gdbtypes.h: Likewise.
2198 * symtab.h: Likewise.
2199
c9402c95
YQ
22002014-07-20 Yao Qi <yao@codesourcery.com>
2201
2202 * std-operator.def: Update comments to TERNOP_SLICE.
2203
ae8fddda
YQ
22042014-07-20 Yao Qi <yao@codesourcery.com>
2205
2206 * std-operator.def: Remove BINOP_RANGE.
2207 * breakpoint.c (watchpoint_exp_is_const): Update.
2208 * expprint.c (dump_subexp_body_standard): Likewise.
2209 * eval.c (init_array_element): Remove dead code.
2210 (evaluate_subexp_standard): Likewise.
2211
9c816640
YQ
22122014-07-20 Yao Qi <yao@codesourcery.com>
2213
2214 * std-operator.def: Remove BINOP_IN.
2215 * breakpoint.c (watchpoint_exp_is_const): Update.
2216 * eval.c (evaluate_subexp_standard): Likewise.
2217 * expprint.c (dump_subexp_body_standard): Likewise.
2218
164224e9
ME
22192014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2220
2221 * microblaze-tdep.c (microblaze_register_names): Add
2222 the rshr and rslr register names.
2223 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2224 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2225 Use of tdesc_numbered_register. Use of
2226 microblaze_register_g_packet_guesses. Use of
2227 tdesc_use_registers. Use of set_gdbarch_register_type.
2228 (microblaze_register_g_packet_guesses): New.
2229 * microblaze-tdep.h (microblaze_reg_num): Add
2230 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2231 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2232 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2233 * features/microblaze-core.xml: New file.
2234 * features/microblaze-stack-protect.xml: New file.
2235 * features/microblaze-with-stack-protect.c: New file.
2236 * features/microblaze-with-stack-protect.xml: New file.
2237 * features/microblaze.xml: New file.
2238 * features/microblaze.c: New file.
2239 * features/Makefile (microblaze-with-stack-protect): Add
2240 microblaze-with-stack-protect microblaze and microblaze-expedite.
2241 * regformats/microblaze-with-stack-protect.dat: New file.
2242 * regformats/microblaze.dat: New file.
2243 * doc/gdb.texinfo (MicroBlaze Features): Added.
2244
e8b2341c
TT
22452014-07-18 Tom Tromey <tromey@redhat.com>
2246
2247 * exec.c (exec_ops): Now static.
2248 * exec.h (exec_ops): Don't declare.
2249
44e89118
TT
22502014-07-18 Tom Tromey <tromey@redhat.com>
2251
2252 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2253 to find_target_beneath.
2254 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2255 find_target_beneath.
2256 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2257
b0ed115f
TT
22582014-07-18 Tom Tromey <tromey@redhat.com>
2259
2260 PR gdb/17130:
2261 * utils.c (quit): Use target_supports_terminal_ours.
2262 * target.h (target_supports_terminal_ours): Declare.
2263 * target.c (target_supports_delete_record): Don't check
2264 to_delete_record against NULL.
2265 (target_supports_terminal_ours): New function.
2266
e75fdfca
TT
22672014-07-18 Tom Tromey <tromey@redhat.com>
2268
2269 PR gdb/17130:
2270 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2271 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2272 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2273 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2274 * windows-nat.c (windows_xfer_partial): Always delegate.
2275 * record-btrace.c (record_btrace_xfer_partial): Simplify
2276 delegation.
2277 (record_btrace_fetch_registers, record_btrace_store_registers)
2278 (record_btrace_prepare_to_store, record_btrace_resume)
2279 (record_btrace_wait, record_btrace_find_new_threads)
2280 (record_btrace_thread_alive): Likewise.
2281 * procfs.c (procfs_xfer_partial): Always delegate.
2282 * corelow.c (core_xfer_partial): Always delegate.
2283 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2284
83814951
TT
22852014-07-18 Tom Tromey <tromey@redhat.com>
2286
2287 * exec.c (exec_make_note_section): Move earlier.
2288
b8b8facf
DE
22892014-07-17 Doug Evans <dje@google.com>
2290
74b49205 2291 PR gdb/17170
b8b8facf
DE
2292 * maint.c (count_symtabs_and_blocks): Handle NULL
2293 current_program_space.
2294 (report_command_stats): Check global enabled flag in addition to
2295 recorded enabled flag.
2296 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2297
69ff6be5
PA
22982014-07-16 Pedro Alves <palves@redhat.com>
2299
2300 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2301
252db1b5
TT
23022014-07-16 Tom Tromey <tromey@redhat.com>
2303
2304 * target.h (struct target_ops) <to_delete_record>: Reformat
2305 comment.
2306
a432721e
TT
23072014-07-16 Tom Tromey <tromey@redhat.com>
2308
2309 * target-delegates.c: Rebuild.
2310
487d9753
PL
23112014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2312
2313 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2314 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2315 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2316 (avr_pointer_to_address): Likewise.
2317 (avr_address_class_type_flags): New function.
2318 (avr_address_class_type_flags_to_name): Likewise.
2319 (avr_address_class_name_to_type_flags): Likewise.
2320 (avr_gdbarch_init): Set address_class_type_flags,
2321 address_class_type_flags_to_name and
2322 address_class_name_to_type_flags.
2323
57745c90
PA
23242014-07-15 Pedro Alves <palves@redhat.com>
2325
2326 * linux-nat.c (kill_callback): Save errno and work with saved
2327 copy.
2328
2d40be18
SM
23292014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2330
2331 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2332
572f6555
EBM
23332014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2334
2335 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2336 breakpoint support correctly.
2337
cc1c52ad
PA
23382014-07-14 Pedro Alves <palves@redhat.com>
2339
2340 * utils.c (prompt_for_continue): Call target_terminal_ours.
2341
1e973570
PA
23422014-07-14 Pedro Alves <palves@redhat.com>
2343
2344 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2345 catch_errors. Don't re-enable stdin or notify observers where,
2346 and rethrow error.
2347 (fetch_inferior_event_wrapper): Delete.
2348
93d6eb10
PA
23492014-07-14 Pedro Alves <palves@redhat.com>
2350
2351 PR gdb/17072
2352 * top.c: Include "inf-loop.h".
2353 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2354 field.
2355 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2356 was async before.
2357 (gdb_readline_wrapper): Store whether the target is async, and
2358 make it sync.
2359
0017922d
PA
23602014-07-14 Pedro Alves <palves@redhat.com>
2361
2362 PR gdb/17072
2363 * top.c (gdb_readline_wrapper_line): Tweak comment.
2364 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2365 the input handler callback.
2366
94696ad3
PA
23672014-07-14 Pedro Alves <palves@redhat.com>
2368
2369 PR gdb/17072
2370 * main.c: Include event-top.h.
2371 (handle_command_errors): New function.
2372 (catch_command_errors, catch_command_errors_const): Use it.
2373
9d1e69a2
PA
23742014-07-14 Pedro Alves <palves@redhat.com>
2375
2376 * exceptions.c (catch_command_errors, catch_command_errors_const):
2377 Moved to main.c.
2378 * exceptions.h (catch_command_errors_ftype)
2379 (catch_command_errors_const_ftype): Moved to main.c.
2380 (catch_command_errors, catch_command_errors_const): Delete
2381 declarations.
2382 * main.c (catch_command_errors_ftype)
2383 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2384 (catch_command_errors, catch_command_errors_const)): Moved here
2385 from exceptions.c and make static.
2386
feefc97b
PA
23872014-07-14 Pedro Alves <palves@redhat.com>
2388
2389 * exceptions.c (print_any_exception): Delete.
2390 (catch_exceptions_with_msg): Use exception_print instead of
2391 print_any_exception.
2392 (catch_errors): Use exception_fprintf instead of
2393 print_any_exception.
2394 (catch_command_errors, catch_command_errors_const): Use
2395 exception_print instead of print_any_exception.
2396
c933f875
PA
23972014-07-14 Pedro Alves <palves@redhat.com>
2398
2399 * infcall.c (run_inferior_call): Set 'sync_execution' while
2400 running the inferior call.
2401
feb6f816
PA
24022014-07-14 Pedro Alves <palves@redhat.com>
2403
2404 * value.c (value_contents_equal): Delete function.
2405 * value.h (value_contents_equal): Delete declaration.
2406
d98b7a16
TT
24072014-07-14 Tom Tromey <tromey@redhat.com>
2408
2409 PR exp/17106:
2410 * gdbtypes.c (is_dynamic_type_internal): New function, from
2411 is_dynamic_type.
2412 (is_dynamic_type): Rewrite.
2413 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2414 (resolve_dynamic_struct): Likewise.
2415 (resolve_dynamic_type_internal): New function, from
2416 resolve_dynamic_type.
2417 (resolve_dynamic_type): Rewrite.
2418
548740d6
TT
24192014-07-14 Tom Tromey <tromey@redhat.com>
2420
2421 * target.c (target_require_runnable): Also check record_stratum.
2422 Update comment.
2423
808f7ab1
YQ
24242014-07-11 Yao Qi <yao@codesourcery.com>
2425
2426 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2427 thumb_instruction_restores_sp return true.
2428
540314bd
YQ
24292014-07-11 Yao Qi <yao@codesourcery.com>
2430
2431 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2432 (thumb_in_function_epilogue_p): Call
2433 thumb_instruction_restores_sp.
2434
1db01f22
YQ
24352014-07-11 Yao Qi <yao@codesourcery.com>
2436
2437 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2438 'add sp, #imm'.
2439 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2440
3116063b
GB
24412014-07-11 Gary Benson <gbenson@redhat.com>
2442
2443 * amd64-linux-nat.c (gdbcore.h): Remove include.
2444 (regset.h): Likewise.
2445 (nat/linux-btrace.h): Likewise.
2446 (btrace.h): Likewise.
2447 (gdb_assert.h): Likewise.
2448 (string.h): Likewise.
2449 (sys/uio.h): Likewise.
2450 (sys/debugreg.h): Likewise.
2451 (sys/syscall.h): Likewise.
2452 (sys/procfs.h): Likewise.
2453 (sys/user.h): Likewise.
2454 (asm/ptrace.h): Likewise.
2455 (i386-nat.h): Likewise.
2456 * i386-linux-nat.c (i386-nat.h): Likewise.
2457 (regset.h): Likewise.
2458 (target.h): Likewise.
2459 (linux-nat.h): Likewise.
2460 (nat/linux-btrace.h): Likewise.
2461 (btrace.h): Likewise.
2462 (gdb_assert.h): Likewise.
2463 (string.h): Likewise.
2464 (sys/uio.h): Likewise.
2465 (sys/user.h): Likewise.
2466 (sys/procfs.h): Likewise.
2467 (sys/reg.h): Likewise.
2468 (sys/debugreg.h): Likewise.
2469 (ORIG_EAX): Remove definition.
2470
040baaf6
GB
24712014-07-11 Gary Benson <gbenson@redhat.com>
2472
2473 * i386-linux-nat.h: New file.
2474 * x86-linux-nat.h: Likewise.
2475 * x86-linux-nat.c: Likewise.
2476 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2477 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2478 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2479 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2480 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2481 (PTRACE_SETREGSET): Likewise.
2482 (arch_lwp_info): Now in x86-linux-nat.c.
2483 (have_ptrace_getregset): Now in x86-linux-nat.h.
2484 (x86_linux_dr_get): Now in x86-linux-nat.c.
2485 (x86_linux_dr_set): Likewise.
2486 (x86_linux_dr_get_addr): Likewise.
2487 (x86_linux_dr_get_control): Likewise.
2488 (x86_linux_dr_get_status): Likewise.
2489 (update_debug_registers_callback): Likewise.
2490 (x86_linux_dr_set_control): Likewise.
2491 (x86_linux_dr_set_addr): Likewise.
2492 (x86_linux_prepare_to_resume): Likewise.
2493 (x86_linux_new_thread): Likewise.
2494 (x86_linux_new_fork): Likewise.
2495 (x86_linux_get_thread_area): Likewise.
2496 (super_post_startup_inferior): Likewise.
2497 (x86_linux_child_post_startup_inferior): Likewise.
2498 (AMD64_LINUX_USER64_CS): Likewise.
2499 (AMD64_LINUX_X32_DS): Likewise.
2500 (x86_linux_read_description): Likewise.
2501 (x86_linux_enable_btrace): Likewise.
2502 (x86_linux_disable_btrace): Likewise.
2503 (x86_linux_teardown_btrace): Likewise.
2504 (x86_linux_read_btrace): Likewise.
2505 (x86_linux_create_target): Likewise.
2506 (x86_linux_add_target): Likewise.
2507 * i386-linux-nat.c (x86-linux-nat.h): New include.
2508 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2509 (PTRACE_SETREGSET): Likewise.
2510 (arch_lwp_info): Now in x86-linux-nat.c.
2511 (have_ptrace_getregset): Now in x86-linux-nat.h.
2512 (x86_linux_dr_get): Now in x86-linux-nat.c.
2513 (x86_linux_dr_set): Likewise.
2514 (x86_linux_dr_get_addr): Likewise.
2515 (x86_linux_dr_get_control): Likewise.
2516 (x86_linux_dr_get_status): Likewise.
2517 (update_debug_registers_callback): Likewise.
2518 (x86_linux_dr_set_control): Likewise.
2519 (x86_linux_dr_set_addr): Likewise.
2520 (x86_linux_prepare_to_resume): Likewise.
2521 (x86_linux_new_thread): Likewise.
2522 (x86_linux_new_fork): Likewise.
2523 (x86_linux_get_thread_area): Likewise.
2524 (super_post_startup_inferior): Likewise.
2525 (x86_linux_child_post_startup_inferior): Likewise.
2526 (AMD64_LINUX_USER64_CS): Likewise.
2527 (AMD64_LINUX_X32_DS): Likewise.
2528 (x86_linux_read_description): Likewise.
2529 (x86_linux_enable_btrace): Likewise.
2530 (x86_linux_disable_btrace): Likewise.
2531 (x86_linux_teardown_btrace): Likewise.
2532 (x86_linux_read_btrace): Likewise.
2533 (x86_linux_create_target): Likewise.
2534 (x86_linux_add_target): Likewise.
2535
1aa7e42c
GB
25362014-07-11 Gary Benson <gbenson@redhat.com>
2537
2538 * amd64-linux-nat.c: Comment and whitespace changes.
2539 * i386-linux-nat.c: Comment and whitespace changes.
2540
c1e246a0
GB
25412014-07-11 Gary Benson <gbenson@redhat.com>
2542
2543 * amd64-linux-nat.c (x86_linux_create_target): New function.
2544 (x86_linux_add_target): Likewise.
2545 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2546 * i386-linux-nat.c (x86_linux_create_target): New function.
2547 (x86_linux_add_target): Likewise.
2548 (_initialize_i386_linux_nat): Delegate to the above new functions.
2549
8c420b8d
GB
25502014-07-11 Gary Benson <gbenson@redhat.com>
2551
2552 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2553 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2554 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2555 (ps_get_thread_area): Delegate to the above.
2556
cb1da100
GB
25572014-07-11 Gary Benson <gbenson@redhat.com>
2558
2559 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2560 x86_linux_read_description. All uses updated. amd64-specific
2561 code conditionalized. Conditionalized i386-specific code added.
2562 Redundant cast removed.
2563 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2564 x86_linux_read_description. All uses updated. i386-specific
2565 code conditionalized. Conditionalized amd64-specific code added.
2566 One sizeof replaced with the actual type it is describing.
2567
2acf3cd0
GB
25682014-07-11 Gary Benson <gbenson@redhat.com>
2569
2570 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2571 x86_linux_dr_get. All uses updated.
2572 (amd64_linux_dr_set): Renamed to
2573 x86_linux_dr_set. All uses updated.
2574 (amd64_linux_dr_get_addr): Renamed to
2575 x86_linux_dr_get_addr. All uses updated.
2576 (amd64_linux_dr_get_control): Renamed to
2577 x86_linux_dr_get_control. All uses updated.
2578 (amd64_linux_dr_get_status): Renamed to
2579 x86_linux_dr_get_status. All uses updated.
2580 (amd64_linux_dr_set_control): Renamed to
2581 x86_linux_dr_set_control. All uses updated.
2582 (amd64_linux_dr_set_addr): Renamed to
2583 x86_linux_dr_set_addr. All uses updated.
2584 (amd64_linux_prepare_to_resume): Renamed to
2585 x86_linux_prepare_to_resume. All uses updated.
2586 (amd64_linux_new_thread): Renamed to
2587 x86_linux_new_thread. All uses updated.
2588 (amd64_linux_new_fork): Renamed to
2589 x86_linux_new_fork. All uses updated.
2590 (amd64_linux_child_post_startup_inferior): Renamed to
2591 x86_linux_child_post_startup_inferior. All uses updated.
2592 (amd64_linux_enable_btrace): Renamed to
2593 x86_linux_enable_btrace. All uses updated.
2594 (amd64_linux_disable_btrace): Renamed to
2595 x86_linux_disable_btrace. All uses updated.
2596 (amd64_linux_teardown_btrace): Renamed to
2597 x86_linux_teardown_btrace. All uses updated.
2598 (amd64_linux_read_btrace): Renamed to
2599 x86_linux_read_btrace. All uses updated.
2600 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2601 x86_linux_dr_get. All uses updated.
2602 (i386_linux_dr_set): Renamed to
2603 x86_linux_dr_set. All uses updated.
2604 (i386_linux_dr_get_addr): Renamed to
2605 x86_linux_dr_get_addr. All uses updated.
2606 (i386_linux_dr_get_control): Renamed to
2607 x86_linux_dr_get_control. All uses updated.
2608 (i386_linux_dr_get_status): Renamed to
2609 x86_linux_dr_get_status. All uses updated.
2610 (i386_linux_dr_set_control): Renamed to
2611 x86_linux_dr_set_control. All uses updated.
2612 (i386_linux_dr_set_addr): Renamed to
2613 x86_linux_dr_set_addr. All uses updated.
2614 (i386_linux_prepare_to_resume): Renamed to
2615 x86_linux_prepare_to_resume. All uses updated.
2616 (i386_linux_new_thread): Renamed to
2617 x86_linux_new_thread. All uses updated.
2618 (i386_linux_new_fork): Renamed to
2619 x86_linux_new_fork. All uses updated.
2620 (i386_linux_child_post_startup_inferior): Renamed to
2621 x86_linux_child_post_startup_inferior. All uses updated.
2622 (i386_linux_enable_btrace): Renamed to
2623 x86_linux_enable_btrace. All uses updated.
2624 (i386_linux_disable_btrace): Renamed to
2625 x86_linux_disable_btrace. All uses updated.
2626 (i386_linux_teardown_btrace): Renamed to
2627 x86_linux_teardown_btrace. All uses updated.
2628 (i386_linux_read_btrace): Renamed to
2629 x86_linux_read_btrace. All uses updated.
2630
b9c1d481
AS
26312014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2632
2633 * remote.c (extended_remote_post_attach): New function.
2634 (init_extended_remote_ops): Install it as to_post_attach method.
2635
7180e04a
PA
26362014-07-09 Pedro Alves <palves@redhat.com>
2637
2638 * infcmd.c (attach_command_post_wait): Don't call
2639 target_terminal_inferior here.
2640 (attach_command): Call it here instead.
2641
9a9a7608
AB
26422014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2643
2644 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2645 field.
2646 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2647 from varobj.c, with additional checks.
2648 (c_varobj_ops): Fill in is_path_expr_parent field.
2649 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2650 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2651 field.
2652 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2653 ops method.
2654 (varobj_default_is_path_expr_parent): New function.
2655 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2656 (varobj_default_is_path_expr_parent): Declare new function.
2657
1f267ae3
MM
26582014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2659
2660 * infcmd.c (finish_backward): Turn internal error into normal error.
2661
b2ee242b
PA
26622014-07-07 Pedro Alves <palves@redhat.com>
2663
8a869bca 2664 PR gdb/17096
b2ee242b
PA
2665 * remote.c (async_handle_remote_sigint)
2666 (async_handle_remote_sigint_twice): Call
2667 gdb_call_async_signal_handler instead of
2668 mark_async_signal_handler.
2669
38e229b2
TT
26702014-07-07 Tom Tromey <tromey@redhat.com>
2671
2672 * target-delegates.c: Rebuild.
2673 * target.c (target_info_record): Remove.
2674 * record.c (info_record_command): Unconditionally call
2675 to_info_record.
2676 * target.h (struct target_ops) <to_info_record>: Use
2677 TARGET_DEFAULT_IGNORE.
2678 (target_info_record): Remove.
2679
f0f9ff95
TT
26802014-07-07 Tom Tromey <tromey@redhat.com>
2681
2682 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2683 TARGET_DEFAULT_NORETURN.
2684 * target.c (generic_tls_error): New function.
2685 (target_translate_tls_address): Don't search target stack.
2686 * target-delegates.c: Rebuild.
2687 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2688 stack.
2689 * linux-thread-db.c (thread_db_get_thread_local_address):
2690 Unconditionally call beneath target.
2691
4a5be5ee
MK
26922014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2693
2694 * cli/cli-logging.c (pop_output_files): Assign targerr to
2695 gdb_stdtargerr.
2696
92c3b204
AB
26972014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2698
2699 * MAINTAINERS (Write After Approval): Update my email address.
2700
9b11e3a7
GB
27012014-07-02 Gary Benson <gbenson@redhat.com>
2702
2703 * proc-service.c (ps_xfer_memory): Update comment.
2704 (ps_pstop): Remove unused function.
2705 (ps_pcontinue): Likewise.
2706 (ps_lstop): Likewise.
2707 (ps_lcontinue): Likewise.
2708 (ps_lgetxregsize): Likewise.
2709 (ps_lgetxregs): Likewise.
2710 (ps_lsetxregs): Likewise.
2711 (ps_plog): Likewise.
2712 (ps_ptread): Likewise.
2713 (ps_ptwrite): Likewise.
2714
cf363f18
MW
27152014-07-01 Mark Wielaard <mjw@redhat.com>
2716
2717 * dwarf2read.c (add_array_cv_type): New function.
2718 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2719 (read_tag_volatile_type): Likewise.
2720
82ae6c8d
TT
27212014-07-01 Tom Tromey <tromey@redhat.com>
2722
2723 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2724 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2725 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2726 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2727 * command.h (cmd_cfunc_ftype): Move earlier.
2728 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2729 (add_com, add_info): Use cmd_cfunc_ftype.
2730
96142726
TT
27312014-06-30 Tom Tromey <tromey@redhat.com>
2732
2733 * symtab.c (operator_chars): Make parameters and return type
2734 const.
2735 (file_matches): Make "files" const.
2736 (struct search_symbols_data) <files>: Now const.
2737 (search_symbols): Make "regexp" and "files" parameters const.
2738 Update.
2739 (symtab_symbol_info): Remove cast.
2740 (rbreak_command): Update.
2741 * symtab.h (search_symbols): Update.
2742
b67a2c6f
YQ
27432014-06-27 Yao Qi <yao@codesourcery.com>
2744
2745 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2746 Change parameter type to 'struct thread_info *'. Caller
2747 updated.
2748 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2749 Update declaration.
2750 * dummy-frame.c (struct dummy_frame_id): New.
2751 (dummy_frame_id_eq): New function.
2752 (struct dummy_frame) <id>: Change its type to 'struct
2753 dummy_frame_id'.
2754 (dummy_frame_push): Add parameter ptid and save it in
2755 dummy_frame_id.
2756 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2757 inferior_ptid.
2758 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2759 to inferior_ptid.
2760 (lookup_dummy_frame): Change parameter type to 'struct
2761 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2762 instead of frame_id_eq.
2763 (dummy_frame_pop): Add parameter ptid. Callers updated.
2764 Update comments. Compose dummy_frame_id and pass it to
2765 lookup_dummy_frame.
2766 (dummy_frame_discard): Add parameter ptid.
2767 (dummy_frame_sniffer): Compose dummy_frame_id and call
2768 dummy_frame_id_eq instead of frame_id_eq.
2769 (fprint_dummy_frames): Print ptid.
2770 * dummy-frame.h: Remove comments.
2771 (dummy_frame_push): Add ptid in declaration.
2772 (dummy_frame_pop, dummy_frame_discard): Likewise.
2773
5b10184c
TT
27742014-06-26 Tom Tromey <tromey@redhat.com>
2775
2776 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2777 * command.h (error_no_arg): Update.
2778
06900326
TT
27792014-06-26 Tom Tromey <tromey@redhat.com>
2780
2781 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2782 (do_show_command): Make "arg" const.
2783 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2784
c2bcbb1d
TT
27852014-06-26 Tom Tromey <tromey@redhat.com>
2786
2787 * record-full.c (record_full_get_bookmark): Make "args" const.
2788 (record_full_goto_bookmark): Make "raw_bookmark" const.
2789 * record.c (record_goto): New function.
2790 (cmd_record_goto): Use it. Now static.
2791 * record.h (record_goto): Declare.
2792 (cmd_record_goto): Remove declaration.
2793 * target-delegates.c: Rebuild.
2794 * target.h (struct target_ops) <to_get_bookmark,
2795 to_goto_bookmark>: Make parameter const.
2796
9cbe5fff
TT
27972014-06-26 Tom Tromey <tromey@redhat.com>
2798
2799 * defs.h (generic_load): Update.
2800 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2801 * monitor.c (monitor_load): Make "args" const.
2802 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2803 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2804 const.
2805 (mips_load): Make "file" const.
2806 * remote-sim.c (gdbsim_load): Make "args" const.
2807 * remote.c (remote_load): Make "name" const.
2808 * symfile.c (generic_load): Make "args" const.
2809 * target-delegates.c: Rebuild.
2810 * target.c (target_load): Make "arg" const.
2811 (debug_to_load): Make "args" const.
2812 * target.h (struct target_ops) <to_load>: Make parameter const.
2813 (target_load): Update.
2814
34a68019
TT
28152014-06-26 Tom Tromey <tromey@redhat.com>
2816
2817 PR symtab/16902:
2818 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2819 (dwarf2_physname, read_partial_die)
2820 (guess_partial_die_structure_name, fixup_partial_die)
2821 (guess_full_die_structure_name, anonymous_struct_prefix)
2822 (dwarf2_name): Use per-BFD obstack.
2823
efc889c1
YQ
28242014-06-26 Yao Qi <yao@codesourcery.com>
2825
2826 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2827 dummyframe and this_id into inner block below.
2828
4395285e
YQ
28292014-06-26 Yao Qi <yao@codesourcery.com>
2830
2831 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2832 with "signal_pass[0]" in the initialization of signal_pass.
2833
aef92902
MM
28342014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2835
2836 * record-btrace.c (record_btrace_generating_corefile)
2837 (record_btrace_prepare_to_generate_core)
2838 (record_btrace_done_generating_core): New.
2839 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2840 (record_btrace_store_registers, record_btrace_prepare_to_store):
2841 Forward request when generating a core file.
2842 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2843 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2844 to_done_generating_core.
2845
5fff78c4
MM
28462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2847
2848 * target.h (target_ops) <to_prepare_to_generate_core>
2849 <to_done_generating_core>: New.
2850 (target_prepare_to_generate_core, target_done_generating_core): New.
2851 * target.c (target_prepare_to_generate_core)
2852 (target_done_generating_core): New.
2853 * target-delegates.c: Regenerate.
2854 * gcore.c: (write_gcore_file): Rename to ...
2855 (write_gcore_file_1): ...this.
2856 (write_gcore_file): Call target_prepare_to_generate_core
2857 and target_done_generating_core.
2858
1d1f1ccb
MM
28592014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2860
2861 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2862 * gcore.c (write_gcore_file): Free memory returned from
2863 make_corefile_notes.
2864 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2865 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2866
3343ef86
YQ
28672014-06-24 Yao Qi <yao@codesourcery.com>
2868
2869 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2870 (arm_linux_init_abi): Set skip_trampoline_code with
2871 gdbarch_skip_trampoline_code instead of
2872 find_solib_trampoline_target.
2873
18d18ac8
YQ
28742014-06-24 Yao Qi <yao@codesourcery.com>
2875
2876 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2877 arm_skip_bx_reg returns non-zero.
2878
80d8d390
YQ
28792014-06-24 Yao Qi <yao@codesourcery.com>
2880
2881 * arm-tdep.c (arm_skip_bx_reg): New function.
2882 (arm_skip_stub): Call arm_skip_bx_reg.
2883
6a18a01c
DB
28842014-06-23 Don Breazeal <donb@codesourcery.com>
2885
2886 * MAINTAINERS: Add myself as write-after-approval maintainer.
2887
8e9db26e
PA
28882014-06-23 Pedro Alves <palves@redhat.com>
2889
2890 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2891 DR_CONTROL before setting DR0..DR3.
2892 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2893 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2894 bits of DR_CONTROL related to the debug register slot being
2895 disabled. If all slots are vacant, clear local slowdown as well,
2896 and assert DR_CONTROL is 0.
2897
70afc5b7
SC
28982014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2899
2900 * python/lib/gdb/command/xmethods.py
2901 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2902 current progspace only if the string "progspace" matches LOCUS_RE.
2903
840ed64d
JK
29042014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2905
2906 Fix --with-system-readline with readline-6.3 patch 5.
2907 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2908 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2909 types.
2910
26f2dc30
TT
29112014-06-20 Tom Tromey <tromey@redhat.com>
2912
2913 * dwarf2read.c (dw2_get_real_path): Use correct type in
2914 OBSTACK_CALLOC.
2915 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2916
125f8a3d
GB
29172014-06-20 Gary Benson <gbenson@redhat.com>
2918
2919 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2920 * common/glibc_thread_db.h: Likewise.
2921 * common/i386-cpuid.h: Likewise.
2922 * common/i386-gcc-cpuid.h: Likewise.
2923 * common/linux-btrace.h: Likewise.
2924 * common/linux-osdata.h: Likewise.
2925 * common/linux-procfs.h: Likewise.
2926 * common/linux-ptrace.h: Likewise.
2927 * common/mips-linux-watch.h: Likewise.
2928 * common/linux-btrace.c: Moved to nat.
2929 * common/linux-osdata.c: Likewise.
2930 * common/linux-procfs.c: Likewise.
2931 * common/linux-ptrace.c: Likewise.
2932 * common/mips-linux-watch.c: Likewise.
2933 * nat/gdb_thread_db.h: Moved from common.
2934 * nat/glibc_thread_db.h: Likewise.
2935 * nat/i386-cpuid.h: Likewise.
2936 * nat/i386-gcc-cpuid.h: Likewise.
2937 * nat/linux-btrace.c: Likewise.
2938 * nat/linux-btrace.h: Likewise.
2939 * nat/linux-osdata.c: Likewise.
2940 * nat/linux-osdata.h: Likewise.
2941 * nat/linux-procfs.c: Likewise.
2942 * nat/linux-procfs.h: Likewise.
2943 * nat/linux-ptrace.c: Likewise.
2944 * nat/linux-ptrace.h: Likewise.
2945 * nat/mips-linux-watch.c: Likewise.
2946 * nat/mips-linux-watch.h: Likewise.
2947 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2948 (object file files): Reordered.
2949 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2950 of glibc_thread_db.h.
2951
42995dbd
GB
29522014-06-20 Gary Benson <gbenson@redhat.com>
2953
2954 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2955 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2956 (i386_dr_low): Likewise.
2957 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2958 (i386_dr_low_set_addr): Likewise.
2959 (i386_dr_low_get_addr): Likewise.
2960 (i386_dr_low_can_set_control): Likewise.
2961 (i386_dr_low_set_control): Likewise.
2962 (i386_dr_low_get_control): Likewise.
2963 (i386_dr_low_get_status): Likewise.
2964 (i386_get_debug_register_length): Likewise.
2965 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2966 (i386_dr_low): Likewise.
2967 * nat/i386-dregs.c (i386-low.h): Remove include.
2968 (i386-nat.h): Likewise.
2969 (nat/i386-dregs.h): New include.
2970 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2971 (i386_dr_low_set_addr): Likewise.
2972 (i386_dr_low_get_addr): Likewise.
2973 (i386_dr_low_can_set_control): Likewise.
2974 (i386_dr_low_set_control): Likewise.
2975 (i386_dr_low_get_control): Likewise.
2976 (i386_dr_low_get_status): Likewise.
2977 (i386_get_debug_register_length): Likewise.
2978 (debug_hw_points): Likewise.
2979
3ed9baed
IB
29802014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2981
2982 * Makefile.in (SFILES): Add d-exp.y.
2983 (YYFILES): Add d-exp.c.
2984 (YYOBJ): Add d-exp.o.
2985 (local-maintainer-clean): Delete d-exp.c.
2986 * d-exp.y: New file.
2987 * d-lang.h (d_parse): New declaration.
2988 (d_error): New declaration.
2989 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2990 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2991 PREC_ORDER operators.
2992 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2993
78c164b0
YQ
29942014-06-19 Yao Qi <yao@codesourcery.com>
2995
2996 * gdbthread.h (any_running): Remove the declaration.
2997 * thread.c (any_running): Remove.
2998
f6e29b6e
YQ
29992014-06-19 Yao Qi <yao@codesourcery.com>
3000
3001 * gdbthread.h (struct thread_info) <state>: Change its type to
3002 'enum thread_state'. Update comments.
3003
034f788c
PA
30042014-06-19 Pedro Alves <palves@redhat.com>
3005
3006 * gdbthread.h (ALL_THREADS): Delete.
3007 (ALL_NON_EXITED_THREADS): New macro.
3008 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3009 instead of ALL_THREADS.
3010 * infrun.c (find_thread_needs_step_over)
3011 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3012 instead of ALL_THREADS.
3013 * record-btrace.c (record_btrace_open)
3014 (record_btrace_stop_recording, record_btrace_close)
3015 (record_btrace_is_replaying, record_btrace_resume)
3016 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3017 * remote.c (append_pending_thread_resumptions): Likewise.
3018 * thread.c (thread_apply_all_command): Likewise.
3019
46e33252
GB
30202014-06-19 Gary Benson <gbenson@redhat.com>
3021
3022 * i386-nat.c (i386_stopped_by_watchpoint):
3023 Use i386_dr_stopped_by_watchpoint.
3024 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3025 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3026
3a8ee006
GB
30272014-06-19 Gary Benson <gbenson@redhat.com>
3028
3029 * nat/i386-dregs.c: New file.
3030 * Makefile.in (i386-dregs.o): New rule.
3031 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3032 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3033 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3034 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3035 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3036 * config/i386/go32.mh (NATDEPFILES): Likewise.
3037 * config/i386/linux.mh (NATDEPFILES): Likewise.
3038 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3039 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3040 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3041 * i386-nat.h (debug_hw_points): New declaration.
3042 * i386-nat.c (breakpoint.h): Remove include.
3043 (command.h): Likewise.
3044 (target.h): Likewise.
3045 (gdb_assert.h): Likewise.
3046 (debug_hw_points): Made nonstatic.
3047 (debug_printf): Now in i386-dregs.c.
3048 (TARGET_HAS_DR_LEN_8): Likewise.
3049 (DR_CONTROL_SHIFT): Likewise.
3050 (DR_CONTROL_SIZE): Likewise.
3051 (DR_RW_EXECUTE): Likewise.
3052 (DR_RW_WRITE): Likewise.
3053 (DR_RW_READ): Likewise.
3054 (DR_RW_IORW): Likewise.
3055 (DR_LEN_1): Likewise.
3056 (DR_LEN_2): Likewise.
3057 (DR_LEN_4): Likewise.
3058 (DR_LEN_8): Likewise.
3059 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3060 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3061 (DR_ENABLE_SIZE): Likewise.
3062 (DR_LOCAL_SLOWDOWN): Likewise.
3063 (DR_GLOBAL_SLOWDOWN): Likewise.
3064 (DR_CONTROL_RESERVED): Likewise.
3065 (I386_DR_CONTROL_MASK): Likewise.
3066 (I386_DR_VACANT): Likewise.
3067 (I386_DR_LOCAL_ENABLE): Likewise.
3068 (I386_DR_GLOBAL_ENABLE): Likewise.
3069 (I386_DR_DISABLE): Likewise.
3070 (I386_DR_SET_RW_LEN): Likewise.
3071 (I386_DR_GET_RW_LEN): Likewise.
3072 (I386_DR_WATCH_HIT): Likewise.
3073 (i386_wp_op_t): Likewise.
3074 (i386_show_dr): Likewise.
3075 (i386_length_and_rw_bits): Likewise.
3076 (i386_insert_aligned_watchpoint): Likewise.
3077 (i386_remove_aligned_watchpoint): Likewise.
3078 (i386_handle_nonaligned_watchpoint): Likewise.
3079 (i386_update_inferior_debug_regs): Likewise.
3080 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3081 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3082 (i386_region_ok_for_watchpoint):
3083 Use i386_dr_region_ok_for_watchpoint.
3084 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3085
322a8e06
GB
30862014-06-19 Gary Benson <gbenson@redhat.com>
3087
3088 * i386-nat.c (i386_insert_hw_breakpoint): Use
3089 i386_insert_watchpoint.
3090 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3091
8f26655c
GB
30922014-06-19 Gary Benson <gbenson@redhat.com>
3093
3094 * i386-nat.c (i386_dr_show): Renamed to
3095 i386_show_dr and made static. All uses updated.
3096 (i386_dr_length_and_rw_bits): Renamed to
3097 i386_length_and_rw_bits and made static.
3098 All uses updated.
3099 (i386_dr_insert_aligned_watchpoint): Renamed to
3100 i386_insert_aligned_watchpoint and made static.
3101 All uses updated.
3102 (i386_dr_remove_aligned_watchpoint): Renamed to
3103 i386_remove_aligned_watchpoint and made static.
3104 All uses updated.
3105 (i386_dr_update_inferior_debug_regs): Renamed to
3106 i386_update_inferior_debug_regs and made static.
3107 All uses updated.
3108 * nat/i386-dregs.h (i386_dr_show): Removed.
3109 (i386_dr_length_and_rw_bits): Likewise.
3110 (i386_dr_insert_aligned_watchpoint): Likewise.
3111 (i386_dr_remove_aligned_watchpoint): Likewise.
3112 (i386_dr_update_inferior_debug_regs): Likewise.
3113
992c7d70
GB
31142014-06-19 Gary Benson <gbenson@redhat.com>
3115
3116 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3117 * configure: Regenerate.
3118 * config.in: Likewise.
3119 * main.c (signal.h): New include.
3120 (setup_alternate_signal_stack): New function.
3121 (captured_main): Call the above.
3122 * cp-support.c (signal.h): New include.
3123 (catch_demangler_crashes): New flag.
3124 (SIGJMP_BUF): New define.
3125 (SIGSETJMP): Likewise.
3126 (SIGLONGJMP): Likewise.
3127 (gdb_demangle_jmp_buf): New static global.
3128 (gdb_demangle_attempt_core_dump): Likewise.
3129 (gdb_demangle_signal_handler): New function.
3130 (gdb_demangle): If catch_demangler_crashes is set, install the
3131 above signal handler before calling bfd_demangle, and restore
3132 the original signal handler afterwards. Display the offending
3133 symbol and call demangler_warning the first time a segmentation
3134 fault is caught.
3135 (_initialize_cp_support): New maint set/show command.
3136
eae7090b
GB
31372014-06-19 Gary Benson <gbenson@redhat.com>
3138
3139 * utils.h (resource_limit_kind): New enum.
3140 (can_dump_core): New declaration.
3141 (warn_cant_dump_core): Likewise.
3142 (dump_core): Likewise.
3143 * utils.c (dump_core): Made nonstatic. Added new
3144 parameter "limit_kind".
3145 (can_dump_core): Made nonstatic. Moved printing code to...
3146 (warn_cant_dump_core): New function.
3147 (can_dump_core_warn): Likewise.
3148 (internal_vproblem): Replace calls to can_dump_core with
3149 calls to can_dump_core_warn. Supply new argument to each.
3150
57fcfb1b
GB
31512014-06-19 Gary Benson <gbenson@redhat.com>
3152
3153 * utils.h (demangler_vwarning): New declaration.
3154 (demangler_warning): Likewise.
3155 * utils.c (struct internal_problem)
3156 <user_settable_should_quit>: New field.
3157 <user_settable_should_dump_core>: Likewise
3158 (internal_error_problem): Add values for above new fields.
3159 (internal_warning_problem): Likewise.
3160 (demangler_warning_problem): New static global.
3161 (demangler_vwarning): New function.
3162 (demangler_warning): Likewise.
3163 (add_internal_problem_command): Selectively add commands.
3164 (_initialize_utils): New internal problem command.
3165 * maint.c (maintenance_demangler_warning): New function.
3166 (_initialize_maint_cmds): New command.
3167
17a40b44
TT
31682014-06-18 Tom Tromey <tromey@redhat.com>
3169
3170 * f-valprint.c (info_common_command_for_block): Update.
3171 * symtab.h (struct general_symbol_info) <common_block>: Now
3172 const.
3173
346d1dfe
TT
31742014-06-18 Tom Tromey <tromey@redhat.com>
3175
3176 * symtab.h (struct symtab) <blockvector>: Now const.
3177 * ada-lang.c (ada_add_global_exceptions): Update.
3178 * buildsym.c (augment_type_symtab): Update.
3179 * dwarf2read.c (dw2_lookup_symbol): Update.
3180 * jit.c (finalize_symtab): Update.
3181 * jv-lang.c (add_class_symtab_symbol): Update.
3182 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3183 Update.
3184 * objfiles.c (objfile_relocate1): Update.
3185 * psymtab.c (lookup_symbol_aux_psymtabs)
3186 (maintenance_check_psymtabs): Update.
3187 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3188 Update.
3189 * spu-tdep.c (spu_catch_start): Update.
3190 * symmisc.c (dump_symtab_1): Update.
3191 * symtab.c (lookup_global_symbol_from_objfile)
3192 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3193 (basic_lookup_transparent_type_quick)
3194 (basic_lookup_transparent_type, find_pc_sect_symtab)
3195 (find_pc_sect_line, search_symbols): Update.
3196 * block.c (find_block_in_blockvector): Make "bl" const.
3197 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3198 const.
3199 (blockvector_contains_pc): Make "bv" const.
3200 (block_for_pc_sect): Update.
3201 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3202 (blockvector_contains_pc): Update.
3203 * breakpoint.c (resolve_sal_pc): Update.
3204 * inline-frame.c (block_starting_point_at): Update.
3205
1834676b
TT
32062014-06-18 Tom Tromey <tromey@redhat.com>
3207
3208 * completer.c (complete_line): Make "line_buffer" const.
3209 * completer.h (complete_line): Update.
3210
ac1a991b
TT
32112014-06-18 Tom Tromey <tromey@redhat.com>
3212
3213 * symtab.c (add_macro_name): Remove unneeded cast.
3214
5bc98e52
TT
32152014-06-18 Tom Tromey <tromey@redhat.com>
3216
3217 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3218 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3219
8236def8
TT
32202014-06-18 Tom Tromey <tromey@redhat.com>
3221
3222 * probe.c (info_probes_for_ops): Make "arg" const.
3223 * probe.h (info_probes_for_ops): Update.
3224
3977b71f
TT
32252014-06-18 Tom Tromey <tromey@redhat.com>
3226
3227 * varobj.c (varobj_create): Update.
3228 * valops.c (value_of_this): Update.
3229 * tracepoint.c (add_local_symbols, scope_info): Update.
3230 * symtab.h (struct general_symbol_info) <block>: Now const.
3231 * symtab.c (skip_prologue_sal)
3232 (default_make_symbol_completion_list_break_on)
3233 (skip_prologue_using_sal): Update.
3234 * stack.h (iterate_over_block_locals)
3235 (iterate_over_block_local_vars): Update.
3236 * stack.c (print_frame_args): Update.
3237 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3238 parameter const.
3239 (get_selected_block): Make return type const.
3240 * python/py-frame.c (frapy_block): Update.
3241 * python/py-block.c (gdbpy_block_for_pc): Update.
3242 * p-exp.y (%union) <bval>: Now const.
3243 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3244 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3245 * m2-exp.y (%union) <bval>: Now const.
3246 * linespec.c (get_current_search_block): Make return type const.
3247 (create_sals_line_offset, find_label_symbols): Update.
3248 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3249 Update.
3250 (block_starting_point_at): Make "block" const.
3251 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3252 (check_exception_resume): Update.
3253 * guile/scm-frame.c (gdbscm_frame_block): Update.
3254 * guile/scm-block.c (gdbscm_lookup_block): Update.
3255 * frame.h (get_frame_block): Update.
3256 (get_selected_block): Make return type const.
3257 * frame.c (frame_id_inner): Update.
3258 * f-valprint.c (info_common_command_for_block)
3259 (info_common_command): Update.
3260 * dwarf2loc.c (dwarf2_find_location_expression)
3261 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3262 (locexpr_describe_location_piece): Update.
3263 * c-exp.y (%union) <bval>: Now const.
3264 * breakpoint.c (resolve_sal_pc): Update.
3265 * blockframe.c (get_frame_block):Make return type const.
3266 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3267 (block_innermost_frame): Update.
3268 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3269 (block_for_pc, block_for_pc_sect): Update.
3270 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3271 'pblock' const.
3272 (block_for_pc_sect, block_for_pc): Make return type const.
3273 * ax-gdb.c (gen_expr): Update.
3274 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3275 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3276 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3277 (ada_read_var_value): Update.
3278 * ada-exp.y (struct name_info) <block>: Now const.
3279 (%union): Likewise.
3280 (block_lookup): Constify.
3281
b9228891
GB
32822014-06-18 Gary Benson <gbenson@redhat.com>
3283
3284 * nat/i386-dregs.h: New file.
3285 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3286 * i386-nat.h (i386-dregs.h): New include.
3287 (DR_FIRSTADDR): Now in i386-dregs.h.
3288 (DR_LASTADDR): Likewise.
3289 (DR_NADDR): Likewise.
3290 (DR_STATUS): Likewise.
3291 (DR_CONTROL): Likewise.
3292 (i386_debug_reg_state): Likewise.
3293 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3294
a1aa2221
LM
32952014-06-18 Don Breazeal <donb@codesourcery.com>
3296
3297 * breakpoint.c (set_longjmp_breakpoint): Call
3298 momentary_breakpoint_from_master with additional argument.
3299 (set_longjmp_breakpoint_for_call_dummy): Call
3300 momentary_breakpoint_from_master with additional argument.
3301 (set_std_terminate_breakpoint): Call
3302 momentary_breakpoint_from_master with additional argument.
3303 (momentary_breakpoint_from_master): Add argument to function
3304 definition and use it to initialize structure member flag.
74228e77 3305 (clone_momentary_breakpoint): Call
a1aa2221
LM
3306 momentary_breakpoint_from_master with additional argument.
3307 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3308 member flags set in momentary_breakpoint_from_master.
3309
4be83cc2
GB
33102014-06-18 Gary Benson <gbenson@redhat.com>
3311
3312 * i386-nat.c (i386_show_dr): Renamed to
3313 i386_dr_show and made nonstatic. All uses updated.
3314 (i386_length_and_rw_bits): Renamed to
3315 i386_dr_length_and_rw_bits and made nonstatic.
3316 All uses updated.
3317 (i386_insert_aligned_watchpoint): Renamed to
3318 i386_dr_insert_aligned_watchpoint and made nonstatic.
3319 All uses updated.
3320 (i386_remove_aligned_watchpoint): Renamed to
3321 i386_dr_remove_aligned_watchpoint and made nonstatic.
3322 All uses updated.
3323 (i386_update_inferior_debug_regs): Renamed to
3324 i386_dr_update_inferior_debug_regs and made nonstatic.
3325 All uses updated.
3326
131aa0d4
GB
33272014-06-18 Gary Benson <gbenson@redhat.com>
3328
3329 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3330 (i386_dr_low_can_set_control): Likewise.
3331 (i386_dr_low_set_addr): Likewise.
3332 (i386_dr_low_set_control): Likewise.
3333 (i386_dr_low_get_addr): Likewise.
3334 (i386_dr_low_get_status): Likewise.
3335 (i386_dr_low_get_control): Likewise.
3336 (i386_insert_aligned_watchpoint): Use new macros.
3337 (i386_update_inferior_debug_regs): Likewise.
3338 (i386_stopped_data_address): Likewise.
3339
d9305f7f
GB
33402014-06-18 Gary Benson <gbenson@redhat.com>
3341
3342 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3343 New parameter. All uses updated.
3344
ea008da4
GB
33452014-06-18 Gary Benson <gbenson@redhat.com>
3346
3347 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3348 All uses updated.
3349
1b6d4134
GB
33502014-06-18 Gary Benson <gbenson@redhat.com>
3351
3352 * i386-nat.c (debug_printf): New macro.
3353 (i386_get_debug_register_length): Likewise.
3354 (TARGET_HAS_DR_LEN_8): Use above macro.
3355 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3356 and printf_unfiltered. Use phex to format values.
3357
9b4550ef
GB
33582014-06-18 Gary Benson <gbenson@redhat.com>
3359
3360 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3361 Make const.
3362
6e62758f
GB
33632014-06-18 Gary Benson <gbenson@redhat.com>
3364
3365 * i386-nat.c: Comment changes.
3366
51c79e94
GB
33672014-06-18 Gary Benson <gbenson@redhat.com>
3368
3369 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3370
3e11889a
GB
33712014-06-18 Gary Benson <gbenson@redhat.com>
3372
3373 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3374 (i386_insert_aligned_watchpoint): Likewise.
3375 (i386_remove_aligned_watchpoint): Likewise.
3376 (i386_handle_nonaligned_watchpoint): Likewise.
3377
fc6e2f03
GB
33782014-06-18 Gary Benson <gbenson@redhat.com>
3379
3380 * i386-nat.c: Whitespace changes.
3381
2afe7d50
SB
33822014-06-17 Samuel Bronson <naesten@gmail.com>
3383
3384 * MAINTAINERS: Update Roland McGrath's email address.
3385 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3386 Red Hat a while ago, and giving me a current address.
2afe7d50 3387
3bca49ee
TT
33882014-06-17 Tom Tromey <tromey@redhat.com>
3389
3390 * utils.h (savestring): Remove declaration.
3391
6e366df1
TT
33922014-06-17 Tom Tromey <tromey@redhat.com>
3393
3394 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3395
6be47f0c
KS
33962014-06-16 Keith Seitz <keiths@redhat.com>
3397
3398 PR mi/15863
3399 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3400 to update the varobj if inferior_ptid is null_ptid.
3401
7bc112c1
TT
34022014-06-16 Tom Tromey <tromey@redhat.com>
3403
3404 * target.h (struct target_ops) <to_info_proc>: Make parameter
3405 const.
3406 (target_info_proc): Update.
3407 * target.c (target_info_proc): Make "args" const.
3408 * procfs.c (procfs_info_proc): Update.
3409 * linux-tdep.c (linux_info_proc): Update.
3410 (linux_core_info_proc_mappings): Make "args" const.
3411 (linux_core_info_proc): Update.
3412 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3413 * gdbarch.c: Rebuild.
3414 * gdbarch.h: Rebuild.
3415 * corelow.c (core_info_proc): Update.
3416
fee354ee
TT
34172014-06-16 Tom Tromey <tromey@redhat.com>
3418
3419 * target.h (struct target_ops) <to_disconnect>: Make parameter
3420 const.
3421 (target_disconnect): Update.
3422 * target.c (target_disconnect): Make "args" const.
3423 * target-delegates.c: Rebuild.
3424 * remote.c (remote_disconnect): Update.
3425 * record.h (record_disconnect): Update.
3426 * record.c (record_disconnect): Update.
3427 * inf-child.c (inf_child_disconnect): Update.
3428
a30bf1f1
TT
34292014-06-16 Tom Tromey <tromey@redhat.com>
3430
3431 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3432 * target.c (debug_to_rcmd, default_rcmd): Update.
3433 * target-delegates.c: Rebuild.
3434 * remote.c (remote_rcmd): Update.
3435 * monitor.c (monitor_rcmd): Update.
3436
d03de421
PA
34372014-06-16 Pedro Alves <palves@redhat.com>
3438
3439 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3440 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3441 have OBJF_SHARED set.
3442 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3443 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3444 instead of OBJF_USERLOADED.
3445 * objfiles.h (OBJF_SHARED): Update comment.
3446 (userloaded_objfile_contains_address_p): Rename to ...
3447 (shared_objfile_contains_address_p): ... this, and update
3448 comments.
3449 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3450 new objfile.
3451 (remove_symbol_file_command): Skip objfiles that don't have
3452 OBJF_SHARED set.
3453
99f4262f
TT
34542014-06-16 Tom Tromey <tromey@redhat.com>
3455
3456 * minsyms.h (prim_record_minimal_symbol)
3457 (prim_record_minimal_symbol_and_info): Update comments.
3458
97d66cc6
EZ
34592014-06-14 Eli Zaretskii <eliz@gnu.org>
3460
3461 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3462 or --without-guile, according to how GDB was built.
3463
635c7e8a
TT
34642014-06-13 Tom Tromey <tromey@redhat.com>
3465
3466 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3467 to help_list.
3468 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3469 to help_list.
3470 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3471 help_list.
3472 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3473 help_list.Pass all_commands, not -1, to help_list.
3474 * cli/cli-dump.c (dump_command, append_command)
3475 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3476 (binary_dump_command, binary_append_command): Pass all_commands,
3477 not -1, to help_list.
3478 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3479 -1, to help_list.
3480 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3481 -1, to help_list.
3482 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3483 help_list.
3484 * top.c (set_history): Pass all_commands, not -1, to help_list.
3485 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3486 all_commands, not -1, to help_list.
3487 * symfile.c (overlay_command): Pass all_commands, not -1, to
3488 help_list.
3489 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3490 help_list.
3491 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3492 help_list.
3493 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3494 -1, to help_list.
3495 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3496 not -1, to help_list.
3497 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3498 not -1, to help_list.
3499 * maint.c (maintenance_command, maintenance_info_command)
3500 (maintenance_print_command, maintenance_set_cmd): Pass
3501 all_commands, not -1, to help_list.
3502 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3503 help_list.
3504 * language.c (set_check): Pass all_commands, not -1, to help_list.
3505 * infcmd.c (unset_command): Pass all_commands, not -1, to
3506 help_list.
3507 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3508 help_list.
3509 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3510 help_list.
3511 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3512 help_list.
3513 * breakpoint.c (save_command): Pass all_commands, not -1, to
3514 help_list.
3515 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3516 all_commands, not -1, to help_list.
3517
b94ade42
PL
35182014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3519
3520 * regcache.c (struct register_to_invalidate): New structure.
3521 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3522 functions.
3523 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3524
31f628ae
YQ
35252014-06-12 Yao Qi <yao@codesourcery.com>
3526
3527 * varobj.c (varobj_get_num_children): Call
3528 varobj_is_dynamic_p.
3529 (varobj_list_children): Likewise.
3530 (varobj_update): Likewise. Update comments.
3531
cde5ef40
YQ
35322014-06-12 Yao Qi <yao@codesourcery.com>
3533
3534 * varobj.c (varobj_pretty_printed_p): Rename to ...
3535 (varobj_is_dynamic_p): ... this. New function.
3536 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3537 (varobj_is_dynamic_p): Declare.
3538 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3539 (mi_print_value_p, varobj_update_one): Likewise.
3540
576ea091
YQ
35412014-06-12 Pedro Alves <pedro@codesourcery.com>
3542 Yao Qi <yao@codesourcery.com>
3543
3544 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3545 (varobj_get_iterator): Wrap up code for pretty-printer by
3546 "#if HAVE_PYTHON" and "#endif".
3547 (update_dynamic_varobj_children): Likewise.
3548
827f100c
YQ
35492014-06-12 Pedro Alves <pedro@codesourcery.com>
3550 Yao Qi <yao@codesourcery.com>
3551
3552 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3553 gdb_python_initialized is false. Move some code from varobj.c.
3554 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3555 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3556 (struct varobj_item): Moved to varobj-iter.h".
3557 (varobj_clear_saved_item): New function.
3558 (update_dynamic_varobj_children): Move python-related code to
3559 py-varobj.c.
3560 (free_variable): Call varobj_clear_saved_item and
3561 varobj_iter_delete.
3562
e5250216
YQ
35632014-06-12 Pedro Alves <pedro@codesourcery.com>
3564 Yao Qi <yao@codesourcery.com>
3565
3566 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3567 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3568 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3569 (py-varobj.o): New rule.
3570 * python/py-varobj.c: New file.
3571 * python/python-internal.h (py_varobj_get_iterator): Declare.
3572 * varobj-iter.h: New file.
3573 * varobj.c: Include "varobj-iter.h"
3574 (struct varobj) <child_iter>: Change its type from "PyObject *"
3575 to "struct varobj_iter *".
3576 <saved_item>: Likewise.
3577 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3578 [HAVE_PYTHON] (varobj_get_iterator): New function.
3579 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3580 python-specific code to python/py-varobj.c.
3581 (install_visualizer): Call varobj_iter_delete instead of
3582 Py_XDECREF.
3583 * varobj.h (varobj_ensure_python_env): Declare.
3584
5a2e0d6e
YQ
35852014-06-12 Yao Qi <yao@codesourcery.com>
3586
3587 * varobj.c (struct varobj_item): New structure.
3588 (create_child_with_value): Update declaration.
3589 (varobj_add_child): Replace arguments 'name' and 'value' with
3590 'item'. All callers updated.
3591 (install_dynamic_child): Likewise.
3592 (update_dynamic_varobj_children): Likewise.
3593 (varobj_add_child): Likewise.
3594 (create_child_with_value): Likewise.
3595
919b9a93
JB
35962014-06-11 Joel Brobecker <brobecker@adacore.com>
3597
3598 * NEWS: Create a new section for the next release branch.
3599 Rename the section of the current branch, now that it has
3600 been cut.
3601
71a55bdf
JB
36022014-06-11 Joel Brobecker <brobecker@adacore.com>
3603
3604 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3605 * version.in: Bump version to 7.8.50.DATE-cvs.
3606
364fe1f7
PA
36072014-06-11 Pedro Alves <palves@redhat.com>
3608
3609 PR remote/17028
3610 * ser-mingw.c (net_windows_socket_check_pending): New function.
3611 (net_windows_select_thread): Ignore spurious wakeups. Use
3612 net_windows_socket_check_pending.
3613 (net_windows_wait_handle): Check for pending events with
3614 ioctlsocket, through net_windows_socket_check_pending, instead of
3615 checking the socket's event.
3616
5a6c7709
SC
36172014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3618
3619 * python/python-internal.h (gdb_PyObject_GetAttrString)
3620 (gdb_PyObject_HasAttrString): New inline function definitions.
3621 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3622 char * of the second argument to PyObject_GetAttrString.
74228e77 3623
0e58ee40
JB
36242014-06-10 Joel Brobecker <brobecker@adacore.com>
3625
3626 * serial.c (serial_write): Fix index of character to be printed
3627 in call to serial_logchar when serial debug traces are enabled.
3628
d190df30
JB
36292014-06-10 Joel Brobecker <brobecker@adacore.com>
3630
3631 * gdbtypes (resolve_dynamic_range): Add function description.
3632
b4b01d36
PA
36332014-06-09 Pedro Alves <palves@redhat.com>
3634
3635 * linux-nat.c (linux_child_follow_fork): Initialize status with
3636 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3637 inner block. Only pass the signal to PTRACE_DETACH if in pass
3638 state.
3639
3657956b
GB
36402014-06-09 Gary Benson <gbenson@redhat.com>
3641
3642 * common/signals.c (gdb_signal_from_host): Reorder to separate
3643 the always-available ANSI-standard signals from the signals that
3644 require checking.
3645 (do_gdb_signal_to_host): Likewise.
3646 * proc-events.c (signal_table): Likewise.
3647
c077881a
HZ
36482014-06-08 Hui Zhu <hui@codesourcery.com>
3649
3650 * common/linux-ptrace.c (linux_disable_event_reporting): New
3651 function.
3652 * common/linux-ptrace.h (linux_disable_event_reporting): New
3653 declaration.
3654 * linux-nat.c (linux_child_follow_fork): Do a single step before
3655 detach.
3656
4186eb54
KS
36572014-06-07 Keith Seitz <keiths@redhat.com>
3658
3659 Revert:
3660 PR c++/16253
3661 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3662 from symbol_matches_domain in symtab.c. All local callers
3663 of symbol_matches_domain updated.
3664 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3665 search STRUCT_DOMAIN.
3666 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3667 independently. standard_lookup will do that automatically.
3668 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3670 (cp_lookup_symbol_in_namespace): Likewise.
3671 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3672 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3673 may return a STRUCT_DOMAIN match.
3674 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3675 * cp-support.c: Include language.h.
3676 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3677 VAR_DOMAIN.
3678 * psymtab.c (match_partial_symbol): Compare the requested
3679 domain with the symbol's domain directly.
3680 (lookup_partial_symbol): Likewise.
3681 * symtab.c (lookup_symbol_in_language): Explain when/why
3682 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3684 appropriate languages.
3685 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3686 and moved to ada-lang.c
3687 (lookup_block_symbol): Explain that this function only returns
3688 symbol matching the requested DOMAIN.
3689 Compare the requested domain with the symbol's domain directly.
3690 (iterate_over_symbols): Compare the requested domain with the
3691 symbol's domain directly.
3692 * symtab.h (symbol_matches_domain): Remove.
3693
25326a28 36942014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3695
3696 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3697 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3698 (gdbscm_guile_version_is_at_least): Declare.
3699 (gdbscm_scm_string_to_int): Declare.
3700 * guile/guile.c (gdbscm_guile_major_version): New global.
3701 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3702 (guile_datadir): New static global.
3703 (gdbscm_guile_data_directory): New function.
3704 (initialize_scheme_side): Update.
3705 (misc_guile_functions): Add guile-data-directory.
3706 (initialize_gdb_module): Fetch guile version number.
3707 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3708 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3709 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3710 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3711 comments.
3712 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3713 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3714 * guile/scm-value.c (gdbscm_value_to_string): Only call
3715 scm_port_conversion_strategy if Guile version >= 2.0.6.
3716
0a770bb2 37172014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3718
3719 * main.c (print_gdb_help): Add -q and --silent.
3720
73ba372c
GB
37212014-06-06 Gary Benson <gbenson@redhat.com>
3722
3723 * common/signals.c: Remove preprocessor conditionals for
3724 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3725 SIGSEGV and SIGTERM.
3726 * proc-events.c: Likewise.
3727
c33b2f12
MM
37282014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3729
3730 * symfile.c (symfile_free_objfile): Remove restriction to
3731 OBJF_USERLOADED.
3732 * symfile-mem.c (symbol_file_add_from_memory): Call
3733 add_target_sections_of_objfile.
3734
fb934770
LC
37352014-06-05 Ludovic Courtès <ludo@gnu.org>
3736
3737 * guile/scm-value.c (gdbscm_history_append_x): Use
3738 'vlscm_get_value_smob_arg_unsafe' instead of
3739 'vlscm_scm_to_value'.
3740
6ef284bd
SM
37412014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3742
3743 PR mi/15806
3744 * utils.c (printchar): Don't escape at all if quoter is NUL.
3745 Update function documentation to clarify effect of parameter
3746 QUOTER.
3747 * remote.c (escape_buffer): Pass '\\' as the quoter to
3748 fputstrn_unfiltered.
3749 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3750 generate the output.
3751 (mi_solib_unloaded): Same.
3752
270c9937
JB
37532014-06-05 Joel Brobecker <brobecker@adacore.com>
3754
3755 * development.sh: Delete.
3756 * Makefile.in (config.status): Adjust dependency on development.sh.
3757 * configure.ac: Adjust development.sh source call.
3758 * configure: Regenerate.
3759
16f691fb
DE
37602014-06-04 Doug Evans <xdje42@gmail.com>
3761
3762 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3763 is_scheme_bkpt, spec.
3764 (bpscm_make_breakpoint_smob): Initialize new members.
3765 (gdbscm_create_breakpoint_x): Split into two ...
3766 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3767 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3768 (scheme_function breakpoint_functions): Update.
3769 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3770 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3771 register-breakpoint!.
3772
ef7cab6b
JB
37732014-06-04 Joel Brobecker <brobecker@adacorer.com>
3774
3775 PR server/17023
3776 * mem-break.c (z_type_supported): Return zero if
3777 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3778
012370f6
TT
37792014-06-04 Tom Tromey <tromey@redhat.com>
3780
3781 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3782 value_from_contents_and_address_unresolved.
3783 (ada_template_to_fixed_record_type_1): Likewise.
3784 (ada_which_variant_applies): Likewise.
3785 * value.h (value_from_contents_and_address_unresolved): Declare.
3786 * value.c (value_from_contents_and_address_unresolved): New
3787 function.
3788 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3789 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3790 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3791
92e2a17f
TT
37922014-06-04 Tom Tromey <tromey@redhat.com>
3793
3794 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3795
c0939df1
TT
37962014-06-04 Tom Tromey <tromey@redhat.com>
3797
3798 * procfs.c (procfs_attach): Make "args" const.
3799 * windows-nat.c (windows_attach): Make "args" const.
3800 * nto-procfs.c (procfs_attach): Make "args" const.
3801 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3802 * go32-nat.c (go32_attach): Make "args" const.
3803 * gnu-nat.c (gnu_attach): Make "args" const.
3804 * darwin-nat.c (darwin_attach): Make "args" const.
3805 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3806 * linux-nat.c (linux_nat_attach): Make "args" const.
3807 * remote.c (extended_remote_attach_1, extended_remote_attach):
3808 Make "args" const.
3809 * target.h (struct target_ops) <to_attach>: Make "args" const.
3810 (find_default_attach): Likewise.
3811 * utils.c (parse_pid_to_attach): Make "args" const.
3812 * utils.h (parse_pid_to_attach): Update.
3813
8eaff7cd
TT
38142014-06-04 Tom Tromey <tromey@redhat.com>
3815
3816 * target-delegates.c: Rebuild.
3817 * target.c (default_thread_address_space): New function.
3818 (target_thread_address_space): Simplify.
3819 * target.h (struct target_ops) <to_thread_address_space>: Add
3820 TARGET_DEFAULT_FUNC.
3821
1913f160
DE
38222014-06-04 Doug Evans <xdje42@gmail.com>
3823
3824 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3825
70ad5bff
MM
38262014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3827
3828 * record-btrace.c: Include event-loop.h and inf-loop.h.
3829 (record_btrace_resume_exec_dir)
3830 (record_btrace_async_inferior_event_handler)
3831 (record_btrace_handle_async_inferior_event): New.
3832 (record_btrace_open): Create async event handler.
3833 (record_btrace_close): Delete async event handler.
3834 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3835 Mark async event handler.
3836 (record_btrace_execution_direction): New.
3837 (init_record_btrace_ops): Initialize to_execution_direction.
3838
b6210538
DE
38392014-06-03 Doug Evans <xdje42@gmail.com>
3840
3841 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3842 (gdbscm_make_parameter): Ditto.
3843
a5b1fd27
DE
38442014-06-03 Doug Evans <dje@google.com>
3845
3846 * exec.c (exec_close_1): Call clear_section_table instead of
3847 resize_section_table.
3848 (clear_section_table): New function.
3849 (resize_section_table): Make static. Rename arg num_added to
3850 adjustment.
3851 * exec.h (clear_section_table): Declare.
3852 (resize_section_table): Delete.
3853 * progspace.c (release_program_space): Call clear_section_table
3854 instead of resize_section_table.
3855
0c6e92a5
SC
38562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3857
3858 * NEWS (Python Scripting): Add entry about the new xmethods
3859 feature.
3860
883964a7
SC
38612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3862
3863 * python/py-xmethods.c: New file.
3864 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3865 (objfpy_dealloc): XDECREF on the new xmethods field.
3866 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3867 field.
3868 (objfpy_get_xmethods): New function.
3869 (objfile_getset): New entry 'xmethods'.
3870 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3871 (pspy_dealloc): XDECREF on the new xmethods field.
3872 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3873 field.
3874 (pspy_get_xmethods): New function.
3875 (pspace_getset): New entry 'xmethods'.
3876 * python/python-internal.h: Add declarations for new functions.
3877 * python/python.c (_initialize_python): Invoke
3878 gdbpy_initialize_xmethods.
3879 * python/lib/gdb/__init__.py (xmethods): New
3880 attribute.
3881 * python/lib/gdb/xmethod.py: New file.
3882 * python/lib/gdb/command/xmethods.py: New file.
3883
58992dc5
SC
38842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3885
3886 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3887 best match method returned by find_overload_match is an xmethod.
3888 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3889 the best matching operator returned by find_overload_match is an
3890 xmethod.
3891 * valops.c: #include "extension.h".
3892 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3893 Return void. The list of matching source methods is returned in
3894 "fn_list" and a vector of matching debug method workers is
3895 returned in "xm_worker_vec". Update all callers.
3896 (value_find_oload_method_list): Likewise.
3897 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3898 non-NULL, then the index of the best matching method in this
3899 vector is returned. Update all callers.
3900 (find_overload_match): Include xmethods while performing overload
3901 resolution.
3902
e81e7f5e
SC
39032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3904
3905 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3906 * extension-priv.h (struct extension_language_ops): Add the
3907 xmethod interface.
3908 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3909 get_matching_xmethod_workers, get_xmethod_argtypes,
3910 invoke_xmethod, free_xmethod_worker,
3911 free_xmethod_worker_vec): New functions.
3912 * extension.h: #include "common/vec.h".
3913 New function declarations.
3914 (struct xmethod_worker): New struct.
3915 (VEC (xmethod_worker_ptr)): New vector type.
3916 (xmethod_worker_ptr): New typedef.
3917 (xmethod_worker_vec): Likewise.
3918 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3919 builtin_type.
3920 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3921 (struct builtin_type): New field "xmethod".
3922 * valarith.c (value_ptradd): Assert that the value argument is not
3923 lval_xcallable.
3924 * valops.c (value_must_coerce_to_target): Return 0 for
3925 lval_xcallable values.
3926 * value.c (struct value): New field XM_WORKER in the field
3927 LOCATION.
3928 (value_address, value_raw_address): Return 0 for lval_xcallable
3929 values.
3930 (set_value_address): Assert that the value is not an
3931 lval_xcallable.
3932 (value_free): Free the associated xmethod worker when freeing
3933 lval_xcallable values.
3934 (set_value_component_location): Assert that the WHOLE value is not
3935 lval_xcallable.
3936 (value_of_xmethod, call_xmethod): New functions.
3937 * value.h: Declare "struct xmethod_worker".
3938 Declare new functions value_of_xmethod, call_xmethod.
3939
ef370185
JB
39402014-06-03 Joel Brobecker <brobecker@adacore.com>
3941 Pedro Alves <palves@redhat.com>
3942
3943 PR breakpoints/17000
3944 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3945 New function, extracted from software_breakpoint_inserted_here_p.
3946 (software_breakpoint_inserted_here_p): Replace factored out code
3947 by call to find_non_raw_software_breakpoint_inserted_here.
3948 (bp_target_info_copy_insertion_state): New function.
3949 (bkpt_insert_location): Handle the case of a single-step
3950 breakpoint already inserted at the same address.
3951 (bkpt_remove_location): Handle the case of a single-step
3952 breakpoint still inserted at the same address.
3953 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3954 breakpoint already inserted at the same address.
3955 (deprecated_remove_raw_breakpoint): Handle the case of a
3956 non-raw breakpoint still inserted at the same address.
3957 (find_single_step_breakpoint): New function, extracted from
3958 single_step_breakpoint_inserted_here_p.
3959 (find_single_step_breakpoint): New function,
3960 factored out from single_step_breakpoint_inserted_here_p.
3961 (single_step_breakpoint_inserted_here_p): Reimplement.
3962
1e2ccb61
BM
39632014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3964
3965 Pushed by Joel Brobecker <brobecker@adacore.com>
3966 * source.c (show_substitute_path_command): Fix display of matching
3967 substitution rules.
3968
d3448d85
GB
39692014-06-03 Gary Benson <gbenson@redhat.com>
3970
3971 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3972
06eb1586
DE
39732014-06-02 Doug Evans <xdje42@gmail.com>
3974
3975 Add parameter support for Guile.
3976 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3977 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3978 (scm-param.o): New rule.
3979 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3980 (gdbscm_misc_error): Declare.
3981 (gdbscm_canonicalize_command_name): Declare.
3982 (gdbscm_scm_to_host_string): Declare.
3983 (gdbscm_scm_from_host_string): Declare.
3984 (gdbscm_initialize_parameters): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_parameters.
3987 * guile/lib/gdb.scm: Export parameter symbols.
3988 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3989 cmdscm_canonicalize_name and made public. All callers updated.
3990 * guile/scm-exception.c (gdbscm_misc_error): New function.
3991 * guile/scm-param.c: New file.
3992 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3993 (gdbscm_scm_to_host_string): New function.
3994 (gdbscm_scm_from_host_string): New function.
3995 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3996
e698b8c4
DE
39972014-06-02 Doug Evans <xdje42@gmail.com>
3998
3999 Add command support for Guile.
4000 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4001 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4002 (scm-cmd.o): New rule.
4003 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4004 (gdbscm_user_error_p): Declare.
4005 (gdbscm_parse_command_name): Declare.
4006 (gdbscm_valid_command_class_p): Declare.
4007 (gdbscm_initialize_commands): Declare.
4008 * guile/guile.c (initialize_gdb_module): Call
4009 gdbscm_initialize_commands.
4010 * guile/lib/gdb.scm: Export command symbols.
4011 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4012 (throw-user-error): New function.
4013 * guile/scm-cmd.c: New file.
4014 * guile/scm-exception.c (user_error_symbol): New static global.
4015 (gdbscm_user_error_p): New function.
4016 (gdbscm_initialize_exceptions): Set user_error_symbol.
4017 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4018
fb1f94b0
PM
40192014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4020
4021 * top.c (command_loop): Handle comments here...
4022 (command_line_input): ... not here.
4023
ded03782
DE
40242014-06-02 Doug Evans <xdje42@gmail.com>
4025
4026 Add progspace support for Guile.
4027 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4028 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4029 (scm-progspace.o): New rule.
4030 * guile/guile-internal.h (pspace_smob): New typedef.
4031 (psscm_pspace_smob_pretty_printers): Declare.
4032 (psscm_pspace_smob_from_pspace): Declare.
4033 (psscm_scm_from_pspace): Declare.
4034 * guile/guile.c (initialize_gdb_module): Call
4035 gdbscm_initialize_pspaces.
4036 * guile/lib/gdb.scm: Export progspace symbols.
4037 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4038 support.
4039 (append-pretty-printer!): Ditto.
4040 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4041 Implement.
4042 * guile/scm-progspace.c: New file.
4043
397998fc
AM
40442014-06-03 Alan Modra <amodra@gmail.com>
4045
4046 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4047 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4048
6aa5f3a6
DE
40492014-06-02 Doug Evans <dje@google.com>
4050
4051 Add support for skeletonless type units.
4052 * dwarf2read.c (struct dwarf2_per_objfile): New member
4053 n_allocated_type_units.
4054 (struct dwarf2_per_objfile) <tu_stats>: New member
4055 nr_all_type_units_reallocs.
4056 (create_signatured_type_table_from_index): Initialize
4057 n_allocated_type_units
4058 (create_all_type_units): Ditto.
4059 (add_type_unit): Move up in file. New arg slot.
4060 All callers updated. Increase space for all_type_units more
4061 efficiently.
4062 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4063 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4064 (lookup_dwp_signatured_type): Ditto.
4065 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4066 All callers updated.
4067 (build_type_psymtabs_1): Leave type_unit_groups as
4068 NULL if no TUs present.
4069 (print_tu_stats): New function.
4070 (process_skeletonless_type_unit): New function.
4071 (process_dwo_file_for_skeletonless_type_units): New
4072 function.
4073 (process_skeletonless_type_units): New function.
4074 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4075 Call print tu_stats if debugging enabled.
4076
41fac0cf
PA
40772014-06-02 Pedro Alves <palves@redhat.com>
4078
4079 * breakpoint.c (build_target_command_list): Don't build a command
4080 list if we have any duplicate location that isn't a dprintf.
4081
cd1608cc
PA
40822014-06-02 Pedro Alves <palves@redhat.com>
4083
4084 * breakpoint.c (dprintf_breakpoint_hit): New function.
4085 (initialize_breakpoint_ops): Install it as dprintf's
4086 breakpoint_hit method.
4087
486ef3b9
JB
40882014-06-02 Joel Brobecker <brobecker@adacore.com>
4089
4090 * source.c (substitute_path_rule_matches): Simplify using
4091 filename_ncmp instead of FILENAME_CMP.
4092
230cd560
JB
40932014-06-02 Joel Brobecker <brobecker@adacore.com>
4094
4095 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4096
16954d5d
LC
40972014-06-01 Ludovic Courtès <ludo@gnu.org>
4098
4099 * configure.ac: When Guile is available, check for the
4100 availability of 'scm_new_smob'.
4101 * configure, config.h.in: Regenerate.
4102 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4103 function.
4104
53e8a631
AB
41052014-05-30 Andrew Burgess <aburgess@broadcom.com>
4106
4107 * frame.c (struct frame_info): Add stop_string field.
4108 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4109 (get_prev_frame_always): Old content moved into
4110 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4111 TRY_CATCH, handle MEMORY_ERROR exceptions.
4112 (frame_stop_reason_string): New function definition.
4113 * frame.h (unwind_stop_reason_to_string): Extend comment to
4114 mention frame_stop_reason_string.
4115 (frame_stop_reason_string): New function declaration.
4116 * stack.c (frame_info): Switch to frame_stop_reason_string.
4117 (backtrace_command_1): Switch to frame_stop_reason_string.
4118 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4119 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4120 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4121
70e38b8e
AB
41222014-05-30 Andrew Burgess <aburgess@broadcom.com>
4123
4124 * frame.c (frame_stop_reason_string): Rename to ...
4125 (unwind_stop_reason_to_string): this.
4126 * frame.h (frame_stop_reason_string): Rename to ...
4127 (unwind_stop_reason_to_string): this.
4128 * stack.c (frame_info): Update call to frame_stop_reason_string.
4129 (backtrace_command_1): Likewise.
4130 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4131 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4132
938f0e2f
AB
41332014-05-30 Andrew Burgess <aburgess@broadcom.com>
4134
4135 * frame.c (remove_prev_frame): New function.
4136 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4137 remove_prev_frame.
4138
a09dd441
PA
41392014-05-29 Pedro Alves <palves@redhat.com>
4140
4141 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4142 and make it const. When a single-step decays to a continue,
4143 clear 'step', not 'hw_step'. Pass whether the caller wanted
4144 to step to user_visible_resume_ptid, not what we ask the
4145 target to do.
4146
bdc36728
PA
41472014-05-29 Pedro Alves <palves@redhat.com>
4148
4149 * infrun.c (process_event_stop_test, handle_step_into_function)
4150 (handle_step_into_function_backward): Adjust.
4151 Don't set the even thread's stop_step and call stop_waiting before
4152 calling end_stepping_range. Instead do that ...
4153 (end_stepping_range): ... here. Take an ecs pointer parameter.
4154
22bcd14b
PA
41552014-05-29 Pedro Alves <palves@redhat.com>
4156
4157 * infrun.c (stop_stepping): Rename to ...
4158 (stop_waiting): ... this.
4159 (proceed): Update comment.
4160 (process_event_stop_test, handle_inferior_event)
4161 (handle_signal_stop, handle_step_into_function)
4162 (handle_step_into_function_backward): Update.
4163
4ae57c05
PA
41642014-05-29 Pedro Alves <palves@redhat.com>
4165
4166 * infcall.c (run_inferior_call): Don't check whether the current
4167 thread is running after the proceed call.
4168
329ea579
PA
41692014-05-29 Pedro Alves <palves@redhat.com>
4170 Tom Tromey <tromey@redhat.com>
4171
4172 * NEWS: Mention "maint set target-async", "set mi-async", and that
4173 background execution commands are now always available.
4174 * target.h (target_async_permitted): Update comment.
4175 * target.c (target_async_permitted, target_async_permitted_1):
4176 Default to 1.
4177 (set_target_async_command): Rename to ...
4178 (maint_set_target_async_command): ... this.
4179 (show_target_async_command): Rename to ...
4180 (maint_show_target_async_command): ... this.
4181 (_initialize_target): Adjust.
4182 * infcmd.c (prepare_execution_command): Make extern.
4183 * inferior.h (prepare_execution_command): Declare.
4184 * infrun.c (set_observer_mode): Leave target async alone.
4185 * mi/mi-interp.c (mi_interpreter_init): Install
4186 mi_on_sync_execution_done as sync_execution_done observer.
4187 (mi_on_sync_execution_done): New function.
4188 (mi_execute_command_input_handler): Don't print the prompt if we
4189 just started a synchronous command with an async target.
4190 (mi_on_resume): Check sync_execution before printing prompt.
4191 * mi/mi-main.h (mi_async_p): Declare.
4192 * mi/mi-main.c: Include gdbcmd.h.
4193 (mi_async_p): New function.
4194 (mi_async, mi_async_1): New globals.
4195 (set_mi_async_command, show_mi_async_command, mi_async): New
4196 functions.
4197 (exec_continue): Call prepare_execution_command.
4198 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4199 (mi_execute_async_cli_command): Use mi_async_p.
4200 (_initialize_mi_main): Install "set mi-async". Make
4201 "target-async" a deprecated alias.
4202
92bcb5f9
PA
42032014-05-29 Pedro Alves <palves@redhat.com>
4204
4205 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4206 (_initialize_cli_interp): Adjust.
4207 * event-loop.c: Include "observer.h".
4208 (start_event_loop): Notify 'command_error' observers instead of
4209 calling display_gdb_prompt. Remove FIXME comment.
4210 * event-top.c (display_gdb_prompt): Remove call into the
4211 interpreters.
4212 * inf-loop.c: Include "observer.h".
4213 (inferior_event_handler): Notify 'command_error' observers instead
4214 of calling display_gdb_prompt.
4215 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4216 observers instead of calling display_gdb_prompt.
4217 * interps.c (interp_set): Don't call display_gdb_prompt.
4218 (current_interp_display_prompt_p): Delete.
4219 * interps.h (interp_prompt_p): Delete declaration.
4220 (interp_prompt_p_ftype): Delete.
4221 (struct interp_procs) <prompt_proc_p>: Delete field.
4222 (current_interp_display_prompt_p): Delete declaration.
4223 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4224 (_initialize_mi_interp): Adjust.
4225 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4226 'command_error' observers.
4227 (tui_on_sync_execution_done, tui_on_command_error): New
4228 functions.
4229 (tui_display_prompt_p): Delete.
4230 (_initialize_tui_interp): Adjust.
4231
fd664c91
PA
42322014-05-29 Pedro Alves <palves@redhat.com>
4233
4234 PR gdb/13860
4235 * cli/cli-interp.c: Include infrun.h and observer.h.
4236 (cli_uiout, cli_interp): New globals.
4237 (cli_on_signal_received, cli_on_end_stepping_range)
4238 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4239 functions.
4240 (cli_interpreter_init): Install them as 'end_stepping_range',
4241 'signal_received' 'signal_exited', 'exited' and 'no_history'
4242 observers.
4243 (_initialize_cli_interp): Remove cli_interp local.
4244 * infrun.c (handle_inferior_event): Call the several stop reason
4245 observers instead of printing the stop reason directly.
4246 (end_stepping_range): New function.
4247 (print_end_stepping_range_reason, print_signal_exited_reason)
4248 (print_exited_reason, print_signal_received_reason)
4249 (print_no_history_reason): Make static, and add an uiout
4250 parameter. Print to that instead of to CURRENT_UIOUT.
4251 * infrun.h (print_end_stepping_range_reason)
4252 (print_signal_exited_reason, print_exited_reason)
4253 (print_signal_received_reason print_no_history_reason): New
4254 declarations.
4255 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4256 'mi_uiout'.
4257 <cli_uiout>: New field.
4258 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4259 uiout for CLI output. Install 'signal_received',
4260 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4261 observers.
4262 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4263 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4264 (mi_on_no_history): New functions.
4265 (ui_out_free_cleanup): Delete function.
4266 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4267 instead use the one already stored in the MI interpreter data.
4268 (mi_ui_out): Adjust.
4269 * tui/tui-interp.c: Include infrun.h and observer.h.
4270 (tui_interp): New global.
4271 (tui_on_signal_received, tui_on_end_stepping_range)
4272 (tui_on_signal_exited, tui_on_exited)
4273 (tui_on_no_history): New functions.
4274 (tui_init): Install them as 'end_stepping_range',
4275 'signal_received' 'signal_exited', 'exited' and 'no_history'
4276 observers.
4277 (_initialize_tui_interp): Delete tui_interp local.
4278
8817a6f2
PA
42792014-05-29 Pedro Alves <palves@redhat.com>
4280
4281 PR gdb/15713
4282 * linux-nat.c (linux_nat_resume_callback): Rename the second
4283 parameter to 'except'. Skip LP if it points to EXCEPT.
4284 (linux_nat_resume): Don't mark the event lwp as not stopped
4285 before resuming sibling lwps. Instead ask
4286 linux_nat_resume_callback to skip the event lwp. Mark it as not
4287 stopped after actually resuming it.
4288 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4289 resuming it.
4290 (wait_lwp): Mark the lwp as stopped here.
4291 (stop_wait_callback): Mark the lwp as not stopped right after
4292 resuming it. Don't mark lwps as stopped here.
4293 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4294 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4295
251bde03
PA
42962014-05-29 Pedro Alves <palves@redhat.com>
4297
4298 PR PR15693
4299 * infrun.c (resume): Determine how much to resume depending on
4300 whether the caller wanted a step, not whether we can hardware step
4301 the target. Mark all threads that we intend to run as running,
4302 unless we're calling an inferior function.
4303 (normal_stop): If the thread is running an infcall, don't finish
4304 thread state.
4305 * target.c (target_resume): Don't mark threads as running here.
4306
7f3c0343
JB
43072014-05-28 Joel Brobecker <brobecker@adacore.com>
4308
4309 * serial.c (_initialize_serial): Remove support for
4310 the "set remotebaud" and "show remotebaud" commands.
4311 * NEWS: Add entry documenting the removal of that command.
4312
ee34b3f9
YQ
43132014-05-28 Yao Qi <yao@codesourcery.com>
4314
4315 * charset.c: Fix typo in comments.
4316
add6c04d
GB
43172014-05-27 Gary Benson <gbenson@redhat.com>
4318
4319 * utils.c (internal_vproblem): Prompt for a bug report.
4320
92c48fc5
AW
43212014-05-26 Andy Wingo <wingo@igalia.com>
4322
4323 * guile/scm-arch.c (arscm_mark_arch_smob):
4324 * guile/scm-block.c (bkscm_mark_block_smob)
4325 (bkscm_mark_block_syms_progress_smob):
4326 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4327 * guile/scm-exception.c (exscm_mark_exception_smob):
4328 * guile/scm-frame.c (frscm_mark_frame_smob):
4329 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4330 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4331 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4332 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4333 (ppscm_mark_pretty_printer_worker_smob):
4334 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4335 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4336 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4337 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4338 mark functions.
4339 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4340 function.
4341
b2715b27
AW
43422014-05-26 Andy Wingo <wingo@igalia.com>
4343 Doug Evans <xdje42@gmail.com>
4344
4345 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4346 empty_base_class. All uses updated.
4347 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4348 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4349 Adapt all callers.
4350 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4351 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4352 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4353 (gdbscm_gsmob_has_property_p, add_property_name)
4354 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4355 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4356 (gdb-object-has-property?, gdb-object-properties): Remove.
4357 (gdb-object-kind): Renamed from gsmob-kind.
4358
214ab2da
AW
43592014-05-26 Andy Wingo <wingo@igalia.com>
4360
4361 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4362 * configure: Regenerate.
4363
589fdceb
MM
43642014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4365
4366 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4367
67b5c0c1
MM
43682014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4369
4370 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4371 (replay_memory_access_read_only, replay_memory_access_read_write)
4372 (replay_memory_access_types, replay_memory_access)
4373 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4374 (cmd_set_record_btrace, cmd_show_record_btrace)
4375 (cmd_show_replay_memory_access): New.
4376 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4377 (record_btrace_remove_breakpoint): Replace
4378 record_btrace_allow_memory_access with replay_memory_access.
4379 (_initialize_record_btrace): Add commands.
4380 * NEWS: Announce it.
4381
036cd381
RR
43822014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4383
4384 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4385
c77c1e42
RR
43862014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4387
4388 * MAINTAINERS (Write After Approval): Move self back from
4389 paper trail.
4390
45741a9c
PA
43912014-05-22 Pedro Alves <palves@redhat.com>
4392
4393 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4394 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4395 (disable_randomization, enum exec_direction_kind)
4396 (execution_direction, stop_registers, start_remote)
4397 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4398 (wait_for_inferior, normal_stop, get_last_target_status)
4399 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4400 (insert_step_resume_breakpoint_at_sal)
4401 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4402 (set_step_info, print_stop_event, signal_stop_state)
4403 (signal_print_state, signal_pass_state, signal_stop_update)
4404 (signal_print_update, signal_pass_update)
4405 (update_signals_program_target, clear_exit_convenience_vars)
4406 (displaced_step_dump_bytes, update_observer_mode)
4407 (signal_catch_update, gdb_signal_from_command): Move
4408 declarations ...
4409 * infrun.h: ... to this new file.
4410 * amd64-tdep.c: Include infrun.h.
4411 * annotate.c: Include infrun.h.
4412 * arch-utils.c: Include infrun.h.
4413 * arm-linux-tdep.c: Include infrun.h.
4414 * arm-tdep.c: Include infrun.h.
4415 * break-catch-sig.c: Include infrun.h.
4416 * breakpoint.c: Include infrun.h.
4417 * common/agent.c: Include infrun.h instead of inferior.h.
4418 * corelow.c: Include infrun.h.
4419 * event-top.c: Include infrun.h.
4420 * go32-nat.c: Include infrun.h.
4421 * i386-tdep.c: Include infrun.h.
4422 * inf-loop.c: Include infrun.h.
4423 * infcall.c: Include infrun.h.
4424 * infcmd.c: Include infrun.h.
4425 * infrun.c: Include infrun.h.
4426 * linux-fork.c: Include infrun.h.
4427 * linux-nat.c: Include infrun.h.
4428 * linux-thread-db.c: Include infrun.h.
4429 * monitor.c: Include infrun.h.
4430 * nto-tdep.c: Include infrun.h.
4431 * procfs.c: Include infrun.h.
4432 * record-btrace.c: Include infrun.h.
4433 * record-full.c: Include infrun.h.
4434 * remote-m32r-sdi.c: Include infrun.h.
4435 * remote-mips.c: Include infrun.h.
4436 * remote-notif.c: Include infrun.h.
4437 * remote-sim.c: Include infrun.h.
4438 * remote.c: Include infrun.h.
4439 * reverse.c: Include infrun.h.
4440 * rs6000-tdep.c: Include infrun.h.
4441 * s390-linux-tdep.c: Include infrun.h.
4442 * solib-irix.c: Include infrun.h.
4443 * solib-osf.c: Include infrun.h.
4444 * solib-svr4.c: Include infrun.h.
4445 * target.c: Include infrun.h.
4446 * top.c: Include infrun.h.
4447 * windows-nat.c: Include infrun.h.
4448 * mi/mi-interp.c: Include infrun.h.
4449 * mi/mi-main.c: Include infrun.h.
4450 * python/py-threadevent.c: Include infrun.h.
4451
98eb56a4
PA
44522014-05-22 Pedro Alves <palves@redhat.com>
4453
4454 * infrun.c (handle_inferior_event): Store the exit code for
4455 --return-child-result here, instead of ...
4456 (print_exited_reason): ... here.
4457
17b2616c
PA
44582014-05-21 Pedro Alves <palves@redhat.com>
4459
4460 PR gdb/13860
4461 * gdbthread.h (struct thread_control_state): New field
4462 `command_interp'.
4463 * infrun.c (follow_fork): Copy the new thread control field to the
4464 child fork thread.
4465 (clear_proceed_status_thread): Clear the new thread control field.
4466 (proceed): Set the new thread control field.
4467 * interps.h (command_interp): Declare.
4468 * interps.c (command_interpreter): New global.
4469 (command_interp): New function.
4470 (interp_exec): Set `command_interpreter' while here.
4471 * cli-out.c (cli_uiout_dtor): New function.
4472 (cli_ui_out_impl): Install it.
4473 * mi/mi-interp.c: Include cli-out.h.
4474 (mi_cmd_interpreter_exec): Add comment.
4475 (restore_current_uiout_cleanup): New function.
4476 (ui_out_free_cleanup): New function.
4477 (mi_on_normal_stop): If finishing an execution command started by
4478 a CLI command, or any kind of breakpoint-like event triggered,
4479 print the stop event to the output (CLI) stream.
4480 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4481
5166082f
PA
44822014-05-21 Pedro Alves <palves@redhat.com>
4483
4484 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4485 current source line having changed.
4486 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4487 * infrun.c (normal_stop): Adjust call to
4488 set_current_sal_from_frame.
4489 * source.c (clear_lines_listed_range): New function.
4490 (set_current_source_symtab_and_line, identify_source_line): Clear
4491 the lines listed range.
4492 (line_info): Handle the first "info line" after the current source
4493 line having changed.
4494 * stack.c (print_stack_frame): Remove center handling.
4495 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4496 center sal.line.
4497
c1ee2fb3
PA
44982014-05-21 Pedro Alves <palves@redhat.com>
4499
4500 * inf-child.c (inf_child_mourn_inferior): New function.
4501 * inf-child.h (inf_child_mourn_inferior): New declaration.
4502 * darwin-nat.c (darwin_mourn_inferior): Use
4503 inf_child_mourn_inferior.
4504 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4505 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4506 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4507 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4508 * windows-nat.c (windows_mourn_inferior): Likewise.
4509
5c6d4fb2
DE
45102014-05-21 Doug Evans <xdje42@gmail.com>
4511
250748cb 4512 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4513
4a2722c5
DE
45142014-05-21 Doug Evans <xdje42@gmail.com>
4515
17292b30 4516 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4517 (gdbscm_out_of_range_error): Ditto.
4518 (gdbscm_memory_error): Ditto.
250748cb
DE
4519 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4520 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4521 (gdbscm_out_of_range_error): Update.
4522 (gdbscm_memory_error): Update.
4523 (gdbscm_scm_to_target_string_unsafe): Delete.
4524
6a3cb8e8
PA
45252014-05-21 Pedro Alves <palves@redhat.com>
4526
4527 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4528 globals.
4529 (inf_child_open_target): New function.
4530 (inf_child_open): Use inf_child_open_target to push the target
4531 instead of erroring out.
4532 (inf_child_disconnect, inf_child_close)
4533 (inf_child_maybe_unpush_target): New functions.
4534 (inf_child_target): Install inf_child_disconnect and
4535 inf_child_close. Store a pointer to the returned object.
4536 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4537 declarations.
4538 * target.c (auto_connect_native_target): New global.
4539 (show_default_run_target): New function.
4540 (find_default_run_target): Return NULL if automatically connecting
4541 to the native target is disabled.
4542 (_initialize_target): Install set/show auto-connect-native-target.
4543 * NEWS: Mention "set auto-connect-native-target", and "target
4544 native".
4545 * linux-nat.c (super_close): New global.
4546 (linux_nat_close): Call super_close.
4547 (linux_nat_add_target): Store a pointer to the base class's
4548 to_close method.
4549 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4550 inf_child_maybe_unpush.
4551 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4552 already pushed.
4553 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4554 the inferior. Use inf_child_maybe_unpush_target.
4555 (inf_ttrace_attach): Don't push the target if it is already
4556 pushed.
4557 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4558 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4559 after mourning the inferior. Use inf_child_maybe_unpush_target.
4560 (darwin_attach_pid): Don't push the target if it is already
4561 pushed.
4562 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4563 mourning the inferior. Use inf_child_maybe_unpush_target.
4564 (gnu_detach): Use inf_child_maybe_unpush_target.
4565 * go32-nat.c (go32_create_inferior): Don't push the target if it
4566 is already pushed.
4567 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4568 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4569 (procfs_open): Rename to ...
4570 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4571 comments. Can target_preopen before changing node. Call
4572 inf_child_open_target to push the target explicitly.
4573 (procfs_attach): Don't push the target if it is already pushed.
4574 (procfs_detach): Use inf_child_maybe_unpush_target.
4575 (procfs_create_inferior): Don't push the target if it is already
4576 pushed.
4577 (nto_native_ops): New global.
4578 (procfs_open): Reimplement.
4579 (procfs_native_open): New function.
4580 (init_procfs_targets): Install procfs_native_open as to_open of
4581 "target native". Store a pointer to the "native" target in
4582 nto_native_ops.
4583 * procfs.c (procfs_attach): Don't push the target if it is already
4584 pushed.
4585 (procfs_detach): Use inf_child_maybe_unpush_target.
4586 (procfs_mourn_inferior): Only unpush the target after mourning the
4587 inferior. Use inf_child_maybe_unpush_target.
4588 (procfs_init_inferior): Don't push the target if it is already
4589 pushed.
4590 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4591 if it is already pushed.
4592
930ee1b1
PA
45932014-05-21 Pedro Alves <palves@redhat.com>
4594
4595 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4596 and "procfs" targets are now called "native" instead.
4597
1f5d1b13
PA
45982014-05-21 Pedro Alves <palves@redhat.com>
4599
4600 * go32-nat.c (go32_open): Delete.
4601 (go32_target): Don't override the to_open method.
4602
132f8e03
PA
46032014-05-21 Pedro Alves <palves@redhat.com>
4604
4605 * nto-procfs.c (procfs_can_run): New function.
4606 (nto_procfs_ops): New global.
4607 (init_procfs_targets): New, based on procfs_target. Install
4608 "target native" in addition to "target procfs".
4609 (_initialize_procfs): Call init_procfs_targets instead of adding
4610 the target here.
4611
03c136c3
PA
46122014-05-21 Pedro Alves <palves@redhat.com>
4613
4614 * windows-nat.c (windows_target): Don't override to_shortname,
4615 to_longname or to_doc.
4616
a635d0f3
PA
46172014-05-21 Pedro Alves <palves@redhat.com>
4618
4619 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4620 to_doc.
4621
4f9b5133
PA
46222014-05-21 Pedro Alves <palves@redhat.com>
4623
4624 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4625 to_shortname, to_longname or to_doc.
4626
bc85afde
PA
46272014-05-21 Pedro Alves <palves@redhat.com>
4628
4629 * go32-nat.c (go32_target): Don't override to_shortname,
4630 to_longname or to_doc.
4631
4ebfc96e
PA
46322014-05-21 Pedro Alves <palves@redhat.com>
4633
4634 * inf-child.c (inf_child_open): Remove mention of "child".
4635 (inf_child_target): Rename target to "native" instead of "child".
4636
2648dfed
AA
46372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4638
4639 * Makefile.in (SFILES): Delete "regset.c".
4640 (COMMON_OBS): Delete "regset.o".
4641 * regset.c: Remove.
4642 * regset.h (regset_alloc): Delete prototype.
4643
b13feb94
AA
46442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4645
4646 * sparc-linux-tdep.c (sparc32_linux_gregset)
4647 (sparc32_linux_fpregset): New static regset structures.
4648 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4649 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4650 'fpregset' fields.
4651 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4652 (sparc64_linux_fpregset): New static regset structures.
4653 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4654 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4655 New static regset structures.
4656 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4657 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4658 New static regset structures.
4659 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4660 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4661 New static regset structures.
4662 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4663 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4664 New static regset structures.
4665 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4666
b4fd25c9
AA
46672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4668
4669 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4670 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4671 register maps ("regmaps") from "*regset" to "*regmap". Do this
4672 for all regmap types and variables.
4673 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4674 (sparc32_linux_supply_core_gregset)
4675 (sparc32_linux_collect_core_gregset)
4676 (sparc32_linux_supply_core_fpregset)
4677 (sparc32_linux_collect_core_fpregset): Likewise.
4678 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4679 (sparc_gregmap, sparc_fpregmap): ... these.
4680 (sparc_supply_gregset, sparc_collect_gregset)
4681 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4682 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4683 (_initialize_sparc_nat): Rename regmaps.
4684 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4685 (sparc_gregmap, sparc_fpregmap): ... these.
4686 (sparc_supply_gregset, sparc_collect_gregset)
4687 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4688 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4689 Rename macros to...
4690 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4691 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4692 Likewise.
4693 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4694 Rename to...
4695 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4696 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4697 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4698 regmaps.
4699 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4700 (sparc32_bsd_fpregset): Rename to...
4701 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4702 (sparc32_bsd_fpregmap): ... these.
4703 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4704 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4705 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4706 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4707 (struct sparc_gregmap, struct sparc_fpregmap)
4708 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4709 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4710 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4711 (sparc32_supply_regset, sparc32_collect_gregset)
4712 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4713 prototypes.
4714 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4715 (sparc64_linux_ptrace_gregmap): ... this.
4716 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4717 (_initialize_sparc64_linux_nat): Rename regmaps.
4718 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4719 (sparc64_linux_core_gregmap): ... this.
4720 (sparc64_linux_supply_core_gregset)
4721 (sparc64_linux_collect_core_gregset)
4722 (sparc64_linux_supply_core_fpregset)
4723 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4724 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4725 (sparc64_sol2_fpregset): Rename to...
4726 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4727 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4728 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4729 regmaps.
4730 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4731 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4732 (sparc64_bsd_fpregset): Rename to...
4733 (struct sparc_gregmap, sparc64_sol2_gregmap)
4734 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4735 (sparc64_bsd_fpregmap): ... these.
4736 (sparc64_supply_gregset, sparc64_collect_gregset)
4737 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4738 prototypes.
4739 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4740 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4741 (sparc64fbsd_gregmap): ... this.
4742 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4743 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4744 Rename regmaps.
4745 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4746 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4747 (sparc64nbsd_collect_fpregset): Likewise.
4748 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4749 (sparc64nbsd_gregmap): ... this.
4750 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4751 regmaps.
4752 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4753 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4754 (sparc64obsd_gregmap): ... this.
4755 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4756 regmaps.
4757 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4758 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4759 (sparc32nbsd_gregmap): ... this.
4760 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4761 regmaps.
4762
8fea3224
AA
47632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4764
4765 * score-tdep.c (score7_linux_gregset): New static regset
4766 structure.
4767 (score7_linux_regset_from_core_section): Remove dynamic regset
4768 allocation.
4769 (score_gdbarch_init): Drop allocation of tdep structure.
4770 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4771
24534243
AA
47722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4773
4774 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4775 regset structures.
4776 (am33_regset_from_core_section): Remove dynamic regset
4777 allocations.
4778
b7195f27
AA
47792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4780
4781 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4782 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4783 structures.
4784 (mips_linux_regset_from_core_section): Remove dynamic regset
4785 allocations.
4786 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4787 'gregset64', 'fpregset', and 'fpregset64'.
4788 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4789 deleted tdep fields.
4790
ecc37a5a
AA
47912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4792
4793 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4794 regset structures.
4795 (amd64_regset_from_core_section): Remove dynamic regset
4796 allocations.
4797 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4798 structure.
4799 (amd64obsd_regset_from_core_section): Remove dynamic regset
4800 allocation.
4801 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4802 Likewise.
4803 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4804 x86-common regset supply function.
4805 * i386-tdep.c (i386_collect_gregset): Make static.
4806 (i386_gregset): New global regset structure.
4807 (i386_fpregset, i386_xstateregset): New static regset structures.
4808 (i386_regset_from_core_section): Remove dynamic regset
4809 allocations.
4810 (i386_gdbarch_init): Remove initialization of tdep fields
4811 'gregset', 'fpregset', and 'xstateregset'.
4812 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4813 'fpregset', and 'xstateregset'.
4814 (i386_collect_gregset): Remove prototype.
4815 (i386_gregset): New declaration.
4816 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4817 structure.
4818 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4819 allocation.
4820
b7611c43
AA
48212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4822
4823 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4824 (arm_linux_vfpregset): New static regset structures.
4825 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4826 regset structures.
4827 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4828 and 'vfpregset' fields.
4829
a069a2bd
AA
48302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4831
4832 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4833 (aarch64_linux_fpregset): New static regset structures.
4834 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4835 of regset structures.
4836 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4837 'fpregset' fields.
4838
09424cff
AA
48392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4840
4841 * regset.h (struct regset): Remove gdbarch field.
4842 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4843 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4844 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4845 Likewise.
4846 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4847 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4848 (ppc32_linux_vsxregset): Likewise.
4849 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4850 via the regcache instead of the regset.
4851 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4852 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4853 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4854 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4855 Likewise.
4856
3ca7dae4
AA
48572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4858
4859 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4860 Constify structures.
4861 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4862 (alphanbsd_aout_gregset): Likewise.
4863 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4864 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4865 Likewise.
4866 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4867 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4868 Likewise.
4869 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4870 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4871 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4872 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4873 * m88k-tdep.c (m88k_gregset): Likewise.
4874 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4875 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4876 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4877 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4878 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4879 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4880 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4881 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4882 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4883 Likewise.
4884 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4885 * sh-tdep.h (sh_corefile_gregset): Likewise.
4886 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4887 * vax-tdep.c (vax_gregset): Likewise.
4888
5876f503
JK
48892014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 Fix TLS access for -static -pthread.
4892 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4893 (try_thread_db_load_1): Initialize it.
4894 (thread_db_get_thread_local_address): Call it if LM is zero.
4895 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4896 * target.h (struct target_ops) (to_get_thread_local_address): Add
4897 load_module_addr comment.
4898
0256a6ac
PA
48992014-05-21 Pedro Alves <palves@redhat.com>
4900
4901 * dcache.c (dcache_read_memory_partial): If reading the cache line
4902 fails, fallback to reading just the memory the caller wanted.
4903
227533ac
DE
49042014-05-20 Doug Evans <dje@google.com>
4905
4906 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4907 instead of get_current_arch.
4908
936d2992
PA
49092014-05-20 Pedro Alves <palves@redhat.com>
4910
4911 * NEWS: Mention that compare-sections now works with all targets.
4912
4913 * remote.c (PACKET_qCRC): New enum value.
4914 (remote_verify_memory): Don't send qCRC if the target has no
4915 execution. Use packet_support/packet_ok. If the target doesn't
4916 support the qCRC packet, fallback to a deep memory copy.
4917 (compare_sections_command): Say "target image" instead of "remote
4918 executable".
4919 (_initialize_remote): Add PACKET_qCRC to the list of config
4920 packets that have no associated command. Extend comment.
4921 * target.c (simple_verify_memory, default_verify_memory): New
4922 function.
4923 * target.h (struct target_ops) <to_verify_memory>: Default to
4924 default_verify_memory.
4925 (simple_verify_memory): New declaration.
4926 * target-delegates.c: Regenerate.
4927
e59fa00f
MM
49282014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4929
4930 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4931
f2205de0
HZ
49322014-05-20 Hui Zhu <hui@codesourcery.com>
4933 Yao Qi <yao@codesourcery.com>
4934
4935 PR backtrace/16558
4936 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4937 and change address of sp and pc.
4938
c4e54771
TT
49392014-05-19 Tom Tromey <tromey@redhat.com>
4940
4941 * gdbtypes.c (rank_function): Use XNEWVEC.
4942 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4943
73051182
DE
49442014-05-19 Doug Evans <dje@google.com>
4945
4946 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4947 build_type_unit_groups and moved closer to only caller. Remove
4948 arguments. All references updated. Remove outdated .gdb_index
4949 comment.
4950 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4951 build_type_psymtabs_1.
4952
8832e7e3
DE
49532014-05-19 Doug Evans <dje@google.com>
4954
4955 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4956 n_type_unit_groups, all_type_unit_groups. All uses removed.
4957 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4958 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4959 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4960 (add_type_unit_group_to_table): Delete.
4961
cd8ae15e
DE
49622014-05-19 Doug Evans <dje@google.com>
4963
4964 * eval.c (evaluate_subexp_standard): Add some comments.
4965
08f4850b
DE
49662014-05-17 Doug Evans <xdje42@gmail.com>
4967
4968 * progspace.c (remove_program_space): Delete, unused.
4969 * progspace.h (remove_program_space): Ditto.
4970
bed8455c
DE
49712014-05-17 Doug Evans <xdje42@gmail.com>
4972
4973 * inferior.c (prune_inferiors): Fix comment.
4974 (remove_inferior_command): Call prune_program_spaces.
4975
8d551b02
DE
49762014-05-16 Doug Evans <dje@google.com>
4977
4978 New command line option -D.
4979 * NEWS: Mention it.
4980 * main.c (set_gdb_data_directory): New function.
4981 (captured_main): Recognize -D. Flag error for --data-directory "".
4982 Call set_gdb_data_directory.
4983 (print_gdb_help): Print --data-directory, -D.
4984 * main.h (set_gdb_data_directory): Declare.
4985 * top.c (staged_gdb_datadir): New static global.
4986 (set_gdb_datadir): Call set_gdb_data_directory
4987 (show_gdb_datadir): New function.
4988 (init_main): Update init of data-directory parameter.
4989
18848e28
GF
49902014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4991
4992 Import the "dirfd" gnulib module.
4993 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4994 * gnulib/aclocal.m4: Update.
4995 * gnulib/config.in: Update.
4996 * gnulib/configure: Update.
4997 * gnulib/import/Makefile.am: Update.
4998 * gnulib/import/Makefile.in: Update.
4999 * gnulib/import/dirfd.c: New.
5000 * gnulib/import/m4/dirfd.m4: New.
5001 * gnulib/import/m4/gnulib-cache.m4: Update.
5002 * gnulib/import/m4/gnulib-comp.m4: Update.
5003
95c64f92
YQ
50042014-05-16 Pierre Muller <muller@sourceware.org>
5005 Yao Qi <yao@codesourcery.com>
5006
5007 * valprint.c (print_wchar): Move the code on checking whether
5008 W is a printable wide char to the default branch of switch
5009 statement below. Call wchar_printable instead of gdb_iswprint.
5010
cac395ea
TM
50112014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5012
19679eca 5013 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5014 ldr.w and ldrd instructions.
5015
83655187
DE
50162014-05-15 Doug Evans <dje@google.com>
5017
5018 * dwarf2read.c (read_structure_type): Delete outdated comments.
5019
dd756689
TT
50202014-05-14 Tom Tromey <tromey@redhat.com>
5021
5022 * macrocmd.c (print_macro_definition): Reindent.
5023
75ddda77
DE
50242014-05-13 Doug Evans <xdje42@gmail.com>
5025
5026 * python/py-cmd.c (cmdpy_completer): Add comment.
5027 (completers): Make const.
5028
b0f16a3e
SM
50292014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5030
5031 * infrun.c (resume): Remove should_resume (unused). Move up
5032 declaration of resume_ptid.
5033
033c3379
TT
50342014-05-13 Tom Tromey <tromey@redhat.com>
5035
5036 * language.h (unop_type_check): Remove.
5037 (binop_type_check): Don't declare.
5038
9b44a3a5
AA
50392014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5040
5041 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5042 call to regcache_raw_collect.
5043
303a33fa
SM
50442014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5045
5046 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5047 mi_console->quote as the quoting character.
5048
196100a0
SM
50492014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5050
5051 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5052
f989a1c8
TT
50532014-04-29 Tom Tromey <tromey@redhat.com>
5054
5055 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5056 "show debug varobj".
5057
9404b58f
KM
50582014-05-07 Kyle McMartin <kyle@redhat.com>
5059
5060 Pushed by Joel Brobecker <brobecker@adacore.com>.
5061 * aarch64-tdep.c (aarch64_software_single_step): New function.
5062 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5063 with aarch64_software_single_step.
5064
5e49ba57
JB
50652014-05-05 Joel Brobecker <brobecker@adacore.com>
5066
5067 GDB 7.7.1 released.
5068
c888a17d
KS
50692014-05-05 Keith Seitz <keiths@redhat.com>
5070
5071 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5072 variable or history value is successfully parsed.
5073
290a839c
YQ
50742014-05-05 Yao Qi <yao@codesourcery.com>
5075 Pedro Alves <palves@redhat.com>
5076
5077 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5078 address of blocks that intersects the requested range. Trim
5079 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5080 sections.
5081 * ctf.c (ctf_xfer_partial): Likewise.
5082
91256dc2
YQ
50832014-05-05 Yao Qi <yao@codesourcery.com>
5084
5085 * printcmd.c (display_command): Remove the check to
5086 target_has_execution.
5087
07284463
MK
50882014-05-03 Mark Kettenis <kettenis@gnu.org>
5089
5090 * ppcobsd-nat.c: Include "obsd-nat.h".
5091 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5092 add_target.
5093 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5094
30a1e6cc
SDJ
50952014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5096
5097 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5098 and 16-bit signed and unsigned arguments. Update comment.
5099 (stap_parse_probe_arguments): Extend code to handle such
5100 arguments. Use warning instead of complaint to notify about
5101 unrecognized bitness.
5102
f33da99a
SDJ
51032014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5104
5105 PR breakpoints/16889
5106 * stap-probe.c (stap_parse_probe_arguments): Simplify
5107 check for non-prefixed probes (i.e., probes whose
5108 arguments do not start with "N@"). Always set the
5109 argument type to a sane value.
5110
95cf3b38
DT
51112014-05-01 David Taylor <dtaylor@emc.com>
5112
5113 * remote.c (compare_sections_command): Add -r option to compare
5114 all loadable read-only sections.
5115
1cfdf534
SC
51162014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5117
5118 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5119 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5120 Update all callers.
5121 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5122 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5123 Remove unused CORE_ADDR argument. Update all callers.
5124
ca4f7f8b
PA
51252014-04-29 Pedro Alves <palves@redhat.com>
5126
5127 * remote.c (struct packet_config) <detect>: Extend comment.
5128 (add_packet_config_cmd): Don't set the config's detect or support
5129 fields here.
5130 (init_all_packet_configs): Also initialize the config's 'detect'
5131 field.
5132 (reset_all_packet_configs_support): New function.
5133 (remote_open_1): Call reset_all_packet_configs_support instead of
5134 init_all_packet_configs.
5135 (_initialize_remote): Initialize all packet configs. Assert that
5136 all packets have an associated command, except a few known
5137 outliers.
5138
11c1ba78
JB
51392014-04-28 Joel Brobecker <brobecker@adacore.com>
5140
5141 * dwarf2read.c (read_subrange_type): Handle dynamic
5142 DW_AT_lower_bound attributes.
5143
8739bc53
JB
51442014-04-28 Joel Brobecker <brobecker@adacore.com>
5145
5146 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5147 dynamic bounds before computing its upper bound.
5148 (ada_discrete_type_low_bound): Same as above with the lower bound.
5149
6f8a3220
JB
51502014-04-28 Joel Brobecker <brobecker@adacore.com>
5151
5152 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5153 range types. Adjust the array handling implementation to
5154 take advantage of this change.
5155 (resolve_dynamic_range): New function, mostly extracted from
5156 resolve_dynamic_bounds.
5157 (resolve_dynamic_array): New function, mostly extracted from
5158 resolve_dynamic_bounds.
5159 (resolve_dynamic_bounds): Delete.
5160 (resolve_dynamic_type): Reimplement. Add handling of
5161 TYPE_CODE_RANGE types.
5162
4d072ce4
JB
51632014-04-28 Joel Brobecker <brobecker@adacore.com>
5164
5165 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5166 handling of parallel ___XA types.
5167
52865325
JB
51682014-04-28 Joel Brobecker <brobecker@adacore.com>
5169
5170 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5171 unnecessary second call to static_unwrap_type.
5172
433e77fa
HZ
51732014-04-27 Hui Zhu <hui@codesourcery.com>
5174
5175 * stack.c (print_frame_info): Call do_gdb_disassembly with
5176 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5177
b51a69ee
DE
51782014-04-26 Doug Evans <xdje42@gmail.com>
5179
5180 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5181
7ae1a6a6
PA
51822014-04-25 Pedro Alves <palves@redhat.com>
5183
5184 PR server/16255
5185 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5186 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5187 and newline from built string.
5188 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5189 (linux_ptrace_attach_fail_reason): ... this.
5190 * linux-nat.c (linux_nat_attach): Adjust to use
5191 linux_ptrace_attach_fail_reason.
5192
4082afcc
PA
51932014-04-25 Pedro Alves <palves@redhat.com>
5194
5195 * remote.c (struct remote_state): Remove multi_process_aware,
5196 non_stop_aware, cond_tracepoints, cond_breakpoints,
5197 breakpoint_commands, fast_tracepoints, static_tracepoints,
5198 install_in_trace, disconnected_tracing,
5199 enable_disable_tracepoints, string_tracing, and
5200 augmented_libraries_svr4_read fields.
5201 (remote_multi_process_p): Move further below in the file.
5202 (struct packet_config): Add comments.
5203 (update_packet_config): Delete function.
5204 (show_packet_config_cmd): Use packet_config_support.
5205 (add_packet_config_cmd): Use NULL as set callback.
5206 (packet_ok): "set remote foo-packet"-style commands no longer
5207 change config->supported -- adjust.
5208 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5209 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5210 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5211 (PACKET_QNonStop, PACKET_multiprocess_feature)
5212 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5213 (PACKET_DisconnectedTracing_feature)
5214 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5215 (set_remote_protocol_packet_cmd): Delete function.
5216 (packet_config_support, packet_support): New functions.
5217 (set_remote_protocol_Z_packet_cmd): Don't call
5218 update_packet_config.
5219 (remote_query_attached, remote_pass_signals)
5220 (remote_program_signals, remote_threads_info)
5221 (remote_threads_extra_info, remote_start_remote): Use
5222 packet_support.
5223 (remote_start_remote): Use packet_config_support and
5224 packet_support.
5225 (init_all_packet_configs): Set all packets to unknown support,
5226 instead of calling update_packet_config.
5227 (remote_check_symbols): Use packet_support.
5228 (remote_supported_packet): Unconditionally set the packet config's
5229 support status.
5230 (remote_multi_process_feature, remote_non_stop_feature)
5231 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5232 (remote_breakpoint_commands_feature)
5233 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5234 (remote_install_in_trace_feature)
5235 (remote_disconnected_tracing_feature)
5236 (remote_enable_disable_tracepoint_feature)
5237 (remote_string_tracing_feature)
5238 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5239 (remote_protocol_features): Adjust to use remote_supported_packet
5240 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5241 "ConditionalTracepoints", "ConditionalBreakpoints",
5242 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5243 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5244 "EnableDisableTracepoints", and "tracenz".
5245 (remote_query_supported): Use packet_support.
5246 (remote_open_1): Adjust.
5247 (extended_remote_attach_1): Use packet_support. Switch on the
5248 result of packet_ok instead of checking whether the packet ended
5249 up disabled.
5250 (remote_vcont_resume): Use packet_support.
5251 (remote_resume, remote_stop_ns, fetch_register_using_p)
5252 (remote_prepare_to_store, store_register_using_P)
5253 (check_binary_download, remote_write_bytes): Use packet_support.
5254 (remote_vkill): Use packet_support. Switch on the result of
5255 packet_ok instead of checking whether the packet ended up
5256 disabled.
5257 (extended_remote_supports_disable_randomization): Use
5258 packet_support.
5259 (extended_remote_run): Switch on the result of packet_ok instead
5260 of checking whether the packet ended up disabled.
5261 (remote_insert_breakpoint, remote_remove_breakpoint)
5262 (remote_insert_watchpoint, remote_remove_watchpoint)
5263 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5264 packet_support.
5265 (remote_search_memory): Use packet_config_support.
5266 (remote_get_thread_local_address, remote_get_tib_address)
5267 (remote_hostio_send_command, remote_can_execute_reverse): Use
5268 packet_support.
5269 (remote_supports_cond_tracepoints)
5270 (remote_supports_cond_breakpoints)
5271 (remote_supports_fast_tracepoints)
5272 (remote_supports_static_tracepoints)
5273 (remote_supports_install_in_trace)
5274 (remote_supports_enable_disable_tracepoint)
5275 (remote_supports_string_tracing)
5276 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5277 the packet config says the feature is enabled or disabled.
5278 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5279 (remote_get_trace_status): Use packet_support.
5280 (remote_set_disconnected_tracing): Adjust to check whether the
5281 feature is enabled with packet_support.
5282 (remote_set_trace_buffer_size, remote_use_agent)
5283 (remote_can_use_agent, remote_supports_btrace): Use
5284 packet_support.
5285 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5286 Use packet_config_support.
5287 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5288 the packet config says the feature is enabled or disabled.
5289 (set_range_stepping): Use packet_support.
5290
bdb52a22
TT
52912014-04-25 Tom Tromey <tromey@redhat.com>
5292
5293 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5294 argument.
5295
e9475ead
SA
52962014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5297
5298 * NEWS: Mention support for C99 variable length arrays.
5299
82eacd52
JB
53002014-04-24 Joel Brobecker <brobecker@adacore.com>
5301
5302 * ada-lang.c (standard_exc): Expand introductory comment.
5303
01f9f808
MS
53042014-04-24 Michael Sturm <michael.sturm@mintel.com>
5305 Walfred Tedeschi <walfred.tedeschi@intel.com>
5306
5307 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5308 AVX512 registers.
5309 (amd64_linux_read_description): Add code to handle AVX512 xstate
5310 mask and return respective tdesc.
5311 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5312 and features/i386/x32-avx512-linux.c.
5313 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5314 (amd64_linux_core_read_description): Add code to handle AVX512
5315 xstate mask and return respective tdesc.
5316 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5317 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5318 calculation.
5319 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5320 (tdesc_amd64_avx512_linux): New prototype.
5321 (tdesc_x32_avx512_linux): Likewise.
5322 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5323 features/i386/x32-avx512.c.
5324 (amd64_ymm_avx512_names): New register names for pseudo
5325 registers YMM16-31.
5326 (amd64_ymmh_avx512_names): New register names for raw registers
5327 YMMH16-31.
5328 (amd64_k_names): New register names for K registers.
5329 (amd64_zmmh_names): New register names for ZMM raw registers.
5330 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5331 (amd64_xmm_avx512_names): New register names for XMM16-31
5332 registers.
5333 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5334 registers.
5335 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5336 if feature is present.
5337 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5338 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5339 (AMD64_NUM_REGS): Adjust to new number of registers.
5340 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5341 registers supplied via XSTATE by AVX512 registers.
5342 (i386_linux_read_description): Add case for AVX512.
5343 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5344 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5345 (i386_linux_core_read_description): Add case for AVX512.
5346 (i386_linux_init_abi): Install supported register note section
5347 for AVX512.
5348 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5349 AVX512.
5350 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5351 registers to be number of zmm7h + 1.
5352 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5353 * i386-tdep.c: Include features/i386/i386-avx512.c.
5354 (i386_zmm_names): Add ZMM pseudo register names array.
5355 (i386_zmmh_names): Add ZMM raw register names array.
5356 (i386_k_names): Add K raw register names array.
5357 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5358 registers. AVX512 has 16 more ZMM registers than there are YMM
5359 registers.
5360 (i386_zmmh_regnum_p): Add function to look up register number of
5361 ZMM raw registers.
5362 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5363 (i386_k_regnum_p): Likewise for K raw registers.
5364 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5365 registers added by AVX512.
5366 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5367 registers added by AVX512.
5368 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5369 added by AVX512.
5370 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5371 (i386_pseudo_register_name): Add ZMM pseudo registers.
5372 (i386_zmm_type): Construct and return vector registers type for ZMM
5373 registers.
5374 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5375 ZMM0-31 pseudo registers and K registers.
5376 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5377 and YMM16-31 registers from register cache.
5378 (i386_pseudo_register_write): Add code to write K, ZMM and
5379 YMM16-31 registers.
5380 (i386_register_reggroup_p): Add code to include/exclude AVX512
5381 registers in/from respective register groups.
5382 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5383 registers if feature is present in xcr0.
5384 (i386_gdbarch_init): Add code to initialize AVX512 feature
5385 variables in tdep structure, wire in pseudo registers and call
5386 initialize_tdesc_i386_avx512.
5387 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5388 variables.
5389 (i386_regnum): Add AVX512 registers.
5390 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5391 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5392 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5393 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5394 512 bits wide.
5395 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5396 (i386_ymm_avx512_regnum_p): Likewise.
5397 (i386_k_regnum_p): Likewise.
5398 (i386_zmm_regnum_p): Likewise.
5399 (i386_zmmh_regnum_p): Likewise.
5400 * i387-tdep.c : Update year in copyright notice.
5401 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5402 XSAVE buffer.
5403 (XSAVE_YMM_AVX512_ADDR): New macro.
5404 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5405 XSAVE buffer.
5406 (XSAVE_XMM_AVX512_ADDR): New macro.
5407 (xsave_avx512_k_offset): New table for K register offsets in
5408 XSAVE buffer.
5409 (XSAVE_AVX512_K_ADDR): New macro.
5410 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5411 in XSAVE buffer.
5412 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5413 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5414 buffer.
5415 (i387_collect_xsave): Add code to collect AVX512 registers from
5416 XSAVE buffer.
5417 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5418 of XMM16-31 registers.
5419 (I387_NUM_K_REGS): New define for number of K registers.
5420 (I387_K0_REGNUM): New define for K0 register number.
5421 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5422 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5423 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5424 registers.
5425 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5426 (I387_XMM16_REGNUM): New define for XMM16 register number.
5427 (I387_YMM0_REGNUM): New define for YMM0 register number.
5428 (I387_KEND_REGNUM): New define for last K register number.
5429 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5430 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5431 number.
5432 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5433 number.
5434 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5435 size.
5436 * features/Makefile: Add AVX512 related files.
5437 * features/i386/32bit-avx512.xml: New file.
5438 * features/i386/64bit-avx512.xml: Likewise.
5439 * features/i386/amd64-avx512-linux.c: Likewise.
5440 * features/i386/amd64-avx512-linux.xml: Likewise.
5441 * features/i386/amd64-avx512.c: Likewise.
5442 * features/i386/amd64-avx512.xml: Likewise.
5443 * features/i386/i386-avx512-linux.c: Likewise.
5444 * features/i386/i386-avx512-linux.xml: Likewise.
5445 * features/i386/i386-avx512.c: Likewise.
5446 * features/i386/i386-avx512.xml: Likewise.
5447 * features/i386/x32-avx512-linux.c: Likewise.
5448 * features/i386/x32-avx512-linux.xml: Likewise.
5449 * features/i386/x32-avx512.c: Likewise.
5450 * features/i386/x32-avx512.xml: Likewise.
5451 * regformats/i386/amd64-avx512-linux.dat: New file.
5452 * regformats/i386/amd64-avx512.dat: Likewise.
5453 * regformats/i386/i386-avx512-linux.dat: Likewise.
5454 * regformats/i386/i386-avx512.dat: Likewise.
5455 * regformats/i386/x32-avx512-linux.dat: Likewise.
5456 * regformats/i386/x32-avx512.dat: Likewise.
5457 * NEWS: Add note about new support for AVX512.
5458
5459
08351840
PA
54602014-04-23 Pedro Alves <palves@redhat.com>
5461
5462 * breakpoint.c (insert_bp_location): Tolerate errors if the
5463 breakpoint is set in a user-loaded objfile.
5464 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5465 location is marked shlib_disabled. If the breakpoint is set in a
5466 user-loaded objfile is a GDB-side memory breakpoint, validate it
5467 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5468 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5469 flag.
5470 * mem-break.c (memory_validate_breakpoint): New function.
5471 * objfiles.c (userloaded_objfile_contains_address_p): New
5472 function.
5473 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5474 * target.h (memory_validate_breakpoint): New declaration.
5475
076855f9
PA
54762014-04-23 Pedro Alves <palves@redhat.com>
5477
5478 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5479 the breakpoint is set in a shared library, only suppress
5480 errors for software breakpoints, not hardware breakpoints.
5481
483805cf
PA
54822014-04-22 Pedro Alves <palves@redhat.com>
5483
5484 * infrun.c (schedlock_applies): New function, factored out from
5485 find_thread_needs_step_over.
5486 (find_thread_needs_step_over): Use it.
5487 (switch_back_to_stepped_thread): Always clear trap_expected if the
5488 step over is finished. Return early if scheduler locking applies.
5489 Look for the stepping thread and a potential step-over thread with
5490 a single loop.
5491 (currently_stepping_or_nexting_callback): Delete.
5492
a75fef0e
NC
54932014-04-22 Nick Clifton <nickc@redhat.com>
5494
5495 * NEWS: Mention that ARM sim now supports tracing.
5496
48b6e87e
YQ
54972014-04-22 Yao Qi <yao@codesourcery.com>
5498
5499 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5500 to ...
5501 * tracefile.c (tracefile_fetch_registers): ... it. New
5502 function.
5503 * tracefile.h (tracefile_fetch_registers): Declare.
5504 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5505 tracefile_fetch_registers.
5506
17617f2d
EZ
55072014-04-19 Eli Zaretskii <eliz@gnu.org>
5508
5509 PR gdb/14018
5510 * windows-nat.c (thread_rec): Don't display a warning when
5511 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5512 fails for any reason, set th->suspended to -1, so that we don't
5513 try to resume such a thread. Also, don't return NULL in these
5514 cases, to avoid completely ruin the session due to "PC register is
5515 not available" error.
5516 (do_windows_fetch_inferior_registers): Check errors in
5517 GetThreadContext call.
5518 (windows_continue): Accept an additional argument KILLED; if not
5519 zero, ignore errors in the SetThreadContext call, since the
5520 inferior was killed and is shutting down.
5521 (windows_resume, get_windows_debug_event)
5522 (windows_create_inferior, windows_mourn_inferior)
5523 (windows_kill_inferior): All callers of windows_continue changed
5524 to adjust to its new calling sequence.
5525
5723a6fd
YQ
55262014-04-19 Yao Qi <yao@codesourcery.com>
5527
5528 * ctf.c (ctf_open): Call post_create_inferior.
5529
614d5099
YQ
55302014-04-19 Yao Qi <yao@codesourcery.com>
5531
5532 * ctf.c (handle_id): New static variable.
5533 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5534 value. Get the declaration of event "register" and get length
5535 of field "contents".
5536
dac3e710
YQ
55372014-04-19 Yao Qi <yao@codesourcery.com>
5538
5539 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5540
2bca57ba
SC
55412014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5542
5543 * valops.c (oload_method_static): Remove unnecessary argument
5544 METHOD. Update all callers.
5545
51d48146
PA
55462014-04-18 Pedro alves <palves@redhat.com>
5547 Tom Tromey <tromey@redhat.com>
5548
5549 PR backtrace/15558
5550 * frame.c (get_prev_frame_1): Rename to ...
5551 (get_prev_frame_always): ... this, and make extern. Adjust.
5552 (skip_artificial_frames): Use get_prev_frame_always.
5553 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5554 (get_frame_unwind_stop_reason): Adjust to rename.
5555 * frame.h (get_prev_frame_always): Declare.
5556 * inline-frame.c: Include frame.h.
5557 (inline_frame_this_id): Use get_prev_frame_always.
5558
1bdad2e0
TG
55592014-04-18 Tristan Gingold <gingold@adacore.com>
5560
5561 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5562 code by using bfd_mach_o_get_base_address.
5563
7ce16bd4
UW
55642014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5565
5566 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5567 (spu_ax_pseudo_register_collect): New function.
5568 (spu_ax_pseudo_register_push_stack): Likewise.
5569 (spu_dwarf_reg_to_regnum): Likewise.
5570 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5571
2ed3c037
UW
55722014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5573
5574 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5575 Replace FRAME argument with FRAME_ID.
5576 * gdbarch.c, gdbarch.h: Regenerate.
5577 * findvar.c (default_value_from_register): Add GDBARCH argument;
5578 replace FRAME by FRAME_ID. No longer call get_frame_id.
5579 (value_from_register): Update call to gdbarch_value_from_register.
5580 * value.h (default_value_from_register): Update prototype.
5581 * s390-linux-tdep.c (s390_value_from_register): Update interface
5582 and call to default_value_from_register.
5583 * spu-tdep.c (spu_value_from_register): Likewise.
5584
5585 * findvar.c (address_from_register): Remove TYPE argument.
5586 Do not call value_from_register; use gdbarch_value_from_register
5587 with null_frame_id instead.
5588 * value.h (address_from_register): Update prototype.
5589 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5590 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5591 address_from_register interface change.
5592
71e50e83
YQ
55932014-04-17 Yao Qi <yao@codesourcery.com>
5594
5595 * gdbtypes.h: Update comments to link to types and macros'
5596 definitions.
5597
7a23c549
SC
55982014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5599
5600 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5601
22869d73
KS
56022014-04-16 Keith Seitz <keiths@redhat.com>
5603
5604 PR gdb/15827
5605 * dwarf2read.c (skip_one_die): Check that all relative-offset
5606 sibling DIEs fall within range of the current reader's buffer.
5607 (read_partial_die): Likewise.
5608
c4f87ca6
KS
56092014-04-16 Keith Seitz <keiths@redhat.com>
5610
5611 PR c++/16597
5612 * cp-namespace.c (lookup_symbol_file): If the type name of
5613 `this' is NULL, return immediately.
5614
b50c8614
KS
56152014-04-14 Keith Seitz <keiths@redhat.com>
5616
5617 PR c++/16253
5618 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5619 from symbol_matches_domain in symtab.c. All local callers
5620 of symbol_matches_domain updated.
5621 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5622 search STRUCT_DOMAIN.
5623 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5624 independently. standard_lookup will do that automatically.
5625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5626 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5627 (cp_lookup_symbol_in_namespace): Likewise.
5628 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5629 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5630 may return a STRUCT_DOMAIN match.
5631 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5632 * cp-support.c: Include language.h.
5633 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5634 VAR_DOMAIN.
5635 * psymtab.c (match_partial_symbol): Compare the requested
5636 domain with the symbol's domain directly.
5637 (lookup_partial_symbol): Likewise.
5638 * symtab.c (lookup_symbol_in_language): Explain when/why
5639 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5640 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5641 appropriate languages.
5642 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5643 and moved to ada-lang.c
5644 (lookup_block_symbol): Explain that this function only returns
5645 symbol matching the requested DOMAIN.
5646 Compare the requested domain with the symbol's domain directly.
5647 (iterate_over_symbols): Compare the requested domain with the
5648 symbol's domain directly.
5649 * symtab.h (symbol_matches_domain): Remove.
5650
3d567982
TT
56512014-04-14 Tom Tromey <tromey@redhat.com>
5652
5653 PR c++/15246:
5654 * c-exp.y (type_aggregate_p): New function.
5655 (qualified_name, classify_inner_name): Use it.
5656 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5657 and TYPE_TARGET_TYPE of an enum type.
5658 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5659 an enum type.
5660 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5661 handle TYPE_DECLARED_CLASS.
5662 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5663 types.
5664 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5665 * valops.c (enum_constant_from_type): New function.
5666 (value_aggregate_elt): Use it.
5667 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5668 TYPE_CODE_ENUM.
5669
c848d642
TT
56702014-04-14 Tom Tromey <tromey@redhat.com>
5671
5672 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5673 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5674 const.
5675 * value.h (value_aggregate_elt): Update.
5676
0626fc76
TT
56772014-04-14 Tom Tromey <tromey@redhat.com>
5678
5679 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5680
5ecaaa66
SA
56812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5682
5683 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5684 (evaluate_subexp_standard): Pass noside argument.
5685 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5686 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5687 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5688 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5689 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5690
1612e0c0
SA
56912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5692
5693 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5694 points to a constant blob.
5695
c451ebe5
SA
56962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5697
5698 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5699 property and store it as the high bound and flag the range accordingly.
5700 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5701 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5702 * gdbtypes.h (enum range_flags): New enum.
5703 (struct range_bounds): Add flags member.
5704
1d42e4c4
SA
57052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5706
5707 * c-typeprint.c (c_type_print_varspec_suffix): Added
5708 check for not yet resolved high bound. If unresolved, print
5709 "variable length" string to the console instead of random
5710 length.
5711
9f1f738a
SA
57122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5713
5714 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5715 value.
5716 (ada_template_to_fixed_record_type_1): Likewise.
5717 (ada_to_fixed_type_1): Likewise.
5718 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5719 (cp_print_value): Likewise.
5720 * d-valprint.c (dynamic_array_type): Likewise.
5721 * findvar.c (address_of_variable): Likewise.
5722 * jv-valprint.c (java_value_print): Likewise.
5723 * valops.c (value_ind): Likewise.
5724 * value.c (coerce_ref): Likewise.
5725
3c8452d4
SA
57262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5727
5728 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5729 value and retrieve the dynamic type size.
5730
4ad88275
SA
57312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5732
5733 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5734 passed to sizeof is dynamic evaluate the argument to compute the length.
5735
80180f79
SA
57362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5737 Joel Brobecker <brobecker@adacore.com>
5738
5739 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5740 (dwarf2_evaluate_property): New function.
5741 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5742 * dwarf2read.c (attr_to_dynamic_prop): New function.
5743 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5744 attribute.
5745 * gdbtypes.c: Include dwarf2loc.h.
5746 (is_dynamic_type): New function.
5747 (resolve_dynamic_type): New function.
5748 (resolve_dynamic_bounds): New function.
5749 (get_type_length): New function.
5750 (check_typedef): Use get_type_length to compute type length.
5751 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5752 (TYPE_LOW_BOUND_KIND): New macro.
5753 (is_dynamic_type): New function prototype.
5754 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5755 to resolve dynamic properties of the type. Update comment.
5756 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5757
a1556843
RH
57582014-04-14 Richard Henderson <rth@redhat.com>
5759
5760 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5761
0be03e84
DE
57622014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5763 Doug Evans <xdje42@gmail.com>
5764
5765 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5766 dereference TYPE_CODE_REF values.
5767
6b662e19
JB
57682014-04-11 Joel Brobecker <brobecker@adacore.com>
5769
5770 Revert the following changes due to regressions:
5771
5772 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5773 (dwarf2_evaluate_property): New function.
5774 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5775 * dwarf2read.c (attr_to_dynamic_prop): New function.
5776 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5777 attribute.
5778 * gdbtypes.c: Include dwarf2loc.h.
5779 (is_dynamic_type): New function.
5780 (resolve_dynamic_type): New function.
5781 (resolve_dynamic_bounds): New function.
5782 (get_type_length): New function.
5783 (check_typedef): Use get_type_length to compute type length.
5784 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5785 (TYPE_LOW_BOUND_KIND): New macro.
5786 (is_dynamic_type): New function prototype.
5787 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5788 to resolve dynamic properties of the type. Update comment.
5789 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5790
5791 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5792 passed to sizeof is dynamic evaluate the argument to compute the length.
5793
5794 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5795 value and retrieve the dynamic type size.
5796
5797 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5798 (ada_template_to_fixed_record_type_1): Likewise.
5799 (ada_to_fixed_type_1): Likewise.
5800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5801 (cp_print_value): Likewise.
5802 * d-valprint.c (dynamic_array_type): Likewise.
5803 * eval.c (evaluate_subexp_with_coercion): Likewise.
5804 * findvar.c (address_of_variable): Likewise.
5805 * jv-valprint.c (java_value_print): Likewise.
5806 * valops.c (value_ind): Likewise.
5807 * value.c (coerce_ref): Likewise.
5808
5809 * c-typeprint.c (c_type_print_varspec_suffix): Added
5810 check for not yet resolved high bound. If unresolved, print
5811 "variable length" string to the console instead of random
5812 length.
5813
5814 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5815 property and store it as the high bound and flag the range accordingly.
5816 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5817 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5818 * gdbtypes.h (enum range_flags): New enum.
5819 (struct range_bounds): Add flags member.
5820
5821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5822 points to a constant blob.
5823
5824 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5825 (evaluate_subexp_standard): Pass noside argument.
5826 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5827 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5828 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5829 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5830 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5831
245a5f0b
KS
58322014-04-11 Keith Seitz <keiths@redhat.com>
5833
5834 PR c++/16675
5835 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5836 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5837 reference types.
5838
3bce8237
SA
58392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5840
5841 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5842 (evaluate_subexp_standard): Pass noside argument.
5843 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5844 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5845 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5846 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5847 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5848
92b09522
SA
58492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5850
5851 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5852 points to a constant blob.
5853
e1969afb
SA
58542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5855
5856 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5857 property and store it as the high bound and flag the range accordingly.
5858 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5859 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5860 * gdbtypes.h (enum range_flags): New enum.
5861 (struct range_bounds): Add flags member.
5862
b86138fb
SA
58632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5864
5865 * c-typeprint.c (c_type_print_varspec_suffix): Added
5866 check for not yet resolved high bound. If unresolved, print
5867 "variable length" string to the console instead of random
5868 length.
5869
bcd629a4
SA
58702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5871
5872 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5873 (ada_template_to_fixed_record_type_1): Likewise.
5874 (ada_to_fixed_type_1): Likewise.
5875 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5876 (cp_print_value): Likewise.
5877 * d-valprint.c (dynamic_array_type): Likewise.
5878 * eval.c (evaluate_subexp_with_coercion): Likewise.
5879 * findvar.c (address_of_variable): Likewise.
5880 * jv-valprint.c (java_value_print): Likewise.
5881 * valops.c (value_ind): Likewise.
5882 * value.c (coerce_ref): Likewise.
5883
04b19544
SA
58842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5885
5886 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5887 value and retrieve the dynamic type size.
5888
26cb189f
SA
58892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5890
5891 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5892 passed to sizeof is dynamic evaluate the argument to compute the length.
5893
37c1ab67
SA
58942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5895
5896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5897 (dwarf2_evaluate_property): New function.
5898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5899 * dwarf2read.c (attr_to_dynamic_prop): New function.
5900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5901 attribute.
5902 * gdbtypes.c: Include dwarf2loc.h.
5903 (is_dynamic_type): New function.
5904 (resolve_dynamic_type): New function.
5905 (resolve_dynamic_bounds): New function.
5906 (get_type_length): New function.
5907 (check_typedef): Use get_type_length to compute type length.
5908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5909 (TYPE_LOW_BOUND_KIND): New macro.
5910 (is_dynamic_type): New function prototype.
5911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5912 to resolve dynamic properties of the type. Update comment.
5913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5914
729efb13
SA
59152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5916
5917 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5918 declaring high/low bounds and change uses accordingly. Call
5919 create_range_type instead of create_static_range_type.
5920 * gdbtypes.c (create_range_type): New function.
5921 (create_range_type): Convert bounds into struct bound_prop and pass
5922 them to create_range_type.
5923 * gdbtypes.h (struct bound_prop): New struct.
5924 (create_range_type): New function prototype.
5925 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5926 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5927 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5928 part of the bound.
5929 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5930
0c9c3474
SA
59312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5932
5933 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5934 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5935 * ada-lang.c: All uses of create_range_type updated.
5936 * coffread.c: All uses of create_range_type updated.
5937 * dwarf2read.c: All uses of create_range_type updated.
5938 * f-exp.y: All uses of create_range_type updated.
5939 * m2-valprint.c: All uses of create_range_type updated.
5940 * mdebugread.c: All uses of create_range_type updated.
5941 * stabsread.c: All uses of create_range_type updated.
5942 * valops.c: All uses of create_range_type updated.
5943 * valprint.c: All uses of create_range_type updated.
5944
9d497a19
PA
59452014-04-10 Pedro Alves <palves@redhat.com>
5946
5947 * breakpoint.c (single_step_breakpoints)
5948 (single_step_gdbarch): Move up in the file.
5949 (one_breakpoint_xfer_memory): New function, factored out from ...
5950 (breakpoint_xfer_memory): ... here. Also process single-step
5951 breakpoints.
5952
15a9128a
TG
59532014-04-09 Tristan Gingold <gingold@adacore.com>
5954
5955 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5956 comments.
5957 (darwin_decode_exception_message): Free port only after use.
5958
9c97a070
PL
59592014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5960
5961 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5962 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5963 when setting the size of call_length.
5964
7af389b8
SC
59652014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5966
5967 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5968 dereference TYPE_CODE_REF values.
5969
86ad98c3
JB
59702014-04-07 Joel Brobecker <brobecker@adacore.com>
5971
5972 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5973 end of warning message.
5974
b0aeadb3
DE
59752014-04-03 Doug Evans <dje@google.com>
5976
5977 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5978 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5979
5979d6b6
AM
59802014-04-02 Alan Modra <amodra@gmail.com>
5981
5982 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5983 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5984 (struct symbol_file_add_from_memory_args): Add size field.
5985 (find_vdso_size): New function.
5986 (add_vsyscall_page): Attempt to find vdso size.
5987
0d60c288
DE
59882014-04-01 Doug Evans <dje@google.com>
5989
5990 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5991
a41f2563
TG
59922014-04-01 Tristan Gingold <gingold@adacore.com>
5993
5994 * darwin-nat.c (darwin_encode_reply): Add prototype.
5995 (darwin_decode_exception_message): Reply to unknown inferiors.
5996 (darwin_decode_message): Handle message by id. Ignore message
5997 to unknown inferior.
5998 (darwin_wait): Discard unknown messages, add debug trace.
5999
11a865c8
DE
60002014-03-31 Doug Evans <dje@google.com>
6001
6002 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6003 comp_dir_string.
6004
770e7fc7
DE
60052014-03-31 Doug Evans <dje@google.com>
6006
6007 New option "set print symbol-loading".
6008 * NEWS: Mention it.
6009 * solib.c (solib_read_symbols): Only print symbol loading messages
6010 if requested.
6011 (solib_add): If symbol loading is in "brief" mode, notify user
6012 symbols are being loaded.
6013 (reload_shared_libraries_1): Ditto.
6014 * symfile.c (print_symbol_loading_off): New static global.
6015 (print_symbol_loading_brief): New static global.
6016 (print_symbol_loading_full): New static global.
6017 (print_symbol_loading_enums): New static global.
6018 (print_symbol_loading): New static global.
6019 (print_symbol_loading_p): New function.
6020 (symbol_file_add_with_addrs): Only print symbol loading messages
6021 if requested.
6022 (_initialize_symfile): Register "print symbol-loading" set/show
6023 command.
6024 * symfile.h (print_symbol_loading_p): Declare.
6025
c32c64b7
DE
60262014-03-30 Doug Evans <xdje42@gmail.com>
6027
6028 * infrun.c (set_last_target_status): New function.
6029 (handle_inferior_event): Call it.
6030
7c0bc051
DE
60312014-03-30 Doug Evans <xdje42@gmail.com>
6032
6033 * inferior.h (enum stop_kind): Improve comment.
6034
8776cfe9
JB
60352014-03-28 Joel Brobecker <brobecker@adacore.com>
6036
6037 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6038 a reference, strip the reference layer before calling
6039 the lang_ops value_has_mutated callback.
6040
410a0ff2
SDJ
60412014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6042
6043 Remove some globals from our parser.
6044 * language.c (unk_lang_parser): Add "struct parser_state"
6045 argument.
6046 * language.h (struct language_defn) <la_parser>: Likewise.
6047 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6048 (initialize_expout): Add "struct parser_state" argument.
6049 Rewrite function to use the parser state.
6050 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6051 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6052 write_exp_elt_longcst, write_exp_elt_dblcst,
6053 write_exp_elt_decfloatcst, write_exp_elt_type,
6054 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6055 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6056 write_dollar_variable): Likewise.
6057 (parse_exp_in_context_1): Use parser state.
6058 (insert_type_address_space): Add "struct parser_state" argument.
6059 Use parser state.
6060 (increase_expout_size): New function.
6061 * parser-defs.h: Forward declare "struct language_defn" and
6062 "struct parser_state".
6063 (expout, expout_size, expout_ptr): Remove extern declarations.
6064 (parse_gdbarch, parse_language): Rewrite macro declarations to
6065 accept the parser state.
6066 (struct parser_state): New struct.
6067 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6068 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6069 write_exp_elt_decfloatcst, write_exp_elt_type,
6070 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6071 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6072 write_exp_msymbol, write_dollar_variable,
6073 mark_struct_expression, insert_type_address_space): Add "struct
6074 parser_state" argument.
6075 (increase_expout_size): New function.
6076 * utils.c (do_clear_parser_state): New function.
6077 (make_cleanup_clear_parser_state): Likewise.
6078 * utils.h (make_cleanup_clear_parser_state): New function
6079 prototype.
6080 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6081 Update calls to write_exp* in order to pass the parser state.
6082 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6083 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6084 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6085 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6086 * stap-probe.c (stap_parse_register_operand): Likewise.
6087 (stap_parse_single_operand): Likewise.
6088 (stap_parse_argument_1): Likewise.
6089 (stap_parse_argument): Use parser state.
6090 * stap-probe.h: Include "parser-defs.h".
6091 (struct stap_parse_info) <pstate>: New field.
6092 * c-exp.y (parse_type): Rewrite to use parser state.
6093 (yyparse): Redefine to c_parse_internal.
6094 (pstate): New global variable.
6095 (parse_number): Add "struct parser_state" argument.
6096 (write_destructor_name): Likewise.
6097 (type_exp): Update calls to write_exp* and similars in order to
6098 use parser state.
6099 (exp1, exp, variable, qualified_name, space_identifier,
6100 typename, typebase): Likewise.
6101 (write_destructor_name, parse_number, lex_one_token,
6102 classify_name, classify_inner_name, c_parse): Add "struct
6103 parser_state" argument. Update function to use parser state.
6104 * c-lang.h: Forward declare "struct parser_state".
6105 (c_parse): Add "struct parser_state" argument.
6106 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6107 (yyparse): Redefine macro to ada_parse_internal.
6108 (pstate): New variable.
6109 (write_int, write_object_renaming, write_var_or_type,
6110 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6111 type_int, type_long, type_long_long, type_float, type_double,
6112 type_long_double, type_char, type_boolean, type_system_address):
6113 Add "struct parser_state" argument.
6114 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6115 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6116 var_or_type, aggregate, aggregate_component_list,
6117 positional_list, others, component_group,
6118 component_associations): Update calls to write_exp* and similar
6119 functions in order to use parser state.
6120 (ada_parse, write_var_from_sym, write_int,
6121 write_exp_op_with_string, write_object_renaming,
6122 find_primitive_type, write_selectors, write_ambiguous_var,
6123 write_var_or_type, write_name_assoc, type_int, type_long,
6124 type_long_long, type_float, type_double, type_long_double,
6125 type_char, type_boolean, type_system_address): Add "struct
6126 parser_state" argument. Adjust function to use parser state.
6127 * ada-lang.c (parse): Likewise.
6128 * ada-lang.h: Forward declare "struct parser_state".
6129 (ada_parse): Add "struct parser_state" argument.
6130 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6131 calls to both functions.
6132 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6133 parser state.
6134 (yyparse): Redefine macro to f_parse_internal.
6135 (pstate): New variable.
6136 (parse_number): Add "struct parser_state" argument.
6137 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6138 and similars in order to use parser state.
6139 (parse_number): Adjust code to use parser state.
6140 (yylex): Likewise.
6141 (f_parse): New function.
6142 * f-lang.h: Forward declare "struct parser_state".
6143 (f_parse): Add "struct parser_state" argument.
6144 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6145 parser state.
6146 (yyparse): Redefine macro for java_parse_internal.
6147 (pstate): New variable.
6148 (push_expression_name, push_expression_name, insert_exp): Add
6149 "struct parser_state" argument.
6150 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6151 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6152 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6153 PostIncrementExpression, PostDecrementExpression,
6154 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6155 UnaryExpressionNotPlusMinus, CastExpression,
6156 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6157 RelationalExpression, EqualityExpression, AndExpression,
6158 ExclusiveOrExpression, InclusiveOrExpression,
6159 ConditionalAndExpression, ConditionalOrExpression,
6160 ConditionalExpression, Assignment, LeftHandSide): Update
6161 calls to write_exp* and similars in order to use parser state.
6162 (parse_number): Ajust code to use parser state.
6163 (yylex): Likewise.
6164 (java_parse): New function.
6165 (push_variable): Add "struct parser_state" argument. Adjust
6166 code to user parser state.
6167 (push_fieldnames, push_qualified_expression_name,
6168 push_expression_name, insert_exp): Likewise.
6169 * jv-lang.h: Forward declare "struct parser_state".
6170 (java_parse): Add "struct parser_state" argument.
6171 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6172 parser state.
6173 (yyparse): Redefine macro to m2_parse_internal.
6174 (pstate): New variable.
6175 (type_exp, exp, fblock, variable, type): Update calls to
6176 write_exp* and similars to use parser state.
6177 (yylex): Likewise.
6178 (m2_parse): New function.
6179 * m2-lang.h: Forward declare "struct parser_state".
6180 (m2_parse): Add "struct parser_state" argument.
6181 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6182 * objc-lang.h: Forward declare "struct parser_state".
6183 (end_msglist): Add "struct parser_state" argument.
6184 * p-exp.y (parse_type): Rewrite macro to use parser state.
6185 (yyparse): Redefine macro to pascal_parse_internal.
6186 (pstate): New variable.
6187 (parse_number): Add "struct parser_state" argument.
6188 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6189 write_exp* and similars in order to use parser state.
6190 (parse_number, yylex): Adjust code to use parser state.
6191 (pascal_parse): New function.
6192 * p-lang.h: Forward declare "struct parser_state".
6193 (pascal_parse): Add "struct parser_state" argument.
6194 * go-exp.y (parse_type): Rewrite macro to use parser state.
6195 (yyparse): Redefine macro to go_parse_internal.
6196 (pstate): New variable.
6197 (parse_number): Add "struct parser_state" argument.
6198 (type_exp, exp1, exp, variable, type): Update calls to
6199 write_exp* and similars in order to use parser state.
6200 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6201 to use parser state.
6202 (go_parse): Likewise.
6203 * go-lang.h: Forward declare "struct parser_state".
6204 (go_parse): Add "struct parser_state" argument.
6205
342587c4
DE
62062014-03-27 Doug Evans <dje@google.com>
6207
6208 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6209
33e80786
DE
62102014-03-27 Doug Evans <dje@google.com>
6211
6212 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6213 Remove argument abbrev_section. All callers updated.
6214
1dbab08b
DE
62152014-03-27 Doug Evans <dje@google.com>
6216
6217 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6218 addr_base, ranges_base.
6219
318d3177
KS
62202014-03-26 Keith Seitz <keiths@redhat.com>
6221
6222 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6223 types, not VAR_DOMAIN.
6224
1e54db15
SL
62252014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6226
6227 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6228 "ra" registers.
6229 * features/nios2-linux.c: Regenerated.
6230 * features/nios2.c: Regenerated.
6231
d3839ede
PA
62322014-03-25 Pedro Alves <palves@redhat.com>
6233
6234 * cli/cli-script.c (script_from_file): Force the interpreter to
6235 sync mode.
6236
7588d2ec
PL
62372014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6238
6239 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6240 small stack allocation.
6241
a6290449
TG
62422014-03-24 Tristan Gingold <gingold@adacore.com>
6243
6244 * darwin-nat.c (exc_server): Remove unused prototype.
6245 (darwin_dump_message): Correctly display data on x86_64.
6246 (darwin_encode_reply): Fix style.
6247 Add comments and fix indentation.
6248
31ae9d24 62492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6250
6251 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6252
6339bfc4
DE
62532014-03-22 Doug Evans <xdje42@gmail.com>
6254
6255 * infcmd.c: Whitespace fixes.
6256 (interrupt_command): Merge two function comments into one.
6257
0a07590b
DE
62582014-03-22 Doug Evans <xdje42@gmail.com>
6259
6260 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6261 All uses updated.
6262
b55fbac4
YQ
62632014-03-22 Yao Qi <yao@codesourcery.com>
6264
6265 * remote.c (target_read_live_memory): Remove.
6266 (memory_xfer_live_readonly_partial): Rename it to
6267 remote_xfer_live_readonly_partial. Remove argument 'object'.
6268 All callers updated. Call remote_read_bytes_1
6269 instead of target_read_live_memory.
6270 * tracepoint.c (set_traceframe_number): Remove.
6271 (make_cleanup_restore_traceframe_number): Likewise .
6272 * tracepoint.h (set_traceframe_number): Remove declaration.
6273 (make_cleanup_restore_traceframe_number): Likewise.
6274
9217e74e
YQ
62752014-03-22 Yao Qi <yao@codesourcery.com>
6276
6277 * remote.c (remote_read_bytes): Move code on reading from the
6278 remote stub to ...
6279 (remote_read_bytes_1): ... here. New function.
6280
8acf9577
YQ
62812014-03-22 Yao Qi <yao@codesourcery.com>
6282
6283 * ctf.c (ctf_xfer_partial): Check the return value of
6284 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6285 return TARGET_XFER_UNAVAILABLE.
6286 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6287 * target.c (target_read_live_memory): Move it to remote.c.
6288 (memory_xfer_live_readonly_partial): Likewise.
6289 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6290 * remote.c (target_read_live_memory): Moved from target.c.
6291 (memory_xfer_live_readonly_partial): Likewise.
6292 (remote_read_bytes): Factored out from
6293 memory_xfer_partial_1.
6294
feef67ab
DE
62952014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6296
6297 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6298 NULL pointer.
6299
b65dc60b
PA
63002014-03-21 Pedro Alves <palves@redhat.com>
6301
6302 * infrun.c (normal_stop): Extend comment.
6303
b4ab256d
HZ
63042014-03-21 Hui Zhu <hui@codesourcery.com>
6305 Pedro Alves <palves@redhat.com>
6306
6307 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6308 static buffer.
6309 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6310 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6311 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6312
deba7593
MR
63132014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6314
6315 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6316 `z' formatted output modifier.
6317
1bff71c3
SDJ
63182014-03-20 Tom Tromey <tromey@redhat.com>
6319 Sergio Durigan Junior <sergiodj@redhat.com>
6320
6321 * probe.c (parse_probes): Turn assert into an ordinary error.
6322 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6323 exceptions when parsing probes. Rearrange the code for clarity.
6324
90e28950
TT
63252014-03-20 Tom Tromey <tromey@redhat.com>
6326
6327 PR gdb/14135
6328 * top.c (execute_command): Only dispatch events if the command
6329 started the target.
6330
beb460e8
PA
63312014-03-20 Tom Tromey <tromey@redhat.com>
6332
6333 PR cli/15718
6334 * infcall.c: Include event-top.h.
6335 (run_inferior_call): Call async_disable_stdin if needed.
6336
99619bea
PA
63372014-03-20 Pedro Alves <palves@redhat.com>
6338
6339 * infrun.c (prepare_to_proceed): Delete.
6340 (thread_still_needs_step_over): New function.
6341 (find_thread_needs_step_over): New function.
6342 (proceed): If the current thread needs a step-over, set its
6343 steping_over_breakpoint flag. Adjust to use
6344 find_thread_needs_step_over instead of prepare_to_proceed.
6345 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6346 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6347 breakpoint.
6348 (switch_back_to_stepped_thread): Step over breakpoints of all
6349 threads not the stepping thread, before switching back to the
6350 stepping thread.
6351
2adfaa28
PA
63522014-03-20 Pedro Alves <palves@redhat.com>
6353
6354 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6355 extern.
6356 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6357 * infrun.c (saved_singlestep_ptid)
6358 (stepping_past_singlestep_breakpoint): Delete.
6359 (resume): Remove stepping_past_singlestep_breakpoint handling.
6360 (proceed): Store the prev_pc of the stepping thread too.
6361 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6362 singlestep_pc.
6363 (enum infwait_states): Delete infwait_thread_hop_state.
6364 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6365 field.
6366 (handle_inferior_event): Adjust.
6367 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6368 handling and the thread-hop code. Before removing single-step
6369 breakpoints, check whether the thread hit a single-step breakpoint
6370 of another thread. If it did, the trap is not a random signal.
6371 (switch_back_to_stepped_thread): If the event thread hit a
6372 single-step breakpoint, unblock it before switching to the
6373 stepping thread. Handle the case of the stepped thread having
6374 advanced already.
6375 (keep_going): Handle the case of the current thread moving past a
6376 single-step breakpoint.
6377
31e77af2
PA
63782014-03-20 Pedro Alves <palves@redhat.com>
6379
6380 PR breakpoints/7143
6381 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6382 are being stepped over.
6383 (breakpoint_address_match): Make extern.
6384 * breakpoint.h (breakpoint_address_match): New declaration.
6385 * inferior.h (stepping_past_instruction_at): New declaration.
6386 * infrun.c (struct step_over_info): New type.
6387 (step_over_info): New global.
6388 (set_step_over_info, clear_step_over_info)
6389 (stepping_past_instruction_at): New functions.
6390 (handle_inferior_event): Clear the step-over info when
6391 trap_expected is cleared.
6392 (resume): Remove now stale comment.
6393 (clear_proceed_status): Clear step-over info.
6394 (proceed): Adjust step-over handling to set or clear the step-over
6395 info instead of removing all breakpoints.
6396 (handle_signal_stop): When setting up a thread-hop, don't remove
6397 breakpoints here.
6398 (stop_stepping): Clear step-over info.
6399 (keep_going): Adjust step-over handling to set or clear step-over
6400 info and then always inserting breakpoints, instead of removing
6401 all breakpoints when stepping over one.
6402
b9f437de
PA
64032014-03-20 Pedro Alves <palves@redhat.com>
6404
6405 * infrun.c (previous_inferior_ptid): Adjust comment.
6406 (deferred_step_ptid): Delete.
6407 (infrun_thread_ptid_changed, prepare_to_proceed)
6408 (init_wait_for_inferior): Adjust.
6409 (handle_signal_stop): Delete deferred_step_ptid handling.
6410
06c868a8
JK
64112014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 PR gdb/15358
6414 * defs.h (sync_quit_force_run): New declaration.
6415 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6416 * event-top.c (async_sigterm_handler): New declaration.
6417 (async_sigterm_token): New variable.
6418 (async_init_signals): Create also async_sigterm_token.
6419 (async_sigterm_handler): New function.
6420 (sync_quit_force_run): New variable.
6421 (handle_sigterm): Replace quit_force call by other calls.
6422 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6423
dea80df0
MR
64242014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6425
6426 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6427 offset into SPE pseudo registers.
6428
0c7e1a46
PA
64292014-03-18 Pedro Alves <palves@redhat.com>
6430
6431 PR gdb/13860
6432 * inferior.h (print_stop_event): Declare.
6433 * infrun.c (print_stop_event): New, factored out from ...
6434 (normal_stop): ... this.
6435 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6436 of bpstat_print/print_stack_frame.
6437
9c1fcd01
TT
64382014-03-17 Tom Tromey <tromey@redhat.com>
6439
6440 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6441
11aa919a
PMR
64422014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6443
6444 * ada-lang.c (decode_constrained_packed_array): Perform a
6445 minimal coercion for reference with coerce_ref instead of
6446 ada_coerce_ref.
6447
d4ccb5e0
TG
64482014-03-17 Tristan Gingold <gingold@adacore.com>
6449
6450 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6451 (darwin_solib_create_inferior_hook): Emit a warning if version
6452 is unhandled.
6453
49840f2a
UW
64542014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6455
6456 * python/py-value.c (get_field_flag): Cast flag_name argument to
6457 PyObject_GetAttrString to support Python 2.4.
6458
ed4123e5
JK
64592014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6460
6461 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6462 (Global Maintainers): Remove Jan Kratochvil.
6463
d6b64346
PA
64642014-03-14 Pedro Alves <palves@redhat.com>
6465
6466 * inferior.h (terminal_ours_for_output): Rename to ...
6467 (child_terminal_ours_for_output): ... this.
6468 (terminal_save_ours): Rename to ...
6469 (child_terminal_save_ours): ... this.
6470 (terminal_ours): Rename to ...
6471 (child_terminal_ours): ... this.
6472 (terminal_inferior): Rename to ...
6473 (child_terminal_inferior): ... this.
6474 (terminal_init_inferior): Rename to ...
6475 (child_terminal_init_inferior): ... this.
6476 (terminal_init_inferior_with_pgrp): Rename to ...
6477 (child_terminal_init_inferior_with_pgrp): ... this.
6478 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6479 (child_terminal_init_with_pgrp): ... this.
6480 (terminal_save_ours): Rename to ...
6481 (child_terminal_save_ours): ... this.
6482 (terminal_init_inferior): Rename to ...
6483 (child_terminal_init): ... this. Adjust.
6484 (terminal_inferior): Rename to ...
6485 (child_terminal_inferior): ... this.
6486 (terminal_ours_for_output): Rename to ...
6487 (child_terminal_ours_for_output): ... this. Adjust.
6488 (terminal_ours): Rename to ...
6489 (child_terminal_ours): ... this.
6490 (terminal_ours_1): Rename to ...
6491 (child_terminal_ours_1): ... this. Adjust.
6492 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6493 * windows-nat.c (do_initial_windows_stuff): Adjust.
6494 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6495 (gnu_terminal_init): ... this. Adjust.
6496 (gnu_target): Adjust.
6497 * inf-child.c (inf_child_target): Adjust.
6498
5a1e8c7a
DE
64992014-03-13 Doug Evans <xdje42@gmail.com>
6500
6501 PR guile/16612
6502 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6503 new eq?-hashtab.
6504
350e1a76
DE
65052014-03-13 Doug Evans <xdje42@gmail.com>
6506
6507 * value.c (record_latest_value): Call release_value_or_incref
6508 instead of release_value.
6509
a69900ae
PA
65102014-03-13 Pedro Alves <palves@redhat.com>
6511
6512 * procfs.c (procfs_target): Don't override to_shortname,
6513 to_longname or to_doc.
6514
5db9f0bd
PA
65152014-03-13 Pedro Alves <palves@redhat.com>
6516
6517 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6518 Unix in user visible strings.
6519
5e3a2c38
SS
65202014-03-12 Stan Shebs <stan@codesourcery.com>
6521
6522 * gdbtypes.h: Annotate comments for Doxygen, add a page
6523 block comment with some general info.
6524
8bc2fe48
PA
65252014-03-12 Pedro Alves <palves@redhat.com>
6526
6527 * infcmd.c (prepare_execution_command): New function, factored out
6528 from several execution commands.
6529 (run_command_1, continue_command, step_1, jump_command)
6530 (signal_command, until_command, advance_command, finish_command)
6531 (attach_command): Use prepare_execution_command.
6532
638c5f49
OJ
65332014-03-12 Omair Javaid <omair.javaid@linaro.org>
6534
6535 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6536 (MAX_BPTS): Define.
6537 (MAX_WPTS): Define.
6538 (struct arm_linux_thread_points): Removed.
6539 (struct arm_linux_process_info): New.
6540 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6541 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6542 (arm_linux_find_breakpoints_by_tid): Removed.
6543 (struct arch_lwp_info): New.
6544 (arm_linux_find_process_pid): New functions.
6545 (arm_linux_add_process): New functions.
6546 (arm_linux_process_info_get): New functions.
6547 (arm_linux_forget_process): New function.
6548 (arm_linux_get_debug_reg_state): New function.
6549 (struct update_registers_data): New.
6550 (update_registers_callback): New function.
6551 (arm_linux_insert_hw_breakpoint1): Updated.
6552 (arm_linux_remove_hw_breakpoint1): Updated.
6553 (arm_linux_insert_hw_breakpoint): Updated.
6554 (arm_linux_remove_hw_breakpoint): Updated.
6555 (arm_linux_insert_watchpoint): Updated.
6556 (arm_linux_remove_watchpoint): Updated.
6557 (arm_linux_new_thread): Updated.
6558 (arm_linux_prepare_to_resume): New function.
6559 (arm_linux_new_fork): New function.
6560 (_initialize_arm_linux_nat): Updated.
6561
6d03af93
PA
65622014-03-12 Pedro Alves <palves@redhat.com>
6563
6564 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6565
b3ccfe11
TT
65662014-03-12 Tom Tromey <tromey@redhat.com>
6567
6568 * inf-child.c (return_zero): New function.
6569 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6570 * aix-thread.c (aix_thread_inferior_created): New function.
6571 (aix_thread_attach): Remove.
6572 (init_aix_thread_ops): Don't set to_attach.
6573 (_initialize_aix_thread): Register inferior_created observer.
6574 * corelow.c (init_core_ops): Don't set to_attach or
6575 to_create_inferior.
6576 * exec.c (init_exec_ops): Don't set to_attach or
6577 to_create_inferior.
6578 * infcmd.c (run_command_1): Use find_run_target. Make direct
6579 target calls.
6580 (attach_command): Use find_attach_target. Make direct target
6581 calls.
6582 * record-btrace.c (init_record_btrace_ops): Don't set
6583 to_create_inferior.
6584 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6585 Remove.
6586 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6587 set to_create_inferior.
6588 * target.c (complete_target_initialization): Add assertion.
6589 (target_create_inferior): Remove.
6590 (find_default_attach, find_default_create_inferior): Remove.
6591 (find_attach_target, find_run_target): New functions.
6592 (find_default_is_async_p, find_default_can_async_p)
6593 (target_supports_non_stop, target_attach): Remove.
6594 (init_dummy_target): Don't set to_create_inferior or
6595 to_supports_non_stop.
6596 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6597 TARGET_DEFAULT_FUNC.
6598 <to_create_inferior>: Add comment.
6599 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6600 TARGET_DEFAULT_RETURN.
6601 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6602 (find_attach_target, find_run_target): Declare.
6603 (target_create_inferior): Remove.
6604 (target_has_execution_1): Update comment.
6605 (target_supports_non_stop): Remove.
6606 * target-delegates.c: Rebuild.
6607
91f83b02
PA
66082014-03-12 Pedro Alves <palves@redhat.com>
6609
6610 * inf-child.h: Update comment to not mention Unix.
6611
f1aea813
PA
66122014-03-12 Pedro Alves <palves@redhat.com>
6613
6614 * inf-child.c: Update top comment to not mention Unix. Add
6615 generic comment describing how this target is meant to be used.
6616 (inf_child_post_attach, inf_child_post_startup_inferior)
6617 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6618 Unix in comment.
6619
ee8e9165
PA
66202014-03-12 Pedro Alves <palves@redhat.com>
6621
6622 * nto-procfs.c: Include inf-child.h.
6623 (procfs_ops): Delete global.
6624 (procfs_can_run): Delete method.
6625 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6626 target pointer instead of referencing procfs_ops.
6627 (procfs_prepare_to_store): Delete.
6628 (init_procfs_ops): Delete function.
6629 (procfs_target): New function, based on init_procfs_ops, but
6630 inherit inf_child_target.
6631 (_initialize_procfs): Use procfs_target.
6632
51a9c8c5
PA
66332014-03-12 Pedro Alves <palves@redhat.com>
6634
6635 * windows-nat.c: Include inf-child.h.
6636 (windows_ops): Delete global.
6637 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6638 methods.
6639 (init_windows_ops): Delete function.
6640 (windows_target): New function, based on init_windows_ops, but
6641 inherit inf_child_target.
6642 (_initialize_windows_nat): Use windows_target. Install x86
6643 specific target methods here.
6644
c1966e26
DE
66452014-03-10 Doug Evans <xdje42@gmail.com>
6646
6647 * guile/guile.c (call_initialize_gdb_module): New function.
6648 (initialize_guile): Replace call to scm_init_guile with call to
6649 scm_with_guile.
6650
023db19c
JB
66512014-03-10 Joel Brobecker <brobecker@adacore.com>
6652
6653 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6654 in call to TYPE_CODE macro.
6655
5ec18f2b
JG
66562014-03-10 Jerome Guitton <guitton@adacore.com>
6657
8668be63
JB
6658 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6659 Resolve tagged types to full view.
5ec18f2b 6660
7d03f2eb
HZ
66612014-03-10 Hui Zhu <hui@codesourcery.com>
6662
6663 * target.h (target_insert_breakpoint): Remove "hardware" from its
6664 comments.
6665
c5164cbc
DE
66662014-03-07 Doug Evans <dje@google.com>
6667
6668 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6669
c4a3fee2
DE
66702014-03-07 Doug Evans <dje@google.com>
6671
6672 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6673 Remove unused local comp_dir_attr. Assert exactly one of
6674 stub_comp_unit_die, stub_comp_dir is non-NULL.
6675
3156469c
JB
66762014-03-07 Joel Brobecker <brobecker@adacore.com>
6677
6678 * target.h (complete_target_initialization, add_target):
6679 Add comment.
6680
c1a7b7c6
PA
66812014-03-07 Pedro Alves <palves@redhat.com>
6682
6683 * go32-nat.c: Include inf-child.h.
6684 (go32_ops): Delete global.
6685 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6686 Delete methods.
6687 (go32_create_inferior): Push the passed in target pointer instead
6688 of referencing go32_ops.
6689 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6690 (go32_target): New function, based on init_go32_ops, but inherit
6691 inf_child_target.
6692 (_initialize_go32_nat): Use go32_target. Move parts of
6693 init_go32_ops here.
6694
d3c1a85f
JB
66952014-03-06 Joel Brobecker <brobecker@adacore.com>
6696
6697 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6698 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6699 SYMBOL_VALUE_ADDRESS.
6700 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6701
5fa1d40e
YQ
67022014-03-06 Yao Qi <yao@codesourcery.com>
6703
6704 * breakpoint.c (get_tracepoint_by_number): Remove argument
6705 optional_p. All callers updated. Adjust comments. Update
6706 output message.
6707 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6708
0c13193f
YQ
67092014-03-06 Yao Qi <yao@codesourcery.com>
6710
6711 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6712 early if get_number returns zero. Use 'p' instead of 'args'.
6713
2217da06
YQ
67142014-03-06 Yao Qi <yao@codesourcery.com>
6715
6716 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6717 message.
6718
cc3da688
YQ
67192014-03-06 Yao Qi <yao@codesourcery.com>
6720
6721 PR breakpoints/16508
6722 * tracepoint.c (check_trace_running): New function.
6723 (trace_find_command): Move code to check_trace_running and
6724 call check_trace_running.
6725 (trace_find_pc_command): Likewise.
6726 (trace_find_tracepoint_command): Likewise.
6727 (trace_find_line_command): Likewise.
6728 (trace_find_range_command): Likewise.
6729 * tracepoint.h (check_trace_running): Likewise.
6730 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6731
6a5f844b
YQ
67322014-03-06 Yao Qi <yao@codesourcery.com>
6733
6734 * target.h (struct target_ops) <to_traceframe_info>: Use
6735 TARGET_DEFAULT_NORETURN (tcomplain ()).
6736 * target-delegates.c: Regenerated.
6737
0f26cec1
PA
67382014-03-05 Pedro Alves <palves@redhat.com>
6739
6740 PR gdb/16575
6741 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6742 void. Update comment.
6743 (dcache_xfer_memory): Delete.
6744 (dcache_read_memory_partial): New, based on the read bits of
6745 dcache_xfer_memory.
6746 (dcache_update): Add status parameter. Use ULONGEST for len, and
6747 adjust. Discard cache lines if the reason for the update was
6748 error.
6749 * dcache.h (dcache_xfer_memory): Delete declaration.
6750 (dcache_read_memory_partial): New declaration.
6751 (dcache_update): Update prototype.
6752 * target.c (raw_memory_xfer_partial): Update the dcache here.
6753 (memory_xfer_partial_1): Don't handle dcache writes here.
6754
b2b255bd
MF
67552014-03-05 Mike Frysinger <vapier@gentoo.org>
6756
6757 * remote-sim.c (gdbsim_load): Add const to prog.
6758
5d9cf8a4
TT
67592014-03-03 Tom Tromey <tromey@redhat.com>
6760
6761 * elfread.c (probe_key): Change to bfd_data.
6762 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6763 now per-BFD, not per-objfile.
6764 * stap-probe.c (stap_probe_destroy): Update comment.
6765 (handle_stap_probe): Allocate on the per-BFD obstack.
6766
729662a5
TT
67672014-03-03 Tom Tromey <tromey@redhat.com>
6768
6769 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6770 * breakpoint.c (create_longjmp_master_breakpoint): Use
6771 get_probe_address.
6772 (add_location_to_breakpoint, bkpt_probe_insert_location)
6773 (bkpt_probe_remove_location): Update.
6774 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6775 * elfread.c (elf_symfile_relocate_probe): Remove.
6776 (elf_probe_fns): Update.
6777 (insert_exception_resume_breakpoint): Change type of "probe"
6778 parameter to bound_probe.
6779 (check_exception_resume): Update.
6780 * objfiles.c (objfile_relocate1): Don't relocate probes.
6781 * probe.c (bound_probe_s): New typedef.
6782 (parse_probes): Use get_probe_address. Set sal's objfile.
6783 (find_probe_by_pc): Return a bound_probe.
6784 (collect_probes): Return a VEC(bound_probe_s).
6785 (compare_probes): Update.
6786 (gen_ui_out_table_header_info): Change type of "probes"
6787 parameter. Update.
6788 (info_probes_for_ops): Update.
6789 (get_probe_address): New function.
6790 (probe_safe_evaluate_at_pc): Update.
6791 * probe.h (struct probe_ops) <get_probe_address>: New field.
6792 <set_semaphore, clear_semaphore>: Add objfile parameter.
6793 (struct probe) <objfile>: Remove field.
6794 <arch>: New field.
6795 <address>: Update comment.
6796 (struct bound_probe): New.
6797 (find_probe_by_pc): Return a bound_probe.
6798 (get_probe_address): Declare.
6799 * solib-svr4.c (struct probe_and_action) <address>: New field.
6800 (hash_probe_and_action, equal_probe_and_action): Update.
6801 (register_solib_event_probe): Add address parameter.
6802 (solib_event_probe_at): Update.
6803 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6804 get_probe_address.
6805 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6806 (stap_get_probe_address): New function.
6807 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6808 (compile_probe_arg): Update.
6809 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6810 address.
6811 (handle_stap_probe): Don't relocate the probe.
6812 (stap_relocate): Remove.
6813 (stap_gen_info_probes_table_values): Update.
6814 (stap_probe_ops): Remove stap_relocate.
6815 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6816 (debug_sym_probe_fns): Update.
6817 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6818 * symtab.c (init_sal): Use memset.
6819 * symtab.h (struct symtab_and_line) <objfile>: New field.
6820 * tracepoint.c (start_tracing, stop_tracing): Update.
6821
ff887920
TT
68222014-03-03 Tom Tromey <tromey@redhat.com>
6823
6824 * probe.h (parse_probes, find_probe_by_pc)
6825 (find_probes_in_objfile): Fix comments.
6826
f0407826
DE
68272014-03-02 Doug Evans <xdje42@gmail.com>
6828
6829 * infrun.c (handle_signal_stop): Replace test for
6830 TARGET_WAITKIND_STOPPED with an assert.
6831
35e6a711
DE
68322014-03-02 Doug Evans <xdje42@gmail.com>
6833
6834 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6835
667f9d0b
DE
68362014-03-02 Doug Evans <xdje42@gmail.com>
6837
6838 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6839
dc92ace0
MK
68402014-03-01 Mark Kettenis <kettenis@gnu.org>
6841
6842 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6843
a900370f
MK
68442014-03-01 Mark Kettenis <kettenis@gnu.org>
6845
6846 * i386obsd-nat.c: Include "obsd-nat.h".
6847 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6848 add_target.
6849 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6850
b72a7981
MK
68512014-03-01 Mark Kettenis <kettenis@gnu.org>
6852
6853 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6854
96c70aba
MK
68552014-03-01 Mark Kettenis <kettenis@gnu.org>
6856
6857 * mips64obsd-nat.c: Include "obsd-nath".
6858 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6859 add_target
6860 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6861
874a80af
MK
68622014-03-01 Mark Kettenis <kettenis@gnu.org>
6863
8fd408f1
MK
6864 * amd64obsd-nat.c: Include "obsd-nat,h.
6865 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6866 add_target.
874a80af
MK
6867 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6868
9cf95373
SC
68692014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6870
6871 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6872 (find_overload_match): Update call to find_oload_champ.
6873 (find_oload_champ_namespace_loop): Likewise
6874
863e4da4
MK
68752014-02-28 Mark Kettenis <kettenis@gnu.org>
6876
025cac40
MK
6877 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6878
1ed586ce
MK
6879 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6880 * config/sparc/obsd64.mh: New file.
6881 * sparc64obsd-nat.c: New file.
6882
863e4da4
MK
6883 * obsd-nat.h: New file.
6884 * obsd-nat.c: New file.
6885 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6886 (ALLDEPFILES): Add obsd-nat.c.
6887
89de4da4
TT
68882014-02-28 Tom Tromey <tromey@redhat.com>
6889
6890 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6891 * cli-out.h (cli_ui_out_impl): Now const.
6892 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6893 * ui-out.c (struct ui_out) <impl>: Now const.
6894 (default_ui_out_impl): Now const.
6895 (ui_out_new): Make 'impl' parameter const.
6896 * ui-out.h (ui_out_new): Update.
6897
c725e7b6
MK
68982014-02-27 Mark Kettenis <kettenis@gnu.org>
6899
6900 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6901
670b46b3
MK
69022014-02-27 Mark Kettenis <kettenis@gnu.org>
6903
6904 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6905
c91550fc
JK
69062014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6907
6908 Additional PR 8882 fix.
6909 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6910
2fa0369e
PA
69112014-02-27 Pedro Alves <palves@redhat.com>
6912
6913 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6914 isn't set.
6915
d632a097
PA
69162014-02-27 Pedro Alves <palves@redhat.com>
6917
6918 PR 12702
6919 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6920 * nat/linux-waitpid.c: Include string.h.
6921 (status_to_str): Moved here and made extern.
6922 * nat/linux-waitpid.h (status_to_str): New declaration.
6923
2ebd5a35
HZ
69242014-02-27 Hui Zhu <hui@codesourcery.com>
6925
6926 PR 12702
6927 * infrun.c (ptid_match): Move ...
6928 * common/ptid.c (ptid_match): ... here.
6929 * inferior.h (ptid_match): Move ...
6930 * common/ptid.h (ptid_match): ... here.
6931
3cdd631f
MK
69322014-02-27 Mark Kettenis <kettenis@gnu.org>
6933
6934 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6935 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6936 gdb_target_obs.
6937
bee30a64
MK
69382014-02-27 Mark Kettenis <kettenis@gnu.org>
6939
6940 * obsd-tdep.c (obsd_auxv_parse): New function.
6941 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6942
6943 * gdbarch.sh (auxv_parse): New.
6944 * gdbarch.h: Regenerated.
6945 * gdbarch.c: Regenerated.
6946 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6947
7a5a839f
LC
69482014-02-26 Ludovic Courtès <ludo@gnu.org>
6949
6950 * guile/scm-value.c (gdbscm_history_append_x): New function.
6951 (value_functions): Add it.
6952
31aa7e4e
JB
69532014-02-27 Joel Brobecker <brobecker@adacore.com>
6954
6955 * dwarf2read.c (attr_value_as_address): New function.
6956 (dwarf2_find_base_address, read_call_site_scope): Use
6957 attr_value_as_address in place of DW_ADDR.
6958 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6959 the low and high addresses. Slight rework of the handling
6960 of the high pc being a constant form, and limit it to
6961 DWARF verson 4 or higher.
6962 (dwarf2_record_block_ranges): Likewise.
6963 (read_partial_die): Likewise.
6964 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6965
9b333ba3
TT
69662014-02-26 Tom Tromey <tromey@redhat.com>
6967
6968 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6969
5f6cac40
TT
69702014-02-26 Tom Tromey <tromey@redhat.com>
6971
6972 * elfread.c (elf_read_minimal_symbols): Return early if
6973 minimal symbols have already been read. Add "ei" parameter.
6974 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6975 * minsyms.c (prim_record_minimal_symbol_full): Update.
6976 * objfiles.h (struct objstats) <n_minsyms>: Move...
6977 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6978 * symmisc.c (print_objfile_statistics): Update.
6979
2750ef27
TT
69802014-02-26 Tom Tromey <tromey@redhat.com>
6981
6982 * elfread.c (elf_read_minimal_symbols): New function, from
6983 elf_symfile_read.
6984 (elf_symfile_read): Call it.
6985
34643a32
TT
69862014-02-26 Tom Tromey <tromey@redhat.com>
6987
6988 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6989 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6990 (lookup_minimal_symbol_solib_trampoline)
6991 (lookup_minimal_symbol_by_pc_section_1)
6992 (lookup_minimal_symbol_and_objfile): Update.
6993 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6994 Don't allocate a minimal symbol if minsyms have already been read.
6995 (build_minimal_symbol_hash_tables): Update.
6996 (install_minimal_symbols): Do nothing if minsyms already read.
6997 Use the per-BFD obstack.
6998 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6999 * objfiles.c (allocate_objfile): Call
7000 terminate_minimal_symbol_table later.
7001 (have_minimal_symbols): Update.
7002 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7003 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7004 Move from struct objfile.
7005 <minsyms_read>: New field.
7006 (struct objfile) <msymbols, minimal_symbol_count,
7007 msymbol_hash, msymbol_demangled_hash>: Move.
7008 (ALL_OBJFILE_MSYMBOLS): Update.
7009 * symfile.c (read_symbols): Set minsyms_read.
7010 (reread_symbols): Update.
7011 * symmisc.c (dump_objfile, dump_msymbols): Update.
7012
2273f0ac
TT
70132014-02-26 Tom Tromey <tromey@redhat.com>
7014
7015 * minsyms.c (msymbols_sort): Remove.
7016 * minsyms.h (msymbols_sort): Remove.
7017 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7018 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7019 * elfread.c (elf_symtab_read): Don't add section offsets.
7020 * xcoffread.c (record_minimal_symbol): Don't add section offset
7021 to minimal symbol address.
7022 * somread.c (text_offset, data_offset): Remove.
7023 (som_symtab_read): Don't add section offsets to minimal symbol
7024 addresses.
7025 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7026 Don't add section offsets to minimal symbols.
7027 * coffread.c (coff_symtab_read): Don't add section offsets
7028 to minimal symbol addresses.
7029 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7030 to minimal symbol addresses.
7031 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7032 section offset to minimal symbol addresses.
7033 * mdebugread.c (parse_partial_symbols): Don't add section
7034 offset to minimal symbol addresses.
7035 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7036 offset to minimal symbol addresses.
7037
77e371c0
TT
70382014-02-26 Tom Tromey <tromey@redhat.com>
7039
7040 * ada-lang.c (ada_main_name): Update.
7041 (ada_add_standard_exceptions): Update.
7042 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7043 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7044 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7045 * auxv.c (ld_so_xfer_auxv): Update.
7046 * avr-tdep.c (avr_scan_prologue): Update.
7047 * ax-gdb.c (gen_var_ref): Update.
7048 * blockframe.c (get_pc_function_start)
7049 (find_pc_partial_function_gnu_ifunc): Update.
7050 * breakpoint.c (create_overlay_event_breakpoint)
7051 (create_longjmp_master_breakpoint)
7052 (create_std_terminate_master_breakpoint)
7053 (create_exception_master_breakpoint): Update.
7054 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7055 * c-valprint.c (c_val_print): Update.
7056 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7057 * common/agent.c (agent_look_up_symbols): Update.
7058 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7059 * dwarf2loc.c (call_site_to_target_addr): Update.
7060 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7061 * elfread.c (elf_gnu_ifunc_record_cache)
7062 (elf_gnu_ifunc_resolve_by_got): Update.
7063 * findvar.c (default_read_var_value): Update.
7064 * frame.c (inside_main_func): Update.
7065 * frv-tdep.c (frv_frame_this_id): Update.
7066 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7067 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7068 Update.
7069 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7070 (hppa_hpux_find_dummy_bpaddr): Update.
7071 * hppa-tdep.c (hppa_symbol_address): Update.
7072 * infcmd.c (until_next_command): Update.
7073 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7074 Update.
7075 * linespec.c (minsym_found, add_minsym): Update.
7076 * linux-nat.c (get_signo): Update.
7077 * linux-thread-db.c (inferior_has_bug): Update.
7078 * m32c-tdep.c (m32c_return_value)
7079 (m32c_m16c_address_to_pointer): Update.
7080 * m32r-tdep.c (m32r_frame_this_id): Update.
7081 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7082 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7083 * maint.c (maintenance_translate_address): Update.
7084 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7085 (frob_address): New function.
7086 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7087 frob_address. Rename parameter to "pc_in".
7088 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7089 addresses.
7090 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7091 Update.
7092 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7093 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7094 * objc-lang.c (find_objc_msgsend): Update.
7095 * objfiles.c (objfile_relocate1): Update.
7096 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7097 * p-valprint.c (pascal_val_print): Update.
7098 * parse.c (write_exp_msymbol): Update.
7099 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7100 (ppc_elfv2_skip_entrypoint): Update.
7101 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7102 * printcmd.c (build_address_symbolic, msym_info)
7103 (address_info): Update.
7104 * proc-service.c (ps_pglobal_lookup): Update.
7105 * psymtab.c (find_pc_sect_psymtab_closer)
7106 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7107 Change msymbol parameter to bound_minimal_symbol.
7108 * ravenscar-thread.c (get_running_thread_id): Update.
7109 * remote.c (remote_check_symbols): Update.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7111 address.
7112 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7113 * solib-dsbt.c (lm_base): Update.
7114 * solib-frv.c (lm_base, main_got): Update.
7115 * solib-irix.c (locate_base): Update.
7116 * solib-som.c (som_solib_create_inferior_hook)
7117 (link_map_start): Update.
7118 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7119 * solib-svr4.c (elf_locate_base, enable_break): Update.
7120 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7121 (flush_ea_cache): Update.
7122 * stabsread.c (define_symbol, scan_file_globals): Update.
7123 * stack.c (find_frame_funname): Update.
7124 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7125 (debug_qf_find_pc_sect_symtab): Update.
7126 * symfile.c (simple_read_overlay_table)
7127 (simple_overlay_update): Update.
7128 * symfile.h (struct quick_symbol_functions)
7129 <find_pc_sect_symtab>: Change type of msymbol to
7130 bound_minimal_symbol.
7131 * symmisc.c (dump_msymbols): Update.
7132 * symtab.c (find_pc_sect_symtab_via_partial)
7133 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7134 (search_symbols, print_msymbol_info): Update.
7135 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7136 (MSYMBOL_VALUE_ADDRESS): Redefine.
7137 (BMSYMBOL_VALUE_ADDRESS): New macro.
7138 * tracepoint.c (scope_info): Update.
7139 * tui/tui-disasm.c (tui_find_disassembly_address)
7140 (tui_get_begin_asm_address): Update.
7141 * valops.c (find_function_in_inferior): Update.
7142 * value.c (value_static_field, value_fn_field): Update.
7143
3b7344d5
TT
71442014-02-26 Tom Tromey <tromey@redhat.com>
7145
7146 * ada-lang.c (ada_update_initial_language): Update.
7147 (ada_main_name, ada_has_this_exception_support): Update.
7148 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7149 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7150 * arm-tdep.c (arm_skip_stub): Update.
7151 * auxv.c (ld_so_xfer_auxv): Update.
7152 * avr-tdep.c (avr_scan_prologue): Update.
7153 * ax-gdb.c (gen_var_ref): Update.
7154 * breakpoint.c (struct breakpoint_objfile_data)
7155 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7156 type to bound_minimal_symbol.
7157 (create_overlay_event_breakpoint)
7158 (create_longjmp_master_breakpoint)
7159 (create_std_terminate_master_breakpoint)
7160 (create_exception_master_breakpoint): Update.
7161 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7162 * c-exp.y (classify_name): Update.
7163 * coffread.c (coff_symfile_read): Update.
7164 * common/agent.c (agent_look_up_symbols): Update.
7165 * d-lang.c (d_main_name): Update.
7166 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7167 * dec-thread.c (enable_dec_thread): Update.
7168 * dwarf2loc.c (call_site_to_target_addr): Update.
7169 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7170 * eval.c (evaluate_subexp_standard): Update.
7171 * findvar.c (struct minsym_lookup_data) <result>: Change type
7172 to bound_minimal_symbol.
7173 <objfile>: Remove.
7174 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7175 * frame.c (inside_main_func): Update.
7176 * frv-tdep.c (frv_frame_this_id): Update.
7177 * gcore.c (call_target_sbrk): Update.
7178 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7179 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7180 Update.
7181 * go-lang.c (go_main_name): Update.
7182 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7183 (hppa_hpux_find_import_stub_for_addr): Update.
7184 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7185 Update. Change return type.
7186 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7187 type.
7188 * jit.c (jit_breakpoint_re_set_internal): Update.
7189 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7190 Update.
7191 * linux-nat.c (get_signo): Update.
7192 * linux-thread-db.c (inferior_has_bug): Update
7193 * m32c-tdep.c (m32c_return_value)
7194 (m32c_m16c_address_to_pointer): Update.
7195 * m32r-tdep.c (m32r_frame_this_id): Update.
7196 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7197 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7198 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7199 lookup_minimal_symbol. Change return type.
7200 (lookup_minimal_symbol): Remove.
7201 (lookup_bound_minimal_symbol): Update.
7202 (lookup_minimal_symbol_text): Change return type.
7203 (lookup_minimal_symbol_solib_trampoline): Change return type.
7204 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7205 (lookup_minimal_symbol_solib_trampoline): Change return type.
7206 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7207 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7208 (value_nsstring, find_imps): Update.
7209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7210 * p-lang.c (pascal_main_name): Update.
7211 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7212 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7213 * proc-service.c (ps_pglobal_lookup): Update.
7214 * ravenscar-thread.c (get_running_thread_msymbol): Change
7215 return type.
7216 (has_ravenscar_runtime, get_running_thread_id): Update.
7217 * remote.c (remote_check_symbols): Update.
7218 * sol-thread.c (ps_pglobal_lookup): Update.
7219 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7220 * solib-dsbt.c (lm_base): Update.
7221 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7222 Update.
7223 * solib-irix.c (locate_base): Update.
7224 * solib-som.c (som_solib_create_inferior_hook)
7225 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7226 Update.
7227 * solib-spu.c (spu_enable_break): Update.
7228 * solib-svr4.c (elf_locate_base, enable_break): Update.
7229 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7230 (flush_ea_cache): Update.
7231 * stabsread.c (define_symbol): Update.
7232 * symfile.c (simple_read_overlay_table): Update.
7233 * symtab.c (find_pc_sect_line): Update.
7234 * tracepoint.c (scope_info): Update.
7235 * tui-disasm.c (tui_get_begin_asm_address): Update.
7236 * value.c (value_static_field): Update.
7237
40c1a007
TT
72382014-02-26 Tom Tromey <tromey@redhat.com>
7239
7240 * minsyms.c (prim_record_minimal_symbol_full): Use
7241 SET_MSYMBOL_VALUE_ADDRESS.
7242 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7243 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7244 SET_MSYMBOL_VALUE_ADDRESS.
7245 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7246 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7247
efd66ac6
TT
72482014-02-26 Tom Tromey <tromey@redhat.com>
7249
7250 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7251 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7252 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7253 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7254 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7255 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7256 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7257 * ada-lang.c (ada_main_name): Update.
7258 (ada_lookup_simple_minsym): Update.
7259 (ada_make_symbol_completion_list): Update.
7260 (ada_add_standard_exceptions): Update.
7261 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7263 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7264 * arm-tdep.c (skip_prologue_function): Update.
7265 (arm_skip_stack_protector, arm_skip_stub): Update.
7266 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7267 (arm_wince_skip_main_prologue): Update.
7268 * auxv.c (ld_so_xfer_auxv): Update.
7269 * avr-tdep.c (avr_scan_prologue): Update.
7270 * ax-gdb.c (gen_var_ref): Update.
7271 * block.c (call_site_for_pc): Update.
7272 * blockframe.c (get_pc_function_start): Update.
7273 (find_pc_partial_function_gnu_ifunc): Update.
7274 * breakpoint.c (create_overlay_event_breakpoint): Update.
7275 (create_longjmp_master_breakpoint): Update.
7276 (create_std_terminate_master_breakpoint): Update.
7277 (create_exception_master_breakpoint): Update.
7278 (resolve_sal_pc): Update.
7279 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7280 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7281 Update.
7282 * c-valprint.c (c_val_print): Update.
7283 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7284 * coffread.c (coff_symfile_read): Update.
7285 * common/agent.c (agent_look_up_symbols): Update.
7286 * dbxread.c (find_stab_function_addr): Update.
7287 (end_psymtab): Update.
7288 * dwarf2loc.c (call_site_to_target_addr): Update.
7289 (func_verify_no_selftailcall): Update.
7290 (tailcall_dump): Update.
7291 (call_site_find_chain_1): Update.
7292 (dwarf_expr_reg_to_entry_parameter): Update.
7293 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7294 (elf_gnu_ifunc_resolve_by_got): Update.
7295 * f-valprint.c (info_common_command): Update.
7296 * findvar.c (read_var_value): Update.
7297 * frame.c (get_prev_frame_1): Update.
7298 (inside_main_func): Update.
7299 * frv-tdep.c (frv_skip_main_prologue): Update.
7300 (frv_frame_this_id): Update.
7301 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7303 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7304 (gnuv3_skip_trampoline): Update.
7305 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7306 (hppa64_hpux_in_solib_call_trampoline): Update.
7307 (hppa_hpux_skip_trampoline_code): Update.
7308 (hppa64_hpux_search_dummy_call_sequence): Update.
7309 (hppa_hpux_find_import_stub_for_addr): Update.
7310 (hppa_hpux_find_dummy_bpaddr): Update.
7311 * hppa-tdep.c (hppa_symbol_address)
7312 (hppa_lookup_stub_minimal_symbol): Update.
7313 * i386-tdep.c (i386_skip_main_prologue): Update.
7314 (i386_pe_skip_trampoline_code): Update.
7315 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7316 * infcall.c (get_function_name): Update.
7317 * infcmd.c (until_next_command): Update.
7318 * jit.c (jit_breakpoint_re_set_internal): Update.
7319 (jit_inferior_init): Update.
7320 * linespec.c (minsym_found): Update.
7321 (add_minsym): Update.
7322 * linux-fork.c (info_checkpoints_command): Update.
7323 * linux-nat.c (get_signo): Update.
7324 * linux-thread-db.c (inferior_has_bug): Update.
7325 * m32c-tdep.c (m32c_return_value): Update.
7326 (m32c_m16c_address_to_pointer): Update.
7327 (m32c_m16c_pointer_to_address): Update.
7328 * m32r-tdep.c (m32r_frame_this_id): Update.
7329 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7330 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7331 * maint.c (maintenance_translate_address): Update.
7332 * minsyms.c (add_minsym_to_hash_table): Update.
7333 (add_minsym_to_demangled_hash_table): Update.
7334 (msymbol_objfile): Update.
7335 (lookup_minimal_symbol): Update.
7336 (iterate_over_minimal_symbols): Update.
7337 (lookup_minimal_symbol_text): Update.
7338 (lookup_minimal_symbol_by_pc_name): Update.
7339 (lookup_minimal_symbol_solib_trampoline): Update.
7340 (lookup_minimal_symbol_by_pc_section_1): Update.
7341 (lookup_minimal_symbol_and_objfile): Update.
7342 (prim_record_minimal_symbol_full): Update.
7343 (compare_minimal_symbols): Update.
7344 (compact_minimal_symbols): Update.
7345 (build_minimal_symbol_hash_tables): Update.
7346 (install_minimal_symbols): Update.
7347 (terminate_minimal_symbol_table): Update.
7348 (find_solib_trampoline_target): Update.
7349 (minimal_symbol_upper_bound): Update.
7350 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7351 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7352 (mips_skip_pic_trampoline_code): Update.
7353 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7354 * objc-lang.c (selectors_info): Update.
7355 (classes_info): Update.
7356 (find_methods): Update.
7357 (find_imps): Update.
7358 (find_objc_msgsend): Update.
7359 * objfiles.c (objfile_relocate1): Update.
7360 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7361 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7362 * p-valprint.c (pascal_val_print): Update.
7363 * parse.c (write_exp_msymbol): Update.
7364 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7365 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7366 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7367 * printcmd.c (build_address_symbolic): Update.
7368 (sym_info): Update.
7369 (address_info): Update.
7370 * proc-service.c (ps_pglobal_lookup): Update.
7371 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7372 (find_pc_sect_psymtab): Update.
7373 * python/py-framefilter.c (py_print_frame): Update.
7374 * ravenscar-thread.c (get_running_thread_id): Update.
7375 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7376 Update.
7377 * remote.c (remote_check_symbols): Update.
7378 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7379 (rs6000_skip_trampoline_code): Update.
7380 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7381 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7382 * solib-dsbt.c (lm_base): Update.
7383 * solib-frv.c (lm_base): Update.
7384 (main_got): Update.
7385 * solib-irix.c (locate_base): Update.
7386 * solib-som.c (som_solib_create_inferior_hook): Update.
7387 (som_solib_desire_dynamic_linker_symbols): Update.
7388 (link_map_start): Update.
7389 * solib-spu.c (spu_enable_break): Update.
7390 (ocl_enable_break): Update.
7391 * solib-svr4.c (elf_locate_base): Update.
7392 (enable_break): Update.
7393 * spu-tdep.c (spu_get_overlay_table): Update.
7394 (spu_catch_start): Update.
7395 (flush_ea_cache): Update.
7396 * stabsread.c (define_symbol): Update.
7397 (scan_file_globals): Update.
7398 * stack.c (find_frame_funname): Update.
7399 (frame_info): Update.
7400 * symfile.c (simple_read_overlay_table): Update.
7401 (simple_overlay_update): Update.
7402 * symmisc.c (dump_msymbols): Update.
7403 * symtab.c (fixup_section): Update.
7404 (find_pc_sect_line): Update.
7405 (skip_prologue_sal): Update.
7406 (search_symbols): Update.
7407 (print_msymbol_info): Update.
7408 (rbreak_command): Update.
7409 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7410 (completion_list_objc_symbol): Update.
7411 (default_make_symbol_completion_list_break_on): Update.
7412 * tracepoint.c (scope_info): Update.
7413 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7414 (tui_get_begin_asm_address): Update.
7415 * valops.c (find_function_in_inferior): Update.
7416 * value.c (value_static_field): Update.
7417 (value_fn_field): Update.
7418
50e65b17
TT
74192014-02-26 Tom Tromey <tromey@redhat.com>
7420
7421 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7422 bound minimal symbols. Move code that knows about minsym
7423 table layout...
7424 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7425 function.
7426 * minsyms.h (minimal_symbol_upper_bound): Declare.
7427 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7428 minimal_symbol_upper_bound.
7429
1b588015
JB
74302014-02-27 Joel Brobecker <brobecker@adacore.com>
7431
7432 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7433 Use the type's name if its basic type does not have a tag.
7434
dbb9c2b1
JB
74352014-02-27 Joel Brobecker <brobecker@adacore.com>
7436
7437 * dwarf2read.c (read_subrange_type): Add comment.
7438
55426c9d
JB
74392014-02-27 Joel Brobecker <brobecker@adacore.com>
7440
7441 * dwarf2read.c (update_enumeration_type_from_children): New
7442 function, mostly extracted from process_structure_scope.
7443 (read_enumeration_type): Call update_enumeration_type_from_children.
7444 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7445 and flag_flag_enum fields.
7446
f2fce0ca
PA
74472014-02-26 Pedro Alves <palves@redhat.com>
7448
7449 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7450 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7451 to_xfer_partial method.
7452
7a44e40e
PA
74532014-02-26 Pedro Alves <palves@redhat.com>
7454
7455 * target.c (complete_target_initialization): Don't install
7456 default_xfer_partial as to_xfer_partial hook.
7457 (nomemory): Delete.
7458 (update_current_target): Don't INHERIT nor de_fault
7459 deprecated_xfer_memory. Delete de_fault macro.
7460 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7461 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7462 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7463 field.
7464
bd265cd0
PA
74652014-02-26 Pedro Alves <palves@redhat.com>
7466
7467 * go32-nat.c (my_write_child): New function.
7468 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7469 (go32_xfer_partial): New function.
7470 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7471 Instead install a to_xfer_partial hook.
7472
9d46c4e5
PA
74732014-02-26 Pedro Alves <palves@redhat.com>
7474
7475 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7476 to_xfer_partial helper. Rewrite.
7477 (procfs_xfer_partial): New function.
7478 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7479 Install a to_xfer_partial hook.
7480
a1583b1f
PA
74812014-02-26 Pedro Alves <palves@redhat.com>
7482
7483 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7484 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7485 (m32r_xfer_partial): New function.
7486 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7487 Install a to_xfer_partial hook.
7488
6df1b29f
PA
74892014-02-26 Pedro Alves <palves@redhat.com>
7490
7491 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7492 helper.
7493 (mips_xfer_partial): New function.
7494 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7495 hook. Install a to_xfer_partial hook.
7496
dc53a7ad
JB
74972014-02-26 Joel Brobecker <brobecker@adacore.com>
7498
7499 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7500 * gdbtypes.c (create_array_type_with_stride): New function,
7501 renaming create_array_type, but with an added parameter
7502 called "bit_stride".
7503 (create_array_type): Re-implement using
7504 create_array_type_with_stride.
7505 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7506 and DW_AT_bit_stride attributes.
7507
12ab52e9
PA
75082014-02-26 Pedro Alves <palves@redhat.com>
7509
7510 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7511 task-specific breakpoints.
7512
d16461ae
PA
75132014-02-25 Pedro Alves <palves@redhat.com>
7514
7515 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7516 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7517
a8b16220
SS
75182014-02-25 Stan Shebs <stan@codesourcery.com>
7519
7520 * defs.h: Annotate comments for Doxygen.
7521
b9e795ee
TT
75222014-02-25 Tom Tromey <tromey@redhat.com>
7523
7524 * target.h (target_ignore): Don't declare.
7525 * target.c (target_ignore): Remove.
7526
849c862e
JK
75272014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 PR gdb/16626
7530 * auto-load.c (auto_load_objfile_script_1): Change filename to
7531 debugfile.
7532
475109d8
JB
75332014-02-25 Joel Brobecker <brobecker@adacore.com>
7534
7535 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7536 documentation. Adjust prototype to match the target_ops
7537 to_xfer_partial method. Adjust implementation accordingly.
7538
e186c3bd
HZ
75392014-02-25 Hui Zhu <hui@codesourcery.com>
7540
7541 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7542 to_traceframe_info.
7543
6d451942
KB
75442014-02-25 Kevin Buettner <kevinb@redhat.com>
7545
041ab8b4 7546 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7547 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7548 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7549 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7550 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7551 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7552 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7553 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7554 New constants.
7555 (rl78_register_type): Use a data pointer type for SP and
7556 new pseudo registers mentioned above. Use a 16 bit integer
7557 type for all other register pairs.
7558 (rl78_register_name, rl78_g10_register_name): Update for
7559 new pseudo registers.
7560 (rl78_pseudo_register_read): Likewise.
7561 (rl78_pseudo_register_write): Likewise.
7562 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7563 to the newly added pseudo registers.
7564
eddf0bae
DE
75652014-02-24 Doug Evans <dje@google.com>
7566
7567 * value.c (record_latest_value): Fix comment.
7568 * printcmd.c (print_command_1): Remove code to handle -1 return from
7569 record_latest_value.
7570
e96027e0
PA
75712014-02-24 Pedro Alves <palves@redhat.com>
7572
7573 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7574 deprecated_xfer_memory hook.
7575 (procfs_xfer_partial): Call procfs_xfer_memory instead
7576 of the deprecated_xfer_memory target hook.
7577 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7578 helper.
7579
0837c976
YZ
75802014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7581
7582 * windows-nat.c (windows_xfer_shared_libraries): Return
7583 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7584 requested object is TARGET_OBJECT_LIBRARIES.
7585
bc113b4e
YQ
75862014-02-24 Yao Qi <yao@codesourcery.com>
7587
7588 * target.h (enum target_xfer_status)
7589 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7590 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7591 explicitly. New.
7592 * corefile.c (memory_error_message): User updated.
7593 * exec.c (section_table_read_available_memory): Likewise.
7594 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7595 * target.c (target_xfer_status_to_string): Likewise.
7596 (raw_memory_xfer_partial): Likewise.
7597 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7598 * valops.c (read_value_memory): Likewise.
7599 * exec.h: Update comments.
7600
01cb8804
YQ
76012014-02-24 Yao Qi <yao@codesourcery.com>
7602
7603 * target.c (target_xfer_status_to_string): Rename argument err
7604 to status.
7605 * target.h (target_xfer_status_to_string): Update declaration.
7606 Replace target_xfer_error_to_string with
7607 target_xfer_status_to_string in comment.
7608
93063aa6
YQ
76092014-02-24 Yao Qi <yao@codesourcery.com>
7610
7611 * mips-linux-nat.c (super_close): Update its type.
7612 (mips_linux_close): Pass 'self' to super_close.
7613
5c328c05
YQ
76142014-02-24 Yao Qi <yao@codesourcery.com>
7615
7616 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7617 * corefile.c (read_memory): Adjusted.
7618 * target.c (target_write_with_progress): Adjusted.
7619
f73023dd
YQ
76202014-02-23 Yao Qi <yao@codesourcery.com>
7621
7622 Revert two patches:
7623
7624 2013-10-25 Yao Qi <yao@codesourcery.com>
7625
7626 * remote.c (remote_traceframe_info): Return early if
7627 traceframe is not selected.
7628
7629 2013-07-19 Yao Qi <yao@codesourcery.com>
7630
7631 * target.c (update_current_target): Change the default action
7632 of 'to_traceframe_info' from tcomplain to return_zero.
7633 * target.h (struct target_ops) <to_traceframe_info>: Add more
7634 comments.
7635
5a2eb0ef
YQ
76362014-02-23 Yao Qi <yao@codesourcery.com>
7637
7638 * valops.c (read_value_memory): Rewrite it. Call
7639 target_xfer_partial in a loop.
7640 * exec.h (section_table_available_memory): Remove declaration.
7641 Move comments to ...
7642 * exec.c (section_table_available_memory): ... here. Make it
7643 static.
7644
1ee79381
YQ
76452014-02-23 Yao Qi <yao@codesourcery.com>
7646
7647 * exec.c (section_table_read_available_memory): New function.
7648 * exec.h (section_table_read_available_memory): Declare.
7649 * ctf.c (ctf_xfer_partial): Call
7650 section_table_read_available_memory.
7651 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7652
1ca49d37
YQ
76532014-02-23 Yao Qi <yao@codesourcery.com>
7654
7655 * ctf.c (ctf_xfer_partial): Move code to ...
7656 * exec.c (exec_read_partial_read_only): ... it. New function.
7657 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7658 * tracefile.c: Include "exec.h".
7659 * exec.h (exec_read_partial_read_only): Declare.
7660
a283690e
YQ
76612014-02-23 Yao Qi <yao@codesourcery.com>
7662
7663 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7664 (tfile_has_memory): Remove.
7665 (init_tfile_ops): Don't set fields to_has_all_memory and
7666 to_has_memory of tfile_ops.
7667 * tracefile.c (tracefile_has_all_memory): New function.
7668 (tracefile_has_memory): New function.
7669 (init_tracefile_ops): Initialize fields to_has_all_memory and
7670 to_has_memory of 'ops'.
7671
12e03cd0
YQ
76722014-02-23 Yao Qi <yao@codesourcery.com>
7673
7674 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7675 (ctf_thread_alive, ctf_get_trace_status): Remove.
7676 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7677 init_tracefile_ops.
7678 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7679 (tfile_has_stack, tfile_has_registers): Remove.
7680 (tfile_thread_alive): Remove.
7681 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7682 init_tracefile_ops.
7683 * tracefile.c (tracefile_has_stack): New function.
7684 (tracefile_has_registers): New function.
7685 (tracefile_thread_alive): New function.
7686 (tracefile_get_trace_status): New function.
7687 (init_tracefile_ops): New function.
7688 * tracefile.h (init_tracefile_ops): Declare.
7689
11395323
YQ
76902014-02-23 Yao Qi <yao@codesourcery.com>
7691
7692 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7693 (O_LARGEFILE): Likewise.
7694 (tfile_ops): Likewise.
7695 (TRACE_HEADER_SIZE): Likewise.
7696 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7697 (cur_data_size): Likewise.
7698 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7699 (tfile_close, tfile_files_info): Likewise.
7700 (tfile_get_trace_status): Likewise.
7701 (tfile_get_tracepoint_status): Likewise.
7702 (tfile_get_traceframe_address): Likewise.
7703 (tfile_trace_find, match_blocktype): Likewise.
7704 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7705 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7706 (tfile_get_trace_state_variable_value): Likewise.
7707 (tfile_has_all_memory, tfile_has_memory): Likewise.
7708 (tfile_has_stack, tfile_has_registers): Likewise.
7709 (tfile_thread_alive, build_traceframe_info): Likewise.
7710 (tfile_traceframe_info, init_tfile_ops): Likewise.
7711 (_initialize_tracepoint): Don't call init_tfile_ops
7712 and add_target_with_completer.
7713 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7714 exec.h, completer.h and filenames.h.
7715 (_initialize_tracefile_tfile): New function.
7716
7951c4eb
YQ
77172014-02-23 Yao Qi <yao@codesourcery.com>
7718
7719 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7720 tracefile-tfile.o.
7721 (HFILES_NO_SRCDIR): Add tracefile.h.
7722 * ctf.c: Include "tracefile.h".
7723 * tracefile.h: New file.
7724 * tracefile.c: New file
7725 * tracefile-tfile.c: New file.
7726 * tracepoint.c: Include "tracefile.h".
7727 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7728 (stop_reason_names): Add const.
7729 (trace_file_writer_xfree): Move it to tracefile.c.
7730 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7731 (trace_save_ctf): Likewise.
7732 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7733 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7734 (tfile_write_header, tfile_write_regblock_type): Likewise.
7735 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7736 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7737 (tfile_write_raw_data, tfile_end): Likewise.
7738 (tfile_trace_file_writer_new): Likewise.
7739 (free_uploaded_tp): Make it extern.
7740 (free_uploaded_tsv): Make it extern.
7741 (_initialize_tracepoint): Move code to register command 'tsave'
7742 to tracefile.c.
7743 * tracepoint.h (stop_reason_names): Declare.
7744 (struct trace_frame_write_ops): Move it to tracefile.h.
7745 (struct trace_file_write_ops): Likewise.
7746 (struct trace_file_writer): Likewise.
7747 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7748
184cd072
JK
77492014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 PR gdb/16594
7752 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7753 process name.
7754 (get_cores_used_by_process): New parameter num_cores, use it.
7755 (linux_xfer_osdata_processes): Pass num_cores to it.
7756 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7757 process name.
7758
c63528fc
AK
77592014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7760
7761 * target.c (memory_xfer_partial): Fix length arg in call to
7762 breakpoint_xfer_memory.
7763
d7b30f67
SDJ
77642014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7765
7766 PR tdep/16397
7767 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7768 number comes after the + or - signs. Adjust length of register
7769 name to be extracted.
7770
8838afaf
TT
77712014-02-20 Tom Tromey <tromey@redhat.com>
7772
7773 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7774 (ada_varobj_ops): Mark "extern".
7775
05227d14
TT
77762014-02-20 Tom Tromey <tromey@redhat.com>
7777
7778 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7779
1254eefc
DE
77802014-02-20 Doug Evans <xdje42@gmail.com>
7781
7782 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7783 All callers updated.
7784 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7785 All callers updated.
7786 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7787 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7788
adde2bff
DE
77892014-02-20 lin zuojian <manjian2006@gmail.com>
7790 Joel Brobecker <brobecker@adacore.com>
7791 Doug Evans <xdje42@gmail.com>
7792
7793 PR symtab/16581
7794 * dwarf2read.c (struct die_info): New member in_process.
7795 (reset_die_in_process): New function.
7796 (process_die): Set it at the start, reset when returning.
7797 (inherit_abstract_dies): Only call process_die if origin_child_die
7798 not already being processed.
7799
3be75f87
JB
78002014-02-20 Joel Brobecker <brobecker@adacore.com>
7801
7802 * windows-nat.c (handle_unload_dll): Add function documentation.
7803 (do_initial_windows_stuff): Add comment explaining why we wait
7804 until after inferior initialization has finished before
7805 processing all DLLs.
7806
47f7ffdb
JB
78072014-02-20 Joel Brobecker <brobecker@adacore.com>
7808
7809 * windows-nat.c (get_module_name): Delete.
7810 (windows_get_exec_module_filename): New function, mostly
7811 inspired from get_module_name.
7812 (windows_pid_to_exec_file): Replace call to get_module_name
7813 by call to windows_get_exec_module_filename.
7814
1cd9feab
JB
78152014-02-20 Joel Brobecker <brobecker@adacore.com>
7816
7817 * windows-nat.c (handle_load_dll): Rewrite this function's
7818 introductory comment. Remove code using get_module_name
7819 to get the DLL's name.
7820
ea39ad35
JB
78212014-02-20 Joel Brobecker <brobecker@adacore.com>
7822
7823 * windows-nat.c (get_windows_debug_event): Ignore
7824 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7825 if windows_initialization_done == 0.
7826 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7827 Adjust implementation to always load all DLLs.
7828 (do_initial_windows_stuff): Replace call to
7829 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7830
95060284
JB
78312014-02-20 Joel Brobecker <brobecker@adacore.com>
7832
7833 * windows-nat.c (_initialize_windows_nat): Deprecate the
7834 "dll-symbols" command. Turn the "add-shared-symbol-files"
7835 and "assf" aliases into commands, and deprecate them as well.
7836 * NEWS: Add entry explaining that "dll-symbols" and its two
7837 aliases are now deprecated.
7838
8d4fdb12
JB
78392014-02-20 Joel Brobecker <brobecker@adacore.com>
7840
7841 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7842 new-line in debug string. Remove trailing spaces.
7843
1b281443
SS
78442014-02-19 Stan Shebs <stan@codesourcery.com>
7845
7846 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7847
f7bd0f78
SC
78482014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7849
7850 * NEWS: Add entry for the new feature
7851 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7852 and class values.
7853
399ebc3d
SS
78542014-02-19 Stan Shebs <stan@codesourcery.com>
7855
7856 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7857
c658158d
PA
78582014-02-19 Pedro Alves <palves@redhat.com>
7859
7860 * common/ptid.h (struct ptid): Mention that process_stratum
7861 targets should prefer ptid.lwp.
7862
ba348170
PA
78632014-02-19 Pedro Alves <palves@redhat.com>
7864
7865 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7866 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7867 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7868 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7869 store remote thread ids rather than ptid.tid.
7870 (_initialize_remote): Adjust.
7871
ac01945b
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target.c (target_get_unwinder): Rewrite.
7875 (target_get_tailcall_unwinder): Rewrite.
7876 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7877 (record_btrace_to_get_tailcall_unwinder): New function.
7878 (init_record_btrace_ops): Update.
7879 * target.h (struct target_ops) <to_get_unwinder,
7880 to_get_tailcall_unwinder>: Now function pointers. Use
7881 TARGET_DEFAULT_RETURN.
7882
8476dc92
TT
78832014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7886 argument.
7887 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7888
c0eca49f
TT
78892014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7892 directly.
7893 * target-delegates.c: Rebuild.
7894 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7895 TARGET_DEFAULT_FUNC.
7896 * target.c (default_target_decr_pc_after_break): Rename from
7897 forward_target_decr_pc_after_break. Simplify.
7898 (target_decr_pc_after_break): Rely on delegation.
7899
596b6b39
TT
79002014-02-19 Tom Tromey <tromey@redhat.com>
7901
7902 * target.c (update_current_target): Do not INHERIT to_doc or
7903 to_magic. Do not de_fault to_open or to_close.
7904
b427c1bc
TT
79052014-02-19 Tom Tromey <tromey@redhat.com>
7906
7907 * gcore.h (objfile_find_memory_regions): Declare.
7908 * gcore.c (objfile_find_memory_regions): No longer static. Add
7909 "self" argument.
7910 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7911 * exec.c: Include gcore.h.
7912 (exec_set_find_memory_regions): Remove.
7913 (exec_find_memory_regions): Remove.
7914 (exec_do_find_memory_regions): Remove.
7915 (init_exec_ops): Update.
7916 * defs.h (exec_set_find_memory_regions): Remove.
7917
9b144037
TT
79182014-02-19 Tom Tromey <tromey@redhat.com>
7919
7920 * target-delegates.c: Rebuild.
7921 * target.h (struct target_ops) <to_extra_thread_info,
7922 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7923 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7924 not 0, in TARGET_DEFAULT_RETURN.
7925
555bbdeb
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target.c (complete_target_initialization): Remove casts. Use
7929 return_zero_has_execution.
7930 (return_zero): Add "ignore" argument.
7931 (return_zero_has_execution): New function.
7932 (init_dummy_target): Remove casts. Use
7933 return_zero_has_execution.
7934
be4ddd36
TT
79352014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target.c (update_current_target): Update comments. Do not
7938 INHERIT to_stratum.
7939
2117c711
TT
79402014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7943 needed.
7944 * corelow.c (core_read_description): Delegate when needed.
7945 * remote.c (remote_read_description): Delegate when needed.
7946 * target-delegates.c: Rebuild.
7947 * target.c (target_read_description): Rewrite.
7948 * target.h (struct target_ops) <to_read_description>: Update
7949 comment. Use TARGET_DEFAULT_RETURN.
7950
e88ef65c
TT
79512014-02-19 Tom Tromey <tromey@redhat.com>
7952
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7955 to_can_run.
7956 (find_default_run_target): Check against delegate_can_run.
7957 * target.h (struct target_ops) <to_can_run>: Use
7958 TARGET_DEFAULT_RETURN.
7959
86a0854a
TT
79602014-02-19 Tom Tromey <tromey@redhat.com>
7961
7962 * target-delegates.c: Rebuild.
7963 * target.c (target_disconnect): Unconditionally delegate.
7964 * target.h (struct target_ops) <to_disconnect>: Use
7965 TARGET_DEFAULT_NORETURN.
7966
ee97f592
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * record.c (record_stop): Unconditionally delegate.
7970 * target-delegates.c: Rebuild.
7971 * target.c (target_stop_recording): Unconditionally delegate.
7972 * target.h (struct target_ops) <to_stop_recording>: Use
7973 TARGET_DEFAULT_IGNORE.
7974
6dc7fcf4
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (target_enable_btrace): Unconditionally delegate.
7979 * target.h (struct target_ops) <to_enable_btrace>: Use
7980 TARGET_DEFAULT_NORETURN.
7981
eb5b20d4
TT
79822014-02-19 Tom Tromey <tromey@redhat.com>
7983
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_read_btrace): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_read_btrace>: Use
7987 TARGET_DEFAULT_NORETURN.
7988
9ace480d
TT
79892014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_teardown_btrace): Unconditionally delegate.
7993 * target.h (struct target_ops) <to_teardown_btrace>: Use
7994 TARGET_DEFAULT_NORETURN.
7995
8dc292d3
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_disable_btrace): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_disable_btrace>: Use
8001 TARGET_DEFAULT_NORETURN.
8002
58a5184e
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (default_search_memory): New function.
8007 (simple_search_memory): Update comment.
8008 (target_search_memory): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_search_memory>: Use
8010 TARGET_DEFAULT_FUNC.
8011
8de71aab
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * auxv.c (default_auxv_parse): No longer static.
8015 (target_auxv_parse): Unconditionally delegate.
8016 * auxv.h (default_auxv_parse): Declare.
8017 * target-delegates.c: Rebuild.
8018 * target.c: Include auxv.h.
8019 * target.h (struct target_ops) <to_auxv_parse>: Use
8020 TARGET_DEFAULT_FUNC.
8021
6b2c5a57
TT
80222014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * target-delegates.c: Rebuild.
8025 * target.c (target_memory_map): Unconditionally delegate.
8026 * target.h (struct target_ops) <to_memory_map>: Use
8027 TARGET_DEFAULT_RETURN.
8028
cbffc065
TT
80292014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_thread_alive): Unconditionally delegate.
8033 * target.h (struct target_ops) <to_thread_alive>: Use
8034 TARGET_DEFAULT_RETURN.
8035
f09e2107
TT
80362014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (target_save_record): Unconditionally delegate.
8040 * target.h (struct target_ops) <to_save_record>: Use
8041 TARGET_DEFAULT_NORETURN.
8042
07366925
TT
80432014-02-19 Tom Tromey <tromey@redhat.com>
8044
8045 * target-delegates.c: Rebuild.
8046 * target.c (target_delete_record): Unconditionally delegate.
8047 * target.h (struct target_ops) <to_delete_record>: Use
8048 TARGET_DEFAULT_NORETURN.
8049
dd2e9d25
TT
80502014-02-19 Tom Tromey <tromey@redhat.com>
8051
8052 * target-delegates.c: Rebuild.
8053 * target.c (target_record_is_replaying): Unconditionally
8054 delegate.
8055 * target.h (struct target_ops) <to_record_is_replaying>: Use
8056 TARGET_DEFAULT_RETURN.
8057
671e76cc
TT
80582014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_goto_record_begin): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_goto_record_begin>: Use
8063 TARGET_DEFAULT_NORETURN.
8064
e9179bb3
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_goto_record_end): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_goto_record_end>: Use
8070 TARGET_DEFAULT_NORETURN.
8071
05969c84
TT
80722014-02-19 Tom Tromey <tromey@redhat.com>
8073
8074 * target-delegates.c: Rebuild.
8075 * target.c (target_goto_record): Unconditionally delegate.
8076 * target.h (struct target_ops) <to_goto_record>: Use
8077 TARGET_DEFAULT_NORETURN.
8078
3679abfa
TT
80792014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_insn_history): Unconditionally delegate.
8083 * target.h (struct target_ops) <to_insn_history>: Use
8084 TARGET_DEFAULT_NORETURN.
8085
8444ab58
TT
80862014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target-delegates.c: Rebuild.
8089 * target.c (target_insn_history_from): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_insn_history_from>: Use
8091 TARGET_DEFAULT_NORETURN.
8092
c29302cc
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_insn_history_range): Unconditionally delegate.
8097 * target.h (struct target_ops) <to_insn_history_range>: Use
8098 TARGET_DEFAULT_NORETURN.
8099
170049d4
TT
81002014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_call_history): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_call_history>: Use
8105 TARGET_DEFAULT_NORETURN.
8106
16fc27d6
TT
81072014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_call_history_from): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_call_history_from>: Use
8112 TARGET_DEFAULT_NORETURN.
8113
115d9817
TT
81142014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_call_history_range): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_call_history_range>: Use
8119 TARGET_DEFAULT_NORETURN.
8120
eb276a6b
TT
81212014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (target_verify_memory): Unconditionally delegate.
8125 * target.h (struct target_ops) <to_verify_memory>: Use
8126 TARGET_DEFAULT_NORETURN.
8127
9e538d0d
TT
81282014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_core_of_thread): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_core_of_thread>: Use
8133 TARGET_DEFAULT_RETURN.
8134
f6fb2925
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.c (target_flash_done): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_flash_done>: Use
8140 TARGET_DEFAULT_NORETURN.
8141
e8a6c6ac
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_flash_erase): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_flash_erase>: Use
8147 TARGET_DEFAULT_NORETURN.
8148
7e35c012
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_get_section_table): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_get_section_table>: Use
8154 TARGET_DEFAULT_RETURN.
8155
770234d3
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_pid_to_str): Unconditionally delegate.
8160 (init_dummy_target): Don't initialize to_pid_to_str.
8161 (default_pid_to_str): Rename from dummy_pid_to_str.
8162 * target.h (struct target_ops) <to_pid_to_str>: Use
8163 TARGET_DEFAULT_FUNC.
8164
09b0dc2b
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (target_find_new_threads): Unconditionally delegate.
8169 * target.h (struct target_ops) <to_find_new_threads>: Use
8170 TARGET_DEFAULT_RETURN.
8171
7d4f8efa
TT
81722014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (target_program_signals): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_program_signals>: Use
8177 TARGET_DEFAULT_IGNORE.
8178
035cad7f
TT
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_pass_signals): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_pass_signals>: Use
8184 TARGET_DEFAULT_IGNORE.
8185
8d657035
TT
81862014-02-19 Tom Tromey <tromey@redhat.com>
8187
8188 * target-delegates.c: Rebuild.
8189 * target.c (default_mourn_inferior): New function.
8190 (target_mourn_inferior): Unconditionally delegate.
8191 * target.h (struct target_ops) <to_mourn_inferior>: Use
8192 TARGET_DEFAULT_FUNC.
8193
098dba18
TT
81942014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target-delegates.c: Rebuild.
8197 * target.c (default_follow_fork): New function.
8198 (target_follow_fork): Unconditionally delegate.
8199 * target.h (struct target_ops) <to_follow_fork>: Use
8200 TARGET_DEFAULT_FUNC.
8201
423a4807
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_kill): Unconditionally delegate.
8206 * target.h (struct target_ops) <to_kill>: Use
8207 TARGET_DEFAULT_NORETURN.
8208
6c7e5e5c
TT
82092014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target-delegates.c: Rebuild.
8212 * target.c (target_masked_watch_num_registers): Unconditionally
8213 delegate.
8214 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8215 Use TARGET_DEFAULT_RETURN.
8216
8b1c364c
TT
82172014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target-delegates.c: Rebuild.
8220 * target.c (target_remove_mask_watchpoint): Unconditionally
8221 delegate.
8222 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8223 TARGET_DEFAULT_RETURN.
8224
cd4ae029
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (target_insert_mask_watchpoint): Unconditionally
8229 delegate.
8230 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8231 TARGET_DEFAULT_RETURN.
8232
a134316b
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_ranged_break_num_registers): Unconditionally
8237 delegate.
8238 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8239 Use TARGET_DEFAULT_RETURN.
8240
ad5989bd
TT
82412014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target-delegates.c: Rebuild.
8244 * target.c (target_fetch_registers): Unconditionally delegate.
8245 * target.h (struct target_ops) <to_fetch_registers>: Use
8246 TARGET_DEFAULT_NORETURN.
8247
46ee7e8d
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_stop.
8253 * target.h (struct target_ops) <to_stop>: Use
8254 TARGET_DEFAULT_IGNORE.
8255
843f59ed
TT
82562014-02-19 Tom Tromey <tromey@redhat.com>
8257
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_can_run_breakpoint_commands.
8261 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8262 Use TARGET_DEFAULT_RETURN.
8263
ccfde2a0
TT
82642014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8268 to_supports_evaluation_of_breakpoint_conditions.
8269 * target.h (struct target_ops)
8270 <to_supports_evaluation_of_breakpoint_conditions>: Use
8271 TARGET_DEFAULT_RETURN.
8272
0de91722
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_augmented_libraries_svr4_read.
8278 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8279 Use TARGET_DEFAULT_RETURN.
8280
9a7d8b48
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8285 to_can_use_agent.
8286 * target.h (struct target_ops) <to_can_use_agent>: Use
8287 TARGET_DEFAULT_RETURN.
8288
d9db5b21
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8293 to_use_agent.
8294 * target.h (struct target_ops) <to_use_agent>: Use
8295 TARGET_DEFAULT_NORETURN.
8296
92155eeb
TT
82972014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8301 to_traceframe_info.
8302 (return_null): Remove.
8303 * target.h (struct target_ops) <to_traceframe_info>: Use
8304 TARGET_DEFAULT_RETURN.
8305
d6522a22
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_static_tracepoint_markers_by_strid.
8311 * target.h (struct target_ops)
8312 <to_static_tracepoint_markers_by_strid>: Use
8313 TARGET_DEFAULT_NORETURN.
8314
4c3e4425
TT
83152014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_static_tracepoint_marker_at.
8320 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8321 Use TARGET_DEFAULT_RETURN.
8322
dcd6917f
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_set_permissions.
8328 * target.h (struct target_ops) <to_set_permissions>: Use
8329 TARGET_DEFAULT_IGNORE.
8330
22bcceee
TT
83312014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_get_tib_address.
8336 * target.h (struct target_ops) <to_get_tib_address>: Use
8337 TARGET_DEFAULT_NORETURN.
8338
8586ccaa
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_set_trace_notes.
8344 * target.h (struct target_ops) <to_set_trace_notes>: Use
8345 TARGET_DEFAULT_RETURN.
8346
91df8d1d
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't initialize
8351 to_set_trace_buffer_size.
8352 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8353 TARGET_DEFAULT_IGNORE.
8354
8d526939
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_set_circular_trace_buffer.
8360 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8361 TARGET_DEFAULT_IGNORE.
8362
0bcfeddf
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_set_disconnected_tracing.
8368 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8369 TARGET_DEFAULT_IGNORE.
8370
9249843f
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_get_min_fast_tracepoint_insn_len.
8376 (return_minus_one): Remove.
8377 * target.h (struct target_ops)
8378 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8379
ace92e7d
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_get_raw_trace_data.
8385 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8386 TARGET_DEFAULT_NORETURN.
8387
08120467
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_upload_trace_state_variables.
8393 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8394 Use TARGET_DEFAULT_RETURN.
8395
1e949b00
TT
83962014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_upload_tracepoints.
8401 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8402 TARGET_DEFAULT_RETURN.
8403
a2e6c147
TT
84042014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_save_trace_data.
8409 * target.h (struct target_ops) <to_save_trace_data>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
959bcd0b
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_get_trace_state_variable_value.
8417 * target.h (struct target_ops)
8418 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8419
afc94e66
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_trace_find.
8425 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8426
e51c07ea
TT
84272014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_trace_stop.
8432 * target.h (struct target_ops) <to_trace_stop>: Use
8433 TARGET_DEFAULT_NORETURN.
8434
6fea14cd
TT
84352014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_get_tracepoint_status.
8440 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8441 TARGET_DEFAULT_NORETURN.
8442
4072d4ff
TT
84432014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_get_trace_status.
8448 * target.h (struct target_ops) <to_get_trace_status>: Use
8449 TARGET_DEFAULT_RETURN.
8450
25da2e80
TT
84512014-02-19 Tom Tromey <tromey@redhat.com>
8452
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_trace_start.
8456 * target.h (struct target_ops) <to_trace_start>: Use
8457 TARGET_DEFAULT_NORETURN.
8458
86dd181d
TT
84592014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_trace_set_readonly_regions.
8464 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8465 Use TARGET_DEFAULT_NORETURN.
8466
05c41993
TT
84672014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_disable_tracepoint.
8472 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8473 TARGET_DEFAULT_NORETURN.
8474
151f70f1
TT
84752014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_enable_tracepoint.
8480 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8481 TARGET_DEFAULT_NORETURN.
8482
94eb98b9
TT
84832014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_download_trace_state_variable.
8488 * target.h (struct target_ops) <to_download_trace_state_variable>:
8489 Use TARGET_DEFAULT_NORETURN.
8490
719acc4a
TT
84912014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_can_download_tracepoint.
8496 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8497 TARGET_DEFAULT_RETURN.
8498
9a980a22
TT
84992014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_download_tracepoint.
8504 * target.h (struct target_ops) <to_download_tracepoint>: Use
8505 TARGET_DEFAULT_NORETURN.
8506
5536135b
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_trace_init.
8512 * target.h (struct target_ops) <to_trace_init>: Use
8513 TARGET_DEFAULT_RETURN.
8514
9409d39e
TT
85152014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_supports_string_tracing.
8520 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8521 TARGET_DEFAULT_RETURN.
8522
aab1b22d
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_supports_enable_disable_tracepoint.
8528 * target.h (struct target_ops)
8529 <to_supports_enable_disable_tracepoint>: Use
8530 TARGET_DEFAULT_RETURN.
8531
a7304748
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_supports_multi_process.
8537 * target.h (struct target_ops) <to_supports_multi_process>: Use
8538 TARGET_DEFAULT_RETURN.
8539
4229b31d
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_get_ada_task_ptid.
8545 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8546 TARGET_DEFAULT_FUNC.
8547
43eba180
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_thread_architecture.
8553 * target.h (struct target_ops) <to_thread_architecture>: Use
8554 TARGET_DEFAULT_FUNC.
8555
fe31bf5b
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_execution_direction.
8561 * target.h (struct target_ops) <to_execution_direction>: Use
8562 TARGET_DEFAULT_FUNC.
8563
53e1cfc7
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_can_execute_reverse.
8569 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8570 TARGET_DEFAULT_RETURN.
8571 (target_can_execute_reverse): Unconditionally delegate.
8572
9bb9d61d
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_goto_bookmark.
8578 (dummy_goto_bookmark): Remove.
8579 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8580 * target.h (struct target_ops) <to_goto_bookmark>: Use
8581 TARGET_DEFAULT_NORETURN.
8582
3dbafbbb
TT
85832014-02-19 Tom Tromey <tromey@redhat.com>
8584
8585 * target-delegates.c: Rebuild.
8586 * target.c (update_current_target): Don't inherit or default
8587 to_get_bookmark.
8588 (dummy_get_bookmark): Remove.
8589 (init_dummy_target): Don't inherit or default to_get_bookmark.
8590 * target.h (struct target_ops) <to_get_bookmark>: Use
8591 TARGET_DEFAULT_NORETURN
8592
16f796b1
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_make_corefile_notes.
8598 (init_dummy_target): Don't initialize to_make_corefile_notes.
8599 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8600 TARGET_DEFAULT_FUNC.
8601
0b5a2719
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_find_memory_regions.
8607 (init_dummy_target): Don't initialize to_find_memory_regions.
8608 * target.h (struct target_ops) <to_find_memory_regions>: Use
8609 TARGET_DEFAULT_FUNC.
8610
d9cb0195
TT
86112014-02-19 Tom Tromey <tromey@redhat.com>
8612
8613 * target-delegates.c: Rebuild.
8614 * target.c (update_current_target): Don't inherit or default
8615 to_log_command.
8616 * target.h (struct target_ops) <to_log_command>: Use
8617 TARGET_DEFAULT_IGNORE.
8618 (target_log_command): Unconditionally delegate.
8619
830ca330
TT
86202014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_pid_to_exec_file.
8625 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8626 TARGET_DEFAULT_RETURN.
8627
825828fc
TT
86282014-02-19 Tom Tromey <tromey@redhat.com>
8629
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8632 to_thread_name.
8633 (target_thread_name): Unconditionally delegate.
8634 * target.h (struct target_ops) <to_thread_name>: Use
8635 TARGET_DEFAULT_RETURN.
8636
4a7e6dda
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_extra_thread_info.
8642 * target.h (struct target_ops) <to_extra_thread_info>: Use
8643 TARGET_DEFAULT_RETURN.
8644
0db88c1d
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_has_exited.
8650 * target.h (struct target_ops) <to_has_exited>: Use
8651 TARGET_DEFAULT_RETURN..
8652
6a9fa051
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_set_syscall_catchpoint.
8658 (return_one): Remove.
8659 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8660 TARGET_DEFAULT_RETURN.
8661
62f64d7a
TT
86622014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_insert_exec_catchpoint.
8667 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8668 TARGET_DEFAULT_RETURN.
8669
cda0f38c
TT
86702014-01-08 Tom Tromey <tromey@redhat.com>
8671
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8674 to_insert_exec_catchpoint.
8675 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8676 TARGET_DEFAULT_RETURN.
8677
95c3375e
TT
86782014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_remove_vfork_catchpoint.
8683 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8684 TARGET_DEFAULT_RETURN.
8685
7e18a8dc
TT
86862014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_insert_vfork_catchpoint.
8691 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8692 TARGET_DEFAULT_RETURN.
8693
e1a21fb7
TT
86942014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_remove_fork_catchpoint.
8699 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8700 TARGET_DEFAULT_RETURN.
8701
5958ebeb
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_insert_fork_catchpoint.
8707 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8708 TARGET_DEFAULT_RETURN.
8709
340ba4bf
TT
87102014-02-19 Tom Tromey <tromey@redhat.com>
8711
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_post_startup_inferior.
8715 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8716 TARGET_DEFAULT_IGNORE.
8717
7634da87
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_load.
8723 * target.h (struct target_ops) <to_load>: Use
8724 TARGET_DEFAULT_NORETURN.
8725
e19e919f
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_terminal_info.
8731 * target.h (struct target_ops) <to_terminal_info>: Use
8732 TARGET_DEFAULT_FUNC.
8733
c6ea8f79
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_terminal_save_ours.
8739 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8740 TARGET_DEFAULT_IGNORE.
8741
e4a733f1
TT
87422014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_terminal_ours.
8747 * target.h (struct target_ops) <to_terminal_ours>: Use
8748 TARGET_DEFAULT_IGNORE.
8749
74fcbef9
TT
87502014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_terminal_ours_for_output.
8755 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8756 TARGET_DEFAULT_IGNORE.
8757
ddeaacc9
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_terminal_inferior.
8763 * target.h (struct target_ops) <to_terminal_inferior>: Use
8764 TARGET_DEFAULT_IGNORE.
8765
0343661d
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8770 to_terminal_init.
8771 * target.h (struct target_ops) <to_terminal_init>: Use
8772 TARGET_DEFAULT_IGNORE.
8773
77cdffe9
TT
87742014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_can_accel_watchpoint_condition.
8779 * target.h (struct target_ops)
8780 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8781
d03655e4
TT
87822014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_region_ok_for_hw_watchpoint.
8787 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8788 Use TARGET_DEFAULT_FUNC.
8789
65f160a9
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_watchpoint_addr_within_range.
8795 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8796 Use TARGET_DEFAULT_FUNC.
8797
61dd109f
TT
87982014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_remove_watchpoint.
8803 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8804 TARGET_DEFAULT_NORETURN.
8805
016facd4
TT
88062014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_insert_watchpoint.
8811 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8812 TARGET_DEFAULT_RETURN.
8813
418dabac
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_remove_hw_breakpoint.
8819 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8820 TARGET_DEFAULT_RETURN.
8821
61b371f9
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_insert_hw_breakpoint.
8827 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8828 TARGET_DEFAULT_RETURN.
8829
52b51d06
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_can_use_hw_breakpoint.
8835 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8836 TARGET_DEFAULT_RETURN.
8837
f86e59b2
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_files_info.
8843 * target.h (struct target_ops) <to_files_info>: Use
8844 TARGET_DEFAULT_IGNORE.
8845
6c628163
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_store.
8851 * target.h (struct target_ops) <to_store>: Use
8852 TARGET_DEFAULT_NORETURN.
8853
bebd3233
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_post_attach.
8859 * target.h (struct target_ops) <to_post_attach>: Use
8860 TARGET_DEFAULT_IGNORE.
8861
a53f3625
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_rcmd.
8867 (default_rcmd): New function.
8868 (do_monitor_command): Unconditionally delegate.
8869 * target.h (struct target_ops) <to_rmcd>: Use
8870 TARGET_DEFAULT_FUNC.
8871
e9a29200
TT
88722014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target-delegates.c: Rebuild.
8875 * target.c (init_dummy_target): Don't initialize to_attach.
8876 (target_attach): Unconditionally delegate.
8877 * target.h (struct target_ops) <to_attach>: Use
8878 TARGET_DEFAULT_FUNC.
8879
09da0d0a
TT
88802014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target-delegates.c: Rebuild.
8883 * target.c (target_detach): Unconditionally delegate.
8884 (init_dummy_target): Don't initialize to_detach.
8885 * target.h (struct target_ops) <to_detach>: Use
8886 TARGET_DEFAULT_IGNORE.
8887
5436ff03
TT
88882014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8891 Add argument.
8892 (target_augmented_libraries_svr4_read): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8895 argument.
8896
f0d960ea
TT
88972014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target.h (struct target_ops) <to_call_history_range>: Add
8900 argument.
8901 * target.c (target_call_history_range): Add argument.
8902 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8903 argument.
8904 (record_btrace_call_history_from): Update.
8905
ec0aea04
TT
89062014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target.h (struct target_ops) <to_call_history_from>: Add
8909 argument.
8910 * target.c (target_call_history_from): Add argument.
8911 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8912 argument.
8913
5df2fcba
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target.h (struct target_ops) <to_call_history>: Add argument.
8917 * target.c (target_call_history): Add argument.
8918 * record-btrace.c (record_btrace_call_history): Add 'self'
8919 argument.
8920
4e99c6b7
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target.h (struct target_ops) <to_insn_history_range>: Add
8924 argument.
8925 * target.c (target_insn_history_range): Add argument.
8926 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8927 argument.
8928 (record_btrace_insn_history_from): Update.
8929
9abc3ff3
TT
89302014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target.h (struct target_ops) <to_insn_history_from>: Add
8933 argument.
8934 * target.c (target_insn_history_from): Add argument.
8935 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8936 argument.
8937
7a6c5609
TT
89382014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target.h (struct target_ops) <to_insn_history>: Add argument.
8941 * target.c (target_insn_history): Add argument.
8942 * record-btrace.c (record_btrace_insn_history): Add 'self'
8943 argument.
8944
606183ac
TT
89452014-02-19 Tom Tromey <tromey@redhat.com>
8946
8947 * target.h (struct target_ops) <to_goto_record>: Add argument.
8948 * target.c (target_goto_record): Add argument.
8949 * record-full.c (record_full_goto): Add 'self' argument.
8950 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8951
307a1b91
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8955 * target.c (target_goto_record_end): Add argument.
8956 * record-full.c (record_full_goto_end): Add 'self' argument.
8957 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8958
08475817
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops) <to_goto_record_begin>: Add
8962 argument.
8963 * target.c (target_goto_record_begin): Add argument.
8964 * record-full.c (record_full_goto_begin): Add 'self' argument.
8965 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8966 argument.
8967
1c63c994
TT
89682014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target.h (struct target_ops) <to_record_is_replaying>: Add
8971 argument.
8972 * target.c (target_record_is_replaying): Add argument.
8973 * record-full.c (record_full_is_replaying): Add 'self' argument.
8974 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8975 argument.
8976 (record_btrace_xfer_partial, record_btrace_store_registers)
8977 (record_btrace_prepare_to_store, record_btrace_resume)
8978 (record_btrace_wait, record_btrace_decr_pc_after_break)
8979 (record_btrace_find_new_threads, record_btrace_thread_alive):
8980 Update.
8981
d1b55219
TT
89822014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target.h (struct target_ops) <to_delete_record>: Add argument.
8985 * target.c (target_delete_record): Add argument.
8986 * record-full.c (record_full_delete): Add 'self' argument.
8987
1390f529
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_save_record>: Add argument.
8991 * target.c (target_save_record): Add argument.
8992 * record-full.c (record_full_save): Add 'self' argument.
8993 (record_full_save): Add 'self' argument.
8994
630d6a4a
TT
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_info_record>: Add argument.
8998 * target.c (target_info_record): Add argument.
8999 * record.c (info_record_command): Add argument.
9000 * record-full.c (record_full_info): Add 'self' argument.
9001 * record-btrace.c (record_btrace_info): Add 'self' argument.
9002
c6cd7c02
TT
90032014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9006 * target.c (target_stop_recording): Add argument.
9007 * record.c (record_stop): Add argument.
9008 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9009 argument.
9010
39c49f83
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9014 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9015 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9016 argument.
9017 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9018 (_initialize_amd64_linux_nat): Use it.
9019 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9020 (_initialize_i386_linux_nat): Use it.
9021
1777056d
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9025 * target.c (target_teardown_btrace): Add argument.
9026 * remote.c (remote_teardown_btrace): Add 'self' argument.
9027 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9028 argument.
9029 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9030 argument.
9031
25e95349
TT
90322014-02-19 Tom Tromey <tromey@redhat.com>
9033
9034 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9035 * target.c (target_disable_btrace): Add argument.
9036 * remote.c (remote_disable_btrace): Add 'self' argument.
9037 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9038 argument.
9039 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9040 argument.
9041
e3c49f88
TT
90422014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9045 * target.c (target_enable_btrace): Add argument.
9046 * remote.c (remote_enable_btrace): Add 'self' argument.
9047 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9048 argument.
9049 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9050 argument.
9051
fe38f897
TT
90522014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9055 (target_can_use_agent): Add argument.
9056 * target.c (update_current_target): Update.
9057 * remote.c (remote_can_use_agent): Add 'self' argument.
9058 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9059
2c152180
TT
90602014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target.h (struct target_ops) <to_use_agent>: Add argument.
9063 (target_use_agent): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_use_agent): Add 'self' argument.
9066 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9067
a893e81f
TT
90682014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9071 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9072 (target_traceframe_info): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_traceframe_info): Add 'self' argument.
9075 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9076
c686c57f
TT
90772014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (target_static_tracepoint_markers_by_strid): Add
9080 argument.
9081 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9082 'self' argument.
9083 * target.c (update_current_target): Update.
9084 * remote.c (struct target_ops)
9085 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9086 * linux-nat.c (struct target_ops)
9087 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9088
61fc905d
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9092 Add argument.
9093 (target_static_tracepoint_marker_at): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9096 argument.
9097
c378d69d
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9101 (target_set_permissions): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_set_permissions): Add 'self' argument.
9104 (remote_start_remote): Update.
9105
bd7ae0f5
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9109 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9110 (target_get_tib_address): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_tib_address): Add 'self' argument.
9113
d9e68a2c
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9117 (target_set_trace_notes): Add argument.
9118 * target.c (update_current_target): Update.
9119 * remote.c (remote_set_trace_notes): Add 'self' argument.
9120
4da384be
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9124 argument.
9125 (target_set_trace_buffer_size): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9128
736d5b1f
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9132 argument.
9133 (target_set_circular_trace_buffer): Add argument.
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9136 argument.
9137
37b25738
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9141 argument.
9142 (target_set_disconnected_tracing): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9145
0e67620a
TT
91462014-02-19 Tom Tromey <tromey@redhat.com>
9147
9148 * target.h (struct target_ops)
9149 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9150 (target_get_min_fast_tracepoint_insn_len): Add argument.
9151 * target.c (update_current_target): Update.
9152 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9153 argument.
9154
88ee6f45
TT
91552014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9158 argument.
9159 (target_get_raw_trace_data): Add argument.
9160 * target.c (update_current_target): Update.
9161 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9162
181e3713
TT
91632014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9166 Add argument.
9167 (target_upload_trace_state_variables): Add argument.
9168 * target.c (update_current_target): Update.
9169 * remote.c (remote_upload_trace_state_variables): Add 'self'
9170 argument.
9171 (remote_start_remote): Update.
9172
ab6617cc
TT
91732014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9176 argument.
9177 (target_upload_tracepoints): Add argument.
9178 * target.c (update_current_target): Update.
9179 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9180 (remote_start_remote): Update.
9181
dc3decaf
TT
91822014-02-19 Tom Tromey <tromey@redhat.com>
9183
9184 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9185 (target_save_trace_data): Add argument.
9186 * target.c (update_current_target): Update.
9187 * remote.c (remote_save_trace_data): Add 'self' argument.
9188
4011015b
TT
91892014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9192 argument.
9193 * target.h (struct target_ops)
9194 <to_get_trace_state_variable_value>: Add argument.
9195 (target_get_trace_state_variable_value): Add argument.
9196 * target.c (update_current_target): Update.
9197 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9198 argument.
9199 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9200
bd4c6793
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9204 * target.h (struct target_ops) <to_trace_find>: Add argument.
9205 (target_trace_find): Add argument.
9206 * target.c (update_current_target): Update.
9207 * remote.c (remote_trace_find): Add 'self' argument.
9208 * ctf.c (ctf_trace_find): Add 'self' argument.
9209
74499f1b
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9213 (target_trace_stop): Add argument.
9214 * target.c (update_current_target): Update.
9215 * remote.c (remote_trace_stop): Add 'self' argument.
9216
db90e85c
TT
92172014-02-19 Tom Tromey <tromey@redhat.com>
9218
9219 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9220 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9221 argument.
9222 (target_get_tracepoint_status): Add argument.
9223 * target.c (update_current_target): Update.
9224 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9225
8bd200f1
TT
92262014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9229 * target.h (struct target_ops) <to_get_trace_status>: Add
9230 argument.
9231 (target_get_trace_status): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_get_trace_status): Add 'self' argument.
9234 (remote_start_remote, remote_can_download_tracepoint): Update.
9235 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9236
e2d1aae3
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_trace_start>: Add argument.
9240 (target_trace_start): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_trace_start): Add 'self' argument.
9243
583f9a86
TT
92442014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9247 Add argument.
9248 (target_trace_set_readonly_regions): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9251 argument.
9252
780b049c
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9256 argument.
9257 (target_disable_tracepoint): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9260
46670d57
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9264 argument.
9265 (target_enable_tracepoint): Add argument.
9266 * target.c (update_current_target): Update.
9267 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9268
559d2b81
TT
92692014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target.h (struct target_ops) <to_download_trace_state_variable>:
9272 Add argument.
9273 (target_download_trace_state_variable): Add argument.
9274 * target.c (update_current_target): Update.
9275 * remote.c (remote_download_trace_state_variable): Add 'self'
9276 argument.
9277
a52a8357
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9281 argument.
9282 (target_can_download_tracepoint): Add argument.
9283 * target.c (update_current_target): Update.
9284 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9285
548f7808
TT
92862014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target.h (struct target_ops) <to_download_tracepoint>: Add
9289 argument.
9290 (target_download_tracepoint): Add argument.
9291 * target.c (update_current_target): Update.
9292 * remote.c (remote_download_tracepoint): Add 'self' argument.
9293
ecae04e1
TT
92942014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target.h (struct target_ops) <to_trace_init>: Add argument.
9297 (target_trace_init): Add argument.
9298 * target.c (update_current_target): Update.
9299 * remote.c (remote_trace_init): Add 'self' argument.
9300
fab5aa7c
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9304 * target.c (target_fileio_readlink): Add argument.
9305 * remote.c (remote_hostio_readlink): Add 'self' argument.
9306 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9307
dbbca37d
TT
93082014-02-19 Tom Tromey <tromey@redhat.com>
9309
9310 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9311 * target.c (target_fileio_unlink): Add argument.
9312 * remote.c (remote_hostio_unlink): Add 'self' argument.
9313 (remote_file_delete): Update.
9314 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9315
df39ea25
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9319 * target.c (target_fileio_close): Add argument.
9320 * remote.c (remote_hostio_close): Add 'self' argument.
9321 (remote_hostio_close_cleanup): Update.
9322 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9323 Update.
9324 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9325
a3be983c
TT
93262014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9329 * target.c (target_fileio_pread): Add argument.
9330 * remote.c (remote_hostio_pread): Add 'self' argument.
9331 (remote_bfd_iovec_pread, remote_file_get): Update.
9332 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9333
0d866f62
TT
93342014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9337 * target.c (target_fileio_pwrite): Add argument.
9338 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9339 (remote_file_put): Update.
9340 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9341
cd897586
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9345 * target.c (target_fileio_open): Add argument.
9346 * remote.c (remote_hostio_open): Add 'self' argument.
9347 (remote_bfd_iovec_open): Add 'self' argument.
9348 (remote_file_put): Add 'self' argument.
9349 (remote_file_get): Add 'self' argument.
9350 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9351
78eff0ec
TT
93522014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9355 Add argument.
9356 (target_can_run_breakpoint_commands): Add argument.
9357 * target.c (update_current_target): Update.
9358 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9359 argument.
9360 (remote_insert_breakpoint): Add 'self' argument.
9361 (remote_insert_hw_breakpoint): Add 'self' argument.
9362 (remote_can_run_breakpoint_commands): Add 'self' argument.
9363
efcc2da7
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target.h (struct target_ops)
9367 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9368 (target_supports_evaluation_of_breakpoint_conditions): Add
9369 argument.
9370 * target.c (update_current_target): Update.
9371 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9372 argument.
9373 (remote_insert_breakpoint): Add 'self' argument.
9374 (remote_insert_hw_breakpoint): Add 'self' argument.
9375 (remote_supports_cond_breakpoints): Add 'self' argument.
9376
6de37a3a
TT
93772014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9380 argument.
9381 (target_supports_string_tracing): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9384
2bfc0540
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target.h (struct target_ops)
9388 <to_supports_disable_randomization>: Add argument.
9389 * target.c (find_default_supports_disable_randomization): Add
9390 argument.
9391 (target_supports_disable_randomization): Add argument.
9392 (find_default_supports_disable_randomization): Add 'self'
9393 argument.
9394 * remote.c (extended_remote_supports_disable_randomization): Add
9395 'self' argument.
9396 (remote_supports_disable_randomization): Add 'self' argument.
9397 (extended_remote_create_inferior): Update.
9398 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9399 'self' argument.
9400
7d178d6a
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target.h (struct target_ops)
9404 <to_supports_enable_disable_tracepoint>: Add argument.
9405 (target_supports_enable_disable_tracepoint): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9408 argument.
9409
86ce2668
TT
94102014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target.h (struct target_ops) <to_supports_multi_process>: Add
9413 argument.
9414 (target_supports_multi_process): Add argument.
9415 * target.c (update_current_target): Update.
9416 * remote.c (remote_supports_multi_process): Add 'self' argument.
9417 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9418 argument.
9419 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9420 argument.
9421
4c612759
TT
94222014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target.h (struct target_ops) <to_execution_direction>: Add
9425 argument.
9426 (target_execution_direction): Add argument.
9427 * target.c (default_execution_direction): Add 'self' argument.
9428 * record-full.c (record_full_execution_direction): Add 'self'
9429 argument.
9430
19db3e69
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9434 argument.
9435 (target_can_execute_reverse): Add argument.
9436 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9437 * record-full.c (record_full_can_execute_reverse): Add 'self'
9438 argument.
9439 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9440 argument.
9441
1e6b91a4
TT
94422014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9445 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9446 argument.
9447 (target_get_ada_task_ptid): Add argument.
9448 * target.c (update_current_target): Update.
9449 (default_get_ada_task_ptid): Add 'self' argument.
9450 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9451 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9452 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9453 argument.
9454 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9455 argument.
9456 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9457 argument.
9458 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9459 argument.
9460 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9461 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9462 argument.
9463
3c80fb48
TT
94642014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9467 (target_goto_bookmark): Add argument.
9468 * target.c (dummy_goto_bookmark): Add 'self' argument.
9469 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9470
dd0e2830
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9474 (target_get_bookmark): Add argument.
9475 * target.c (dummy_get_bookmark): Add 'self' argument.
9476 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9477
fc6691b2
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9481 argument.
9482 (target_make_corefile_notes): Add argument.
9483 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9484 * procfs.c (procfs_make_note_section): Add 'self' argument.
9485 (procfs_make_note_section): Add 'self' argument.
9486 (procfs_make_note_section): Add 'self' argument.
9487 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9488 argument.
9489 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9490 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9491 * exec.c (exec_make_note_section): Add 'self' argument.
9492 (exec_make_note_section): Add 'self' argument.
9493
2e73927c
TT
94942014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_find_memory_regions>: Add
9497 argument.
9498 (target_find_memory_regions): Add argument.
9499 * target.c (dummy_find_memory_regions): Add 'self' argument.
9500 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9501 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9502 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9503 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9504 * exec. (exec_do_find_memory_regions): New global.
9505 (exec_set_find_memory_regions): Rewrite.
9506 (exec_find_memory_regions): New function.
9507 (init_exec_ops): Use exec_find_memory_regions.
9508
2a9a2795
TT
95092014-02-19 Tom Tromey <tromey@redhat.com>
9510
9511 * target.h (struct target_ops) <to_supports_non_stop>: Add
9512 argument.
9513 * target.c (find_default_supports_non_stop): Add argument.
9514 (target_supports_non_stop): Add argument.
9515 (find_default_supports_non_stop): Add 'self' argument.
9516 * remote.c (remote_supports_non_stop): Add 'self' argument.
9517 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9518
4ab76ea3
TT
95192014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target.h (struct target_ops) <to_log_command>: Add argument.
9522 (target_log_command): Add argument.
9523 * serial.h (serial_log_command): Add 'self' argument.
9524 * serial.c (serial_log_command): Add 'self' argument.
9525
8dd27370
TT
95262014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9529 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9530 argument.
9531 (target_pid_to_exec_file): Add argument.
9532 * target.c (debug_to_pid_to_exec_file): Add argument.
9533 (update_current_target): Update.
9534 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9535 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9536 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9537 (linux_handle_extended_wait): Update.
9538 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9539 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9540 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9541 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9542
1aac633b
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_rcmd>: Add argument.
9546 (target_rcmd): Add argument.
9547 * target.c (debug_to_rcmd): Add argument.
9548 (update_current_target, do_monitor_command): Update.
9549 * remote.c (remote_rcmd): Add 'self' argument.
9550 * monitor.c (monitor_rcmd): Add 'self' argument.
9551
1eab8a48
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * windows-nat.c (windows_stop): Add 'self' argument.
9555 * target.h (struct target_ops) <to_stop>: Add argument.
9556 * target.c (target_stop): Add argument.
9557 (debug_to_stop): Add argument.
9558 (update_current_target): Update.
9559 * remote.c (remote_stop): Add 'self' argument.
9560 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9561 (gdbsim_cntrl_c): Update.
9562 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9563 * procfs.c (procfs_stop): Add 'self' argument.
9564 * nto-procfs.c (procfs_stop): Add 'self' argument.
9565 * monitor.c (monitor_stop): Add 'self' argument.
9566 (monitor_open): Update.
9567 * linux-nat.c (linux_nat_stop): Add argument.
9568 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9569 * gnu-nat.c (gnu_stop): Add 'self' argument.
9570 * darwin-nat.c (darwin_stop): Add 'self' argument.
9571
503a628d
TT
95722014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target.h (struct target_ops) <to_thread_name>: Add argument.
9575 * target.c (target_thread_name): Add argument.
9576 (update_current_target): Update.
9577 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9578
c15906d8
TT
95792014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target.h (struct target_ops) <to_extra_thread_info>: Add
9582 argument.
9583 (target_extra_thread_info): Add argument.
9584 * target.c (update_current_target): Update.
9585 * remote.c (remote_threads_extra_info): Add 'self' argument.
9586 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9587 argument.
9588 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9589 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9590 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9591 argument.
9592 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9593 argument.
9594 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9595 argument.
9596 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9597 argument.
9598
daf5e9b6
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_program_signals>: Add argument.
9602 * target.c (target_program_signals): Add argument.
9603 * remote.c (remote_program_signals): Add 'self' argument.
9604
94bedb42
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9608 * target.c (target_pass_signals): Add argument.
9609 * remote.c (remote_pass_signals): Add 'self' argument.
9610 (remote_start_remote): Update.
9611 * procfs.c (procfs_pass_signals): Add 'self' argument.
9612 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9613 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9614 (linux_nat_create_inferior, linux_nat_attach): Update.
9615
da82bd6b
TT
96162014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * windows-nat.c (windows_can_run): Add 'self' argument.
9619 * target.h (struct target_ops) <to_can_run>: Add argument.
9620 (target_can_run): Add argument.
9621 * target.c (debug_to_can_run): Add argument.
9622 (update_current_target): Update.
9623 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9624 * inf-child.c (inf_child_can_run): Add 'self' argument.
9625 * go32-nat.c (go32_can_run): Add 'self' argument.
9626
d796e1d6
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_has_exited>: Add argument.
9630 (target_has_exited): Add argument.
9631 * target.c (debug_to_has_exited): Add argument.
9632 (update_current_target): Update.
9633
ff214e67
TT
96342014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9637 argument.
9638 (target_set_syscall_catchpoint): Add argument.
9639 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9640 argument.
9641 * target.c (update_current_target): Update.
9642
758e29d2
TT
96432014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9646 argument.
9647 (target_remove_exec_catchpoint): Add argument.
9648 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9649 (update_current_target): Update.
9650 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9651 argument.
9652
ba025e51
TT
96532014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9656 argument.
9657 (target_insert_exec_catchpoint): Add argument.
9658 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9659 (update_current_target): Update.
9660 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9661 argument.
9662
e98cf0cd
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9666 argument.
9667 (target_remove_vfork_catchpoint): Add argument.
9668 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9669 (update_current_target): Update.
9670 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9671 argument.
9672
3ecc7da0
TT
96732014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9676 argument.
9677 (target_insert_vfork_catchpoint): Add argument.
9678 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9679 (update_current_target): Update.
9680 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9681 argument.
9682
973fc227
TT
96832014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9686 argument.
9687 (target_remove_fork_catchpoint): Add argument.
9688 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9689 (update_current_target): Update.
9690 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9691 argument.
9692
a863b201
TT
96932014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9696 argument.
9697 (target_insert_fork_catchpoint): Add argument.
9698 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9699 (update_current_target): Update.
9700 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9701 argument.
9702
2e97a79e
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9706 argument.
9707 (target_post_startup_inferior): Add argument.
9708 * target.c (debug_to_post_startup_inferior): Add argument.
9709 (update_current_target): Update.
9710 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9711 argument.
9712 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9713 argument.
9714 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9715 argument.
9716 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9717 argument.
9718 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9719 'self' argument.
9720 (super_post_startup_inferior): Likewise.
9721 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9722 'self' argument.
9723 (super_post_startup_inferior): Likewise.
9724 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9725 Add 'self' argument.
9726 (super_post_startup_inferior): Likewise.
9727
71a9f134
TT
97282014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target.h (struct target_ops) <to_load>: Add argument.
9731 * target.c (target_load): Add argument.
9732 (debug_to_load): Add argument.
9733 (update_current_target): Update.
9734 * remote.c (remote_load): Add 'self' argument.
9735 * remote-sim.c (gdbsim_load): Add 'self' argument.
9736 * remote-mips.c (mips_load): Add 'self' argument.
9737 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9738 * monitor.c (monitor_load): Add 'self' argument.
9739 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9740
0a4f40a2
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9744 (target_terminal_info): Add argument.
9745 * target.c (debug_to_terminal_info): Add argument.
9746 (default_terminal_info): Likewise.
9747 * inflow.c (child_terminal_info): Add 'self' argument.
9748 * inferior.h (child_terminal_info): Add 'self' argument.
9749 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9750
ae3bd431
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9754 argument.
9755 (target_terminal_save_ours): Add argument.
9756 * target.c (debug_to_terminal_save_ours): Add argument.
9757 (update_current_target): Update.
9758 * inflow.c (terminal_save_ours): Add 'self' argument.
9759 * inferior.h (terminal_save_ours): Add 'self' argument.
9760
e3594fd1
TT
97612014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9764 (target_terminal_ours): Add argument.
9765 * target.c (debug_to_terminal_ours): Add argument.
9766 (update_current_target): Update.
9767 * remote.c (remote_terminal_ours): Add 'self' argument.
9768 (remote_close): Update.
9769 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9770 * inflow.c (terminal_ours): Add 'self' argument.
9771 * inferior.h (terminal_ours): Add 'self' argument.
9772 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9773
2e1e1a19
TT
97742014-02-19 Pedro Alves <palves@redhat.com>
9775 Tom Tromey <tromey@redhat.com>
9776
9777 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9778 argument.
9779 (target_terminal_ours_for_output): Add argument.
9780 * target.c (debug_to_terminal_ours_for_output): Add argument.
9781 (update_current_target): Update.
9782 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9783 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9784 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9785
d2f640d4
TT
97862014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (struct target_ops) <to_terminal_inferior>: Add
9789 argument.
9790 * target.c (target_terminal_inferior): Add argument.
9791 (update_current_target): Update.
9792 * remote.c (remote_terminal_inferior): Add 'self' argument.
9793 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9794 * inflow.c (terminal_inferior): Add 'self' argument.
9795 * inferior.h (terminal_inferior): Add 'self' argument.
9796 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9797 (go32_terminal_inferior): Add 'self' argument.
9798
c42bf286
TT
97992014-02-19 Tom Tromey <tromey@redhat.com>
9800
9801 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9802 (target_terminal_init): Add argument.
9803 * target.c (debug_to_terminal_init): Add argument.
9804 (update_current_target): Update.
9805 * inflow.c (terminal_init_inferior): Add 'self' argument.
9806 * inferior.h (terminal_init_inferior): Add 'self' argument.
9807 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9808 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9809
c3a5ff89
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target.h (struct target_ops)
9813 <to_can_accel_watchpoint_condition>: Add argument.
9814 (target_can_accel_watchpoint_condition): Add argument.
9815 * target.c (debug_to_can_accel_watchpoint_condition): Add
9816 argument.
9817 (update_current_target): Update.
9818 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9819 'self' argument.
9820
31568a15
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9824 Add argument.
9825 (target_region_ok_for_hw_watchpoint): Add argument.
9826 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9827 (default_region_ok_for_hw_watchpoint): Add argument.
9828 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9829 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9830 argument.
9831 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9832 argument.
9833 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9834 argument.
9835 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9836 'self' argument.
9837 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9838 'self' argument.
9839 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9840 'self' argument.
9841 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9842 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9843 'self' argument.
9844 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9845 Add 'self' argument.
9846
7bb99c53
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9850 argument.
9851 (target_insert_watchpoint): Add argument.
9852 * target.c (debug_to_insert_watchpoint): Add argument.
9853 (update_current_target): Update.
9854 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9855 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9856 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9857 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9858 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9859 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9860 argument.
9861 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9862 (procfs_insert_hw_watchpoint): Add 'self' argument.
9863 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9864 argument.
9865 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9866 argument.
9867 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9868 argument.
9869 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9870 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9871 argument.
9872 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9873 'self' argument.
9874
11b5219a
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9878 argument.
9879 (target_remove_watchpoint): Add argument.
9880 * target.c (debug_to_remove_watchpoint): Add argument.
9881 (update_current_target): Update.
9882 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9883 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9884 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9885 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9886 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9887 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9888 argument.
9889 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9890 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9891 argument.
9892 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9893 argument.
9894 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9895 argument.
9896 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9897 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9898 argument.
9899 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9900 'self' argument.
9901
a64dc96c
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9905 argument.
9906 (target_remove_hw_breakpoint): Add argument.
9907 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9908 (update_current_target): Update.
9909 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9910 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9911 argument.
9912 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9913 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9914 argument.
9915 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9916 'self' argument.
9917
23a26771
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9921 argument.
9922 (target_insert_hw_breakpoint): Add argument.
9923 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9924 (update_current_target): Update.
9925 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9926 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9927 argument.
9928 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9929 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9930 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9931 argument.
9932 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9933 'self' argument.
9934
5461485a
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9938 argument.
9939 (target_can_use_hardware_watchpoint): Add argument.
9940 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9941 (update_current_target): Update.
9942 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9943 argument.
9944 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9945 argument.
9946 * remote.c (remote_check_watch_resources): Add 'self' argument.
9947 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9948 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9949 argument.
9950 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9951 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9952 argument.
9953 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9954 argument.
9955 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9956 argument.
9957 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9958 argument.
9959 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9960 argument.
9961 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9962 argument.
9963 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9964 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9965 argument.
9966 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9967 'self' argument.
9968
f045800c
TT
99692014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target.h (struct target_ops) <to_post_attach>: Add argument.
9972 (target_post_attach): Add argument.
9973 * target.c (debug_to_post_attach): Add argument.
9974 (update_current_target): Update.
9975 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9976 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9977 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9978 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9979 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9980
de90e03d
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * windows-nat.c (windows_close): Add 'self' argument.
9984 * tracepoint.c (tfile_close): Add 'self' argument.
9985 * target.h (struct target_ops) <to_close>: Add argument.
9986 * target.c (target_close): Add argument.
9987 (update_current_target): Update.
9988 * remote.c (remote_close): Add 'self' argument.
9989 * remote-sim.c (gdbsim_close): Add 'self' argument.
9990 * remote-mips.c (mips_close): Add 'self' argument.
9991 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9992 * record-full.c (record_full_close): Add 'self' argument.
9993 * record-btrace.c (record_btrace_close): Add 'self' argument.
9994 * monitor.h (monitor_close): Add 'self' argument.
9995 * monitor.c (monitor_close): Add 'self' argument.
9996 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9997 * linux-nat.c (linux_nat_close): Add argument.
9998 * go32-nat.c (go32_close): Add 'self' argument.
9999 * exec.c (exec_close_1): Add 'self' argument.
10000 * ctf.c (ctf_close): Add 'self' argument.
10001 * corelow.c (core_close): Add 'self' argument.
10002 (core_close_cleanup): Update.
10003 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10004 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10005
9dd130a0
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * remote.c (remote_load): New function.
10009 (init_remote_ops): Use it.
10010
46917d26
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10014 argument.
10015 * common/linux-btrace.h (linux_supports_btrace): Update.
10016 * remote.c (remote_supports_btrace): Add "self" argument.
10017 * target-delegates.c: Rebuild.
10018 * target.c (target_supports_btrace): Remove.
10019 * target.h (struct target_ops) <to_supports_btrace>: Add
10020 target_ops argument.
10021 (target_supports_btrace): New define.
10022
6b84065d
TT
100232014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * record-full.c (record_full_beneath_to_resume_ops)
10026 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10027 (record_full_beneath_to_wait)
10028 (record_full_beneath_to_store_registers_ops)
10029 (record_full_beneath_to_store_registers)
10030 (record_full_beneath_to_xfer_partial_ops)
10031 (record_full_beneath_to_xfer_partial)
10032 (record_full_beneath_to_insert_breakpoint_ops)
10033 (record_full_beneath_to_insert_breakpoint)
10034 (record_full_beneath_to_remove_breakpoint_ops)
10035 (record_full_beneath_to_remove_breakpoint)
10036 (record_full_beneath_to_stopped_by_watchpoint)
10037 (record_full_beneath_to_stopped_data_address)
10038 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10039 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10040 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10041 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10042 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10043 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10044 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10045 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10046 (record_full_resume, record_full_wait_1)
10047 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10048 (record_full_store_registers, record_full_xfer_partial)
10049 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10050 (record_full_async, record_full_core_xfer_partial): Use target
10051 delegation.
10052 * target-delegates.c: Rebuild.
10053 * target.c (current_xfer_partial): Remove.
10054 (update_current_target): Do not INHERIT or de_fault
10055 to_insert_breakpoint, to_remove_breakpoint,
10056 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10057 to_is_async_p, to_async. Do not set to_xfer_partial field.
10058 (default_xfer_partial): Simplify.
10059 (current_xfer_partial): Remove.
10060 (target_wait, target_resume): Simplify.
10061 (find_default_can_async_p, find_default_is_async_p): Update.
10062 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10063 to_xfer_partial, to_stopped_by_watchpoint,
10064 to_stopped_data_address.
10065 (target_store_registers): Simplify.
10066 (forward_target_remove_breakpoint)
10067 (forward_target_insert_breakpoint): Remove.
10068 (target_remove_breakpoint, target_insert_breakpoint)
10069 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10070 * target.h (struct target_ops) <to_resume, to_wait,
10071 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10072 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10073 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10074 markup.
10075 (forward_target_remove_breakpoint)
10076 (forward_target_insert_breakpoint): Remove.
10077 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10078 directly.
10079 (record_btrace_insert_breakpoint): Delegate directly.
10080
1101cb7b
TT
100812014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 PR build/7701:
10084 * target-delegates.c: New file.
10085 * target.c: Include target-delegates.c.
10086 (init_dummy_target): Call install_dummy_methods.
10087 (complete_target_initialization): Call install_delegators.
10088 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10089 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10090 * make-target-delegates: New file.
10091
8b06beed
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * record.c (find_record_target): Use find_target_at.
10095 * target.c (find_target_at): New function.
10096 * target.h (find_target_at): Declare.
10097
6a109b6b
TT
100982014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10101 Add 'ops' argument.
10102 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10103 'ops' argument.
10104 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10105 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10106 'ops' argument.
10107 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10108 argument.
10109 * linux-nat.c (save_sigtrap): Update.
10110 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10111 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10112 (linux_nat_close): Update.
10113 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10114 argument.
10115 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10116 argument.
10117 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10118 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10119 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10120 (tmp_to_async): Add 'ops' argument.
10121 (record_full_stopped_by_watchpoint, record_full_async)
10122 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10123 argument.
10124 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10125 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10126 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10127 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10128 (remote_is_async_p, remote_async): Add 'ops' argument.
10129 (remote_stopped_data_address): Update.
10130 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10131 * target.c (update_current_target)
10132 (find_default_can_async_p, find_default_is_async_p): Update.
10133 (init_dummy_target): Update.
10134 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10135 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10136 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10137 (target_can_async_p, target_is_async_p, target_async)
10138 (target_stopped_by_watchpoint): Update.
10139
e095146b
YQ
101402014-02-19 Yao Qi <yao@codesourcery.com>
10141
10142 PR gdb/16220
10143 * gdbarch.sh: Remove startup_gdbarch.
10144 * gdbarch.c: Regenerated.
10145 * gdbarch.h: Likewise.
10146
bc3c6b36
KB
101472014-02-17 Kevin Buettner <kevinb@redhat.com>
10148
10149 * rl78-tdep.c (rl78_g10_register_name): New function.
10150 (rl78_return_value): Add g10 support.
10151 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10152 g10.
10153
98dc0167 101542014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10155
10156 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10157 (SUBDIR_GUILE_SRCS): Ditto.
10158 (scm-gsmob.o): Ditto.
10159
842c05cd
YQ
101602014-02-17 Yao Qi <yao@codesourcery.com>
10161
10162 * gnu-nat.c (ILL_RPC): Declare defined function.
10163
25c0bd04
YQ
101642014-02-17 Yao Qi <yao@codesourcery.com>
10165
10166 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10167 mach_msg_type_number_t.
10168 (gnu_write_inferior): Likewise.
10169
a9a758e3
YQ
101702014-02-17 Yao Qi <yao@codesourcery.com>
10171
10172 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10173 in format string.
10174 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10175 (inf_validate_procs, inf_signal): Likewise.
10176 (S_exception_raise_request): Likewise.
10177 (do_mach_notify_dead_name): Likewise.
10178 (steal_exc_port): Likewise.
10179 (gnu_read_inferior): Change 'copy_count''s type to
10180 mach_msg_type_number_t.
10181 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10182 format string.
10183
bae8023e
TS
101842014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10185
c82f56d9
TS
10186 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10187 flag. Adjust all users; in particular...
10188 (gnu_wait): ..., don't decrement its value in here...
10189 (gnu_create_inferior): ..., and instead set the flag in here,
10190 around the startup_inferior call, and call that one with
10191 START_INFERIOR_TRAPS_EXPECTED.
10192
3398af6a
TS
10193 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10194 (ILL_RPC): ... new macro.
10195 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10196 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10197 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10198 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10199 functions with ILL_RPC macro.
10200 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10201 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10202 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10203 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10204 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10205 (S_proc_getlogin_reply, S_proc_getsid_reply)
10206 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10207 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10208 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10209 (S_proc_getnports_reply, S_proc_is_important_reply)
10210 (S_proc_get_code_reply): New stub functions, generated with
10211 ILL_RPC macro.
10212
d47642c9
TS
10213 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10214 collected the type check structures.
10215
bae8023e
TS
10216 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10217
8a55ffb0
DE
102182014-02-14 Doug Evans <dje@google.com>
10219
10220 * target.c (target_write_partial): Fix result type.
10221
c2853f3d
JM
102222014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10223
10224 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10225 the proper offsets to access fpregset_t.
10226
ac61d2db
SA
102272014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10228
10229 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10230 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10231 * h8300-tdep.c (setmachinelist): Remove global.
10232 * hppa-tdep.c (hppa_sigtramp): Remove global.
10233 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10234 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10235 * ravenscar-thread.c (update_target_observer): Remove global.
10236 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10237
9d2d0b8b
TT
102382014-02-12 Tom Tromey <tromey@redhat.com>
10239
10240 * common/rsp-low.c: Update comments.
10241 * common/rsp-low.h: Update comments.
10242
a7191e8b
TT
102432014-02-12 Tom Tromey <tromey@redhat.com>
10244
10245 * common/rsp-low.c (convert_ascii_to_int): Remove.
10246 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10247
ff0e980e
TT
102482014-02-12 Tom Tromey <tromey@redhat.com>
10249
10250 * common/rsp-low.h (unhexify): Don't declare.
10251 * common/rsp-low.c (unhexify): Remove.
10252
e9371aff
TT
102532014-02-12 Tom Tromey <tromey@redhat.com>
10254
10255 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10256 * common/rsp-low.c (convert_int_to_ascii): Remove.
10257
971dc0b8
TT
102582014-02-12 Tom Tromey <tromey@redhat.com>
10259
10260 * common/rsp-low.h (hexify): Don't declare.
10261 * common/rsp-low.c (hexify): Remove.
10262
0a822afb
TT
102632014-02-12 Tom Tromey <tromey@redhat.com>
10264
10265 * common/rsp-low.c (hexify): Never take strlen of argument.
10266
9f1b45b0
TT
102672014-02-12 Tom Tromey <tromey@redhat.com>
10268
10269 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10270 * remote.c (extended_remote_run, remote_rcmd)
10271 (remote_download_trace_state_variable, remote_save_trace_data)
10272 (remote_set_trace_notes): Update.
10273 * tracepoint.c (encode_source_string, tfile_write_status)
10274 (tfile_write_uploaded_tsv): Update.
10275
9c3d6531
TT
102762014-02-12 Tom Tromey <tromey@redhat.com>
10277
10278 * tracepoint.c: Include rsp-low.h.
10279 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10280 * remote.c: Include rsp-low.h.
10281 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10282 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10283 (remote_unescape_input): Move to common/rsp-low.c.
10284 * common/rsp-low.h: New file.
10285 * common/rsp-low.c: New file.
10286 * Makefile.in (SFILES): Add common/rsp-low.c.
10287 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10288 (COMMON_OBS): Add rsp-low.o.
10289 (rsp-low.o): New target.
10290
01fd3ea5
TT
102912014-02-12 Tom Tromey <tromey@redhat.com>
10292
10293 * utils.h: Include print-utils.h.
10294 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10295 (int_string, core_addr_to_string, core_addr_to_string_nz)
10296 (hex_string, hex_string_custom): Don't declare.
10297 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10298 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10299 (hex_string_custom, int_string, core_addr_to_string)
10300 (core_addr_to_string_nz, host_address_to_string): Move to
10301 common/print-utils.c.
10302 * common/print-utils.h: New file.
10303 * common/print-utils.c: New file
10304 * Makefile.in (SFILES): Add common/print-utils.c.
10305 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10306 (COMMON_OBS): Add print-utils.o.
10307 (print-utils.o): New target.
10308
9fb50108
TT
103092014-02-12 Tom Tromey <tromey@redhat.com>
10310
10311 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10312
0548b5db
MK
103132014-02-12 Mark Kettenis <kettenis@gnu.org>
10314
10315 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10316
493443a4
MK
103172014-02-12 Mark Kettenis <kettenis@gnu.org>
10318
10319 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10320 if a PT_IO ptrace request returns sucessfully but indicates that 0
10321 bytes were transferred.
10322
706d0883
PA
103232014-02-12 Pedro Alves <palves@redhat.com>
10324 Kevin Buettner <kevinb@redhat.com>
10325
10326 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10327 TYPE_INSTANCE_FLAG_CODE_SPACE.
10328
5caa2f0b
PA
103292014-02-12 Pedro Alves <palves@redhat.com>
10330
10331 * h8300-tdep.c (pseudo_from_raw_register)
10332 (raw_from_pseudo_register): New functions.
10333 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10334 them.
10335
76fd5f74
PA
103362014-02-12 Pedro Alves <palves@redhat.com>
10337
10338 * h8300-tdep.c (h8300_register_sim_regno): New function.
10339 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10340 gdbarch_register_sim_regno hook.
10341
8f008406
SA
103422014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10343
10344 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10345
195abc10
SA
103462014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10347
10348 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10349
93ffa5b9
MK
103502014-02-12 Mark Kettenis <kettenis@gnu.org>
10351
10352 * obsd-tdep.h (obsd_init_abi): New prototype.
10353 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10354 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10355 (obsd_init_abi): New functions.
10356 * i386obsd-tdep.c: Include "obsd-tdep.h".
10357 (i386obsd_init_abi): Call obsd_init_abi.
10358 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10359 (amd64obsd_init_abi): Call obsd_init_abi.
10360 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10361 obsd-tdep.c to gdb_target_obs.
10362
49caec94
JM
103632014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10364
10365 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10366 double float arguments to 16-byte in the argument slots.
10367
e1402065
DE
103682014-02-11 Doug Evans <xdje42@gmail.com>
10369
10370 * configure.ac: Don't crash if pkg-config is not found and guile
10371 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10372 in guile checks.
10373 * configure: Regenerate.
10374
edcc890f
YQ
103752014-02-11 Yao Qi <yao@codesourcery.com>
10376
10377 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10378 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10379 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10380 * gnu-nat.c (gnu_xfer_memory): Likewise.
10381 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10382 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10383 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10384 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10385
9b409511
YQ
103862014-02-11 Yao Qi <yao@codesourcery.com>
10387
10388 * target.h (enum target_xfer_error): Rename to ...
10389 (enum target_xfer_status): ... it. New. All users updated.
10390 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10391 New.
10392 (TARGET_XFER_STATUS_ERROR_P): New macro.
10393 (target_xfer_error_to_string): Remove declaration.
10394 (target_xfer_status_to_string): Declare.
10395 (target_xfer_partial_ftype): Adjust it.
10396 (struct target_ops) <to_xfer_partial>: Return
10397 target_xfer_status. Add argument xfered_len. Update
10398 comments.
10399 * target.c (target_xfer_error_to_string): Rename to ...
10400 (target_xfer_status_to_string): ... it. New. All callers
10401 updated.
10402 (target_read_live_memory): Likewise. Call target_xfer_partial
10403 instead of target_read.
10404 (memory_xfer_live_readonly_partial): Return
10405 target_xfer_status. Add argument xfered_len.
10406 (raw_memory_xfer_partial): Likewise.
10407 (memory_xfer_partial_1): Likewise.
10408 (memory_xfer_partial): Likewise.
10409 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10410 properly. Update debug message.
10411 (default_xfer_partial, current_xfer_partial): Likewise.
10412 (target_write_partial): Likewise.
10413 (target_read_partial): Likewise. All callers updated.
10414 (read_whatever_is_readable): Likewise.
10415 (target_write_with_progress): Likewise.
10416 (target_read_alloc_1): Likewise.
10417
10418 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10419 * auxv.c (procfs_xfer_auxv): Likewise.
10420 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10421 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10422 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10423 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10424 * corefile.c (read_memory): Adjust.
10425 * corelow.c (core_xfer_partial): Likewise.
10426 * ctf.c (ctf_xfer_partial): Likewise.
10427 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10428 updated.
10429 (darwin_xfer_partial): Likewise.
10430 * exec.c (section_table_xfer_memory_partial): Likewise. All
10431 callers updated.
10432 (exec_xfer_partial): Likewise.
10433 * exec.h (section_table_xfer_memory_partial): Update
10434 declaration.
10435 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10436 negative.
10437 (gnu_xfer_partial): Likewise.
10438 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10439 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10440 (ia64_hpux_xfer_solib_got): Likewise.
10441 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10442 type of 'partial_len' to ULONGEST.
10443 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10444 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10445 (linux_nat_xfer_partial): Likewise.
10446 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10447 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10448 * monitor.c (monitor_xfer_memory): Likewise.
10449 (monitor_xfer_partial): Likewise.
10450 * procfs.c (procfs_xfer_partial): Likewise.
10451 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10452 * record-full.c (record_full_xfer_partial): Likewise.
10453 (record_full_core_xfer_partial): Likewise.
10454 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10455 (gdbsim_xfer_partial): Likewise.
10456 * remote.c (remote_write_bytes_aux): Likewise. All callers
10457 updated.
10458 (remote_write_bytes, remote_read_bytes): Likewise. All
10459 callers updated.
10460 (remote_flash_erase): Likewise. All callers updated.
10461 (remote_write_qxfer): Likewise. All callers updated.
10462 (remote_read_qxfer): Likewise. All callers updated.
10463 (remote_xfer_partial): Likewise.
10464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10465 (rs6000_xfer_shared_libraries): Likewise.
10466 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10467 (sol_thread_xfer_partial): Likewise.
10468 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10469 (sparc_xfer_partial): Likewise.
10470 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10471 updated.
10472 (spu_xfer_partial): Likewise.
10473 * spu-multiarch.c (spu_xfer_partial): Likewise.
10474 * tracepoint.c (tfile_xfer_partial): Likewise.
10475 * windows-nat.c (windows_xfer_memory): Likewise.
10476 (windows_xfer_shared_libraries): Likewise.
10477 (windows_xfer_partial): Likewise.
10478 * valprint.c: Replace 'target_xfer_error' with
10479 'target_xfer_status' in comments.
10480
a8e63083
JB
104812014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10482
10483 Checked in by Joel Brobecker <brobecker@adacore.com>.
10484 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10485
e86b67d3
JB
104862014-02-11 Joel Brobecker <brobecker@adacore.com>
10487
10488 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10489 function parameters.
10490
4b7d1f7f
WN
104912014-02-10 Will Newton <will.newton@linaro.org>
10492
10493 * elfread.c (elf_rel_plt_read): Look for a .got section if
10494 looking up .got.plt fails.
10495 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10496 on address passed to elf_gnu_ifunc_record_cache.
10497 (elf_gnu_ifunc_resolve_addr): Likewise.
10498 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10499
961842b2
JM
105002014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10501
10502 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10503 (X_RETTURN): New macro.
10504 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10505
10506 * sparc64-tdep.c (sparc64_init_abi): Hook
10507 sparc_in_function_epilogue_p.
10508
3f03e7b1
GB
105092014-02-10 Gary Benson <gbenson@redhat.com>
10510
10511 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10512 Rename name_matcher to symbol_matcher.
10513
96f861ef
GB
105142014-02-10 Gary Benson <gbenson@redhat.com>
10515
10516 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10517 Use expand_symtabs_file_matcher_ftype and
10518 expand_symtabs_symbol_matcher_ftype.
10519
ee01b665
JB
105202014-02-10 Joel Brobecker <brobecker@adacore.com>
10521
10522 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10523 (struct ada_symbol_cache): New.
10524 (ada_free_symbol_cache): Forward declare.
10525 (struct ada_pspace_data): New.
10526 (ada_pspace_data_handle): New static global.
10527 (get_ada_pspace_data, ada_pspace_data_cleanup)
10528 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10529 (cache_space, cache): Delete, now folded inside struct
10530 ada_pspace_data.
10531 (ada_get_symbol_cache): New function.
10532 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10533 implementation.
10534 (_initialize_ada_language): Remove initialization of cache_space.
10535 Move call to observer_attach_inferior_exit up, grouping it
10536 with the other observer registrations inside this function.
10537 Rename command to be more general. Add call to
10538 register_program_space_data_with_cleanup.
10539
143adbbf
JB
105402014-02-10 Joel Brobecker <brobecker@adacore.com>
10541
10542 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10543 ada_new_objfile_observer.
10544 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10545 (_initialize_tasks): Update uses of ada_new_objfile_observer
10546 and ada_tasks_normal_stop_observer.
10547
aa4fb036
JB
105482014-02-10 Joel Brobecker <brobecker@adacore.com>
10549
10550 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10551 returned by the 'Length attribute to integer.
10552
9dee8cc6
JB
105532014-02-10 Joel Brobecker <brobecker@adacore.com>
10554
10555 * ada-lang.c (_initialize_ada_language): Initialize
10556 cache_space obstack.
10557
3d9434b5
JB
105582014-02-10 Joel Brobecker <brobecker@adacore.com>
10559
10560 * ada-lang.c (HASH_SIZE): New macro.
10561 (struct cache_entry): New type.
10562 (cache_space, cache): New static globals.
10563 (ada_clear_symbol_cache, find_entry): New functions.
10564 (lookup_cached_symbol, cache_symbol): Implement.
10565 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10566 (_initialize_ada_language): Attach ada_new_objfile_observer
10567 and ada_free_objfile_observer.
10568
f0c5f9b2
JB
105692014-02-10 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10572 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10573 struct block * parameter.
10574 (ada_lookup_symbol_list_worker): Constify local variable "block".
10575 Remove cast which is no longer necessary.
10576
ed3ef339
DE
105772014-02-10 Doug Evans <xdje42@gmail.com>
10578
10579 Add Guile as an extension language.
10580 * NEWS: Mention Guile scripting.
10581 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10582 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10583 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10584 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10585 (CLIBS): Add GUILE_LIBS.
10586 (install-guile): New rule.
10587 (guile.o): New rule.
10588 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10589 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10590 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10591 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10592 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10593 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10594 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10595 * configure.ac: New option --with-guile.
10596 * configure: Regenerate.
10597 * config.in: Regenerate.
10598 * auto-load.c: Remove #include "python/python.h". Add #include
10599 "gdb/section-scripts.h".
10600 (source_section_scripts): Handle Guile scripts.
10601 (_initialize_auto_load): Add name of Guile objfile script to
10602 scripts-directory help text.
10603 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10604 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10605 (struct breakpoint): New member scm_bp_object.
10606 * defs.h (enum command_control_type): New value guile_control.
10607 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10608 "extension.h".
10609 (show_user): Update comment.
10610 (_initialize_cli_cmds): Update help text for "show user". Update help
10611 text for max-user-call-depth.
10612 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10613 "extension.h".
10614 (multi_line_command_p): Add guile_control.
10615 (print_command_lines): Handle guile_control.
10616 (execute_control_command, recurse_read_control_structure): Ditto.
10617 (process_next_line): Recognize "guile" commands.
10618 * disasm.c (gdb_disassemble_info): Make non-static.
10619 * disasm.h: #include "dis-asm.h".
10620 (struct gdbarch): Add forward decl.
10621 (gdb_disassemble_info): Declare.
10622 * extension.c: #include "guile/guile.h".
10623 (extension_languages): Add guile.
10624 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10625 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10626 * gdbtypes.c (get_unsigned_type_max): New function.
10627 (get_signed_type_minmax): New function.
10628 * gdbtypes.h (get_unsigned_type_max): Declare.
10629 (get_signed_type_minmax): Declare.
10630 * guile/README: New file.
10631 * guile/guile-internal.h: New file.
10632 * guile/guile.c: New file.
10633 * guile/guile.h: New file.
10634 * guile/scm-arch.c: New file.
10635 * guile/scm-auto-load.c: New file.
10636 * guile/scm-block.c: New file.
10637 * guile/scm-breakpoint.c: New file.
10638 * guile/scm-disasm.c: New file.
10639 * guile/scm-exception.c: New file.
10640 * guile/scm-frame.c: New file.
10641 * guile/scm-gsmob.c: New file.
10642 * guile/scm-iterator.c: New file.
10643 * guile/scm-lazy-string.c: New file.
10644 * guile/scm-math.c: New file.
10645 * guile/scm-objfile.c: New file.
10646 * guile/scm-ports.c: New file.
10647 * guile/scm-pretty-print.c: New file.
10648 * guile/scm-safe-call.c: New file.
10649 * guile/scm-string.c: New file.
10650 * guile/scm-symbol.c: New file.
10651 * guile/scm-symtab.c: New file.
10652 * guile/scm-type.c: New file.
10653 * guile/scm-utils.c: New file.
10654 * guile/scm-value.c: New file.
10655 * guile/lib/gdb.scm: New file.
10656 * guile/lib/gdb/boot.scm: New file.
10657 * guile/lib/gdb/experimental.scm: New file.
10658 * guile/lib/gdb/init.scm: New file.
10659 * guile/lib/gdb/iterator.scm: New file.
10660 * guile/lib/gdb/printing.scm: New file.
10661 * guile/lib/gdb/types.scm: New file.
10662 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10663 (VPATH): Add $(GUILE_SRCDIR).
10664 (GUILE_DIR): New variable.
10665 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10666 (all): Add stamp-guile dependency.
10667 (stamp-guile): New rule.
10668 (clean-guile, install-guile, uninstall-guile): New rules.
10669 (install-only): Add install-guile dependency.
10670 (uninstall): Add uninstall-guile dependency.
10671 (clean): Add clean-guile dependency.
10672
ac020ec5
DE
106732014-02-09 Doug Evans <xdje42@gmail.com>
10674
10675 Revert this patch (which I approved, mea culpa).
10676
10677 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10678
10679 * Makefile.in (all-lib): Remove.
10680 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10681
2a081c59
JK
106822014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10683
10684 Fix Python stack corruption.
10685 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10686 gdb_py_longest.
10687
0a6bd22d
MK
106882014-02-08 Mark Kettenis <kettenis@gnu.org>
10689
10690 * Makefile.in (all-lib): Remove.
10691 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10692
1a860409
DE
106932014-02-07 Doug Evans <dje@google.com>
10694
10695 * extension-priv.h (extension_language_script_ops): Add comment.
10696 (extension_language_ops): Add comment.
caf5a491 10697 (active_ext_lang_state): Fix typo in comment.
1a860409 10698
d137e6dc
PA
106992014-02-07 Pedro Alves <palves@redhat.com>
10700
0dcb32c3 10701 PR breakpoints/16292
d137e6dc
PA
10702 * infrun.c (handle_signal_stop) <signal arrives while stepping
10703 over a breakpoint>: Switch back to the stepping thread.
10704
ce6d0892
YQ
107052014-02-07 Yao Qi <yao@codesourcery.com>
10706
10707 * target.c (target_xfer_partial): Return zero if LEN is zero.
10708
2ed4b548
YQ
107092014-02-07 Yao Qi <yao@codesourcery.com>
10710
10711 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10712 (ld_so_xfer_auxv): Likewise.
10713 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10714 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10715 * corelow.c (core_xfer_partial): Likewise.
10716 * ctf.c (ctf_xfer_partial): Likewise.
10717 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10718 (darwin_xfer_partial): Likewise.
10719 * exec.c (exec_xfer_partial): Likewise.
10720 * gnu-nat.c (gnu_xfer_partial): Likewise.
10721 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10722 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10724 * linux-nat.c (linux_xfer_siginfo): Likewise.
10725 (linux_proc_xfer_spu): Likewise.
10726 * procfs.c (procfs_xfer_partial): Likewise.
10727 * record-full.c (record_full_xfer_partial): Likewise.
10728 (record_full_core_xfer_partial): Likewise.
10729 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10730 * remote.c (remote_write_qxfer): Likewise.
10731 (remote_write_qxfer, remote_read_qxfer): Likewise.
10732 (remote_xfer_partial): Likewise.
10733 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10734 (rs6000_xfer_shared_libraries): Likewise.
10735 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10737 (spu_xfer_partial): Likewise.
10738 * target.c (memory_xfer_partial_1): Likewise.
10739 * tracepoint.c (tfile_xfer_partial): Likewise.
10740 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10741 (windows_xfer_partial): Likewise.
10742
c09f20e4
YQ
107432014-02-07 Yao Qi <yao@codesourcery.com>
10744
10745 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10746 comments.
10747 (core_xfer_shared_libraries_aix): Likewise.
10748 * gdbarch.c, gdbarch.h: Regenerated.
10749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10750 ULONGEST. Change 'len_avail' type to ULONGEST.
10751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10752 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10753 declaration.
10754 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10755
8635b3bf
YQ
107562014-02-07 Yao Qi <yao@codesourcery.com>
10757
10758 * corefile.c (memory_error): Get 'exception' from ERR and pass
10759 'exception' to throw_error.
10760
6dddc817
DE
107612014-02-06 Doug Evans <xdje42@gmail.com>
10762
10763 * configure.ac (libpython checking): Remove all but python.o from
10764 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10765 * configure: Regenerate.
10766
10767 * Makefile.in (SFILES): Add extension.c.
10768 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10769 (COMMON_OBS): Add extension.o.
10770 * extension.h: New file.
10771 * extension-priv.h: New file.
10772 * extension.c: New file.
10773
10774 * python/python-internal.h: #include "extension.h".
10775 (gdbpy_auto_load_enabled): Declare.
10776 (gdbpy_apply_val_pretty_printer): Declare.
10777 (gdbpy_apply_frame_filter): Declare.
10778 (gdbpy_preserve_values): Declare.
10779 (gdbpy_breakpoint_cond_says_stop): Declare.
10780 (gdbpy_breakpoint_has_cond): Declare.
10781 (void source_python_script_for_objfile): Delete.
10782 * python/python.c: #include "extension-priv.h".
10783 Delete inclusion of "observer.h".
10784 (extension_language_python): Moved here and renamed from
10785 script_language_python in py-auto-load.c.
10786 Redefined to be of type extension_language_defn.
10787 (python_extension_script_ops): New global.
10788 (python_extension_ops): New global.
10789 (struct python_env): New member previous_active.
10790 (restore_python_env): Call restore_active_ext_lang.
10791 (ensure_python_env): Call set_active_ext_lang.
10792 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10793 New arg extlang.
10794 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10795 New arg extlang.
10796 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10797 New arg extlang.
10798 (gdbpy_eval_from_control_command): Renamed from
10799 eval_python_from_control_command, made static. New arg extlang.
10800 (gdbpy_source_script) Renamed from source_python_script, made static.
10801 New arg extlang.
10802 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10803 result to int. New arg extlang.
10804 (gdbpy_source_objfile_script): Renamed from
10805 source_python_script_for_objfile, made static. New arg extlang.
10806 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10807 static. New args extlang, extlang_printers. Change result type to
10808 "void".
10809 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10810 static. New arg extlang. Rename arg printers to extlang_printers
10811 and change type to ext_lang_type_printers *.
10812 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10813 static. Replace argument arg with extlang, extlang_printers.
10814 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10815 (!HAVE_PYTHON, source_python_script): Delete.
10816 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10817 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10818 (!HAVE_PYTHON, start_type_printers): Delete.
10819 (!HAVE_PYTHON, apply_type_printers): Delete.
10820 (!HAVE_PYTHON, free_type_printers): Delete.
10821 (_initialize_python): Delete call to observer_attach_before_prompt.
10822 (finalize_python): Set/restore active extension language.
10823 (gdbpy_finish_initialization) Renamed from
10824 finish_python_initialization, made static. New arg extlang.
10825 (gdbpy_initialized): New function.
10826 * python/python.h: #include "extension.h". Delete #include
10827 "value.h", "mi/mi-cmds.h".
10828 (extension_language_python): Declare.
10829 (GDBPY_AUTO_FILE_NAME): Delete.
10830 (enum py_bt_status): Moved to extension.h and renamed to
10831 ext_lang_bt_status.
10832 (enum frame_filter_flags): Moved to extension.h.
10833 (enum py_frame_args): Moved to extension.h and renamed to
10834 ext_lang_frame_args.
10835 (finish_python_initialization): Delete.
10836 (eval_python_from_control_command): Delete.
10837 (source_python_script): Delete.
10838 (apply_val_pretty_printer): Delete.
10839 (apply_frame_filter): Delete.
10840 (preserve_python_values): Delete.
10841 (gdbpy_script_language_defn): Delete.
10842 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10843 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10844
10845 * auto-load.c: #include "extension.h".
10846 (GDB_AUTO_FILE_NAME): Delete.
10847 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10848 (script_language_gdb): Delete, moved to extension.c and renamed to
10849 extension_language_gdb.
10850 (source_gdb_script_for_objfile): Delete.
10851 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10852 (loaded_script): Change type of language member to
10853 struct extension_language_defn *.
10854 (init_loaded_scripts_info): Initialize
10855 unsupported_script_warning_printed.
10856 (maybe_add_script): Make static. Change type of language arg to
10857 struct extension_language_defn *.
10858 (clear_section_scripts): Reset unsupported_script_warning_printed.
10859 (auto_load_objfile_script_1): Rewrite to use extension language API.
10860 (auto_load_objfile_script): Make public. Remove support-compiled-in
10861 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10862 (source_section_scripts): Rewrite to use extension language API.
10863 (load_auto_scripts_for_objfile): Rewrite to use
10864 auto_load_scripts_for_objfile.
10865 (collect_matching_scripts_data): Change type of language member to
10866 struct extension_language_defn *.
10867 (auto_load_info_scripts): Change type of language arg to
10868 struct extension_language_defn *.
10869 (unsupported_script_warning_print): New function.
10870 (script_not_found_warning_print): Make static.
10871 (_initialize_auto_load): Rewrite construction of scripts-directory
10872 help.
10873 * auto-load.h (struct objfile): Add forward decl.
10874 (struct script_language): Delete.
10875 (struct auto_load_pspace_info): Add forward decl.
10876 (struct extension_language_defn): Add forward decl.
10877 (maybe_add_script): Delete.
10878 (auto_load_objfile_script): Declare.
10879 (script_not_found_warning_print): Delete.
10880 (auto_load_info_scripts): Update prototype.
10881 (auto_load_gdb_scripts_enabled): Declare.
10882 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10883 auto_load_python_scripts_enabled and made public.
10884 (script_language_python): Delete, moved to python.c.
10885 (gdbpy_script_language_defn): Delete.
10886 (info_auto_load_python_scripts): Update to use
10887 extension_language_python.
10888
10889 * breakpoint.c (condition_command): Replace call to
10890 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10891 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10892 with call to breakpoint_ext_lang_cond_says_stop.
10893 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10894 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10895 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10896 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10897 New arg slang.
10898 (local_setattro): Print name of extension language with existing
10899 stop condition.
10900
10901 * valprint.c (val_print, value_print): Update to call
10902 apply_ext_lang_val_pretty_printer.
10903 * cp-valprint.c (cp_print_value): Update call to
10904 apply_ext_lang_val_pretty_printer.
10905 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10906 (gdbpy_apply_val_pretty_printer): Renamed from
10907 apply_val_pretty_printer. New arg extlang.
10908 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10909
10910 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10911 extension language API.
10912 * cli/cli-script.c (execute_control_command): Update to call
10913 eval_ext_lang_from_control_command.
10914
10915 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10916 enum ext_lang_bt_status values. Update call to
10917 apply_ext_lang_frame_filter.
10918 (mi_cmd_stack_list_locals): Ditto.
10919 (mi_cmd_stack_list_args): Ditto.
10920 (mi_cmd_stack_list_variables): Ditto.
10921 * mi/mi-main.c: Delete #include "python/python-internal.h".
10922 Add #include "extension.h".
10923 (mi_cmd_list_features): Replace reference to python internal variable
10924 gdb_python_initialized with call to ext_lang_initialized_p.
10925
10926 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10927 Update to use enum ext_lang_frame_args. Update to call
10928 apply_ext_lang_frame_filter.
10929 * python/py-framefilter.c (extract_sym): Update to use enum
10930 ext_lang_bt_status.
10931 (extract_value, py_print_type, py_print_value): Ditto.
10932 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10933 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10934 (py_print_frame): Ditto.
10935 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10936 New arg extlang. Update to use enum ext_lang_bt_status.
10937
10938 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10939 finish_python_initialization. Replace with call to
10940 finish_ext_lang_initialization.
10941
10942 * typeprint.c (do_free_global_table): Update to call
10943 free_ext_lang_type_printers.
10944 (create_global_typedef_table): Update to call
10945 start_ext_lang_type_printers.
10946 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10947 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10948 (type_print_options): Change type of global_printers from "void *"
10949 to "struct ext_lang_type_printers *".
10950
10951 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10952 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10953 (gdbpy_preserve_values): Renamed from preserve_python_values.
10954 New arg extlang.
10955 (!HAVE_PYTHON, preserve_python_values): Delete.
10956
10957 * utils.c (quit_flag): Delete, moved to extension.c.
10958 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10959 extension.c.
10960
10961 * eval.c: Delete #include "python/python.h".
10962 * main.c: Delete #include "python/python.h".
10963
10964 * defs.h: Update comment.
10965
6af79985
JB
109662014-02-06 Joel Brobecker <brobecker@adacore.com>
10967
10968 GDB 7.7 released.
10969
12c5175d
MK
109702014-02-05 Mark Kettenis <kettenis@gnu.org>
10971
10972 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10973 defined.
10974
8dc5b319
YQ
109752014-02-05 Yao Qi <yao@codesourcery.com>
10976
10977 * remote.c (remote_pass_signals): Remove local 'buf' and use
10978 rs->buf.
10979 (remote_program_signals): Likewise.
10980
de7b2893
YQ
109812014-02-05 Yao Qi <yao@codesourcery.com>
10982
10983 * ctf.c: Include "inferior.h" and "gdbthread.h".
10984 (CTF_PID): A new macro.
10985 (ctf_open): Call inferior_appeared and add_thread_silent.
10986 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10987 (ctf_thread_alive): New function.
10988 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10989
66d032ac
YQ
109902014-02-05 Yao Qi <yao@codesourcery.com>
10991
10992 Revert this patch:
10993
10994 2013-05-24 Yao Qi <yao@codesourcery.com>
10995
10996 * tracepoint.c (TFILE_PID): Remove.
10997 (tfile_open): Don't add thread and inferior.
10998 (tfile_close): Don't set 'inferior_ptid'. Don't call
10999 exit_inferior_silent.
11000 (tfile_thread_alive): Remove.
11001 (init_tfile_ops): Don't set field 'to_thread_alive' of
11002 tfile_ops.
11003
f4ccffad
CE
110042014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11005
11006 * remote.c (remote_start_remote): Call remote_check_symbols even
11007 if only symbol-file (not file) has been given.
11008
591a12a1
UW
110092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11010
11011 * gdbarch.sh (skip_entrypoint): New callback.
11012 * gdbarch.c, gdbarch.h: Regenerate.
11013 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11014 * infrun.c (fill_in_stop_func): Likewise.
11015 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11016 (ppc_elfv2_elf_make_msymbol_special): New function.
11017 (ppc_elfv2_skip_entrypoint): Likewise.
11018 (ppc_linux_init_abi): Install them for ELFv2.
11019
cc0e89c5
UW
110202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11021
11022 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11023 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11024 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11025 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11026 structures returned in GPRs.
11027
52f548e4
UW
110282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11029
11030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11031 offset to the stack parameter list for the ELFv2 ABI.
11032
d4094b6a
UW
110332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11034
11035 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11036 set_gdbarch_convert_from_func_ptr_addr and
11037 set_gdbarch_elf_make_msymbol_special for ELFv1.
11038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11039 function descriptors on ELFv1.
11040 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11041 set up r12 at function entry.
11042
cd453cd0
UW
110432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11044
11045 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11046 (struct gdbarch_tdep): New member elf_abi.
11047
11048 * rs6000-tdep.c: Include "elf/ppc64.h".
11049 (rs6000_gdbarch_init): Detect ELF ABI version.
11050
0ff3e01f
UW
110512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11052
11053 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11054 within a register pair holding a DFP 128-bit value on little-endian.
11055 (ppc64_sysv_abi_return_value_base): Likewise.
11056 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11057 (dfp_pseudo_register_write): Likewise.
11058
5b757e5d
UW
110592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11060
11061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11062 offset on little-endian when passing _Decimal32.
11063 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11064
084ee545
UW
110652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11066
11067 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11068 of the overlapped FP register within the VSX register on little-
11069 endian platforms.
11070 (efpr_pseudo_register_write): Likewise.
11071
d63167af
UW
110722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11073
11074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11075 offset on little-endian when passing small structures.
11076
e765b44c
UW
110772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11078
11079 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11080 (struct ppc64_sysv_argpos): New data structure.
11081 (ppc64_sysv_abi_push_float): Remove.
11082 (ppc64_sysv_abi_push_val): New function.
11083 (ppc64_sysv_abi_push_integer): Likewise.
11084 (ppc64_sysv_abi_push_freg): Likewise.
11085 (ppc64_sysv_abi_push_vreg): Likewise.
11086 (ppc64_sysv_abi_push_param): Likewise.
11087 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11088 (ppc64_sysv_abi_return_value_base): New function.
11089 (ppc64_sysv_abi_return_value): Refactor to use it.
11090
36c24d95
UW
110912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11092
11093 * NEWS: Document new target powerpc64le-*-linux*.
11094
26fd9228
MK
110952014-02-04 Mark Kettenis <kettenis@gnu.org>
11096
11097 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11098 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11099 core dumps.
11100 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11101 register set used in ELF core dumps. Add floating-point register set.
11102
c5bb7362
KB
111032014-02-03 Kevin Buettner <kevinb@redhat.com>
11104
74228e77 11105 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11106 dwarf2_to_gdb[] table using symbolic constants. Adjust
11107 penultimate entry from number representing the PC register
11108 to symbolic constant representing the MDR register. Add
11109 constant for the PC register to the end of the table.
11110
af09351e
MK
111112014-02-03 Mark Kettenis <kettenis@gnu.org>
11112
11113 * bsd-kvm.c: Include <sys/param.h>
11114
8507e05d
MK
111152014-02-03 Mark Kettenis <kettenis@gnu.org>
11116
11117 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11118
ae56bfb8
JB
111192014-01-31 Joel Brobecker <brobecker@adacore.com>
11120
11121 * ada-lang.h (clear_ada_sym_cache): Delete.
11122
718ee4dc
UW
111232014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11124
11125 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11126
401e27fd
JM
111272014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11128
11129 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11130 the sigreturn register save area only if the syscall is
11131 sigreturn.
11132
a7c88acd
JB
111332014-01-29 Joel Brobecker <brobecker@adacore.com>
11134
11135 * valops.c (value_slice): Minor reformatting.
11136
fa0079ea
UW
111372014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11138
11139 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11140
c6044dd1
JB
111412014-01-28 Joel Brobecker <brobecker@adacore.com>
11142
11143 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11144 New static globals.
11145 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11146 (ada_ignore_descriptive_types_p): New static global.
11147 (find_parallel_type_by_descriptive_type): Return immediately
11148 if ada_ignore_descriptive_types_p is set.
11149 (_initialize_ada_language): Register new commands "maintenance
11150 set ada", "maintenance show ada", "maintenance set ada
11151 ignore-descriptive-types" and "maintenance show ada
11152 ignore-descriptive-types".
11153 * NEWS: Add entry for new "maint ada set/show
11154 ignore-descriptive-types" commands.
11155
568e808b
MM
111562014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11157
11158 * record-btrace.c (record_btrace_close): Call btrace_teardown
11159 for all threads.
11160
467d141b
JB
111612014-01-27 Joel Brobecker <brobecker@adacore.com>
11162
11163 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11164 "ui-out.h".
11165
fb151210
JB
111662014-01-27 Joel Brobecker <brobecker@adacore.com>
11167
11168 * ada-typeprint (type_is_full_subrange_of_target_type):
11169 New function.
11170 (print_range): Add parameter bounds_prefered_p. If not set,
11171 try printing range types using the name of their base type.
11172 (print_range_type): Add parameter bounds_prefered_p.
11173 Use it in call to print_range.
11174 (print_array_type, ada_print_type): Update calls to print_range
11175 and print_range_type.
11176
aba02109
JB
111772014-01-27 Joel Brobecker <brobecker@adacore.com>
11178
11179 * ada-typeprint.c (print_array_type, print_choices, print_range)
11180 (print_range_bound, print_dynamic_range_bound, print_range_type):
11181 Remove declaration.
11182
e62e21fd
JB
111832014-01-27 Joel Brobecker <brobecker@adacore.com>
11184
11185 * ada-typeprint.c (print_range): Add missing empty line
11186 after local declaration.
11187
859cf5d1
JB
111882014-01-27 Joel Brobecker <brobecker@adacore.com>
11189
11190 * ada-valprint.c (print_optional_low_bound): Get index_type's
11191 target type for as long as it is a TYPE_CODE_RANGE.
11192
25790f6f
JB
111932014-01-27 Joel Brobecker <brobecker@adacore.com>
11194
11195 * procfs.c (procfs_make_note_section): Remove assertion and
11196 associated comment.
11197
6b6aa828
YQ
111982014-01-24 Yao Qi <yao@codesourcery.com>
11199
11200 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11201 * corelow.c (get_core_siginfo): Likewise.
11202
5d6df423
YQ
112032014-01-24 Yao Qi <yao@codesourcery.com>
11204
11205 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11206 ULONGEST. Don't check 'len' is negative.
11207 (remote_write_bytes): Change type of 'len' to ULONGEST.
11208
83b645b8
TT
112092014-01-23 Tom Tromey <tromey@redhat.com>
11210
11211 PR python/16485:
11212 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11213 Handle exception from frame.block.
11214 (FrameVars.fetch_frame_locals): Likewise.
11215
0740f8d8
TT
112162014-01-23 Tom Tromey <tromey@redhat.com>
11217
11218 PR python/16487:
11219 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11220 on a NULL pointer. Move "goto error" to correct place.
11221
21909fa1
TT
112222014-01-23 Tom Tromey <tromey@redhat.com>
11223
11224 PR python/16491:
11225 * python/py-framefilter.c (apply_frame_filter): Call
11226 ensure_python_env after computing gdbarch.
11227
17fde6d0
YQ
112282014-01-23 Yao Qi <yao@codesourcery.com>
11229
11230 * target.c (raw_memory_xfer_partial): Change argument type
11231 from void * to gdb_byte *.
11232 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11233
87ce2a04
DE
112342014-01-22 Doug Evans <dje@google.com>
11235
11236 New gdbserver option --debug-format=timestamp.
11237 * NEWS: Mention it.
11238
237b092b
AA
112392014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11240
11241 * syscalls/s390x-linux.xml: New file.
11242 * syscalls/s390-linux.xml: New file.
11243 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11244 (XML_SYSCALL_FILENAME_S390X): Likewise.
11245 (op_svc): New enum value for SVC opcode.
11246 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11247 (s390_linux_get_syscall_number): New function.
11248 (s390_gdbarch_init): Register '*get_syscall_number' and the
11249 syscall xml file name.
11250 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11251 "s390-linux.xml" and "s390x-linux.xml".
11252 * NEWS: Announce new feature.
11253
54bff650
BS
112542014-01-22 Baruch Siach <baruch@tkos.co.il>
11255
11256 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11257
14e361d7
PA
112582014-01-22 Pedro Alves <palves@redhat.com>
11259
11260 * xtensa-config.c: Include defs.h.
11261
46bbb3ed
JB
112622014-01-22 Joel Brobecker <brobecker@adacore.com>
11263
11264 * common/common-utils.h: Add "ARI:" comment beside __func__
11265 reference.
11266
3a80edfc
JB
112672014-01-22 Joel Brobecker <brobecker@adacore.com>
11268
11269 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11270 documentation a bit.
11271
4869db5e
RM
112722014-01-21 Roland McGrath <mcgrathr@google.com>
11273
11274 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11275 * configure: Regenerate.
11276 * aclocal.m4: Regenerate.
11277 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11278 New substituted variables.
11279 (install-strip): New target.
11280 (INSTALL_SCRIPT): New substituted variable.
11281 (FLAGS_TO_PASS): Add it.
11282 (install-only): Use $(INSTALL_SCRIPT) rather than
11283 $(INSTALL_PROGRAM) for gcore.
11284
9ea4267d
TT
112852014-01-20 Tom Tromey <tromey@redhat.com>
11286
11287 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11288 together.
11289
1f2bdf09
TT
112902014-01-20 Tom Tromey <tromey@redhat.com>
11291
11292 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11293 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11294 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11295 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11296 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11297 (struct cmd_list_element) <flags>: Remove.
11298 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11299 doc_allocated>: New fields.
11300 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11301 bitfields.
11302 * maint.c (maintenance_do_deprecate): Update.
11303 * top.c (execute_command): Update.
11304
e671835b
BS
113052014-01-20 Baruch Siach <baruch@tkos.co.il>
11306
11307 * xtensa-linux-nat.c: Include asm/ptrace.h.
11308
50367cd2
IB
113092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11310
11311 * Makefile.in (SFILES): Add d-support.c.
11312 (COMMON_OBS): Add d-support.o.
11313 * d-lang.h (d_parse_symbol): Add comment, now defined in
11314 d-support.c.
11315 * d-lang.c (parse_call_convention)
11316 (parse_attributes, parse_function_types)
11317 (parse_function_args, parse_type, parse_identifier)
11318 (call_convention_p, d_parse_symbol): Move functions to ...
11319 * d-support.c: ... New file.
11320
ec9f644a
IB
113212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11322
11323 * d-lang.h (d_parse_symbol): Add declaration.
11324 * d-lang.c (extract_identifiers)
11325 (extract_type_info): Remove functions.
11326 (parse_call_convention, parse_attributes)
11327 (parse_function_types, parse_function_args)
11328 (parse_type, parse_identifier, call_convention_p)
11329 (d_parse_symbol): New functions.
11330 (d_demangle): Use d_parse_symbol to demangle D symbols.
11331
94b1b47e
IB
113322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11333
11334 * d-lang.h (struct builtin_d_type): New data type.
11335 (builtin_d_type): Add declaration.
11336 * d-lang.c (d_language_arch_info, build_d_types)
11337 (builtin_d_type): New functions.
11338 (enum d_primitive_types): New data type.
11339 (d_language_defn): Change c_language_arch_info to
11340 d_language_arch_info.
11341 (d_type_data): New static variable.
11342 (_initialize_d_language): Initialize d_type_data.
11343
63778547
IB
113442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11345
11346 * d-lang.h (d_main_name): Add declaration.
11347 * d-lang.c (d_main_name): New function.
11348 * symtab.c (find_main_name): Add call to d_main_name.
11349
3271ba66
IB
113502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11351
11352 * d-lang.c (d_language_defn): Change macro_expansion_c to
11353 macro_expansion_no.
11354
d36b3012
IB
113552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11356
11357 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11358
c90a6fb7
SDJ
113592014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11360
11361 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11362 gdb_exception" declaration.
11363 * remote.c (getpkt_or_notif_sane): Likewise.
11364
749234e5
DE
113652014-01-17 Doug Evans <dje@google.com>
11366
11367 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11368 function, contents of dirnames_to_char_ptr_vec_append moved here.
11369 (delim_string_to_char_ptr_vec): New function.
11370 (dirnames_to_char_ptr_vec_append): Rewrite.
11371 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11372
df049a58
DE
113732014-01-17 Doug Evans <dje@google.com>
11374
11375 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11376 and moved here ...
11377 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11378 #include "common-utils.h".
11379 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11380 * common/vec.h (VEC_ASSERT_PASS): Update.
11381 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11382 (MACH_CHECK_ERROR): Update.
11383
69f97648
SM
113842014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11385
11386 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11387 comments.
11388 * gdbarch.h: Regenerate.
11389
98b1cfdc
TT
113902014-01-16 Tom Tromey <tromey@redhat.com>
11391
11392 * value.c (struct value) <regnum>: Move earlier.
11393
77a19445
TT
113942014-01-16 Tom Tromey <tromey@redhat.com>
11395
11396 * remote.c (extended_remote_create_inferior): Rename from
11397 extended_remote_create_inferior_1. Add "ops" argument. Remove
11398 old implementation.
11399
62261490
PA
114002014-01-16 Pedro Alves <palves@redhat.com>
11401
11402 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11403 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11404 the backchain.
11405
4d65956b
DE
114062014-01-16 Doug Evans <dje@google.com>
11407
11408 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11409
52834460
MM
114102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11411
11412 * btrace.h (btrace_thread_flag): New.
11413 (struct btrace_thread_info) <flags>: New.
11414 * record-btrace.c (record_btrace_resume_thread)
11415 (record_btrace_find_thread_to_move, btrace_step_no_history)
11416 (btrace_step_stopped, record_btrace_start_replaying)
11417 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11418 (record_btrace_find_resume_thread): New.
11419 (record_btrace_resume, record_btrace_wait): Extend.
11420 (record_btrace_can_execute_reverse): New.
11421 (record_btrace_open): Fail in non-stop mode.
11422 (record_btrace_set_replay): Split into this, ...
11423 (record_btrace_stop_replaying): ... this, ...
11424 (record_btrace_clear_histories): ... and this.
11425 (init_record_btrace_ops): Init to_can_execute_reverse.
11426 * NEWS: Announce it.
11427
118e6252
MM
114282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11429
11430 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11431 (forward_target_decr_pc_after_break)
11432 (target_decr_pc_after_break): New.
11433 * target.c (forward_target_decr_pc_after_break)
11434 (target_decr_pc_after_break): New.
11435 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11436 instead of gdbarch_decr_pc_after_break.
11437 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11438 instead of gdbarch_decr_pc_after_break.
11439 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11440 instead of gdbarch_decr_pc_after_break.
11441 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11442 instead of gdbarch_decr_pc_after_break.
11443 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11444 instead of gdbarch_decr_pc_after_break.
11445 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11446 instead of gdbarch_decr_pc_after_break.
11447
6e07b1d2
MM
114482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11449
11450 * btrace.c: Include regcache.h.
11451 (btrace_add_pc): New.
11452 (btrace_enable): Call btrace_add_pc.
11453 (btrace_is_empty): New.
11454 * btrace.h (btrace_is_empty): New.
11455 * record-btrace.c (require_btrace, record_btrace_info): Call
11456 btrace_is_empty.
11457
969c39fb
MM
114582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11459
11460 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11461 Support delta reads.
11462 (linux_disable_btrace): Change return type.
11463 * common/linux-btrace.h (linux_read_btrace): Change parameters
11464 and return type to allow error reporting. Update users.
11465 (linux_disable_btrace): Change return type. Update users.
11466 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11467 New.
11468 (btrace_error): New.
11469 (btrace_block) <begin>: Comment on BEGIN == 0.
11470 * btrace.c (btrace_compute_ftrace): Start from the end of
11471 the current trace.
11472 (btrace_stitch_trace, btrace_clear_history): New.
11473 (btrace_fetch): Read delta trace, return if replaying.
11474 (btrace_clear): Move clear history code to btrace_clear_history.
11475 (parse_xml_btrace): Throw an error if parsing failed.
11476 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11477 and return type to allow error reporting.
11478 (target_read_btrace): Change parameters and return type to allow
11479 error reporting.
11480 * target.c (target_read_btrace): Update.
11481 * remote.c (remote_read_btrace): Support delta reads. Pass
11482 errors on.
11483 * NEWS: Announce it.
11484
0b722aec
MM
114852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11486
11487 * record.h (record_btrace_frame_unwind)
11488 (record_btrace_tailcall_frame_unwind): New declarations.
11489 * dwarf2-frame: Include record.h
11490 (dwarf2_frame_cfa): Throw an error for btrace frames.
11491 * record-btrace.c: Include hashtab.h.
11492 (btrace_get_bfun_name): New.
11493 (btrace_call_history): Call btrace_get_bfun_name.
11494 (struct btrace_frame_cache): New.
11495 (bfcache): New.
11496 (bfcache_hash, bfcache_eq, bfcache_new): New.
11497 (btrace_get_frame_function): New.
11498 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11499 (record_btrace_frame_this_id): Compute own id.
11500 (record_btrace_frame_prev_register): Provide PC, throw_error
11501 for all other registers.
11502 (record_btrace_frame_sniffer): Detect btrace frames.
11503 (record_btrace_tailcall_frame_sniffer): New.
11504 (record_btrace_frame_dealloc_cache): New.
11505 (record_btrace_frame_unwind): Add new functions.
11506 (record_btrace_tailcall_frame_unwind): New.
11507 (_initialize_record_btrace): Allocate cache.
11508 * btrace.c (btrace_clear): Call reinit_frame_cache.
11509 * NEWS: Announce it.
11510
066ce621
MM
115112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11512
11513 * record-btrace.c (record_btrace_set_replay)
11514 (record_btrace_goto_begin, record_btrace_goto_end)
11515 (record_btrace_goto): New.
11516 (init_record_btrace_ops): Initialize them.
11517 * NEWS: Announce it.
11518
e2887aa3
MM
115192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11520
11521 * record-btrace.c (record_btrace_find_new_threads)
11522 (record_btrace_thread_alive): New.
11523 (init_record_btrace_ops): Initialize to_find_new_threads and
11524 to_thread_alive.
11525
b2f4cfde
MM
115262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11527
11528 * record-btrace.c (record_btrace_resume): New.
11529 (record_btrace_wait): New.
11530 (init_record_btrace_ops): Initialize to_wait and to_resume.
11531
633785ff
MM
115322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11533
11534 * record-btrace.c (record_btrace_xfer_partial)
11535 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11536 (record_btrace_allow_memory_access): New.
11537 (init_record_btrace_ops): Initialize new methods.
11538 * target.c (raw_memory_xfer_partial): Bail out if target reports
11539 that this memory is not available.
11540
3db08215
MM
115412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11542
11543 * target.h (target_ops) <to_insert_breakpoint>
11544 <to_remove_breakpoint>: Add target_ops parameter.
11545 (forward_target_insert_breakpoint): New.
11546 (forward_target_remove_breakpoint): New.
11547 (memory_remove_breakpoint, memory_insert_breakpoint):
11548 Add target_ops parameter.
11549 * target.c (target_insert_breakpoint): Split into this and ...
11550 (forward_target_insert_breakpoint): ... this.
11551 (target_remove_breakpoint): Split into this and ...
11552 (forward_target_remove_breakpoint): ... this.
11553 (debug_to_insert_breakpoint): Add target_ops parameter.
11554 Call forward_target_insert_breakpoint.
11555 (debug_to_remove_breakpoint): Add target_ops parameter.
11556 Call forward_target_remove_breakpoint.
11557 (update_current_target): Do not inherit or default to_insert_breakpoint
11558 and to_remove_breakpoint.
11559 * corelow.c (ignore): Add target_ops parameter.
11560 * exec.c (ignore): Add target_ops parameter.
11561 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11562 Add target_ops parameter.
11563 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11564 Add target_ops parameter.
11565 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11566 Add target_ops parameter.
11567 * record-full.c (record_full_beneath_to_insert_breakpoint)
11568 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11569 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11570 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11571 (record_full_core_remove_breakpoint): Add target_ops parameter.
11572 Update users.
11573 (record_full_beneath_to_insert_breakpoint_ops)
11574 (record_full_beneath_to_remove_breakpoint_ops)
11575 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11576 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11577 tmp_to_remove_breakpoint_ops,
11578 record_full_beneath_to_insert_breakpoint_ops, and
11579 record_full_beneath_to_remove_breakpoint_ops.
11580 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11581 (m32r_remove_breakpoint): Add target_ops parameter.
11582 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11583 Add target_ops parameter.
11584 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11585 Add target_ops parameter.
11586
cecac1ab
MM
115872014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11588 Markus Metzger <markus.t.metzger@intel.com>
11589
11590 * record-btrace.c: Include frame-unwind.h.
11591 (record_btrace_frame_unwind_stop_reason)
11592 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11593 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11594 New.
11595 (init_record_btrace_ops): Install it.
11596
824344ca
MM
115972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11598
11599 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11600 get_prev_frame_1.
11601
32261e52
MM
116022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11605 earlier.
11606
ea001bdc
MM
116072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11608
11609 * frame-unwind.c: Include target.h.
11610 (frame_unwind_try_unwinder): New function with code from ...
11611 (frame_unwind_find_by_frame): ... here. New variable
11612 unwinder_from_target, call also target_get_unwinder)
11613 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11614 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11615 * target.h (struct target_ops): New fields to_get_unwinder and
11616 to_get_tailcall_unwinder.
11617 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11618
1f3ef581
MM
116192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11620
11621 * record-btrace.c (record_btrace_fetch_registers)
11622 (record_btrace_store_registers)
11623 (record_btrace_to_prepare_to_store): New.
11624 (init_record_btrace_ops): Add the above.
11625
f32dbf8c
MM
116262014-01-16 Tom Tromey <tromey@redhat.com>
11627
11628 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11629 * target.h (struct target_ops) <to_prepare_to_store>: Add
11630 argument.
11631 (target_prepare_to_store): Add argument.
11632 * target.c (debug_to_prepare_to_store): Add argument.
11633 (update_current_target): Update.
11634 * remote.c (remote_prepare_to_store): Add 'self' argument.
11635 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11636 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11637 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11638 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11639 argument.
11640 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11641 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11642 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11643 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11644 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11645
07bbe694
MM
116462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11647
11648 * btrace.h (replay) <replay>: New.
11649 (btrace_is_replaying): New.
11650 * btrace.c (btrace_clear): Free replay iterator.
11651 (btrace_is_replaying): New.
11652 * record-btrace.c (record_btrace_is_replaying): New.
11653 (record_btrace_info): Print insn number if replaying.
11654 (record_btrace_insn_history): Start at replay position.
11655 (record_btrace_call_history): Start at replay position.
11656 (init_record_btrace_ops): Init to_record_is_replaying.
11657
0688d04e
MM
116582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11659
11660 * record-btrace.c (record_btrace_insn_history_range): Include
11661 end.
11662 (record_btrace_insn_history_from): Adjust range.
11663 (record_btrace_call_history_range): Include
11664 end.
11665 (record_btrace_call_history_from): Adjust range.
11666 * NEWS: Announce changes.
11667
8710b709
MM
116682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11669
11670 * record.h (enum record_print_flag)
11671 <record_print_indent_calls>: New.
11672 * record.c (get_call_history_modifiers): Recognize /c modifier.
11673 (_initialize_record): Document /c modifier.
11674 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11675 Reorder fields. Optionally indent the function name. Update
11676 all users.
11677 * NEWS: Announce changes.
11678
d0fa7535
MM
116792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11680
11681 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11682
5de9129b
MM
116832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11684
11685 * btrace.c (ftrace_new_function): Start counting at one.
11686 * record-btrace.c (record_btrace_info): Adjust number of calls
11687 and insns.
11688 * NEWS: Announce it.
11689
7acbe133
MM
116902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11691
11692 * record-btrace.c (btrace_call_history_insn_range): Print
11693 insn range as [begin, end].
11694
23a7fe75
MM
116952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696
11697 * btrace.h (struct btrace_func_link): New.
11698 (enum btrace_function_flag): New.
11699 (struct btrace_inst): Rename to ...
11700 (struct btrace_insn): ...this. Update all users.
11701 (struct btrace_func) <ibegin, iend>: Remove.
11702 (struct btrace_func_link): New.
11703 (struct btrace_func): Rename to ...
11704 (struct btrace_function): ...this. Update all users.
11705 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11706 (number, level, flags>: New.
11707 (struct btrace_insn_iterator): Rename to ...
11708 (struct btrace_insn_history): ...this.
11709 Update all users.
11710 (struct btrace_insn_iterator, btrace_call_iterator): New.
11711 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11712 (struct btrace_target_info) <begin, end, level>
11713 <insn_history, call_history>: New.
11714 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11715 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11716 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11717 (btrace_call_number, btrace_call_begin, btrace_call_end)
11718 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11719 (btrace_find_function_by_number, btrace_set_insn_history)
11720 (btrace_set_call_history): New.
11721 * btrace.c (btrace_init_insn_iterator)
11722 (btrace_init_func_iterator, compute_itrace): Remove.
11723 (ftrace_print_function_name, ftrace_print_filename)
11724 (ftrace_skip_file): Change
11725 parameter to const.
11726 (ftrace_init_func): Remove.
11727 (ftrace_debug): Use new btrace_function fields.
11728 (ftrace_function_switched): Also consider gaining and
11729 losing symbol information).
11730 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11731 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11732 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11733 New.
11734 (ftrace_new_function): Move. Remove debug print.
11735 (ftrace_update_lines, ftrace_update_insns): New.
11736 (ftrace_update_function): Check for call, ret, and jump.
11737 (compute_ftrace): Renamed to ...
11738 (btrace_compute_ftrace): ...this. Rewritten to compute call
11739 stack.
11740 (btrace_fetch, btrace_clear): Updated.
11741 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11742 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11743 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11744 (btrace_call_number, btrace_call_begin, btrace_call_end)
11745 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11746 (btrace_find_function_by_number, btrace_set_insn_history)
11747 (btrace_set_call_history): New.
11748 * record-btrace.c (require_btrace): Use new btrace thread
11749 info fields.
11750 (record_btrace_info, btrace_insn_history)
11751 (record_btrace_insn_history, record_btrace_insn_history_range):
11752 Use new btrace thread info fields and new iterator.
11753 (btrace_func_history_src_line): Rename to ...
11754 (btrace_call_history_src_line): ...this. Use new btrace
11755 thread info fields.
11756 (btrace_func_history): Rename to ...
11757 (btrace_call_history): ...this. Use new btrace thread info
11758 fields and new iterator.
11759 (record_btrace_call_history, record_btrace_call_history_range):
11760 Use new btrace thread info fields and new iterator.
11761
8372a7cb
MM
117622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11763
11764 * frame.h (frame_id_build_unavailable_stack_special): New.
11765 * frame.c (frame_id_build_unavailable_stack_special): New.
11766
c2170eef
MM
117672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768
11769 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11770 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11771 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11772 to gdbarch.
11773 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11774 (i386_insn_is_jump, i386_jmp_p): New.
11775 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11776 insn_is_jump to gdbarch.
11777 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11778 * gdbarch.h: Regenerated.
11779 * gdbarch.c: Regenerated.
11780 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11781 (default_insn_is_jump): New.
11782 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11783 (default_insn_is_jump): New.
11784
864089d2
MM
117852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11786
11787 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11788 Change to ...
11789 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11790 (btrace_read_type) <btrace_read_new>: Change to ...
11791 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11792
ed9edfb5
MM
117932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11794
11795 * common/linux-btrace.c (linux_read_btrace): Free trace from
11796 previous iteration.
11797
fbcbc3fd
DE
117982014-01-15 Doug Evans <dje@google.com>
11799
11800 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11801 uint32_t.
11802
3d548a53
TT
118032014-01-15 Tom Tromey <tromey@redhat.com>
11804
11805 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11806 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11807 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11808 (set_objfile_main_name): New function.
11809 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11810 language_of_main>: New fields.
11811 (set_objfile_main_name): Declare.
11812 * symtab.c (find_main_name): Loop over objfiles to find the main
11813 name and language.
11814 (set_main_name): Now static.
11815 (get_main_info): Add comment.
11816 * symtab.h (set_main_name): Don't declare.
11817
32ac0d11
TT
118182014-01-15 Tom Tromey <tromey@redhat.com>
11819
11820 * symtab.c (main_progspace_key): New global.
11821 (struct main_info): New.
11822 (name_of_main, language_of_main): Remove.
11823 (get_main_info, main_info_cleanup): New function.
11824 (set_main_name, main_name, main_language): Use get_main_info.
11825 (_initialize_symtab): Initialize main_progspace_key.
11826
9e6c82ad
TT
118272014-01-15 Tom Tromey <tromey@redhat.com>
11828
11829 * dbxread.c (process_one_symbol): Update.
11830 * dwarf2read.c (read_partial_die): Update.
11831 * symfile.c (set_initial_language): Call main_language.
11832 * symtab.c (language_of_main): Now static.
11833 (set_main_name): Add 'lang' parameter.
11834 (find_main_name): Update.
11835 (main_language): New function.
11836 (symtab_observer_executable_changed): Update.
11837 * symtab.h (set_main_name): Update.
11838 (language_of_main): Remove.
11839 (main_language): Declare.
11840
6ef55de7
TT
118412014-01-15 Tom Tromey <tromey@redhat.com>
11842
11843 * symfile.c (init_entry_point_info): Use new "initialized" field.
11844 Update.
11845 * objfiles.h (struct entry_point) <initialized>: New field.
11846 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11847 (struct objfile) <ei>: ...here. Remove.
11848 * objfiles.c (entry_point_address_query): Update.
11849
53eddfa6
TT
118502014-01-15 Tom Tromey <tromey@redhat.com>
11851
11852 * objfiles.c (entry_point_address_query): Relocate entry point
11853 address.
11854 (objfile_relocate1): Do not relocate entry point address.
11855 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11856 <the_bfd_section_index>: New field.
11857 * symfile.c (init_entry_point_info): Find the entry point's
11858 section.
11859
d56e56aa
TT
118602014-01-15 Tom Tromey <tromey@redhat.com>
11861
11862 * solib-frv.c (enable_break): Use entry_point_address_query.
11863
33a97bbe
OJ
118642014-01-15 Omair Javaid <omair.javaid@linaro.org>
11865
11866 * NEWS: Add note on improved process record-replay on
11867 arm*-linux* targets.
11868
c6ec2b30
OJ
118692014-01-15 Omair Javaid <omair.javaid@linaro.org>
11870
11871 * arm-tdep.c (enum arm_record_result): New enum.
11872 (arm_record_unsupported_insn): New function.
11873 (arm_record_coproc_data_proc): Removed.
11874 (thumb2_record_ld_st_multiple): New function.
11875 (thumb2_record_ld_st_dual_ex_tbb): New function.
11876 (thumb2_record_data_proc_sreg_mimm): New function.
11877 (thumb2_record_ps_dest_generic): New function.
11878 (thumb2_record_branch_misc_cntrl): New function.
11879 (thumb2_record_str_single_data): New function.
11880 (thumb2_record_ld_mem_hints): New function.
11881 (thumb2_record_ld_word): New function.
11882 (thumb2_record_lmul_lmla_div): New function.
11883 (thumb2_record_decode_insn_handler): New function.
11884 (decode_insn): Add thumb32 instruction handlers.
11885
97dfe206
OJ
118862014-01-15 Omair Javaid <omair.javaid@linaro.org>
11887
11888 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11889 (struct arm_linux_record_tdep): Declare.
11890 (arm_canonicalize_syscall): New function.
11891 (arm_all_but_pc_registers_record): New function.
11892 (arm_linux_syscall_record): New function.
11893 (arm_linux_init_abi): Add syscall recording constructs.
11894 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11895 decoding. (arm_record_coproc_data_proc): Update arm syscall
11896 decoding.
11897 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11898 <arm_syscall_record>: New field.
11899 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11900 gdb_target_obs.
11901
9904a494
OJ
119022014-01-15 Omair Javaid <omair.javaid@linaro.org>
11903
11904 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11905 register for push instruction recording.
11906
f969241e
OJ
119072014-01-15 Omair Javaid <omair.javaid@linaro.org>
11908
11909 * arm-tdep.c (thumb_record_misc): Update to correct logical
11910 error while recording ldm, ldmia and pop instructions.
11911
bfbbec00
OJ
119122014-01-15 Omair Javaid <omair.javaid@linaro.org>
11913
11914 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11915
e40adcc9
PA
119162014-01-15 Pedro Alves <palves@redhat.com>
11917
11918 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11919 (go32_resume, go32_fetch_registers, store_register)
11920 (go32_store_registers, go32_prepare_to_store)
11921 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11922 (go32_create_inferior, go32_can_run, go32_terminal_init)
11923 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11924 declarations.
11925
b0a16e66
TT
119262014-01-15 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (async_callback_ftype): New typedef.
11929 (struct target_ops) <to_async>: Use it.
11930
bf7105a4
JB
119312014-01-15 Joel Brobecker <brobecker@adacore.com>
11932
11933 * python/py-value.c (get_field_type): Remove unnecessary curly
11934 braces for single-statement if block.
11935
a8f35c2e
JB
119362014-01-15 Joel Brobecker <brobecker@adacore.com>
11937
11938 * python/py-type.c (convert_field): Add missing empty line
11939 after declarations.
11940
bb4142cf
DE
119412014-01-14 Doug Evans <dje@google.com>
11942
11943 * symfile.h (expand_symtabs_matching): Renamed from
11944 expand_partial_symbol_names. Update prototype.
11945 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11946 * symfile.c (expand_symtabs_matching): Renamed from
11947 expand_partial_symbol_names. New args file_matcher, kind.
11948 Rename arg fun to symbol_matcher.
11949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11950 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11951 ada_expand_partial_symbol_name.
11952 (ada_make_symbol_completion_list): Update to call
11953 expand_symtabs_matching.
11954 (ada_add_global_exceptions): Call expand_symtabs_matching.
11955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11956 call map_symbol_filenames.
11957 * symtab.c (sources_info): Update to call map_symbol_filenames.
11958 (search_symbols): Call expand_symtabs_matching.
11959 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11960 (default_make_symbol_completion_list_break_on): Update to call
11961 expand_symtabs_matching.
11962 (make_source_files_completion_list): Update to call
11963 map_symbol_filenames.
11964
206f2a57
DE
119652014-01-14 Doug Evans <dje@google.com>
11966
11967 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11968 (expand_symtabs_symbol_matcher_ftype): New typedef.
11969 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11970 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11971 * symfile.c (expand_partial_symbol_names): Update to use
11972 expand_symtabs_symbol_matcher_ftype.
11973 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11975 Arg name_matcher renamed to symbol_matcher.
11976 * psymtab.c (recursively_search_psymtabs): Update to use
11977 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11978 sym_matcher.
11979 (expand_symtabs_matching_via_partial): Update to use
11980 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11981 Arg name_matcher renamed to symbol_matcher.
11982
540c2971
DE
119832014-01-14 Doug Evans <dje@google.com>
11984
11985 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11986 (map_partial_symbol_filenames): Ditto.
11987 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11988 (map_partial_symbol_filenames): Ditto.
11989 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11990 (map_partial_symbol_filenames): Ditto.
11991 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11992 (map_partial_symbol_filenames): Ditto.
11993 * symtab.c: Delete #include "psymtab.h".
11994
8213266a
PA
119952014-01-14 Pedro Alves <palves@redhat.com>
11996 Tom Tromey <tromey@redhat.com>
11997
11998 * infrun.c (use_displaced_stepping): Use find_record_target
11999 instead of RECORD_IS_USED.
12000 (adjust_pc_after_break): Use record_full_is_used instead of
12001 RECORD_IS_USED.
12002 * record-btrace.c (record_btrace_open): Call record_preopen
12003 instead of checking RECORD_IS_USED.
12004 * record-full.c (record_full_shortname)
12005 (record_full_core_shortname): New globals.
12006 (record_full_is_used): New function.
12007 (find_full_open): Call record_preopen instead of checking
12008 RECORD_IS_USED.
12009 (init_record_full_ops): Set the target's shortname to
12010 record_full_shortname.
12011 (init_record_full_core_ops): Set the target's shortname to
12012 record_full_core_shortname.
12013 * record-full.h (record_full_is_used): Declare.
12014 * record.c (find_record_target): Make extern.
12015 (record_preopen): New function.
12016 * record.h (RECORD_IS_USED): Delete macro.
12017 (find_record_target, record_preopen): Declare functions.
12018
7ec1862d
YQ
120192014-01-14 Yao Qi <yao@codesourcery.com>
12020
12021 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12022 'len''s type to ULONGEST.
12023 (core_xfer_shared_libraries_aix): Likewise.
12024 * gdbarch.c, gdbarch.h: Regenerated.
12025 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12026 Change type of 'len' to ULONGEST.
12027 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12028 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12029
dea80a27
YQ
120302014-01-14 Yao Qi <yao@codesourcery.com>
12031
12032 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12033 type of 'len' to ULONGEST.
12034 (linux_xfer_osdata_processgroups): Likewise.
12035 (linux_xfer_osdata_threads): Likewise.
12036 (linux_xfer_osdata_fds): Likewise.
12037 (linux_xfer_osdata_isockets): Likewise.
12038 (linux_xfer_osdata_shm): Likewise.
12039 (linux_xfer_osdata_sem): Likewise.
12040 (linux_xfer_osdata_msg): Likewise.
12041 (linux_common_xfer_osdata): Likewise.
12042 (struct osdata_type) <getter>: Likewise.
12043 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12044 the declaration.
12045
b55e14c7
YQ
120462014-01-14 Yao Qi <yao@codesourcery.com>
12047
12048 * target.h (target_xfer_partial_ftype): Update.
12049 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12050 ULONGEST.
12051 * aix-thread.c (aix_thread_xfer_partial): Change type of
12052 argument 'len' to ULONGEST.
12053 * auxv.c (procfs_xfer_auxv): Likewise.
12054 (ld_so_xfer_auxv): Likewise.
12055 (memory_xfer_auxv): Likewise.
12056 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12057 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12058 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12059 * corelow.c (core_xfer_partial): Likewise.
12060 * ctf.c (ctf_xfer_partial): Likewise.
12061 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12062 '%u'.
12063 (darwin_read_dyld_info): Likewise.
12064 (darwin_xfer_partial): Likewise.
12065 * exec.c (section_table_xfer_memory_partial): Likewise.
12066 (exec_xfer_partial): Likewise.
12067 * exec.h (section_table_xfer_memory_partial): Update
12068 declaration.
12069 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12070 instead of plongest.
12071 (gnu_xfer_partial): Likewise.
12072 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12073 (ia64_hpux_xfer_solib_got): Likewise.
12074 (ia64_hpux_xfer_partial): Likewise.
12075 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12076 * inf-ptrace.c (inf_ptrace_xfer_partial):
12077 * inf-ttrace.c (inf_ttrace_xfer_partial):
12078 * linux-nat.c (linux_xfer_siginfo): Likewise.
12079 (linux_nat_xfer_partial): Likewise.
12080 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12081 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12082 * monitor.c (monitor_xfer_memory): Likewise.
12083 (monitor_xfer_partial): Likewise.
12084 * procfs.c (procfs_xfer_partial): Likewise.
12085 * record-full.c (record_full_xfer_partial): Likewise.
12086 (record_full_core_xfer_partial): Likewise.
12087 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12088 instead of plongest.
12089 (gdbsim_xfer_partial): Likewise.
12090 * remote.c (remote_xfer_partial): Likewise.
12091 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12092 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12093 declaration.
12094 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12095 (rs6000_xfer_shared_libraries): Likewise.
12096 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12098 (sparc_xfer_partial): Likewise.
12099 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12100 (spu_xfer_partial): Likewise.
12101 * spu-multiarch.c (spu_xfer_partial): Likewise.
12102 * target.c (target_read_live_memory): Likewise.
12103 (memory_xfer_live_readonly_partial): Likewise.
12104 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12105 (target_xfer_partial, default_xfer_partial): Likewise.
12106 (current_xfer_partial): Likewise.
12107 * tracepoint.c (tfile_xfer_partial): Likewise.
12108 * windows-nat.c (windows_xfer_memory): Likewise. Call
12109 pulongest instead of plongest.
12110 (windows_xfer_partial): Likewise.
12111 (windows_xfer_shared_libraries): Likewise.
12112
05804640
YQ
121132014-01-14 Yao Qi <yao@codesourcery.com>
12114
12115 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12116 target_xfer_partial_ftype.
12117
b5b08fb4
SC
121182014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12119
12120 PR python/15464
12121 PR python/16113
12122 * valops.c (value_struct_elt_bitpos): New function
12123 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12124 object to 'None' if the field name is an empty string ("").
12125 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12126 attribute to look for a field when 'name' is 'None'.
12127 (get_field_type): New function
12128
13aaf454
DE
121292014-01-13 Doug Evans <dje@google.com>
12130
12131 PR symtab/16426
12132 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12133 (try_open_dwop_file): Ditto.
12134 * gdb_bfd.c: #include "vec.h".
12135 (bfdp): New typedef.
12136 (struct gdb_bfd_data): New member included_bfds.
12137 (gdb_bfd_unref): Unref all included bfds.
12138 (gdb_bfd_record_inclusion): New function.
12139 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12140
c2cec97c
TT
121412014-01-13 Tom Tromey <tromey@redhat.com>
12142
12143 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12144
78e5999d
TT
121452014-01-13 Tom Tromey <tromey@redhat.com>
12146
12147 * defs.h (use_windows): Remove.
12148 * gdb.c (main): Update.
12149 * main.c (captured_main, gdb_main): Update.
12150 * main.h (struct captured_main_args) <use_windows>: Remove.
12151 * top.c (use_windows): Remove.
12152
f2052bbe
TT
121532014-01-13 Tom Tromey <tromey@redhat.com>
12154
12155 * defs.h (deprecated_flush_hook): Remove.
12156
fde4f8ed
JK
121572014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12158
12159 PR threads/16216
12160 * linux-thread-db.c (try_thread_db_load): Add parameter
12161 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12162 (try_thread_db_load_from_pdir_1): Move it there from here.
12163 (try_thread_db_load_from_sdir): Update caller.
12164 (try_thread_db_load_from_dir): Move it there from here.
12165
bdf61915
PP
121662014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12167
12168 * regformats/regdat.sh: Always rewrite the register file.
12169
f71e1a8d
PA
121702014-01-13 Pedro Alves <palves@redhat.com>
12171
12172 * Makefile.in (CHECK_HEADERS): New variable.
12173 (check-headers:): New rule.
12174
42c85435
TT
121752014-01-13 Tom Tromey <tromey@redhat.com>
12176
12177 * cli/cli-setshow.c (do_set_command): Update.
12178 * defs.h (deprecated_set_hook): Remove.
12179 * top.c (deprecated_set_hook): Remove.
12180
f8de5129
PA
121812014-01-13 Pedro Alves <palves@redhat.com>
12182
12183 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12184 the tracepoint if the PC is a pseudo-register.
12185
fc270c35
TT
121862014-01-13 Tom Tromey <tromey@redhat.com>
12187
12188 * defs.h (XCALLOC): Remove.
12189 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12190 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12191 * dwarf2loc.c (allocate_piece_closure): Likewise.
12192 * elfread.c (elf_symfile_segments): Likewise.
12193 (elf_symfile_segments): Likewise.
12194 * gdbtypes.c (copy_type_recursive): Likewise.
12195 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12196 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12197 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12198 XCALLOC.
12199 * mt-tdep.c (mt_gdbarch_init): Likewise.
12200 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12201 XCALLOC.
12202 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12203 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12204 * registry.c (registry_alloc_data): Likewise.
12205 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12206 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12207 * serial.c (serial_fdopen_ops): Likewise.
12208 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12209 XCALLOC.
12210 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12211 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12212 not XCALLOC.
12213
70ba0933
TT
122142014-01-13 Tom Tromey <tromey@redhat.com>
12215
12216 * defs.h (XMALLOC): Remove.
12217 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12218 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12219 * cli-out.c (struct ui_out *): Likewise.
12220 * cli/cli-dump.c (add_dump_command): Likewise.
12221 (add_dump_command): Likewise.
12222 * complaints.c (get_complaints): Likewise.
12223 (find_complaint): Likewise.
12224 * dwarf2-frame.c (execute_cfa_program): Likewise.
12225 * dwarf2read.c (abbrev_table_read_table): Likewise.
12226 * gdbarch.sh: Likewise.
12227 * gdbarch.c: Rebuild.
12228 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12229 * interps.c (interp_new): Likewise.
12230 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12231 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12232 * mi/mi-console.c (mi_console_file_new): Likewise.
12233 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12234 * mi/mi-out.c (mi_out_new): Likewise.
12235 * mi/mi-parse.c (mi_parse): Likewise.
12236 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12237 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12238 * observer.c (xalloc_observer_list_node): Likewise.
12239 * regcache.c (regcache_xmalloc_1): Likewise.
12240 * reggroups.c (reggroup_new): Likewise.
12241 (_initialize_reggroup): Likewise.
12242 * registry.c (register_data_with_cleanup): Likewise.
12243 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12244 * ser-base.c (serial_ttystate): Likewise.
12245 * ser-mingw.c (make_pipe_state): Likewise.
12246 * ser-pipe.c (pipe_open): Likewise.
12247 * serial.c (serial_open): Likewise.
12248 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12249 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12250 (tui_alloc_win_info): Likewise.
12251 (tui_add_content_elements): Likewise.
12252 * tui/tui-file.c (tui_file_new): Likewise.
12253 * tui/tui-out.c (tui_out_new): Likewise.
12254 * ui-file.c (mem_file_new): Likewise.
12255 * ui-out.c (push_level): Likewise.
12256 (make_cleanup_ui_out_end): Likewise.
12257 (append_header_to_list): Likewise.
12258 (ui_out_new): Likewise.
12259 * user-regs.c (user_reg_add_builtin): Likewise.
12260
41bf6aca
TT
122612014-01-13 Tom Tromey <tromey@redhat.com>
12262
12263 * defs.h (XZALLOC): Remove.
12264 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12265 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12266 (get_ada_tasks_inferior_data): Likewise.
12267 * auto-load.c (get_auto_load_pspace_data): Likewise.
12268 * auxv.c (get_auxv_inferior_data): Likewise.
12269 * bfd-target.c (target_bfd_reopen): Likewise.
12270 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12271 (deprecated_insert_raw_breakpoint): Likewise.
12272 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12273 * corelow.c (core_open): Likewise.
12274 * darwin-nat.c (darwin_check_new_threads): Likewise.
12275 (darwin_attach_pid): Likewise.
12276 * dummy-frame.c (dummy_frame_push): Likewise.
12277 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12278 * dwarf2loc.c (allocate_piece_closure): Likewise.
12279 * elfread.c (elf_symfile_segments): Likewise.
12280 * eval.c (ptrmath_type_p): Likewise.
12281 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12282 * gdbtypes.c (alloc_type_arch): Likewise.
12283 (alloc_type_instance): Likewise.
12284 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12285 * inf-child.c (inf_child_can_use_agent): Likewise.
12286 * inflow.c (get_inflow_inferior_data): Likewise.
12287 * infrun.c (save_infcall_suspend_state): Likewise.
12288 * jit.c (jit_reader_load): Likewise.
12289 (get_jit_objfile_data): Likewise.
12290 (get_jit_program_space_data): Likewise.
12291 (jit_object_open_impl): Likewise.
12292 (jit_symtab_open_impl): Likewise.
12293 (jit_block_open_impl): Likewise.
12294 (jit_frame_sniffer): Likewise.
12295 * linux-fork.c (add_fork): Likewise.
12296 * maint.c (make_command_stats_cleanup): Likewise.
12297 * objfiles.c (get_objfile_pspace_data): Likewise.
12298 * opencl-lang.c (struct lval_closure): Likewise.
12299 * osdata.c (osdata_start_osdata): Likewise.
12300 * progspace.c (new_address_space): Likewise.
12301 (add_program_space): Likewise.
12302 * remote-sim.c (get_sim_inferior_data): Likewise.
12303 * sh-tdep.c (sh_gdbarch_init): Likewise.
12304 * skip.c (Ignore): Likewise.
12305 (skip_delete_command): Likewise.
12306 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12307 (library_list_start_library): Likewise.
12308 (solib_aix_current_sos): Likewise.
12309 * solib-darwin.c (get_darwin_info): Likewise.
12310 (darwin_current_sos): Likewise.
12311 * solib-dsbt.c (get_dsbt_info): Likewise.
12312 * solib-ia64-hpux.c (new_so_list): Likewise.
12313 (ia64_hpux_get_solib_linkage_addr): Likewise.
12314 * solib-spu.c (append_ocl_sos): Likewise.
12315 (spu_current_sos): Likewise.
12316 * solib-svr4.c (get_svr4_info): Likewise.
12317 (svr4_keep_data_in_core): Likewise.
12318 (library_list_start_library): Likewise.
12319 (svr4_default_sos): Likewise.
12320 (svr4_read_so_list): Likewise.
12321 * solib-target.c (library_list_start_library): Likewise.
12322 (solib_target_current_sos): Likewise.
12323 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12324 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12325 * symfile.c (default_symfile_segments): Likewise.
12326 * target-descriptions.c (tdesc_data_init): Likewise.
12327 (tdesc_create_reg): Likewise.
12328 (struct tdesc_type *): Likewise.
12329 (tdesc_create_vector): Likewise.
12330 (tdesc_set_struct_size): Likewise.
12331 (struct tdesc_type *): Likewise.
12332 (tdesc_free_feature): Likewise.
12333 (tdesc_create_feature): Likewise.
12334 * windows-nat.c (windows_add_thread): Likewise.
12335 (windows_make_so): Likewise.
12336 * xml-support.c (gdb_xml_body_text): Likewise.
12337 (gdb_xml_create_parser_and_cleanup): Likewise.
12338 (xml_process_xincludes): Likewise.
12339 * xml-syscall.c (allocate_syscalls_info): Likewise.
12340 (syscall_create_syscall_desc): Likewise.
12341
5acfdbae
SDJ
123422014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12343
12344 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12345 function, with code from i386_stap_parse_special_token.
12346 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12347 (i386_stap_parse_special_token): Move code to the two functions
12348 above; simplify it.
12349
0000e5cc
PA
123502014-01-09 Pedro Alves <palves@redhat.com>
12351 Hui Zhu <hui@codesourcery.com>
12352
12353 PR gdb/16101
12354 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12355 bp_err_string. Don't mark the location shlib_disabled if the
12356 error thrown wasn't a generic or memory error. Catch errors
12357 thrown while inserting breakpoints in overlayed code. Output
12358 error message of software breakpoints.
12359 * remote.c (remote_insert_breakpoint): If this breakpoint has
12360 target-side commands but this stub doesn't support Z0 packets,
12361 throw NOT_SUPPORTED_ERROR error.
12362 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12363 * target.h (target_insert_breakpoint): Extend comment.
12364 (target_insert_hw_breakpoint): Add comment.
12365
b7ea362b
PA
123662014-01-08 Pedro Alves <palves@redhat.com>
12367
12368 * remote.c (remote_add_thread): Add threads silently if starting
12369 up.
12370 (remote_notice_new_inferior): If in all-stop, and starting up,
12371 don't call notice_new_inferior.
12372 (get_current_thread): New function, factored out from ...
12373 (add_current_inferior_and_thread): ... this. Adjust.
12374 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12375 found any thread, then select the remote's current thread as GDB's
12376 current thread too.
12377
b7bba001
JB
123782014-01-08 Joel Brobecker <brobecker@adacore.com>
12379
12380 * NEWS: Create a new section for the next release branch.
12381 Rename the section of the current branch, now that it has
12382 been cut.
12383
16dfbded
JB
123842014-01-08 Joel Brobecker <brobecker@adacore.com>
12385
12386 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12387 * version.in: Bump version to 7.7.50.DATE-cvs.
12388
22c90ac1
YQ
123892014-01-08 Yao Qi <yao@codesourcery.com>
12390
12391 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12392 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12393 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12394
d64ad97c
YQ
123952014-01-08 Yao Qi <yao@codesourcery.com>
12396
12397 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12398 return value of bfd_get_filename to symbol_file_add_from_bfd.
12399
f93ba80c
PM
124002014-01-08 Pierre Muller <muller@sourceware.org>
12401
12402 Fix PR16201.
12403 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12404 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12405 to prim_record_mininal_symbol_and_info.
12406 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12407 in call to prim_record_minimal_symbol_and_info.
12408 (read_pe_exported_syms): Set index field of section_data.
12409
a4d9ba85
AP
124102014-01-07 Andrew Pinski <apinski@cavium.com>
12411
12412 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12413 * features/aarch64.c: Regenerate.
12414
1b67eb02
AS
124152014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12416
12417 * target.c (return_null): Define.
12418 (update_current_target): Use it instead of return_zero for
12419 functions that return a pointer.
12420
5e3f4fab
EBM
124212014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12422
12423 * source.c (add_path): Fix check for duplicated paths in the previously
12424 included paths.
12425
e2616788
HK
124262014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12427
12428 * ada-lang.c: Remove duplicated include statements.
12429 * alphabsd-nat.c: Ditto.
12430 * amd64-darwin-tdep.c: Ditto.
12431 * amd64fbsd-nat.c: Ditto.
12432 * auto-load.c: Ditto.
12433 * ax-gdb.c: Ditto.
12434 * breakpoint.c: Ditto.
12435 * dbxread.c: Ditto.
12436 * fork-child.c: Ditto.
12437 * gdb_usleep.c: Ditto.
12438 * i386-darwin-tdep.c: Ditto.
12439 * i386fbsd-nat.c: Ditto.
12440 * infcmd.c: Ditto.
12441 * inferior.c: Ditto.
12442 * jv-lang.c: Ditto.
12443 * linux-nat.c: Ditto.
12444 * linux-tdep.c: Ditto.
12445 * m68kbsd-nat.c: Ditto.
12446 * m68klinux-nat.c: Ditto.
12447 * microblaze-tdep.c: Ditto.
12448 * mips-linux-tdep.c: Ditto.
12449 * mn10300-tdep.c: Ditto.
12450 * nto-tdep.c: Ditto.
12451 * opencl-lang.c: Ditto.
12452 * osdata.c: Ditto.
12453 * printcmd.c: Ditto.
12454 * regcache.c: Ditto.
12455 * remote-m32r-sdi.c: Ditto.
12456 * remote.c: Ditto.
12457 * symfile.c: Ditto.
12458 * symtab.c: Ditto.
12459 * tilegx-linux-nat.c: Ditto.
12460 * tilegx-tdep.c: Ditto.
12461 * tracepoint.c: Ditto.
12462 * valops.c: Ditto.
12463 * vaxbsd-nat.c: Ditto.
12464 * windows-nat.c: Ditto.
12465 * xtensa-tdep.c: Ditto.
12466
bd1f7788
YQ
124672014-01-07 Yao Qi <yao@codesourcery.com>
12468
12469 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12470
79301218
JB
124712014-01-07 Yao Qi <yao@codesourcery.com>
12472 Joel Brobecker <brobecker@adacore.com>
12473
12474 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12475 (pdc_write_regs): Likewise.
12476 (fetch_regs_kernel_thread): Likewise.
12477 (store_regs_kernel_thread): Likewise.
12478
124792014-01-07 Joel Brobecker <brobecker@adacore.com>
12480
12481 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12482 tagged type objects to their actual type.
12483
8e355c5d
JB
124842014-01-07 Joel Brobecker <brobecker@adacore.com>
12485
12486 * ada-valprint.c (print_field_values): Add "language" parameter.
12487 Update calls to print_field_values and print_variant_part.
12488 Pass new parameter "language" in call to val_print instead
12489 of "current_language". Replace call to ada_val_print by call
12490 to val_print.
12491 (print_variant_part): Add "language" parameter.
12492 (ada_val_print_struct_union): Update call to print_field_values.
12493
4fbf5aa5
JB
124942014-01-07 Joel Brobecker <brobecker@adacore.com>
12495
12496 * ada-valprint.c (ui_memcpy): Delete.
12497 (ada_print_floating): Update documentation. Add empty line
12498 between between function documentation and implementation.
12499 Delete variable "buffer". Use ui_file_xstrdup in place of
12500 ui_file_put. Minor adjustments following this change.
12501
71855601
JB
125022014-01-07 Joel Brobecker <brobecker@adacore.com>
12503
12504 * ada-valprint.c (ada_val_print_string): New function,
12505 extracted from ada_val_print_array.
12506 (ada_val_print_array): Replace extracted code by call
12507 to ada_val_print_string followed by a return. Move
12508 "else" branch to the function's top block.
12509
4eb27a30
JB
125102014-01-07 Joel Brobecker <brobecker@adacore.com>
12511
12512 * ada-valprint.c (ada_val_print_array): Move implementation
12513 down. Rename parameter "offset" and "val" into "offset_aligned"
12514 and "original_value" respectively. Add parameter "offset".
12515
34b27950
JB
125162014-01-07 Joel Brobecker <brobecker@adacore.com>
12517
12518 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12519 re-organizing the code. Change the "???" message printed
12520 when target type is a TYPE_CODE_UNDEF into
12521 "<ref to undefined type>".
12522
079e4591
JB
125232014-01-07 Joel Brobecker <brobecker@adacore.com>
12524
12525 * ada-valprint.c (print_record): Delete, implementation inlined...
12526 (ada_val_print_struct_union): ... here. Remove call to
12527 ada_check_typedef in inlined implementation.
12528
8004dfd1
JB
125292014-01-07 Joel Brobecker <brobecker@adacore.com>
12530
12531 * ada-valprint.c (ada_val_print_gnat_array): New function,
12532 extracted from ada_val_print_1;
12533 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12534 (ada_val_print_flt, ada_val_print_struct_union)
12535 (ada_val_print_ref): Likewise.
12536 (ada_val_print_1): Delete variables i and elttype.
12537 Replace extracted-out code by call to corresponding
12538 new functions.
12539
760a2db0
JB
125402014-01-07 Joel Brobecker <brobecker@adacore.com>
12541
12542 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12543
3a92c861
JB
125442014-01-07 Joel Brobecker <brobecker@adacore.com>
12545
12546 * ada-valprint.c (ada_val_print_1): Replace calls to
12547 ada_val_print_1 by calls to val_print.
12548
cd1630f9
JB
125492014-01-07 Joel Brobecker <brobecker@adacore.com>
12550
12551 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12552 Update calls to self accordingly. Replace calls to c_val_print
12553 by calls to val_print.
12554
bdf779a0
JB
125552014-01-07 Joel Brobecker <brobecker@adacore.com>
12556
12557 * ada-valprint.c (print_record): Delete declaration.
12558 (adjust_type_signedness, ada_val_print_1): Likewise.
12559 (ada_val_print): Move function implementation down.
12560 (print_variant_part, print_field_values, print_record):
12561 Move function implementation up.
12562
c0d48811
JB
125632014-01-07 Joel Brobecker <brobecker@adacore.com>
12564
12565 * python/py-type.c (typy_get_name): New function.
12566 (type_object_getset): Add entry for attribute "name".
12567 * NEWS: Add entry mentioning this new attribute.
12568
c26e9cbb
YQ
125692014-01-07 Yao Qi <yao@codesourcery.com>
12570
12571 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12572 statement.
12573
0cc6f43d
YQ
125742014-01-07 Yao Qi <yao@codesourcery.com>
12575
12576 * gnu-nat.c (info_port_rights): Add qualifier const to
12577 argument args.
12578
eec03155
YQ
125792014-01-07 Yao Qi <yao@codesourcery.com>
12580
12581 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12582
f04a82ef
YQ
125832014-01-07 Yao Qi <yao@codesourcery.com>
12584
12585 * gnu-nat.c (make_inf) Update declaration.
12586 (make_inf): Make it static.
12587 (inf_set_traced): Likewise.
12588 (inf_port_to_thread, inf_task_died_status): Likewise.
12589
d57dda0a
YQ
125902014-01-07 Yao Qi <yao@codesourcery.com>
12591
12592 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12593
3aa8c969
YQ
125942014-01-07 Yao Qi <yao@codesourcery.com>
12595
12596 * gnu-nat.c (_initialize_gnu_nat): Declare.
12597
94123b4f
YQ
125982014-01-07 Yao Qi <yao@codesourcery.com>
12599
12600 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12601 'enum bfd_endian'.
12602 (struct gdbarch_info) <byte_order>: Change type to
12603 'enum bfd_endian'.
12604 <byte_order_for_code>: Likewise.
12605 * gdbarch.c, gdbarch.h: Regenerated.
12606
dc81d70a
TT
126072014-01-06 Sasha Smundak <asmundak@google.com>
12608
12609 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12610
cc2f3c35
TT
126112014-01-06 Tom Tromey <tromey@redhat.com>
12612
12613 * doublest.c (convert_doublest_to_floatformat): Use const, not
12614 CONST.
12615 * somread.c (som_symtab_read): Likewise.
12616
adcf2eed
HZ
126172014-01-07 Hui Zhu <hui@codesourcery.com>
12618
12619 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12620 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12621 (gdb_bfd_fopen): Ditto.
12622 (gdb_bfd_openr): Ditto.
12623 (gdb_bfd_openw): Ditto.
12624 (gdb_bfd_openr_iovec): Ditto.
12625 (gdb_bfd_fdopenr): Ditto.
12626 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12627 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12628 with xstrdup.
12629 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12630 with xstrdup.
12631 * symfile-mem.c (symbol_file_add_from_memory): Removed
12632 gdb_bfd_stash_filename.
12633
50722198
DE
126342014-01-03 Doug Evans <dje@google.com>
12635
12636 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12637 output.
12638
2fa4b862
JB
126392014-01-01 Joel Brobecker <brobecker@adacore.com>
12640
12641 Update year range in copyright notice of all files.
12642
28498c42
JB
126432014-01-01 Joel Brobecker <brobecker@adacore.com>
12644
12645 * top.c (print_gdb_version): Set copyright year to 2014.
12646
7b6e1046
JB
126472014-01-01 Joel Brobecker <brobecker@adacore.com>
12648
12649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12650
df96af55 12651For older changes see ChangeLog-2013.
c906108c
SS
12652\f
12653Local Variables:
12654mode: change-log
12655left-margin: 8
12656fill-column: 74
12657version-control: never
57da7796 12658coding: utf-8
c906108c 12659End:
This page took 2.13117 seconds and 4 git commands to generate.