gdbserver-support: Handle gdbserver start failures
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
72fde3df
JB
12014-09-09 Joel Brobecker <brobecker@adacore.com>
2
3 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
4
92d8d229
DE
52014-09-08 Doug Evans <xdje42@gmail.com>
6
7 PR 17247
8 * guile.c: #include <signal.h>.
9 (_initialize_guile): Block SIGCHLD while initializing Guile.
10
11 Replaces the following, which is reverted.
12
13 2014-07-26 Doug Evans <xdje42@gmail.com>
14
15 PR 17185
16 * configure.ac: Add check for header gc/gc.h.
17 Add check for function setenv.
18 * configure: Regenerate.
19 * config.in: Regenerate.
20 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
21
d81412aa
DE
222014-09-08 Doug Evans <xdje42@gmail.com>
23
24 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
25 with named constant. Fix style of pointer comparison.
26 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
27
a9f116cb
GKB
282014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
29
30 PR gdb/17035
31 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
32 decide whether we display the command on "show user".
33 * cli/cli-script.c (show_user_1): Only verify cmdlines after
34 printing command name.
35 * cli/cli-decode.h (cli_user_command_p): Declare new function.
36 * cli/cli-decode.c (cli_user_command_p): Create helper function
37 to verify whether cmd_list_element is a user-defined command.
38
c75bd3a2
JK
392014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 PR python/17355
42 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
43 Fix goto out of TRY_CATCH.
44
faa42425 452014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 46 Tom Tromey <tromey@redhat.com>
faa42425
DE
47
48 PR 15276
49 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
50 $_any_caller_matches.
51 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
52 * python/lib/gdb/function/caller_is.py: New file.
53
0d41ba00
DE
542014-09-06 Doug Evans <xdje42@gmail.com>
55
56 * infcmd.c (program_info): Fix typo.
57
474ca4f6
SDJ
582014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
59
60 PR gdb/17235
61 * stap-probe.c (stap_parse_single_operand): Delete unused variable
62 'number'. New variable 'has_digit'. Rewrite code to deal with
63 subexpressions on SDT probes.
64
ebf13736
PA
652014-09-04 Pedro Alves <palves@redhat.com>
66
67 * c-exp.y (parse_number): Skip handling base-switching prefixes if
68 the input is only one character long.
69
eb0b0463
SDJ
702014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
71
72 PR fortran/17237
73 * f-valprint.c (f_val_print): Specify the correct print option to
74 use when printing integer values.
75
5ee44bfa
GB
762014-09-04 Gary Benson <gbenson@redhat.com>
77
78 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
79 Remove code to cope with LWPs wrapped as PIDs.
80 Add assertions to ensure no wrapped LWPs are passed.
81
4875ffdb
PA
822014-09-04 Pedro Alves <palves@redhat.com>
83
84 * value.c (value_ranges_copy_adjusted): New function, factored out
85 from ...
86 (value_contents_copy_raw): ... here.
87 (unpack_value_bits_as_long_1): Rename back to ...
88 (unpack_bits_as_long): ... this. Remove 'original_value' and
89 'result' parameters. Change return type to LONGEST.
90 (unpack_value_bits_as_long): Delete.
91 (unpack_value_field_as_long_1): Delete.
92 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
93 (unpack_value_bitfield): New function.
94 (value_field_bitfield): Reimplement using unpack_value_bitfield.
95 (value_fetch_lazy): Use unpack_value_bitfield.
96 * value.h (unpack_value_bits_as_long): Delete declaration.
97
5f3b99cf
SS
982014-09-03 Sasha Smundak <asmundak@google.com>
99
100 * python/py-frame.c (frapy_read_register): New function.
101
ac740bc7
JH
1022014-09-03 James Hogan <james.hogan@imgtec.com>
103
104 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
105 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
106
7d793aa9
SDJ
1072014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
108
109 PR python/16699
110 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
111 function.
112 (add_cmd): Set "completer_handle_brkchars" to NULL.
113 * cli/cli-decode.h (struct cmd_list_element)
114 <completer_handle_brkchars>: New field.
115 * command.h (completer_ftype_void): New typedef.
116 (set_cmd_completer_handle_brkchars): New prototype.
117 * completer.c (set_gdb_completion_word_break_characters): New
118 function.
119 (complete_line_internal): Call "completer_handle_brkchars"
120 callback from command.
121 * completer.h: Include "command.h".
122 (set_gdb_completion_word_break_characters): New prototype.
123 * python/py-cmd.c (cmdpy_completer_helper): New function.
124 (cmdpy_completer_handle_brkchars): New function.
125 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
126 (cmdpy_init): Set completer_handle_brkchars to
127 cmdpy_completer_handle_brkchars.
128
97ea6506
GB
1292014-09-03 Gary Benson <gbenson@redhat.com>
130
131 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
132 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
133 Loop conditions changed to equivalent form.
134 (struct x86_debug_reg_state): Updated dr_ref_count comment.
135 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
136 ALL_DEBUG_ADDRESS_REGISTERS.
137
d1437815
JB
1382014-09-03 Joel Brobecker <brobecker@adacore.com>
139
140 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
141 description fix.
142
9b94fcf1
DE
1432014-09-02 Doug Evans <dje@google.com>
144
145 * typeprint.c (find_global_typedef): Fix comment.
146
df7e5265
GB
1472014-09-02 Gary Benson <gbenson@redhat.com>
148
149 * i386-nat.h: Renamed as...
150 * x86-nat.h: New file. All type, function and variable name
151 prefixes changed from "i386_" to "x86_". All references updated.
152 * i386-nat.c: Renamed as...
153 * x86-nat.c: New file. All type, function and variable name
154 prefixes changed from "i386_" to "x86_". All references updated.
155 * common/i386-xstate.h: Renamed as...
156 * common/x86-xstate.h: New file. All type, function and variable
157 name prefixes changed from "i386_" to "x86_". All references
158 updated.
159 * nat/i386-cpuid.h: Renamed as...
160 * nat/x86-cpuid.h: New file. All type, function and variable name
161 prefixes changed from "i386_" to "x86_". All references updated.
162 * nat/i386-gcc-cpuid.h: Renamed as...
163 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
164 name prefixes changed from "i386_" to "x86_". All references
165 updated.
166 * nat/i386-dregs.h: Renamed as...
167 * nat/x86-dregs.h: New file. All type, function and variable name
168 prefixes changed from "i386_" to "x86_". All references updated.
169 * nat/i386-dregs.c: Renamed as...
170 * nat/x86-dregs.c: New file. All type, function and variable name
171 prefixes changed from "i386_" to "x86_". All references updated.
172
1c3569d4
MR
1732014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
174
175 * varobj.c (_initialize_varobj): Move to the end of file.
176
ff55e1b5
GB
1772014-08-29 Gary Benson <gbenson@redhat.com>
178
179 * common/common-exceptions.h: New file.
180 * common/common-exceptions.c: Likewise.
181 * Makefile.in (SFILES): Add common/common-exceptions.c.
182 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
183 (COMMON_OBS): Add common-exceptions.o.
184 (common-exceptions.o): New rule.
185 * exceptions.h (common-exceptions.h): Include.
186 (gdb_setjmp.h): Do not include.
187 (return_reason): Moved to common-exceptions.h.
188 (enum return_reason): Likewise.
189 (RETURN_MASK): Likewise.
190 (typedef return_mask): Likewise.
191 (enum errors): Likewise.
192 (struct gdb_exception): Likewise.
193 (exceptions_state_mc_init): Likewise.
194 (exceptions_state_mc_action_iter): Likewise.
195 (exceptions_state_mc_action_iter_1): Likewise.
196 (TRY_CATCH): Likewise.
197 (throw_exception): Likewise.
198 (throw_verror): Likewise.
199 (throw_vquit): Likewise.
200 (throw_error): Likewise.
201 (throw_quit): Likewise.
202 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
203 (enum catcher_action): Likewise.
204 (struct catcher): Likewise.
205 (current_catcher): Likewise.
206 (catcher_list_size): Likewise.
207 (exceptions_state_mc_init): Likewise.
208 (catcher_pop): Likewise.
209 (exceptions_state_mc): Likewise.
210 (exceptions_state_mc_action_iter): Likewise.
211 (exceptions_state_mc_action_iter_1): Likewise.
212 (throw_exception): Likewise.
213 (exception_messages): Likewise.
214 (exception_messages_size): Likewise.
215 (throw_it): Likewise.
216 (throw_verror): Likewise.
217 (throw_vquit): Likewise.
218 (throw_error): Likewise.
219 (throw_quit): Likewise.
220 (prepare_to_throw_exception): New function.
221
e9bcb658
GB
2222014-08-29 Gary Benson <gbenson@redhat.com>
223
224 * common/gdb_setjmp.h: New file.
225 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
226 * configure.ac: Move sigsetjmp check...
227 * common/common.m4: ...here.
228 * configure: Regenerate.
229 * cp-support.c (SIGJMP_BUF): Delete.
230 (SIGSETJMP): Likewise.
231 (SIGLONGJMP): Likewise.
232 * exceptions.h (gdb_setjmp.h): Include.
233 (setjmp.h): Do not include.
234 (EXCEPTIONS_SIGJMP_BUF): Delete.
235 (EXCEPTIONS_SIGSETJMP): Likewise.
236 (EXCEPTIONS_SIGLONGJMP): Likewise.
237 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
238 from gdb_setjmp.h.
239 * exceptions.c: Likewise.
240
e3180625
GB
2412014-08-29 Gary Benson <gbenson@redhat.com>
242
243 * cleanups.h: Moved to...
244 * common/cleanups.h: New file.
245 * cleanups.c: Moved to...
246 * common/cleanups.c: New file. Include common-defs.h and
247 cleanups.h. Do not include defs.h.
248 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
249 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
250 (cleanups.o): New rule.
251
e3d6ba5d
GB
2522014-08-29 Gary Benson <gbenson@redhat.com>
253
254 * common/errors.h (internal_warning): New declaration.
255 (internal_vwarning): Likewise.
256 * common/errors.c (internal_warning): New function.
257 * utils.h (internal_warning): Don't declare.
258 (internal_vwarning): Likewise.
259 * utils.c (internal_warning): Removed.
260
075c7033
GB
2612014-08-29 Gary Benson <gbenson@redhat.com>
262
263 * main.c (captured_main): Use warning during startup.
264 Prefix startup warning messages with command name.
265
91b35fd0
GB
2662014-08-29 Gary Benson <gbenson@redhat.com>
267
268 * main.c (captured_main): Handle usage errors with error.
269
b1ec390e
GB
2702014-08-29 Gary Benson <gbenson@redhat.com>
271
272 * go32-nat.c (go32_create_inferior): Replace a fprintf/
273 exit pair with a call to error. Wrap the message with _().
274
fd0ef3dd
GB
2752014-08-29 Gary Benson <gbenson@redhat.com>
276
277 * main.c (captured_main): Replace a fprintf/exit
278 pair with a call to error. Wrap the message with _().
279
e0e6bcab
GB
2802014-08-29 Gary Benson <gbenson@redhat.com>
281
282 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
283 pairs with calls to error. Wrap the message with _().
284
0d2f5c07
GB
2852014-08-29 Gary Benson <gbenson@redhat.com>
286
287 * utils.c (vwarning): Protect calls to target_terminal_ours
288 and wrap_here.
289
5df43998
GB
2902014-08-29 Gary Benson <gbenson@redhat.com>
291
292 * exceptions.c (print_flush): Protect calls to
293 target_terminal_ours and wrap_here.
294
2437fd32
GB
2952014-08-29 Gary Benson <gbenson@redhat.com>
296
297 * utils.h (filtered_printing_initialized): New declaration.
298 * utils.c (abort_with_message): New function.
299 (internal_vproblem): Use abort_with_message for first level
300 recursive internal problems, and if gdb_stderr is not set up.
301 Protect calls to target_terminal_ours, begin_line and query.
302
f1f58506
DE
3032014-08-28 Doug Evans <dje@google.com>
304
305 * symtab.c (in_prologue): Move definition to better spot.
306 (skip_prologue_using_sal): Ditto.
307
aab2f208
DE
3082014-08-28 Doug Evans <dje@google.com>
309
310 * symtab.c (find_function_start_sal): Move definition to better spot.
311
6b65d1b6
YQ
3122014-08-28 Yao Qi <yao@codesourcery.com>
313
314 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
315 found_stack_adjust in forward scan. Remove condition check
316 on found_stack_adjust which is always true. Indent the code.
317
a1b34d15
YQ
3182014-08-28 Yao Qi <yao@codesourcery.com>
319
320 * dwarf2read.c (dwarf_decode_lines): Update declaration.
321 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
322 (dwarf_decode_lines): Remove argument
323 want_line_info. Remove condition check on want_line_info.
324 Callers update.
325
d5962de5
DE
3262014-08-27 Doug Evans <dje@google.com>
327
328 * dwarf2read.c (dwarf_record_line): Fix typo.
329
9b139002
SDJ
3302014-08-27 Patrick Palka <patrick@parcs.ath.cx>
331
332 * target.h (struct target_ops::to_terminal_save_ours): Remove
333 declaration.
334 (target_terminal_save_ours): Remove macro.
335 * target-delegates.c: Regenerate.
336 * inf-child.c (inf_child_target): Don't set the nonexistent
337 field to_terminal_save_ours.
338 * inferior.h (child_terminal_save_ours): Remove declaration.
339 * terminal.h (gdb_save_tty_state): New declaration.
340 * inflow.c (child_terminal_save_ours): Rename to ...
341 (gdb_save_tty_state): ... this.
342 * tui/tui.c: Include terminal.h.
343 (tui_enable): Use gdb_save_tty_state instead of
344 target_terminal_save_ours.
345 (tui_disable): Likewise.
346
9debeba0
DE
3472014-08-25 Doug Evans <dje@google.com>
348
349 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
350 Pass NULL instead of 0 for context pointer.
351
428fc5fc
YQ
3522014-08-25 Yao Qi <yao@codesourcery.com>
353
354 * dwarf2read.c: Fix grammatical error.
355
cdc07690
YQ
3562014-08-24 Yao Qi <yao@codesourcery.com>
357
358 * dwarf2read.c (scan_partial_symbols): Update comments.
359 Rename argument 'need_pc' with 'set_addrmap'.
360 (add_partial_namespace): Rename argument 'need_pc' with
361 'set_addrmap'.
362 (add_partial_module): Likewise.
363 (add_partial_subprogram): Likewise. Update comments.
364 (dwarf2_name): Fix typo.
365
a05a36a5
DE
3662014-08-22 Doug Evans <dje@google.com>
367
368 PR 17276
369 * dwarf2read.c (dwarf_record_line_p): New function.
370 (dwarf_decode_lines_1): Ignore subsequent line number entries
371 for the same line if any entry had a non-zero discriminator.
372
252a6764
DE
3732014-08-22 Doug Evans <dje@google.com>
374
375 * buildsym.h (record_line_ftype): New typedef.
376 (record_line): Use it.
377 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
378 (dwarf_decode_lines_1): Call them.
379
510db052
YQ
3802014-08-22 Yao Qi <yao@codesourcery.com>
381
382 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
383 (ctf_end): Remove code.
384
22fd09ae
JK
3852014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
388 (linux_make_corefile_notes): call update_thread_list, protected against
389 exceptions.
390
656e8868
PA
3912014-08-21 Pedro Alves <palves@redhat.com>
392
393 * infcmd.c (attach_command): Remove comment.
394
de589d04
WN
3952014-08-21 Bin Cheng <bin.cheng@arm.com>
396
397 * aarch64-linux-nat.c (dr_changed_t): Change the type from
398 unsigned LONGEST to ULONGEST.
399
2a31c623
PA
4002014-08-20 Pedro Alves <palves@redhat.com>
401
402 * Makefile.in (check-read1): New rule.
403
d36430db
JB
4042014-08-20 Joel Brobecker <brobecker@adacore.com>
405
406 * value.c (value_from_contents_and_address): Strip resolved_type's
407 typedef layers before checking its TYPE_DATA_LOCATION.
408
000339af
PA
4092014-08-20 Pedro Alves <palves@redhat.com>
410
411 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
412
5f52445b
YQ
4132014-08-20 Yao Qi <yao@codesourcery.com>
414
415 * amd64-tdep.c (amd64_classify): Add a blank line after the
416 example. Move "*/" to a new line.
417 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
418 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
419 * dwarf2read.c (psymtab_include_file_name): Likewise.
420
9a0dc9e3
PA
4212014-08-19 Andrew Burgess <aburgess@broadcom.com>
422 Pedro Alves <palves@redhat.com>
423
424 PR symtab/14604
425 PR symtab/14605
426 * ada-lang.c (coerce_unspec_val_to_type): Use
427 value_contents_copy_raw.
428 * ada-valprint.c (val_print_packed_array_elements): Adjust.
429 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
430 * cp-valprint.c (cp_print_value_fields): Let the common printing
431 code handle optimized out values.
432 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
433 * d-valprint.c (dynamic_array_type): Use
434 value_bits_any_optimized_out.
435 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
436 check_any_valid fields.
437 (check_pieced_value_bits): Delete and inline ...
438 (check_pieced_synthetic_pointer): ... here.
439 (check_pieced_value_validity): Delete.
440 (check_pieced_value_invalid): Delete.
441 (pieced_value_funcs): Remove check_validity and check_any_valid
442 fields.
443 (read_pieced_value): Use mark_value_bits_optimized_out.
444 (write_pieced_value): Switch to use
445 mark_value_bytes_optimized_out.
446 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
447 of assuming the whole value is optimized out.
448 * findvar.c (read_frame_register_value): Remove special handling
449 of optimized out registers.
450 (value_from_register): Use mark_value_bytes_optimized_out.
451 * frame-unwind.c (frame_unwind_got_optimized): Use
452 mark_value_bytes_optimized_out.
453 * jv-valprint.c (java_value_print): Adjust.
454 (java_print_value_fields): Let the common printing code handle
455 optimized out values.
456 * mips-tdep.c (mips_print_register): Remove special handling of
457 optimized out registers.
458 * opencl-lang.c (lval_func_check_validity): Delete.
459 (lval_func_check_any_valid): Delete.
460 (opencl_value_funcs): Remove check_validity and check_any_valid
461 fields.
462 * p-valprint.c (pascal_object_print_value_fields): Let the common
463 printing code handle optimized out values.
464 * stack.c (read_frame_arg): Remove special handling of optimized
465 out values. Fetch both VAL and ENTRYVAL before comparing
466 contents. Adjust to value_available_contents_eq rename.
467 * valprint.c (valprint_check_validity)
468 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
469 (val_print_array_elements): Adjust.
470 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
471 (value_bits_any_optimized_out): New function.
472 (value_entirely_covered_by_range_vector): New function, factored
473 out from value_entirely_unavailable.
474 (value_entirely_unavailable): Reimplement.
475 (value_entirely_optimized_out): New function.
476 (insert_into_bit_range_vector): New function, factored out from
477 mark_value_bits_unavailable.
478 (mark_value_bits_unavailable): Reimplement.
479 (struct ranges_and_idx): New struct.
480 (find_first_range_overlap_and_match): New function, factored out
481 from value_available_contents_bits_eq.
482 (value_available_contents_bits_eq): Rename to ...
483 (value_contents_bits_eq): ... this. Check both unavailable
484 contents and optimized out contents.
485 (value_available_contents_eq): Rename to ...
486 (value_contents_eq): ... this.
487 (allocate_value_lazy): Remove reference to the old optimized_out
488 boolean.
489 (allocate_optimized_out_value): Use
490 mark_value_bytes_optimized_out.
491 (require_not_optimized_out): Adjust to check whether the
492 optimized_out vec is empty.
493 (ranges_copy_adjusted): New function, factored out from
494 value_contents_copy_raw.
495 (value_contents_copy_raw): Also copy the optimized out ranges.
496 Assert the destination ranges aren't optimized out.
497 (value_contents_copy): Update comment, remove call to
498 require_not_optimized_out.
499 (value_contents_equal): Adjust to check whether the optimized_out
500 vec is empty.
501 (set_value_optimized_out, value_optimized_out_const): Delete.
502 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
503 New functions.
504 (value_entirely_optimized_out, value_bits_valid): Delete.
505 (value_copy): Take a VEC copy of the 'optimized_out' field.
506 (value_primitive_field): Remove special handling of optimized out.
507 (value_fetch_lazy): Assert that lazy values have no unavailable
508 regions. Use value_bits_any_optimized_out. Remove some special
509 handling for optimized out values.
510 * value.h: Add intro comment about <optimized out> and
511 <unavailable>.
512 (struct lval_funcs): Remove check_validity and check_any_valid
513 fields.
514 (set_value_optimized_out, value_optimized_out_const): Remove.
515 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
516 New declarations.
517 (value_bits_any_optimized_out): New declaration.
518 (value_bits_valid): Delete declaration.
519 (value_available_contents_eq): Rename to ...
520 (value_contents_eq): ... this, and extend comments.
521
6694c411
JK
5222014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 Fix -fsanitize=address on unreadable inferior strings.
525 * valprint.c (val_print_string): Fix access before BUFFER.
526
89a1c21a
SM
5272014-08-19 Simon Marchi <simon.marchi@ericsson.com>
528
529 * target.c (target_struct_size): Remove.
530 (target_struct_allocsize): Remove.
531 (DEFAULT_ALLOCSIZE): Remove.
532 (target_ops_p): New typedef.
533 (DEF_VEC_P (target_ops_p)): New vector type.
534 (target_structs): Change type to VEC (target_ops_p).
535 (add_target_with_completer): Replace "push" code by VEC_safe_push.
536 (find_default_run_target): Rewrite for loop following changes to
537 target_structs.
538
cb417230
JB
5392014-08-19 Joel Brobecker <brobecker@adacore.com>
540
541 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
542 Adjust code accordingly. Adjust function description comment.
543
817e0957
YQ
5442014-08-19 Yao Qi <yao@codesourcery.com>
545
546 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
547 types.
548
2974be62
AM
5492014-08-19 Alan Modra <amodra@gmail.com>
550
551 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
552 * config.in: Regenerate.
553 * configure: Regenerate.
554
34abf635
GB
5552014-08-19 Tom Tromey <tromey@redhat.com>
556 Gary Benson <gbenson@redhat.com>
557
558 * common/common-debug.h: New file.
559 * common/common-debug.c: Likewise.
560 * debug.c: Likewise.
561 * Makefile.in (SFILES): Add common/common-debug.c.
562 (HFILES_NO_SRCDIR): Add common/common-debug.h.
563 (COMMON_OBS): Add common-debug.o and debug.o.
564 (common-debug.o): New rule.
565 * common/common-defs.h: Include common-debug.h.
566 * common/agent.c (debug_agent_printf): New function.
567 (DEBUG_AGENT): Redefine.
568 * nat/i386-dregs.c (debug_printf): Undefine.
569
f6e94d78
GB
5702014-08-19 Gary Benson <gbenson@redhat.com>
571
572 * common/common-defs.h: Include print-utils.h.
573 * utils.h: Do not include print-utils.h.
574
9239eeab
GB
5752014-08-19 Tom Tromey <tromey@redhat.com>
576 Gary Benson <gbenson@redhat.com>
577
578 * common/common-types.h: New file.
579 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
580 * common/common-defs.h: Include common-types.h.
581 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
582 (ULONGEST): Remove.
583
ef87c8bb
GB
5842014-08-19 Tom Tromey <tromey@redhat.com>
585 Gary Benson <gbenson@redhat.com>
586
587 * common/errors.h: New file.
588 * common/errors.c: Likewise.
589 * Makefile.in (SFILES): Add common/errors.c.
590 (HFILES_NO_SRCDIR): Add common/errors.h.
591 (COMMON_OBS): Add errors.o.
592 (errors.o): New rule.
593 * common/common-defs.h: Include errors.h.
594 * utils.h (perror_with_name, error, verror, warning, vwarning):
595 Don't declare.
596 * common/common-utils.h: (malloc_failure, internal_error):
597 Likewise.
598
196a707b
GB
5992014-08-19 Gary Benson <gbenson@redhat.com>
600
601 * utils.c (internal_vproblem): Always print the message.
602
ded4fc8f
DE
6032014-08-18 Doug Evans <dje@google.com>
604
605 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
606
950c97d8
JB
6072014-08-18 Joel Brobecker <brobecker@adacore.com>
608
609 * ada-typeprint.c (type_is_full_subrange_of_target_type):
610 Return 0 if TYPE is dynamic.
611 (print_range): Add handling of dynamic ranges.
612
3cdcd0ce
JB
6132014-08-18 Keven Boell <keven.boell@intel.com>
614 Joel Brobecker <brobecker@adacore.com>
615
616 * gdbtypes.h (struct main_type): Add field "data_location".
617 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
618 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
619 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
620 a dynamic data location.
621 (resolve_dynamic_type): Add DW_AT_data_location handling.
622 (copy_recursive, copy_type): Copy the data_location information
623 when present.
624 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
625 * value.c (value_from_contents_and_address): Add
626 DW_AT_data_location handling.
627
08412b07
JB
6282014-08-18 Keven Boell <keven.boell@intel.com>
629 Joel Brobecker <brobecker@adacore.com>
630
631 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
632 field "get_object_address".
633 * dwarf2expr.c (execute_stack_op): Add handling for
634 DW_OP_push_object_address.
635 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
636 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
637 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
638 (dwarf_expr_get_obj_addr): New function.
639 (dwarf_expr_ctx_funcs): Add get_object_address field.
640 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
641 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
642 (dwarf2_evaluate_property): Add parameter "address". Use it.
643 (needs_get_obj_addr): New function.
644 (needs_frame_ctx_funcs): Add get_object_address field.
645 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
646 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
647 (resolve_dynamic_array): Likewise.
648
84754697
JB
6492014-08-18 Joel Brobecker <brobecker@adacore.com>
650
651 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
652 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
653 fixed value for records and unions for which some GNAT encodings
654 are present.
655
da5c522f
JB
6562014-08-18 Joel Brobecker <brobecker@adacore.com>
657
658 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
659 rewrite to avoid "else if" and "else" constructs. Should be
660 a no-op in practice.
661
0d72a7c3
JB
6622014-08-18 Joel Brobecker <brobecker@adacore.com>
663
664 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
665 of lexical block.
666
e66d4446
SC
6672014-08-15 Siva Chandra Reddy <sivachandra@google.com>
668
669 PR c++/17132
670 * eval.c: Update all calls to find_overload_match.
671 * valarith.c: Likewise.
672 (value_user_defined_cpp_op, value_user_defined_op): New
673 argument NOSIDE. Update all callers.
674 * valops.c (find_overload_match): New argument NOSIDE.
675 * value.h (find_overload_match): Update signature.
676
940df408
SC
6772014-08-15 Siva Chandra Reddy <sivachandra@google.com>
678
679 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
680 'items' methods instead of 'iteritems' method on dictionaries.
681
699ca60a
DE
6822014-08-15 Doug Evans <dje@google.com>
683
684 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
685 closer to use.
686
37780ee5
DE
6872014-08-15 Doug Evans <dje@google.com>
688
689 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
690
0ad93d4f
DE
6912014-08-15 Doug Evans <dje@google.com>
692
693 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
694
20d8c372
DE
6952014-08-15 Doug Evans <dje@google.com>
696
697 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
698 unused.
699
cb039ba4
EZ
7002014-08-15 Eli Zaretskii <eliz@gnu.org>
701
702 * dcache.h: Include target.h, to avoid compile time warnings.
703
eb7a547a
JB
7042014-08-15 Joel Brobecker <brobecker@adacore.com>
705
706 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
707 frame_info" partial declaration.
708 * gdbarch.h: Regenerate.
709
783cecc8
YQ
7102014-08-15 Yao Qi <yao@codesourcery.com>
711
712 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
713 Add parameter 'decode_for_pst_p'. Callers update.
714
65c749e7
YQ
7152014-08-13 Yao Qi <yao@codesourcery.com>
716
717 PR build/17104
718 * configure.ac: Use local variable 'pos'.
719 * configure: Regenerated.
720
d769e349
DE
7212014-08-11 Doug Evans <dje@google.com>
722
723 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
724 message, it is redundant with "Reading symbols from ..." message.
725
24f1235e
DE
7262014-08-10 Doug Evans <xdje42@gmail.com>
727
728 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
729
dcd2e6ef
YQ
7302014-08-09 Yao Qi <yao@codesourcery.com>
731
732 PR remote/9053
733 * remote.c (remote_xfer_partial): Remove dead code.
734
070bdf0b
AA
7352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
736
737 * ia64-linux-tdep.c: Include "regset.h".
738 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
739 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
740 (ia64_linux_supply_fpregset): New function.
741 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
742 (ia64_linux_regset_from_core_section): New function.
743 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
744 method.
745
08f9f542
AA
7462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
747
748 * m68klinux-tdep.c: Include "regset.h".
749 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
750 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
751 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
752 (m68k_linux_regset_from_core_section): New function.
753 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
754 method.
755
8f1cee41
AA
7562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
757
758 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
759 function. Move logic to...
760 (tilegx_linux_regmap): ... this new register map.
761 (tilegx_linux_regset): Refer to register map, replace supply
762 method by regcache_supply_regset, and add collect method.
763 * tilegx-tdep.h (enum tilegx_regnum): New enum value
764 TILEGX_FIRST_EASY_REGNUM.
765
c5741217
AA
7662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
767
768 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
769 that calls regcache_supply_regset and handles the EPC register
770 separately. Move main logic to...
771 (score7_linux_gregmap): ... this new register map.
772 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
773 (score7_linux_gregset): Refer to register map. Add collect method.
774 (score7_linux_regset_from_core_section): Replace
775 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
776 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
777 (struct regset): Delete unused forward declaraction.
778 (struct pt_regs): Delete structure definition.
779 (elf_gregset_t): Delete typedef.
780
81580573
AA
7812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
782
783 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
784 (nios2_core_regset): Add collect method.
785
ba199d7d
AA
7862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
787
788 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
789 platform-independent and don't write to read-only input buffer.
790 (m32r_linux_collect_gregset): New function.
791 (m32r_linux_gregset): Add collect method.
792
0006a9da
AA
7932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
794
795 * hppa-linux-tdep.c (greg_map): Rename to...
796 (hppa_linux_gregmap): ... this. Also convert to
797 regcache_map_entry format.
798 (hppa_linux_supply_regset): Delete function.
799 (hppa_linux_supply_fpregset): Delete function. Move logic to...
800 (hppa_linux_fpregmap): ... this new register map.
801 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
802 register map, replace supply method by regcache_supply_regset, and
803 add collect method regcache_collect_regset.
804
901e1b23
AA
8052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
806
807 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
808 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
809 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
810 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
811 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
812 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
813 (frv_linux_supply_gregset): Replace main logic by call to
814 regcache_supply_regset, but keep clearing gr32-gr63.
815 (frv_linux_supply_fpregset): Delete function.
816 (frv_linux_gregset): Refer to appropriate register map and add
817 regcache_collect_regset as the collect method.
818 (frv_linux_fpregset): Likewise. Also exchange the supply method
819 by regcache_supply_regset.
820
1d6e7555
AA
8212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
822
823 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
824 by call to alpha_supply_int_regs.
825 (alpha_linux_collect_gregset): New function.
826 (alpha_linux_supply_fpregset): Replace logic by call to
827 alpha_supply_fp_regs.
828 (alpha_linux_collect_fpregset): New function.
829 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
830
d4d793bf
AA
8312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
832
833 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
834 by call to regcache_collect_regset.
835 (supply_gregset, supply_fpregset): Call regcache_supply_regset
836 instead of aarch64_linux_supply_gregset/_fpregset.
837 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
838 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
839 header file instead.
840 (aarch64_linux_supply_gregset, supply_gregset_from_core)
841 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
842 functions. Move logic to ...
843 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
844 register maps.
845 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
846 refer to new register maps, replace *_regset_from_core by
847 regcache_supply_regset, and also use regcache_collect_regset.
848 * aarch64-linux-tdep.h: Include "regset.h".
849 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
850 Delete prototypes.
851 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
852 macros, moved from C source file.
853 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
854 variable declarations.
855
99b7da5d
AA
8562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
857
858 * s390-linux-nat.c: Include "regset.h".
859 (regmap_gregset): Delete macro.
860 (s390_64_regmap_gregset): New register map for
861 regcache_supply/_collect_regset.
862 (s390_64_gregset): New regset.
863 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
864 (regmap_fpregset): Delete macro.
865 (s390_native_supply, s390_native_collect): Delete functions.
866 (supply_gregset, fill_gregset): Replace s390-specific regmap
867 handling by a call to regcache_supply/_collect_regset.
868 (supply_fpregset, fill_fpregset): Call regcache_supply/
869 _collect_regset instead of s390_native_supply/_collect.
870 (fetch_regset, store_regset): Likewise. Also change the last
871 parameter to a regset instead of a regmap.
872 (s390_linux_fetch_inferior_registers)
873 (390_linux_store_inferior_registers): Adjust last parameter in
874 calls to fetch_regset and store_regset.
875 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
876 (s390_gregmap): ... this. Also make static const and convert to
877 regcache_map_entry format.
878 (s390x_regmap_gregset): Delete.
879 (s390_regmap_fpregset): Rename to...
880 (s390_fpregmap): ... this. Make static const and convert to
881 regcache_map_entry format.
882 (s390_regmap_upper, s390_regmap_last_break)
883 (s390x_regmap_last_break, s390_regmap_system_call)
884 (s390_regmap_tdb): Likewise.
885 (s390_supply_regset, s390_collect_regset): Remove functions.
886 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
887 s390_supply_regset.
888 (s390_gregset, s390_fpregset, s390_upper_regset)
889 (s390_last_break_regset, s390x_last_break_regset)
890 (s390_system_call_regset, s390_tdb_regset): Make global and
891 replace s390_supply/_collect_regset by regcache_supply/
892 _collect_regset.
893 (s390x_gregset): Delete.
894 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
895 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
896 (s390_regmap_fpregset, s390_regmap_last_break)
897 (s390x_regmap_last_break, s390_regmap_system_call)
898 (s390_regmap_tdb): Delete global variable declarations.
899 (s390_gregset, s390_fpregset, s390_last_break_regset)
900 (s390x_last_break_regset, s390_system_call_regset)
901 (s390_tdb_regset): New global variable declarations.
902
0b309272
AA
9032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
904
905 * regcache.c: Include "regset.h".
906 (regcache_transfer_regset): New local function.
907 (regcache_supply_regset, regcache_collect_regset): New functions.
908 * regcache.h (struct regcache_map_entry): New structure.
909 (REGCACHE_MAP_SKIP): New enum value.
910 (regcache_supply_regset, regcache_collect_regset): New prototypes.
911
7fefa8d7
AA
9122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
913
914 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
915 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
916 (ppc_linux_collect_gregset ): Likewise.
917 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
918 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
919 (ppc_collect_vrregset): Likewise.
920 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
921 Likewise.
922
96c4f946
YQ
9232014-08-07 Yao Qi <yao@codesourcery.com>
924
925 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
926 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
927 * remote.c (remote_read_bytes): Likewise.
928
fffbe6a8
YQ
9292014-08-07 Yao Qi <yao@codesourcery.com>
930
931 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
932
5ee8a82c
YQ
9332014-08-07 Yao Qi <yao@codesourcery.com>
934
935 PR remote/17230
936 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
937 TARGET_XFER_OK instead of 0.
938
bb974a24
GB
9392014-08-07 Gary Benson <gbenson@redhat.com>
940
941 * common/common-defs.h: Include errno.h.
942 * defs.h: Do not include errno.h.
943 * ada-typeprint.c: Likewise.
944 * c-typeprint.c: Likewise.
945 * core-regset.c: Likewise.
946 * corefile.c: Likewise.
947 * corelow.c: Likewise.
948 * event-loop.c: Likewise.
949 * f-typeprint.c: Likewise.
950 * gnu-nat.c: Likewise.
951 * go32-nat.c: Likewise.
952 * i386gnu-nat.c: Likewise.
953 * m2-typeprint.c: Likewise.
954 * nat/linux-btrace.c: Likewise.
955 * p-typeprint.c: Likewise.
956 * procfs.c: Likewise.
957 * remote-sim.c: Likewise.
958 * rs6000-nat.c: Likewise.
959 * target.c: Likewise.
960 * typeprint.c: Likewise.
961 * ui-file.c: Likewise.
962 * valops.c: Likewise.
963 * valprint.c: Likewise.
964
6d3d12eb
GB
9652014-08-07 Gary Benson <gbenson@redhat.com>
966
967 * common/common-defs.h: Include string.h.
968 * aarch64-tdep.c: Do not include string.h.
969 * ada-exp.y: Likewise.
970 * ada-lang.c: Likewise.
971 * ada-lex.l: Likewise.
972 * ada-typeprint.c: Likewise.
973 * ada-valprint.c: Likewise.
974 * aix-thread.c: Likewise.
975 * alpha-linux-tdep.c: Likewise.
976 * alpha-mdebug-tdep.c: Likewise.
977 * alpha-nat.c: Likewise.
978 * alpha-osf1-tdep.c: Likewise.
979 * alpha-tdep.c: Likewise.
980 * alphanbsd-tdep.c: Likewise.
981 * amd64-dicos-tdep.c: Likewise.
982 * amd64-linux-tdep.c: Likewise.
983 * amd64-nat.c: Likewise.
984 * amd64-sol2-tdep.c: Likewise.
985 * amd64fbsd-tdep.c: Likewise.
986 * amd64obsd-tdep.c: Likewise.
987 * arch-utils.c: Likewise.
988 * arm-linux-nat.c: Likewise.
989 * arm-linux-tdep.c: Likewise.
990 * arm-tdep.c: Likewise.
991 * arm-wince-tdep.c: Likewise.
992 * armbsd-tdep.c: Likewise.
993 * armnbsd-nat.c: Likewise.
994 * armnbsd-tdep.c: Likewise.
995 * armobsd-tdep.c: Likewise.
996 * avr-tdep.c: Likewise.
997 * ax-gdb.c: Likewise.
998 * ax-general.c: Likewise.
999 * bcache.c: Likewise.
1000 * bfin-tdep.c: Likewise.
1001 * breakpoint.c: Likewise.
1002 * build-id.c: Likewise.
1003 * buildsym.c: Likewise.
1004 * c-exp.y: Likewise.
1005 * c-lang.c: Likewise.
1006 * c-typeprint.c: Likewise.
1007 * c-valprint.c: Likewise.
1008 * charset.c: Likewise.
1009 * cli-out.c: Likewise.
1010 * cli/cli-cmds.c: Likewise.
1011 * cli/cli-decode.c: Likewise.
1012 * cli/cli-dump.c: Likewise.
1013 * cli/cli-interp.c: Likewise.
1014 * cli/cli-logging.c: Likewise.
1015 * cli/cli-script.c: Likewise.
1016 * cli/cli-setshow.c: Likewise.
1017 * cli/cli-utils.c: Likewise.
1018 * coffread.c: Likewise.
1019 * common/agent.c: Likewise.
1020 * common/buffer.c: Likewise.
1021 * common/buffer.h: Likewise.
1022 * common/common-utils.c: Likewise.
1023 * common/filestuff.c: Likewise.
1024 * common/filestuff.c: Likewise.
1025 * common/format.c: Likewise.
1026 * common/print-utils.c: Likewise.
1027 * common/rsp-low.c: Likewise.
1028 * common/signals.c: Likewise.
1029 * common/vec.h: Likewise.
1030 * common/xml-utils.c: Likewise.
1031 * core-regset.c: Likewise.
1032 * corefile.c: Likewise.
1033 * corelow.c: Likewise.
1034 * cp-abi.c: Likewise.
1035 * cp-name-parser.y: Likewise.
1036 * cp-support.c: Likewise.
1037 * cp-valprint.c: Likewise.
1038 * cris-tdep.c: Likewise.
1039 * d-exp.y: Likewise.
1040 * darwin-nat.c: Likewise.
1041 * dbxread.c: Likewise.
1042 * dcache.c: Likewise.
1043 * demangle.c: Likewise.
1044 * dicos-tdep.c: Likewise.
1045 * disasm.c: Likewise.
1046 * doublest.c: Likewise.
1047 * dsrec.c: Likewise.
1048 * dummy-frame.c: Likewise.
1049 * dwarf2-frame.c: Likewise.
1050 * dwarf2loc.c: Likewise.
1051 * dwarf2read.c: Likewise.
1052 * elfread.c: Likewise.
1053 * environ.c: Likewise.
1054 * eval.c: Likewise.
1055 * event-loop.c: Likewise.
1056 * exceptions.c: Likewise.
1057 * exec.c: Likewise.
1058 * expprint.c: Likewise.
1059 * f-exp.y: Likewise.
1060 * f-lang.c: Likewise.
1061 * f-typeprint.c: Likewise.
1062 * f-valprint.c: Likewise.
1063 * fbsd-nat.c: Likewise.
1064 * findcmd.c: Likewise.
1065 * findvar.c: Likewise.
1066 * fork-child.c: Likewise.
1067 * frame.c: Likewise.
1068 * frv-linux-tdep.c: Likewise.
1069 * frv-tdep.c: Likewise.
1070 * gdb.c: Likewise.
1071 * gdb_bfd.c: Likewise.
1072 * gdbarch.c: Likewise.
1073 * gdbarch.sh: Likewise.
1074 * gdbtypes.c: Likewise.
1075 * gnu-nat.c: Likewise.
1076 * gnu-v2-abi.c: Likewise.
1077 * gnu-v3-abi.c: Likewise.
1078 * go-exp.y: Likewise.
1079 * go-lang.c: Likewise.
1080 * go32-nat.c: Likewise.
1081 * guile/guile.c: Likewise.
1082 * guile/scm-auto-load.c: Likewise.
1083 * hppa-hpux-tdep.c: Likewise.
1084 * hppa-linux-nat.c: Likewise.
1085 * hppanbsd-tdep.c: Likewise.
1086 * hppaobsd-tdep.c: Likewise.
1087 * i386-cygwin-tdep.c: Likewise.
1088 * i386-dicos-tdep.c: Likewise.
1089 * i386-linux-tdep.c: Likewise.
1090 * i386-nto-tdep.c: Likewise.
1091 * i386-sol2-tdep.c: Likewise.
1092 * i386-tdep.c: Likewise.
1093 * i386bsd-tdep.c: Likewise.
1094 * i386gnu-nat.c: Likewise.
1095 * i386nbsd-tdep.c: Likewise.
1096 * i386obsd-tdep.c: Likewise.
1097 * i387-tdep.c: Likewise.
1098 * ia64-libunwind-tdep.c: Likewise.
1099 * ia64-linux-nat.c: Likewise.
1100 * inf-child.c: Likewise.
1101 * inf-ptrace.c: Likewise.
1102 * inf-ttrace.c: Likewise.
1103 * infcall.c: Likewise.
1104 * infcmd.c: Likewise.
1105 * inflow.c: Likewise.
1106 * infrun.c: Likewise.
1107 * interps.c: Likewise.
1108 * iq2000-tdep.c: Likewise.
1109 * irix5-nat.c: Likewise.
1110 * jv-exp.y: Likewise.
1111 * jv-lang.c: Likewise.
1112 * jv-typeprint.c: Likewise.
1113 * jv-valprint.c: Likewise.
1114 * language.c: Likewise.
1115 * linux-fork.c: Likewise.
1116 * linux-nat.c: Likewise.
1117 * lm32-tdep.c: Likewise.
1118 * m2-exp.y: Likewise.
1119 * m2-typeprint.c: Likewise.
1120 * m32c-tdep.c: Likewise.
1121 * m32r-linux-nat.c: Likewise.
1122 * m32r-linux-tdep.c: Likewise.
1123 * m32r-rom.c: Likewise.
1124 * m32r-tdep.c: Likewise.
1125 * m68hc11-tdep.c: Likewise.
1126 * m68k-tdep.c: Likewise.
1127 * m68kbsd-tdep.c: Likewise.
1128 * m68klinux-nat.c: Likewise.
1129 * m68klinux-tdep.c: Likewise.
1130 * m88k-tdep.c: Likewise.
1131 * machoread.c: Likewise.
1132 * macrocmd.c: Likewise.
1133 * main.c: Likewise.
1134 * mdebugread.c: Likewise.
1135 * mem-break.c: Likewise.
1136 * memattr.c: Likewise.
1137 * memory-map.c: Likewise.
1138 * mep-tdep.c: Likewise.
1139 * mi/mi-cmd-break.c: Likewise.
1140 * mi/mi-cmd-disas.c: Likewise.
1141 * mi/mi-cmd-env.c: Likewise.
1142 * mi/mi-cmd-stack.c: Likewise.
1143 * mi/mi-cmd-var.c: Likewise.
1144 * mi/mi-cmds.c: Likewise.
1145 * mi/mi-console.c: Likewise.
1146 * mi/mi-getopt.c: Likewise.
1147 * mi/mi-interp.c: Likewise.
1148 * mi/mi-main.c: Likewise.
1149 * mi/mi-parse.c: Likewise.
1150 * microblaze-rom.c: Likewise.
1151 * microblaze-tdep.c: Likewise.
1152 * mingw-hdep.c: Likewise.
1153 * minidebug.c: Likewise.
1154 * minsyms.c: Likewise.
1155 * mips-irix-tdep.c: Likewise.
1156 * mips-linux-tdep.c: Likewise.
1157 * mips-tdep.c: Likewise.
1158 * mips64obsd-tdep.c: Likewise.
1159 * mipsnbsd-tdep.c: Likewise.
1160 * mipsread.c: Likewise.
1161 * mn10300-linux-tdep.c: Likewise.
1162 * mn10300-tdep.c: Likewise.
1163 * monitor.c: Likewise.
1164 * moxie-tdep.c: Likewise.
1165 * mt-tdep.c: Likewise.
1166 * nat/linux-btrace.c: Likewise.
1167 * nat/linux-osdata.c: Likewise.
1168 * nat/linux-procfs.c: Likewise.
1169 * nat/linux-ptrace.c: Likewise.
1170 * nat/linux-waitpid.c: Likewise.
1171 * nbsd-tdep.c: Likewise.
1172 * nios2-linux-tdep.c: Likewise.
1173 * nto-procfs.c: Likewise.
1174 * nto-tdep.c: Likewise.
1175 * objc-lang.c: Likewise.
1176 * objfiles.c: Likewise.
1177 * opencl-lang.c: Likewise.
1178 * osabi.c: Likewise.
1179 * osdata.c: Likewise.
1180 * p-exp.y: Likewise.
1181 * p-lang.c: Likewise.
1182 * p-typeprint.c: Likewise.
1183 * parse.c: Likewise.
1184 * posix-hdep.c: Likewise.
1185 * ppc-linux-nat.c: Likewise.
1186 * ppc-sysv-tdep.c: Likewise.
1187 * ppcfbsd-tdep.c: Likewise.
1188 * ppcnbsd-tdep.c: Likewise.
1189 * ppcobsd-tdep.c: Likewise.
1190 * printcmd.c: Likewise.
1191 * procfs.c: Likewise.
1192 * prologue-value.c: Likewise.
1193 * python/py-auto-load.c: Likewise.
1194 * python/py-gdb-readline.c: Likewise.
1195 * ravenscar-thread.c: Likewise.
1196 * regcache.c: Likewise.
1197 * registry.c: Likewise.
1198 * remote-fileio.c: Likewise.
1199 * remote-m32r-sdi.c: Likewise.
1200 * remote-mips.c: Likewise.
1201 * remote-notif.c: Likewise.
1202 * remote-sim.c: Likewise.
1203 * remote.c: Likewise.
1204 * reverse.c: Likewise.
1205 * rs6000-aix-tdep.c: Likewise.
1206 * ser-base.c: Likewise.
1207 * ser-go32.c: Likewise.
1208 * ser-mingw.c: Likewise.
1209 * ser-pipe.c: Likewise.
1210 * ser-tcp.c: Likewise.
1211 * ser-unix.c: Likewise.
1212 * serial.c: Likewise.
1213 * sh-tdep.c: Likewise.
1214 * sh64-tdep.c: Likewise.
1215 * shnbsd-tdep.c: Likewise.
1216 * skip.c: Likewise.
1217 * sol-thread.c: Likewise.
1218 * solib-dsbt.c: Likewise.
1219 * solib-frv.c: Likewise.
1220 * solib-osf.c: Likewise.
1221 * solib-som.c: Likewise.
1222 * solib-spu.c: Likewise.
1223 * solib-target.c: Likewise.
1224 * solib.c: Likewise.
1225 * somread.c: Likewise.
1226 * source.c: Likewise.
1227 * sparc-nat.c: Likewise.
1228 * sparc-sol2-tdep.c: Likewise.
1229 * sparc-tdep.c: Likewise.
1230 * sparc64-tdep.c: Likewise.
1231 * sparc64fbsd-tdep.c: Likewise.
1232 * sparc64nbsd-tdep.c: Likewise.
1233 * sparcnbsd-tdep.c: Likewise.
1234 * spu-linux-nat.c: Likewise.
1235 * spu-multiarch.c: Likewise.
1236 * spu-tdep.c: Likewise.
1237 * stabsread.c: Likewise.
1238 * stack.c: Likewise.
1239 * std-regs.c: Likewise.
1240 * symfile.c: Likewise.
1241 * symmisc.c: Likewise.
1242 * symtab.c: Likewise.
1243 * target.c: Likewise.
1244 * thread.c: Likewise.
1245 * tilegx-linux-nat.c: Likewise.
1246 * tilegx-tdep.c: Likewise.
1247 * top.c: Likewise.
1248 * tracepoint.c: Likewise.
1249 * tui/tui-command.c: Likewise.
1250 * tui/tui-data.c: Likewise.
1251 * tui/tui-disasm.c: Likewise.
1252 * tui/tui-file.c: Likewise.
1253 * tui/tui-layout.c: Likewise.
1254 * tui/tui-out.c: Likewise.
1255 * tui/tui-regs.c: Likewise.
1256 * tui/tui-source.c: Likewise.
1257 * tui/tui-stack.c: Likewise.
1258 * tui/tui-win.c: Likewise.
1259 * tui/tui-windata.c: Likewise.
1260 * tui/tui-winsource.c: Likewise.
1261 * typeprint.c: Likewise.
1262 * ui-file.c: Likewise.
1263 * ui-out.c: Likewise.
1264 * user-regs.c: Likewise.
1265 * utils.c: Likewise.
1266 * v850-tdep.c: Likewise.
1267 * valarith.c: Likewise.
1268 * valops.c: Likewise.
1269 * valprint.c: Likewise.
1270 * value.c: Likewise.
1271 * varobj.c: Likewise.
1272 * vax-tdep.c: Likewise.
1273 * vaxnbsd-tdep.c: Likewise.
1274 * vaxobsd-tdep.c: Likewise.
1275 * windows-nat.c: Likewise.
1276 * xcoffread.c: Likewise.
1277 * xml-support.c: Likewise.
1278 * xstormy16-tdep.c: Likewise.
1279 * xtensa-linux-nat.c: Likewise.
1280
dccbb609
GB
12812014-08-07 Gary Benson <gbenson@redhat.com>
1282
1283 * common/common-defs.h: Include gdb_assert.h.
1284 * aarch64-tdep.c: Do not include gdb_assert.h.
1285 * addrmap.c: Likewise.
1286 * aix-thread.c: Likewise.
1287 * alpha-linux-tdep.c: Likewise.
1288 * alpha-mdebug-tdep.c: Likewise.
1289 * alphanbsd-tdep.c: Likewise.
1290 * amd64-nat.c: Likewise.
1291 * amd64-tdep.c: Likewise.
1292 * amd64bsd-nat.c: Likewise.
1293 * amd64fbsd-nat.c: Likewise.
1294 * amd64fbsd-tdep.c: Likewise.
1295 * amd64nbsd-nat.c: Likewise.
1296 * amd64nbsd-tdep.c: Likewise.
1297 * amd64obsd-nat.c: Likewise.
1298 * amd64obsd-tdep.c: Likewise.
1299 * arch-utils.c: Likewise.
1300 * arm-tdep.c: Likewise.
1301 * armbsd-tdep.c: Likewise.
1302 * auxv.c: Likewise.
1303 * bcache.c: Likewise.
1304 * bfin-tdep.c: Likewise.
1305 * blockframe.c: Likewise.
1306 * breakpoint.c: Likewise.
1307 * bsd-kvm.c: Likewise.
1308 * bsd-uthread.c: Likewise.
1309 * buildsym.c: Likewise.
1310 * c-exp.y: Likewise.
1311 * c-lang.c: Likewise.
1312 * charset.c: Likewise.
1313 * cleanups.c: Likewise.
1314 * cli-out.c: Likewise.
1315 * cli/cli-decode.c: Likewise.
1316 * cli/cli-dump.c: Likewise.
1317 * cli/cli-logging.c: Likewise.
1318 * cli/cli-script.c: Likewise.
1319 * cli/cli-utils.c: Likewise.
1320 * coffread.c: Likewise.
1321 * common/common-utils.c: Likewise.
1322 * common/queue.h: Likewise.
1323 * common/signals.c: Likewise.
1324 * common/vec.h: Likewise.
1325 * complaints.c: Likewise.
1326 * completer.c: Likewise.
1327 * corelow.c: Likewise.
1328 * cp-abi.c: Likewise.
1329 * cp-name-parser.y: Likewise.
1330 * cp-namespace.c: Likewise.
1331 * cp-support.c: Likewise.
1332 * cris-tdep.c: Likewise.
1333 * dbxread.c: Likewise.
1334 * dictionary.c: Likewise.
1335 * doublest.c: Likewise.
1336 * dsrec.c: Likewise.
1337 * dummy-frame.c: Likewise.
1338 * dwarf2-frame-tailcall.c: Likewise.
1339 * dwarf2-frame.c: Likewise.
1340 * dwarf2expr.c: Likewise.
1341 * dwarf2loc.c: Likewise.
1342 * dwarf2read.c: Likewise.
1343 * eval.c: Likewise.
1344 * event-loop.c: Likewise.
1345 * exceptions.c: Likewise.
1346 * expprint.c: Likewise.
1347 * f-valprint.c: Likewise.
1348 * fbsd-nat.c: Likewise.
1349 * findvar.c: Likewise.
1350 * frame-unwind.c: Likewise.
1351 * frame.c: Likewise.
1352 * frv-tdep.c: Likewise.
1353 * gcore.c: Likewise.
1354 * gdb-dlfcn.c: Likewise.
1355 * gdb_bfd.c: Likewise.
1356 * gdbarch.c: Likewise.
1357 * gdbarch.sh: Likewise.
1358 * gdbtypes.c: Likewise.
1359 * gnu-nat.c: Likewise.
1360 * gnu-v3-abi.c: Likewise.
1361 * go-lang.c: Likewise.
1362 * guile/scm-exception.c: Likewise.
1363 * guile/scm-gsmob.c: Likewise.
1364 * guile/scm-lazy-string.c: Likewise.
1365 * guile/scm-math.c: Likewise.
1366 * guile/scm-pretty-print.c: Likewise.
1367 * guile/scm-safe-call.c: Likewise.
1368 * guile/scm-utils.c: Likewise.
1369 * guile/scm-value.c: Likewise.
1370 * h8300-tdep.c: Likewise.
1371 * hppa-hpux-nat.c: Likewise.
1372 * hppa-tdep.c: Likewise.
1373 * hppanbsd-tdep.c: Likewise.
1374 * hppaobsd-tdep.c: Likewise.
1375 * i386-darwin-nat.c: Likewise.
1376 * i386-darwin-tdep.c: Likewise.
1377 * i386-nto-tdep.c: Likewise.
1378 * i386-tdep.c: Likewise.
1379 * i386bsd-nat.c: Likewise.
1380 * i386fbsd-tdep.c: Likewise.
1381 * i386gnu-nat.c: Likewise.
1382 * i386nbsd-tdep.c: Likewise.
1383 * i386obsd-tdep.c: Likewise.
1384 * i387-tdep.c: Likewise.
1385 * ia64-libunwind-tdep.c: Likewise.
1386 * ia64-tdep.c: Likewise.
1387 * inf-ptrace.c: Likewise.
1388 * inf-ttrace.c: Likewise.
1389 * infcall.c: Likewise.
1390 * infcmd.c: Likewise.
1391 * infrun.c: Likewise.
1392 * inline-frame.c: Likewise.
1393 * interps.c: Likewise.
1394 * jv-lang.c: Likewise.
1395 * jv-typeprint.c: Likewise.
1396 * linux-fork.c: Likewise.
1397 * linux-nat.c: Likewise.
1398 * linux-thread-db.c: Likewise.
1399 * m32c-tdep.c: Likewise.
1400 * m32r-linux-nat.c: Likewise.
1401 * m32r-tdep.c: Likewise.
1402 * m68k-tdep.c: Likewise.
1403 * m68kbsd-nat.c: Likewise.
1404 * m68kbsd-tdep.c: Likewise.
1405 * m88k-tdep.c: Likewise.
1406 * machoread.c: Likewise.
1407 * macroexp.c: Likewise.
1408 * macrotab.c: Likewise.
1409 * maint.c: Likewise.
1410 * mdebugread.c: Likewise.
1411 * memory-map.c: Likewise.
1412 * mep-tdep.c: Likewise.
1413 * mi/mi-common.c: Likewise.
1414 * microblaze-tdep.c: Likewise.
1415 * mingw-hdep.c: Likewise.
1416 * mips-linux-nat.c: Likewise.
1417 * mips-linux-tdep.c: Likewise.
1418 * mips-tdep.c: Likewise.
1419 * mips64obsd-tdep.c: Likewise.
1420 * mipsnbsd-tdep.c: Likewise.
1421 * mn10300-linux-tdep.c: Likewise.
1422 * mn10300-tdep.c: Likewise.
1423 * moxie-tdep.c: Likewise.
1424 * mt-tdep.c: Likewise.
1425 * nat/linux-btrace.c: Likewise.
1426 * nat/linux-osdata.c: Likewise.
1427 * nat/linux-ptrace.c: Likewise.
1428 * nat/mips-linux-watch.c: Likewise.
1429 * nios2-linux-tdep.c: Likewise.
1430 * nios2-tdep.c: Likewise.
1431 * objc-lang.c: Likewise.
1432 * objfiles.c: Likewise.
1433 * obsd-nat.c: Likewise.
1434 * opencl-lang.c: Likewise.
1435 * osabi.c: Likewise.
1436 * parse.c: Likewise.
1437 * ppc-linux-nat.c: Likewise.
1438 * ppc-sysv-tdep.c: Likewise.
1439 * ppcfbsd-nat.c: Likewise.
1440 * ppcfbsd-tdep.c: Likewise.
1441 * ppcnbsd-nat.c: Likewise.
1442 * ppcnbsd-tdep.c: Likewise.
1443 * ppcobsd-nat.c: Likewise.
1444 * ppcobsd-tdep.c: Likewise.
1445 * printcmd.c: Likewise.
1446 * procfs.c: Likewise.
1447 * prologue-value.c: Likewise.
1448 * psymtab.c: Likewise.
1449 * python/py-lazy-string.c: Likewise.
1450 * python/py-value.c: Likewise.
1451 * regcache.c: Likewise.
1452 * reggroups.c: Likewise.
1453 * registry.c: Likewise.
1454 * remote-sim.c: Likewise.
1455 * remote.c: Likewise.
1456 * rs6000-aix-tdep.c: Likewise.
1457 * rs6000-tdep.c: Likewise.
1458 * s390-linux-tdep.c: Likewise.
1459 * score-tdep.c: Likewise.
1460 * ser-base.c: Likewise.
1461 * ser-mingw.c: Likewise.
1462 * sh-tdep.c: Likewise.
1463 * sh64-tdep.c: Likewise.
1464 * solib-darwin.c: Likewise.
1465 * solib-spu.c: Likewise.
1466 * solib-svr4.c: Likewise.
1467 * source.c: Likewise.
1468 * sparc-nat.c: Likewise.
1469 * sparc-sol2-tdep.c: Likewise.
1470 * sparc-tdep.c: Likewise.
1471 * sparc64-sol2-tdep.c: Likewise.
1472 * sparc64-tdep.c: Likewise.
1473 * sparc64fbsd-tdep.c: Likewise.
1474 * sparc64nbsd-tdep.c: Likewise.
1475 * sparc64obsd-tdep.c: Likewise.
1476 * sparcnbsd-tdep.c: Likewise.
1477 * sparcobsd-tdep.c: Likewise.
1478 * spu-multiarch.c: Likewise.
1479 * spu-tdep.c: Likewise.
1480 * stabsread.c: Likewise.
1481 * stack.c: Likewise.
1482 * symfile.c: Likewise.
1483 * symtab.c: Likewise.
1484 * target-descriptions.c: Likewise.
1485 * target-memory.c: Likewise.
1486 * target.c: Likewise.
1487 * tic6x-linux-tdep.c: Likewise.
1488 * tic6x-tdep.c: Likewise.
1489 * tilegx-linux-nat.c: Likewise.
1490 * tilegx-tdep.c: Likewise.
1491 * top.c: Likewise.
1492 * tramp-frame.c: Likewise.
1493 * tui/tui-out.c: Likewise.
1494 * tui/tui-winsource.c: Likewise.
1495 * ui-out.c: Likewise.
1496 * user-regs.c: Likewise.
1497 * utils.c: Likewise.
1498 * v850-tdep.c: Likewise.
1499 * valops.c: Likewise.
1500 * value.c: Likewise.
1501 * varobj.c: Likewise.
1502 * vax-nat.c: Likewise.
1503 * xml-syscall.c: Likewise.
1504 * xml-tdesc.c: Likewise.
1505 * xstormy16-tdep.c: Likewise.
1506 * xtensa-linux-nat.c: Likewise.
1507 * xtensa-tdep.c: Likewise.
1508
e76df0d0
GB
15092014-08-07 Gary Benson <gbenson@redhat.com>
1510
1511 * common/common-defs.h: Include common-utils.h.
1512 * defs.h: Do not include common-utils.h.
1513 * common/gdb_assert.h: Likewise.
1514 * darwin-nat.h: Likewise.
1515 * nat/linux-btrace.c: Likewise.
1516 * target/waitstatus.h: Likewise.
1517
4cb9c816
GB
15182014-08-07 Gary Benson <gbenson@redhat.com>
1519
1520 * common/common-defs.h: Include ptid.h.
1521 * defs.h: Do not include ptid.h.
1522 * inferior.h: Likewise.
1523 * infrun.h: Likewise.
1524 * nat/linux-btrace.h: Likewise.
1525 * nat/linux-osdata.h: Likewise.
1526 * target/waitstatus.h: Likewise.
1527
3995eeee
GB
15282014-08-07 Gary Benson <gbenson@redhat.com>
1529
1530 * common/common-defs.h: Include gdb_locale.h.
1531 * defs.h: Do not include gdb_locale.h.
1532
cb9f1a9b
GB
15332014-08-07 Gary Benson <gbenson@redhat.com>
1534
1535 * common/common-defs.h: Include gdb/signals.h.
1536 * defs.h: Do not include gdb/signals.h.
1537
a5fceff8
GB
15382014-08-07 Gary Benson <gbenson@redhat.com>
1539
1540 * common/common-defs.h: Include pathmax.h.
1541 * defs.h: Do not include pathmax.h.
1542
b9391142
GB
15432014-08-07 Gary Benson <gbenson@redhat.com>
1544
1545 * common/common-defs.h: Include libiberty.h.
1546 * defs.h: Do not include libiberty.h.
1547 * common/queue.h: Likewise.
1548 * cp-name-parser.y: Likewise.
1549 * mi/mi-cmd-catch.c: Likewise.
1550 * python/python.c: Likewise.
1551
0e443c87
GB
15522014-08-07 Gary Benson <gbenson@redhat.com>
1553
1554 * common/common-defs.h: Include ansidecl.h.
1555 * defs.h: Do not include ansidecl.h.
1556 * common/buffer.h: Likewise.
1557 * common/common-utils.h: Likewise.
1558
8ebb3f56
GB
15592014-08-07 Gary Benson <gbenson@redhat.com>
1560
1561 * common/common-defs.h: Include stddef.h.
1562 * defs.h: Do not include stddef.h.
1563 * common/common-utils.h: Likewise.
1564 * amd64fbsd-nat.c: Likewise.
1565 * bcache.c: Likewise.
1566 * charset.c: Likewise.
1567 * common/buffer.h: Likewise.
1568 * common/vec.h: Likewise.
1569 * i386bsd-nat.c: Likewise.
1570 * nat/linux-btrace.h: Likewise.
1571 * ppcfbsd-nat.c: Likewise.
1572 * ppcnbsd-tdep.h: Likewise.
1573 * ppcobsd-nat.c: Likewise.
1574 * ppcobsd-tdep.h: Likewise.
1575 * python/py-gdb-readline.c: Likewise.
1576
8980bdf6
GB
15772014-08-07 Gary Benson <gbenson@redhat.com>
1578
1579 * common/common-defs.h: Include stdarg.h.
1580 * defs.h: Do not include stdarg.h.
1581 * ada-lang.c: Likewise.
1582 * common/common-utils.h: Likewise.
1583 * guile/scm-string.c: Likewise.
1584 * guile/scm-utils.c: Likewise.
1585 * m32c-tdep.c: Likewise.
1586
d7096f71
GB
15872014-08-07 Gary Benson <gbenson@redhat.com>
1588
1589 * common/common-defs.h: Include stdlib.h.
1590 * defs.h: Do not include stdlib.h.
1591 * addrmap.c: Likewise.
1592 * bcache.c: Likewise.
1593 * common/buffer.c: Likewise.
1594 * common/common-utils.c: Likewise.
1595 * cp-name-parser.y: Likewise.
1596 * go32-nat.c: Likewise.
1597 * mn10300-linux-tdep.c: Likewise.
1598 * nat/linux-osdata.c: Likewise.
1599 * tui/tui.c: Likewise.
1600 * windows-nat.c: Likewise.
1601
d02f550d
GB
16022014-08-07 Gary Benson <gbenson@redhat.com>
1603
1604 * common/common-defs.h: Include stdio.h.
1605 * defs.h: Do not include stdio.h.
1606 * ada-lang.c: Likewise.
1607 * common/buffer.c: Likewise.
1608 * common/common-utils.c: Likewise.
1609 * cp-name-parser.y: Likewise.
1610 * gnu-nat.c: Likewise.
1611 * go32-nat.c: Likewise.
1612 * i386gnu-nat.c: Likewise.
1613 * proc-api.c: Likewise.
1614 * proc-events.c: Likewise.
1615 * proc-flags.c: Likewise.
1616 * proc-why.c: Likewise.
1617 * python/python-internal.h: Likewise.
1618 * target-memory.c: Likewise.
1619 * tui/tui-io.c: Likewise.
1620 * tui/tui.c: Likewise.
1621
b6d7a4bf
SM
16222014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1625 (scan_dyntag_auxv): Same.
1626
af19829b
YQ
16272014-08-06 Yao Qi <yao@codesourcery.com>
1628
1629 * amd64-linux-nat.c: Remove duplicated include
1630 "x86-linux-nat.h".
1631 * i386-linux-nat.c: Likewise.
1632
8e07a239
YQ
16332014-08-06 Yao Qi <yao@codesourcery.com>
1634
1635 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1636 operand" with "Special opcode" in comments.
1637
7bfe8241
GB
16382014-08-05 Gary Benson <gbenson@redhat.com>
1639
1640 * interps.c (initialize_interps): Remove prototype.
1641 (interpreter_initialized): Remove static global.
1642 (interp_add): Do not call initialize_interps.
1643 (initialize_interps): Remove function.
1644
d6c95504
GB
16452014-08-05 Gary Benson <gbenson@redhat.com>
1646
1647 * utils.c (vwarning): Remove spurious va_end.
1648
241fd515
AM
16492014-08-05 Alan Modra <amodra@gmail.com>
1650
1651 * charset.c (convert_between_encodings): Cast result of obstack_base.
1652 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1653 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1654 (read_unwind_info): Use size_t for some locals.
1655 * jit.c (finalize_symtab): Likewise.
1656 * utils.c (hashtab_obstack_allocate): Likewise.
1657 * symmisc.c (print_objfile_statistics): Update format strings.
1658
dc304a94
JK
16592014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1662 (Changes in GDB 7.8): ... here.
1663
3cecbbbe
TT
16642014-08-04 Tom Tromey <tromey@redhat.com>
1665
1666 * target.c (set_targetdebug): New function.
1667 (initialize_targets): Pass set_targetdebug when creating "set
1668 debug target".
1669
6908c509
JB
16702014-08-01 Joel Brobecker <brobecker@adacore.com>
1671
1672 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1673 if detecting a variable-sized field that is not the last field.
1674 Fix struct type length computation.
1675
53e8f97d
JB
16762014-08-01 Joel Brobecker <brobecker@adacore.com>
1677
1678 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1679 Add debug trace.
1680
e068c55d
JB
16812014-08-01 Joel Brobecker <brobecker@adacore.com>
1682
1683 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1684 Remove "+ 8" offset in computation of CHAIN_VMA.
1685
4d4ca2a1
DE
16862014-07-31 Doug Evans <dje@google.com>
1687
1688 * inflow.c (child_terminal_inferior): Add comment.
1689 (child_terminal_ours_for_output): Add comment.
1690 (child_terminal_ours): Add comment.
1691 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1692 (linux_nat_terminal_ours): Add comment.
1693
462f517e
GB
16942014-07-31 Gary Benson <gbenson@redhat.com>
1695
1696 * common/btrace-common.h: Do not include defs.h or server.h.
1697 * nat/mips-linux-watch.h: Likewise.
1698 * gdb-dlfcn.h: Do not include defs.h.
1699 * tracefile.h: Likewise.
1700
74228e77
RM
17012014-07-30 Roland McGrath <mcgrathr@google.com>
1702
1703 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1704
014f9477
TT
17052014-07-30 Tom Tromey <tromey@redhat.com>
1706
1707 * bsd-kvm.c (bsd_kvm_open): Constify.
1708 * corelow.c (core_open): Constify.
1709 * ctf.c (ctf_open): Constify.
1710 * dbug-rom.c (dbug_open): Constify.
1711 * exec.c (exec_open): Constify.
1712 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1713 * microblaze-rom.c (picobug_open): Constify.
1714 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1715 Constify.
1716 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1717 * record-btrace.c (record_btrace_open): Constify.
1718 * record-full.c (record_full_core_open_1, record_full_open_1)
1719 (record_full_open): Constify.
1720 * remote-m32r-sdi.c (m32r_open): Constify.
1721 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1722 (rockhopper_open, lsi_open): Constify.
1723 * remote-sim.c (gdbsim_open): Constify.
1724 * remote.c (remote_open, extended_remote_open, remote_open_1):
1725 Constify.
1726 * target.h (struct target_ops) <to_open>: Make "arg" const.
1727 * tracefile-tfile.c (tfile_open): Constify.
1728
e799154c
TT
17292014-07-30 Tom Tromey <tromey@redhat.com>
1730
1731 * breakpoint.c (map_breakpoint_numbers): Update.
1732 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1733 (get_number_const): New function.
1734 (get_number): Rewrite using get_number_const.
1735 (init_number_or_range): Make "string" const.
1736 (number_is_in_list): Make "list" const.
1737 * cli/cli-utils.h (get_number_const): Declare.
1738 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1739 (init_number_or_range, number_is_in_list): Update.
1740 * printcmd.c (map_display_numbers): Update.
1741 * value.c (value_from_history_ref): Constify.
1742 * value.h (value_from_history_ref): Update.
1743
5f08566b
TT
17442014-07-30 Tom Tromey <tromey@redhat.com>
1745
1746 * corefile.c (hook_type, call_extra_exec_file_hooks)
1747 (specify_exec_file_hook): Constify.
1748 * exec.c (exec_file_attach): Make "filename" const.
1749 * gdbcore.h (deprecated_exec_file_display_hook)
1750 (specify_exec_file_hook, exec_file_attach): Constify.
1751 * main.c (captured_main): Use catch_command_errors_const.
1752
8981c758
TT
17532014-07-30 Tom Tromey <tromey@redhat.com>
1754
1755 * target.c (open_target): New function.
1756 (add_target_with_completer, add_deprecated_target_alias): Use
1757 set_cmd_sfunc, set_cmd_context.
1758 (debug_to_open): Remove.
1759 (setup_target_debug): Update.
1760
a1c7835a
YQ
17612014-07-30 Yao Qi <yao@codesourcery.com>
1762
1763 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1764 comments.
1765 * parse.c (exp_iterate): Update comments.
1766
976411d6
GB
17672014-07-30 Gary Benson <gbenson@redhat.com>
1768
1769 * common/common-defs.h: New file.
1770 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1771 * defs.h: Include common-defs.h.
1772 Do not include config.h or build-gnulib/config.h.
1773
5d4848a4
GB
17742014-07-30 Gary Benson <gbenson@redhat.com>
1775
1776 * common/common-utils.h: Do not include config.h.
1777 * nat/linux-btrace.h: Likewise.
1778
d41f6d8e
GB
17792014-07-30 Gary Benson <gbenson@redhat.com>
1780
1781 * btrace.c: Include defs.h.
1782 * common/ptid.c: Include defs.h or server.h as appropriate.
1783 * nat/mips-linux-watch.c: Likewise.
1784
84202f9c
TT
17852014-07-29 Tom Tromey <tromey@redhat.com>
1786
1787 * target.c (target_is_pushed): Simplify.
1788
2530441c
JB
17892014-07-29 Joel Brobecker <brobecker@adacore.com>
1790
1791 GDB 7.8 released.
1792
7e09a223
YQ
17932014-07-29 Yao Qi <yao@codesourcery.com>
1794
1795 PR gdb/17206
1796 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1797
7ebdbe92
DE
17982014-07-28 Doug Evans <xdje42@gmail.com>
1799
1800 PR guile/17203
1801 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1802 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1803 parameters.
1804
f347ffc9
WN
18052014-07-28 Will Newton <will.newton@linaro.org>
1806
1807 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1808 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1809 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1810 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1811 (THUMB2_EABI_SYSCALL): Likewise.
1812 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1813 struct tramp_frame.
1814 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1815 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1816
37c5f1f7
DE
18172014-07-27 Doug Evans <xdje42@gmail.com>
1818
1819 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1820
0c3abbc7
DE
18212014-07-27 Doug Evans <xdje42@gmail.com>
1822
1823 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1824
e76c5d17
DE
18252014-07-26 Ludovic Courtès <ludo@gnu.org>
1826 Doug Evans <xdje42@gmail.com>
1827
1828 PR guile/17146
1829 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1830 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1831 * configure.ac: Try to use guild to compile an scm file, if it fails
1832 then disable guile support.
1833 * configure: Regenerate.
1834 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1835 GUILE_FILE_LIST.
1836 (GUILE_COMPILED_FILES): New variable.
1837 (GUILE_FILES) Update.
1838 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1839 (stamp-guile): Compile scm files.
1840 * guile/guile.c (boot_guile_support): New function.
1841 (standard_throw_args_p): New function.
1842 (print_standard_throw_error, print_throw_error): New functions.
1843 (handle_boot_error): New function.
1844 (initialize_scheme_side): Rewrite to call boot_guile_support.
1845 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1846 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1847
186fcde0
DE
18482014-07-26 Ludovic Courtès <ludo@gnu.org>
1849 Doug Evans <xdje42@gmail.com>
1850
1851 PR guile/17146
1852 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1853 * guile/lib/gdb/support.scm: New file.
1854 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1855 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1856 All uses updated.
1857 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1858 All uses updated.
1859 (%assert-type): Ditto, and renamed to assert-type.
1860 (%exception-print-style): Delete.
1861
4df42755
DE
18622014-07-26 Doug Evans <xdje42@gmail.com>
1863
1864 PR build/17105
1865 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1866 * configure: Regenerate.
1867 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1868 PYTHON_FILES.
1869 (PYTHON_FILES): New variable.
1870 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1871 (GUILE_FILES): New variable.
1872 (stamp-python, install-python, uninstall-python): Handle empty
1873 file list.
1874 (stamp-guile, install-guile, uninstall-guile): Ditto.
1875
ee7333ae
DE
18762014-07-26 Doug Evans <xdje42@gmail.com>
1877
1878 PR guile/17177
1879 * guile/lib/gdb.scm (pretty-printers): Export.
1880 (set-pretty-printers!): Export.
1881 * guile/lib/gdb/printing.scm (gdb module): Update.
1882 (prepend-pretty-printer!, append-pretty-printer!): Update.
1883 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1884 (pretty_printer_list_var): Delete.
1885 (pretty_printer_list): New static global.
1886 (gdbscm_pretty_printers): New function.
1887 (gdbscm_set_pretty_printers_x): New function.
1888 (ppscm_find_pretty_printer_from_gdb): Update.
1889 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1890 (gdbscm_initialize_pretty_printers): Update.
1891
74edf516
DE
18922014-07-26 Doug Evans <xdje42@gmail.com>
1893
1894 PR 17185
1895 * configure.ac: Add check for header gc/gc.h.
1896 Add check for function setenv.
1897 * configure: Regenerate.
1898 * config.in: Regenerate.
1899 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1900
d54398a7
MR
19012014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1902
1903 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1904 variation in gdbarch matching.
1905
ab16fce8
TT
19062014-07-25 Tom Tromey <tromey@redhat.com>
1907
1908 * exec.c (using_exec_ops): Remove.
1909 (exec_close_1): Update. Remove extraneous block, reindent.
1910 (add_target_sections): Use target_is_pushed.
1911
88056fbb
PA
19122014-07-25 Pedro Alves <palves@redhat.com>
1913
1914 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1915 * monitor.c (monitor_create_inferior): Likewise.
1916 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1917 * remote-sim.c (gdbsim_create_inferior): Likewise.
1918 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1919 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1920 * windows-nat.c (do_initial_windows_stuff): Likewise.
1921
70509625
PA
19222014-07-25 Pedro Alves <palves@redhat.com>
1923
1924 * NEWS: Mention signal passing and "signal" command changes.
1925 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1926 comment.
1927 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1928 call.
1929 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1930 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1931 (jump_command): Adjust clear_proceed_status call.
1932 (signal_command): Warn if other thread that are resumed have
1933 signals that will be delivered. Adjust clear_proceed_status call.
1934 (until_next_command, finish_command)
1935 (proceed_after_attach_callback, attach_command_post_wait)
1936 (attach_command): Adjust clear_proceed_status call.
1937 * infrun.c (proceed_after_vfork_done): Likewise.
1938 (proceed_after_attach_callback): Adjust comment.
1939 (clear_proceed_status_thread): Clear stop_signal if not in pass
1940 state.
1941 (clear_proceed_status_callback): Delete.
1942 (clear_proceed_status): New 'step' parameter. Only clear the
1943 proceed status of threads the command being prepared is about to
1944 resume.
1945 (proceed): If passed in an explicit signal, override stop_signal
1946 with it. Don't pass the last stop signal to the thread we're
1947 resuming.
1948 (init_wait_for_inferior): Adjust clear_proceed_status call.
1949 (switch_back_to_stepped_thread): Clear the signal if it should not
1950 be passed.
1951 * infrun.h (clear_proceed_status): New 'step' parameter.
1952 (user_visible_resume_ptid): Add comment.
1953 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1954 signal is in pass state.
1955 * remote.c (append_pending_thread_resumptions): Likewise.
1956 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1957
d8be2939
TT
19582014-07-25 Tom Tromey <tromey@redhat.com>
1959
1960 * target.h (target_stopped_data_address)
1961 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1962 parentheses.
1963
7d0d9d2b
PL
19642014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1965
1966 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1967 comments.
1968 (avr_pointer_to_address): Likewise.
1969
e9e7f724
TT
19702014-07-24 Tom Tromey <tromey@redhat.com>
1971
1972 * monitor.c (compile_pattern): Update.
1973 * target.h (struct target_ops) <to_shortname, to_longname,
1974 to_doc>: Now const.
1975
1947513d
TT
19762014-07-24 Tom Tromey <tromey@redhat.com>
1977
1978 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1979 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1980 (add_info_alias, add_com): Make "doc" const.
1981 (print_doc_line): Make "str" const.
1982 (delete_cmd): Update.
1983 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1984 (print_doc_line): Update.
1985 * cli/cli-script.c (document_command): Update.
1986 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1987 (add_com, add_info, add_info_alias): Update.
1988 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1989 * python/py-cmd.c (cmdpy_destroyer): Update.
1990
64e61d29
TT
19912014-07-24 Tom Tromey <tromey@redhat.com>
1992
1993 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1994 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1995 (help_cmd_list): Constify.
1996 (lookup_cmd): Update.
1997 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1998 const.
1999 (help_cmd_list, apropos_cmd): Update.
2000 * cli/cli-script.c (show_user): Update.
2001 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2002 * cli/cli-setshow.h (cmd_show_list): Update.
2003 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2004 (cmd_show_list): Update.
2005 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2006 * python/py-cmd.c (cmdpy_destroyer): Update.
2007
429e55ea
TT
20082014-07-24 Tom Tromey <tromey@redhat.com>
2009
2010 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2011 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2012 const.
2013 * command.h (deprecate_cmd): Update.
2014 * maint.c (maintenance_do_deprecate): Add casts.
2015
64669f3b
TT
20162014-07-24 Tom Tromey <tromey@redhat.com>
2017
2018 * cli/cli-decode.c (help_cmd): Make parameter "const".
2019 * cli/cli-decode.h (help_cmd): Update.
2020
d3d3328b
TT
20212014-07-24 Tom Tromey <tromey@redhat.com>
2022
2023 * stack.c (up_silently_base, down_silently_base): Make argument
2024 const.
2025
414842dc
TT
20262014-07-24 Tom Tromey <tromey@redhat.com>
2027
2028 * solib.c (solib_add): Make "pattern" const.
2029 * solib.h (solib_add): Update.
2030
baa336ce
TT
20312014-07-24 Tom Tromey <tromey@redhat.com>
2032
2033 * remote.c (remote_serial_open, print_packet, putpkt)
2034 (putpkt_binary): Constify.
2035 * remote.h (putpkt): Update.
2036
5a19e2d0
TT
20372014-07-24 Tom Tromey <tromey@redhat.com>
2038
2039 * monitor.c (monitor_open): Make "args" const.
2040 * monitor.h (monitor_open): Update.
2041
fc4baa5e
TT
20422014-07-24 Tom Tromey <tromey@redhat.com>
2043
2044 * maint.c (match_bfd_flags): Make "string" const.
2045 (print_bfd_section_info): Remove casts.
2046 (print_objfile_section_info): Make "string" const.
2047
0d5f0dbe
TT
20482014-07-24 Tom Tromey <tromey@redhat.com>
2049
2050 * inf-child.c (inf_child_open_target): Make "arg" const.
2051 * inf-child.h (inf_child_open_target): Update.
2052
41c77899
TT
20532014-07-24 Tom Tromey <tromey@redhat.com>
2054
2055 * environ.c (unset_in_environ): Make "var" const.
2056 * environ.h (unset_in_environ): Update.
2057
93db0d79
TT
20582014-07-24 Tom Tromey <tromey@redhat.com>
2059
2060 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2061 Make "cmd" const.
2062 (scan_filename_with_cleanup): Likewise.
2063 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2064 Make arguments const.
2065 (restore_command): Update.
2066
36d6eb95
PA
20672014-07-24 Pedro Alves <palves@redhat.com>
2068
2069 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2070
8009206a
TT
20712014-07-24 Tom Tromey <tromey@redhat.com>
2072 Gary Benson <gbenson@redhat.com>
2073
2074 * nat/linux-ptrace.c (additional_flags): New global.
2075 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2076 additional_flags; don't check GDBSERVER.
2077 (linux_ptrace_set_additional_flags): New function.
2078 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2079 Declare.
2080 * linux-nat.c (_initialize_linux_nat): Call
2081 linux_ptrace_set_additional_flags.
2082
a7068b60
TT
20832014-07-24 Tom Tromey <tromey@redhat.com>
2084
2085 * make-target-delegates (munge_type, write_debugmethod): New
2086 functions.
2087 (debug_names): New global.
2088 ($TARGET_DEBUG_PRINTER): New global.
2089 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2090 name.
2091 Write debug methods. Generate init_debug_target.
2092 * target-debug.h: New file.
2093 * target-delegates.c: Rebuild.
2094 * target.c: Include target-debug.h.
2095 (debug_target): Hoist definition.
2096 (target_kill, target_get_section_table, target_memory_map)
2097 (target_flash_erase, target_flash_done, target_detach)
2098 (target_disconnect, target_wait, target_resume)
2099 (target_pass_signals, target_program_signals, target_follow_fork)
2100 (target_mourn_inferior, target_search_memory)
2101 (target_thread_address_space, target_close)
2102 (target_find_new_threads, target_core_of_thread)
2103 (target_verify_memory, target_insert_mask_watchpoint)
2104 (target_remove_mask_watchpoint): Remove targetdebug code.
2105 (debug_to_post_attach, debug_to_prepare_to_store)
2106 (debug_to_files_info, debug_to_insert_breakpoint)
2107 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2108 (debug_to_region_ok_for_hw_watchpoint)
2109 (debug_to_can_accel_watchpoint_condition)
2110 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2111 (debug_to_watchpoint_addr_within_range)
2112 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2113 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2114 (debug_to_terminal_init, debug_to_terminal_inferior)
2115 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2116 (debug_to_terminal_save_ours, debug_to_terminal_info)
2117 (debug_to_load, debug_to_post_startup_inferior)
2118 (debug_to_insert_fork_catchpoint)
2119 (debug_to_remove_fork_catchpoint)
2120 (debug_to_insert_vfork_catchpoint)
2121 (debug_to_remove_vfork_catchpoint)
2122 (debug_to_insert_exec_catchpoint)
2123 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2124 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2125 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2126 (setup_target_debug): Call init_debug_target.
2127 * target.h (TARGET_DEBUG_PRINTER): New macro.
2128 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2129 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2130
2c51604d
GB
21312014-07-24 Gary Benson <gbenson@redhat.com>
2132
2133 * exceptions.h (throw_vfatal): Renamed to...
2134 (throw_vquit): New declaration.
2135 (throw_quit): Likewise.
2136 * exceptions.c (throw_vfatal): Renamed to...
2137 (throw_vquit): New function.
2138 (throw_quit): Likewise.
2139 (throw_error): Call throw_verror rather than throw_it.
2140 * utils.h (vfatal): Removed.
2141 (fatal): Likewise.
2142 * utils.c (vfatal): Removed.
2143 (fatal): Likewise.
2144 (internal_verror): Replaced call to fatal with call to throw_quit.
2145 (quit): Replaced calls to fatal with calls to throw_quit.
2146
34211963
ME
21472014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2148
2149 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2150 target_read_code.
2151
a52b4d3e
ME
21522014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2153
2154 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2155 less than zero in conditional expression.
2156
a8bdc56b
TT
21572014-07-23 Tom Tromey <tromey@redhat.com>
2158
2159 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2160 ($INTRO_PART): Don't match whitespace.
2161 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2162 argument matching.
2163 ($METHOD): Add $METHOD_TRAILER.
2164 (trim): Rewrite.
2165 (scan_target_h): New sub.
2166 Change main loop not to collect state.
2167 * target-delegates.c: Rebuild.
2168
91b52240
GB
21692014-07-23 Gary Benson <gbenson@redhat.com>
2170
2171 * cp-support.c (gdb_demangle): Fix build on systems without
2172 sigaltstack.
2173
45326f6f
JK
21742014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2175
2176 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2177 for reference entry value target data value.
2178
e214cf6c
JK
21792014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2182 value_available_contents_eq.
2183
bddbbedd
PA
21842014-07-22 Pedro Alves <palves@redhat.com>
2185
2186 * value.c (allocate_optimized_out_value): Don't mark value as
2187 non-lazy.
2188
45c71484
JW
21892014-07-22 Jiong Wang <jiong.wang@arm.com>
2190
2191 * MAINTAINERS (Write After Approval): Update my email address.
2192
9597b22a
DE
21932014-07-20 Doug Evans <dje@google.com>
2194
2195 PR server/17147
2196 * remote.c (putpkt_binary): Add text to error message.
2197
91101fe5
YQ
21982014-07-20 Yao Qi <yao@codesourcery.com>
2199
2200 * eval.c: Remove "Chill" from comments.
2201 * gdbtypes.h: Likewise.
2202 * symtab.h: Likewise.
2203
c9402c95
YQ
22042014-07-20 Yao Qi <yao@codesourcery.com>
2205
2206 * std-operator.def: Update comments to TERNOP_SLICE.
2207
ae8fddda
YQ
22082014-07-20 Yao Qi <yao@codesourcery.com>
2209
2210 * std-operator.def: Remove BINOP_RANGE.
2211 * breakpoint.c (watchpoint_exp_is_const): Update.
2212 * expprint.c (dump_subexp_body_standard): Likewise.
2213 * eval.c (init_array_element): Remove dead code.
2214 (evaluate_subexp_standard): Likewise.
2215
9c816640
YQ
22162014-07-20 Yao Qi <yao@codesourcery.com>
2217
2218 * std-operator.def: Remove BINOP_IN.
2219 * breakpoint.c (watchpoint_exp_is_const): Update.
2220 * eval.c (evaluate_subexp_standard): Likewise.
2221 * expprint.c (dump_subexp_body_standard): Likewise.
2222
164224e9
ME
22232014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2224
2225 * microblaze-tdep.c (microblaze_register_names): Add
2226 the rshr and rslr register names.
2227 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2228 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2229 Use of tdesc_numbered_register. Use of
2230 microblaze_register_g_packet_guesses. Use of
2231 tdesc_use_registers. Use of set_gdbarch_register_type.
2232 (microblaze_register_g_packet_guesses): New.
2233 * microblaze-tdep.h (microblaze_reg_num): Add
2234 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2235 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2236 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2237 * features/microblaze-core.xml: New file.
2238 * features/microblaze-stack-protect.xml: New file.
2239 * features/microblaze-with-stack-protect.c: New file.
2240 * features/microblaze-with-stack-protect.xml: New file.
2241 * features/microblaze.xml: New file.
2242 * features/microblaze.c: New file.
2243 * features/Makefile (microblaze-with-stack-protect): Add
2244 microblaze-with-stack-protect microblaze and microblaze-expedite.
2245 * regformats/microblaze-with-stack-protect.dat: New file.
2246 * regformats/microblaze.dat: New file.
2247 * doc/gdb.texinfo (MicroBlaze Features): Added.
2248
e8b2341c
TT
22492014-07-18 Tom Tromey <tromey@redhat.com>
2250
2251 * exec.c (exec_ops): Now static.
2252 * exec.h (exec_ops): Don't declare.
2253
44e89118
TT
22542014-07-18 Tom Tromey <tromey@redhat.com>
2255
2256 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2257 to find_target_beneath.
2258 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2259 find_target_beneath.
2260 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2261
b0ed115f
TT
22622014-07-18 Tom Tromey <tromey@redhat.com>
2263
2264 PR gdb/17130:
2265 * utils.c (quit): Use target_supports_terminal_ours.
2266 * target.h (target_supports_terminal_ours): Declare.
2267 * target.c (target_supports_delete_record): Don't check
2268 to_delete_record against NULL.
2269 (target_supports_terminal_ours): New function.
2270
e75fdfca
TT
22712014-07-18 Tom Tromey <tromey@redhat.com>
2272
2273 PR gdb/17130:
2274 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2275 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2276 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2277 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2278 * windows-nat.c (windows_xfer_partial): Always delegate.
2279 * record-btrace.c (record_btrace_xfer_partial): Simplify
2280 delegation.
2281 (record_btrace_fetch_registers, record_btrace_store_registers)
2282 (record_btrace_prepare_to_store, record_btrace_resume)
2283 (record_btrace_wait, record_btrace_find_new_threads)
2284 (record_btrace_thread_alive): Likewise.
2285 * procfs.c (procfs_xfer_partial): Always delegate.
2286 * corelow.c (core_xfer_partial): Always delegate.
2287 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2288
83814951
TT
22892014-07-18 Tom Tromey <tromey@redhat.com>
2290
2291 * exec.c (exec_make_note_section): Move earlier.
2292
b8b8facf
DE
22932014-07-17 Doug Evans <dje@google.com>
2294
74b49205 2295 PR gdb/17170
b8b8facf
DE
2296 * maint.c (count_symtabs_and_blocks): Handle NULL
2297 current_program_space.
2298 (report_command_stats): Check global enabled flag in addition to
2299 recorded enabled flag.
2300 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2301
69ff6be5
PA
23022014-07-16 Pedro Alves <palves@redhat.com>
2303
2304 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2305
252db1b5
TT
23062014-07-16 Tom Tromey <tromey@redhat.com>
2307
2308 * target.h (struct target_ops) <to_delete_record>: Reformat
2309 comment.
2310
a432721e
TT
23112014-07-16 Tom Tromey <tromey@redhat.com>
2312
2313 * target-delegates.c: Rebuild.
2314
487d9753
PL
23152014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2316
2317 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2318 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2319 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2320 (avr_pointer_to_address): Likewise.
2321 (avr_address_class_type_flags): New function.
2322 (avr_address_class_type_flags_to_name): Likewise.
2323 (avr_address_class_name_to_type_flags): Likewise.
2324 (avr_gdbarch_init): Set address_class_type_flags,
2325 address_class_type_flags_to_name and
2326 address_class_name_to_type_flags.
2327
57745c90
PA
23282014-07-15 Pedro Alves <palves@redhat.com>
2329
2330 * linux-nat.c (kill_callback): Save errno and work with saved
2331 copy.
2332
2d40be18
SM
23332014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2334
2335 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2336
572f6555
EBM
23372014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2338
2339 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2340 breakpoint support correctly.
2341
cc1c52ad
PA
23422014-07-14 Pedro Alves <palves@redhat.com>
2343
2344 * utils.c (prompt_for_continue): Call target_terminal_ours.
2345
1e973570
PA
23462014-07-14 Pedro Alves <palves@redhat.com>
2347
2348 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2349 catch_errors. Don't re-enable stdin or notify observers where,
2350 and rethrow error.
2351 (fetch_inferior_event_wrapper): Delete.
2352
93d6eb10
PA
23532014-07-14 Pedro Alves <palves@redhat.com>
2354
2355 PR gdb/17072
2356 * top.c: Include "inf-loop.h".
2357 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2358 field.
2359 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2360 was async before.
2361 (gdb_readline_wrapper): Store whether the target is async, and
2362 make it sync.
2363
0017922d
PA
23642014-07-14 Pedro Alves <palves@redhat.com>
2365
2366 PR gdb/17072
2367 * top.c (gdb_readline_wrapper_line): Tweak comment.
2368 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2369 the input handler callback.
2370
94696ad3
PA
23712014-07-14 Pedro Alves <palves@redhat.com>
2372
2373 PR gdb/17072
2374 * main.c: Include event-top.h.
2375 (handle_command_errors): New function.
2376 (catch_command_errors, catch_command_errors_const): Use it.
2377
9d1e69a2
PA
23782014-07-14 Pedro Alves <palves@redhat.com>
2379
2380 * exceptions.c (catch_command_errors, catch_command_errors_const):
2381 Moved to main.c.
2382 * exceptions.h (catch_command_errors_ftype)
2383 (catch_command_errors_const_ftype): Moved to main.c.
2384 (catch_command_errors, catch_command_errors_const): Delete
2385 declarations.
2386 * main.c (catch_command_errors_ftype)
2387 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2388 (catch_command_errors, catch_command_errors_const)): Moved here
2389 from exceptions.c and make static.
2390
feefc97b
PA
23912014-07-14 Pedro Alves <palves@redhat.com>
2392
2393 * exceptions.c (print_any_exception): Delete.
2394 (catch_exceptions_with_msg): Use exception_print instead of
2395 print_any_exception.
2396 (catch_errors): Use exception_fprintf instead of
2397 print_any_exception.
2398 (catch_command_errors, catch_command_errors_const): Use
2399 exception_print instead of print_any_exception.
2400
c933f875
PA
24012014-07-14 Pedro Alves <palves@redhat.com>
2402
2403 * infcall.c (run_inferior_call): Set 'sync_execution' while
2404 running the inferior call.
2405
feb6f816
PA
24062014-07-14 Pedro Alves <palves@redhat.com>
2407
2408 * value.c (value_contents_equal): Delete function.
2409 * value.h (value_contents_equal): Delete declaration.
2410
d98b7a16
TT
24112014-07-14 Tom Tromey <tromey@redhat.com>
2412
2413 PR exp/17106:
2414 * gdbtypes.c (is_dynamic_type_internal): New function, from
2415 is_dynamic_type.
2416 (is_dynamic_type): Rewrite.
2417 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2418 (resolve_dynamic_struct): Likewise.
2419 (resolve_dynamic_type_internal): New function, from
2420 resolve_dynamic_type.
2421 (resolve_dynamic_type): Rewrite.
2422
548740d6
TT
24232014-07-14 Tom Tromey <tromey@redhat.com>
2424
2425 * target.c (target_require_runnable): Also check record_stratum.
2426 Update comment.
2427
808f7ab1
YQ
24282014-07-11 Yao Qi <yao@codesourcery.com>
2429
2430 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2431 thumb_instruction_restores_sp return true.
2432
540314bd
YQ
24332014-07-11 Yao Qi <yao@codesourcery.com>
2434
2435 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2436 (thumb_in_function_epilogue_p): Call
2437 thumb_instruction_restores_sp.
2438
1db01f22
YQ
24392014-07-11 Yao Qi <yao@codesourcery.com>
2440
2441 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2442 'add sp, #imm'.
2443 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2444
3116063b
GB
24452014-07-11 Gary Benson <gbenson@redhat.com>
2446
2447 * amd64-linux-nat.c (gdbcore.h): Remove include.
2448 (regset.h): Likewise.
2449 (nat/linux-btrace.h): Likewise.
2450 (btrace.h): Likewise.
2451 (gdb_assert.h): Likewise.
2452 (string.h): Likewise.
2453 (sys/uio.h): Likewise.
2454 (sys/debugreg.h): Likewise.
2455 (sys/syscall.h): Likewise.
2456 (sys/procfs.h): Likewise.
2457 (sys/user.h): Likewise.
2458 (asm/ptrace.h): Likewise.
2459 (i386-nat.h): Likewise.
2460 * i386-linux-nat.c (i386-nat.h): Likewise.
2461 (regset.h): Likewise.
2462 (target.h): Likewise.
2463 (linux-nat.h): Likewise.
2464 (nat/linux-btrace.h): Likewise.
2465 (btrace.h): Likewise.
2466 (gdb_assert.h): Likewise.
2467 (string.h): Likewise.
2468 (sys/uio.h): Likewise.
2469 (sys/user.h): Likewise.
2470 (sys/procfs.h): Likewise.
2471 (sys/reg.h): Likewise.
2472 (sys/debugreg.h): Likewise.
2473 (ORIG_EAX): Remove definition.
2474
040baaf6
GB
24752014-07-11 Gary Benson <gbenson@redhat.com>
2476
2477 * i386-linux-nat.h: New file.
2478 * x86-linux-nat.h: Likewise.
2479 * x86-linux-nat.c: Likewise.
2480 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2481 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2482 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2483 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2484 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2485 (PTRACE_SETREGSET): Likewise.
2486 (arch_lwp_info): Now in x86-linux-nat.c.
2487 (have_ptrace_getregset): Now in x86-linux-nat.h.
2488 (x86_linux_dr_get): Now in x86-linux-nat.c.
2489 (x86_linux_dr_set): Likewise.
2490 (x86_linux_dr_get_addr): Likewise.
2491 (x86_linux_dr_get_control): Likewise.
2492 (x86_linux_dr_get_status): Likewise.
2493 (update_debug_registers_callback): Likewise.
2494 (x86_linux_dr_set_control): Likewise.
2495 (x86_linux_dr_set_addr): Likewise.
2496 (x86_linux_prepare_to_resume): Likewise.
2497 (x86_linux_new_thread): Likewise.
2498 (x86_linux_new_fork): Likewise.
2499 (x86_linux_get_thread_area): Likewise.
2500 (super_post_startup_inferior): Likewise.
2501 (x86_linux_child_post_startup_inferior): Likewise.
2502 (AMD64_LINUX_USER64_CS): Likewise.
2503 (AMD64_LINUX_X32_DS): Likewise.
2504 (x86_linux_read_description): Likewise.
2505 (x86_linux_enable_btrace): Likewise.
2506 (x86_linux_disable_btrace): Likewise.
2507 (x86_linux_teardown_btrace): Likewise.
2508 (x86_linux_read_btrace): Likewise.
2509 (x86_linux_create_target): Likewise.
2510 (x86_linux_add_target): Likewise.
2511 * i386-linux-nat.c (x86-linux-nat.h): New include.
2512 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2513 (PTRACE_SETREGSET): Likewise.
2514 (arch_lwp_info): Now in x86-linux-nat.c.
2515 (have_ptrace_getregset): Now in x86-linux-nat.h.
2516 (x86_linux_dr_get): Now in x86-linux-nat.c.
2517 (x86_linux_dr_set): Likewise.
2518 (x86_linux_dr_get_addr): Likewise.
2519 (x86_linux_dr_get_control): Likewise.
2520 (x86_linux_dr_get_status): Likewise.
2521 (update_debug_registers_callback): Likewise.
2522 (x86_linux_dr_set_control): Likewise.
2523 (x86_linux_dr_set_addr): Likewise.
2524 (x86_linux_prepare_to_resume): Likewise.
2525 (x86_linux_new_thread): Likewise.
2526 (x86_linux_new_fork): Likewise.
2527 (x86_linux_get_thread_area): Likewise.
2528 (super_post_startup_inferior): Likewise.
2529 (x86_linux_child_post_startup_inferior): Likewise.
2530 (AMD64_LINUX_USER64_CS): Likewise.
2531 (AMD64_LINUX_X32_DS): Likewise.
2532 (x86_linux_read_description): Likewise.
2533 (x86_linux_enable_btrace): Likewise.
2534 (x86_linux_disable_btrace): Likewise.
2535 (x86_linux_teardown_btrace): Likewise.
2536 (x86_linux_read_btrace): Likewise.
2537 (x86_linux_create_target): Likewise.
2538 (x86_linux_add_target): Likewise.
2539
1aa7e42c
GB
25402014-07-11 Gary Benson <gbenson@redhat.com>
2541
2542 * amd64-linux-nat.c: Comment and whitespace changes.
2543 * i386-linux-nat.c: Comment and whitespace changes.
2544
c1e246a0
GB
25452014-07-11 Gary Benson <gbenson@redhat.com>
2546
2547 * amd64-linux-nat.c (x86_linux_create_target): New function.
2548 (x86_linux_add_target): Likewise.
2549 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2550 * i386-linux-nat.c (x86_linux_create_target): New function.
2551 (x86_linux_add_target): Likewise.
2552 (_initialize_i386_linux_nat): Delegate to the above new functions.
2553
8c420b8d
GB
25542014-07-11 Gary Benson <gbenson@redhat.com>
2555
2556 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2557 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2558 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2559 (ps_get_thread_area): Delegate to the above.
2560
cb1da100
GB
25612014-07-11 Gary Benson <gbenson@redhat.com>
2562
2563 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2564 x86_linux_read_description. All uses updated. amd64-specific
2565 code conditionalized. Conditionalized i386-specific code added.
2566 Redundant cast removed.
2567 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2568 x86_linux_read_description. All uses updated. i386-specific
2569 code conditionalized. Conditionalized amd64-specific code added.
2570 One sizeof replaced with the actual type it is describing.
2571
2acf3cd0
GB
25722014-07-11 Gary Benson <gbenson@redhat.com>
2573
2574 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2575 x86_linux_dr_get. All uses updated.
2576 (amd64_linux_dr_set): Renamed to
2577 x86_linux_dr_set. All uses updated.
2578 (amd64_linux_dr_get_addr): Renamed to
2579 x86_linux_dr_get_addr. All uses updated.
2580 (amd64_linux_dr_get_control): Renamed to
2581 x86_linux_dr_get_control. All uses updated.
2582 (amd64_linux_dr_get_status): Renamed to
2583 x86_linux_dr_get_status. All uses updated.
2584 (amd64_linux_dr_set_control): Renamed to
2585 x86_linux_dr_set_control. All uses updated.
2586 (amd64_linux_dr_set_addr): Renamed to
2587 x86_linux_dr_set_addr. All uses updated.
2588 (amd64_linux_prepare_to_resume): Renamed to
2589 x86_linux_prepare_to_resume. All uses updated.
2590 (amd64_linux_new_thread): Renamed to
2591 x86_linux_new_thread. All uses updated.
2592 (amd64_linux_new_fork): Renamed to
2593 x86_linux_new_fork. All uses updated.
2594 (amd64_linux_child_post_startup_inferior): Renamed to
2595 x86_linux_child_post_startup_inferior. All uses updated.
2596 (amd64_linux_enable_btrace): Renamed to
2597 x86_linux_enable_btrace. All uses updated.
2598 (amd64_linux_disable_btrace): Renamed to
2599 x86_linux_disable_btrace. All uses updated.
2600 (amd64_linux_teardown_btrace): Renamed to
2601 x86_linux_teardown_btrace. All uses updated.
2602 (amd64_linux_read_btrace): Renamed to
2603 x86_linux_read_btrace. All uses updated.
2604 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2605 x86_linux_dr_get. All uses updated.
2606 (i386_linux_dr_set): Renamed to
2607 x86_linux_dr_set. All uses updated.
2608 (i386_linux_dr_get_addr): Renamed to
2609 x86_linux_dr_get_addr. All uses updated.
2610 (i386_linux_dr_get_control): Renamed to
2611 x86_linux_dr_get_control. All uses updated.
2612 (i386_linux_dr_get_status): Renamed to
2613 x86_linux_dr_get_status. All uses updated.
2614 (i386_linux_dr_set_control): Renamed to
2615 x86_linux_dr_set_control. All uses updated.
2616 (i386_linux_dr_set_addr): Renamed to
2617 x86_linux_dr_set_addr. All uses updated.
2618 (i386_linux_prepare_to_resume): Renamed to
2619 x86_linux_prepare_to_resume. All uses updated.
2620 (i386_linux_new_thread): Renamed to
2621 x86_linux_new_thread. All uses updated.
2622 (i386_linux_new_fork): Renamed to
2623 x86_linux_new_fork. All uses updated.
2624 (i386_linux_child_post_startup_inferior): Renamed to
2625 x86_linux_child_post_startup_inferior. All uses updated.
2626 (i386_linux_enable_btrace): Renamed to
2627 x86_linux_enable_btrace. All uses updated.
2628 (i386_linux_disable_btrace): Renamed to
2629 x86_linux_disable_btrace. All uses updated.
2630 (i386_linux_teardown_btrace): Renamed to
2631 x86_linux_teardown_btrace. All uses updated.
2632 (i386_linux_read_btrace): Renamed to
2633 x86_linux_read_btrace. All uses updated.
2634
b9c1d481
AS
26352014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2636
2637 * remote.c (extended_remote_post_attach): New function.
2638 (init_extended_remote_ops): Install it as to_post_attach method.
2639
7180e04a
PA
26402014-07-09 Pedro Alves <palves@redhat.com>
2641
2642 * infcmd.c (attach_command_post_wait): Don't call
2643 target_terminal_inferior here.
2644 (attach_command): Call it here instead.
2645
9a9a7608
AB
26462014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2649 field.
2650 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2651 from varobj.c, with additional checks.
2652 (c_varobj_ops): Fill in is_path_expr_parent field.
2653 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2654 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2655 field.
2656 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2657 ops method.
2658 (varobj_default_is_path_expr_parent): New function.
2659 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2660 (varobj_default_is_path_expr_parent): Declare new function.
2661
1f267ae3
MM
26622014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2663
2664 * infcmd.c (finish_backward): Turn internal error into normal error.
2665
b2ee242b
PA
26662014-07-07 Pedro Alves <palves@redhat.com>
2667
8a869bca 2668 PR gdb/17096
b2ee242b
PA
2669 * remote.c (async_handle_remote_sigint)
2670 (async_handle_remote_sigint_twice): Call
2671 gdb_call_async_signal_handler instead of
2672 mark_async_signal_handler.
2673
38e229b2
TT
26742014-07-07 Tom Tromey <tromey@redhat.com>
2675
2676 * target-delegates.c: Rebuild.
2677 * target.c (target_info_record): Remove.
2678 * record.c (info_record_command): Unconditionally call
2679 to_info_record.
2680 * target.h (struct target_ops) <to_info_record>: Use
2681 TARGET_DEFAULT_IGNORE.
2682 (target_info_record): Remove.
2683
f0f9ff95
TT
26842014-07-07 Tom Tromey <tromey@redhat.com>
2685
2686 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2687 TARGET_DEFAULT_NORETURN.
2688 * target.c (generic_tls_error): New function.
2689 (target_translate_tls_address): Don't search target stack.
2690 * target-delegates.c: Rebuild.
2691 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2692 stack.
2693 * linux-thread-db.c (thread_db_get_thread_local_address):
2694 Unconditionally call beneath target.
2695
4a5be5ee
MK
26962014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2697
2698 * cli/cli-logging.c (pop_output_files): Assign targerr to
2699 gdb_stdtargerr.
2700
92c3b204
AB
27012014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * MAINTAINERS (Write After Approval): Update my email address.
2704
9b11e3a7
GB
27052014-07-02 Gary Benson <gbenson@redhat.com>
2706
2707 * proc-service.c (ps_xfer_memory): Update comment.
2708 (ps_pstop): Remove unused function.
2709 (ps_pcontinue): Likewise.
2710 (ps_lstop): Likewise.
2711 (ps_lcontinue): Likewise.
2712 (ps_lgetxregsize): Likewise.
2713 (ps_lgetxregs): Likewise.
2714 (ps_lsetxregs): Likewise.
2715 (ps_plog): Likewise.
2716 (ps_ptread): Likewise.
2717 (ps_ptwrite): Likewise.
2718
cf363f18
MW
27192014-07-01 Mark Wielaard <mjw@redhat.com>
2720
2721 * dwarf2read.c (add_array_cv_type): New function.
2722 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2723 (read_tag_volatile_type): Likewise.
2724
82ae6c8d
TT
27252014-07-01 Tom Tromey <tromey@redhat.com>
2726
2727 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2728 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2729 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2730 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2731 * command.h (cmd_cfunc_ftype): Move earlier.
2732 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2733 (add_com, add_info): Use cmd_cfunc_ftype.
2734
96142726
TT
27352014-06-30 Tom Tromey <tromey@redhat.com>
2736
2737 * symtab.c (operator_chars): Make parameters and return type
2738 const.
2739 (file_matches): Make "files" const.
2740 (struct search_symbols_data) <files>: Now const.
2741 (search_symbols): Make "regexp" and "files" parameters const.
2742 Update.
2743 (symtab_symbol_info): Remove cast.
2744 (rbreak_command): Update.
2745 * symtab.h (search_symbols): Update.
2746
b67a2c6f
YQ
27472014-06-27 Yao Qi <yao@codesourcery.com>
2748
2749 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2750 Change parameter type to 'struct thread_info *'. Caller
2751 updated.
2752 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2753 Update declaration.
2754 * dummy-frame.c (struct dummy_frame_id): New.
2755 (dummy_frame_id_eq): New function.
2756 (struct dummy_frame) <id>: Change its type to 'struct
2757 dummy_frame_id'.
2758 (dummy_frame_push): Add parameter ptid and save it in
2759 dummy_frame_id.
2760 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2761 inferior_ptid.
2762 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2763 to inferior_ptid.
2764 (lookup_dummy_frame): Change parameter type to 'struct
2765 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2766 instead of frame_id_eq.
2767 (dummy_frame_pop): Add parameter ptid. Callers updated.
2768 Update comments. Compose dummy_frame_id and pass it to
2769 lookup_dummy_frame.
2770 (dummy_frame_discard): Add parameter ptid.
2771 (dummy_frame_sniffer): Compose dummy_frame_id and call
2772 dummy_frame_id_eq instead of frame_id_eq.
2773 (fprint_dummy_frames): Print ptid.
2774 * dummy-frame.h: Remove comments.
2775 (dummy_frame_push): Add ptid in declaration.
2776 (dummy_frame_pop, dummy_frame_discard): Likewise.
2777
5b10184c
TT
27782014-06-26 Tom Tromey <tromey@redhat.com>
2779
2780 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2781 * command.h (error_no_arg): Update.
2782
06900326
TT
27832014-06-26 Tom Tromey <tromey@redhat.com>
2784
2785 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2786 (do_show_command): Make "arg" const.
2787 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2788
c2bcbb1d
TT
27892014-06-26 Tom Tromey <tromey@redhat.com>
2790
2791 * record-full.c (record_full_get_bookmark): Make "args" const.
2792 (record_full_goto_bookmark): Make "raw_bookmark" const.
2793 * record.c (record_goto): New function.
2794 (cmd_record_goto): Use it. Now static.
2795 * record.h (record_goto): Declare.
2796 (cmd_record_goto): Remove declaration.
2797 * target-delegates.c: Rebuild.
2798 * target.h (struct target_ops) <to_get_bookmark,
2799 to_goto_bookmark>: Make parameter const.
2800
9cbe5fff
TT
28012014-06-26 Tom Tromey <tromey@redhat.com>
2802
2803 * defs.h (generic_load): Update.
2804 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2805 * monitor.c (monitor_load): Make "args" const.
2806 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2807 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2808 const.
2809 (mips_load): Make "file" const.
2810 * remote-sim.c (gdbsim_load): Make "args" const.
2811 * remote.c (remote_load): Make "name" const.
2812 * symfile.c (generic_load): Make "args" const.
2813 * target-delegates.c: Rebuild.
2814 * target.c (target_load): Make "arg" const.
2815 (debug_to_load): Make "args" const.
2816 * target.h (struct target_ops) <to_load>: Make parameter const.
2817 (target_load): Update.
2818
34a68019
TT
28192014-06-26 Tom Tromey <tromey@redhat.com>
2820
2821 PR symtab/16902:
2822 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2823 (dwarf2_physname, read_partial_die)
2824 (guess_partial_die_structure_name, fixup_partial_die)
2825 (guess_full_die_structure_name, anonymous_struct_prefix)
2826 (dwarf2_name): Use per-BFD obstack.
2827
efc889c1
YQ
28282014-06-26 Yao Qi <yao@codesourcery.com>
2829
2830 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2831 dummyframe and this_id into inner block below.
2832
4395285e
YQ
28332014-06-26 Yao Qi <yao@codesourcery.com>
2834
2835 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2836 with "signal_pass[0]" in the initialization of signal_pass.
2837
aef92902
MM
28382014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2839
2840 * record-btrace.c (record_btrace_generating_corefile)
2841 (record_btrace_prepare_to_generate_core)
2842 (record_btrace_done_generating_core): New.
2843 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2844 (record_btrace_store_registers, record_btrace_prepare_to_store):
2845 Forward request when generating a core file.
2846 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2847 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2848 to_done_generating_core.
2849
5fff78c4
MM
28502014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2851
2852 * target.h (target_ops) <to_prepare_to_generate_core>
2853 <to_done_generating_core>: New.
2854 (target_prepare_to_generate_core, target_done_generating_core): New.
2855 * target.c (target_prepare_to_generate_core)
2856 (target_done_generating_core): New.
2857 * target-delegates.c: Regenerate.
2858 * gcore.c: (write_gcore_file): Rename to ...
2859 (write_gcore_file_1): ...this.
2860 (write_gcore_file): Call target_prepare_to_generate_core
2861 and target_done_generating_core.
2862
1d1f1ccb
MM
28632014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2864
2865 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2866 * gcore.c (write_gcore_file): Free memory returned from
2867 make_corefile_notes.
2868 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2869 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2870
3343ef86
YQ
28712014-06-24 Yao Qi <yao@codesourcery.com>
2872
2873 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2874 (arm_linux_init_abi): Set skip_trampoline_code with
2875 gdbarch_skip_trampoline_code instead of
2876 find_solib_trampoline_target.
2877
18d18ac8
YQ
28782014-06-24 Yao Qi <yao@codesourcery.com>
2879
2880 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2881 arm_skip_bx_reg returns non-zero.
2882
80d8d390
YQ
28832014-06-24 Yao Qi <yao@codesourcery.com>
2884
2885 * arm-tdep.c (arm_skip_bx_reg): New function.
2886 (arm_skip_stub): Call arm_skip_bx_reg.
2887
6a18a01c
DB
28882014-06-23 Don Breazeal <donb@codesourcery.com>
2889
2890 * MAINTAINERS: Add myself as write-after-approval maintainer.
2891
8e9db26e
PA
28922014-06-23 Pedro Alves <palves@redhat.com>
2893
2894 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2895 DR_CONTROL before setting DR0..DR3.
2896 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2897 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2898 bits of DR_CONTROL related to the debug register slot being
2899 disabled. If all slots are vacant, clear local slowdown as well,
2900 and assert DR_CONTROL is 0.
2901
70afc5b7
SC
29022014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2903
2904 * python/lib/gdb/command/xmethods.py
2905 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2906 current progspace only if the string "progspace" matches LOCUS_RE.
2907
840ed64d
JK
29082014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2909
2910 Fix --with-system-readline with readline-6.3 patch 5.
2911 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2912 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2913 types.
2914
26f2dc30
TT
29152014-06-20 Tom Tromey <tromey@redhat.com>
2916
2917 * dwarf2read.c (dw2_get_real_path): Use correct type in
2918 OBSTACK_CALLOC.
2919 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2920
125f8a3d
GB
29212014-06-20 Gary Benson <gbenson@redhat.com>
2922
2923 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2924 * common/glibc_thread_db.h: Likewise.
2925 * common/i386-cpuid.h: Likewise.
2926 * common/i386-gcc-cpuid.h: Likewise.
2927 * common/linux-btrace.h: Likewise.
2928 * common/linux-osdata.h: Likewise.
2929 * common/linux-procfs.h: Likewise.
2930 * common/linux-ptrace.h: Likewise.
2931 * common/mips-linux-watch.h: Likewise.
2932 * common/linux-btrace.c: Moved to nat.
2933 * common/linux-osdata.c: Likewise.
2934 * common/linux-procfs.c: Likewise.
2935 * common/linux-ptrace.c: Likewise.
2936 * common/mips-linux-watch.c: Likewise.
2937 * nat/gdb_thread_db.h: Moved from common.
2938 * nat/glibc_thread_db.h: Likewise.
2939 * nat/i386-cpuid.h: Likewise.
2940 * nat/i386-gcc-cpuid.h: Likewise.
2941 * nat/linux-btrace.c: Likewise.
2942 * nat/linux-btrace.h: Likewise.
2943 * nat/linux-osdata.c: Likewise.
2944 * nat/linux-osdata.h: Likewise.
2945 * nat/linux-procfs.c: Likewise.
2946 * nat/linux-procfs.h: Likewise.
2947 * nat/linux-ptrace.c: Likewise.
2948 * nat/linux-ptrace.h: Likewise.
2949 * nat/mips-linux-watch.c: Likewise.
2950 * nat/mips-linux-watch.h: Likewise.
2951 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2952 (object file files): Reordered.
2953 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2954 of glibc_thread_db.h.
2955
42995dbd
GB
29562014-06-20 Gary Benson <gbenson@redhat.com>
2957
2958 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2959 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2960 (i386_dr_low): Likewise.
2961 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2962 (i386_dr_low_set_addr): Likewise.
2963 (i386_dr_low_get_addr): Likewise.
2964 (i386_dr_low_can_set_control): Likewise.
2965 (i386_dr_low_set_control): Likewise.
2966 (i386_dr_low_get_control): Likewise.
2967 (i386_dr_low_get_status): Likewise.
2968 (i386_get_debug_register_length): Likewise.
2969 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2970 (i386_dr_low): Likewise.
2971 * nat/i386-dregs.c (i386-low.h): Remove include.
2972 (i386-nat.h): Likewise.
2973 (nat/i386-dregs.h): New include.
2974 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2975 (i386_dr_low_set_addr): Likewise.
2976 (i386_dr_low_get_addr): Likewise.
2977 (i386_dr_low_can_set_control): Likewise.
2978 (i386_dr_low_set_control): Likewise.
2979 (i386_dr_low_get_control): Likewise.
2980 (i386_dr_low_get_status): Likewise.
2981 (i386_get_debug_register_length): Likewise.
2982 (debug_hw_points): Likewise.
2983
3ed9baed
IB
29842014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2985
2986 * Makefile.in (SFILES): Add d-exp.y.
2987 (YYFILES): Add d-exp.c.
2988 (YYOBJ): Add d-exp.o.
2989 (local-maintainer-clean): Delete d-exp.c.
2990 * d-exp.y: New file.
2991 * d-lang.h (d_parse): New declaration.
2992 (d_error): New declaration.
2993 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2994 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2995 PREC_ORDER operators.
2996 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2997
78c164b0
YQ
29982014-06-19 Yao Qi <yao@codesourcery.com>
2999
3000 * gdbthread.h (any_running): Remove the declaration.
3001 * thread.c (any_running): Remove.
3002
f6e29b6e
YQ
30032014-06-19 Yao Qi <yao@codesourcery.com>
3004
3005 * gdbthread.h (struct thread_info) <state>: Change its type to
3006 'enum thread_state'. Update comments.
3007
034f788c
PA
30082014-06-19 Pedro Alves <palves@redhat.com>
3009
3010 * gdbthread.h (ALL_THREADS): Delete.
3011 (ALL_NON_EXITED_THREADS): New macro.
3012 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3013 instead of ALL_THREADS.
3014 * infrun.c (find_thread_needs_step_over)
3015 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3016 instead of ALL_THREADS.
3017 * record-btrace.c (record_btrace_open)
3018 (record_btrace_stop_recording, record_btrace_close)
3019 (record_btrace_is_replaying, record_btrace_resume)
3020 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3021 * remote.c (append_pending_thread_resumptions): Likewise.
3022 * thread.c (thread_apply_all_command): Likewise.
3023
46e33252
GB
30242014-06-19 Gary Benson <gbenson@redhat.com>
3025
3026 * i386-nat.c (i386_stopped_by_watchpoint):
3027 Use i386_dr_stopped_by_watchpoint.
3028 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3029 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3030
3a8ee006
GB
30312014-06-19 Gary Benson <gbenson@redhat.com>
3032
3033 * nat/i386-dregs.c: New file.
3034 * Makefile.in (i386-dregs.o): New rule.
3035 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3036 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3037 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3038 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3039 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3040 * config/i386/go32.mh (NATDEPFILES): Likewise.
3041 * config/i386/linux.mh (NATDEPFILES): Likewise.
3042 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3043 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3044 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3045 * i386-nat.h (debug_hw_points): New declaration.
3046 * i386-nat.c (breakpoint.h): Remove include.
3047 (command.h): Likewise.
3048 (target.h): Likewise.
3049 (gdb_assert.h): Likewise.
3050 (debug_hw_points): Made nonstatic.
3051 (debug_printf): Now in i386-dregs.c.
3052 (TARGET_HAS_DR_LEN_8): Likewise.
3053 (DR_CONTROL_SHIFT): Likewise.
3054 (DR_CONTROL_SIZE): Likewise.
3055 (DR_RW_EXECUTE): Likewise.
3056 (DR_RW_WRITE): Likewise.
3057 (DR_RW_READ): Likewise.
3058 (DR_RW_IORW): Likewise.
3059 (DR_LEN_1): Likewise.
3060 (DR_LEN_2): Likewise.
3061 (DR_LEN_4): Likewise.
3062 (DR_LEN_8): Likewise.
3063 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3064 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3065 (DR_ENABLE_SIZE): Likewise.
3066 (DR_LOCAL_SLOWDOWN): Likewise.
3067 (DR_GLOBAL_SLOWDOWN): Likewise.
3068 (DR_CONTROL_RESERVED): Likewise.
3069 (I386_DR_CONTROL_MASK): Likewise.
3070 (I386_DR_VACANT): Likewise.
3071 (I386_DR_LOCAL_ENABLE): Likewise.
3072 (I386_DR_GLOBAL_ENABLE): Likewise.
3073 (I386_DR_DISABLE): Likewise.
3074 (I386_DR_SET_RW_LEN): Likewise.
3075 (I386_DR_GET_RW_LEN): Likewise.
3076 (I386_DR_WATCH_HIT): Likewise.
3077 (i386_wp_op_t): Likewise.
3078 (i386_show_dr): Likewise.
3079 (i386_length_and_rw_bits): Likewise.
3080 (i386_insert_aligned_watchpoint): Likewise.
3081 (i386_remove_aligned_watchpoint): Likewise.
3082 (i386_handle_nonaligned_watchpoint): Likewise.
3083 (i386_update_inferior_debug_regs): Likewise.
3084 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3085 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3086 (i386_region_ok_for_watchpoint):
3087 Use i386_dr_region_ok_for_watchpoint.
3088 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3089
322a8e06
GB
30902014-06-19 Gary Benson <gbenson@redhat.com>
3091
3092 * i386-nat.c (i386_insert_hw_breakpoint): Use
3093 i386_insert_watchpoint.
3094 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3095
8f26655c
GB
30962014-06-19 Gary Benson <gbenson@redhat.com>
3097
3098 * i386-nat.c (i386_dr_show): Renamed to
3099 i386_show_dr and made static. All uses updated.
3100 (i386_dr_length_and_rw_bits): Renamed to
3101 i386_length_and_rw_bits and made static.
3102 All uses updated.
3103 (i386_dr_insert_aligned_watchpoint): Renamed to
3104 i386_insert_aligned_watchpoint and made static.
3105 All uses updated.
3106 (i386_dr_remove_aligned_watchpoint): Renamed to
3107 i386_remove_aligned_watchpoint and made static.
3108 All uses updated.
3109 (i386_dr_update_inferior_debug_regs): Renamed to
3110 i386_update_inferior_debug_regs and made static.
3111 All uses updated.
3112 * nat/i386-dregs.h (i386_dr_show): Removed.
3113 (i386_dr_length_and_rw_bits): Likewise.
3114 (i386_dr_insert_aligned_watchpoint): Likewise.
3115 (i386_dr_remove_aligned_watchpoint): Likewise.
3116 (i386_dr_update_inferior_debug_regs): Likewise.
3117
992c7d70
GB
31182014-06-19 Gary Benson <gbenson@redhat.com>
3119
3120 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3121 * configure: Regenerate.
3122 * config.in: Likewise.
3123 * main.c (signal.h): New include.
3124 (setup_alternate_signal_stack): New function.
3125 (captured_main): Call the above.
3126 * cp-support.c (signal.h): New include.
3127 (catch_demangler_crashes): New flag.
3128 (SIGJMP_BUF): New define.
3129 (SIGSETJMP): Likewise.
3130 (SIGLONGJMP): Likewise.
3131 (gdb_demangle_jmp_buf): New static global.
3132 (gdb_demangle_attempt_core_dump): Likewise.
3133 (gdb_demangle_signal_handler): New function.
3134 (gdb_demangle): If catch_demangler_crashes is set, install the
3135 above signal handler before calling bfd_demangle, and restore
3136 the original signal handler afterwards. Display the offending
3137 symbol and call demangler_warning the first time a segmentation
3138 fault is caught.
3139 (_initialize_cp_support): New maint set/show command.
3140
eae7090b
GB
31412014-06-19 Gary Benson <gbenson@redhat.com>
3142
3143 * utils.h (resource_limit_kind): New enum.
3144 (can_dump_core): New declaration.
3145 (warn_cant_dump_core): Likewise.
3146 (dump_core): Likewise.
3147 * utils.c (dump_core): Made nonstatic. Added new
3148 parameter "limit_kind".
3149 (can_dump_core): Made nonstatic. Moved printing code to...
3150 (warn_cant_dump_core): New function.
3151 (can_dump_core_warn): Likewise.
3152 (internal_vproblem): Replace calls to can_dump_core with
3153 calls to can_dump_core_warn. Supply new argument to each.
3154
57fcfb1b
GB
31552014-06-19 Gary Benson <gbenson@redhat.com>
3156
3157 * utils.h (demangler_vwarning): New declaration.
3158 (demangler_warning): Likewise.
3159 * utils.c (struct internal_problem)
3160 <user_settable_should_quit>: New field.
3161 <user_settable_should_dump_core>: Likewise
3162 (internal_error_problem): Add values for above new fields.
3163 (internal_warning_problem): Likewise.
3164 (demangler_warning_problem): New static global.
3165 (demangler_vwarning): New function.
3166 (demangler_warning): Likewise.
3167 (add_internal_problem_command): Selectively add commands.
3168 (_initialize_utils): New internal problem command.
3169 * maint.c (maintenance_demangler_warning): New function.
3170 (_initialize_maint_cmds): New command.
3171
17a40b44
TT
31722014-06-18 Tom Tromey <tromey@redhat.com>
3173
3174 * f-valprint.c (info_common_command_for_block): Update.
3175 * symtab.h (struct general_symbol_info) <common_block>: Now
3176 const.
3177
346d1dfe
TT
31782014-06-18 Tom Tromey <tromey@redhat.com>
3179
3180 * symtab.h (struct symtab) <blockvector>: Now const.
3181 * ada-lang.c (ada_add_global_exceptions): Update.
3182 * buildsym.c (augment_type_symtab): Update.
3183 * dwarf2read.c (dw2_lookup_symbol): Update.
3184 * jit.c (finalize_symtab): Update.
3185 * jv-lang.c (add_class_symtab_symbol): Update.
3186 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3187 Update.
3188 * objfiles.c (objfile_relocate1): Update.
3189 * psymtab.c (lookup_symbol_aux_psymtabs)
3190 (maintenance_check_psymtabs): Update.
3191 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3192 Update.
3193 * spu-tdep.c (spu_catch_start): Update.
3194 * symmisc.c (dump_symtab_1): Update.
3195 * symtab.c (lookup_global_symbol_from_objfile)
3196 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3197 (basic_lookup_transparent_type_quick)
3198 (basic_lookup_transparent_type, find_pc_sect_symtab)
3199 (find_pc_sect_line, search_symbols): Update.
3200 * block.c (find_block_in_blockvector): Make "bl" const.
3201 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3202 const.
3203 (blockvector_contains_pc): Make "bv" const.
3204 (block_for_pc_sect): Update.
3205 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3206 (blockvector_contains_pc): Update.
3207 * breakpoint.c (resolve_sal_pc): Update.
3208 * inline-frame.c (block_starting_point_at): Update.
3209
1834676b
TT
32102014-06-18 Tom Tromey <tromey@redhat.com>
3211
3212 * completer.c (complete_line): Make "line_buffer" const.
3213 * completer.h (complete_line): Update.
3214
ac1a991b
TT
32152014-06-18 Tom Tromey <tromey@redhat.com>
3216
3217 * symtab.c (add_macro_name): Remove unneeded cast.
3218
5bc98e52
TT
32192014-06-18 Tom Tromey <tromey@redhat.com>
3220
3221 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3222 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3223
8236def8
TT
32242014-06-18 Tom Tromey <tromey@redhat.com>
3225
3226 * probe.c (info_probes_for_ops): Make "arg" const.
3227 * probe.h (info_probes_for_ops): Update.
3228
3977b71f
TT
32292014-06-18 Tom Tromey <tromey@redhat.com>
3230
3231 * varobj.c (varobj_create): Update.
3232 * valops.c (value_of_this): Update.
3233 * tracepoint.c (add_local_symbols, scope_info): Update.
3234 * symtab.h (struct general_symbol_info) <block>: Now const.
3235 * symtab.c (skip_prologue_sal)
3236 (default_make_symbol_completion_list_break_on)
3237 (skip_prologue_using_sal): Update.
3238 * stack.h (iterate_over_block_locals)
3239 (iterate_over_block_local_vars): Update.
3240 * stack.c (print_frame_args): Update.
3241 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3242 parameter const.
3243 (get_selected_block): Make return type const.
3244 * python/py-frame.c (frapy_block): Update.
3245 * python/py-block.c (gdbpy_block_for_pc): Update.
3246 * p-exp.y (%union) <bval>: Now const.
3247 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3248 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3249 * m2-exp.y (%union) <bval>: Now const.
3250 * linespec.c (get_current_search_block): Make return type const.
3251 (create_sals_line_offset, find_label_symbols): Update.
3252 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3253 Update.
3254 (block_starting_point_at): Make "block" const.
3255 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3256 (check_exception_resume): Update.
3257 * guile/scm-frame.c (gdbscm_frame_block): Update.
3258 * guile/scm-block.c (gdbscm_lookup_block): Update.
3259 * frame.h (get_frame_block): Update.
3260 (get_selected_block): Make return type const.
3261 * frame.c (frame_id_inner): Update.
3262 * f-valprint.c (info_common_command_for_block)
3263 (info_common_command): Update.
3264 * dwarf2loc.c (dwarf2_find_location_expression)
3265 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3266 (locexpr_describe_location_piece): Update.
3267 * c-exp.y (%union) <bval>: Now const.
3268 * breakpoint.c (resolve_sal_pc): Update.
3269 * blockframe.c (get_frame_block):Make return type const.
3270 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3271 (block_innermost_frame): Update.
3272 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3273 (block_for_pc, block_for_pc_sect): Update.
3274 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3275 'pblock' const.
3276 (block_for_pc_sect, block_for_pc): Make return type const.
3277 * ax-gdb.c (gen_expr): Update.
3278 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3279 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3280 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3281 (ada_read_var_value): Update.
3282 * ada-exp.y (struct name_info) <block>: Now const.
3283 (%union): Likewise.
3284 (block_lookup): Constify.
3285
b9228891
GB
32862014-06-18 Gary Benson <gbenson@redhat.com>
3287
3288 * nat/i386-dregs.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3290 * i386-nat.h (i386-dregs.h): New include.
3291 (DR_FIRSTADDR): Now in i386-dregs.h.
3292 (DR_LASTADDR): Likewise.
3293 (DR_NADDR): Likewise.
3294 (DR_STATUS): Likewise.
3295 (DR_CONTROL): Likewise.
3296 (i386_debug_reg_state): Likewise.
3297 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3298
a1aa2221
LM
32992014-06-18 Don Breazeal <donb@codesourcery.com>
3300
3301 * breakpoint.c (set_longjmp_breakpoint): Call
3302 momentary_breakpoint_from_master with additional argument.
3303 (set_longjmp_breakpoint_for_call_dummy): Call
3304 momentary_breakpoint_from_master with additional argument.
3305 (set_std_terminate_breakpoint): Call
3306 momentary_breakpoint_from_master with additional argument.
3307 (momentary_breakpoint_from_master): Add argument to function
3308 definition and use it to initialize structure member flag.
74228e77 3309 (clone_momentary_breakpoint): Call
a1aa2221
LM
3310 momentary_breakpoint_from_master with additional argument.
3311 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3312 member flags set in momentary_breakpoint_from_master.
3313
4be83cc2
GB
33142014-06-18 Gary Benson <gbenson@redhat.com>
3315
3316 * i386-nat.c (i386_show_dr): Renamed to
3317 i386_dr_show and made nonstatic. All uses updated.
3318 (i386_length_and_rw_bits): Renamed to
3319 i386_dr_length_and_rw_bits and made nonstatic.
3320 All uses updated.
3321 (i386_insert_aligned_watchpoint): Renamed to
3322 i386_dr_insert_aligned_watchpoint and made nonstatic.
3323 All uses updated.
3324 (i386_remove_aligned_watchpoint): Renamed to
3325 i386_dr_remove_aligned_watchpoint and made nonstatic.
3326 All uses updated.
3327 (i386_update_inferior_debug_regs): Renamed to
3328 i386_dr_update_inferior_debug_regs and made nonstatic.
3329 All uses updated.
3330
131aa0d4
GB
33312014-06-18 Gary Benson <gbenson@redhat.com>
3332
3333 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3334 (i386_dr_low_can_set_control): Likewise.
3335 (i386_dr_low_set_addr): Likewise.
3336 (i386_dr_low_set_control): Likewise.
3337 (i386_dr_low_get_addr): Likewise.
3338 (i386_dr_low_get_status): Likewise.
3339 (i386_dr_low_get_control): Likewise.
3340 (i386_insert_aligned_watchpoint): Use new macros.
3341 (i386_update_inferior_debug_regs): Likewise.
3342 (i386_stopped_data_address): Likewise.
3343
d9305f7f
GB
33442014-06-18 Gary Benson <gbenson@redhat.com>
3345
3346 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3347 New parameter. All uses updated.
3348
ea008da4
GB
33492014-06-18 Gary Benson <gbenson@redhat.com>
3350
3351 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3352 All uses updated.
3353
1b6d4134
GB
33542014-06-18 Gary Benson <gbenson@redhat.com>
3355
3356 * i386-nat.c (debug_printf): New macro.
3357 (i386_get_debug_register_length): Likewise.
3358 (TARGET_HAS_DR_LEN_8): Use above macro.
3359 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3360 and printf_unfiltered. Use phex to format values.
3361
9b4550ef
GB
33622014-06-18 Gary Benson <gbenson@redhat.com>
3363
3364 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3365 Make const.
3366
6e62758f
GB
33672014-06-18 Gary Benson <gbenson@redhat.com>
3368
3369 * i386-nat.c: Comment changes.
3370
51c79e94
GB
33712014-06-18 Gary Benson <gbenson@redhat.com>
3372
3373 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3374
3e11889a
GB
33752014-06-18 Gary Benson <gbenson@redhat.com>
3376
3377 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3378 (i386_insert_aligned_watchpoint): Likewise.
3379 (i386_remove_aligned_watchpoint): Likewise.
3380 (i386_handle_nonaligned_watchpoint): Likewise.
3381
fc6e2f03
GB
33822014-06-18 Gary Benson <gbenson@redhat.com>
3383
3384 * i386-nat.c: Whitespace changes.
3385
2afe7d50
SB
33862014-06-17 Samuel Bronson <naesten@gmail.com>
3387
3388 * MAINTAINERS: Update Roland McGrath's email address.
3389 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3390 Red Hat a while ago, and giving me a current address.
2afe7d50 3391
3bca49ee
TT
33922014-06-17 Tom Tromey <tromey@redhat.com>
3393
3394 * utils.h (savestring): Remove declaration.
3395
6e366df1
TT
33962014-06-17 Tom Tromey <tromey@redhat.com>
3397
3398 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3399
6be47f0c
KS
34002014-06-16 Keith Seitz <keiths@redhat.com>
3401
3402 PR mi/15863
3403 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3404 to update the varobj if inferior_ptid is null_ptid.
3405
7bc112c1
TT
34062014-06-16 Tom Tromey <tromey@redhat.com>
3407
3408 * target.h (struct target_ops) <to_info_proc>: Make parameter
3409 const.
3410 (target_info_proc): Update.
3411 * target.c (target_info_proc): Make "args" const.
3412 * procfs.c (procfs_info_proc): Update.
3413 * linux-tdep.c (linux_info_proc): Update.
3414 (linux_core_info_proc_mappings): Make "args" const.
3415 (linux_core_info_proc): Update.
3416 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3417 * gdbarch.c: Rebuild.
3418 * gdbarch.h: Rebuild.
3419 * corelow.c (core_info_proc): Update.
3420
fee354ee
TT
34212014-06-16 Tom Tromey <tromey@redhat.com>
3422
3423 * target.h (struct target_ops) <to_disconnect>: Make parameter
3424 const.
3425 (target_disconnect): Update.
3426 * target.c (target_disconnect): Make "args" const.
3427 * target-delegates.c: Rebuild.
3428 * remote.c (remote_disconnect): Update.
3429 * record.h (record_disconnect): Update.
3430 * record.c (record_disconnect): Update.
3431 * inf-child.c (inf_child_disconnect): Update.
3432
a30bf1f1
TT
34332014-06-16 Tom Tromey <tromey@redhat.com>
3434
3435 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3436 * target.c (debug_to_rcmd, default_rcmd): Update.
3437 * target-delegates.c: Rebuild.
3438 * remote.c (remote_rcmd): Update.
3439 * monitor.c (monitor_rcmd): Update.
3440
d03de421
PA
34412014-06-16 Pedro Alves <palves@redhat.com>
3442
3443 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3444 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3445 have OBJF_SHARED set.
3446 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3447 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3448 instead of OBJF_USERLOADED.
3449 * objfiles.h (OBJF_SHARED): Update comment.
3450 (userloaded_objfile_contains_address_p): Rename to ...
3451 (shared_objfile_contains_address_p): ... this, and update
3452 comments.
3453 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3454 new objfile.
3455 (remove_symbol_file_command): Skip objfiles that don't have
3456 OBJF_SHARED set.
3457
99f4262f
TT
34582014-06-16 Tom Tromey <tromey@redhat.com>
3459
3460 * minsyms.h (prim_record_minimal_symbol)
3461 (prim_record_minimal_symbol_and_info): Update comments.
3462
97d66cc6
EZ
34632014-06-14 Eli Zaretskii <eliz@gnu.org>
3464
3465 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3466 or --without-guile, according to how GDB was built.
3467
635c7e8a
TT
34682014-06-13 Tom Tromey <tromey@redhat.com>
3469
3470 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3471 to help_list.
3472 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3473 to help_list.
3474 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3475 help_list.
3476 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3477 help_list.Pass all_commands, not -1, to help_list.
3478 * cli/cli-dump.c (dump_command, append_command)
3479 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3480 (binary_dump_command, binary_append_command): Pass all_commands,
3481 not -1, to help_list.
3482 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3483 -1, to help_list.
3484 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3485 -1, to help_list.
3486 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3487 help_list.
3488 * top.c (set_history): Pass all_commands, not -1, to help_list.
3489 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3490 all_commands, not -1, to help_list.
3491 * symfile.c (overlay_command): Pass all_commands, not -1, to
3492 help_list.
3493 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3494 help_list.
3495 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3496 help_list.
3497 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3498 -1, to help_list.
3499 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3500 not -1, to help_list.
3501 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3502 not -1, to help_list.
3503 * maint.c (maintenance_command, maintenance_info_command)
3504 (maintenance_print_command, maintenance_set_cmd): Pass
3505 all_commands, not -1, to help_list.
3506 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3507 help_list.
3508 * language.c (set_check): Pass all_commands, not -1, to help_list.
3509 * infcmd.c (unset_command): Pass all_commands, not -1, to
3510 help_list.
3511 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3512 help_list.
3513 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3514 help_list.
3515 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3516 help_list.
3517 * breakpoint.c (save_command): Pass all_commands, not -1, to
3518 help_list.
3519 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3520 all_commands, not -1, to help_list.
3521
b94ade42
PL
35222014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3523
3524 * regcache.c (struct register_to_invalidate): New structure.
3525 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3526 functions.
3527 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3528
31f628ae
YQ
35292014-06-12 Yao Qi <yao@codesourcery.com>
3530
3531 * varobj.c (varobj_get_num_children): Call
3532 varobj_is_dynamic_p.
3533 (varobj_list_children): Likewise.
3534 (varobj_update): Likewise. Update comments.
3535
cde5ef40
YQ
35362014-06-12 Yao Qi <yao@codesourcery.com>
3537
3538 * varobj.c (varobj_pretty_printed_p): Rename to ...
3539 (varobj_is_dynamic_p): ... this. New function.
3540 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3541 (varobj_is_dynamic_p): Declare.
3542 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3543 (mi_print_value_p, varobj_update_one): Likewise.
3544
576ea091
YQ
35452014-06-12 Pedro Alves <pedro@codesourcery.com>
3546 Yao Qi <yao@codesourcery.com>
3547
3548 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3549 (varobj_get_iterator): Wrap up code for pretty-printer by
3550 "#if HAVE_PYTHON" and "#endif".
3551 (update_dynamic_varobj_children): Likewise.
3552
827f100c
YQ
35532014-06-12 Pedro Alves <pedro@codesourcery.com>
3554 Yao Qi <yao@codesourcery.com>
3555
3556 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3557 gdb_python_initialized is false. Move some code from varobj.c.
3558 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3559 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3560 (struct varobj_item): Moved to varobj-iter.h".
3561 (varobj_clear_saved_item): New function.
3562 (update_dynamic_varobj_children): Move python-related code to
3563 py-varobj.c.
3564 (free_variable): Call varobj_clear_saved_item and
3565 varobj_iter_delete.
3566
e5250216
YQ
35672014-06-12 Pedro Alves <pedro@codesourcery.com>
3568 Yao Qi <yao@codesourcery.com>
3569
3570 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3571 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3572 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3573 (py-varobj.o): New rule.
3574 * python/py-varobj.c: New file.
3575 * python/python-internal.h (py_varobj_get_iterator): Declare.
3576 * varobj-iter.h: New file.
3577 * varobj.c: Include "varobj-iter.h"
3578 (struct varobj) <child_iter>: Change its type from "PyObject *"
3579 to "struct varobj_iter *".
3580 <saved_item>: Likewise.
3581 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3582 [HAVE_PYTHON] (varobj_get_iterator): New function.
3583 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3584 python-specific code to python/py-varobj.c.
3585 (install_visualizer): Call varobj_iter_delete instead of
3586 Py_XDECREF.
3587 * varobj.h (varobj_ensure_python_env): Declare.
3588
5a2e0d6e
YQ
35892014-06-12 Yao Qi <yao@codesourcery.com>
3590
3591 * varobj.c (struct varobj_item): New structure.
3592 (create_child_with_value): Update declaration.
3593 (varobj_add_child): Replace arguments 'name' and 'value' with
3594 'item'. All callers updated.
3595 (install_dynamic_child): Likewise.
3596 (update_dynamic_varobj_children): Likewise.
3597 (varobj_add_child): Likewise.
3598 (create_child_with_value): Likewise.
3599
919b9a93
JB
36002014-06-11 Joel Brobecker <brobecker@adacore.com>
3601
3602 * NEWS: Create a new section for the next release branch.
3603 Rename the section of the current branch, now that it has
3604 been cut.
3605
71a55bdf
JB
36062014-06-11 Joel Brobecker <brobecker@adacore.com>
3607
3608 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3609 * version.in: Bump version to 7.8.50.DATE-cvs.
3610
364fe1f7
PA
36112014-06-11 Pedro Alves <palves@redhat.com>
3612
3613 PR remote/17028
3614 * ser-mingw.c (net_windows_socket_check_pending): New function.
3615 (net_windows_select_thread): Ignore spurious wakeups. Use
3616 net_windows_socket_check_pending.
3617 (net_windows_wait_handle): Check for pending events with
3618 ioctlsocket, through net_windows_socket_check_pending, instead of
3619 checking the socket's event.
3620
5a6c7709
SC
36212014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3622
3623 * python/python-internal.h (gdb_PyObject_GetAttrString)
3624 (gdb_PyObject_HasAttrString): New inline function definitions.
3625 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3626 char * of the second argument to PyObject_GetAttrString.
74228e77 3627
0e58ee40
JB
36282014-06-10 Joel Brobecker <brobecker@adacore.com>
3629
3630 * serial.c (serial_write): Fix index of character to be printed
3631 in call to serial_logchar when serial debug traces are enabled.
3632
d190df30
JB
36332014-06-10 Joel Brobecker <brobecker@adacore.com>
3634
3635 * gdbtypes (resolve_dynamic_range): Add function description.
3636
b4b01d36
PA
36372014-06-09 Pedro Alves <palves@redhat.com>
3638
3639 * linux-nat.c (linux_child_follow_fork): Initialize status with
3640 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3641 inner block. Only pass the signal to PTRACE_DETACH if in pass
3642 state.
3643
3657956b
GB
36442014-06-09 Gary Benson <gbenson@redhat.com>
3645
3646 * common/signals.c (gdb_signal_from_host): Reorder to separate
3647 the always-available ANSI-standard signals from the signals that
3648 require checking.
3649 (do_gdb_signal_to_host): Likewise.
3650 * proc-events.c (signal_table): Likewise.
3651
c077881a
HZ
36522014-06-08 Hui Zhu <hui@codesourcery.com>
3653
3654 * common/linux-ptrace.c (linux_disable_event_reporting): New
3655 function.
3656 * common/linux-ptrace.h (linux_disable_event_reporting): New
3657 declaration.
3658 * linux-nat.c (linux_child_follow_fork): Do a single step before
3659 detach.
3660
4186eb54
KS
36612014-06-07 Keith Seitz <keiths@redhat.com>
3662
3663 Revert:
3664 PR c++/16253
3665 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3666 from symbol_matches_domain in symtab.c. All local callers
3667 of symbol_matches_domain updated.
3668 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3669 search STRUCT_DOMAIN.
3670 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3671 independently. standard_lookup will do that automatically.
3672 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3673 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3674 (cp_lookup_symbol_in_namespace): Likewise.
3675 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3676 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3677 may return a STRUCT_DOMAIN match.
3678 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3679 * cp-support.c: Include language.h.
3680 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3681 VAR_DOMAIN.
3682 * psymtab.c (match_partial_symbol): Compare the requested
3683 domain with the symbol's domain directly.
3684 (lookup_partial_symbol): Likewise.
3685 * symtab.c (lookup_symbol_in_language): Explain when/why
3686 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3687 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3688 appropriate languages.
3689 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3690 and moved to ada-lang.c
3691 (lookup_block_symbol): Explain that this function only returns
3692 symbol matching the requested DOMAIN.
3693 Compare the requested domain with the symbol's domain directly.
3694 (iterate_over_symbols): Compare the requested domain with the
3695 symbol's domain directly.
3696 * symtab.h (symbol_matches_domain): Remove.
3697
25326a28 36982014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3699
3700 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3701 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3702 (gdbscm_guile_version_is_at_least): Declare.
3703 (gdbscm_scm_string_to_int): Declare.
3704 * guile/guile.c (gdbscm_guile_major_version): New global.
3705 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3706 (guile_datadir): New static global.
3707 (gdbscm_guile_data_directory): New function.
3708 (initialize_scheme_side): Update.
3709 (misc_guile_functions): Add guile-data-directory.
3710 (initialize_gdb_module): Fetch guile version number.
3711 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3712 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3713 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3714 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3715 comments.
3716 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3717 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3718 * guile/scm-value.c (gdbscm_value_to_string): Only call
3719 scm_port_conversion_strategy if Guile version >= 2.0.6.
3720
0a770bb2 37212014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3722
3723 * main.c (print_gdb_help): Add -q and --silent.
3724
73ba372c
GB
37252014-06-06 Gary Benson <gbenson@redhat.com>
3726
3727 * common/signals.c: Remove preprocessor conditionals for
3728 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3729 SIGSEGV and SIGTERM.
3730 * proc-events.c: Likewise.
3731
c33b2f12
MM
37322014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3733
3734 * symfile.c (symfile_free_objfile): Remove restriction to
3735 OBJF_USERLOADED.
3736 * symfile-mem.c (symbol_file_add_from_memory): Call
3737 add_target_sections_of_objfile.
3738
fb934770
LC
37392014-06-05 Ludovic Courtès <ludo@gnu.org>
3740
3741 * guile/scm-value.c (gdbscm_history_append_x): Use
3742 'vlscm_get_value_smob_arg_unsafe' instead of
3743 'vlscm_scm_to_value'.
3744
6ef284bd
SM
37452014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3746
3747 PR mi/15806
3748 * utils.c (printchar): Don't escape at all if quoter is NUL.
3749 Update function documentation to clarify effect of parameter
3750 QUOTER.
3751 * remote.c (escape_buffer): Pass '\\' as the quoter to
3752 fputstrn_unfiltered.
3753 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3754 generate the output.
3755 (mi_solib_unloaded): Same.
3756
270c9937
JB
37572014-06-05 Joel Brobecker <brobecker@adacore.com>
3758
3759 * development.sh: Delete.
3760 * Makefile.in (config.status): Adjust dependency on development.sh.
3761 * configure.ac: Adjust development.sh source call.
3762 * configure: Regenerate.
3763
16f691fb
DE
37642014-06-04 Doug Evans <xdje42@gmail.com>
3765
3766 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3767 is_scheme_bkpt, spec.
3768 (bpscm_make_breakpoint_smob): Initialize new members.
3769 (gdbscm_create_breakpoint_x): Split into two ...
3770 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3771 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3772 (scheme_function breakpoint_functions): Update.
3773 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3774 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3775 register-breakpoint!.
3776
ef7cab6b
JB
37772014-06-04 Joel Brobecker <brobecker@adacorer.com>
3778
3779 PR server/17023
3780 * mem-break.c (z_type_supported): Return zero if
3781 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3782
012370f6
TT
37832014-06-04 Tom Tromey <tromey@redhat.com>
3784
3785 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3786 value_from_contents_and_address_unresolved.
3787 (ada_template_to_fixed_record_type_1): Likewise.
3788 (ada_which_variant_applies): Likewise.
3789 * value.h (value_from_contents_and_address_unresolved): Declare.
3790 * value.c (value_from_contents_and_address_unresolved): New
3791 function.
3792 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3793 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3794 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3795
92e2a17f
TT
37962014-06-04 Tom Tromey <tromey@redhat.com>
3797
3798 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3799
c0939df1
TT
38002014-06-04 Tom Tromey <tromey@redhat.com>
3801
3802 * procfs.c (procfs_attach): Make "args" const.
3803 * windows-nat.c (windows_attach): Make "args" const.
3804 * nto-procfs.c (procfs_attach): Make "args" const.
3805 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3806 * go32-nat.c (go32_attach): Make "args" const.
3807 * gnu-nat.c (gnu_attach): Make "args" const.
3808 * darwin-nat.c (darwin_attach): Make "args" const.
3809 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3810 * linux-nat.c (linux_nat_attach): Make "args" const.
3811 * remote.c (extended_remote_attach_1, extended_remote_attach):
3812 Make "args" const.
3813 * target.h (struct target_ops) <to_attach>: Make "args" const.
3814 (find_default_attach): Likewise.
3815 * utils.c (parse_pid_to_attach): Make "args" const.
3816 * utils.h (parse_pid_to_attach): Update.
3817
8eaff7cd
TT
38182014-06-04 Tom Tromey <tromey@redhat.com>
3819
3820 * target-delegates.c: Rebuild.
3821 * target.c (default_thread_address_space): New function.
3822 (target_thread_address_space): Simplify.
3823 * target.h (struct target_ops) <to_thread_address_space>: Add
3824 TARGET_DEFAULT_FUNC.
3825
1913f160
DE
38262014-06-04 Doug Evans <xdje42@gmail.com>
3827
3828 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3829
70ad5bff
MM
38302014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3831
3832 * record-btrace.c: Include event-loop.h and inf-loop.h.
3833 (record_btrace_resume_exec_dir)
3834 (record_btrace_async_inferior_event_handler)
3835 (record_btrace_handle_async_inferior_event): New.
3836 (record_btrace_open): Create async event handler.
3837 (record_btrace_close): Delete async event handler.
3838 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3839 Mark async event handler.
3840 (record_btrace_execution_direction): New.
3841 (init_record_btrace_ops): Initialize to_execution_direction.
3842
b6210538
DE
38432014-06-03 Doug Evans <xdje42@gmail.com>
3844
3845 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3846 (gdbscm_make_parameter): Ditto.
3847
a5b1fd27
DE
38482014-06-03 Doug Evans <dje@google.com>
3849
3850 * exec.c (exec_close_1): Call clear_section_table instead of
3851 resize_section_table.
3852 (clear_section_table): New function.
3853 (resize_section_table): Make static. Rename arg num_added to
3854 adjustment.
3855 * exec.h (clear_section_table): Declare.
3856 (resize_section_table): Delete.
3857 * progspace.c (release_program_space): Call clear_section_table
3858 instead of resize_section_table.
3859
0c6e92a5
SC
38602014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3861
3862 * NEWS (Python Scripting): Add entry about the new xmethods
3863 feature.
3864
883964a7
SC
38652014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3866
3867 * python/py-xmethods.c: New file.
3868 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3869 (objfpy_dealloc): XDECREF on the new xmethods field.
3870 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3871 field.
3872 (objfpy_get_xmethods): New function.
3873 (objfile_getset): New entry 'xmethods'.
3874 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3875 (pspy_dealloc): XDECREF on the new xmethods field.
3876 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3877 field.
3878 (pspy_get_xmethods): New function.
3879 (pspace_getset): New entry 'xmethods'.
3880 * python/python-internal.h: Add declarations for new functions.
3881 * python/python.c (_initialize_python): Invoke
3882 gdbpy_initialize_xmethods.
3883 * python/lib/gdb/__init__.py (xmethods): New
3884 attribute.
3885 * python/lib/gdb/xmethod.py: New file.
3886 * python/lib/gdb/command/xmethods.py: New file.
3887
58992dc5
SC
38882014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3889
3890 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3891 best match method returned by find_overload_match is an xmethod.
3892 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3893 the best matching operator returned by find_overload_match is an
3894 xmethod.
3895 * valops.c: #include "extension.h".
3896 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3897 Return void. The list of matching source methods is returned in
3898 "fn_list" and a vector of matching debug method workers is
3899 returned in "xm_worker_vec". Update all callers.
3900 (value_find_oload_method_list): Likewise.
3901 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3902 non-NULL, then the index of the best matching method in this
3903 vector is returned. Update all callers.
3904 (find_overload_match): Include xmethods while performing overload
3905 resolution.
3906
e81e7f5e
SC
39072014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3908
3909 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3910 * extension-priv.h (struct extension_language_ops): Add the
3911 xmethod interface.
3912 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3913 get_matching_xmethod_workers, get_xmethod_argtypes,
3914 invoke_xmethod, free_xmethod_worker,
3915 free_xmethod_worker_vec): New functions.
3916 * extension.h: #include "common/vec.h".
3917 New function declarations.
3918 (struct xmethod_worker): New struct.
3919 (VEC (xmethod_worker_ptr)): New vector type.
3920 (xmethod_worker_ptr): New typedef.
3921 (xmethod_worker_vec): Likewise.
3922 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3923 builtin_type.
3924 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3925 (struct builtin_type): New field "xmethod".
3926 * valarith.c (value_ptradd): Assert that the value argument is not
3927 lval_xcallable.
3928 * valops.c (value_must_coerce_to_target): Return 0 for
3929 lval_xcallable values.
3930 * value.c (struct value): New field XM_WORKER in the field
3931 LOCATION.
3932 (value_address, value_raw_address): Return 0 for lval_xcallable
3933 values.
3934 (set_value_address): Assert that the value is not an
3935 lval_xcallable.
3936 (value_free): Free the associated xmethod worker when freeing
3937 lval_xcallable values.
3938 (set_value_component_location): Assert that the WHOLE value is not
3939 lval_xcallable.
3940 (value_of_xmethod, call_xmethod): New functions.
3941 * value.h: Declare "struct xmethod_worker".
3942 Declare new functions value_of_xmethod, call_xmethod.
3943
ef370185
JB
39442014-06-03 Joel Brobecker <brobecker@adacore.com>
3945 Pedro Alves <palves@redhat.com>
3946
3947 PR breakpoints/17000
3948 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3949 New function, extracted from software_breakpoint_inserted_here_p.
3950 (software_breakpoint_inserted_here_p): Replace factored out code
3951 by call to find_non_raw_software_breakpoint_inserted_here.
3952 (bp_target_info_copy_insertion_state): New function.
3953 (bkpt_insert_location): Handle the case of a single-step
3954 breakpoint already inserted at the same address.
3955 (bkpt_remove_location): Handle the case of a single-step
3956 breakpoint still inserted at the same address.
3957 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3958 breakpoint already inserted at the same address.
3959 (deprecated_remove_raw_breakpoint): Handle the case of a
3960 non-raw breakpoint still inserted at the same address.
3961 (find_single_step_breakpoint): New function, extracted from
3962 single_step_breakpoint_inserted_here_p.
3963 (find_single_step_breakpoint): New function,
3964 factored out from single_step_breakpoint_inserted_here_p.
3965 (single_step_breakpoint_inserted_here_p): Reimplement.
3966
1e2ccb61
BM
39672014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3968
3969 Pushed by Joel Brobecker <brobecker@adacore.com>
3970 * source.c (show_substitute_path_command): Fix display of matching
3971 substitution rules.
3972
d3448d85
GB
39732014-06-03 Gary Benson <gbenson@redhat.com>
3974
3975 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3976
06eb1586
DE
39772014-06-02 Doug Evans <xdje42@gmail.com>
3978
3979 Add parameter support for Guile.
3980 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3981 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3982 (scm-param.o): New rule.
3983 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3984 (gdbscm_misc_error): Declare.
3985 (gdbscm_canonicalize_command_name): Declare.
3986 (gdbscm_scm_to_host_string): Declare.
3987 (gdbscm_scm_from_host_string): Declare.
3988 (gdbscm_initialize_parameters): Declare.
3989 * guile/guile.c (initialize_gdb_module): Call
3990 gdbscm_initialize_parameters.
3991 * guile/lib/gdb.scm: Export parameter symbols.
3992 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3993 cmdscm_canonicalize_name and made public. All callers updated.
3994 * guile/scm-exception.c (gdbscm_misc_error): New function.
3995 * guile/scm-param.c: New file.
3996 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3997 (gdbscm_scm_to_host_string): New function.
3998 (gdbscm_scm_from_host_string): New function.
3999 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4000
e698b8c4
DE
40012014-06-02 Doug Evans <xdje42@gmail.com>
4002
4003 Add command support for Guile.
4004 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4005 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4006 (scm-cmd.o): New rule.
4007 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4008 (gdbscm_user_error_p): Declare.
4009 (gdbscm_parse_command_name): Declare.
4010 (gdbscm_valid_command_class_p): Declare.
4011 (gdbscm_initialize_commands): Declare.
4012 * guile/guile.c (initialize_gdb_module): Call
4013 gdbscm_initialize_commands.
4014 * guile/lib/gdb.scm: Export command symbols.
4015 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4016 (throw-user-error): New function.
4017 * guile/scm-cmd.c: New file.
4018 * guile/scm-exception.c (user_error_symbol): New static global.
4019 (gdbscm_user_error_p): New function.
4020 (gdbscm_initialize_exceptions): Set user_error_symbol.
4021 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4022
fb1f94b0
PM
40232014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4024
4025 * top.c (command_loop): Handle comments here...
4026 (command_line_input): ... not here.
4027
ded03782
DE
40282014-06-02 Doug Evans <xdje42@gmail.com>
4029
4030 Add progspace support for Guile.
4031 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4032 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4033 (scm-progspace.o): New rule.
4034 * guile/guile-internal.h (pspace_smob): New typedef.
4035 (psscm_pspace_smob_pretty_printers): Declare.
4036 (psscm_pspace_smob_from_pspace): Declare.
4037 (psscm_scm_from_pspace): Declare.
4038 * guile/guile.c (initialize_gdb_module): Call
4039 gdbscm_initialize_pspaces.
4040 * guile/lib/gdb.scm: Export progspace symbols.
4041 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4042 support.
4043 (append-pretty-printer!): Ditto.
4044 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4045 Implement.
4046 * guile/scm-progspace.c: New file.
4047
397998fc
AM
40482014-06-03 Alan Modra <amodra@gmail.com>
4049
4050 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4051 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4052
6aa5f3a6
DE
40532014-06-02 Doug Evans <dje@google.com>
4054
4055 Add support for skeletonless type units.
4056 * dwarf2read.c (struct dwarf2_per_objfile): New member
4057 n_allocated_type_units.
4058 (struct dwarf2_per_objfile) <tu_stats>: New member
4059 nr_all_type_units_reallocs.
4060 (create_signatured_type_table_from_index): Initialize
4061 n_allocated_type_units
4062 (create_all_type_units): Ditto.
4063 (add_type_unit): Move up in file. New arg slot.
4064 All callers updated. Increase space for all_type_units more
4065 efficiently.
4066 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4067 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4068 (lookup_dwp_signatured_type): Ditto.
4069 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4070 All callers updated.
4071 (build_type_psymtabs_1): Leave type_unit_groups as
4072 NULL if no TUs present.
4073 (print_tu_stats): New function.
4074 (process_skeletonless_type_unit): New function.
4075 (process_dwo_file_for_skeletonless_type_units): New
4076 function.
4077 (process_skeletonless_type_units): New function.
4078 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4079 Call print tu_stats if debugging enabled.
4080
41fac0cf
PA
40812014-06-02 Pedro Alves <palves@redhat.com>
4082
4083 * breakpoint.c (build_target_command_list): Don't build a command
4084 list if we have any duplicate location that isn't a dprintf.
4085
cd1608cc
PA
40862014-06-02 Pedro Alves <palves@redhat.com>
4087
4088 * breakpoint.c (dprintf_breakpoint_hit): New function.
4089 (initialize_breakpoint_ops): Install it as dprintf's
4090 breakpoint_hit method.
4091
486ef3b9
JB
40922014-06-02 Joel Brobecker <brobecker@adacore.com>
4093
4094 * source.c (substitute_path_rule_matches): Simplify using
4095 filename_ncmp instead of FILENAME_CMP.
4096
230cd560
JB
40972014-06-02 Joel Brobecker <brobecker@adacore.com>
4098
4099 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4100
16954d5d
LC
41012014-06-01 Ludovic Courtès <ludo@gnu.org>
4102
4103 * configure.ac: When Guile is available, check for the
4104 availability of 'scm_new_smob'.
4105 * configure, config.h.in: Regenerate.
4106 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4107 function.
4108
53e8a631
AB
41092014-05-30 Andrew Burgess <aburgess@broadcom.com>
4110
4111 * frame.c (struct frame_info): Add stop_string field.
4112 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4113 (get_prev_frame_always): Old content moved into
4114 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4115 TRY_CATCH, handle MEMORY_ERROR exceptions.
4116 (frame_stop_reason_string): New function definition.
4117 * frame.h (unwind_stop_reason_to_string): Extend comment to
4118 mention frame_stop_reason_string.
4119 (frame_stop_reason_string): New function declaration.
4120 * stack.c (frame_info): Switch to frame_stop_reason_string.
4121 (backtrace_command_1): Switch to frame_stop_reason_string.
4122 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4123 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4124 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4125
70e38b8e
AB
41262014-05-30 Andrew Burgess <aburgess@broadcom.com>
4127
4128 * frame.c (frame_stop_reason_string): Rename to ...
4129 (unwind_stop_reason_to_string): this.
4130 * frame.h (frame_stop_reason_string): Rename to ...
4131 (unwind_stop_reason_to_string): this.
4132 * stack.c (frame_info): Update call to frame_stop_reason_string.
4133 (backtrace_command_1): Likewise.
4134 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4135 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4136
938f0e2f
AB
41372014-05-30 Andrew Burgess <aburgess@broadcom.com>
4138
4139 * frame.c (remove_prev_frame): New function.
4140 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4141 remove_prev_frame.
4142
a09dd441
PA
41432014-05-29 Pedro Alves <palves@redhat.com>
4144
4145 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4146 and make it const. When a single-step decays to a continue,
4147 clear 'step', not 'hw_step'. Pass whether the caller wanted
4148 to step to user_visible_resume_ptid, not what we ask the
4149 target to do.
4150
bdc36728
PA
41512014-05-29 Pedro Alves <palves@redhat.com>
4152
4153 * infrun.c (process_event_stop_test, handle_step_into_function)
4154 (handle_step_into_function_backward): Adjust.
4155 Don't set the even thread's stop_step and call stop_waiting before
4156 calling end_stepping_range. Instead do that ...
4157 (end_stepping_range): ... here. Take an ecs pointer parameter.
4158
22bcd14b
PA
41592014-05-29 Pedro Alves <palves@redhat.com>
4160
4161 * infrun.c (stop_stepping): Rename to ...
4162 (stop_waiting): ... this.
4163 (proceed): Update comment.
4164 (process_event_stop_test, handle_inferior_event)
4165 (handle_signal_stop, handle_step_into_function)
4166 (handle_step_into_function_backward): Update.
4167
4ae57c05
PA
41682014-05-29 Pedro Alves <palves@redhat.com>
4169
4170 * infcall.c (run_inferior_call): Don't check whether the current
4171 thread is running after the proceed call.
4172
329ea579
PA
41732014-05-29 Pedro Alves <palves@redhat.com>
4174 Tom Tromey <tromey@redhat.com>
4175
4176 * NEWS: Mention "maint set target-async", "set mi-async", and that
4177 background execution commands are now always available.
4178 * target.h (target_async_permitted): Update comment.
4179 * target.c (target_async_permitted, target_async_permitted_1):
4180 Default to 1.
4181 (set_target_async_command): Rename to ...
4182 (maint_set_target_async_command): ... this.
4183 (show_target_async_command): Rename to ...
4184 (maint_show_target_async_command): ... this.
4185 (_initialize_target): Adjust.
4186 * infcmd.c (prepare_execution_command): Make extern.
4187 * inferior.h (prepare_execution_command): Declare.
4188 * infrun.c (set_observer_mode): Leave target async alone.
4189 * mi/mi-interp.c (mi_interpreter_init): Install
4190 mi_on_sync_execution_done as sync_execution_done observer.
4191 (mi_on_sync_execution_done): New function.
4192 (mi_execute_command_input_handler): Don't print the prompt if we
4193 just started a synchronous command with an async target.
4194 (mi_on_resume): Check sync_execution before printing prompt.
4195 * mi/mi-main.h (mi_async_p): Declare.
4196 * mi/mi-main.c: Include gdbcmd.h.
4197 (mi_async_p): New function.
4198 (mi_async, mi_async_1): New globals.
4199 (set_mi_async_command, show_mi_async_command, mi_async): New
4200 functions.
4201 (exec_continue): Call prepare_execution_command.
4202 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4203 (mi_execute_async_cli_command): Use mi_async_p.
4204 (_initialize_mi_main): Install "set mi-async". Make
4205 "target-async" a deprecated alias.
4206
92bcb5f9
PA
42072014-05-29 Pedro Alves <palves@redhat.com>
4208
4209 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4210 (_initialize_cli_interp): Adjust.
4211 * event-loop.c: Include "observer.h".
4212 (start_event_loop): Notify 'command_error' observers instead of
4213 calling display_gdb_prompt. Remove FIXME comment.
4214 * event-top.c (display_gdb_prompt): Remove call into the
4215 interpreters.
4216 * inf-loop.c: Include "observer.h".
4217 (inferior_event_handler): Notify 'command_error' observers instead
4218 of calling display_gdb_prompt.
4219 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4220 observers instead of calling display_gdb_prompt.
4221 * interps.c (interp_set): Don't call display_gdb_prompt.
4222 (current_interp_display_prompt_p): Delete.
4223 * interps.h (interp_prompt_p): Delete declaration.
4224 (interp_prompt_p_ftype): Delete.
4225 (struct interp_procs) <prompt_proc_p>: Delete field.
4226 (current_interp_display_prompt_p): Delete declaration.
4227 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4228 (_initialize_mi_interp): Adjust.
4229 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4230 'command_error' observers.
4231 (tui_on_sync_execution_done, tui_on_command_error): New
4232 functions.
4233 (tui_display_prompt_p): Delete.
4234 (_initialize_tui_interp): Adjust.
4235
fd664c91
PA
42362014-05-29 Pedro Alves <palves@redhat.com>
4237
4238 PR gdb/13860
4239 * cli/cli-interp.c: Include infrun.h and observer.h.
4240 (cli_uiout, cli_interp): New globals.
4241 (cli_on_signal_received, cli_on_end_stepping_range)
4242 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4243 functions.
4244 (cli_interpreter_init): Install them as 'end_stepping_range',
4245 'signal_received' 'signal_exited', 'exited' and 'no_history'
4246 observers.
4247 (_initialize_cli_interp): Remove cli_interp local.
4248 * infrun.c (handle_inferior_event): Call the several stop reason
4249 observers instead of printing the stop reason directly.
4250 (end_stepping_range): New function.
4251 (print_end_stepping_range_reason, print_signal_exited_reason)
4252 (print_exited_reason, print_signal_received_reason)
4253 (print_no_history_reason): Make static, and add an uiout
4254 parameter. Print to that instead of to CURRENT_UIOUT.
4255 * infrun.h (print_end_stepping_range_reason)
4256 (print_signal_exited_reason, print_exited_reason)
4257 (print_signal_received_reason print_no_history_reason): New
4258 declarations.
4259 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4260 'mi_uiout'.
4261 <cli_uiout>: New field.
4262 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4263 uiout for CLI output. Install 'signal_received',
4264 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4265 observers.
4266 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4267 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4268 (mi_on_no_history): New functions.
4269 (ui_out_free_cleanup): Delete function.
4270 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4271 instead use the one already stored in the MI interpreter data.
4272 (mi_ui_out): Adjust.
4273 * tui/tui-interp.c: Include infrun.h and observer.h.
4274 (tui_interp): New global.
4275 (tui_on_signal_received, tui_on_end_stepping_range)
4276 (tui_on_signal_exited, tui_on_exited)
4277 (tui_on_no_history): New functions.
4278 (tui_init): Install them as 'end_stepping_range',
4279 'signal_received' 'signal_exited', 'exited' and 'no_history'
4280 observers.
4281 (_initialize_tui_interp): Delete tui_interp local.
4282
8817a6f2
PA
42832014-05-29 Pedro Alves <palves@redhat.com>
4284
4285 PR gdb/15713
4286 * linux-nat.c (linux_nat_resume_callback): Rename the second
4287 parameter to 'except'. Skip LP if it points to EXCEPT.
4288 (linux_nat_resume): Don't mark the event lwp as not stopped
4289 before resuming sibling lwps. Instead ask
4290 linux_nat_resume_callback to skip the event lwp. Mark it as not
4291 stopped after actually resuming it.
4292 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4293 resuming it.
4294 (wait_lwp): Mark the lwp as stopped here.
4295 (stop_wait_callback): Mark the lwp as not stopped right after
4296 resuming it. Don't mark lwps as stopped here.
4297 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4298 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4299
251bde03
PA
43002014-05-29 Pedro Alves <palves@redhat.com>
4301
4302 PR PR15693
4303 * infrun.c (resume): Determine how much to resume depending on
4304 whether the caller wanted a step, not whether we can hardware step
4305 the target. Mark all threads that we intend to run as running,
4306 unless we're calling an inferior function.
4307 (normal_stop): If the thread is running an infcall, don't finish
4308 thread state.
4309 * target.c (target_resume): Don't mark threads as running here.
4310
7f3c0343
JB
43112014-05-28 Joel Brobecker <brobecker@adacore.com>
4312
4313 * serial.c (_initialize_serial): Remove support for
4314 the "set remotebaud" and "show remotebaud" commands.
4315 * NEWS: Add entry documenting the removal of that command.
4316
ee34b3f9
YQ
43172014-05-28 Yao Qi <yao@codesourcery.com>
4318
4319 * charset.c: Fix typo in comments.
4320
add6c04d
GB
43212014-05-27 Gary Benson <gbenson@redhat.com>
4322
4323 * utils.c (internal_vproblem): Prompt for a bug report.
4324
92c48fc5
AW
43252014-05-26 Andy Wingo <wingo@igalia.com>
4326
4327 * guile/scm-arch.c (arscm_mark_arch_smob):
4328 * guile/scm-block.c (bkscm_mark_block_smob)
4329 (bkscm_mark_block_syms_progress_smob):
4330 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4331 * guile/scm-exception.c (exscm_mark_exception_smob):
4332 * guile/scm-frame.c (frscm_mark_frame_smob):
4333 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4334 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4335 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4336 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4337 (ppscm_mark_pretty_printer_worker_smob):
4338 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4339 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4340 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4341 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4342 mark functions.
4343 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4344 function.
4345
b2715b27
AW
43462014-05-26 Andy Wingo <wingo@igalia.com>
4347 Doug Evans <xdje42@gmail.com>
4348
4349 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4350 empty_base_class. All uses updated.
4351 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4352 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4353 Adapt all callers.
4354 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4355 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4356 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4357 (gdbscm_gsmob_has_property_p, add_property_name)
4358 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4359 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4360 (gdb-object-has-property?, gdb-object-properties): Remove.
4361 (gdb-object-kind): Renamed from gsmob-kind.
4362
214ab2da
AW
43632014-05-26 Andy Wingo <wingo@igalia.com>
4364
4365 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4366 * configure: Regenerate.
4367
589fdceb
MM
43682014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4369
4370 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4371
67b5c0c1
MM
43722014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4373
4374 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4375 (replay_memory_access_read_only, replay_memory_access_read_write)
4376 (replay_memory_access_types, replay_memory_access)
4377 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4378 (cmd_set_record_btrace, cmd_show_record_btrace)
4379 (cmd_show_replay_memory_access): New.
4380 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4381 (record_btrace_remove_breakpoint): Replace
4382 record_btrace_allow_memory_access with replay_memory_access.
4383 (_initialize_record_btrace): Add commands.
4384 * NEWS: Announce it.
4385
036cd381
RR
43862014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4387
4388 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4389
c77c1e42
RR
43902014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4391
4392 * MAINTAINERS (Write After Approval): Move self back from
4393 paper trail.
4394
45741a9c
PA
43952014-05-22 Pedro Alves <palves@redhat.com>
4396
4397 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4398 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4399 (disable_randomization, enum exec_direction_kind)
4400 (execution_direction, stop_registers, start_remote)
4401 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4402 (wait_for_inferior, normal_stop, get_last_target_status)
4403 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4404 (insert_step_resume_breakpoint_at_sal)
4405 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4406 (set_step_info, print_stop_event, signal_stop_state)
4407 (signal_print_state, signal_pass_state, signal_stop_update)
4408 (signal_print_update, signal_pass_update)
4409 (update_signals_program_target, clear_exit_convenience_vars)
4410 (displaced_step_dump_bytes, update_observer_mode)
4411 (signal_catch_update, gdb_signal_from_command): Move
4412 declarations ...
4413 * infrun.h: ... to this new file.
4414 * amd64-tdep.c: Include infrun.h.
4415 * annotate.c: Include infrun.h.
4416 * arch-utils.c: Include infrun.h.
4417 * arm-linux-tdep.c: Include infrun.h.
4418 * arm-tdep.c: Include infrun.h.
4419 * break-catch-sig.c: Include infrun.h.
4420 * breakpoint.c: Include infrun.h.
4421 * common/agent.c: Include infrun.h instead of inferior.h.
4422 * corelow.c: Include infrun.h.
4423 * event-top.c: Include infrun.h.
4424 * go32-nat.c: Include infrun.h.
4425 * i386-tdep.c: Include infrun.h.
4426 * inf-loop.c: Include infrun.h.
4427 * infcall.c: Include infrun.h.
4428 * infcmd.c: Include infrun.h.
4429 * infrun.c: Include infrun.h.
4430 * linux-fork.c: Include infrun.h.
4431 * linux-nat.c: Include infrun.h.
4432 * linux-thread-db.c: Include infrun.h.
4433 * monitor.c: Include infrun.h.
4434 * nto-tdep.c: Include infrun.h.
4435 * procfs.c: Include infrun.h.
4436 * record-btrace.c: Include infrun.h.
4437 * record-full.c: Include infrun.h.
4438 * remote-m32r-sdi.c: Include infrun.h.
4439 * remote-mips.c: Include infrun.h.
4440 * remote-notif.c: Include infrun.h.
4441 * remote-sim.c: Include infrun.h.
4442 * remote.c: Include infrun.h.
4443 * reverse.c: Include infrun.h.
4444 * rs6000-tdep.c: Include infrun.h.
4445 * s390-linux-tdep.c: Include infrun.h.
4446 * solib-irix.c: Include infrun.h.
4447 * solib-osf.c: Include infrun.h.
4448 * solib-svr4.c: Include infrun.h.
4449 * target.c: Include infrun.h.
4450 * top.c: Include infrun.h.
4451 * windows-nat.c: Include infrun.h.
4452 * mi/mi-interp.c: Include infrun.h.
4453 * mi/mi-main.c: Include infrun.h.
4454 * python/py-threadevent.c: Include infrun.h.
4455
98eb56a4
PA
44562014-05-22 Pedro Alves <palves@redhat.com>
4457
4458 * infrun.c (handle_inferior_event): Store the exit code for
4459 --return-child-result here, instead of ...
4460 (print_exited_reason): ... here.
4461
17b2616c
PA
44622014-05-21 Pedro Alves <palves@redhat.com>
4463
4464 PR gdb/13860
4465 * gdbthread.h (struct thread_control_state): New field
4466 `command_interp'.
4467 * infrun.c (follow_fork): Copy the new thread control field to the
4468 child fork thread.
4469 (clear_proceed_status_thread): Clear the new thread control field.
4470 (proceed): Set the new thread control field.
4471 * interps.h (command_interp): Declare.
4472 * interps.c (command_interpreter): New global.
4473 (command_interp): New function.
4474 (interp_exec): Set `command_interpreter' while here.
4475 * cli-out.c (cli_uiout_dtor): New function.
4476 (cli_ui_out_impl): Install it.
4477 * mi/mi-interp.c: Include cli-out.h.
4478 (mi_cmd_interpreter_exec): Add comment.
4479 (restore_current_uiout_cleanup): New function.
4480 (ui_out_free_cleanup): New function.
4481 (mi_on_normal_stop): If finishing an execution command started by
4482 a CLI command, or any kind of breakpoint-like event triggered,
4483 print the stop event to the output (CLI) stream.
4484 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4485
5166082f
PA
44862014-05-21 Pedro Alves <palves@redhat.com>
4487
4488 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4489 current source line having changed.
4490 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4491 * infrun.c (normal_stop): Adjust call to
4492 set_current_sal_from_frame.
4493 * source.c (clear_lines_listed_range): New function.
4494 (set_current_source_symtab_and_line, identify_source_line): Clear
4495 the lines listed range.
4496 (line_info): Handle the first "info line" after the current source
4497 line having changed.
4498 * stack.c (print_stack_frame): Remove center handling.
4499 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4500 center sal.line.
4501
c1ee2fb3
PA
45022014-05-21 Pedro Alves <palves@redhat.com>
4503
4504 * inf-child.c (inf_child_mourn_inferior): New function.
4505 * inf-child.h (inf_child_mourn_inferior): New declaration.
4506 * darwin-nat.c (darwin_mourn_inferior): Use
4507 inf_child_mourn_inferior.
4508 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4509 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4510 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4511 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4512 * windows-nat.c (windows_mourn_inferior): Likewise.
4513
5c6d4fb2
DE
45142014-05-21 Doug Evans <xdje42@gmail.com>
4515
250748cb 4516 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4517
4a2722c5
DE
45182014-05-21 Doug Evans <xdje42@gmail.com>
4519
17292b30 4520 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4521 (gdbscm_out_of_range_error): Ditto.
4522 (gdbscm_memory_error): Ditto.
250748cb
DE
4523 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4524 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4525 (gdbscm_out_of_range_error): Update.
4526 (gdbscm_memory_error): Update.
4527 (gdbscm_scm_to_target_string_unsafe): Delete.
4528
6a3cb8e8
PA
45292014-05-21 Pedro Alves <palves@redhat.com>
4530
4531 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4532 globals.
4533 (inf_child_open_target): New function.
4534 (inf_child_open): Use inf_child_open_target to push the target
4535 instead of erroring out.
4536 (inf_child_disconnect, inf_child_close)
4537 (inf_child_maybe_unpush_target): New functions.
4538 (inf_child_target): Install inf_child_disconnect and
4539 inf_child_close. Store a pointer to the returned object.
4540 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4541 declarations.
4542 * target.c (auto_connect_native_target): New global.
4543 (show_default_run_target): New function.
4544 (find_default_run_target): Return NULL if automatically connecting
4545 to the native target is disabled.
4546 (_initialize_target): Install set/show auto-connect-native-target.
4547 * NEWS: Mention "set auto-connect-native-target", and "target
4548 native".
4549 * linux-nat.c (super_close): New global.
4550 (linux_nat_close): Call super_close.
4551 (linux_nat_add_target): Store a pointer to the base class's
4552 to_close method.
4553 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4554 inf_child_maybe_unpush.
4555 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4556 already pushed.
4557 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4558 the inferior. Use inf_child_maybe_unpush_target.
4559 (inf_ttrace_attach): Don't push the target if it is already
4560 pushed.
4561 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4562 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4563 after mourning the inferior. Use inf_child_maybe_unpush_target.
4564 (darwin_attach_pid): Don't push the target if it is already
4565 pushed.
4566 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4567 mourning the inferior. Use inf_child_maybe_unpush_target.
4568 (gnu_detach): Use inf_child_maybe_unpush_target.
4569 * go32-nat.c (go32_create_inferior): Don't push the target if it
4570 is already pushed.
4571 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4572 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4573 (procfs_open): Rename to ...
4574 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4575 comments. Can target_preopen before changing node. Call
4576 inf_child_open_target to push the target explicitly.
4577 (procfs_attach): Don't push the target if it is already pushed.
4578 (procfs_detach): Use inf_child_maybe_unpush_target.
4579 (procfs_create_inferior): Don't push the target if it is already
4580 pushed.
4581 (nto_native_ops): New global.
4582 (procfs_open): Reimplement.
4583 (procfs_native_open): New function.
4584 (init_procfs_targets): Install procfs_native_open as to_open of
4585 "target native". Store a pointer to the "native" target in
4586 nto_native_ops.
4587 * procfs.c (procfs_attach): Don't push the target if it is already
4588 pushed.
4589 (procfs_detach): Use inf_child_maybe_unpush_target.
4590 (procfs_mourn_inferior): Only unpush the target after mourning the
4591 inferior. Use inf_child_maybe_unpush_target.
4592 (procfs_init_inferior): Don't push the target if it is already
4593 pushed.
4594 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4595 if it is already pushed.
4596
930ee1b1
PA
45972014-05-21 Pedro Alves <palves@redhat.com>
4598
4599 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4600 and "procfs" targets are now called "native" instead.
4601
1f5d1b13
PA
46022014-05-21 Pedro Alves <palves@redhat.com>
4603
4604 * go32-nat.c (go32_open): Delete.
4605 (go32_target): Don't override the to_open method.
4606
132f8e03
PA
46072014-05-21 Pedro Alves <palves@redhat.com>
4608
4609 * nto-procfs.c (procfs_can_run): New function.
4610 (nto_procfs_ops): New global.
4611 (init_procfs_targets): New, based on procfs_target. Install
4612 "target native" in addition to "target procfs".
4613 (_initialize_procfs): Call init_procfs_targets instead of adding
4614 the target here.
4615
03c136c3
PA
46162014-05-21 Pedro Alves <palves@redhat.com>
4617
4618 * windows-nat.c (windows_target): Don't override to_shortname,
4619 to_longname or to_doc.
4620
a635d0f3
PA
46212014-05-21 Pedro Alves <palves@redhat.com>
4622
4623 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4624 to_doc.
4625
4f9b5133
PA
46262014-05-21 Pedro Alves <palves@redhat.com>
4627
4628 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4629 to_shortname, to_longname or to_doc.
4630
bc85afde
PA
46312014-05-21 Pedro Alves <palves@redhat.com>
4632
4633 * go32-nat.c (go32_target): Don't override to_shortname,
4634 to_longname or to_doc.
4635
4ebfc96e
PA
46362014-05-21 Pedro Alves <palves@redhat.com>
4637
4638 * inf-child.c (inf_child_open): Remove mention of "child".
4639 (inf_child_target): Rename target to "native" instead of "child".
4640
2648dfed
AA
46412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4642
4643 * Makefile.in (SFILES): Delete "regset.c".
4644 (COMMON_OBS): Delete "regset.o".
4645 * regset.c: Remove.
4646 * regset.h (regset_alloc): Delete prototype.
4647
b13feb94
AA
46482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4649
4650 * sparc-linux-tdep.c (sparc32_linux_gregset)
4651 (sparc32_linux_fpregset): New static regset structures.
4652 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4653 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4654 'fpregset' fields.
4655 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4656 (sparc64_linux_fpregset): New static regset structures.
4657 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4658 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4659 New static regset structures.
4660 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4661 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4662 New static regset structures.
4663 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4664 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4665 New static regset structures.
4666 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4667 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4668 New static regset structures.
4669 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4670
b4fd25c9
AA
46712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4672
4673 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4674 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4675 register maps ("regmaps") from "*regset" to "*regmap". Do this
4676 for all regmap types and variables.
4677 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4678 (sparc32_linux_supply_core_gregset)
4679 (sparc32_linux_collect_core_gregset)
4680 (sparc32_linux_supply_core_fpregset)
4681 (sparc32_linux_collect_core_fpregset): Likewise.
4682 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4683 (sparc_gregmap, sparc_fpregmap): ... these.
4684 (sparc_supply_gregset, sparc_collect_gregset)
4685 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4686 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4687 (_initialize_sparc_nat): Rename regmaps.
4688 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4689 (sparc_gregmap, sparc_fpregmap): ... these.
4690 (sparc_supply_gregset, sparc_collect_gregset)
4691 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4692 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4693 Rename macros to...
4694 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4695 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4696 Likewise.
4697 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4698 Rename to...
4699 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4700 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4701 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4702 regmaps.
4703 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4704 (sparc32_bsd_fpregset): Rename to...
4705 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4706 (sparc32_bsd_fpregmap): ... these.
4707 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4708 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4709 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4710 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4711 (struct sparc_gregmap, struct sparc_fpregmap)
4712 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4713 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4714 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4715 (sparc32_supply_regset, sparc32_collect_gregset)
4716 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4717 prototypes.
4718 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4719 (sparc64_linux_ptrace_gregmap): ... this.
4720 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4721 (_initialize_sparc64_linux_nat): Rename regmaps.
4722 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4723 (sparc64_linux_core_gregmap): ... this.
4724 (sparc64_linux_supply_core_gregset)
4725 (sparc64_linux_collect_core_gregset)
4726 (sparc64_linux_supply_core_fpregset)
4727 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4728 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4729 (sparc64_sol2_fpregset): Rename to...
4730 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4731 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4732 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4733 regmaps.
4734 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4735 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4736 (sparc64_bsd_fpregset): Rename to...
4737 (struct sparc_gregmap, sparc64_sol2_gregmap)
4738 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4739 (sparc64_bsd_fpregmap): ... these.
4740 (sparc64_supply_gregset, sparc64_collect_gregset)
4741 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4742 prototypes.
4743 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4744 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4745 (sparc64fbsd_gregmap): ... this.
4746 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4747 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4748 Rename regmaps.
4749 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4750 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4751 (sparc64nbsd_collect_fpregset): Likewise.
4752 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4753 (sparc64nbsd_gregmap): ... this.
4754 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4755 regmaps.
4756 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4757 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4758 (sparc64obsd_gregmap): ... this.
4759 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4760 regmaps.
4761 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4762 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4763 (sparc32nbsd_gregmap): ... this.
4764 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4765 regmaps.
4766
8fea3224
AA
47672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4768
4769 * score-tdep.c (score7_linux_gregset): New static regset
4770 structure.
4771 (score7_linux_regset_from_core_section): Remove dynamic regset
4772 allocation.
4773 (score_gdbarch_init): Drop allocation of tdep structure.
4774 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4775
24534243
AA
47762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4777
4778 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4779 regset structures.
4780 (am33_regset_from_core_section): Remove dynamic regset
4781 allocations.
4782
b7195f27
AA
47832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4784
4785 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4786 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4787 structures.
4788 (mips_linux_regset_from_core_section): Remove dynamic regset
4789 allocations.
4790 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4791 'gregset64', 'fpregset', and 'fpregset64'.
4792 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4793 deleted tdep fields.
4794
ecc37a5a
AA
47952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4796
4797 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4798 regset structures.
4799 (amd64_regset_from_core_section): Remove dynamic regset
4800 allocations.
4801 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4802 structure.
4803 (amd64obsd_regset_from_core_section): Remove dynamic regset
4804 allocation.
4805 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4806 Likewise.
4807 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4808 x86-common regset supply function.
4809 * i386-tdep.c (i386_collect_gregset): Make static.
4810 (i386_gregset): New global regset structure.
4811 (i386_fpregset, i386_xstateregset): New static regset structures.
4812 (i386_regset_from_core_section): Remove dynamic regset
4813 allocations.
4814 (i386_gdbarch_init): Remove initialization of tdep fields
4815 'gregset', 'fpregset', and 'xstateregset'.
4816 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4817 'fpregset', and 'xstateregset'.
4818 (i386_collect_gregset): Remove prototype.
4819 (i386_gregset): New declaration.
4820 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4821 structure.
4822 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4823 allocation.
4824
b7611c43
AA
48252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4826
4827 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4828 (arm_linux_vfpregset): New static regset structures.
4829 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4830 regset structures.
4831 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4832 and 'vfpregset' fields.
4833
a069a2bd
AA
48342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4835
4836 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4837 (aarch64_linux_fpregset): New static regset structures.
4838 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4839 of regset structures.
4840 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4841 'fpregset' fields.
4842
09424cff
AA
48432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4844
4845 * regset.h (struct regset): Remove gdbarch field.
4846 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4847 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4848 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4849 Likewise.
4850 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4851 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4852 (ppc32_linux_vsxregset): Likewise.
4853 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4854 via the regcache instead of the regset.
4855 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4856 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4857 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4858 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4859 Likewise.
4860
3ca7dae4
AA
48612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4862
4863 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4864 Constify structures.
4865 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4866 (alphanbsd_aout_gregset): Likewise.
4867 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4868 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4869 Likewise.
4870 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4871 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4872 Likewise.
4873 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4874 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4875 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4876 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4877 * m88k-tdep.c (m88k_gregset): Likewise.
4878 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4879 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4880 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4881 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4882 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4883 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4884 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4885 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4886 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4887 Likewise.
4888 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4889 * sh-tdep.h (sh_corefile_gregset): Likewise.
4890 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4891 * vax-tdep.c (vax_gregset): Likewise.
4892
5876f503
JK
48932014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4894
4895 Fix TLS access for -static -pthread.
4896 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4897 (try_thread_db_load_1): Initialize it.
4898 (thread_db_get_thread_local_address): Call it if LM is zero.
4899 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4900 * target.h (struct target_ops) (to_get_thread_local_address): Add
4901 load_module_addr comment.
4902
0256a6ac
PA
49032014-05-21 Pedro Alves <palves@redhat.com>
4904
4905 * dcache.c (dcache_read_memory_partial): If reading the cache line
4906 fails, fallback to reading just the memory the caller wanted.
4907
227533ac
DE
49082014-05-20 Doug Evans <dje@google.com>
4909
4910 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4911 instead of get_current_arch.
4912
936d2992
PA
49132014-05-20 Pedro Alves <palves@redhat.com>
4914
4915 * NEWS: Mention that compare-sections now works with all targets.
4916
4917 * remote.c (PACKET_qCRC): New enum value.
4918 (remote_verify_memory): Don't send qCRC if the target has no
4919 execution. Use packet_support/packet_ok. If the target doesn't
4920 support the qCRC packet, fallback to a deep memory copy.
4921 (compare_sections_command): Say "target image" instead of "remote
4922 executable".
4923 (_initialize_remote): Add PACKET_qCRC to the list of config
4924 packets that have no associated command. Extend comment.
4925 * target.c (simple_verify_memory, default_verify_memory): New
4926 function.
4927 * target.h (struct target_ops) <to_verify_memory>: Default to
4928 default_verify_memory.
4929 (simple_verify_memory): New declaration.
4930 * target-delegates.c: Regenerate.
4931
e59fa00f
MM
49322014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4933
4934 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4935
f2205de0
HZ
49362014-05-20 Hui Zhu <hui@codesourcery.com>
4937 Yao Qi <yao@codesourcery.com>
4938
4939 PR backtrace/16558
4940 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4941 and change address of sp and pc.
4942
c4e54771
TT
49432014-05-19 Tom Tromey <tromey@redhat.com>
4944
4945 * gdbtypes.c (rank_function): Use XNEWVEC.
4946 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4947
73051182
DE
49482014-05-19 Doug Evans <dje@google.com>
4949
4950 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4951 build_type_unit_groups and moved closer to only caller. Remove
4952 arguments. All references updated. Remove outdated .gdb_index
4953 comment.
4954 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4955 build_type_psymtabs_1.
4956
8832e7e3
DE
49572014-05-19 Doug Evans <dje@google.com>
4958
4959 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4960 n_type_unit_groups, all_type_unit_groups. All uses removed.
4961 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4962 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4963 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4964 (add_type_unit_group_to_table): Delete.
4965
cd8ae15e
DE
49662014-05-19 Doug Evans <dje@google.com>
4967
4968 * eval.c (evaluate_subexp_standard): Add some comments.
4969
08f4850b
DE
49702014-05-17 Doug Evans <xdje42@gmail.com>
4971
4972 * progspace.c (remove_program_space): Delete, unused.
4973 * progspace.h (remove_program_space): Ditto.
4974
bed8455c
DE
49752014-05-17 Doug Evans <xdje42@gmail.com>
4976
4977 * inferior.c (prune_inferiors): Fix comment.
4978 (remove_inferior_command): Call prune_program_spaces.
4979
8d551b02
DE
49802014-05-16 Doug Evans <dje@google.com>
4981
4982 New command line option -D.
4983 * NEWS: Mention it.
4984 * main.c (set_gdb_data_directory): New function.
4985 (captured_main): Recognize -D. Flag error for --data-directory "".
4986 Call set_gdb_data_directory.
4987 (print_gdb_help): Print --data-directory, -D.
4988 * main.h (set_gdb_data_directory): Declare.
4989 * top.c (staged_gdb_datadir): New static global.
4990 (set_gdb_datadir): Call set_gdb_data_directory
4991 (show_gdb_datadir): New function.
4992 (init_main): Update init of data-directory parameter.
4993
18848e28
GF
49942014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4995
4996 Import the "dirfd" gnulib module.
4997 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4998 * gnulib/aclocal.m4: Update.
4999 * gnulib/config.in: Update.
5000 * gnulib/configure: Update.
5001 * gnulib/import/Makefile.am: Update.
5002 * gnulib/import/Makefile.in: Update.
5003 * gnulib/import/dirfd.c: New.
5004 * gnulib/import/m4/dirfd.m4: New.
5005 * gnulib/import/m4/gnulib-cache.m4: Update.
5006 * gnulib/import/m4/gnulib-comp.m4: Update.
5007
95c64f92
YQ
50082014-05-16 Pierre Muller <muller@sourceware.org>
5009 Yao Qi <yao@codesourcery.com>
5010
5011 * valprint.c (print_wchar): Move the code on checking whether
5012 W is a printable wide char to the default branch of switch
5013 statement below. Call wchar_printable instead of gdb_iswprint.
5014
cac395ea
TM
50152014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5016
19679eca 5017 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5018 ldr.w and ldrd instructions.
5019
83655187
DE
50202014-05-15 Doug Evans <dje@google.com>
5021
5022 * dwarf2read.c (read_structure_type): Delete outdated comments.
5023
dd756689
TT
50242014-05-14 Tom Tromey <tromey@redhat.com>
5025
5026 * macrocmd.c (print_macro_definition): Reindent.
5027
75ddda77
DE
50282014-05-13 Doug Evans <xdje42@gmail.com>
5029
5030 * python/py-cmd.c (cmdpy_completer): Add comment.
5031 (completers): Make const.
5032
b0f16a3e
SM
50332014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5034
5035 * infrun.c (resume): Remove should_resume (unused). Move up
5036 declaration of resume_ptid.
5037
033c3379
TT
50382014-05-13 Tom Tromey <tromey@redhat.com>
5039
5040 * language.h (unop_type_check): Remove.
5041 (binop_type_check): Don't declare.
5042
9b44a3a5
AA
50432014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5044
5045 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5046 call to regcache_raw_collect.
5047
303a33fa
SM
50482014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5049
5050 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5051 mi_console->quote as the quoting character.
5052
196100a0
SM
50532014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5054
5055 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5056
f989a1c8
TT
50572014-04-29 Tom Tromey <tromey@redhat.com>
5058
5059 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5060 "show debug varobj".
5061
9404b58f
KM
50622014-05-07 Kyle McMartin <kyle@redhat.com>
5063
5064 Pushed by Joel Brobecker <brobecker@adacore.com>.
5065 * aarch64-tdep.c (aarch64_software_single_step): New function.
5066 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5067 with aarch64_software_single_step.
5068
5e49ba57
JB
50692014-05-05 Joel Brobecker <brobecker@adacore.com>
5070
5071 GDB 7.7.1 released.
5072
c888a17d
KS
50732014-05-05 Keith Seitz <keiths@redhat.com>
5074
5075 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5076 variable or history value is successfully parsed.
5077
290a839c
YQ
50782014-05-05 Yao Qi <yao@codesourcery.com>
5079 Pedro Alves <palves@redhat.com>
5080
5081 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5082 address of blocks that intersects the requested range. Trim
5083 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5084 sections.
5085 * ctf.c (ctf_xfer_partial): Likewise.
5086
91256dc2
YQ
50872014-05-05 Yao Qi <yao@codesourcery.com>
5088
5089 * printcmd.c (display_command): Remove the check to
5090 target_has_execution.
5091
07284463
MK
50922014-05-03 Mark Kettenis <kettenis@gnu.org>
5093
5094 * ppcobsd-nat.c: Include "obsd-nat.h".
5095 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5096 add_target.
5097 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5098
30a1e6cc
SDJ
50992014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5100
5101 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5102 and 16-bit signed and unsigned arguments. Update comment.
5103 (stap_parse_probe_arguments): Extend code to handle such
5104 arguments. Use warning instead of complaint to notify about
5105 unrecognized bitness.
5106
f33da99a
SDJ
51072014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5108
5109 PR breakpoints/16889
5110 * stap-probe.c (stap_parse_probe_arguments): Simplify
5111 check for non-prefixed probes (i.e., probes whose
5112 arguments do not start with "N@"). Always set the
5113 argument type to a sane value.
5114
95cf3b38
DT
51152014-05-01 David Taylor <dtaylor@emc.com>
5116
5117 * remote.c (compare_sections_command): Add -r option to compare
5118 all loadable read-only sections.
5119
1cfdf534
SC
51202014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5121
5122 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5123 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5124 Update all callers.
5125 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5126 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5127 Remove unused CORE_ADDR argument. Update all callers.
5128
ca4f7f8b
PA
51292014-04-29 Pedro Alves <palves@redhat.com>
5130
5131 * remote.c (struct packet_config) <detect>: Extend comment.
5132 (add_packet_config_cmd): Don't set the config's detect or support
5133 fields here.
5134 (init_all_packet_configs): Also initialize the config's 'detect'
5135 field.
5136 (reset_all_packet_configs_support): New function.
5137 (remote_open_1): Call reset_all_packet_configs_support instead of
5138 init_all_packet_configs.
5139 (_initialize_remote): Initialize all packet configs. Assert that
5140 all packets have an associated command, except a few known
5141 outliers.
5142
11c1ba78
JB
51432014-04-28 Joel Brobecker <brobecker@adacore.com>
5144
5145 * dwarf2read.c (read_subrange_type): Handle dynamic
5146 DW_AT_lower_bound attributes.
5147
8739bc53
JB
51482014-04-28 Joel Brobecker <brobecker@adacore.com>
5149
5150 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5151 dynamic bounds before computing its upper bound.
5152 (ada_discrete_type_low_bound): Same as above with the lower bound.
5153
6f8a3220
JB
51542014-04-28 Joel Brobecker <brobecker@adacore.com>
5155
5156 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5157 range types. Adjust the array handling implementation to
5158 take advantage of this change.
5159 (resolve_dynamic_range): New function, mostly extracted from
5160 resolve_dynamic_bounds.
5161 (resolve_dynamic_array): New function, mostly extracted from
5162 resolve_dynamic_bounds.
5163 (resolve_dynamic_bounds): Delete.
5164 (resolve_dynamic_type): Reimplement. Add handling of
5165 TYPE_CODE_RANGE types.
5166
4d072ce4
JB
51672014-04-28 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5170 handling of parallel ___XA types.
5171
52865325
JB
51722014-04-28 Joel Brobecker <brobecker@adacore.com>
5173
5174 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5175 unnecessary second call to static_unwrap_type.
5176
433e77fa
HZ
51772014-04-27 Hui Zhu <hui@codesourcery.com>
5178
5179 * stack.c (print_frame_info): Call do_gdb_disassembly with
5180 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5181
b51a69ee
DE
51822014-04-26 Doug Evans <xdje42@gmail.com>
5183
5184 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5185
7ae1a6a6
PA
51862014-04-25 Pedro Alves <palves@redhat.com>
5187
5188 PR server/16255
5189 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5190 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5191 and newline from built string.
5192 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5193 (linux_ptrace_attach_fail_reason): ... this.
5194 * linux-nat.c (linux_nat_attach): Adjust to use
5195 linux_ptrace_attach_fail_reason.
5196
4082afcc
PA
51972014-04-25 Pedro Alves <palves@redhat.com>
5198
5199 * remote.c (struct remote_state): Remove multi_process_aware,
5200 non_stop_aware, cond_tracepoints, cond_breakpoints,
5201 breakpoint_commands, fast_tracepoints, static_tracepoints,
5202 install_in_trace, disconnected_tracing,
5203 enable_disable_tracepoints, string_tracing, and
5204 augmented_libraries_svr4_read fields.
5205 (remote_multi_process_p): Move further below in the file.
5206 (struct packet_config): Add comments.
5207 (update_packet_config): Delete function.
5208 (show_packet_config_cmd): Use packet_config_support.
5209 (add_packet_config_cmd): Use NULL as set callback.
5210 (packet_ok): "set remote foo-packet"-style commands no longer
5211 change config->supported -- adjust.
5212 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5213 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5214 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5215 (PACKET_QNonStop, PACKET_multiprocess_feature)
5216 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5217 (PACKET_DisconnectedTracing_feature)
5218 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5219 (set_remote_protocol_packet_cmd): Delete function.
5220 (packet_config_support, packet_support): New functions.
5221 (set_remote_protocol_Z_packet_cmd): Don't call
5222 update_packet_config.
5223 (remote_query_attached, remote_pass_signals)
5224 (remote_program_signals, remote_threads_info)
5225 (remote_threads_extra_info, remote_start_remote): Use
5226 packet_support.
5227 (remote_start_remote): Use packet_config_support and
5228 packet_support.
5229 (init_all_packet_configs): Set all packets to unknown support,
5230 instead of calling update_packet_config.
5231 (remote_check_symbols): Use packet_support.
5232 (remote_supported_packet): Unconditionally set the packet config's
5233 support status.
5234 (remote_multi_process_feature, remote_non_stop_feature)
5235 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5236 (remote_breakpoint_commands_feature)
5237 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5238 (remote_install_in_trace_feature)
5239 (remote_disconnected_tracing_feature)
5240 (remote_enable_disable_tracepoint_feature)
5241 (remote_string_tracing_feature)
5242 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5243 (remote_protocol_features): Adjust to use remote_supported_packet
5244 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5245 "ConditionalTracepoints", "ConditionalBreakpoints",
5246 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5247 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5248 "EnableDisableTracepoints", and "tracenz".
5249 (remote_query_supported): Use packet_support.
5250 (remote_open_1): Adjust.
5251 (extended_remote_attach_1): Use packet_support. Switch on the
5252 result of packet_ok instead of checking whether the packet ended
5253 up disabled.
5254 (remote_vcont_resume): Use packet_support.
5255 (remote_resume, remote_stop_ns, fetch_register_using_p)
5256 (remote_prepare_to_store, store_register_using_P)
5257 (check_binary_download, remote_write_bytes): Use packet_support.
5258 (remote_vkill): Use packet_support. Switch on the result of
5259 packet_ok instead of checking whether the packet ended up
5260 disabled.
5261 (extended_remote_supports_disable_randomization): Use
5262 packet_support.
5263 (extended_remote_run): Switch on the result of packet_ok instead
5264 of checking whether the packet ended up disabled.
5265 (remote_insert_breakpoint, remote_remove_breakpoint)
5266 (remote_insert_watchpoint, remote_remove_watchpoint)
5267 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5268 packet_support.
5269 (remote_search_memory): Use packet_config_support.
5270 (remote_get_thread_local_address, remote_get_tib_address)
5271 (remote_hostio_send_command, remote_can_execute_reverse): Use
5272 packet_support.
5273 (remote_supports_cond_tracepoints)
5274 (remote_supports_cond_breakpoints)
5275 (remote_supports_fast_tracepoints)
5276 (remote_supports_static_tracepoints)
5277 (remote_supports_install_in_trace)
5278 (remote_supports_enable_disable_tracepoint)
5279 (remote_supports_string_tracing)
5280 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5281 the packet config says the feature is enabled or disabled.
5282 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5283 (remote_get_trace_status): Use packet_support.
5284 (remote_set_disconnected_tracing): Adjust to check whether the
5285 feature is enabled with packet_support.
5286 (remote_set_trace_buffer_size, remote_use_agent)
5287 (remote_can_use_agent, remote_supports_btrace): Use
5288 packet_support.
5289 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5290 Use packet_config_support.
5291 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5292 the packet config says the feature is enabled or disabled.
5293 (set_range_stepping): Use packet_support.
5294
bdb52a22
TT
52952014-04-25 Tom Tromey <tromey@redhat.com>
5296
5297 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5298 argument.
5299
e9475ead
SA
53002014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5301
5302 * NEWS: Mention support for C99 variable length arrays.
5303
82eacd52
JB
53042014-04-24 Joel Brobecker <brobecker@adacore.com>
5305
5306 * ada-lang.c (standard_exc): Expand introductory comment.
5307
01f9f808
MS
53082014-04-24 Michael Sturm <michael.sturm@mintel.com>
5309 Walfred Tedeschi <walfred.tedeschi@intel.com>
5310
5311 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5312 AVX512 registers.
5313 (amd64_linux_read_description): Add code to handle AVX512 xstate
5314 mask and return respective tdesc.
5315 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5316 and features/i386/x32-avx512-linux.c.
5317 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5318 (amd64_linux_core_read_description): Add code to handle AVX512
5319 xstate mask and return respective tdesc.
5320 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5321 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5322 calculation.
5323 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5324 (tdesc_amd64_avx512_linux): New prototype.
5325 (tdesc_x32_avx512_linux): Likewise.
5326 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5327 features/i386/x32-avx512.c.
5328 (amd64_ymm_avx512_names): New register names for pseudo
5329 registers YMM16-31.
5330 (amd64_ymmh_avx512_names): New register names for raw registers
5331 YMMH16-31.
5332 (amd64_k_names): New register names for K registers.
5333 (amd64_zmmh_names): New register names for ZMM raw registers.
5334 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5335 (amd64_xmm_avx512_names): New register names for XMM16-31
5336 registers.
5337 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5338 registers.
5339 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5340 if feature is present.
5341 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5342 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5343 (AMD64_NUM_REGS): Adjust to new number of registers.
5344 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5345 registers supplied via XSTATE by AVX512 registers.
5346 (i386_linux_read_description): Add case for AVX512.
5347 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5348 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5349 (i386_linux_core_read_description): Add case for AVX512.
5350 (i386_linux_init_abi): Install supported register note section
5351 for AVX512.
5352 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5353 AVX512.
5354 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5355 registers to be number of zmm7h + 1.
5356 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5357 * i386-tdep.c: Include features/i386/i386-avx512.c.
5358 (i386_zmm_names): Add ZMM pseudo register names array.
5359 (i386_zmmh_names): Add ZMM raw register names array.
5360 (i386_k_names): Add K raw register names array.
5361 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5362 registers. AVX512 has 16 more ZMM registers than there are YMM
5363 registers.
5364 (i386_zmmh_regnum_p): Add function to look up register number of
5365 ZMM raw registers.
5366 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5367 (i386_k_regnum_p): Likewise for K raw registers.
5368 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5369 registers added by AVX512.
5370 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5371 registers added by AVX512.
5372 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5373 added by AVX512.
5374 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5375 (i386_pseudo_register_name): Add ZMM pseudo registers.
5376 (i386_zmm_type): Construct and return vector registers type for ZMM
5377 registers.
5378 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5379 ZMM0-31 pseudo registers and K registers.
5380 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5381 and YMM16-31 registers from register cache.
5382 (i386_pseudo_register_write): Add code to write K, ZMM and
5383 YMM16-31 registers.
5384 (i386_register_reggroup_p): Add code to include/exclude AVX512
5385 registers in/from respective register groups.
5386 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5387 registers if feature is present in xcr0.
5388 (i386_gdbarch_init): Add code to initialize AVX512 feature
5389 variables in tdep structure, wire in pseudo registers and call
5390 initialize_tdesc_i386_avx512.
5391 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5392 variables.
5393 (i386_regnum): Add AVX512 registers.
5394 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5395 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5396 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5397 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5398 512 bits wide.
5399 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5400 (i386_ymm_avx512_regnum_p): Likewise.
5401 (i386_k_regnum_p): Likewise.
5402 (i386_zmm_regnum_p): Likewise.
5403 (i386_zmmh_regnum_p): Likewise.
5404 * i387-tdep.c : Update year in copyright notice.
5405 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5406 XSAVE buffer.
5407 (XSAVE_YMM_AVX512_ADDR): New macro.
5408 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5409 XSAVE buffer.
5410 (XSAVE_XMM_AVX512_ADDR): New macro.
5411 (xsave_avx512_k_offset): New table for K register offsets in
5412 XSAVE buffer.
5413 (XSAVE_AVX512_K_ADDR): New macro.
5414 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5415 in XSAVE buffer.
5416 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5417 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5418 buffer.
5419 (i387_collect_xsave): Add code to collect AVX512 registers from
5420 XSAVE buffer.
5421 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5422 of XMM16-31 registers.
5423 (I387_NUM_K_REGS): New define for number of K registers.
5424 (I387_K0_REGNUM): New define for K0 register number.
5425 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5426 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5427 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5428 registers.
5429 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5430 (I387_XMM16_REGNUM): New define for XMM16 register number.
5431 (I387_YMM0_REGNUM): New define for YMM0 register number.
5432 (I387_KEND_REGNUM): New define for last K register number.
5433 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5434 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5435 number.
5436 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5437 number.
5438 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5439 size.
5440 * features/Makefile: Add AVX512 related files.
5441 * features/i386/32bit-avx512.xml: New file.
5442 * features/i386/64bit-avx512.xml: Likewise.
5443 * features/i386/amd64-avx512-linux.c: Likewise.
5444 * features/i386/amd64-avx512-linux.xml: Likewise.
5445 * features/i386/amd64-avx512.c: Likewise.
5446 * features/i386/amd64-avx512.xml: Likewise.
5447 * features/i386/i386-avx512-linux.c: Likewise.
5448 * features/i386/i386-avx512-linux.xml: Likewise.
5449 * features/i386/i386-avx512.c: Likewise.
5450 * features/i386/i386-avx512.xml: Likewise.
5451 * features/i386/x32-avx512-linux.c: Likewise.
5452 * features/i386/x32-avx512-linux.xml: Likewise.
5453 * features/i386/x32-avx512.c: Likewise.
5454 * features/i386/x32-avx512.xml: Likewise.
5455 * regformats/i386/amd64-avx512-linux.dat: New file.
5456 * regformats/i386/amd64-avx512.dat: Likewise.
5457 * regformats/i386/i386-avx512-linux.dat: Likewise.
5458 * regformats/i386/i386-avx512.dat: Likewise.
5459 * regformats/i386/x32-avx512-linux.dat: Likewise.
5460 * regformats/i386/x32-avx512.dat: Likewise.
5461 * NEWS: Add note about new support for AVX512.
5462
5463
08351840
PA
54642014-04-23 Pedro Alves <palves@redhat.com>
5465
5466 * breakpoint.c (insert_bp_location): Tolerate errors if the
5467 breakpoint is set in a user-loaded objfile.
5468 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5469 location is marked shlib_disabled. If the breakpoint is set in a
5470 user-loaded objfile is a GDB-side memory breakpoint, validate it
5471 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5472 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5473 flag.
5474 * mem-break.c (memory_validate_breakpoint): New function.
5475 * objfiles.c (userloaded_objfile_contains_address_p): New
5476 function.
5477 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5478 * target.h (memory_validate_breakpoint): New declaration.
5479
076855f9
PA
54802014-04-23 Pedro Alves <palves@redhat.com>
5481
5482 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5483 the breakpoint is set in a shared library, only suppress
5484 errors for software breakpoints, not hardware breakpoints.
5485
483805cf
PA
54862014-04-22 Pedro Alves <palves@redhat.com>
5487
5488 * infrun.c (schedlock_applies): New function, factored out from
5489 find_thread_needs_step_over.
5490 (find_thread_needs_step_over): Use it.
5491 (switch_back_to_stepped_thread): Always clear trap_expected if the
5492 step over is finished. Return early if scheduler locking applies.
5493 Look for the stepping thread and a potential step-over thread with
5494 a single loop.
5495 (currently_stepping_or_nexting_callback): Delete.
5496
a75fef0e
NC
54972014-04-22 Nick Clifton <nickc@redhat.com>
5498
5499 * NEWS: Mention that ARM sim now supports tracing.
5500
48b6e87e
YQ
55012014-04-22 Yao Qi <yao@codesourcery.com>
5502
5503 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5504 to ...
5505 * tracefile.c (tracefile_fetch_registers): ... it. New
5506 function.
5507 * tracefile.h (tracefile_fetch_registers): Declare.
5508 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5509 tracefile_fetch_registers.
5510
17617f2d
EZ
55112014-04-19 Eli Zaretskii <eliz@gnu.org>
5512
5513 PR gdb/14018
5514 * windows-nat.c (thread_rec): Don't display a warning when
5515 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5516 fails for any reason, set th->suspended to -1, so that we don't
5517 try to resume such a thread. Also, don't return NULL in these
5518 cases, to avoid completely ruin the session due to "PC register is
5519 not available" error.
5520 (do_windows_fetch_inferior_registers): Check errors in
5521 GetThreadContext call.
5522 (windows_continue): Accept an additional argument KILLED; if not
5523 zero, ignore errors in the SetThreadContext call, since the
5524 inferior was killed and is shutting down.
5525 (windows_resume, get_windows_debug_event)
5526 (windows_create_inferior, windows_mourn_inferior)
5527 (windows_kill_inferior): All callers of windows_continue changed
5528 to adjust to its new calling sequence.
5529
5723a6fd
YQ
55302014-04-19 Yao Qi <yao@codesourcery.com>
5531
5532 * ctf.c (ctf_open): Call post_create_inferior.
5533
614d5099
YQ
55342014-04-19 Yao Qi <yao@codesourcery.com>
5535
5536 * ctf.c (handle_id): New static variable.
5537 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5538 value. Get the declaration of event "register" and get length
5539 of field "contents".
5540
dac3e710
YQ
55412014-04-19 Yao Qi <yao@codesourcery.com>
5542
5543 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5544
2bca57ba
SC
55452014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5546
5547 * valops.c (oload_method_static): Remove unnecessary argument
5548 METHOD. Update all callers.
5549
51d48146
PA
55502014-04-18 Pedro alves <palves@redhat.com>
5551 Tom Tromey <tromey@redhat.com>
5552
5553 PR backtrace/15558
5554 * frame.c (get_prev_frame_1): Rename to ...
5555 (get_prev_frame_always): ... this, and make extern. Adjust.
5556 (skip_artificial_frames): Use get_prev_frame_always.
5557 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5558 (get_frame_unwind_stop_reason): Adjust to rename.
5559 * frame.h (get_prev_frame_always): Declare.
5560 * inline-frame.c: Include frame.h.
5561 (inline_frame_this_id): Use get_prev_frame_always.
5562
1bdad2e0
TG
55632014-04-18 Tristan Gingold <gingold@adacore.com>
5564
5565 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5566 code by using bfd_mach_o_get_base_address.
5567
7ce16bd4
UW
55682014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5569
5570 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5571 (spu_ax_pseudo_register_collect): New function.
5572 (spu_ax_pseudo_register_push_stack): Likewise.
5573 (spu_dwarf_reg_to_regnum): Likewise.
5574 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5575
2ed3c037
UW
55762014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5577
5578 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5579 Replace FRAME argument with FRAME_ID.
5580 * gdbarch.c, gdbarch.h: Regenerate.
5581 * findvar.c (default_value_from_register): Add GDBARCH argument;
5582 replace FRAME by FRAME_ID. No longer call get_frame_id.
5583 (value_from_register): Update call to gdbarch_value_from_register.
5584 * value.h (default_value_from_register): Update prototype.
5585 * s390-linux-tdep.c (s390_value_from_register): Update interface
5586 and call to default_value_from_register.
5587 * spu-tdep.c (spu_value_from_register): Likewise.
5588
5589 * findvar.c (address_from_register): Remove TYPE argument.
5590 Do not call value_from_register; use gdbarch_value_from_register
5591 with null_frame_id instead.
5592 * value.h (address_from_register): Update prototype.
5593 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5594 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5595 address_from_register interface change.
5596
71e50e83
YQ
55972014-04-17 Yao Qi <yao@codesourcery.com>
5598
5599 * gdbtypes.h: Update comments to link to types and macros'
5600 definitions.
5601
7a23c549
SC
56022014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5603
5604 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5605
22869d73
KS
56062014-04-16 Keith Seitz <keiths@redhat.com>
5607
5608 PR gdb/15827
5609 * dwarf2read.c (skip_one_die): Check that all relative-offset
5610 sibling DIEs fall within range of the current reader's buffer.
5611 (read_partial_die): Likewise.
5612
c4f87ca6
KS
56132014-04-16 Keith Seitz <keiths@redhat.com>
5614
5615 PR c++/16597
5616 * cp-namespace.c (lookup_symbol_file): If the type name of
5617 `this' is NULL, return immediately.
5618
b50c8614
KS
56192014-04-14 Keith Seitz <keiths@redhat.com>
5620
5621 PR c++/16253
5622 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5623 from symbol_matches_domain in symtab.c. All local callers
5624 of symbol_matches_domain updated.
5625 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5626 search STRUCT_DOMAIN.
5627 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5628 independently. standard_lookup will do that automatically.
5629 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5630 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5631 (cp_lookup_symbol_in_namespace): Likewise.
5632 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5633 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5634 may return a STRUCT_DOMAIN match.
5635 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5636 * cp-support.c: Include language.h.
5637 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5638 VAR_DOMAIN.
5639 * psymtab.c (match_partial_symbol): Compare the requested
5640 domain with the symbol's domain directly.
5641 (lookup_partial_symbol): Likewise.
5642 * symtab.c (lookup_symbol_in_language): Explain when/why
5643 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5644 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5645 appropriate languages.
5646 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5647 and moved to ada-lang.c
5648 (lookup_block_symbol): Explain that this function only returns
5649 symbol matching the requested DOMAIN.
5650 Compare the requested domain with the symbol's domain directly.
5651 (iterate_over_symbols): Compare the requested domain with the
5652 symbol's domain directly.
5653 * symtab.h (symbol_matches_domain): Remove.
5654
3d567982
TT
56552014-04-14 Tom Tromey <tromey@redhat.com>
5656
5657 PR c++/15246:
5658 * c-exp.y (type_aggregate_p): New function.
5659 (qualified_name, classify_inner_name): Use it.
5660 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5661 and TYPE_TARGET_TYPE of an enum type.
5662 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5663 an enum type.
5664 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5665 handle TYPE_DECLARED_CLASS.
5666 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5667 types.
5668 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5669 * valops.c (enum_constant_from_type): New function.
5670 (value_aggregate_elt): Use it.
5671 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5672 TYPE_CODE_ENUM.
5673
c848d642
TT
56742014-04-14 Tom Tromey <tromey@redhat.com>
5675
5676 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5677 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5678 const.
5679 * value.h (value_aggregate_elt): Update.
5680
0626fc76
TT
56812014-04-14 Tom Tromey <tromey@redhat.com>
5682
5683 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5684
5ecaaa66
SA
56852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5686
5687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5688 (evaluate_subexp_standard): Pass noside argument.
5689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5694
1612e0c0
SA
56952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5696
5697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5698 points to a constant blob.
5699
c451ebe5
SA
57002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5701
5702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5703 property and store it as the high bound and flag the range accordingly.
5704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5706 * gdbtypes.h (enum range_flags): New enum.
5707 (struct range_bounds): Add flags member.
5708
1d42e4c4
SA
57092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5710
5711 * c-typeprint.c (c_type_print_varspec_suffix): Added
5712 check for not yet resolved high bound. If unresolved, print
5713 "variable length" string to the console instead of random
5714 length.
5715
9f1f738a
SA
57162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5717
5718 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5719 value.
5720 (ada_template_to_fixed_record_type_1): Likewise.
5721 (ada_to_fixed_type_1): Likewise.
5722 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5723 (cp_print_value): Likewise.
5724 * d-valprint.c (dynamic_array_type): Likewise.
5725 * findvar.c (address_of_variable): Likewise.
5726 * jv-valprint.c (java_value_print): Likewise.
5727 * valops.c (value_ind): Likewise.
5728 * value.c (coerce_ref): Likewise.
5729
3c8452d4
SA
57302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5731
5732 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5733 value and retrieve the dynamic type size.
5734
4ad88275
SA
57352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5736
5737 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5738 passed to sizeof is dynamic evaluate the argument to compute the length.
5739
80180f79
SA
57402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5741 Joel Brobecker <brobecker@adacore.com>
5742
5743 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5744 (dwarf2_evaluate_property): New function.
5745 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5746 * dwarf2read.c (attr_to_dynamic_prop): New function.
5747 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5748 attribute.
5749 * gdbtypes.c: Include dwarf2loc.h.
5750 (is_dynamic_type): New function.
5751 (resolve_dynamic_type): New function.
5752 (resolve_dynamic_bounds): New function.
5753 (get_type_length): New function.
5754 (check_typedef): Use get_type_length to compute type length.
5755 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5756 (TYPE_LOW_BOUND_KIND): New macro.
5757 (is_dynamic_type): New function prototype.
5758 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5759 to resolve dynamic properties of the type. Update comment.
5760 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5761
a1556843
RH
57622014-04-14 Richard Henderson <rth@redhat.com>
5763
5764 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5765
0be03e84
DE
57662014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5767 Doug Evans <xdje42@gmail.com>
5768
5769 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5770 dereference TYPE_CODE_REF values.
5771
6b662e19
JB
57722014-04-11 Joel Brobecker <brobecker@adacore.com>
5773
5774 Revert the following changes due to regressions:
5775
5776 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5777 (dwarf2_evaluate_property): New function.
5778 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5779 * dwarf2read.c (attr_to_dynamic_prop): New function.
5780 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5781 attribute.
5782 * gdbtypes.c: Include dwarf2loc.h.
5783 (is_dynamic_type): New function.
5784 (resolve_dynamic_type): New function.
5785 (resolve_dynamic_bounds): New function.
5786 (get_type_length): New function.
5787 (check_typedef): Use get_type_length to compute type length.
5788 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5789 (TYPE_LOW_BOUND_KIND): New macro.
5790 (is_dynamic_type): New function prototype.
5791 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5792 to resolve dynamic properties of the type. Update comment.
5793 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5794
5795 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5796 passed to sizeof is dynamic evaluate the argument to compute the length.
5797
5798 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5799 value and retrieve the dynamic type size.
5800
5801 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5802 (ada_template_to_fixed_record_type_1): Likewise.
5803 (ada_to_fixed_type_1): Likewise.
5804 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5805 (cp_print_value): Likewise.
5806 * d-valprint.c (dynamic_array_type): Likewise.
5807 * eval.c (evaluate_subexp_with_coercion): Likewise.
5808 * findvar.c (address_of_variable): Likewise.
5809 * jv-valprint.c (java_value_print): Likewise.
5810 * valops.c (value_ind): Likewise.
5811 * value.c (coerce_ref): Likewise.
5812
5813 * c-typeprint.c (c_type_print_varspec_suffix): Added
5814 check for not yet resolved high bound. If unresolved, print
5815 "variable length" string to the console instead of random
5816 length.
5817
5818 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5819 property and store it as the high bound and flag the range accordingly.
5820 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5821 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5822 * gdbtypes.h (enum range_flags): New enum.
5823 (struct range_bounds): Add flags member.
5824
5825 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5826 points to a constant blob.
5827
5828 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5829 (evaluate_subexp_standard): Pass noside argument.
5830 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5831 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5832 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5833 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5834 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5835
245a5f0b
KS
58362014-04-11 Keith Seitz <keiths@redhat.com>
5837
5838 PR c++/16675
5839 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5840 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5841 reference types.
5842
3bce8237
SA
58432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5844
5845 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5846 (evaluate_subexp_standard): Pass noside argument.
5847 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5848 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5849 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5850 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5851 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5852
92b09522
SA
58532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5854
5855 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5856 points to a constant blob.
5857
e1969afb
SA
58582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5859
5860 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5861 property and store it as the high bound and flag the range accordingly.
5862 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5863 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5864 * gdbtypes.h (enum range_flags): New enum.
5865 (struct range_bounds): Add flags member.
5866
b86138fb
SA
58672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5868
5869 * c-typeprint.c (c_type_print_varspec_suffix): Added
5870 check for not yet resolved high bound. If unresolved, print
5871 "variable length" string to the console instead of random
5872 length.
5873
bcd629a4
SA
58742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5875
5876 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5877 (ada_template_to_fixed_record_type_1): Likewise.
5878 (ada_to_fixed_type_1): Likewise.
5879 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5880 (cp_print_value): Likewise.
5881 * d-valprint.c (dynamic_array_type): Likewise.
5882 * eval.c (evaluate_subexp_with_coercion): Likewise.
5883 * findvar.c (address_of_variable): Likewise.
5884 * jv-valprint.c (java_value_print): Likewise.
5885 * valops.c (value_ind): Likewise.
5886 * value.c (coerce_ref): Likewise.
5887
04b19544
SA
58882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5889
5890 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5891 value and retrieve the dynamic type size.
5892
26cb189f
SA
58932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5894
5895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5896 passed to sizeof is dynamic evaluate the argument to compute the length.
5897
37c1ab67
SA
58982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5899
5900 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5901 (dwarf2_evaluate_property): New function.
5902 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5903 * dwarf2read.c (attr_to_dynamic_prop): New function.
5904 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5905 attribute.
5906 * gdbtypes.c: Include dwarf2loc.h.
5907 (is_dynamic_type): New function.
5908 (resolve_dynamic_type): New function.
5909 (resolve_dynamic_bounds): New function.
5910 (get_type_length): New function.
5911 (check_typedef): Use get_type_length to compute type length.
5912 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5913 (TYPE_LOW_BOUND_KIND): New macro.
5914 (is_dynamic_type): New function prototype.
5915 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5916 to resolve dynamic properties of the type. Update comment.
5917 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5918
729efb13
SA
59192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5920
5921 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5922 declaring high/low bounds and change uses accordingly. Call
5923 create_range_type instead of create_static_range_type.
5924 * gdbtypes.c (create_range_type): New function.
5925 (create_range_type): Convert bounds into struct bound_prop and pass
5926 them to create_range_type.
5927 * gdbtypes.h (struct bound_prop): New struct.
5928 (create_range_type): New function prototype.
5929 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5930 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5931 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5932 part of the bound.
5933 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5934
0c9c3474
SA
59352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5936
5937 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5938 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5939 * ada-lang.c: All uses of create_range_type updated.
5940 * coffread.c: All uses of create_range_type updated.
5941 * dwarf2read.c: All uses of create_range_type updated.
5942 * f-exp.y: All uses of create_range_type updated.
5943 * m2-valprint.c: All uses of create_range_type updated.
5944 * mdebugread.c: All uses of create_range_type updated.
5945 * stabsread.c: All uses of create_range_type updated.
5946 * valops.c: All uses of create_range_type updated.
5947 * valprint.c: All uses of create_range_type updated.
5948
9d497a19
PA
59492014-04-10 Pedro Alves <palves@redhat.com>
5950
5951 * breakpoint.c (single_step_breakpoints)
5952 (single_step_gdbarch): Move up in the file.
5953 (one_breakpoint_xfer_memory): New function, factored out from ...
5954 (breakpoint_xfer_memory): ... here. Also process single-step
5955 breakpoints.
5956
15a9128a
TG
59572014-04-09 Tristan Gingold <gingold@adacore.com>
5958
5959 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5960 comments.
5961 (darwin_decode_exception_message): Free port only after use.
5962
9c97a070
PL
59632014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5964
5965 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5966 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5967 when setting the size of call_length.
5968
7af389b8
SC
59692014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5970
5971 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5972 dereference TYPE_CODE_REF values.
5973
86ad98c3
JB
59742014-04-07 Joel Brobecker <brobecker@adacore.com>
5975
5976 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5977 end of warning message.
5978
b0aeadb3
DE
59792014-04-03 Doug Evans <dje@google.com>
5980
5981 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5982 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5983
5979d6b6
AM
59842014-04-02 Alan Modra <amodra@gmail.com>
5985
5986 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5987 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5988 (struct symbol_file_add_from_memory_args): Add size field.
5989 (find_vdso_size): New function.
5990 (add_vsyscall_page): Attempt to find vdso size.
5991
0d60c288
DE
59922014-04-01 Doug Evans <dje@google.com>
5993
5994 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5995
a41f2563
TG
59962014-04-01 Tristan Gingold <gingold@adacore.com>
5997
5998 * darwin-nat.c (darwin_encode_reply): Add prototype.
5999 (darwin_decode_exception_message): Reply to unknown inferiors.
6000 (darwin_decode_message): Handle message by id. Ignore message
6001 to unknown inferior.
6002 (darwin_wait): Discard unknown messages, add debug trace.
6003
11a865c8
DE
60042014-03-31 Doug Evans <dje@google.com>
6005
6006 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6007 comp_dir_string.
6008
770e7fc7
DE
60092014-03-31 Doug Evans <dje@google.com>
6010
6011 New option "set print symbol-loading".
6012 * NEWS: Mention it.
6013 * solib.c (solib_read_symbols): Only print symbol loading messages
6014 if requested.
6015 (solib_add): If symbol loading is in "brief" mode, notify user
6016 symbols are being loaded.
6017 (reload_shared_libraries_1): Ditto.
6018 * symfile.c (print_symbol_loading_off): New static global.
6019 (print_symbol_loading_brief): New static global.
6020 (print_symbol_loading_full): New static global.
6021 (print_symbol_loading_enums): New static global.
6022 (print_symbol_loading): New static global.
6023 (print_symbol_loading_p): New function.
6024 (symbol_file_add_with_addrs): Only print symbol loading messages
6025 if requested.
6026 (_initialize_symfile): Register "print symbol-loading" set/show
6027 command.
6028 * symfile.h (print_symbol_loading_p): Declare.
6029
c32c64b7
DE
60302014-03-30 Doug Evans <xdje42@gmail.com>
6031
6032 * infrun.c (set_last_target_status): New function.
6033 (handle_inferior_event): Call it.
6034
7c0bc051
DE
60352014-03-30 Doug Evans <xdje42@gmail.com>
6036
6037 * inferior.h (enum stop_kind): Improve comment.
6038
8776cfe9
JB
60392014-03-28 Joel Brobecker <brobecker@adacore.com>
6040
6041 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6042 a reference, strip the reference layer before calling
6043 the lang_ops value_has_mutated callback.
6044
410a0ff2
SDJ
60452014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6046
6047 Remove some globals from our parser.
6048 * language.c (unk_lang_parser): Add "struct parser_state"
6049 argument.
6050 * language.h (struct language_defn) <la_parser>: Likewise.
6051 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6052 (initialize_expout): Add "struct parser_state" argument.
6053 Rewrite function to use the parser state.
6054 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6055 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6056 write_exp_elt_longcst, write_exp_elt_dblcst,
6057 write_exp_elt_decfloatcst, write_exp_elt_type,
6058 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6059 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6060 write_dollar_variable): Likewise.
6061 (parse_exp_in_context_1): Use parser state.
6062 (insert_type_address_space): Add "struct parser_state" argument.
6063 Use parser state.
6064 (increase_expout_size): New function.
6065 * parser-defs.h: Forward declare "struct language_defn" and
6066 "struct parser_state".
6067 (expout, expout_size, expout_ptr): Remove extern declarations.
6068 (parse_gdbarch, parse_language): Rewrite macro declarations to
6069 accept the parser state.
6070 (struct parser_state): New struct.
6071 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6072 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6073 write_exp_elt_decfloatcst, write_exp_elt_type,
6074 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6075 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6076 write_exp_msymbol, write_dollar_variable,
6077 mark_struct_expression, insert_type_address_space): Add "struct
6078 parser_state" argument.
6079 (increase_expout_size): New function.
6080 * utils.c (do_clear_parser_state): New function.
6081 (make_cleanup_clear_parser_state): Likewise.
6082 * utils.h (make_cleanup_clear_parser_state): New function
6083 prototype.
6084 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6085 Update calls to write_exp* in order to pass the parser state.
6086 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6087 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6088 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6089 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6090 * stap-probe.c (stap_parse_register_operand): Likewise.
6091 (stap_parse_single_operand): Likewise.
6092 (stap_parse_argument_1): Likewise.
6093 (stap_parse_argument): Use parser state.
6094 * stap-probe.h: Include "parser-defs.h".
6095 (struct stap_parse_info) <pstate>: New field.
6096 * c-exp.y (parse_type): Rewrite to use parser state.
6097 (yyparse): Redefine to c_parse_internal.
6098 (pstate): New global variable.
6099 (parse_number): Add "struct parser_state" argument.
6100 (write_destructor_name): Likewise.
6101 (type_exp): Update calls to write_exp* and similars in order to
6102 use parser state.
6103 (exp1, exp, variable, qualified_name, space_identifier,
6104 typename, typebase): Likewise.
6105 (write_destructor_name, parse_number, lex_one_token,
6106 classify_name, classify_inner_name, c_parse): Add "struct
6107 parser_state" argument. Update function to use parser state.
6108 * c-lang.h: Forward declare "struct parser_state".
6109 (c_parse): Add "struct parser_state" argument.
6110 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6111 (yyparse): Redefine macro to ada_parse_internal.
6112 (pstate): New variable.
6113 (write_int, write_object_renaming, write_var_or_type,
6114 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6115 type_int, type_long, type_long_long, type_float, type_double,
6116 type_long_double, type_char, type_boolean, type_system_address):
6117 Add "struct parser_state" argument.
6118 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6119 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6120 var_or_type, aggregate, aggregate_component_list,
6121 positional_list, others, component_group,
6122 component_associations): Update calls to write_exp* and similar
6123 functions in order to use parser state.
6124 (ada_parse, write_var_from_sym, write_int,
6125 write_exp_op_with_string, write_object_renaming,
6126 find_primitive_type, write_selectors, write_ambiguous_var,
6127 write_var_or_type, write_name_assoc, type_int, type_long,
6128 type_long_long, type_float, type_double, type_long_double,
6129 type_char, type_boolean, type_system_address): Add "struct
6130 parser_state" argument. Adjust function to use parser state.
6131 * ada-lang.c (parse): Likewise.
6132 * ada-lang.h: Forward declare "struct parser_state".
6133 (ada_parse): Add "struct parser_state" argument.
6134 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6135 calls to both functions.
6136 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6137 parser state.
6138 (yyparse): Redefine macro to f_parse_internal.
6139 (pstate): New variable.
6140 (parse_number): Add "struct parser_state" argument.
6141 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6142 and similars in order to use parser state.
6143 (parse_number): Adjust code to use parser state.
6144 (yylex): Likewise.
6145 (f_parse): New function.
6146 * f-lang.h: Forward declare "struct parser_state".
6147 (f_parse): Add "struct parser_state" argument.
6148 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6149 parser state.
6150 (yyparse): Redefine macro for java_parse_internal.
6151 (pstate): New variable.
6152 (push_expression_name, push_expression_name, insert_exp): Add
6153 "struct parser_state" argument.
6154 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6155 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6156 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6157 PostIncrementExpression, PostDecrementExpression,
6158 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6159 UnaryExpressionNotPlusMinus, CastExpression,
6160 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6161 RelationalExpression, EqualityExpression, AndExpression,
6162 ExclusiveOrExpression, InclusiveOrExpression,
6163 ConditionalAndExpression, ConditionalOrExpression,
6164 ConditionalExpression, Assignment, LeftHandSide): Update
6165 calls to write_exp* and similars in order to use parser state.
6166 (parse_number): Ajust code to use parser state.
6167 (yylex): Likewise.
6168 (java_parse): New function.
6169 (push_variable): Add "struct parser_state" argument. Adjust
6170 code to user parser state.
6171 (push_fieldnames, push_qualified_expression_name,
6172 push_expression_name, insert_exp): Likewise.
6173 * jv-lang.h: Forward declare "struct parser_state".
6174 (java_parse): Add "struct parser_state" argument.
6175 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6176 parser state.
6177 (yyparse): Redefine macro to m2_parse_internal.
6178 (pstate): New variable.
6179 (type_exp, exp, fblock, variable, type): Update calls to
6180 write_exp* and similars to use parser state.
6181 (yylex): Likewise.
6182 (m2_parse): New function.
6183 * m2-lang.h: Forward declare "struct parser_state".
6184 (m2_parse): Add "struct parser_state" argument.
6185 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6186 * objc-lang.h: Forward declare "struct parser_state".
6187 (end_msglist): Add "struct parser_state" argument.
6188 * p-exp.y (parse_type): Rewrite macro to use parser state.
6189 (yyparse): Redefine macro to pascal_parse_internal.
6190 (pstate): New variable.
6191 (parse_number): Add "struct parser_state" argument.
6192 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6193 write_exp* and similars in order to use parser state.
6194 (parse_number, yylex): Adjust code to use parser state.
6195 (pascal_parse): New function.
6196 * p-lang.h: Forward declare "struct parser_state".
6197 (pascal_parse): Add "struct parser_state" argument.
6198 * go-exp.y (parse_type): Rewrite macro to use parser state.
6199 (yyparse): Redefine macro to go_parse_internal.
6200 (pstate): New variable.
6201 (parse_number): Add "struct parser_state" argument.
6202 (type_exp, exp1, exp, variable, type): Update calls to
6203 write_exp* and similars in order to use parser state.
6204 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6205 to use parser state.
6206 (go_parse): Likewise.
6207 * go-lang.h: Forward declare "struct parser_state".
6208 (go_parse): Add "struct parser_state" argument.
6209
342587c4
DE
62102014-03-27 Doug Evans <dje@google.com>
6211
6212 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6213
33e80786
DE
62142014-03-27 Doug Evans <dje@google.com>
6215
6216 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6217 Remove argument abbrev_section. All callers updated.
6218
1dbab08b
DE
62192014-03-27 Doug Evans <dje@google.com>
6220
6221 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6222 addr_base, ranges_base.
6223
318d3177
KS
62242014-03-26 Keith Seitz <keiths@redhat.com>
6225
6226 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6227 types, not VAR_DOMAIN.
6228
1e54db15
SL
62292014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6230
6231 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6232 "ra" registers.
6233 * features/nios2-linux.c: Regenerated.
6234 * features/nios2.c: Regenerated.
6235
d3839ede
PA
62362014-03-25 Pedro Alves <palves@redhat.com>
6237
6238 * cli/cli-script.c (script_from_file): Force the interpreter to
6239 sync mode.
6240
7588d2ec
PL
62412014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6242
6243 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6244 small stack allocation.
6245
a6290449
TG
62462014-03-24 Tristan Gingold <gingold@adacore.com>
6247
6248 * darwin-nat.c (exc_server): Remove unused prototype.
6249 (darwin_dump_message): Correctly display data on x86_64.
6250 (darwin_encode_reply): Fix style.
6251 Add comments and fix indentation.
6252
31ae9d24 62532014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6254
6255 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6256
6339bfc4
DE
62572014-03-22 Doug Evans <xdje42@gmail.com>
6258
6259 * infcmd.c: Whitespace fixes.
6260 (interrupt_command): Merge two function comments into one.
6261
0a07590b
DE
62622014-03-22 Doug Evans <xdje42@gmail.com>
6263
6264 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6265 All uses updated.
6266
b55fbac4
YQ
62672014-03-22 Yao Qi <yao@codesourcery.com>
6268
6269 * remote.c (target_read_live_memory): Remove.
6270 (memory_xfer_live_readonly_partial): Rename it to
6271 remote_xfer_live_readonly_partial. Remove argument 'object'.
6272 All callers updated. Call remote_read_bytes_1
6273 instead of target_read_live_memory.
6274 * tracepoint.c (set_traceframe_number): Remove.
6275 (make_cleanup_restore_traceframe_number): Likewise .
6276 * tracepoint.h (set_traceframe_number): Remove declaration.
6277 (make_cleanup_restore_traceframe_number): Likewise.
6278
9217e74e
YQ
62792014-03-22 Yao Qi <yao@codesourcery.com>
6280
6281 * remote.c (remote_read_bytes): Move code on reading from the
6282 remote stub to ...
6283 (remote_read_bytes_1): ... here. New function.
6284
8acf9577
YQ
62852014-03-22 Yao Qi <yao@codesourcery.com>
6286
6287 * ctf.c (ctf_xfer_partial): Check the return value of
6288 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6289 return TARGET_XFER_UNAVAILABLE.
6290 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6291 * target.c (target_read_live_memory): Move it to remote.c.
6292 (memory_xfer_live_readonly_partial): Likewise.
6293 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6294 * remote.c (target_read_live_memory): Moved from target.c.
6295 (memory_xfer_live_readonly_partial): Likewise.
6296 (remote_read_bytes): Factored out from
6297 memory_xfer_partial_1.
6298
feef67ab
DE
62992014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6300
6301 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6302 NULL pointer.
6303
b65dc60b
PA
63042014-03-21 Pedro Alves <palves@redhat.com>
6305
6306 * infrun.c (normal_stop): Extend comment.
6307
b4ab256d
HZ
63082014-03-21 Hui Zhu <hui@codesourcery.com>
6309 Pedro Alves <palves@redhat.com>
6310
6311 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6312 static buffer.
6313 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6314 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6315 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6316
deba7593
MR
63172014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6318
6319 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6320 `z' formatted output modifier.
6321
1bff71c3
SDJ
63222014-03-20 Tom Tromey <tromey@redhat.com>
6323 Sergio Durigan Junior <sergiodj@redhat.com>
6324
6325 * probe.c (parse_probes): Turn assert into an ordinary error.
6326 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6327 exceptions when parsing probes. Rearrange the code for clarity.
6328
90e28950
TT
63292014-03-20 Tom Tromey <tromey@redhat.com>
6330
6331 PR gdb/14135
6332 * top.c (execute_command): Only dispatch events if the command
6333 started the target.
6334
beb460e8
PA
63352014-03-20 Tom Tromey <tromey@redhat.com>
6336
6337 PR cli/15718
6338 * infcall.c: Include event-top.h.
6339 (run_inferior_call): Call async_disable_stdin if needed.
6340
99619bea
PA
63412014-03-20 Pedro Alves <palves@redhat.com>
6342
6343 * infrun.c (prepare_to_proceed): Delete.
6344 (thread_still_needs_step_over): New function.
6345 (find_thread_needs_step_over): New function.
6346 (proceed): If the current thread needs a step-over, set its
6347 steping_over_breakpoint flag. Adjust to use
6348 find_thread_needs_step_over instead of prepare_to_proceed.
6349 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6350 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6351 breakpoint.
6352 (switch_back_to_stepped_thread): Step over breakpoints of all
6353 threads not the stepping thread, before switching back to the
6354 stepping thread.
6355
2adfaa28
PA
63562014-03-20 Pedro Alves <palves@redhat.com>
6357
6358 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6359 extern.
6360 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6361 * infrun.c (saved_singlestep_ptid)
6362 (stepping_past_singlestep_breakpoint): Delete.
6363 (resume): Remove stepping_past_singlestep_breakpoint handling.
6364 (proceed): Store the prev_pc of the stepping thread too.
6365 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6366 singlestep_pc.
6367 (enum infwait_states): Delete infwait_thread_hop_state.
6368 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6369 field.
6370 (handle_inferior_event): Adjust.
6371 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6372 handling and the thread-hop code. Before removing single-step
6373 breakpoints, check whether the thread hit a single-step breakpoint
6374 of another thread. If it did, the trap is not a random signal.
6375 (switch_back_to_stepped_thread): If the event thread hit a
6376 single-step breakpoint, unblock it before switching to the
6377 stepping thread. Handle the case of the stepped thread having
6378 advanced already.
6379 (keep_going): Handle the case of the current thread moving past a
6380 single-step breakpoint.
6381
31e77af2
PA
63822014-03-20 Pedro Alves <palves@redhat.com>
6383
6384 PR breakpoints/7143
6385 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6386 are being stepped over.
6387 (breakpoint_address_match): Make extern.
6388 * breakpoint.h (breakpoint_address_match): New declaration.
6389 * inferior.h (stepping_past_instruction_at): New declaration.
6390 * infrun.c (struct step_over_info): New type.
6391 (step_over_info): New global.
6392 (set_step_over_info, clear_step_over_info)
6393 (stepping_past_instruction_at): New functions.
6394 (handle_inferior_event): Clear the step-over info when
6395 trap_expected is cleared.
6396 (resume): Remove now stale comment.
6397 (clear_proceed_status): Clear step-over info.
6398 (proceed): Adjust step-over handling to set or clear the step-over
6399 info instead of removing all breakpoints.
6400 (handle_signal_stop): When setting up a thread-hop, don't remove
6401 breakpoints here.
6402 (stop_stepping): Clear step-over info.
6403 (keep_going): Adjust step-over handling to set or clear step-over
6404 info and then always inserting breakpoints, instead of removing
6405 all breakpoints when stepping over one.
6406
b9f437de
PA
64072014-03-20 Pedro Alves <palves@redhat.com>
6408
6409 * infrun.c (previous_inferior_ptid): Adjust comment.
6410 (deferred_step_ptid): Delete.
6411 (infrun_thread_ptid_changed, prepare_to_proceed)
6412 (init_wait_for_inferior): Adjust.
6413 (handle_signal_stop): Delete deferred_step_ptid handling.
6414
06c868a8
JK
64152014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6416
6417 PR gdb/15358
6418 * defs.h (sync_quit_force_run): New declaration.
6419 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6420 * event-top.c (async_sigterm_handler): New declaration.
6421 (async_sigterm_token): New variable.
6422 (async_init_signals): Create also async_sigterm_token.
6423 (async_sigterm_handler): New function.
6424 (sync_quit_force_run): New variable.
6425 (handle_sigterm): Replace quit_force call by other calls.
6426 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6427
dea80df0
MR
64282014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6429
6430 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6431 offset into SPE pseudo registers.
6432
0c7e1a46
PA
64332014-03-18 Pedro Alves <palves@redhat.com>
6434
6435 PR gdb/13860
6436 * inferior.h (print_stop_event): Declare.
6437 * infrun.c (print_stop_event): New, factored out from ...
6438 (normal_stop): ... this.
6439 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6440 of bpstat_print/print_stack_frame.
6441
9c1fcd01
TT
64422014-03-17 Tom Tromey <tromey@redhat.com>
6443
6444 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6445
11aa919a
PMR
64462014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6447
6448 * ada-lang.c (decode_constrained_packed_array): Perform a
6449 minimal coercion for reference with coerce_ref instead of
6450 ada_coerce_ref.
6451
d4ccb5e0
TG
64522014-03-17 Tristan Gingold <gingold@adacore.com>
6453
6454 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6455 (darwin_solib_create_inferior_hook): Emit a warning if version
6456 is unhandled.
6457
49840f2a
UW
64582014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6459
6460 * python/py-value.c (get_field_flag): Cast flag_name argument to
6461 PyObject_GetAttrString to support Python 2.4.
6462
ed4123e5
JK
64632014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6464
6465 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6466 (Global Maintainers): Remove Jan Kratochvil.
6467
d6b64346
PA
64682014-03-14 Pedro Alves <palves@redhat.com>
6469
6470 * inferior.h (terminal_ours_for_output): Rename to ...
6471 (child_terminal_ours_for_output): ... this.
6472 (terminal_save_ours): Rename to ...
6473 (child_terminal_save_ours): ... this.
6474 (terminal_ours): Rename to ...
6475 (child_terminal_ours): ... this.
6476 (terminal_inferior): Rename to ...
6477 (child_terminal_inferior): ... this.
6478 (terminal_init_inferior): Rename to ...
6479 (child_terminal_init_inferior): ... this.
6480 (terminal_init_inferior_with_pgrp): Rename to ...
6481 (child_terminal_init_inferior_with_pgrp): ... this.
6482 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6483 (child_terminal_init_with_pgrp): ... this.
6484 (terminal_save_ours): Rename to ...
6485 (child_terminal_save_ours): ... this.
6486 (terminal_init_inferior): Rename to ...
6487 (child_terminal_init): ... this. Adjust.
6488 (terminal_inferior): Rename to ...
6489 (child_terminal_inferior): ... this.
6490 (terminal_ours_for_output): Rename to ...
6491 (child_terminal_ours_for_output): ... this. Adjust.
6492 (terminal_ours): Rename to ...
6493 (child_terminal_ours): ... this.
6494 (terminal_ours_1): Rename to ...
6495 (child_terminal_ours_1): ... this. Adjust.
6496 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6497 * windows-nat.c (do_initial_windows_stuff): Adjust.
6498 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6499 (gnu_terminal_init): ... this. Adjust.
6500 (gnu_target): Adjust.
6501 * inf-child.c (inf_child_target): Adjust.
6502
5a1e8c7a
DE
65032014-03-13 Doug Evans <xdje42@gmail.com>
6504
6505 PR guile/16612
6506 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6507 new eq?-hashtab.
6508
350e1a76
DE
65092014-03-13 Doug Evans <xdje42@gmail.com>
6510
6511 * value.c (record_latest_value): Call release_value_or_incref
6512 instead of release_value.
6513
a69900ae
PA
65142014-03-13 Pedro Alves <palves@redhat.com>
6515
6516 * procfs.c (procfs_target): Don't override to_shortname,
6517 to_longname or to_doc.
6518
5db9f0bd
PA
65192014-03-13 Pedro Alves <palves@redhat.com>
6520
6521 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6522 Unix in user visible strings.
6523
5e3a2c38
SS
65242014-03-12 Stan Shebs <stan@codesourcery.com>
6525
6526 * gdbtypes.h: Annotate comments for Doxygen, add a page
6527 block comment with some general info.
6528
8bc2fe48
PA
65292014-03-12 Pedro Alves <palves@redhat.com>
6530
6531 * infcmd.c (prepare_execution_command): New function, factored out
6532 from several execution commands.
6533 (run_command_1, continue_command, step_1, jump_command)
6534 (signal_command, until_command, advance_command, finish_command)
6535 (attach_command): Use prepare_execution_command.
6536
638c5f49
OJ
65372014-03-12 Omair Javaid <omair.javaid@linaro.org>
6538
6539 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6540 (MAX_BPTS): Define.
6541 (MAX_WPTS): Define.
6542 (struct arm_linux_thread_points): Removed.
6543 (struct arm_linux_process_info): New.
6544 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6545 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6546 (arm_linux_find_breakpoints_by_tid): Removed.
6547 (struct arch_lwp_info): New.
6548 (arm_linux_find_process_pid): New functions.
6549 (arm_linux_add_process): New functions.
6550 (arm_linux_process_info_get): New functions.
6551 (arm_linux_forget_process): New function.
6552 (arm_linux_get_debug_reg_state): New function.
6553 (struct update_registers_data): New.
6554 (update_registers_callback): New function.
6555 (arm_linux_insert_hw_breakpoint1): Updated.
6556 (arm_linux_remove_hw_breakpoint1): Updated.
6557 (arm_linux_insert_hw_breakpoint): Updated.
6558 (arm_linux_remove_hw_breakpoint): Updated.
6559 (arm_linux_insert_watchpoint): Updated.
6560 (arm_linux_remove_watchpoint): Updated.
6561 (arm_linux_new_thread): Updated.
6562 (arm_linux_prepare_to_resume): New function.
6563 (arm_linux_new_fork): New function.
6564 (_initialize_arm_linux_nat): Updated.
6565
6d03af93
PA
65662014-03-12 Pedro Alves <palves@redhat.com>
6567
6568 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6569
b3ccfe11
TT
65702014-03-12 Tom Tromey <tromey@redhat.com>
6571
6572 * inf-child.c (return_zero): New function.
6573 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6574 * aix-thread.c (aix_thread_inferior_created): New function.
6575 (aix_thread_attach): Remove.
6576 (init_aix_thread_ops): Don't set to_attach.
6577 (_initialize_aix_thread): Register inferior_created observer.
6578 * corelow.c (init_core_ops): Don't set to_attach or
6579 to_create_inferior.
6580 * exec.c (init_exec_ops): Don't set to_attach or
6581 to_create_inferior.
6582 * infcmd.c (run_command_1): Use find_run_target. Make direct
6583 target calls.
6584 (attach_command): Use find_attach_target. Make direct target
6585 calls.
6586 * record-btrace.c (init_record_btrace_ops): Don't set
6587 to_create_inferior.
6588 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6589 Remove.
6590 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6591 set to_create_inferior.
6592 * target.c (complete_target_initialization): Add assertion.
6593 (target_create_inferior): Remove.
6594 (find_default_attach, find_default_create_inferior): Remove.
6595 (find_attach_target, find_run_target): New functions.
6596 (find_default_is_async_p, find_default_can_async_p)
6597 (target_supports_non_stop, target_attach): Remove.
6598 (init_dummy_target): Don't set to_create_inferior or
6599 to_supports_non_stop.
6600 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6601 TARGET_DEFAULT_FUNC.
6602 <to_create_inferior>: Add comment.
6603 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6604 TARGET_DEFAULT_RETURN.
6605 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6606 (find_attach_target, find_run_target): Declare.
6607 (target_create_inferior): Remove.
6608 (target_has_execution_1): Update comment.
6609 (target_supports_non_stop): Remove.
6610 * target-delegates.c: Rebuild.
6611
91f83b02
PA
66122014-03-12 Pedro Alves <palves@redhat.com>
6613
6614 * inf-child.h: Update comment to not mention Unix.
6615
f1aea813
PA
66162014-03-12 Pedro Alves <palves@redhat.com>
6617
6618 * inf-child.c: Update top comment to not mention Unix. Add
6619 generic comment describing how this target is meant to be used.
6620 (inf_child_post_attach, inf_child_post_startup_inferior)
6621 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6622 Unix in comment.
6623
ee8e9165
PA
66242014-03-12 Pedro Alves <palves@redhat.com>
6625
6626 * nto-procfs.c: Include inf-child.h.
6627 (procfs_ops): Delete global.
6628 (procfs_can_run): Delete method.
6629 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6630 target pointer instead of referencing procfs_ops.
6631 (procfs_prepare_to_store): Delete.
6632 (init_procfs_ops): Delete function.
6633 (procfs_target): New function, based on init_procfs_ops, but
6634 inherit inf_child_target.
6635 (_initialize_procfs): Use procfs_target.
6636
51a9c8c5
PA
66372014-03-12 Pedro Alves <palves@redhat.com>
6638
6639 * windows-nat.c: Include inf-child.h.
6640 (windows_ops): Delete global.
6641 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6642 methods.
6643 (init_windows_ops): Delete function.
6644 (windows_target): New function, based on init_windows_ops, but
6645 inherit inf_child_target.
6646 (_initialize_windows_nat): Use windows_target. Install x86
6647 specific target methods here.
6648
c1966e26
DE
66492014-03-10 Doug Evans <xdje42@gmail.com>
6650
6651 * guile/guile.c (call_initialize_gdb_module): New function.
6652 (initialize_guile): Replace call to scm_init_guile with call to
6653 scm_with_guile.
6654
023db19c
JB
66552014-03-10 Joel Brobecker <brobecker@adacore.com>
6656
6657 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6658 in call to TYPE_CODE macro.
6659
5ec18f2b
JG
66602014-03-10 Jerome Guitton <guitton@adacore.com>
6661
8668be63
JB
6662 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6663 Resolve tagged types to full view.
5ec18f2b 6664
7d03f2eb
HZ
66652014-03-10 Hui Zhu <hui@codesourcery.com>
6666
6667 * target.h (target_insert_breakpoint): Remove "hardware" from its
6668 comments.
6669
c5164cbc
DE
66702014-03-07 Doug Evans <dje@google.com>
6671
6672 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6673
c4a3fee2
DE
66742014-03-07 Doug Evans <dje@google.com>
6675
6676 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6677 Remove unused local comp_dir_attr. Assert exactly one of
6678 stub_comp_unit_die, stub_comp_dir is non-NULL.
6679
3156469c
JB
66802014-03-07 Joel Brobecker <brobecker@adacore.com>
6681
6682 * target.h (complete_target_initialization, add_target):
6683 Add comment.
6684
c1a7b7c6
PA
66852014-03-07 Pedro Alves <palves@redhat.com>
6686
6687 * go32-nat.c: Include inf-child.h.
6688 (go32_ops): Delete global.
6689 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6690 Delete methods.
6691 (go32_create_inferior): Push the passed in target pointer instead
6692 of referencing go32_ops.
6693 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6694 (go32_target): New function, based on init_go32_ops, but inherit
6695 inf_child_target.
6696 (_initialize_go32_nat): Use go32_target. Move parts of
6697 init_go32_ops here.
6698
d3c1a85f
JB
66992014-03-06 Joel Brobecker <brobecker@adacore.com>
6700
6701 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6702 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6703 SYMBOL_VALUE_ADDRESS.
6704 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6705
5fa1d40e
YQ
67062014-03-06 Yao Qi <yao@codesourcery.com>
6707
6708 * breakpoint.c (get_tracepoint_by_number): Remove argument
6709 optional_p. All callers updated. Adjust comments. Update
6710 output message.
6711 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6712
0c13193f
YQ
67132014-03-06 Yao Qi <yao@codesourcery.com>
6714
6715 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6716 early if get_number returns zero. Use 'p' instead of 'args'.
6717
2217da06
YQ
67182014-03-06 Yao Qi <yao@codesourcery.com>
6719
6720 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6721 message.
6722
cc3da688
YQ
67232014-03-06 Yao Qi <yao@codesourcery.com>
6724
6725 PR breakpoints/16508
6726 * tracepoint.c (check_trace_running): New function.
6727 (trace_find_command): Move code to check_trace_running and
6728 call check_trace_running.
6729 (trace_find_pc_command): Likewise.
6730 (trace_find_tracepoint_command): Likewise.
6731 (trace_find_line_command): Likewise.
6732 (trace_find_range_command): Likewise.
6733 * tracepoint.h (check_trace_running): Likewise.
6734 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6735
6a5f844b
YQ
67362014-03-06 Yao Qi <yao@codesourcery.com>
6737
6738 * target.h (struct target_ops) <to_traceframe_info>: Use
6739 TARGET_DEFAULT_NORETURN (tcomplain ()).
6740 * target-delegates.c: Regenerated.
6741
0f26cec1
PA
67422014-03-05 Pedro Alves <palves@redhat.com>
6743
6744 PR gdb/16575
6745 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6746 void. Update comment.
6747 (dcache_xfer_memory): Delete.
6748 (dcache_read_memory_partial): New, based on the read bits of
6749 dcache_xfer_memory.
6750 (dcache_update): Add status parameter. Use ULONGEST for len, and
6751 adjust. Discard cache lines if the reason for the update was
6752 error.
6753 * dcache.h (dcache_xfer_memory): Delete declaration.
6754 (dcache_read_memory_partial): New declaration.
6755 (dcache_update): Update prototype.
6756 * target.c (raw_memory_xfer_partial): Update the dcache here.
6757 (memory_xfer_partial_1): Don't handle dcache writes here.
6758
b2b255bd
MF
67592014-03-05 Mike Frysinger <vapier@gentoo.org>
6760
6761 * remote-sim.c (gdbsim_load): Add const to prog.
6762
5d9cf8a4
TT
67632014-03-03 Tom Tromey <tromey@redhat.com>
6764
6765 * elfread.c (probe_key): Change to bfd_data.
6766 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6767 now per-BFD, not per-objfile.
6768 * stap-probe.c (stap_probe_destroy): Update comment.
6769 (handle_stap_probe): Allocate on the per-BFD obstack.
6770
729662a5
TT
67712014-03-03 Tom Tromey <tromey@redhat.com>
6772
6773 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6774 * breakpoint.c (create_longjmp_master_breakpoint): Use
6775 get_probe_address.
6776 (add_location_to_breakpoint, bkpt_probe_insert_location)
6777 (bkpt_probe_remove_location): Update.
6778 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6779 * elfread.c (elf_symfile_relocate_probe): Remove.
6780 (elf_probe_fns): Update.
6781 (insert_exception_resume_breakpoint): Change type of "probe"
6782 parameter to bound_probe.
6783 (check_exception_resume): Update.
6784 * objfiles.c (objfile_relocate1): Don't relocate probes.
6785 * probe.c (bound_probe_s): New typedef.
6786 (parse_probes): Use get_probe_address. Set sal's objfile.
6787 (find_probe_by_pc): Return a bound_probe.
6788 (collect_probes): Return a VEC(bound_probe_s).
6789 (compare_probes): Update.
6790 (gen_ui_out_table_header_info): Change type of "probes"
6791 parameter. Update.
6792 (info_probes_for_ops): Update.
6793 (get_probe_address): New function.
6794 (probe_safe_evaluate_at_pc): Update.
6795 * probe.h (struct probe_ops) <get_probe_address>: New field.
6796 <set_semaphore, clear_semaphore>: Add objfile parameter.
6797 (struct probe) <objfile>: Remove field.
6798 <arch>: New field.
6799 <address>: Update comment.
6800 (struct bound_probe): New.
6801 (find_probe_by_pc): Return a bound_probe.
6802 (get_probe_address): Declare.
6803 * solib-svr4.c (struct probe_and_action) <address>: New field.
6804 (hash_probe_and_action, equal_probe_and_action): Update.
6805 (register_solib_event_probe): Add address parameter.
6806 (solib_event_probe_at): Update.
6807 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6808 get_probe_address.
6809 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6810 (stap_get_probe_address): New function.
6811 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6812 (compile_probe_arg): Update.
6813 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6814 address.
6815 (handle_stap_probe): Don't relocate the probe.
6816 (stap_relocate): Remove.
6817 (stap_gen_info_probes_table_values): Update.
6818 (stap_probe_ops): Remove stap_relocate.
6819 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6820 (debug_sym_probe_fns): Update.
6821 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6822 * symtab.c (init_sal): Use memset.
6823 * symtab.h (struct symtab_and_line) <objfile>: New field.
6824 * tracepoint.c (start_tracing, stop_tracing): Update.
6825
ff887920
TT
68262014-03-03 Tom Tromey <tromey@redhat.com>
6827
6828 * probe.h (parse_probes, find_probe_by_pc)
6829 (find_probes_in_objfile): Fix comments.
6830
f0407826
DE
68312014-03-02 Doug Evans <xdje42@gmail.com>
6832
6833 * infrun.c (handle_signal_stop): Replace test for
6834 TARGET_WAITKIND_STOPPED with an assert.
6835
35e6a711
DE
68362014-03-02 Doug Evans <xdje42@gmail.com>
6837
6838 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6839
667f9d0b
DE
68402014-03-02 Doug Evans <xdje42@gmail.com>
6841
6842 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6843
dc92ace0
MK
68442014-03-01 Mark Kettenis <kettenis@gnu.org>
6845
6846 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6847
a900370f
MK
68482014-03-01 Mark Kettenis <kettenis@gnu.org>
6849
6850 * i386obsd-nat.c: Include "obsd-nat.h".
6851 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6852 add_target.
6853 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6854
b72a7981
MK
68552014-03-01 Mark Kettenis <kettenis@gnu.org>
6856
6857 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6858
96c70aba
MK
68592014-03-01 Mark Kettenis <kettenis@gnu.org>
6860
6861 * mips64obsd-nat.c: Include "obsd-nath".
6862 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6863 add_target
6864 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6865
874a80af
MK
68662014-03-01 Mark Kettenis <kettenis@gnu.org>
6867
8fd408f1
MK
6868 * amd64obsd-nat.c: Include "obsd-nat,h.
6869 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6870 add_target.
874a80af
MK
6871 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6872
9cf95373
SC
68732014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6874
6875 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6876 (find_overload_match): Update call to find_oload_champ.
6877 (find_oload_champ_namespace_loop): Likewise
6878
863e4da4
MK
68792014-02-28 Mark Kettenis <kettenis@gnu.org>
6880
025cac40
MK
6881 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6882
1ed586ce
MK
6883 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6884 * config/sparc/obsd64.mh: New file.
6885 * sparc64obsd-nat.c: New file.
6886
863e4da4
MK
6887 * obsd-nat.h: New file.
6888 * obsd-nat.c: New file.
6889 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6890 (ALLDEPFILES): Add obsd-nat.c.
6891
89de4da4
TT
68922014-02-28 Tom Tromey <tromey@redhat.com>
6893
6894 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6895 * cli-out.h (cli_ui_out_impl): Now const.
6896 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6897 * ui-out.c (struct ui_out) <impl>: Now const.
6898 (default_ui_out_impl): Now const.
6899 (ui_out_new): Make 'impl' parameter const.
6900 * ui-out.h (ui_out_new): Update.
6901
c725e7b6
MK
69022014-02-27 Mark Kettenis <kettenis@gnu.org>
6903
6904 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6905
670b46b3
MK
69062014-02-27 Mark Kettenis <kettenis@gnu.org>
6907
6908 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6909
c91550fc
JK
69102014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6911
6912 Additional PR 8882 fix.
6913 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6914
2fa0369e
PA
69152014-02-27 Pedro Alves <palves@redhat.com>
6916
6917 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6918 isn't set.
6919
d632a097
PA
69202014-02-27 Pedro Alves <palves@redhat.com>
6921
6922 PR 12702
6923 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6924 * nat/linux-waitpid.c: Include string.h.
6925 (status_to_str): Moved here and made extern.
6926 * nat/linux-waitpid.h (status_to_str): New declaration.
6927
2ebd5a35
HZ
69282014-02-27 Hui Zhu <hui@codesourcery.com>
6929
6930 PR 12702
6931 * infrun.c (ptid_match): Move ...
6932 * common/ptid.c (ptid_match): ... here.
6933 * inferior.h (ptid_match): Move ...
6934 * common/ptid.h (ptid_match): ... here.
6935
3cdd631f
MK
69362014-02-27 Mark Kettenis <kettenis@gnu.org>
6937
6938 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6939 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6940 gdb_target_obs.
6941
bee30a64
MK
69422014-02-27 Mark Kettenis <kettenis@gnu.org>
6943
6944 * obsd-tdep.c (obsd_auxv_parse): New function.
6945 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6946
6947 * gdbarch.sh (auxv_parse): New.
6948 * gdbarch.h: Regenerated.
6949 * gdbarch.c: Regenerated.
6950 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6951
7a5a839f
LC
69522014-02-26 Ludovic Courtès <ludo@gnu.org>
6953
6954 * guile/scm-value.c (gdbscm_history_append_x): New function.
6955 (value_functions): Add it.
6956
31aa7e4e
JB
69572014-02-27 Joel Brobecker <brobecker@adacore.com>
6958
6959 * dwarf2read.c (attr_value_as_address): New function.
6960 (dwarf2_find_base_address, read_call_site_scope): Use
6961 attr_value_as_address in place of DW_ADDR.
6962 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6963 the low and high addresses. Slight rework of the handling
6964 of the high pc being a constant form, and limit it to
6965 DWARF verson 4 or higher.
6966 (dwarf2_record_block_ranges): Likewise.
6967 (read_partial_die): Likewise.
6968 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6969
9b333ba3
TT
69702014-02-26 Tom Tromey <tromey@redhat.com>
6971
6972 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6973
5f6cac40
TT
69742014-02-26 Tom Tromey <tromey@redhat.com>
6975
6976 * elfread.c (elf_read_minimal_symbols): Return early if
6977 minimal symbols have already been read. Add "ei" parameter.
6978 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6979 * minsyms.c (prim_record_minimal_symbol_full): Update.
6980 * objfiles.h (struct objstats) <n_minsyms>: Move...
6981 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6982 * symmisc.c (print_objfile_statistics): Update.
6983
2750ef27
TT
69842014-02-26 Tom Tromey <tromey@redhat.com>
6985
6986 * elfread.c (elf_read_minimal_symbols): New function, from
6987 elf_symfile_read.
6988 (elf_symfile_read): Call it.
6989
34643a32
TT
69902014-02-26 Tom Tromey <tromey@redhat.com>
6991
6992 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6993 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6994 (lookup_minimal_symbol_solib_trampoline)
6995 (lookup_minimal_symbol_by_pc_section_1)
6996 (lookup_minimal_symbol_and_objfile): Update.
6997 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6998 Don't allocate a minimal symbol if minsyms have already been read.
6999 (build_minimal_symbol_hash_tables): Update.
7000 (install_minimal_symbols): Do nothing if minsyms already read.
7001 Use the per-BFD obstack.
7002 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7003 * objfiles.c (allocate_objfile): Call
7004 terminate_minimal_symbol_table later.
7005 (have_minimal_symbols): Update.
7006 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7007 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7008 Move from struct objfile.
7009 <minsyms_read>: New field.
7010 (struct objfile) <msymbols, minimal_symbol_count,
7011 msymbol_hash, msymbol_demangled_hash>: Move.
7012 (ALL_OBJFILE_MSYMBOLS): Update.
7013 * symfile.c (read_symbols): Set minsyms_read.
7014 (reread_symbols): Update.
7015 * symmisc.c (dump_objfile, dump_msymbols): Update.
7016
2273f0ac
TT
70172014-02-26 Tom Tromey <tromey@redhat.com>
7018
7019 * minsyms.c (msymbols_sort): Remove.
7020 * minsyms.h (msymbols_sort): Remove.
7021 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7022 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7023 * elfread.c (elf_symtab_read): Don't add section offsets.
7024 * xcoffread.c (record_minimal_symbol): Don't add section offset
7025 to minimal symbol address.
7026 * somread.c (text_offset, data_offset): Remove.
7027 (som_symtab_read): Don't add section offsets to minimal symbol
7028 addresses.
7029 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7030 Don't add section offsets to minimal symbols.
7031 * coffread.c (coff_symtab_read): Don't add section offsets
7032 to minimal symbol addresses.
7033 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7034 to minimal symbol addresses.
7035 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7036 section offset to minimal symbol addresses.
7037 * mdebugread.c (parse_partial_symbols): Don't add section
7038 offset to minimal symbol addresses.
7039 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7040 offset to minimal symbol addresses.
7041
77e371c0
TT
70422014-02-26 Tom Tromey <tromey@redhat.com>
7043
7044 * ada-lang.c (ada_main_name): Update.
7045 (ada_add_standard_exceptions): Update.
7046 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7047 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7048 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7049 * auxv.c (ld_so_xfer_auxv): Update.
7050 * avr-tdep.c (avr_scan_prologue): Update.
7051 * ax-gdb.c (gen_var_ref): Update.
7052 * blockframe.c (get_pc_function_start)
7053 (find_pc_partial_function_gnu_ifunc): Update.
7054 * breakpoint.c (create_overlay_event_breakpoint)
7055 (create_longjmp_master_breakpoint)
7056 (create_std_terminate_master_breakpoint)
7057 (create_exception_master_breakpoint): Update.
7058 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7059 * c-valprint.c (c_val_print): Update.
7060 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7061 * common/agent.c (agent_look_up_symbols): Update.
7062 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7063 * dwarf2loc.c (call_site_to_target_addr): Update.
7064 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7065 * elfread.c (elf_gnu_ifunc_record_cache)
7066 (elf_gnu_ifunc_resolve_by_got): Update.
7067 * findvar.c (default_read_var_value): Update.
7068 * frame.c (inside_main_func): Update.
7069 * frv-tdep.c (frv_frame_this_id): Update.
7070 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7071 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7072 Update.
7073 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7074 (hppa_hpux_find_dummy_bpaddr): Update.
7075 * hppa-tdep.c (hppa_symbol_address): Update.
7076 * infcmd.c (until_next_command): Update.
7077 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7078 Update.
7079 * linespec.c (minsym_found, add_minsym): Update.
7080 * linux-nat.c (get_signo): Update.
7081 * linux-thread-db.c (inferior_has_bug): Update.
7082 * m32c-tdep.c (m32c_return_value)
7083 (m32c_m16c_address_to_pointer): Update.
7084 * m32r-tdep.c (m32r_frame_this_id): Update.
7085 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7086 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7087 * maint.c (maintenance_translate_address): Update.
7088 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7089 (frob_address): New function.
7090 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7091 frob_address. Rename parameter to "pc_in".
7092 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7093 addresses.
7094 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7095 Update.
7096 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7097 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7098 * objc-lang.c (find_objc_msgsend): Update.
7099 * objfiles.c (objfile_relocate1): Update.
7100 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7101 * p-valprint.c (pascal_val_print): Update.
7102 * parse.c (write_exp_msymbol): Update.
7103 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7104 (ppc_elfv2_skip_entrypoint): Update.
7105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7106 * printcmd.c (build_address_symbolic, msym_info)
7107 (address_info): Update.
7108 * proc-service.c (ps_pglobal_lookup): Update.
7109 * psymtab.c (find_pc_sect_psymtab_closer)
7110 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7111 Change msymbol parameter to bound_minimal_symbol.
7112 * ravenscar-thread.c (get_running_thread_id): Update.
7113 * remote.c (remote_check_symbols): Update.
7114 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7115 address.
7116 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7117 * solib-dsbt.c (lm_base): Update.
7118 * solib-frv.c (lm_base, main_got): Update.
7119 * solib-irix.c (locate_base): Update.
7120 * solib-som.c (som_solib_create_inferior_hook)
7121 (link_map_start): Update.
7122 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7123 * solib-svr4.c (elf_locate_base, enable_break): Update.
7124 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7125 (flush_ea_cache): Update.
7126 * stabsread.c (define_symbol, scan_file_globals): Update.
7127 * stack.c (find_frame_funname): Update.
7128 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7129 (debug_qf_find_pc_sect_symtab): Update.
7130 * symfile.c (simple_read_overlay_table)
7131 (simple_overlay_update): Update.
7132 * symfile.h (struct quick_symbol_functions)
7133 <find_pc_sect_symtab>: Change type of msymbol to
7134 bound_minimal_symbol.
7135 * symmisc.c (dump_msymbols): Update.
7136 * symtab.c (find_pc_sect_symtab_via_partial)
7137 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7138 (search_symbols, print_msymbol_info): Update.
7139 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7140 (MSYMBOL_VALUE_ADDRESS): Redefine.
7141 (BMSYMBOL_VALUE_ADDRESS): New macro.
7142 * tracepoint.c (scope_info): Update.
7143 * tui/tui-disasm.c (tui_find_disassembly_address)
7144 (tui_get_begin_asm_address): Update.
7145 * valops.c (find_function_in_inferior): Update.
7146 * value.c (value_static_field, value_fn_field): Update.
7147
3b7344d5
TT
71482014-02-26 Tom Tromey <tromey@redhat.com>
7149
7150 * ada-lang.c (ada_update_initial_language): Update.
7151 (ada_main_name, ada_has_this_exception_support): Update.
7152 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7153 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7154 * arm-tdep.c (arm_skip_stub): Update.
7155 * auxv.c (ld_so_xfer_auxv): Update.
7156 * avr-tdep.c (avr_scan_prologue): Update.
7157 * ax-gdb.c (gen_var_ref): Update.
7158 * breakpoint.c (struct breakpoint_objfile_data)
7159 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7160 type to bound_minimal_symbol.
7161 (create_overlay_event_breakpoint)
7162 (create_longjmp_master_breakpoint)
7163 (create_std_terminate_master_breakpoint)
7164 (create_exception_master_breakpoint): Update.
7165 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7166 * c-exp.y (classify_name): Update.
7167 * coffread.c (coff_symfile_read): Update.
7168 * common/agent.c (agent_look_up_symbols): Update.
7169 * d-lang.c (d_main_name): Update.
7170 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7171 * dec-thread.c (enable_dec_thread): Update.
7172 * dwarf2loc.c (call_site_to_target_addr): Update.
7173 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7174 * eval.c (evaluate_subexp_standard): Update.
7175 * findvar.c (struct minsym_lookup_data) <result>: Change type
7176 to bound_minimal_symbol.
7177 <objfile>: Remove.
7178 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7179 * frame.c (inside_main_func): Update.
7180 * frv-tdep.c (frv_frame_this_id): Update.
7181 * gcore.c (call_target_sbrk): Update.
7182 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7183 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7184 Update.
7185 * go-lang.c (go_main_name): Update.
7186 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7187 (hppa_hpux_find_import_stub_for_addr): Update.
7188 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7189 Update. Change return type.
7190 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7191 type.
7192 * jit.c (jit_breakpoint_re_set_internal): Update.
7193 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7194 Update.
7195 * linux-nat.c (get_signo): Update.
7196 * linux-thread-db.c (inferior_has_bug): Update
7197 * m32c-tdep.c (m32c_return_value)
7198 (m32c_m16c_address_to_pointer): Update.
7199 * m32r-tdep.c (m32r_frame_this_id): Update.
7200 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7201 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7202 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7203 lookup_minimal_symbol. Change return type.
7204 (lookup_minimal_symbol): Remove.
7205 (lookup_bound_minimal_symbol): Update.
7206 (lookup_minimal_symbol_text): Change return type.
7207 (lookup_minimal_symbol_solib_trampoline): Change return type.
7208 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7209 (lookup_minimal_symbol_solib_trampoline): Change return type.
7210 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7211 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7212 (value_nsstring, find_imps): Update.
7213 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7214 * p-lang.c (pascal_main_name): Update.
7215 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7217 * proc-service.c (ps_pglobal_lookup): Update.
7218 * ravenscar-thread.c (get_running_thread_msymbol): Change
7219 return type.
7220 (has_ravenscar_runtime, get_running_thread_id): Update.
7221 * remote.c (remote_check_symbols): Update.
7222 * sol-thread.c (ps_pglobal_lookup): Update.
7223 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7224 * solib-dsbt.c (lm_base): Update.
7225 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7226 Update.
7227 * solib-irix.c (locate_base): Update.
7228 * solib-som.c (som_solib_create_inferior_hook)
7229 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7230 Update.
7231 * solib-spu.c (spu_enable_break): Update.
7232 * solib-svr4.c (elf_locate_base, enable_break): Update.
7233 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7234 (flush_ea_cache): Update.
7235 * stabsread.c (define_symbol): Update.
7236 * symfile.c (simple_read_overlay_table): Update.
7237 * symtab.c (find_pc_sect_line): Update.
7238 * tracepoint.c (scope_info): Update.
7239 * tui-disasm.c (tui_get_begin_asm_address): Update.
7240 * value.c (value_static_field): Update.
7241
40c1a007
TT
72422014-02-26 Tom Tromey <tromey@redhat.com>
7243
7244 * minsyms.c (prim_record_minimal_symbol_full): Use
7245 SET_MSYMBOL_VALUE_ADDRESS.
7246 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7247 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7248 SET_MSYMBOL_VALUE_ADDRESS.
7249 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7250 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7251
efd66ac6
TT
72522014-02-26 Tom Tromey <tromey@redhat.com>
7253
7254 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7255 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7256 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7257 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7258 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7259 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7260 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7261 * ada-lang.c (ada_main_name): Update.
7262 (ada_lookup_simple_minsym): Update.
7263 (ada_make_symbol_completion_list): Update.
7264 (ada_add_standard_exceptions): Update.
7265 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7266 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7267 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7268 * arm-tdep.c (skip_prologue_function): Update.
7269 (arm_skip_stack_protector, arm_skip_stub): Update.
7270 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7271 (arm_wince_skip_main_prologue): Update.
7272 * auxv.c (ld_so_xfer_auxv): Update.
7273 * avr-tdep.c (avr_scan_prologue): Update.
7274 * ax-gdb.c (gen_var_ref): Update.
7275 * block.c (call_site_for_pc): Update.
7276 * blockframe.c (get_pc_function_start): Update.
7277 (find_pc_partial_function_gnu_ifunc): Update.
7278 * breakpoint.c (create_overlay_event_breakpoint): Update.
7279 (create_longjmp_master_breakpoint): Update.
7280 (create_std_terminate_master_breakpoint): Update.
7281 (create_exception_master_breakpoint): Update.
7282 (resolve_sal_pc): Update.
7283 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7284 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7285 Update.
7286 * c-valprint.c (c_val_print): Update.
7287 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7288 * coffread.c (coff_symfile_read): Update.
7289 * common/agent.c (agent_look_up_symbols): Update.
7290 * dbxread.c (find_stab_function_addr): Update.
7291 (end_psymtab): Update.
7292 * dwarf2loc.c (call_site_to_target_addr): Update.
7293 (func_verify_no_selftailcall): Update.
7294 (tailcall_dump): Update.
7295 (call_site_find_chain_1): Update.
7296 (dwarf_expr_reg_to_entry_parameter): Update.
7297 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7298 (elf_gnu_ifunc_resolve_by_got): Update.
7299 * f-valprint.c (info_common_command): Update.
7300 * findvar.c (read_var_value): Update.
7301 * frame.c (get_prev_frame_1): Update.
7302 (inside_main_func): Update.
7303 * frv-tdep.c (frv_skip_main_prologue): Update.
7304 (frv_frame_this_id): Update.
7305 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7307 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7308 (gnuv3_skip_trampoline): Update.
7309 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7310 (hppa64_hpux_in_solib_call_trampoline): Update.
7311 (hppa_hpux_skip_trampoline_code): Update.
7312 (hppa64_hpux_search_dummy_call_sequence): Update.
7313 (hppa_hpux_find_import_stub_for_addr): Update.
7314 (hppa_hpux_find_dummy_bpaddr): Update.
7315 * hppa-tdep.c (hppa_symbol_address)
7316 (hppa_lookup_stub_minimal_symbol): Update.
7317 * i386-tdep.c (i386_skip_main_prologue): Update.
7318 (i386_pe_skip_trampoline_code): Update.
7319 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7320 * infcall.c (get_function_name): Update.
7321 * infcmd.c (until_next_command): Update.
7322 * jit.c (jit_breakpoint_re_set_internal): Update.
7323 (jit_inferior_init): Update.
7324 * linespec.c (minsym_found): Update.
7325 (add_minsym): Update.
7326 * linux-fork.c (info_checkpoints_command): Update.
7327 * linux-nat.c (get_signo): Update.
7328 * linux-thread-db.c (inferior_has_bug): Update.
7329 * m32c-tdep.c (m32c_return_value): Update.
7330 (m32c_m16c_address_to_pointer): Update.
7331 (m32c_m16c_pointer_to_address): Update.
7332 * m32r-tdep.c (m32r_frame_this_id): Update.
7333 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7334 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7335 * maint.c (maintenance_translate_address): Update.
7336 * minsyms.c (add_minsym_to_hash_table): Update.
7337 (add_minsym_to_demangled_hash_table): Update.
7338 (msymbol_objfile): Update.
7339 (lookup_minimal_symbol): Update.
7340 (iterate_over_minimal_symbols): Update.
7341 (lookup_minimal_symbol_text): Update.
7342 (lookup_minimal_symbol_by_pc_name): Update.
7343 (lookup_minimal_symbol_solib_trampoline): Update.
7344 (lookup_minimal_symbol_by_pc_section_1): Update.
7345 (lookup_minimal_symbol_and_objfile): Update.
7346 (prim_record_minimal_symbol_full): Update.
7347 (compare_minimal_symbols): Update.
7348 (compact_minimal_symbols): Update.
7349 (build_minimal_symbol_hash_tables): Update.
7350 (install_minimal_symbols): Update.
7351 (terminate_minimal_symbol_table): Update.
7352 (find_solib_trampoline_target): Update.
7353 (minimal_symbol_upper_bound): Update.
7354 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7355 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7356 (mips_skip_pic_trampoline_code): Update.
7357 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7358 * objc-lang.c (selectors_info): Update.
7359 (classes_info): Update.
7360 (find_methods): Update.
7361 (find_imps): Update.
7362 (find_objc_msgsend): Update.
7363 * objfiles.c (objfile_relocate1): Update.
7364 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7365 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7366 * p-valprint.c (pascal_val_print): Update.
7367 * parse.c (write_exp_msymbol): Update.
7368 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7369 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7370 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7371 * printcmd.c (build_address_symbolic): Update.
7372 (sym_info): Update.
7373 (address_info): Update.
7374 * proc-service.c (ps_pglobal_lookup): Update.
7375 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7376 (find_pc_sect_psymtab): Update.
7377 * python/py-framefilter.c (py_print_frame): Update.
7378 * ravenscar-thread.c (get_running_thread_id): Update.
7379 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7380 Update.
7381 * remote.c (remote_check_symbols): Update.
7382 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7383 (rs6000_skip_trampoline_code): Update.
7384 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7385 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7386 * solib-dsbt.c (lm_base): Update.
7387 * solib-frv.c (lm_base): Update.
7388 (main_got): Update.
7389 * solib-irix.c (locate_base): Update.
7390 * solib-som.c (som_solib_create_inferior_hook): Update.
7391 (som_solib_desire_dynamic_linker_symbols): Update.
7392 (link_map_start): Update.
7393 * solib-spu.c (spu_enable_break): Update.
7394 (ocl_enable_break): Update.
7395 * solib-svr4.c (elf_locate_base): Update.
7396 (enable_break): Update.
7397 * spu-tdep.c (spu_get_overlay_table): Update.
7398 (spu_catch_start): Update.
7399 (flush_ea_cache): Update.
7400 * stabsread.c (define_symbol): Update.
7401 (scan_file_globals): Update.
7402 * stack.c (find_frame_funname): Update.
7403 (frame_info): Update.
7404 * symfile.c (simple_read_overlay_table): Update.
7405 (simple_overlay_update): Update.
7406 * symmisc.c (dump_msymbols): Update.
7407 * symtab.c (fixup_section): Update.
7408 (find_pc_sect_line): Update.
7409 (skip_prologue_sal): Update.
7410 (search_symbols): Update.
7411 (print_msymbol_info): Update.
7412 (rbreak_command): Update.
7413 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7414 (completion_list_objc_symbol): Update.
7415 (default_make_symbol_completion_list_break_on): Update.
7416 * tracepoint.c (scope_info): Update.
7417 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7418 (tui_get_begin_asm_address): Update.
7419 * valops.c (find_function_in_inferior): Update.
7420 * value.c (value_static_field): Update.
7421 (value_fn_field): Update.
7422
50e65b17
TT
74232014-02-26 Tom Tromey <tromey@redhat.com>
7424
7425 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7426 bound minimal symbols. Move code that knows about minsym
7427 table layout...
7428 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7429 function.
7430 * minsyms.h (minimal_symbol_upper_bound): Declare.
7431 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7432 minimal_symbol_upper_bound.
7433
1b588015
JB
74342014-02-27 Joel Brobecker <brobecker@adacore.com>
7435
7436 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7437 Use the type's name if its basic type does not have a tag.
7438
dbb9c2b1
JB
74392014-02-27 Joel Brobecker <brobecker@adacore.com>
7440
7441 * dwarf2read.c (read_subrange_type): Add comment.
7442
55426c9d
JB
74432014-02-27 Joel Brobecker <brobecker@adacore.com>
7444
7445 * dwarf2read.c (update_enumeration_type_from_children): New
7446 function, mostly extracted from process_structure_scope.
7447 (read_enumeration_type): Call update_enumeration_type_from_children.
7448 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7449 and flag_flag_enum fields.
7450
f2fce0ca
PA
74512014-02-26 Pedro Alves <palves@redhat.com>
7452
7453 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7454 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7455 to_xfer_partial method.
7456
7a44e40e
PA
74572014-02-26 Pedro Alves <palves@redhat.com>
7458
7459 * target.c (complete_target_initialization): Don't install
7460 default_xfer_partial as to_xfer_partial hook.
7461 (nomemory): Delete.
7462 (update_current_target): Don't INHERIT nor de_fault
7463 deprecated_xfer_memory. Delete de_fault macro.
7464 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7465 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7466 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7467 field.
7468
bd265cd0
PA
74692014-02-26 Pedro Alves <palves@redhat.com>
7470
7471 * go32-nat.c (my_write_child): New function.
7472 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7473 (go32_xfer_partial): New function.
7474 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7475 Instead install a to_xfer_partial hook.
7476
9d46c4e5
PA
74772014-02-26 Pedro Alves <palves@redhat.com>
7478
7479 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7480 to_xfer_partial helper. Rewrite.
7481 (procfs_xfer_partial): New function.
7482 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7483 Install a to_xfer_partial hook.
7484
a1583b1f
PA
74852014-02-26 Pedro Alves <palves@redhat.com>
7486
7487 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7488 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7489 (m32r_xfer_partial): New function.
7490 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7491 Install a to_xfer_partial hook.
7492
6df1b29f
PA
74932014-02-26 Pedro Alves <palves@redhat.com>
7494
7495 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7496 helper.
7497 (mips_xfer_partial): New function.
7498 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7499 hook. Install a to_xfer_partial hook.
7500
dc53a7ad
JB
75012014-02-26 Joel Brobecker <brobecker@adacore.com>
7502
7503 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7504 * gdbtypes.c (create_array_type_with_stride): New function,
7505 renaming create_array_type, but with an added parameter
7506 called "bit_stride".
7507 (create_array_type): Re-implement using
7508 create_array_type_with_stride.
7509 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7510 and DW_AT_bit_stride attributes.
7511
12ab52e9
PA
75122014-02-26 Pedro Alves <palves@redhat.com>
7513
7514 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7515 task-specific breakpoints.
7516
d16461ae
PA
75172014-02-25 Pedro Alves <palves@redhat.com>
7518
7519 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7520 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7521
a8b16220
SS
75222014-02-25 Stan Shebs <stan@codesourcery.com>
7523
7524 * defs.h: Annotate comments for Doxygen.
7525
b9e795ee
TT
75262014-02-25 Tom Tromey <tromey@redhat.com>
7527
7528 * target.h (target_ignore): Don't declare.
7529 * target.c (target_ignore): Remove.
7530
849c862e
JK
75312014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7532
7533 PR gdb/16626
7534 * auto-load.c (auto_load_objfile_script_1): Change filename to
7535 debugfile.
7536
475109d8
JB
75372014-02-25 Joel Brobecker <brobecker@adacore.com>
7538
7539 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7540 documentation. Adjust prototype to match the target_ops
7541 to_xfer_partial method. Adjust implementation accordingly.
7542
e186c3bd
HZ
75432014-02-25 Hui Zhu <hui@codesourcery.com>
7544
7545 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7546 to_traceframe_info.
7547
6d451942
KB
75482014-02-25 Kevin Buettner <kevinb@redhat.com>
7549
041ab8b4 7550 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7551 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7552 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7553 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7554 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7555 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7556 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7557 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7558 New constants.
7559 (rl78_register_type): Use a data pointer type for SP and
7560 new pseudo registers mentioned above. Use a 16 bit integer
7561 type for all other register pairs.
7562 (rl78_register_name, rl78_g10_register_name): Update for
7563 new pseudo registers.
7564 (rl78_pseudo_register_read): Likewise.
7565 (rl78_pseudo_register_write): Likewise.
7566 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7567 to the newly added pseudo registers.
7568
eddf0bae
DE
75692014-02-24 Doug Evans <dje@google.com>
7570
7571 * value.c (record_latest_value): Fix comment.
7572 * printcmd.c (print_command_1): Remove code to handle -1 return from
7573 record_latest_value.
7574
e96027e0
PA
75752014-02-24 Pedro Alves <palves@redhat.com>
7576
7577 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7578 deprecated_xfer_memory hook.
7579 (procfs_xfer_partial): Call procfs_xfer_memory instead
7580 of the deprecated_xfer_memory target hook.
7581 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7582 helper.
7583
0837c976
YZ
75842014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7585
7586 * windows-nat.c (windows_xfer_shared_libraries): Return
7587 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7588 requested object is TARGET_OBJECT_LIBRARIES.
7589
bc113b4e
YQ
75902014-02-24 Yao Qi <yao@codesourcery.com>
7591
7592 * target.h (enum target_xfer_status)
7593 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7594 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7595 explicitly. New.
7596 * corefile.c (memory_error_message): User updated.
7597 * exec.c (section_table_read_available_memory): Likewise.
7598 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7599 * target.c (target_xfer_status_to_string): Likewise.
7600 (raw_memory_xfer_partial): Likewise.
7601 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7602 * valops.c (read_value_memory): Likewise.
7603 * exec.h: Update comments.
7604
01cb8804
YQ
76052014-02-24 Yao Qi <yao@codesourcery.com>
7606
7607 * target.c (target_xfer_status_to_string): Rename argument err
7608 to status.
7609 * target.h (target_xfer_status_to_string): Update declaration.
7610 Replace target_xfer_error_to_string with
7611 target_xfer_status_to_string in comment.
7612
93063aa6
YQ
76132014-02-24 Yao Qi <yao@codesourcery.com>
7614
7615 * mips-linux-nat.c (super_close): Update its type.
7616 (mips_linux_close): Pass 'self' to super_close.
7617
5c328c05
YQ
76182014-02-24 Yao Qi <yao@codesourcery.com>
7619
7620 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7621 * corefile.c (read_memory): Adjusted.
7622 * target.c (target_write_with_progress): Adjusted.
7623
f73023dd
YQ
76242014-02-23 Yao Qi <yao@codesourcery.com>
7625
7626 Revert two patches:
7627
7628 2013-10-25 Yao Qi <yao@codesourcery.com>
7629
7630 * remote.c (remote_traceframe_info): Return early if
7631 traceframe is not selected.
7632
7633 2013-07-19 Yao Qi <yao@codesourcery.com>
7634
7635 * target.c (update_current_target): Change the default action
7636 of 'to_traceframe_info' from tcomplain to return_zero.
7637 * target.h (struct target_ops) <to_traceframe_info>: Add more
7638 comments.
7639
5a2eb0ef
YQ
76402014-02-23 Yao Qi <yao@codesourcery.com>
7641
7642 * valops.c (read_value_memory): Rewrite it. Call
7643 target_xfer_partial in a loop.
7644 * exec.h (section_table_available_memory): Remove declaration.
7645 Move comments to ...
7646 * exec.c (section_table_available_memory): ... here. Make it
7647 static.
7648
1ee79381
YQ
76492014-02-23 Yao Qi <yao@codesourcery.com>
7650
7651 * exec.c (section_table_read_available_memory): New function.
7652 * exec.h (section_table_read_available_memory): Declare.
7653 * ctf.c (ctf_xfer_partial): Call
7654 section_table_read_available_memory.
7655 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7656
1ca49d37
YQ
76572014-02-23 Yao Qi <yao@codesourcery.com>
7658
7659 * ctf.c (ctf_xfer_partial): Move code to ...
7660 * exec.c (exec_read_partial_read_only): ... it. New function.
7661 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7662 * tracefile.c: Include "exec.h".
7663 * exec.h (exec_read_partial_read_only): Declare.
7664
a283690e
YQ
76652014-02-23 Yao Qi <yao@codesourcery.com>
7666
7667 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7668 (tfile_has_memory): Remove.
7669 (init_tfile_ops): Don't set fields to_has_all_memory and
7670 to_has_memory of tfile_ops.
7671 * tracefile.c (tracefile_has_all_memory): New function.
7672 (tracefile_has_memory): New function.
7673 (init_tracefile_ops): Initialize fields to_has_all_memory and
7674 to_has_memory of 'ops'.
7675
12e03cd0
YQ
76762014-02-23 Yao Qi <yao@codesourcery.com>
7677
7678 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7679 (ctf_thread_alive, ctf_get_trace_status): Remove.
7680 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7681 init_tracefile_ops.
7682 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7683 (tfile_has_stack, tfile_has_registers): Remove.
7684 (tfile_thread_alive): Remove.
7685 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7686 init_tracefile_ops.
7687 * tracefile.c (tracefile_has_stack): New function.
7688 (tracefile_has_registers): New function.
7689 (tracefile_thread_alive): New function.
7690 (tracefile_get_trace_status): New function.
7691 (init_tracefile_ops): New function.
7692 * tracefile.h (init_tracefile_ops): Declare.
7693
11395323
YQ
76942014-02-23 Yao Qi <yao@codesourcery.com>
7695
7696 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7697 (O_LARGEFILE): Likewise.
7698 (tfile_ops): Likewise.
7699 (TRACE_HEADER_SIZE): Likewise.
7700 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7701 (cur_data_size): Likewise.
7702 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7703 (tfile_close, tfile_files_info): Likewise.
7704 (tfile_get_trace_status): Likewise.
7705 (tfile_get_tracepoint_status): Likewise.
7706 (tfile_get_traceframe_address): Likewise.
7707 (tfile_trace_find, match_blocktype): Likewise.
7708 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7709 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7710 (tfile_get_trace_state_variable_value): Likewise.
7711 (tfile_has_all_memory, tfile_has_memory): Likewise.
7712 (tfile_has_stack, tfile_has_registers): Likewise.
7713 (tfile_thread_alive, build_traceframe_info): Likewise.
7714 (tfile_traceframe_info, init_tfile_ops): Likewise.
7715 (_initialize_tracepoint): Don't call init_tfile_ops
7716 and add_target_with_completer.
7717 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7718 exec.h, completer.h and filenames.h.
7719 (_initialize_tracefile_tfile): New function.
7720
7951c4eb
YQ
77212014-02-23 Yao Qi <yao@codesourcery.com>
7722
7723 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7724 tracefile-tfile.o.
7725 (HFILES_NO_SRCDIR): Add tracefile.h.
7726 * ctf.c: Include "tracefile.h".
7727 * tracefile.h: New file.
7728 * tracefile.c: New file
7729 * tracefile-tfile.c: New file.
7730 * tracepoint.c: Include "tracefile.h".
7731 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7732 (stop_reason_names): Add const.
7733 (trace_file_writer_xfree): Move it to tracefile.c.
7734 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7735 (trace_save_ctf): Likewise.
7736 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7737 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7738 (tfile_write_header, tfile_write_regblock_type): Likewise.
7739 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7740 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7741 (tfile_write_raw_data, tfile_end): Likewise.
7742 (tfile_trace_file_writer_new): Likewise.
7743 (free_uploaded_tp): Make it extern.
7744 (free_uploaded_tsv): Make it extern.
7745 (_initialize_tracepoint): Move code to register command 'tsave'
7746 to tracefile.c.
7747 * tracepoint.h (stop_reason_names): Declare.
7748 (struct trace_frame_write_ops): Move it to tracefile.h.
7749 (struct trace_file_write_ops): Likewise.
7750 (struct trace_file_writer): Likewise.
7751 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7752
184cd072
JK
77532014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7754
7755 PR gdb/16594
7756 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7757 process name.
7758 (get_cores_used_by_process): New parameter num_cores, use it.
7759 (linux_xfer_osdata_processes): Pass num_cores to it.
7760 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7761 process name.
7762
c63528fc
AK
77632014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7764
7765 * target.c (memory_xfer_partial): Fix length arg in call to
7766 breakpoint_xfer_memory.
7767
d7b30f67
SDJ
77682014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7769
7770 PR tdep/16397
7771 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7772 number comes after the + or - signs. Adjust length of register
7773 name to be extracted.
7774
8838afaf
TT
77752014-02-20 Tom Tromey <tromey@redhat.com>
7776
7777 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7778 (ada_varobj_ops): Mark "extern".
7779
05227d14
TT
77802014-02-20 Tom Tromey <tromey@redhat.com>
7781
7782 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7783
1254eefc
DE
77842014-02-20 Doug Evans <xdje42@gmail.com>
7785
7786 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7787 All callers updated.
7788 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7789 All callers updated.
7790 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7791 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7792
adde2bff
DE
77932014-02-20 lin zuojian <manjian2006@gmail.com>
7794 Joel Brobecker <brobecker@adacore.com>
7795 Doug Evans <xdje42@gmail.com>
7796
7797 PR symtab/16581
7798 * dwarf2read.c (struct die_info): New member in_process.
7799 (reset_die_in_process): New function.
7800 (process_die): Set it at the start, reset when returning.
7801 (inherit_abstract_dies): Only call process_die if origin_child_die
7802 not already being processed.
7803
3be75f87
JB
78042014-02-20 Joel Brobecker <brobecker@adacore.com>
7805
7806 * windows-nat.c (handle_unload_dll): Add function documentation.
7807 (do_initial_windows_stuff): Add comment explaining why we wait
7808 until after inferior initialization has finished before
7809 processing all DLLs.
7810
47f7ffdb
JB
78112014-02-20 Joel Brobecker <brobecker@adacore.com>
7812
7813 * windows-nat.c (get_module_name): Delete.
7814 (windows_get_exec_module_filename): New function, mostly
7815 inspired from get_module_name.
7816 (windows_pid_to_exec_file): Replace call to get_module_name
7817 by call to windows_get_exec_module_filename.
7818
1cd9feab
JB
78192014-02-20 Joel Brobecker <brobecker@adacore.com>
7820
7821 * windows-nat.c (handle_load_dll): Rewrite this function's
7822 introductory comment. Remove code using get_module_name
7823 to get the DLL's name.
7824
ea39ad35
JB
78252014-02-20 Joel Brobecker <brobecker@adacore.com>
7826
7827 * windows-nat.c (get_windows_debug_event): Ignore
7828 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7829 if windows_initialization_done == 0.
7830 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7831 Adjust implementation to always load all DLLs.
7832 (do_initial_windows_stuff): Replace call to
7833 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7834
95060284
JB
78352014-02-20 Joel Brobecker <brobecker@adacore.com>
7836
7837 * windows-nat.c (_initialize_windows_nat): Deprecate the
7838 "dll-symbols" command. Turn the "add-shared-symbol-files"
7839 and "assf" aliases into commands, and deprecate them as well.
7840 * NEWS: Add entry explaining that "dll-symbols" and its two
7841 aliases are now deprecated.
7842
8d4fdb12
JB
78432014-02-20 Joel Brobecker <brobecker@adacore.com>
7844
7845 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7846 new-line in debug string. Remove trailing spaces.
7847
1b281443
SS
78482014-02-19 Stan Shebs <stan@codesourcery.com>
7849
7850 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7851
f7bd0f78
SC
78522014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7853
7854 * NEWS: Add entry for the new feature
7855 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7856 and class values.
7857
399ebc3d
SS
78582014-02-19 Stan Shebs <stan@codesourcery.com>
7859
7860 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7861
c658158d
PA
78622014-02-19 Pedro Alves <palves@redhat.com>
7863
7864 * common/ptid.h (struct ptid): Mention that process_stratum
7865 targets should prefer ptid.lwp.
7866
ba348170
PA
78672014-02-19 Pedro Alves <palves@redhat.com>
7868
7869 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7870 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7871 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7872 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7873 store remote thread ids rather than ptid.tid.
7874 (_initialize_remote): Adjust.
7875
ac01945b
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target.c (target_get_unwinder): Rewrite.
7879 (target_get_tailcall_unwinder): Rewrite.
7880 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7881 (record_btrace_to_get_tailcall_unwinder): New function.
7882 (init_record_btrace_ops): Update.
7883 * target.h (struct target_ops) <to_get_unwinder,
7884 to_get_tailcall_unwinder>: Now function pointers. Use
7885 TARGET_DEFAULT_RETURN.
7886
8476dc92
TT
78872014-02-19 Tom Tromey <tromey@redhat.com>
7888
7889 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7890 argument.
7891 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7892
c0eca49f
TT
78932014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7896 directly.
7897 * target-delegates.c: Rebuild.
7898 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7899 TARGET_DEFAULT_FUNC.
7900 * target.c (default_target_decr_pc_after_break): Rename from
7901 forward_target_decr_pc_after_break. Simplify.
7902 (target_decr_pc_after_break): Rely on delegation.
7903
596b6b39
TT
79042014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target.c (update_current_target): Do not INHERIT to_doc or
7907 to_magic. Do not de_fault to_open or to_close.
7908
b427c1bc
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * gcore.h (objfile_find_memory_regions): Declare.
7912 * gcore.c (objfile_find_memory_regions): No longer static. Add
7913 "self" argument.
7914 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7915 * exec.c: Include gcore.h.
7916 (exec_set_find_memory_regions): Remove.
7917 (exec_find_memory_regions): Remove.
7918 (exec_do_find_memory_regions): Remove.
7919 (init_exec_ops): Update.
7920 * defs.h (exec_set_find_memory_regions): Remove.
7921
9b144037
TT
79222014-02-19 Tom Tromey <tromey@redhat.com>
7923
7924 * target-delegates.c: Rebuild.
7925 * target.h (struct target_ops) <to_extra_thread_info,
7926 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7927 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7928 not 0, in TARGET_DEFAULT_RETURN.
7929
555bbdeb
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target.c (complete_target_initialization): Remove casts. Use
7933 return_zero_has_execution.
7934 (return_zero): Add "ignore" argument.
7935 (return_zero_has_execution): New function.
7936 (init_dummy_target): Remove casts. Use
7937 return_zero_has_execution.
7938
be4ddd36
TT
79392014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target.c (update_current_target): Update comments. Do not
7942 INHERIT to_stratum.
7943
2117c711
TT
79442014-02-19 Tom Tromey <tromey@redhat.com>
7945
7946 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7947 needed.
7948 * corelow.c (core_read_description): Delegate when needed.
7949 * remote.c (remote_read_description): Delegate when needed.
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_read_description): Rewrite.
7952 * target.h (struct target_ops) <to_read_description>: Update
7953 comment. Use TARGET_DEFAULT_RETURN.
7954
e88ef65c
TT
79552014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_can_run.
7960 (find_default_run_target): Check against delegate_can_run.
7961 * target.h (struct target_ops) <to_can_run>: Use
7962 TARGET_DEFAULT_RETURN.
7963
86a0854a
TT
79642014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (target_disconnect): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_disconnect>: Use
7969 TARGET_DEFAULT_NORETURN.
7970
ee97f592
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * record.c (record_stop): Unconditionally delegate.
7974 * target-delegates.c: Rebuild.
7975 * target.c (target_stop_recording): Unconditionally delegate.
7976 * target.h (struct target_ops) <to_stop_recording>: Use
7977 TARGET_DEFAULT_IGNORE.
7978
6dc7fcf4
TT
79792014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * target-delegates.c: Rebuild.
7982 * target.c (target_enable_btrace): Unconditionally delegate.
7983 * target.h (struct target_ops) <to_enable_btrace>: Use
7984 TARGET_DEFAULT_NORETURN.
7985
eb5b20d4
TT
79862014-02-19 Tom Tromey <tromey@redhat.com>
7987
7988 * target-delegates.c: Rebuild.
7989 * target.c (target_read_btrace): Unconditionally delegate.
7990 * target.h (struct target_ops) <to_read_btrace>: Use
7991 TARGET_DEFAULT_NORETURN.
7992
9ace480d
TT
79932014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_teardown_btrace): Unconditionally delegate.
7997 * target.h (struct target_ops) <to_teardown_btrace>: Use
7998 TARGET_DEFAULT_NORETURN.
7999
8dc292d3
TT
80002014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_disable_btrace): Unconditionally delegate.
8004 * target.h (struct target_ops) <to_disable_btrace>: Use
8005 TARGET_DEFAULT_NORETURN.
8006
58a5184e
TT
80072014-02-19 Tom Tromey <tromey@redhat.com>
8008
8009 * target-delegates.c: Rebuild.
8010 * target.c (default_search_memory): New function.
8011 (simple_search_memory): Update comment.
8012 (target_search_memory): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_search_memory>: Use
8014 TARGET_DEFAULT_FUNC.
8015
8de71aab
TT
80162014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * auxv.c (default_auxv_parse): No longer static.
8019 (target_auxv_parse): Unconditionally delegate.
8020 * auxv.h (default_auxv_parse): Declare.
8021 * target-delegates.c: Rebuild.
8022 * target.c: Include auxv.h.
8023 * target.h (struct target_ops) <to_auxv_parse>: Use
8024 TARGET_DEFAULT_FUNC.
8025
6b2c5a57
TT
80262014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (target_memory_map): Unconditionally delegate.
8030 * target.h (struct target_ops) <to_memory_map>: Use
8031 TARGET_DEFAULT_RETURN.
8032
cbffc065
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (target_thread_alive): Unconditionally delegate.
8037 * target.h (struct target_ops) <to_thread_alive>: Use
8038 TARGET_DEFAULT_RETURN.
8039
f09e2107
TT
80402014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target-delegates.c: Rebuild.
8043 * target.c (target_save_record): Unconditionally delegate.
8044 * target.h (struct target_ops) <to_save_record>: Use
8045 TARGET_DEFAULT_NORETURN.
8046
07366925
TT
80472014-02-19 Tom Tromey <tromey@redhat.com>
8048
8049 * target-delegates.c: Rebuild.
8050 * target.c (target_delete_record): Unconditionally delegate.
8051 * target.h (struct target_ops) <to_delete_record>: Use
8052 TARGET_DEFAULT_NORETURN.
8053
dd2e9d25
TT
80542014-02-19 Tom Tromey <tromey@redhat.com>
8055
8056 * target-delegates.c: Rebuild.
8057 * target.c (target_record_is_replaying): Unconditionally
8058 delegate.
8059 * target.h (struct target_ops) <to_record_is_replaying>: Use
8060 TARGET_DEFAULT_RETURN.
8061
671e76cc
TT
80622014-02-19 Tom Tromey <tromey@redhat.com>
8063
8064 * target-delegates.c: Rebuild.
8065 * target.c (target_goto_record_begin): Unconditionally delegate.
8066 * target.h (struct target_ops) <to_goto_record_begin>: Use
8067 TARGET_DEFAULT_NORETURN.
8068
e9179bb3
TT
80692014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (target_goto_record_end): Unconditionally delegate.
8073 * target.h (struct target_ops) <to_goto_record_end>: Use
8074 TARGET_DEFAULT_NORETURN.
8075
05969c84
TT
80762014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (target_goto_record): Unconditionally delegate.
8080 * target.h (struct target_ops) <to_goto_record>: Use
8081 TARGET_DEFAULT_NORETURN.
8082
3679abfa
TT
80832014-02-19 Tom Tromey <tromey@redhat.com>
8084
8085 * target-delegates.c: Rebuild.
8086 * target.c (target_insn_history): Unconditionally delegate.
8087 * target.h (struct target_ops) <to_insn_history>: Use
8088 TARGET_DEFAULT_NORETURN.
8089
8444ab58
TT
80902014-02-19 Tom Tromey <tromey@redhat.com>
8091
8092 * target-delegates.c: Rebuild.
8093 * target.c (target_insn_history_from): Unconditionally delegate.
8094 * target.h (struct target_ops) <to_insn_history_from>: Use
8095 TARGET_DEFAULT_NORETURN.
8096
c29302cc
TT
80972014-02-19 Tom Tromey <tromey@redhat.com>
8098
8099 * target-delegates.c: Rebuild.
8100 * target.c (target_insn_history_range): Unconditionally delegate.
8101 * target.h (struct target_ops) <to_insn_history_range>: Use
8102 TARGET_DEFAULT_NORETURN.
8103
170049d4
TT
81042014-02-19 Tom Tromey <tromey@redhat.com>
8105
8106 * target-delegates.c: Rebuild.
8107 * target.c (target_call_history): Unconditionally delegate.
8108 * target.h (struct target_ops) <to_call_history>: Use
8109 TARGET_DEFAULT_NORETURN.
8110
16fc27d6
TT
81112014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.c (target_call_history_from): Unconditionally delegate.
8115 * target.h (struct target_ops) <to_call_history_from>: Use
8116 TARGET_DEFAULT_NORETURN.
8117
115d9817
TT
81182014-02-19 Tom Tromey <tromey@redhat.com>
8119
8120 * target-delegates.c: Rebuild.
8121 * target.c (target_call_history_range): Unconditionally delegate.
8122 * target.h (struct target_ops) <to_call_history_range>: Use
8123 TARGET_DEFAULT_NORETURN.
8124
eb276a6b
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (target_verify_memory): Unconditionally delegate.
8129 * target.h (struct target_ops) <to_verify_memory>: Use
8130 TARGET_DEFAULT_NORETURN.
8131
9e538d0d
TT
81322014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (target_core_of_thread): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_core_of_thread>: Use
8137 TARGET_DEFAULT_RETURN.
8138
f6fb2925
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_flash_done): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_flash_done>: Use
8144 TARGET_DEFAULT_NORETURN.
8145
e8a6c6ac
TT
81462014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target-delegates.c: Rebuild.
8149 * target.c (target_flash_erase): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_flash_erase>: Use
8151 TARGET_DEFAULT_NORETURN.
8152
7e35c012
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_get_section_table): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_get_section_table>: Use
8158 TARGET_DEFAULT_RETURN.
8159
770234d3
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_pid_to_str): Unconditionally delegate.
8164 (init_dummy_target): Don't initialize to_pid_to_str.
8165 (default_pid_to_str): Rename from dummy_pid_to_str.
8166 * target.h (struct target_ops) <to_pid_to_str>: Use
8167 TARGET_DEFAULT_FUNC.
8168
09b0dc2b
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_find_new_threads): Unconditionally delegate.
8173 * target.h (struct target_ops) <to_find_new_threads>: Use
8174 TARGET_DEFAULT_RETURN.
8175
7d4f8efa
TT
81762014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_program_signals): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_program_signals>: Use
8181 TARGET_DEFAULT_IGNORE.
8182
035cad7f
TT
81832014-02-19 Tom Tromey <tromey@redhat.com>
8184
8185 * target-delegates.c: Rebuild.
8186 * target.c (target_pass_signals): Unconditionally delegate.
8187 * target.h (struct target_ops) <to_pass_signals>: Use
8188 TARGET_DEFAULT_IGNORE.
8189
8d657035
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (default_mourn_inferior): New function.
8194 (target_mourn_inferior): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_mourn_inferior>: Use
8196 TARGET_DEFAULT_FUNC.
8197
098dba18
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (default_follow_fork): New function.
8202 (target_follow_fork): Unconditionally delegate.
8203 * target.h (struct target_ops) <to_follow_fork>: Use
8204 TARGET_DEFAULT_FUNC.
8205
423a4807
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (target_kill): Unconditionally delegate.
8210 * target.h (struct target_ops) <to_kill>: Use
8211 TARGET_DEFAULT_NORETURN.
8212
6c7e5e5c
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_masked_watch_num_registers): Unconditionally
8217 delegate.
8218 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8219 Use TARGET_DEFAULT_RETURN.
8220
8b1c364c
TT
82212014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_remove_mask_watchpoint): Unconditionally
8225 delegate.
8226 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8227 TARGET_DEFAULT_RETURN.
8228
cd4ae029
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_insert_mask_watchpoint): Unconditionally
8233 delegate.
8234 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8235 TARGET_DEFAULT_RETURN.
8236
a134316b
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (target_ranged_break_num_registers): Unconditionally
8241 delegate.
8242 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8243 Use TARGET_DEFAULT_RETURN.
8244
ad5989bd
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (target_fetch_registers): Unconditionally delegate.
8249 * target.h (struct target_ops) <to_fetch_registers>: Use
8250 TARGET_DEFAULT_NORETURN.
8251
46ee7e8d
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8256 to_stop.
8257 * target.h (struct target_ops) <to_stop>: Use
8258 TARGET_DEFAULT_IGNORE.
8259
843f59ed
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_can_run_breakpoint_commands.
8265 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8266 Use TARGET_DEFAULT_RETURN.
8267
ccfde2a0
TT
82682014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8272 to_supports_evaluation_of_breakpoint_conditions.
8273 * target.h (struct target_ops)
8274 <to_supports_evaluation_of_breakpoint_conditions>: Use
8275 TARGET_DEFAULT_RETURN.
8276
0de91722
TT
82772014-02-19 Tom Tromey <tromey@redhat.com>
8278
8279 * target-delegates.c: Rebuild.
8280 * target.c (update_current_target): Don't inherit or default
8281 to_augmented_libraries_svr4_read.
8282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8283 Use TARGET_DEFAULT_RETURN.
8284
9a7d8b48
TT
82852014-02-19 Tom Tromey <tromey@redhat.com>
8286
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8289 to_can_use_agent.
8290 * target.h (struct target_ops) <to_can_use_agent>: Use
8291 TARGET_DEFAULT_RETURN.
8292
d9db5b21
TT
82932014-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * target-delegates.c: Rebuild.
8296 * target.c (update_current_target): Don't inherit or default
8297 to_use_agent.
8298 * target.h (struct target_ops) <to_use_agent>: Use
8299 TARGET_DEFAULT_NORETURN.
8300
92155eeb
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target-delegates.c: Rebuild.
8304 * target.c (update_current_target): Don't inherit or default
8305 to_traceframe_info.
8306 (return_null): Remove.
8307 * target.h (struct target_ops) <to_traceframe_info>: Use
8308 TARGET_DEFAULT_RETURN.
8309
d6522a22
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_static_tracepoint_markers_by_strid.
8315 * target.h (struct target_ops)
8316 <to_static_tracepoint_markers_by_strid>: Use
8317 TARGET_DEFAULT_NORETURN.
8318
4c3e4425
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target-delegates.c: Rebuild.
8322 * target.c (update_current_target): Don't inherit or default
8323 to_static_tracepoint_marker_at.
8324 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8325 Use TARGET_DEFAULT_RETURN.
8326
dcd6917f
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_set_permissions.
8332 * target.h (struct target_ops) <to_set_permissions>: Use
8333 TARGET_DEFAULT_IGNORE.
8334
22bcceee
TT
83352014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_get_tib_address.
8340 * target.h (struct target_ops) <to_get_tib_address>: Use
8341 TARGET_DEFAULT_NORETURN.
8342
8586ccaa
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8347 to_set_trace_notes.
8348 * target.h (struct target_ops) <to_set_trace_notes>: Use
8349 TARGET_DEFAULT_RETURN.
8350
91df8d1d
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't initialize
8355 to_set_trace_buffer_size.
8356 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8357 TARGET_DEFAULT_IGNORE.
8358
8d526939
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_set_circular_trace_buffer.
8364 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8365 TARGET_DEFAULT_IGNORE.
8366
0bcfeddf
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_set_disconnected_tracing.
8372 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8373 TARGET_DEFAULT_IGNORE.
8374
9249843f
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_get_min_fast_tracepoint_insn_len.
8380 (return_minus_one): Remove.
8381 * target.h (struct target_ops)
8382 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8383
ace92e7d
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8388 to_get_raw_trace_data.
8389 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8390 TARGET_DEFAULT_NORETURN.
8391
08120467
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_upload_trace_state_variables.
8397 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8398 Use TARGET_DEFAULT_RETURN.
8399
1e949b00
TT
84002014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_upload_tracepoints.
8405 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8406 TARGET_DEFAULT_RETURN.
8407
a2e6c147
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_save_trace_data.
8413 * target.h (struct target_ops) <to_save_trace_data>: Use
8414 TARGET_DEFAULT_NORETURN.
8415
959bcd0b
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_get_trace_state_variable_value.
8421 * target.h (struct target_ops)
8422 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8423
afc94e66
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_trace_find.
8429 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8430
e51c07ea
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_trace_stop.
8436 * target.h (struct target_ops) <to_trace_stop>: Use
8437 TARGET_DEFAULT_NORETURN.
8438
6fea14cd
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_get_tracepoint_status.
8444 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8445 TARGET_DEFAULT_NORETURN.
8446
4072d4ff
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_get_trace_status.
8452 * target.h (struct target_ops) <to_get_trace_status>: Use
8453 TARGET_DEFAULT_RETURN.
8454
25da2e80
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_trace_start.
8460 * target.h (struct target_ops) <to_trace_start>: Use
8461 TARGET_DEFAULT_NORETURN.
8462
86dd181d
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_trace_set_readonly_regions.
8468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8469 Use TARGET_DEFAULT_NORETURN.
8470
05c41993
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_disable_tracepoint.
8476 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8477 TARGET_DEFAULT_NORETURN.
8478
151f70f1
TT
84792014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_enable_tracepoint.
8484 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8485 TARGET_DEFAULT_NORETURN.
8486
94eb98b9
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_download_trace_state_variable.
8492 * target.h (struct target_ops) <to_download_trace_state_variable>:
8493 Use TARGET_DEFAULT_NORETURN.
8494
719acc4a
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_can_download_tracepoint.
8500 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8501 TARGET_DEFAULT_RETURN.
8502
9a980a22
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_download_tracepoint.
8508 * target.h (struct target_ops) <to_download_tracepoint>: Use
8509 TARGET_DEFAULT_NORETURN.
8510
5536135b
TT
85112014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_trace_init.
8516 * target.h (struct target_ops) <to_trace_init>: Use
8517 TARGET_DEFAULT_RETURN.
8518
9409d39e
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8523 to_supports_string_tracing.
8524 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8525 TARGET_DEFAULT_RETURN.
8526
aab1b22d
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8531 to_supports_enable_disable_tracepoint.
8532 * target.h (struct target_ops)
8533 <to_supports_enable_disable_tracepoint>: Use
8534 TARGET_DEFAULT_RETURN.
8535
a7304748
TT
85362014-02-19 Tom Tromey <tromey@redhat.com>
8537
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_supports_multi_process.
8541 * target.h (struct target_ops) <to_supports_multi_process>: Use
8542 TARGET_DEFAULT_RETURN.
8543
4229b31d
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_get_ada_task_ptid.
8549 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8550 TARGET_DEFAULT_FUNC.
8551
43eba180
TT
85522014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_thread_architecture.
8557 * target.h (struct target_ops) <to_thread_architecture>: Use
8558 TARGET_DEFAULT_FUNC.
8559
fe31bf5b
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_execution_direction.
8565 * target.h (struct target_ops) <to_execution_direction>: Use
8566 TARGET_DEFAULT_FUNC.
8567
53e1cfc7
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_can_execute_reverse.
8573 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8574 TARGET_DEFAULT_RETURN.
8575 (target_can_execute_reverse): Unconditionally delegate.
8576
9bb9d61d
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_goto_bookmark.
8582 (dummy_goto_bookmark): Remove.
8583 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8584 * target.h (struct target_ops) <to_goto_bookmark>: Use
8585 TARGET_DEFAULT_NORETURN.
8586
3dbafbbb
TT
85872014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8591 to_get_bookmark.
8592 (dummy_get_bookmark): Remove.
8593 (init_dummy_target): Don't inherit or default to_get_bookmark.
8594 * target.h (struct target_ops) <to_get_bookmark>: Use
8595 TARGET_DEFAULT_NORETURN
8596
16f796b1
TT
85972014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_make_corefile_notes.
8602 (init_dummy_target): Don't initialize to_make_corefile_notes.
8603 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8604 TARGET_DEFAULT_FUNC.
8605
0b5a2719
TT
86062014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8610 to_find_memory_regions.
8611 (init_dummy_target): Don't initialize to_find_memory_regions.
8612 * target.h (struct target_ops) <to_find_memory_regions>: Use
8613 TARGET_DEFAULT_FUNC.
8614
d9cb0195
TT
86152014-02-19 Tom Tromey <tromey@redhat.com>
8616
8617 * target-delegates.c: Rebuild.
8618 * target.c (update_current_target): Don't inherit or default
8619 to_log_command.
8620 * target.h (struct target_ops) <to_log_command>: Use
8621 TARGET_DEFAULT_IGNORE.
8622 (target_log_command): Unconditionally delegate.
8623
830ca330
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8628 to_pid_to_exec_file.
8629 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8630 TARGET_DEFAULT_RETURN.
8631
825828fc
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8636 to_thread_name.
8637 (target_thread_name): Unconditionally delegate.
8638 * target.h (struct target_ops) <to_thread_name>: Use
8639 TARGET_DEFAULT_RETURN.
8640
4a7e6dda
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_extra_thread_info.
8646 * target.h (struct target_ops) <to_extra_thread_info>: Use
8647 TARGET_DEFAULT_RETURN.
8648
0db88c1d
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_has_exited.
8654 * target.h (struct target_ops) <to_has_exited>: Use
8655 TARGET_DEFAULT_RETURN..
8656
6a9fa051
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_set_syscall_catchpoint.
8662 (return_one): Remove.
8663 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8664 TARGET_DEFAULT_RETURN.
8665
62f64d7a
TT
86662014-02-19 Tom Tromey <tromey@redhat.com>
8667
8668 * target-delegates.c: Rebuild.
8669 * target.c (update_current_target): Don't inherit or default
8670 to_insert_exec_catchpoint.
8671 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8672 TARGET_DEFAULT_RETURN.
8673
cda0f38c
TT
86742014-01-08 Tom Tromey <tromey@redhat.com>
8675
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_insert_exec_catchpoint.
8679 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8680 TARGET_DEFAULT_RETURN.
8681
95c3375e
TT
86822014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target-delegates.c: Rebuild.
8685 * target.c (update_current_target): Don't inherit or default
8686 to_remove_vfork_catchpoint.
8687 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8688 TARGET_DEFAULT_RETURN.
8689
7e18a8dc
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target-delegates.c: Rebuild.
8693 * target.c (update_current_target): Don't inherit or default
8694 to_insert_vfork_catchpoint.
8695 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8696 TARGET_DEFAULT_RETURN.
8697
e1a21fb7
TT
86982014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_remove_fork_catchpoint.
8703 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8704 TARGET_DEFAULT_RETURN.
8705
5958ebeb
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_insert_fork_catchpoint.
8711 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8712 TARGET_DEFAULT_RETURN.
8713
340ba4bf
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_post_startup_inferior.
8719 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8720 TARGET_DEFAULT_IGNORE.
8721
7634da87
TT
87222014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_load.
8727 * target.h (struct target_ops) <to_load>: Use
8728 TARGET_DEFAULT_NORETURN.
8729
e19e919f
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8734 to_terminal_info.
8735 * target.h (struct target_ops) <to_terminal_info>: Use
8736 TARGET_DEFAULT_FUNC.
8737
c6ea8f79
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_terminal_save_ours.
8743 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8744 TARGET_DEFAULT_IGNORE.
8745
e4a733f1
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8750 to_terminal_ours.
8751 * target.h (struct target_ops) <to_terminal_ours>: Use
8752 TARGET_DEFAULT_IGNORE.
8753
74fcbef9
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_terminal_ours_for_output.
8759 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8760 TARGET_DEFAULT_IGNORE.
8761
ddeaacc9
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_terminal_inferior.
8767 * target.h (struct target_ops) <to_terminal_inferior>: Use
8768 TARGET_DEFAULT_IGNORE.
8769
0343661d
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_terminal_init.
8775 * target.h (struct target_ops) <to_terminal_init>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
77cdffe9
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_can_accel_watchpoint_condition.
8783 * target.h (struct target_ops)
8784 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8785
d03655e4
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_region_ok_for_hw_watchpoint.
8791 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8792 Use TARGET_DEFAULT_FUNC.
8793
65f160a9
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_watchpoint_addr_within_range.
8799 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8800 Use TARGET_DEFAULT_FUNC.
8801
61dd109f
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_remove_watchpoint.
8807 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8808 TARGET_DEFAULT_NORETURN.
8809
016facd4
TT
88102014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_insert_watchpoint.
8815 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8816 TARGET_DEFAULT_RETURN.
8817
418dabac
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target-delegates.c: Rebuild.
8821 * target.c (update_current_target): Don't inherit or default
8822 to_remove_hw_breakpoint.
8823 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8824 TARGET_DEFAULT_RETURN.
8825
61b371f9
TT
88262014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target-delegates.c: Rebuild.
8829 * target.c (update_current_target): Don't inherit or default
8830 to_insert_hw_breakpoint.
8831 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8832 TARGET_DEFAULT_RETURN.
8833
52b51d06
TT
88342014-02-19 Tom Tromey <tromey@redhat.com>
8835
8836 * target-delegates.c: Rebuild.
8837 * target.c (update_current_target): Don't inherit or default
8838 to_can_use_hw_breakpoint.
8839 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8840 TARGET_DEFAULT_RETURN.
8841
f86e59b2
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target-delegates.c: Rebuild.
8845 * target.c (update_current_target): Don't inherit or default
8846 to_files_info.
8847 * target.h (struct target_ops) <to_files_info>: Use
8848 TARGET_DEFAULT_IGNORE.
8849
6c628163
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8854 to_store.
8855 * target.h (struct target_ops) <to_store>: Use
8856 TARGET_DEFAULT_NORETURN.
8857
bebd3233
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (update_current_target): Don't inherit or default
8862 to_post_attach.
8863 * target.h (struct target_ops) <to_post_attach>: Use
8864 TARGET_DEFAULT_IGNORE.
8865
a53f3625
TT
88662014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8870 to_rcmd.
8871 (default_rcmd): New function.
8872 (do_monitor_command): Unconditionally delegate.
8873 * target.h (struct target_ops) <to_rmcd>: Use
8874 TARGET_DEFAULT_FUNC.
8875
e9a29200
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target-delegates.c: Rebuild.
8879 * target.c (init_dummy_target): Don't initialize to_attach.
8880 (target_attach): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_attach>: Use
8882 TARGET_DEFAULT_FUNC.
8883
09da0d0a
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target-delegates.c: Rebuild.
8887 * target.c (target_detach): Unconditionally delegate.
8888 (init_dummy_target): Don't initialize to_detach.
8889 * target.h (struct target_ops) <to_detach>: Use
8890 TARGET_DEFAULT_IGNORE.
8891
5436ff03
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8895 Add argument.
8896 (target_augmented_libraries_svr4_read): Add argument.
8897 * target.c (update_current_target): Update.
8898 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8899 argument.
8900
f0d960ea
TT
89012014-02-19 Tom Tromey <tromey@redhat.com>
8902
8903 * target.h (struct target_ops) <to_call_history_range>: Add
8904 argument.
8905 * target.c (target_call_history_range): Add argument.
8906 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8907 argument.
8908 (record_btrace_call_history_from): Update.
8909
ec0aea04
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target.h (struct target_ops) <to_call_history_from>: Add
8913 argument.
8914 * target.c (target_call_history_from): Add argument.
8915 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8916 argument.
8917
5df2fcba
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target.h (struct target_ops) <to_call_history>: Add argument.
8921 * target.c (target_call_history): Add argument.
8922 * record-btrace.c (record_btrace_call_history): Add 'self'
8923 argument.
8924
4e99c6b7
TT
89252014-02-19 Tom Tromey <tromey@redhat.com>
8926
8927 * target.h (struct target_ops) <to_insn_history_range>: Add
8928 argument.
8929 * target.c (target_insn_history_range): Add argument.
8930 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8931 argument.
8932 (record_btrace_insn_history_from): Update.
8933
9abc3ff3
TT
89342014-02-19 Tom Tromey <tromey@redhat.com>
8935
8936 * target.h (struct target_ops) <to_insn_history_from>: Add
8937 argument.
8938 * target.c (target_insn_history_from): Add argument.
8939 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8940 argument.
8941
7a6c5609
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_insn_history>: Add argument.
8945 * target.c (target_insn_history): Add argument.
8946 * record-btrace.c (record_btrace_insn_history): Add 'self'
8947 argument.
8948
606183ac
TT
89492014-02-19 Tom Tromey <tromey@redhat.com>
8950
8951 * target.h (struct target_ops) <to_goto_record>: Add argument.
8952 * target.c (target_goto_record): Add argument.
8953 * record-full.c (record_full_goto): Add 'self' argument.
8954 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8955
307a1b91
TT
89562014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8959 * target.c (target_goto_record_end): Add argument.
8960 * record-full.c (record_full_goto_end): Add 'self' argument.
8961 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8962
08475817
TT
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_goto_record_begin>: Add
8966 argument.
8967 * target.c (target_goto_record_begin): Add argument.
8968 * record-full.c (record_full_goto_begin): Add 'self' argument.
8969 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8970 argument.
8971
1c63c994
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_record_is_replaying>: Add
8975 argument.
8976 * target.c (target_record_is_replaying): Add argument.
8977 * record-full.c (record_full_is_replaying): Add 'self' argument.
8978 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8979 argument.
8980 (record_btrace_xfer_partial, record_btrace_store_registers)
8981 (record_btrace_prepare_to_store, record_btrace_resume)
8982 (record_btrace_wait, record_btrace_decr_pc_after_break)
8983 (record_btrace_find_new_threads, record_btrace_thread_alive):
8984 Update.
8985
d1b55219
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_delete_record>: Add argument.
8989 * target.c (target_delete_record): Add argument.
8990 * record-full.c (record_full_delete): Add 'self' argument.
8991
1390f529
TT
89922014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target.h (struct target_ops) <to_save_record>: Add argument.
8995 * target.c (target_save_record): Add argument.
8996 * record-full.c (record_full_save): Add 'self' argument.
8997 (record_full_save): Add 'self' argument.
8998
630d6a4a
TT
89992014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target.h (struct target_ops) <to_info_record>: Add argument.
9002 * target.c (target_info_record): Add argument.
9003 * record.c (info_record_command): Add argument.
9004 * record-full.c (record_full_info): Add 'self' argument.
9005 * record-btrace.c (record_btrace_info): Add 'self' argument.
9006
c6cd7c02
TT
90072014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9010 * target.c (target_stop_recording): Add argument.
9011 * record.c (record_stop): Add argument.
9012 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9013 argument.
9014
39c49f83
TT
90152014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9018 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9019 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9020 argument.
9021 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9022 (_initialize_amd64_linux_nat): Use it.
9023 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9024 (_initialize_i386_linux_nat): Use it.
9025
1777056d
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9029 * target.c (target_teardown_btrace): Add argument.
9030 * remote.c (remote_teardown_btrace): Add 'self' argument.
9031 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9032 argument.
9033 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9034 argument.
9035
25e95349
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9039 * target.c (target_disable_btrace): Add argument.
9040 * remote.c (remote_disable_btrace): Add 'self' argument.
9041 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9042 argument.
9043 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9044 argument.
9045
e3c49f88
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9049 * target.c (target_enable_btrace): Add argument.
9050 * remote.c (remote_enable_btrace): Add 'self' argument.
9051 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9052 argument.
9053 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9054 argument.
9055
fe38f897
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9059 (target_can_use_agent): Add argument.
9060 * target.c (update_current_target): Update.
9061 * remote.c (remote_can_use_agent): Add 'self' argument.
9062 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9063
2c152180
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target.h (struct target_ops) <to_use_agent>: Add argument.
9067 (target_use_agent): Add argument.
9068 * target.c (update_current_target): Update.
9069 * remote.c (remote_use_agent): Add 'self' argument.
9070 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9071
a893e81f
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9075 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9076 (target_traceframe_info): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_traceframe_info): Add 'self' argument.
9079 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9080
c686c57f
TT
90812014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (target_static_tracepoint_markers_by_strid): Add
9084 argument.
9085 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9086 'self' argument.
9087 * target.c (update_current_target): Update.
9088 * remote.c (struct target_ops)
9089 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9090 * linux-nat.c (struct target_ops)
9091 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9092
61fc905d
TT
90932014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9096 Add argument.
9097 (target_static_tracepoint_marker_at): Add argument.
9098 * target.c (update_current_target): Update.
9099 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9100 argument.
9101
c378d69d
TT
91022014-02-19 Tom Tromey <tromey@redhat.com>
9103
9104 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9105 (target_set_permissions): Add argument.
9106 * target.c (update_current_target): Update.
9107 * remote.c (remote_set_permissions): Add 'self' argument.
9108 (remote_start_remote): Update.
9109
bd7ae0f5
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9113 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9114 (target_get_tib_address): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_get_tib_address): Add 'self' argument.
9117
d9e68a2c
TT
91182014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9121 (target_set_trace_notes): Add argument.
9122 * target.c (update_current_target): Update.
9123 * remote.c (remote_set_trace_notes): Add 'self' argument.
9124
4da384be
TT
91252014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9128 argument.
9129 (target_set_trace_buffer_size): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9132
736d5b1f
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9136 argument.
9137 (target_set_circular_trace_buffer): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9140 argument.
9141
37b25738
TT
91422014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9145 argument.
9146 (target_set_disconnected_tracing): Add argument.
9147 * target.c (update_current_target): Update.
9148 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9149
0e67620a
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops)
9153 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9154 (target_get_min_fast_tracepoint_insn_len): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9157 argument.
9158
88ee6f45
TT
91592014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9162 argument.
9163 (target_get_raw_trace_data): Add argument.
9164 * target.c (update_current_target): Update.
9165 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9166
181e3713
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9170 Add argument.
9171 (target_upload_trace_state_variables): Add argument.
9172 * target.c (update_current_target): Update.
9173 * remote.c (remote_upload_trace_state_variables): Add 'self'
9174 argument.
9175 (remote_start_remote): Update.
9176
ab6617cc
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9180 argument.
9181 (target_upload_tracepoints): Add argument.
9182 * target.c (update_current_target): Update.
9183 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9184 (remote_start_remote): Update.
9185
dc3decaf
TT
91862014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9189 (target_save_trace_data): Add argument.
9190 * target.c (update_current_target): Update.
9191 * remote.c (remote_save_trace_data): Add 'self' argument.
9192
4011015b
TT
91932014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9196 argument.
9197 * target.h (struct target_ops)
9198 <to_get_trace_state_variable_value>: Add argument.
9199 (target_get_trace_state_variable_value): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9202 argument.
9203 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9204
bd4c6793
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9208 * target.h (struct target_ops) <to_trace_find>: Add argument.
9209 (target_trace_find): Add argument.
9210 * target.c (update_current_target): Update.
9211 * remote.c (remote_trace_find): Add 'self' argument.
9212 * ctf.c (ctf_trace_find): Add 'self' argument.
9213
74499f1b
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9217 (target_trace_stop): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_trace_stop): Add 'self' argument.
9220
db90e85c
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9224 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9225 argument.
9226 (target_get_tracepoint_status): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9229
8bd200f1
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9233 * target.h (struct target_ops) <to_get_trace_status>: Add
9234 argument.
9235 (target_get_trace_status): Add argument.
9236 * target.c (update_current_target): Update.
9237 * remote.c (remote_get_trace_status): Add 'self' argument.
9238 (remote_start_remote, remote_can_download_tracepoint): Update.
9239 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9240
e2d1aae3
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target.h (struct target_ops) <to_trace_start>: Add argument.
9244 (target_trace_start): Add argument.
9245 * target.c (update_current_target): Update.
9246 * remote.c (remote_trace_start): Add 'self' argument.
9247
583f9a86
TT
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9251 Add argument.
9252 (target_trace_set_readonly_regions): Add argument.
9253 * target.c (update_current_target): Update.
9254 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9255 argument.
9256
780b049c
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9260 argument.
9261 (target_disable_tracepoint): Add argument.
9262 * target.c (update_current_target): Update.
9263 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9264
46670d57
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9268 argument.
9269 (target_enable_tracepoint): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9272
559d2b81
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_download_trace_state_variable>:
9276 Add argument.
9277 (target_download_trace_state_variable): Add argument.
9278 * target.c (update_current_target): Update.
9279 * remote.c (remote_download_trace_state_variable): Add 'self'
9280 argument.
9281
a52a8357
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9285 argument.
9286 (target_can_download_tracepoint): Add argument.
9287 * target.c (update_current_target): Update.
9288 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9289
548f7808
TT
92902014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target.h (struct target_ops) <to_download_tracepoint>: Add
9293 argument.
9294 (target_download_tracepoint): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_download_tracepoint): Add 'self' argument.
9297
ecae04e1
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target.h (struct target_ops) <to_trace_init>: Add argument.
9301 (target_trace_init): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_trace_init): Add 'self' argument.
9304
fab5aa7c
TT
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9308 * target.c (target_fileio_readlink): Add argument.
9309 * remote.c (remote_hostio_readlink): Add 'self' argument.
9310 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9311
dbbca37d
TT
93122014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9315 * target.c (target_fileio_unlink): Add argument.
9316 * remote.c (remote_hostio_unlink): Add 'self' argument.
9317 (remote_file_delete): Update.
9318 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9319
df39ea25
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9323 * target.c (target_fileio_close): Add argument.
9324 * remote.c (remote_hostio_close): Add 'self' argument.
9325 (remote_hostio_close_cleanup): Update.
9326 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9327 Update.
9328 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9329
a3be983c
TT
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9333 * target.c (target_fileio_pread): Add argument.
9334 * remote.c (remote_hostio_pread): Add 'self' argument.
9335 (remote_bfd_iovec_pread, remote_file_get): Update.
9336 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9337
0d866f62
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9341 * target.c (target_fileio_pwrite): Add argument.
9342 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9343 (remote_file_put): Update.
9344 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9345
cd897586
TT
93462014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9349 * target.c (target_fileio_open): Add argument.
9350 * remote.c (remote_hostio_open): Add 'self' argument.
9351 (remote_bfd_iovec_open): Add 'self' argument.
9352 (remote_file_put): Add 'self' argument.
9353 (remote_file_get): Add 'self' argument.
9354 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9355
78eff0ec
TT
93562014-02-19 Tom Tromey <tromey@redhat.com>
9357
9358 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9359 Add argument.
9360 (target_can_run_breakpoint_commands): Add argument.
9361 * target.c (update_current_target): Update.
9362 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9363 argument.
9364 (remote_insert_breakpoint): Add 'self' argument.
9365 (remote_insert_hw_breakpoint): Add 'self' argument.
9366 (remote_can_run_breakpoint_commands): Add 'self' argument.
9367
efcc2da7
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops)
9371 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9372 (target_supports_evaluation_of_breakpoint_conditions): Add
9373 argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9376 argument.
9377 (remote_insert_breakpoint): Add 'self' argument.
9378 (remote_insert_hw_breakpoint): Add 'self' argument.
9379 (remote_supports_cond_breakpoints): Add 'self' argument.
9380
6de37a3a
TT
93812014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9384 argument.
9385 (target_supports_string_tracing): Add argument.
9386 * target.c (update_current_target): Update.
9387 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9388
2bfc0540
TT
93892014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target.h (struct target_ops)
9392 <to_supports_disable_randomization>: Add argument.
9393 * target.c (find_default_supports_disable_randomization): Add
9394 argument.
9395 (target_supports_disable_randomization): Add argument.
9396 (find_default_supports_disable_randomization): Add 'self'
9397 argument.
9398 * remote.c (extended_remote_supports_disable_randomization): Add
9399 'self' argument.
9400 (remote_supports_disable_randomization): Add 'self' argument.
9401 (extended_remote_create_inferior): Update.
9402 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9403 'self' argument.
9404
7d178d6a
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops)
9408 <to_supports_enable_disable_tracepoint>: Add argument.
9409 (target_supports_enable_disable_tracepoint): Add argument.
9410 * target.c (update_current_target): Update.
9411 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9412 argument.
9413
86ce2668
TT
94142014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target.h (struct target_ops) <to_supports_multi_process>: Add
9417 argument.
9418 (target_supports_multi_process): Add argument.
9419 * target.c (update_current_target): Update.
9420 * remote.c (remote_supports_multi_process): Add 'self' argument.
9421 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9422 argument.
9423 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9424 argument.
9425
4c612759
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_execution_direction>: Add
9429 argument.
9430 (target_execution_direction): Add argument.
9431 * target.c (default_execution_direction): Add 'self' argument.
9432 * record-full.c (record_full_execution_direction): Add 'self'
9433 argument.
9434
19db3e69
TT
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9438 argument.
9439 (target_can_execute_reverse): Add argument.
9440 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9441 * record-full.c (record_full_can_execute_reverse): Add 'self'
9442 argument.
9443 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9444 argument.
9445
1e6b91a4
TT
94462014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9449 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9450 argument.
9451 (target_get_ada_task_ptid): Add argument.
9452 * target.c (update_current_target): Update.
9453 (default_get_ada_task_ptid): Add 'self' argument.
9454 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9455 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9456 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9457 argument.
9458 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9459 argument.
9460 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9461 argument.
9462 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9463 argument.
9464 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9465 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9466 argument.
9467
3c80fb48
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9471 (target_goto_bookmark): Add argument.
9472 * target.c (dummy_goto_bookmark): Add 'self' argument.
9473 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9474
dd0e2830
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9478 (target_get_bookmark): Add argument.
9479 * target.c (dummy_get_bookmark): Add 'self' argument.
9480 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9481
fc6691b2
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9485 argument.
9486 (target_make_corefile_notes): Add argument.
9487 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9488 * procfs.c (procfs_make_note_section): Add 'self' argument.
9489 (procfs_make_note_section): Add 'self' argument.
9490 (procfs_make_note_section): Add 'self' argument.
9491 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9492 argument.
9493 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9494 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9495 * exec.c (exec_make_note_section): Add 'self' argument.
9496 (exec_make_note_section): Add 'self' argument.
9497
2e73927c
TT
94982014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * target.h (struct target_ops) <to_find_memory_regions>: Add
9501 argument.
9502 (target_find_memory_regions): Add argument.
9503 * target.c (dummy_find_memory_regions): Add 'self' argument.
9504 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9505 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9506 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9507 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9508 * exec. (exec_do_find_memory_regions): New global.
9509 (exec_set_find_memory_regions): Rewrite.
9510 (exec_find_memory_regions): New function.
9511 (init_exec_ops): Use exec_find_memory_regions.
9512
2a9a2795
TT
95132014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target.h (struct target_ops) <to_supports_non_stop>: Add
9516 argument.
9517 * target.c (find_default_supports_non_stop): Add argument.
9518 (target_supports_non_stop): Add argument.
9519 (find_default_supports_non_stop): Add 'self' argument.
9520 * remote.c (remote_supports_non_stop): Add 'self' argument.
9521 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9522
4ab76ea3
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target.h (struct target_ops) <to_log_command>: Add argument.
9526 (target_log_command): Add argument.
9527 * serial.h (serial_log_command): Add 'self' argument.
9528 * serial.c (serial_log_command): Add 'self' argument.
9529
8dd27370
TT
95302014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9533 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9534 argument.
9535 (target_pid_to_exec_file): Add argument.
9536 * target.c (debug_to_pid_to_exec_file): Add argument.
9537 (update_current_target): Update.
9538 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9539 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9540 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9541 (linux_handle_extended_wait): Update.
9542 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9543 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9544 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9545 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9546
1aac633b
TT
95472014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target.h (struct target_ops) <to_rcmd>: Add argument.
9550 (target_rcmd): Add argument.
9551 * target.c (debug_to_rcmd): Add argument.
9552 (update_current_target, do_monitor_command): Update.
9553 * remote.c (remote_rcmd): Add 'self' argument.
9554 * monitor.c (monitor_rcmd): Add 'self' argument.
9555
1eab8a48
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * windows-nat.c (windows_stop): Add 'self' argument.
9559 * target.h (struct target_ops) <to_stop>: Add argument.
9560 * target.c (target_stop): Add argument.
9561 (debug_to_stop): Add argument.
9562 (update_current_target): Update.
9563 * remote.c (remote_stop): Add 'self' argument.
9564 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9565 (gdbsim_cntrl_c): Update.
9566 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9567 * procfs.c (procfs_stop): Add 'self' argument.
9568 * nto-procfs.c (procfs_stop): Add 'self' argument.
9569 * monitor.c (monitor_stop): Add 'self' argument.
9570 (monitor_open): Update.
9571 * linux-nat.c (linux_nat_stop): Add argument.
9572 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9573 * gnu-nat.c (gnu_stop): Add 'self' argument.
9574 * darwin-nat.c (darwin_stop): Add 'self' argument.
9575
503a628d
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target.h (struct target_ops) <to_thread_name>: Add argument.
9579 * target.c (target_thread_name): Add argument.
9580 (update_current_target): Update.
9581 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9582
c15906d8
TT
95832014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target.h (struct target_ops) <to_extra_thread_info>: Add
9586 argument.
9587 (target_extra_thread_info): Add argument.
9588 * target.c (update_current_target): Update.
9589 * remote.c (remote_threads_extra_info): Add 'self' argument.
9590 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9591 argument.
9592 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9593 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9594 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9595 argument.
9596 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9597 argument.
9598 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9599 argument.
9600 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9601 argument.
9602
daf5e9b6
TT
96032014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_program_signals>: Add argument.
9606 * target.c (target_program_signals): Add argument.
9607 * remote.c (remote_program_signals): Add 'self' argument.
9608
94bedb42
TT
96092014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9612 * target.c (target_pass_signals): Add argument.
9613 * remote.c (remote_pass_signals): Add 'self' argument.
9614 (remote_start_remote): Update.
9615 * procfs.c (procfs_pass_signals): Add 'self' argument.
9616 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9617 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9618 (linux_nat_create_inferior, linux_nat_attach): Update.
9619
da82bd6b
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * windows-nat.c (windows_can_run): Add 'self' argument.
9623 * target.h (struct target_ops) <to_can_run>: Add argument.
9624 (target_can_run): Add argument.
9625 * target.c (debug_to_can_run): Add argument.
9626 (update_current_target): Update.
9627 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9628 * inf-child.c (inf_child_can_run): Add 'self' argument.
9629 * go32-nat.c (go32_can_run): Add 'self' argument.
9630
d796e1d6
TT
96312014-02-19 Tom Tromey <tromey@redhat.com>
9632
9633 * target.h (struct target_ops) <to_has_exited>: Add argument.
9634 (target_has_exited): Add argument.
9635 * target.c (debug_to_has_exited): Add argument.
9636 (update_current_target): Update.
9637
ff214e67
TT
96382014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9641 argument.
9642 (target_set_syscall_catchpoint): Add argument.
9643 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9644 argument.
9645 * target.c (update_current_target): Update.
9646
758e29d2
TT
96472014-02-19 Tom Tromey <tromey@redhat.com>
9648
9649 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9650 argument.
9651 (target_remove_exec_catchpoint): Add argument.
9652 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9653 (update_current_target): Update.
9654 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9655 argument.
9656
ba025e51
TT
96572014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9660 argument.
9661 (target_insert_exec_catchpoint): Add argument.
9662 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9663 (update_current_target): Update.
9664 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9665 argument.
9666
e98cf0cd
TT
96672014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9670 argument.
9671 (target_remove_vfork_catchpoint): Add argument.
9672 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9673 (update_current_target): Update.
9674 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9675 argument.
9676
3ecc7da0
TT
96772014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9680 argument.
9681 (target_insert_vfork_catchpoint): Add argument.
9682 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9683 (update_current_target): Update.
9684 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9685 argument.
9686
973fc227
TT
96872014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9690 argument.
9691 (target_remove_fork_catchpoint): Add argument.
9692 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9693 (update_current_target): Update.
9694 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9695 argument.
9696
a863b201
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9700 argument.
9701 (target_insert_fork_catchpoint): Add argument.
9702 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9703 (update_current_target): Update.
9704 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9705 argument.
9706
2e97a79e
TT
97072014-02-19 Tom Tromey <tromey@redhat.com>
9708
9709 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9710 argument.
9711 (target_post_startup_inferior): Add argument.
9712 * target.c (debug_to_post_startup_inferior): Add argument.
9713 (update_current_target): Update.
9714 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9715 argument.
9716 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9717 argument.
9718 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9719 argument.
9720 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9721 argument.
9722 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9723 'self' argument.
9724 (super_post_startup_inferior): Likewise.
9725 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9726 'self' argument.
9727 (super_post_startup_inferior): Likewise.
9728 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9729 Add 'self' argument.
9730 (super_post_startup_inferior): Likewise.
9731
71a9f134
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_load>: Add argument.
9735 * target.c (target_load): Add argument.
9736 (debug_to_load): Add argument.
9737 (update_current_target): Update.
9738 * remote.c (remote_load): Add 'self' argument.
9739 * remote-sim.c (gdbsim_load): Add 'self' argument.
9740 * remote-mips.c (mips_load): Add 'self' argument.
9741 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9742 * monitor.c (monitor_load): Add 'self' argument.
9743 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9744
0a4f40a2
TT
97452014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9748 (target_terminal_info): Add argument.
9749 * target.c (debug_to_terminal_info): Add argument.
9750 (default_terminal_info): Likewise.
9751 * inflow.c (child_terminal_info): Add 'self' argument.
9752 * inferior.h (child_terminal_info): Add 'self' argument.
9753 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9754
ae3bd431
TT
97552014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9758 argument.
9759 (target_terminal_save_ours): Add argument.
9760 * target.c (debug_to_terminal_save_ours): Add argument.
9761 (update_current_target): Update.
9762 * inflow.c (terminal_save_ours): Add 'self' argument.
9763 * inferior.h (terminal_save_ours): Add 'self' argument.
9764
e3594fd1
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9768 (target_terminal_ours): Add argument.
9769 * target.c (debug_to_terminal_ours): Add argument.
9770 (update_current_target): Update.
9771 * remote.c (remote_terminal_ours): Add 'self' argument.
9772 (remote_close): Update.
9773 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9774 * inflow.c (terminal_ours): Add 'self' argument.
9775 * inferior.h (terminal_ours): Add 'self' argument.
9776 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9777
2e1e1a19
TT
97782014-02-19 Pedro Alves <palves@redhat.com>
9779 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9782 argument.
9783 (target_terminal_ours_for_output): Add argument.
9784 * target.c (debug_to_terminal_ours_for_output): Add argument.
9785 (update_current_target): Update.
9786 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9787 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9788 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9789
d2f640d4
TT
97902014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target.h (struct target_ops) <to_terminal_inferior>: Add
9793 argument.
9794 * target.c (target_terminal_inferior): Add argument.
9795 (update_current_target): Update.
9796 * remote.c (remote_terminal_inferior): Add 'self' argument.
9797 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9798 * inflow.c (terminal_inferior): Add 'self' argument.
9799 * inferior.h (terminal_inferior): Add 'self' argument.
9800 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9801 (go32_terminal_inferior): Add 'self' argument.
9802
c42bf286
TT
98032014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9806 (target_terminal_init): Add argument.
9807 * target.c (debug_to_terminal_init): Add argument.
9808 (update_current_target): Update.
9809 * inflow.c (terminal_init_inferior): Add 'self' argument.
9810 * inferior.h (terminal_init_inferior): Add 'self' argument.
9811 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9812 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9813
c3a5ff89
TT
98142014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target.h (struct target_ops)
9817 <to_can_accel_watchpoint_condition>: Add argument.
9818 (target_can_accel_watchpoint_condition): Add argument.
9819 * target.c (debug_to_can_accel_watchpoint_condition): Add
9820 argument.
9821 (update_current_target): Update.
9822 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9823 'self' argument.
9824
31568a15
TT
98252014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9828 Add argument.
9829 (target_region_ok_for_hw_watchpoint): Add argument.
9830 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9831 (default_region_ok_for_hw_watchpoint): Add argument.
9832 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9833 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9834 argument.
9835 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9836 argument.
9837 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9838 argument.
9839 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9840 'self' argument.
9841 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9842 'self' argument.
9843 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9844 'self' argument.
9845 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9846 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9847 'self' argument.
9848 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9849 Add 'self' argument.
9850
7bb99c53
TT
98512014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9854 argument.
9855 (target_insert_watchpoint): Add argument.
9856 * target.c (debug_to_insert_watchpoint): Add argument.
9857 (update_current_target): Update.
9858 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9859 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9860 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9861 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9862 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9863 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9864 argument.
9865 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9866 (procfs_insert_hw_watchpoint): Add 'self' argument.
9867 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9868 argument.
9869 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9870 argument.
9871 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9872 argument.
9873 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9874 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9875 argument.
9876 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9877 'self' argument.
9878
11b5219a
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9882 argument.
9883 (target_remove_watchpoint): Add argument.
9884 * target.c (debug_to_remove_watchpoint): Add argument.
9885 (update_current_target): Update.
9886 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9887 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9888 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9889 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9890 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9891 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9892 argument.
9893 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9894 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9895 argument.
9896 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9897 argument.
9898 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9899 argument.
9900 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9901 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9902 argument.
9903 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9904 'self' argument.
9905
a64dc96c
TT
99062014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9909 argument.
9910 (target_remove_hw_breakpoint): Add argument.
9911 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9912 (update_current_target): Update.
9913 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9914 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9915 argument.
9916 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9917 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9918 argument.
9919 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9920 'self' argument.
9921
23a26771
TT
99222014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9925 argument.
9926 (target_insert_hw_breakpoint): Add argument.
9927 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9928 (update_current_target): Update.
9929 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9930 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9931 argument.
9932 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9933 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9934 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9935 argument.
9936 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9937 'self' argument.
9938
5461485a
TT
99392014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9942 argument.
9943 (target_can_use_hardware_watchpoint): Add argument.
9944 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9945 (update_current_target): Update.
9946 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9947 argument.
9948 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9949 argument.
9950 * remote.c (remote_check_watch_resources): Add 'self' argument.
9951 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9952 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9953 argument.
9954 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9955 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9956 argument.
9957 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9958 argument.
9959 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9960 argument.
9961 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9962 argument.
9963 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9964 argument.
9965 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9966 argument.
9967 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9968 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9969 argument.
9970 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9971 'self' argument.
9972
f045800c
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_post_attach>: Add argument.
9976 (target_post_attach): Add argument.
9977 * target.c (debug_to_post_attach): Add argument.
9978 (update_current_target): Update.
9979 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9980 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9981 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9982 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9983 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9984
de90e03d
TT
99852014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * windows-nat.c (windows_close): Add 'self' argument.
9988 * tracepoint.c (tfile_close): Add 'self' argument.
9989 * target.h (struct target_ops) <to_close>: Add argument.
9990 * target.c (target_close): Add argument.
9991 (update_current_target): Update.
9992 * remote.c (remote_close): Add 'self' argument.
9993 * remote-sim.c (gdbsim_close): Add 'self' argument.
9994 * remote-mips.c (mips_close): Add 'self' argument.
9995 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9996 * record-full.c (record_full_close): Add 'self' argument.
9997 * record-btrace.c (record_btrace_close): Add 'self' argument.
9998 * monitor.h (monitor_close): Add 'self' argument.
9999 * monitor.c (monitor_close): Add 'self' argument.
10000 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10001 * linux-nat.c (linux_nat_close): Add argument.
10002 * go32-nat.c (go32_close): Add 'self' argument.
10003 * exec.c (exec_close_1): Add 'self' argument.
10004 * ctf.c (ctf_close): Add 'self' argument.
10005 * corelow.c (core_close): Add 'self' argument.
10006 (core_close_cleanup): Update.
10007 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10008 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10009
9dd130a0
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * remote.c (remote_load): New function.
10013 (init_remote_ops): Use it.
10014
46917d26
TT
100152014-02-19 Tom Tromey <tromey@redhat.com>
10016
10017 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10018 argument.
10019 * common/linux-btrace.h (linux_supports_btrace): Update.
10020 * remote.c (remote_supports_btrace): Add "self" argument.
10021 * target-delegates.c: Rebuild.
10022 * target.c (target_supports_btrace): Remove.
10023 * target.h (struct target_ops) <to_supports_btrace>: Add
10024 target_ops argument.
10025 (target_supports_btrace): New define.
10026
6b84065d
TT
100272014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * record-full.c (record_full_beneath_to_resume_ops)
10030 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10031 (record_full_beneath_to_wait)
10032 (record_full_beneath_to_store_registers_ops)
10033 (record_full_beneath_to_store_registers)
10034 (record_full_beneath_to_xfer_partial_ops)
10035 (record_full_beneath_to_xfer_partial)
10036 (record_full_beneath_to_insert_breakpoint_ops)
10037 (record_full_beneath_to_insert_breakpoint)
10038 (record_full_beneath_to_remove_breakpoint_ops)
10039 (record_full_beneath_to_remove_breakpoint)
10040 (record_full_beneath_to_stopped_by_watchpoint)
10041 (record_full_beneath_to_stopped_data_address)
10042 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10043 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10044 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10045 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10046 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10047 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10048 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10049 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10050 (record_full_resume, record_full_wait_1)
10051 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10052 (record_full_store_registers, record_full_xfer_partial)
10053 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10054 (record_full_async, record_full_core_xfer_partial): Use target
10055 delegation.
10056 * target-delegates.c: Rebuild.
10057 * target.c (current_xfer_partial): Remove.
10058 (update_current_target): Do not INHERIT or de_fault
10059 to_insert_breakpoint, to_remove_breakpoint,
10060 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10061 to_is_async_p, to_async. Do not set to_xfer_partial field.
10062 (default_xfer_partial): Simplify.
10063 (current_xfer_partial): Remove.
10064 (target_wait, target_resume): Simplify.
10065 (find_default_can_async_p, find_default_is_async_p): Update.
10066 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10067 to_xfer_partial, to_stopped_by_watchpoint,
10068 to_stopped_data_address.
10069 (target_store_registers): Simplify.
10070 (forward_target_remove_breakpoint)
10071 (forward_target_insert_breakpoint): Remove.
10072 (target_remove_breakpoint, target_insert_breakpoint)
10073 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10074 * target.h (struct target_ops) <to_resume, to_wait,
10075 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10076 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10077 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10078 markup.
10079 (forward_target_remove_breakpoint)
10080 (forward_target_insert_breakpoint): Remove.
10081 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10082 directly.
10083 (record_btrace_insert_breakpoint): Delegate directly.
10084
1101cb7b
TT
100852014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 PR build/7701:
10088 * target-delegates.c: New file.
10089 * target.c: Include target-delegates.c.
10090 (init_dummy_target): Call install_dummy_methods.
10091 (complete_target_initialization): Call install_delegators.
10092 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10093 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10094 * make-target-delegates: New file.
10095
8b06beed
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * record.c (find_record_target): Use find_target_at.
10099 * target.c (find_target_at): New function.
10100 * target.h (find_target_at): Declare.
10101
6a109b6b
TT
101022014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10105 Add 'ops' argument.
10106 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10107 'ops' argument.
10108 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10109 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10110 'ops' argument.
10111 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10112 argument.
10113 * linux-nat.c (save_sigtrap): Update.
10114 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10115 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10116 (linux_nat_close): Update.
10117 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10118 argument.
10119 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10120 argument.
10121 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10122 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10123 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10124 (tmp_to_async): Add 'ops' argument.
10125 (record_full_stopped_by_watchpoint, record_full_async)
10126 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10127 argument.
10128 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10129 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10130 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10131 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10132 (remote_is_async_p, remote_async): Add 'ops' argument.
10133 (remote_stopped_data_address): Update.
10134 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10135 * target.c (update_current_target)
10136 (find_default_can_async_p, find_default_is_async_p): Update.
10137 (init_dummy_target): Update.
10138 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10139 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10140 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10141 (target_can_async_p, target_is_async_p, target_async)
10142 (target_stopped_by_watchpoint): Update.
10143
e095146b
YQ
101442014-02-19 Yao Qi <yao@codesourcery.com>
10145
10146 PR gdb/16220
10147 * gdbarch.sh: Remove startup_gdbarch.
10148 * gdbarch.c: Regenerated.
10149 * gdbarch.h: Likewise.
10150
bc3c6b36
KB
101512014-02-17 Kevin Buettner <kevinb@redhat.com>
10152
10153 * rl78-tdep.c (rl78_g10_register_name): New function.
10154 (rl78_return_value): Add g10 support.
10155 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10156 g10.
10157
98dc0167 101582014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10159
10160 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10161 (SUBDIR_GUILE_SRCS): Ditto.
10162 (scm-gsmob.o): Ditto.
10163
842c05cd
YQ
101642014-02-17 Yao Qi <yao@codesourcery.com>
10165
10166 * gnu-nat.c (ILL_RPC): Declare defined function.
10167
25c0bd04
YQ
101682014-02-17 Yao Qi <yao@codesourcery.com>
10169
10170 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10171 mach_msg_type_number_t.
10172 (gnu_write_inferior): Likewise.
10173
a9a758e3
YQ
101742014-02-17 Yao Qi <yao@codesourcery.com>
10175
10176 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10177 in format string.
10178 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10179 (inf_validate_procs, inf_signal): Likewise.
10180 (S_exception_raise_request): Likewise.
10181 (do_mach_notify_dead_name): Likewise.
10182 (steal_exc_port): Likewise.
10183 (gnu_read_inferior): Change 'copy_count''s type to
10184 mach_msg_type_number_t.
10185 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10186 format string.
10187
bae8023e
TS
101882014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10189
c82f56d9
TS
10190 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10191 flag. Adjust all users; in particular...
10192 (gnu_wait): ..., don't decrement its value in here...
10193 (gnu_create_inferior): ..., and instead set the flag in here,
10194 around the startup_inferior call, and call that one with
10195 START_INFERIOR_TRAPS_EXPECTED.
10196
3398af6a
TS
10197 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10198 (ILL_RPC): ... new macro.
10199 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10200 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10201 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10202 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10203 functions with ILL_RPC macro.
10204 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10205 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10206 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10207 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10208 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10209 (S_proc_getlogin_reply, S_proc_getsid_reply)
10210 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10211 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10212 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10213 (S_proc_getnports_reply, S_proc_is_important_reply)
10214 (S_proc_get_code_reply): New stub functions, generated with
10215 ILL_RPC macro.
10216
d47642c9
TS
10217 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10218 collected the type check structures.
10219
bae8023e
TS
10220 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10221
8a55ffb0
DE
102222014-02-14 Doug Evans <dje@google.com>
10223
10224 * target.c (target_write_partial): Fix result type.
10225
c2853f3d
JM
102262014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10227
10228 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10229 the proper offsets to access fpregset_t.
10230
ac61d2db
SA
102312014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10232
10233 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10234 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10235 * h8300-tdep.c (setmachinelist): Remove global.
10236 * hppa-tdep.c (hppa_sigtramp): Remove global.
10237 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10238 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10239 * ravenscar-thread.c (update_target_observer): Remove global.
10240 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10241
9d2d0b8b
TT
102422014-02-12 Tom Tromey <tromey@redhat.com>
10243
10244 * common/rsp-low.c: Update comments.
10245 * common/rsp-low.h: Update comments.
10246
a7191e8b
TT
102472014-02-12 Tom Tromey <tromey@redhat.com>
10248
10249 * common/rsp-low.c (convert_ascii_to_int): Remove.
10250 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10251
ff0e980e
TT
102522014-02-12 Tom Tromey <tromey@redhat.com>
10253
10254 * common/rsp-low.h (unhexify): Don't declare.
10255 * common/rsp-low.c (unhexify): Remove.
10256
e9371aff
TT
102572014-02-12 Tom Tromey <tromey@redhat.com>
10258
10259 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10260 * common/rsp-low.c (convert_int_to_ascii): Remove.
10261
971dc0b8
TT
102622014-02-12 Tom Tromey <tromey@redhat.com>
10263
10264 * common/rsp-low.h (hexify): Don't declare.
10265 * common/rsp-low.c (hexify): Remove.
10266
0a822afb
TT
102672014-02-12 Tom Tromey <tromey@redhat.com>
10268
10269 * common/rsp-low.c (hexify): Never take strlen of argument.
10270
9f1b45b0
TT
102712014-02-12 Tom Tromey <tromey@redhat.com>
10272
10273 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10274 * remote.c (extended_remote_run, remote_rcmd)
10275 (remote_download_trace_state_variable, remote_save_trace_data)
10276 (remote_set_trace_notes): Update.
10277 * tracepoint.c (encode_source_string, tfile_write_status)
10278 (tfile_write_uploaded_tsv): Update.
10279
9c3d6531
TT
102802014-02-12 Tom Tromey <tromey@redhat.com>
10281
10282 * tracepoint.c: Include rsp-low.h.
10283 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10284 * remote.c: Include rsp-low.h.
10285 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10286 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10287 (remote_unescape_input): Move to common/rsp-low.c.
10288 * common/rsp-low.h: New file.
10289 * common/rsp-low.c: New file.
10290 * Makefile.in (SFILES): Add common/rsp-low.c.
10291 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10292 (COMMON_OBS): Add rsp-low.o.
10293 (rsp-low.o): New target.
10294
01fd3ea5
TT
102952014-02-12 Tom Tromey <tromey@redhat.com>
10296
10297 * utils.h: Include print-utils.h.
10298 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10299 (int_string, core_addr_to_string, core_addr_to_string_nz)
10300 (hex_string, hex_string_custom): Don't declare.
10301 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10302 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10303 (hex_string_custom, int_string, core_addr_to_string)
10304 (core_addr_to_string_nz, host_address_to_string): Move to
10305 common/print-utils.c.
10306 * common/print-utils.h: New file.
10307 * common/print-utils.c: New file
10308 * Makefile.in (SFILES): Add common/print-utils.c.
10309 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10310 (COMMON_OBS): Add print-utils.o.
10311 (print-utils.o): New target.
10312
9fb50108
TT
103132014-02-12 Tom Tromey <tromey@redhat.com>
10314
10315 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10316
0548b5db
MK
103172014-02-12 Mark Kettenis <kettenis@gnu.org>
10318
10319 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10320
493443a4
MK
103212014-02-12 Mark Kettenis <kettenis@gnu.org>
10322
10323 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10324 if a PT_IO ptrace request returns sucessfully but indicates that 0
10325 bytes were transferred.
10326
706d0883
PA
103272014-02-12 Pedro Alves <palves@redhat.com>
10328 Kevin Buettner <kevinb@redhat.com>
10329
10330 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10331 TYPE_INSTANCE_FLAG_CODE_SPACE.
10332
5caa2f0b
PA
103332014-02-12 Pedro Alves <palves@redhat.com>
10334
10335 * h8300-tdep.c (pseudo_from_raw_register)
10336 (raw_from_pseudo_register): New functions.
10337 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10338 them.
10339
76fd5f74
PA
103402014-02-12 Pedro Alves <palves@redhat.com>
10341
10342 * h8300-tdep.c (h8300_register_sim_regno): New function.
10343 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10344 gdbarch_register_sim_regno hook.
10345
8f008406
SA
103462014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10347
10348 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10349
195abc10
SA
103502014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10351
10352 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10353
93ffa5b9
MK
103542014-02-12 Mark Kettenis <kettenis@gnu.org>
10355
10356 * obsd-tdep.h (obsd_init_abi): New prototype.
10357 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10358 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10359 (obsd_init_abi): New functions.
10360 * i386obsd-tdep.c: Include "obsd-tdep.h".
10361 (i386obsd_init_abi): Call obsd_init_abi.
10362 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10363 (amd64obsd_init_abi): Call obsd_init_abi.
10364 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10365 obsd-tdep.c to gdb_target_obs.
10366
49caec94
JM
103672014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10368
10369 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10370 double float arguments to 16-byte in the argument slots.
10371
e1402065
DE
103722014-02-11 Doug Evans <xdje42@gmail.com>
10373
10374 * configure.ac: Don't crash if pkg-config is not found and guile
10375 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10376 in guile checks.
10377 * configure: Regenerate.
10378
edcc890f
YQ
103792014-02-11 Yao Qi <yao@codesourcery.com>
10380
10381 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10382 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10383 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10384 * gnu-nat.c (gnu_xfer_memory): Likewise.
10385 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10386 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10387 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10388 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10389
9b409511
YQ
103902014-02-11 Yao Qi <yao@codesourcery.com>
10391
10392 * target.h (enum target_xfer_error): Rename to ...
10393 (enum target_xfer_status): ... it. New. All users updated.
10394 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10395 New.
10396 (TARGET_XFER_STATUS_ERROR_P): New macro.
10397 (target_xfer_error_to_string): Remove declaration.
10398 (target_xfer_status_to_string): Declare.
10399 (target_xfer_partial_ftype): Adjust it.
10400 (struct target_ops) <to_xfer_partial>: Return
10401 target_xfer_status. Add argument xfered_len. Update
10402 comments.
10403 * target.c (target_xfer_error_to_string): Rename to ...
10404 (target_xfer_status_to_string): ... it. New. All callers
10405 updated.
10406 (target_read_live_memory): Likewise. Call target_xfer_partial
10407 instead of target_read.
10408 (memory_xfer_live_readonly_partial): Return
10409 target_xfer_status. Add argument xfered_len.
10410 (raw_memory_xfer_partial): Likewise.
10411 (memory_xfer_partial_1): Likewise.
10412 (memory_xfer_partial): Likewise.
10413 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10414 properly. Update debug message.
10415 (default_xfer_partial, current_xfer_partial): Likewise.
10416 (target_write_partial): Likewise.
10417 (target_read_partial): Likewise. All callers updated.
10418 (read_whatever_is_readable): Likewise.
10419 (target_write_with_progress): Likewise.
10420 (target_read_alloc_1): Likewise.
10421
10422 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10423 * auxv.c (procfs_xfer_auxv): Likewise.
10424 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10425 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10426 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10427 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10428 * corefile.c (read_memory): Adjust.
10429 * corelow.c (core_xfer_partial): Likewise.
10430 * ctf.c (ctf_xfer_partial): Likewise.
10431 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10432 updated.
10433 (darwin_xfer_partial): Likewise.
10434 * exec.c (section_table_xfer_memory_partial): Likewise. All
10435 callers updated.
10436 (exec_xfer_partial): Likewise.
10437 * exec.h (section_table_xfer_memory_partial): Update
10438 declaration.
10439 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10440 negative.
10441 (gnu_xfer_partial): Likewise.
10442 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10443 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10444 (ia64_hpux_xfer_solib_got): Likewise.
10445 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10446 type of 'partial_len' to ULONGEST.
10447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10448 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10449 (linux_nat_xfer_partial): Likewise.
10450 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10451 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10452 * monitor.c (monitor_xfer_memory): Likewise.
10453 (monitor_xfer_partial): Likewise.
10454 * procfs.c (procfs_xfer_partial): Likewise.
10455 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10456 * record-full.c (record_full_xfer_partial): Likewise.
10457 (record_full_core_xfer_partial): Likewise.
10458 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10459 (gdbsim_xfer_partial): Likewise.
10460 * remote.c (remote_write_bytes_aux): Likewise. All callers
10461 updated.
10462 (remote_write_bytes, remote_read_bytes): Likewise. All
10463 callers updated.
10464 (remote_flash_erase): Likewise. All callers updated.
10465 (remote_write_qxfer): Likewise. All callers updated.
10466 (remote_read_qxfer): Likewise. All callers updated.
10467 (remote_xfer_partial): Likewise.
10468 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10469 (rs6000_xfer_shared_libraries): Likewise.
10470 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10471 (sol_thread_xfer_partial): Likewise.
10472 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10473 (sparc_xfer_partial): Likewise.
10474 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10475 updated.
10476 (spu_xfer_partial): Likewise.
10477 * spu-multiarch.c (spu_xfer_partial): Likewise.
10478 * tracepoint.c (tfile_xfer_partial): Likewise.
10479 * windows-nat.c (windows_xfer_memory): Likewise.
10480 (windows_xfer_shared_libraries): Likewise.
10481 (windows_xfer_partial): Likewise.
10482 * valprint.c: Replace 'target_xfer_error' with
10483 'target_xfer_status' in comments.
10484
a8e63083
JB
104852014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10486
10487 Checked in by Joel Brobecker <brobecker@adacore.com>.
10488 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10489
e86b67d3
JB
104902014-02-11 Joel Brobecker <brobecker@adacore.com>
10491
10492 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10493 function parameters.
10494
4b7d1f7f
WN
104952014-02-10 Will Newton <will.newton@linaro.org>
10496
10497 * elfread.c (elf_rel_plt_read): Look for a .got section if
10498 looking up .got.plt fails.
10499 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10500 on address passed to elf_gnu_ifunc_record_cache.
10501 (elf_gnu_ifunc_resolve_addr): Likewise.
10502 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10503
961842b2
JM
105042014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10505
10506 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10507 (X_RETTURN): New macro.
10508 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10509
10510 * sparc64-tdep.c (sparc64_init_abi): Hook
10511 sparc_in_function_epilogue_p.
10512
3f03e7b1
GB
105132014-02-10 Gary Benson <gbenson@redhat.com>
10514
10515 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10516 Rename name_matcher to symbol_matcher.
10517
96f861ef
GB
105182014-02-10 Gary Benson <gbenson@redhat.com>
10519
10520 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10521 Use expand_symtabs_file_matcher_ftype and
10522 expand_symtabs_symbol_matcher_ftype.
10523
ee01b665
JB
105242014-02-10 Joel Brobecker <brobecker@adacore.com>
10525
10526 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10527 (struct ada_symbol_cache): New.
10528 (ada_free_symbol_cache): Forward declare.
10529 (struct ada_pspace_data): New.
10530 (ada_pspace_data_handle): New static global.
10531 (get_ada_pspace_data, ada_pspace_data_cleanup)
10532 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10533 (cache_space, cache): Delete, now folded inside struct
10534 ada_pspace_data.
10535 (ada_get_symbol_cache): New function.
10536 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10537 implementation.
10538 (_initialize_ada_language): Remove initialization of cache_space.
10539 Move call to observer_attach_inferior_exit up, grouping it
10540 with the other observer registrations inside this function.
10541 Rename command to be more general. Add call to
10542 register_program_space_data_with_cleanup.
10543
143adbbf
JB
105442014-02-10 Joel Brobecker <brobecker@adacore.com>
10545
10546 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10547 ada_new_objfile_observer.
10548 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10549 (_initialize_tasks): Update uses of ada_new_objfile_observer
10550 and ada_tasks_normal_stop_observer.
10551
aa4fb036
JB
105522014-02-10 Joel Brobecker <brobecker@adacore.com>
10553
10554 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10555 returned by the 'Length attribute to integer.
10556
9dee8cc6
JB
105572014-02-10 Joel Brobecker <brobecker@adacore.com>
10558
10559 * ada-lang.c (_initialize_ada_language): Initialize
10560 cache_space obstack.
10561
3d9434b5
JB
105622014-02-10 Joel Brobecker <brobecker@adacore.com>
10563
10564 * ada-lang.c (HASH_SIZE): New macro.
10565 (struct cache_entry): New type.
10566 (cache_space, cache): New static globals.
10567 (ada_clear_symbol_cache, find_entry): New functions.
10568 (lookup_cached_symbol, cache_symbol): Implement.
10569 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10570 (_initialize_ada_language): Attach ada_new_objfile_observer
10571 and ada_free_objfile_observer.
10572
f0c5f9b2
JB
105732014-02-10 Joel Brobecker <brobecker@adacore.com>
10574
10575 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10576 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10577 struct block * parameter.
10578 (ada_lookup_symbol_list_worker): Constify local variable "block".
10579 Remove cast which is no longer necessary.
10580
ed3ef339
DE
105812014-02-10 Doug Evans <xdje42@gmail.com>
10582
10583 Add Guile as an extension language.
10584 * NEWS: Mention Guile scripting.
10585 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10586 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10587 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10588 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10589 (CLIBS): Add GUILE_LIBS.
10590 (install-guile): New rule.
10591 (guile.o): New rule.
10592 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10593 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10594 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10595 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10596 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10597 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10598 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10599 * configure.ac: New option --with-guile.
10600 * configure: Regenerate.
10601 * config.in: Regenerate.
10602 * auto-load.c: Remove #include "python/python.h". Add #include
10603 "gdb/section-scripts.h".
10604 (source_section_scripts): Handle Guile scripts.
10605 (_initialize_auto_load): Add name of Guile objfile script to
10606 scripts-directory help text.
10607 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10608 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10609 (struct breakpoint): New member scm_bp_object.
10610 * defs.h (enum command_control_type): New value guile_control.
10611 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10612 "extension.h".
10613 (show_user): Update comment.
10614 (_initialize_cli_cmds): Update help text for "show user". Update help
10615 text for max-user-call-depth.
10616 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10617 "extension.h".
10618 (multi_line_command_p): Add guile_control.
10619 (print_command_lines): Handle guile_control.
10620 (execute_control_command, recurse_read_control_structure): Ditto.
10621 (process_next_line): Recognize "guile" commands.
10622 * disasm.c (gdb_disassemble_info): Make non-static.
10623 * disasm.h: #include "dis-asm.h".
10624 (struct gdbarch): Add forward decl.
10625 (gdb_disassemble_info): Declare.
10626 * extension.c: #include "guile/guile.h".
10627 (extension_languages): Add guile.
10628 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10629 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10630 * gdbtypes.c (get_unsigned_type_max): New function.
10631 (get_signed_type_minmax): New function.
10632 * gdbtypes.h (get_unsigned_type_max): Declare.
10633 (get_signed_type_minmax): Declare.
10634 * guile/README: New file.
10635 * guile/guile-internal.h: New file.
10636 * guile/guile.c: New file.
10637 * guile/guile.h: New file.
10638 * guile/scm-arch.c: New file.
10639 * guile/scm-auto-load.c: New file.
10640 * guile/scm-block.c: New file.
10641 * guile/scm-breakpoint.c: New file.
10642 * guile/scm-disasm.c: New file.
10643 * guile/scm-exception.c: New file.
10644 * guile/scm-frame.c: New file.
10645 * guile/scm-gsmob.c: New file.
10646 * guile/scm-iterator.c: New file.
10647 * guile/scm-lazy-string.c: New file.
10648 * guile/scm-math.c: New file.
10649 * guile/scm-objfile.c: New file.
10650 * guile/scm-ports.c: New file.
10651 * guile/scm-pretty-print.c: New file.
10652 * guile/scm-safe-call.c: New file.
10653 * guile/scm-string.c: New file.
10654 * guile/scm-symbol.c: New file.
10655 * guile/scm-symtab.c: New file.
10656 * guile/scm-type.c: New file.
10657 * guile/scm-utils.c: New file.
10658 * guile/scm-value.c: New file.
10659 * guile/lib/gdb.scm: New file.
10660 * guile/lib/gdb/boot.scm: New file.
10661 * guile/lib/gdb/experimental.scm: New file.
10662 * guile/lib/gdb/init.scm: New file.
10663 * guile/lib/gdb/iterator.scm: New file.
10664 * guile/lib/gdb/printing.scm: New file.
10665 * guile/lib/gdb/types.scm: New file.
10666 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10667 (VPATH): Add $(GUILE_SRCDIR).
10668 (GUILE_DIR): New variable.
10669 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10670 (all): Add stamp-guile dependency.
10671 (stamp-guile): New rule.
10672 (clean-guile, install-guile, uninstall-guile): New rules.
10673 (install-only): Add install-guile dependency.
10674 (uninstall): Add uninstall-guile dependency.
10675 (clean): Add clean-guile dependency.
10676
ac020ec5
DE
106772014-02-09 Doug Evans <xdje42@gmail.com>
10678
10679 Revert this patch (which I approved, mea culpa).
10680
10681 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10682
10683 * Makefile.in (all-lib): Remove.
10684 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10685
2a081c59
JK
106862014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 Fix Python stack corruption.
10689 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10690 gdb_py_longest.
10691
0a6bd22d
MK
106922014-02-08 Mark Kettenis <kettenis@gnu.org>
10693
10694 * Makefile.in (all-lib): Remove.
10695 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10696
1a860409
DE
106972014-02-07 Doug Evans <dje@google.com>
10698
10699 * extension-priv.h (extension_language_script_ops): Add comment.
10700 (extension_language_ops): Add comment.
caf5a491 10701 (active_ext_lang_state): Fix typo in comment.
1a860409 10702
d137e6dc
PA
107032014-02-07 Pedro Alves <palves@redhat.com>
10704
0dcb32c3 10705 PR breakpoints/16292
d137e6dc
PA
10706 * infrun.c (handle_signal_stop) <signal arrives while stepping
10707 over a breakpoint>: Switch back to the stepping thread.
10708
ce6d0892
YQ
107092014-02-07 Yao Qi <yao@codesourcery.com>
10710
10711 * target.c (target_xfer_partial): Return zero if LEN is zero.
10712
2ed4b548
YQ
107132014-02-07 Yao Qi <yao@codesourcery.com>
10714
10715 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10716 (ld_so_xfer_auxv): Likewise.
10717 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10718 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10719 * corelow.c (core_xfer_partial): Likewise.
10720 * ctf.c (ctf_xfer_partial): Likewise.
10721 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10722 (darwin_xfer_partial): Likewise.
10723 * exec.c (exec_xfer_partial): Likewise.
10724 * gnu-nat.c (gnu_xfer_partial): Likewise.
10725 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10726 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10727 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10728 * linux-nat.c (linux_xfer_siginfo): Likewise.
10729 (linux_proc_xfer_spu): Likewise.
10730 * procfs.c (procfs_xfer_partial): Likewise.
10731 * record-full.c (record_full_xfer_partial): Likewise.
10732 (record_full_core_xfer_partial): Likewise.
10733 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10734 * remote.c (remote_write_qxfer): Likewise.
10735 (remote_write_qxfer, remote_read_qxfer): Likewise.
10736 (remote_xfer_partial): Likewise.
10737 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10738 (rs6000_xfer_shared_libraries): Likewise.
10739 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10740 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10741 (spu_xfer_partial): Likewise.
10742 * target.c (memory_xfer_partial_1): Likewise.
10743 * tracepoint.c (tfile_xfer_partial): Likewise.
10744 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10745 (windows_xfer_partial): Likewise.
10746
c09f20e4
YQ
107472014-02-07 Yao Qi <yao@codesourcery.com>
10748
10749 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10750 comments.
10751 (core_xfer_shared_libraries_aix): Likewise.
10752 * gdbarch.c, gdbarch.h: Regenerated.
10753 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10754 ULONGEST. Change 'len_avail' type to ULONGEST.
10755 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10756 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10757 declaration.
10758 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10759
8635b3bf
YQ
107602014-02-07 Yao Qi <yao@codesourcery.com>
10761
10762 * corefile.c (memory_error): Get 'exception' from ERR and pass
10763 'exception' to throw_error.
10764
6dddc817
DE
107652014-02-06 Doug Evans <xdje42@gmail.com>
10766
10767 * configure.ac (libpython checking): Remove all but python.o from
10768 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10769 * configure: Regenerate.
10770
10771 * Makefile.in (SFILES): Add extension.c.
10772 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10773 (COMMON_OBS): Add extension.o.
10774 * extension.h: New file.
10775 * extension-priv.h: New file.
10776 * extension.c: New file.
10777
10778 * python/python-internal.h: #include "extension.h".
10779 (gdbpy_auto_load_enabled): Declare.
10780 (gdbpy_apply_val_pretty_printer): Declare.
10781 (gdbpy_apply_frame_filter): Declare.
10782 (gdbpy_preserve_values): Declare.
10783 (gdbpy_breakpoint_cond_says_stop): Declare.
10784 (gdbpy_breakpoint_has_cond): Declare.
10785 (void source_python_script_for_objfile): Delete.
10786 * python/python.c: #include "extension-priv.h".
10787 Delete inclusion of "observer.h".
10788 (extension_language_python): Moved here and renamed from
10789 script_language_python in py-auto-load.c.
10790 Redefined to be of type extension_language_defn.
10791 (python_extension_script_ops): New global.
10792 (python_extension_ops): New global.
10793 (struct python_env): New member previous_active.
10794 (restore_python_env): Call restore_active_ext_lang.
10795 (ensure_python_env): Call set_active_ext_lang.
10796 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10797 New arg extlang.
10798 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10799 New arg extlang.
10800 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10801 New arg extlang.
10802 (gdbpy_eval_from_control_command): Renamed from
10803 eval_python_from_control_command, made static. New arg extlang.
10804 (gdbpy_source_script) Renamed from source_python_script, made static.
10805 New arg extlang.
10806 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10807 result to int. New arg extlang.
10808 (gdbpy_source_objfile_script): Renamed from
10809 source_python_script_for_objfile, made static. New arg extlang.
10810 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10811 static. New args extlang, extlang_printers. Change result type to
10812 "void".
10813 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10814 static. New arg extlang. Rename arg printers to extlang_printers
10815 and change type to ext_lang_type_printers *.
10816 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10817 static. Replace argument arg with extlang, extlang_printers.
10818 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10819 (!HAVE_PYTHON, source_python_script): Delete.
10820 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10821 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10822 (!HAVE_PYTHON, start_type_printers): Delete.
10823 (!HAVE_PYTHON, apply_type_printers): Delete.
10824 (!HAVE_PYTHON, free_type_printers): Delete.
10825 (_initialize_python): Delete call to observer_attach_before_prompt.
10826 (finalize_python): Set/restore active extension language.
10827 (gdbpy_finish_initialization) Renamed from
10828 finish_python_initialization, made static. New arg extlang.
10829 (gdbpy_initialized): New function.
10830 * python/python.h: #include "extension.h". Delete #include
10831 "value.h", "mi/mi-cmds.h".
10832 (extension_language_python): Declare.
10833 (GDBPY_AUTO_FILE_NAME): Delete.
10834 (enum py_bt_status): Moved to extension.h and renamed to
10835 ext_lang_bt_status.
10836 (enum frame_filter_flags): Moved to extension.h.
10837 (enum py_frame_args): Moved to extension.h and renamed to
10838 ext_lang_frame_args.
10839 (finish_python_initialization): Delete.
10840 (eval_python_from_control_command): Delete.
10841 (source_python_script): Delete.
10842 (apply_val_pretty_printer): Delete.
10843 (apply_frame_filter): Delete.
10844 (preserve_python_values): Delete.
10845 (gdbpy_script_language_defn): Delete.
10846 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10847 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10848
10849 * auto-load.c: #include "extension.h".
10850 (GDB_AUTO_FILE_NAME): Delete.
10851 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10852 (script_language_gdb): Delete, moved to extension.c and renamed to
10853 extension_language_gdb.
10854 (source_gdb_script_for_objfile): Delete.
10855 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10856 (loaded_script): Change type of language member to
10857 struct extension_language_defn *.
10858 (init_loaded_scripts_info): Initialize
10859 unsupported_script_warning_printed.
10860 (maybe_add_script): Make static. Change type of language arg to
10861 struct extension_language_defn *.
10862 (clear_section_scripts): Reset unsupported_script_warning_printed.
10863 (auto_load_objfile_script_1): Rewrite to use extension language API.
10864 (auto_load_objfile_script): Make public. Remove support-compiled-in
10865 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10866 (source_section_scripts): Rewrite to use extension language API.
10867 (load_auto_scripts_for_objfile): Rewrite to use
10868 auto_load_scripts_for_objfile.
10869 (collect_matching_scripts_data): Change type of language member to
10870 struct extension_language_defn *.
10871 (auto_load_info_scripts): Change type of language arg to
10872 struct extension_language_defn *.
10873 (unsupported_script_warning_print): New function.
10874 (script_not_found_warning_print): Make static.
10875 (_initialize_auto_load): Rewrite construction of scripts-directory
10876 help.
10877 * auto-load.h (struct objfile): Add forward decl.
10878 (struct script_language): Delete.
10879 (struct auto_load_pspace_info): Add forward decl.
10880 (struct extension_language_defn): Add forward decl.
10881 (maybe_add_script): Delete.
10882 (auto_load_objfile_script): Declare.
10883 (script_not_found_warning_print): Delete.
10884 (auto_load_info_scripts): Update prototype.
10885 (auto_load_gdb_scripts_enabled): Declare.
10886 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10887 auto_load_python_scripts_enabled and made public.
10888 (script_language_python): Delete, moved to python.c.
10889 (gdbpy_script_language_defn): Delete.
10890 (info_auto_load_python_scripts): Update to use
10891 extension_language_python.
10892
10893 * breakpoint.c (condition_command): Replace call to
10894 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10895 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10896 with call to breakpoint_ext_lang_cond_says_stop.
10897 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10898 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10899 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10900 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10901 New arg slang.
10902 (local_setattro): Print name of extension language with existing
10903 stop condition.
10904
10905 * valprint.c (val_print, value_print): Update to call
10906 apply_ext_lang_val_pretty_printer.
10907 * cp-valprint.c (cp_print_value): Update call to
10908 apply_ext_lang_val_pretty_printer.
10909 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10910 (gdbpy_apply_val_pretty_printer): Renamed from
10911 apply_val_pretty_printer. New arg extlang.
10912 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10913
10914 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10915 extension language API.
10916 * cli/cli-script.c (execute_control_command): Update to call
10917 eval_ext_lang_from_control_command.
10918
10919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10920 enum ext_lang_bt_status values. Update call to
10921 apply_ext_lang_frame_filter.
10922 (mi_cmd_stack_list_locals): Ditto.
10923 (mi_cmd_stack_list_args): Ditto.
10924 (mi_cmd_stack_list_variables): Ditto.
10925 * mi/mi-main.c: Delete #include "python/python-internal.h".
10926 Add #include "extension.h".
10927 (mi_cmd_list_features): Replace reference to python internal variable
10928 gdb_python_initialized with call to ext_lang_initialized_p.
10929
10930 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10931 Update to use enum ext_lang_frame_args. Update to call
10932 apply_ext_lang_frame_filter.
10933 * python/py-framefilter.c (extract_sym): Update to use enum
10934 ext_lang_bt_status.
10935 (extract_value, py_print_type, py_print_value): Ditto.
10936 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10937 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10938 (py_print_frame): Ditto.
10939 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10940 New arg extlang. Update to use enum ext_lang_bt_status.
10941
10942 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10943 finish_python_initialization. Replace with call to
10944 finish_ext_lang_initialization.
10945
10946 * typeprint.c (do_free_global_table): Update to call
10947 free_ext_lang_type_printers.
10948 (create_global_typedef_table): Update to call
10949 start_ext_lang_type_printers.
10950 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10951 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10952 (type_print_options): Change type of global_printers from "void *"
10953 to "struct ext_lang_type_printers *".
10954
10955 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10956 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10957 (gdbpy_preserve_values): Renamed from preserve_python_values.
10958 New arg extlang.
10959 (!HAVE_PYTHON, preserve_python_values): Delete.
10960
10961 * utils.c (quit_flag): Delete, moved to extension.c.
10962 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10963 extension.c.
10964
10965 * eval.c: Delete #include "python/python.h".
10966 * main.c: Delete #include "python/python.h".
10967
10968 * defs.h: Update comment.
10969
6af79985
JB
109702014-02-06 Joel Brobecker <brobecker@adacore.com>
10971
10972 GDB 7.7 released.
10973
12c5175d
MK
109742014-02-05 Mark Kettenis <kettenis@gnu.org>
10975
10976 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10977 defined.
10978
8dc5b319
YQ
109792014-02-05 Yao Qi <yao@codesourcery.com>
10980
10981 * remote.c (remote_pass_signals): Remove local 'buf' and use
10982 rs->buf.
10983 (remote_program_signals): Likewise.
10984
de7b2893
YQ
109852014-02-05 Yao Qi <yao@codesourcery.com>
10986
10987 * ctf.c: Include "inferior.h" and "gdbthread.h".
10988 (CTF_PID): A new macro.
10989 (ctf_open): Call inferior_appeared and add_thread_silent.
10990 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10991 (ctf_thread_alive): New function.
10992 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10993
66d032ac
YQ
109942014-02-05 Yao Qi <yao@codesourcery.com>
10995
10996 Revert this patch:
10997
10998 2013-05-24 Yao Qi <yao@codesourcery.com>
10999
11000 * tracepoint.c (TFILE_PID): Remove.
11001 (tfile_open): Don't add thread and inferior.
11002 (tfile_close): Don't set 'inferior_ptid'. Don't call
11003 exit_inferior_silent.
11004 (tfile_thread_alive): Remove.
11005 (init_tfile_ops): Don't set field 'to_thread_alive' of
11006 tfile_ops.
11007
f4ccffad
CE
110082014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11009
11010 * remote.c (remote_start_remote): Call remote_check_symbols even
11011 if only symbol-file (not file) has been given.
11012
591a12a1
UW
110132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11014
11015 * gdbarch.sh (skip_entrypoint): New callback.
11016 * gdbarch.c, gdbarch.h: Regenerate.
11017 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11018 * infrun.c (fill_in_stop_func): Likewise.
11019 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11020 (ppc_elfv2_elf_make_msymbol_special): New function.
11021 (ppc_elfv2_skip_entrypoint): Likewise.
11022 (ppc_linux_init_abi): Install them for ELFv2.
11023
cc0e89c5
UW
110242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11025
11026 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11027 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11028 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11029 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11030 structures returned in GPRs.
11031
52f548e4
UW
110322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11033
11034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11035 offset to the stack parameter list for the ELFv2 ABI.
11036
d4094b6a
UW
110372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11038
11039 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11040 set_gdbarch_convert_from_func_ptr_addr and
11041 set_gdbarch_elf_make_msymbol_special for ELFv1.
11042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11043 function descriptors on ELFv1.
11044 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11045 set up r12 at function entry.
11046
cd453cd0
UW
110472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11048
11049 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11050 (struct gdbarch_tdep): New member elf_abi.
11051
11052 * rs6000-tdep.c: Include "elf/ppc64.h".
11053 (rs6000_gdbarch_init): Detect ELF ABI version.
11054
0ff3e01f
UW
110552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11056
11057 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11058 within a register pair holding a DFP 128-bit value on little-endian.
11059 (ppc64_sysv_abi_return_value_base): Likewise.
11060 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11061 (dfp_pseudo_register_write): Likewise.
11062
5b757e5d
UW
110632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11064
11065 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11066 offset on little-endian when passing _Decimal32.
11067 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11068
084ee545
UW
110692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11070
11071 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11072 of the overlapped FP register within the VSX register on little-
11073 endian platforms.
11074 (efpr_pseudo_register_write): Likewise.
11075
d63167af
UW
110762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11077
11078 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11079 offset on little-endian when passing small structures.
11080
e765b44c
UW
110812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11082
11083 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11084 (struct ppc64_sysv_argpos): New data structure.
11085 (ppc64_sysv_abi_push_float): Remove.
11086 (ppc64_sysv_abi_push_val): New function.
11087 (ppc64_sysv_abi_push_integer): Likewise.
11088 (ppc64_sysv_abi_push_freg): Likewise.
11089 (ppc64_sysv_abi_push_vreg): Likewise.
11090 (ppc64_sysv_abi_push_param): Likewise.
11091 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11092 (ppc64_sysv_abi_return_value_base): New function.
11093 (ppc64_sysv_abi_return_value): Refactor to use it.
11094
36c24d95
UW
110952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11096
11097 * NEWS: Document new target powerpc64le-*-linux*.
11098
26fd9228
MK
110992014-02-04 Mark Kettenis <kettenis@gnu.org>
11100
11101 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11102 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11103 core dumps.
11104 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11105 register set used in ELF core dumps. Add floating-point register set.
11106
c5bb7362
KB
111072014-02-03 Kevin Buettner <kevinb@redhat.com>
11108
74228e77 11109 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11110 dwarf2_to_gdb[] table using symbolic constants. Adjust
11111 penultimate entry from number representing the PC register
11112 to symbolic constant representing the MDR register. Add
11113 constant for the PC register to the end of the table.
11114
af09351e
MK
111152014-02-03 Mark Kettenis <kettenis@gnu.org>
11116
11117 * bsd-kvm.c: Include <sys/param.h>
11118
8507e05d
MK
111192014-02-03 Mark Kettenis <kettenis@gnu.org>
11120
11121 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11122
ae56bfb8
JB
111232014-01-31 Joel Brobecker <brobecker@adacore.com>
11124
11125 * ada-lang.h (clear_ada_sym_cache): Delete.
11126
718ee4dc
UW
111272014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11128
11129 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11130
401e27fd
JM
111312014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11132
11133 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11134 the sigreturn register save area only if the syscall is
11135 sigreturn.
11136
a7c88acd
JB
111372014-01-29 Joel Brobecker <brobecker@adacore.com>
11138
11139 * valops.c (value_slice): Minor reformatting.
11140
fa0079ea
UW
111412014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11142
11143 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11144
c6044dd1
JB
111452014-01-28 Joel Brobecker <brobecker@adacore.com>
11146
11147 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11148 New static globals.
11149 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11150 (ada_ignore_descriptive_types_p): New static global.
11151 (find_parallel_type_by_descriptive_type): Return immediately
11152 if ada_ignore_descriptive_types_p is set.
11153 (_initialize_ada_language): Register new commands "maintenance
11154 set ada", "maintenance show ada", "maintenance set ada
11155 ignore-descriptive-types" and "maintenance show ada
11156 ignore-descriptive-types".
11157 * NEWS: Add entry for new "maint ada set/show
11158 ignore-descriptive-types" commands.
11159
568e808b
MM
111602014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11161
11162 * record-btrace.c (record_btrace_close): Call btrace_teardown
11163 for all threads.
11164
467d141b
JB
111652014-01-27 Joel Brobecker <brobecker@adacore.com>
11166
11167 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11168 "ui-out.h".
11169
fb151210
JB
111702014-01-27 Joel Brobecker <brobecker@adacore.com>
11171
11172 * ada-typeprint (type_is_full_subrange_of_target_type):
11173 New function.
11174 (print_range): Add parameter bounds_prefered_p. If not set,
11175 try printing range types using the name of their base type.
11176 (print_range_type): Add parameter bounds_prefered_p.
11177 Use it in call to print_range.
11178 (print_array_type, ada_print_type): Update calls to print_range
11179 and print_range_type.
11180
aba02109
JB
111812014-01-27 Joel Brobecker <brobecker@adacore.com>
11182
11183 * ada-typeprint.c (print_array_type, print_choices, print_range)
11184 (print_range_bound, print_dynamic_range_bound, print_range_type):
11185 Remove declaration.
11186
e62e21fd
JB
111872014-01-27 Joel Brobecker <brobecker@adacore.com>
11188
11189 * ada-typeprint.c (print_range): Add missing empty line
11190 after local declaration.
11191
859cf5d1
JB
111922014-01-27 Joel Brobecker <brobecker@adacore.com>
11193
11194 * ada-valprint.c (print_optional_low_bound): Get index_type's
11195 target type for as long as it is a TYPE_CODE_RANGE.
11196
25790f6f
JB
111972014-01-27 Joel Brobecker <brobecker@adacore.com>
11198
11199 * procfs.c (procfs_make_note_section): Remove assertion and
11200 associated comment.
11201
6b6aa828
YQ
112022014-01-24 Yao Qi <yao@codesourcery.com>
11203
11204 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11205 * corelow.c (get_core_siginfo): Likewise.
11206
5d6df423
YQ
112072014-01-24 Yao Qi <yao@codesourcery.com>
11208
11209 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11210 ULONGEST. Don't check 'len' is negative.
11211 (remote_write_bytes): Change type of 'len' to ULONGEST.
11212
83b645b8
TT
112132014-01-23 Tom Tromey <tromey@redhat.com>
11214
11215 PR python/16485:
11216 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11217 Handle exception from frame.block.
11218 (FrameVars.fetch_frame_locals): Likewise.
11219
0740f8d8
TT
112202014-01-23 Tom Tromey <tromey@redhat.com>
11221
11222 PR python/16487:
11223 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11224 on a NULL pointer. Move "goto error" to correct place.
11225
21909fa1
TT
112262014-01-23 Tom Tromey <tromey@redhat.com>
11227
11228 PR python/16491:
11229 * python/py-framefilter.c (apply_frame_filter): Call
11230 ensure_python_env after computing gdbarch.
11231
17fde6d0
YQ
112322014-01-23 Yao Qi <yao@codesourcery.com>
11233
11234 * target.c (raw_memory_xfer_partial): Change argument type
11235 from void * to gdb_byte *.
11236 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11237
87ce2a04
DE
112382014-01-22 Doug Evans <dje@google.com>
11239
11240 New gdbserver option --debug-format=timestamp.
11241 * NEWS: Mention it.
11242
237b092b
AA
112432014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11244
11245 * syscalls/s390x-linux.xml: New file.
11246 * syscalls/s390-linux.xml: New file.
11247 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11248 (XML_SYSCALL_FILENAME_S390X): Likewise.
11249 (op_svc): New enum value for SVC opcode.
11250 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11251 (s390_linux_get_syscall_number): New function.
11252 (s390_gdbarch_init): Register '*get_syscall_number' and the
11253 syscall xml file name.
11254 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11255 "s390-linux.xml" and "s390x-linux.xml".
11256 * NEWS: Announce new feature.
11257
54bff650
BS
112582014-01-22 Baruch Siach <baruch@tkos.co.il>
11259
11260 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11261
14e361d7
PA
112622014-01-22 Pedro Alves <palves@redhat.com>
11263
11264 * xtensa-config.c: Include defs.h.
11265
46bbb3ed
JB
112662014-01-22 Joel Brobecker <brobecker@adacore.com>
11267
11268 * common/common-utils.h: Add "ARI:" comment beside __func__
11269 reference.
11270
3a80edfc
JB
112712014-01-22 Joel Brobecker <brobecker@adacore.com>
11272
11273 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11274 documentation a bit.
11275
4869db5e
RM
112762014-01-21 Roland McGrath <mcgrathr@google.com>
11277
11278 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11279 * configure: Regenerate.
11280 * aclocal.m4: Regenerate.
11281 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11282 New substituted variables.
11283 (install-strip): New target.
11284 (INSTALL_SCRIPT): New substituted variable.
11285 (FLAGS_TO_PASS): Add it.
11286 (install-only): Use $(INSTALL_SCRIPT) rather than
11287 $(INSTALL_PROGRAM) for gcore.
11288
9ea4267d
TT
112892014-01-20 Tom Tromey <tromey@redhat.com>
11290
11291 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11292 together.
11293
1f2bdf09
TT
112942014-01-20 Tom Tromey <tromey@redhat.com>
11295
11296 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11297 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11298 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11299 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11300 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11301 (struct cmd_list_element) <flags>: Remove.
11302 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11303 doc_allocated>: New fields.
11304 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11305 bitfields.
11306 * maint.c (maintenance_do_deprecate): Update.
11307 * top.c (execute_command): Update.
11308
e671835b
BS
113092014-01-20 Baruch Siach <baruch@tkos.co.il>
11310
11311 * xtensa-linux-nat.c: Include asm/ptrace.h.
11312
50367cd2
IB
113132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11314
11315 * Makefile.in (SFILES): Add d-support.c.
11316 (COMMON_OBS): Add d-support.o.
11317 * d-lang.h (d_parse_symbol): Add comment, now defined in
11318 d-support.c.
11319 * d-lang.c (parse_call_convention)
11320 (parse_attributes, parse_function_types)
11321 (parse_function_args, parse_type, parse_identifier)
11322 (call_convention_p, d_parse_symbol): Move functions to ...
11323 * d-support.c: ... New file.
11324
ec9f644a
IB
113252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11326
11327 * d-lang.h (d_parse_symbol): Add declaration.
11328 * d-lang.c (extract_identifiers)
11329 (extract_type_info): Remove functions.
11330 (parse_call_convention, parse_attributes)
11331 (parse_function_types, parse_function_args)
11332 (parse_type, parse_identifier, call_convention_p)
11333 (d_parse_symbol): New functions.
11334 (d_demangle): Use d_parse_symbol to demangle D symbols.
11335
94b1b47e
IB
113362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11337
11338 * d-lang.h (struct builtin_d_type): New data type.
11339 (builtin_d_type): Add declaration.
11340 * d-lang.c (d_language_arch_info, build_d_types)
11341 (builtin_d_type): New functions.
11342 (enum d_primitive_types): New data type.
11343 (d_language_defn): Change c_language_arch_info to
11344 d_language_arch_info.
11345 (d_type_data): New static variable.
11346 (_initialize_d_language): Initialize d_type_data.
11347
63778547
IB
113482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11349
11350 * d-lang.h (d_main_name): Add declaration.
11351 * d-lang.c (d_main_name): New function.
11352 * symtab.c (find_main_name): Add call to d_main_name.
11353
3271ba66
IB
113542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11355
11356 * d-lang.c (d_language_defn): Change macro_expansion_c to
11357 macro_expansion_no.
11358
d36b3012
IB
113592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11360
11361 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11362
c90a6fb7
SDJ
113632014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11364
11365 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11366 gdb_exception" declaration.
11367 * remote.c (getpkt_or_notif_sane): Likewise.
11368
749234e5
DE
113692014-01-17 Doug Evans <dje@google.com>
11370
11371 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11372 function, contents of dirnames_to_char_ptr_vec_append moved here.
11373 (delim_string_to_char_ptr_vec): New function.
11374 (dirnames_to_char_ptr_vec_append): Rewrite.
11375 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11376
df049a58
DE
113772014-01-17 Doug Evans <dje@google.com>
11378
11379 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11380 and moved here ...
11381 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11382 #include "common-utils.h".
11383 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11384 * common/vec.h (VEC_ASSERT_PASS): Update.
11385 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11386 (MACH_CHECK_ERROR): Update.
11387
69f97648
SM
113882014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11389
11390 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11391 comments.
11392 * gdbarch.h: Regenerate.
11393
98b1cfdc
TT
113942014-01-16 Tom Tromey <tromey@redhat.com>
11395
11396 * value.c (struct value) <regnum>: Move earlier.
11397
77a19445
TT
113982014-01-16 Tom Tromey <tromey@redhat.com>
11399
11400 * remote.c (extended_remote_create_inferior): Rename from
11401 extended_remote_create_inferior_1. Add "ops" argument. Remove
11402 old implementation.
11403
62261490
PA
114042014-01-16 Pedro Alves <palves@redhat.com>
11405
11406 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11407 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11408 the backchain.
11409
4d65956b
DE
114102014-01-16 Doug Evans <dje@google.com>
11411
11412 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11413
52834460
MM
114142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11415
11416 * btrace.h (btrace_thread_flag): New.
11417 (struct btrace_thread_info) <flags>: New.
11418 * record-btrace.c (record_btrace_resume_thread)
11419 (record_btrace_find_thread_to_move, btrace_step_no_history)
11420 (btrace_step_stopped, record_btrace_start_replaying)
11421 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11422 (record_btrace_find_resume_thread): New.
11423 (record_btrace_resume, record_btrace_wait): Extend.
11424 (record_btrace_can_execute_reverse): New.
11425 (record_btrace_open): Fail in non-stop mode.
11426 (record_btrace_set_replay): Split into this, ...
11427 (record_btrace_stop_replaying): ... this, ...
11428 (record_btrace_clear_histories): ... and this.
11429 (init_record_btrace_ops): Init to_can_execute_reverse.
11430 * NEWS: Announce it.
11431
118e6252
MM
114322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11433
11434 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11435 (forward_target_decr_pc_after_break)
11436 (target_decr_pc_after_break): New.
11437 * target.c (forward_target_decr_pc_after_break)
11438 (target_decr_pc_after_break): New.
11439 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11440 instead of gdbarch_decr_pc_after_break.
11441 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11442 instead of gdbarch_decr_pc_after_break.
11443 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11444 instead of gdbarch_decr_pc_after_break.
11445 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11446 instead of gdbarch_decr_pc_after_break.
11447 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11448 instead of gdbarch_decr_pc_after_break.
11449 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11450 instead of gdbarch_decr_pc_after_break.
11451
6e07b1d2
MM
114522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11453
11454 * btrace.c: Include regcache.h.
11455 (btrace_add_pc): New.
11456 (btrace_enable): Call btrace_add_pc.
11457 (btrace_is_empty): New.
11458 * btrace.h (btrace_is_empty): New.
11459 * record-btrace.c (require_btrace, record_btrace_info): Call
11460 btrace_is_empty.
11461
969c39fb
MM
114622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11463
11464 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11465 Support delta reads.
11466 (linux_disable_btrace): Change return type.
11467 * common/linux-btrace.h (linux_read_btrace): Change parameters
11468 and return type to allow error reporting. Update users.
11469 (linux_disable_btrace): Change return type. Update users.
11470 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11471 New.
11472 (btrace_error): New.
11473 (btrace_block) <begin>: Comment on BEGIN == 0.
11474 * btrace.c (btrace_compute_ftrace): Start from the end of
11475 the current trace.
11476 (btrace_stitch_trace, btrace_clear_history): New.
11477 (btrace_fetch): Read delta trace, return if replaying.
11478 (btrace_clear): Move clear history code to btrace_clear_history.
11479 (parse_xml_btrace): Throw an error if parsing failed.
11480 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11481 and return type to allow error reporting.
11482 (target_read_btrace): Change parameters and return type to allow
11483 error reporting.
11484 * target.c (target_read_btrace): Update.
11485 * remote.c (remote_read_btrace): Support delta reads. Pass
11486 errors on.
11487 * NEWS: Announce it.
11488
0b722aec
MM
114892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11490
11491 * record.h (record_btrace_frame_unwind)
11492 (record_btrace_tailcall_frame_unwind): New declarations.
11493 * dwarf2-frame: Include record.h
11494 (dwarf2_frame_cfa): Throw an error for btrace frames.
11495 * record-btrace.c: Include hashtab.h.
11496 (btrace_get_bfun_name): New.
11497 (btrace_call_history): Call btrace_get_bfun_name.
11498 (struct btrace_frame_cache): New.
11499 (bfcache): New.
11500 (bfcache_hash, bfcache_eq, bfcache_new): New.
11501 (btrace_get_frame_function): New.
11502 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11503 (record_btrace_frame_this_id): Compute own id.
11504 (record_btrace_frame_prev_register): Provide PC, throw_error
11505 for all other registers.
11506 (record_btrace_frame_sniffer): Detect btrace frames.
11507 (record_btrace_tailcall_frame_sniffer): New.
11508 (record_btrace_frame_dealloc_cache): New.
11509 (record_btrace_frame_unwind): Add new functions.
11510 (record_btrace_tailcall_frame_unwind): New.
11511 (_initialize_record_btrace): Allocate cache.
11512 * btrace.c (btrace_clear): Call reinit_frame_cache.
11513 * NEWS: Announce it.
11514
066ce621
MM
115152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11516
11517 * record-btrace.c (record_btrace_set_replay)
11518 (record_btrace_goto_begin, record_btrace_goto_end)
11519 (record_btrace_goto): New.
11520 (init_record_btrace_ops): Initialize them.
11521 * NEWS: Announce it.
11522
e2887aa3
MM
115232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524
11525 * record-btrace.c (record_btrace_find_new_threads)
11526 (record_btrace_thread_alive): New.
11527 (init_record_btrace_ops): Initialize to_find_new_threads and
11528 to_thread_alive.
11529
b2f4cfde
MM
115302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11531
11532 * record-btrace.c (record_btrace_resume): New.
11533 (record_btrace_wait): New.
11534 (init_record_btrace_ops): Initialize to_wait and to_resume.
11535
633785ff
MM
115362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11537
11538 * record-btrace.c (record_btrace_xfer_partial)
11539 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11540 (record_btrace_allow_memory_access): New.
11541 (init_record_btrace_ops): Initialize new methods.
11542 * target.c (raw_memory_xfer_partial): Bail out if target reports
11543 that this memory is not available.
11544
3db08215
MM
115452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11546
11547 * target.h (target_ops) <to_insert_breakpoint>
11548 <to_remove_breakpoint>: Add target_ops parameter.
11549 (forward_target_insert_breakpoint): New.
11550 (forward_target_remove_breakpoint): New.
11551 (memory_remove_breakpoint, memory_insert_breakpoint):
11552 Add target_ops parameter.
11553 * target.c (target_insert_breakpoint): Split into this and ...
11554 (forward_target_insert_breakpoint): ... this.
11555 (target_remove_breakpoint): Split into this and ...
11556 (forward_target_remove_breakpoint): ... this.
11557 (debug_to_insert_breakpoint): Add target_ops parameter.
11558 Call forward_target_insert_breakpoint.
11559 (debug_to_remove_breakpoint): Add target_ops parameter.
11560 Call forward_target_remove_breakpoint.
11561 (update_current_target): Do not inherit or default to_insert_breakpoint
11562 and to_remove_breakpoint.
11563 * corelow.c (ignore): Add target_ops parameter.
11564 * exec.c (ignore): Add target_ops parameter.
11565 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11566 Add target_ops parameter.
11567 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11568 Add target_ops parameter.
11569 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11570 Add target_ops parameter.
11571 * record-full.c (record_full_beneath_to_insert_breakpoint)
11572 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11573 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11574 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11575 (record_full_core_remove_breakpoint): Add target_ops parameter.
11576 Update users.
11577 (record_full_beneath_to_insert_breakpoint_ops)
11578 (record_full_beneath_to_remove_breakpoint_ops)
11579 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11580 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11581 tmp_to_remove_breakpoint_ops,
11582 record_full_beneath_to_insert_breakpoint_ops, and
11583 record_full_beneath_to_remove_breakpoint_ops.
11584 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11585 (m32r_remove_breakpoint): Add target_ops parameter.
11586 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11587 Add target_ops parameter.
11588 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11589 Add target_ops parameter.
11590
cecac1ab
MM
115912014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11592 Markus Metzger <markus.t.metzger@intel.com>
11593
11594 * record-btrace.c: Include frame-unwind.h.
11595 (record_btrace_frame_unwind_stop_reason)
11596 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11597 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11598 New.
11599 (init_record_btrace_ops): Install it.
11600
824344ca
MM
116012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11602
11603 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11604 get_prev_frame_1.
11605
32261e52
MM
116062014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11607
11608 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11609 earlier.
11610
ea001bdc
MM
116112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11612
11613 * frame-unwind.c: Include target.h.
11614 (frame_unwind_try_unwinder): New function with code from ...
11615 (frame_unwind_find_by_frame): ... here. New variable
11616 unwinder_from_target, call also target_get_unwinder)
11617 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11618 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11619 * target.h (struct target_ops): New fields to_get_unwinder and
11620 to_get_tailcall_unwinder.
11621 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11622
1f3ef581
MM
116232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11624
11625 * record-btrace.c (record_btrace_fetch_registers)
11626 (record_btrace_store_registers)
11627 (record_btrace_to_prepare_to_store): New.
11628 (init_record_btrace_ops): Add the above.
11629
f32dbf8c
MM
116302014-01-16 Tom Tromey <tromey@redhat.com>
11631
11632 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11633 * target.h (struct target_ops) <to_prepare_to_store>: Add
11634 argument.
11635 (target_prepare_to_store): Add argument.
11636 * target.c (debug_to_prepare_to_store): Add argument.
11637 (update_current_target): Update.
11638 * remote.c (remote_prepare_to_store): Add 'self' argument.
11639 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11640 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11641 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11642 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11643 argument.
11644 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11645 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11646 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11647 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11648 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11649
07bbe694
MM
116502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11651
11652 * btrace.h (replay) <replay>: New.
11653 (btrace_is_replaying): New.
11654 * btrace.c (btrace_clear): Free replay iterator.
11655 (btrace_is_replaying): New.
11656 * record-btrace.c (record_btrace_is_replaying): New.
11657 (record_btrace_info): Print insn number if replaying.
11658 (record_btrace_insn_history): Start at replay position.
11659 (record_btrace_call_history): Start at replay position.
11660 (init_record_btrace_ops): Init to_record_is_replaying.
11661
0688d04e
MM
116622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11663
11664 * record-btrace.c (record_btrace_insn_history_range): Include
11665 end.
11666 (record_btrace_insn_history_from): Adjust range.
11667 (record_btrace_call_history_range): Include
11668 end.
11669 (record_btrace_call_history_from): Adjust range.
11670 * NEWS: Announce changes.
11671
8710b709
MM
116722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11673
11674 * record.h (enum record_print_flag)
11675 <record_print_indent_calls>: New.
11676 * record.c (get_call_history_modifiers): Recognize /c modifier.
11677 (_initialize_record): Document /c modifier.
11678 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11679 Reorder fields. Optionally indent the function name. Update
11680 all users.
11681 * NEWS: Announce changes.
11682
d0fa7535
MM
116832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11684
11685 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11686
5de9129b
MM
116872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11688
11689 * btrace.c (ftrace_new_function): Start counting at one.
11690 * record-btrace.c (record_btrace_info): Adjust number of calls
11691 and insns.
11692 * NEWS: Announce it.
11693
7acbe133
MM
116942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11695
11696 * record-btrace.c (btrace_call_history_insn_range): Print
11697 insn range as [begin, end].
11698
23a7fe75
MM
116992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11700
11701 * btrace.h (struct btrace_func_link): New.
11702 (enum btrace_function_flag): New.
11703 (struct btrace_inst): Rename to ...
11704 (struct btrace_insn): ...this. Update all users.
11705 (struct btrace_func) <ibegin, iend>: Remove.
11706 (struct btrace_func_link): New.
11707 (struct btrace_func): Rename to ...
11708 (struct btrace_function): ...this. Update all users.
11709 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11710 (number, level, flags>: New.
11711 (struct btrace_insn_iterator): Rename to ...
11712 (struct btrace_insn_history): ...this.
11713 Update all users.
11714 (struct btrace_insn_iterator, btrace_call_iterator): New.
11715 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11716 (struct btrace_target_info) <begin, end, level>
11717 <insn_history, call_history>: New.
11718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11721 (btrace_call_number, btrace_call_begin, btrace_call_end)
11722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11723 (btrace_find_function_by_number, btrace_set_insn_history)
11724 (btrace_set_call_history): New.
11725 * btrace.c (btrace_init_insn_iterator)
11726 (btrace_init_func_iterator, compute_itrace): Remove.
11727 (ftrace_print_function_name, ftrace_print_filename)
11728 (ftrace_skip_file): Change
11729 parameter to const.
11730 (ftrace_init_func): Remove.
11731 (ftrace_debug): Use new btrace_function fields.
11732 (ftrace_function_switched): Also consider gaining and
11733 losing symbol information).
11734 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11735 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11736 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11737 New.
11738 (ftrace_new_function): Move. Remove debug print.
11739 (ftrace_update_lines, ftrace_update_insns): New.
11740 (ftrace_update_function): Check for call, ret, and jump.
11741 (compute_ftrace): Renamed to ...
11742 (btrace_compute_ftrace): ...this. Rewritten to compute call
11743 stack.
11744 (btrace_fetch, btrace_clear): Updated.
11745 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11746 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11747 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11748 (btrace_call_number, btrace_call_begin, btrace_call_end)
11749 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11750 (btrace_find_function_by_number, btrace_set_insn_history)
11751 (btrace_set_call_history): New.
11752 * record-btrace.c (require_btrace): Use new btrace thread
11753 info fields.
11754 (record_btrace_info, btrace_insn_history)
11755 (record_btrace_insn_history, record_btrace_insn_history_range):
11756 Use new btrace thread info fields and new iterator.
11757 (btrace_func_history_src_line): Rename to ...
11758 (btrace_call_history_src_line): ...this. Use new btrace
11759 thread info fields.
11760 (btrace_func_history): Rename to ...
11761 (btrace_call_history): ...this. Use new btrace thread info
11762 fields and new iterator.
11763 (record_btrace_call_history, record_btrace_call_history_range):
11764 Use new btrace thread info fields and new iterator.
11765
8372a7cb
MM
117662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11767
11768 * frame.h (frame_id_build_unavailable_stack_special): New.
11769 * frame.c (frame_id_build_unavailable_stack_special): New.
11770
c2170eef
MM
117712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11772
11773 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11774 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11775 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11776 to gdbarch.
11777 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11778 (i386_insn_is_jump, i386_jmp_p): New.
11779 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11780 insn_is_jump to gdbarch.
11781 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11782 * gdbarch.h: Regenerated.
11783 * gdbarch.c: Regenerated.
11784 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11785 (default_insn_is_jump): New.
11786 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11787 (default_insn_is_jump): New.
11788
864089d2
MM
117892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11790
11791 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11792 Change to ...
11793 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11794 (btrace_read_type) <btrace_read_new>: Change to ...
11795 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11796
ed9edfb5
MM
117972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11798
11799 * common/linux-btrace.c (linux_read_btrace): Free trace from
11800 previous iteration.
11801
fbcbc3fd
DE
118022014-01-15 Doug Evans <dje@google.com>
11803
11804 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11805 uint32_t.
11806
3d548a53
TT
118072014-01-15 Tom Tromey <tromey@redhat.com>
11808
11809 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11810 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11811 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11812 (set_objfile_main_name): New function.
11813 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11814 language_of_main>: New fields.
11815 (set_objfile_main_name): Declare.
11816 * symtab.c (find_main_name): Loop over objfiles to find the main
11817 name and language.
11818 (set_main_name): Now static.
11819 (get_main_info): Add comment.
11820 * symtab.h (set_main_name): Don't declare.
11821
32ac0d11
TT
118222014-01-15 Tom Tromey <tromey@redhat.com>
11823
11824 * symtab.c (main_progspace_key): New global.
11825 (struct main_info): New.
11826 (name_of_main, language_of_main): Remove.
11827 (get_main_info, main_info_cleanup): New function.
11828 (set_main_name, main_name, main_language): Use get_main_info.
11829 (_initialize_symtab): Initialize main_progspace_key.
11830
9e6c82ad
TT
118312014-01-15 Tom Tromey <tromey@redhat.com>
11832
11833 * dbxread.c (process_one_symbol): Update.
11834 * dwarf2read.c (read_partial_die): Update.
11835 * symfile.c (set_initial_language): Call main_language.
11836 * symtab.c (language_of_main): Now static.
11837 (set_main_name): Add 'lang' parameter.
11838 (find_main_name): Update.
11839 (main_language): New function.
11840 (symtab_observer_executable_changed): Update.
11841 * symtab.h (set_main_name): Update.
11842 (language_of_main): Remove.
11843 (main_language): Declare.
11844
6ef55de7
TT
118452014-01-15 Tom Tromey <tromey@redhat.com>
11846
11847 * symfile.c (init_entry_point_info): Use new "initialized" field.
11848 Update.
11849 * objfiles.h (struct entry_point) <initialized>: New field.
11850 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11851 (struct objfile) <ei>: ...here. Remove.
11852 * objfiles.c (entry_point_address_query): Update.
11853
53eddfa6
TT
118542014-01-15 Tom Tromey <tromey@redhat.com>
11855
11856 * objfiles.c (entry_point_address_query): Relocate entry point
11857 address.
11858 (objfile_relocate1): Do not relocate entry point address.
11859 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11860 <the_bfd_section_index>: New field.
11861 * symfile.c (init_entry_point_info): Find the entry point's
11862 section.
11863
d56e56aa
TT
118642014-01-15 Tom Tromey <tromey@redhat.com>
11865
11866 * solib-frv.c (enable_break): Use entry_point_address_query.
11867
33a97bbe
OJ
118682014-01-15 Omair Javaid <omair.javaid@linaro.org>
11869
11870 * NEWS: Add note on improved process record-replay on
11871 arm*-linux* targets.
11872
c6ec2b30
OJ
118732014-01-15 Omair Javaid <omair.javaid@linaro.org>
11874
11875 * arm-tdep.c (enum arm_record_result): New enum.
11876 (arm_record_unsupported_insn): New function.
11877 (arm_record_coproc_data_proc): Removed.
11878 (thumb2_record_ld_st_multiple): New function.
11879 (thumb2_record_ld_st_dual_ex_tbb): New function.
11880 (thumb2_record_data_proc_sreg_mimm): New function.
11881 (thumb2_record_ps_dest_generic): New function.
11882 (thumb2_record_branch_misc_cntrl): New function.
11883 (thumb2_record_str_single_data): New function.
11884 (thumb2_record_ld_mem_hints): New function.
11885 (thumb2_record_ld_word): New function.
11886 (thumb2_record_lmul_lmla_div): New function.
11887 (thumb2_record_decode_insn_handler): New function.
11888 (decode_insn): Add thumb32 instruction handlers.
11889
97dfe206
OJ
118902014-01-15 Omair Javaid <omair.javaid@linaro.org>
11891
11892 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11893 (struct arm_linux_record_tdep): Declare.
11894 (arm_canonicalize_syscall): New function.
11895 (arm_all_but_pc_registers_record): New function.
11896 (arm_linux_syscall_record): New function.
11897 (arm_linux_init_abi): Add syscall recording constructs.
11898 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11899 decoding. (arm_record_coproc_data_proc): Update arm syscall
11900 decoding.
11901 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11902 <arm_syscall_record>: New field.
11903 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11904 gdb_target_obs.
11905
9904a494
OJ
119062014-01-15 Omair Javaid <omair.javaid@linaro.org>
11907
11908 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11909 register for push instruction recording.
11910
f969241e
OJ
119112014-01-15 Omair Javaid <omair.javaid@linaro.org>
11912
11913 * arm-tdep.c (thumb_record_misc): Update to correct logical
11914 error while recording ldm, ldmia and pop instructions.
11915
bfbbec00
OJ
119162014-01-15 Omair Javaid <omair.javaid@linaro.org>
11917
11918 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11919
e40adcc9
PA
119202014-01-15 Pedro Alves <palves@redhat.com>
11921
11922 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11923 (go32_resume, go32_fetch_registers, store_register)
11924 (go32_store_registers, go32_prepare_to_store)
11925 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11926 (go32_create_inferior, go32_can_run, go32_terminal_init)
11927 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11928 declarations.
11929
b0a16e66
TT
119302014-01-15 Tom Tromey <tromey@redhat.com>
11931
11932 * target.h (async_callback_ftype): New typedef.
11933 (struct target_ops) <to_async>: Use it.
11934
bf7105a4
JB
119352014-01-15 Joel Brobecker <brobecker@adacore.com>
11936
11937 * python/py-value.c (get_field_type): Remove unnecessary curly
11938 braces for single-statement if block.
11939
a8f35c2e
JB
119402014-01-15 Joel Brobecker <brobecker@adacore.com>
11941
11942 * python/py-type.c (convert_field): Add missing empty line
11943 after declarations.
11944
bb4142cf
DE
119452014-01-14 Doug Evans <dje@google.com>
11946
11947 * symfile.h (expand_symtabs_matching): Renamed from
11948 expand_partial_symbol_names. Update prototype.
11949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11950 * symfile.c (expand_symtabs_matching): Renamed from
11951 expand_partial_symbol_names. New args file_matcher, kind.
11952 Rename arg fun to symbol_matcher.
11953 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11954 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11955 ada_expand_partial_symbol_name.
11956 (ada_make_symbol_completion_list): Update to call
11957 expand_symtabs_matching.
11958 (ada_add_global_exceptions): Call expand_symtabs_matching.
11959 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11960 call map_symbol_filenames.
11961 * symtab.c (sources_info): Update to call map_symbol_filenames.
11962 (search_symbols): Call expand_symtabs_matching.
11963 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11964 (default_make_symbol_completion_list_break_on): Update to call
11965 expand_symtabs_matching.
11966 (make_source_files_completion_list): Update to call
11967 map_symbol_filenames.
11968
206f2a57
DE
119692014-01-14 Doug Evans <dje@google.com>
11970
11971 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11972 (expand_symtabs_symbol_matcher_ftype): New typedef.
11973 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11975 * symfile.c (expand_partial_symbol_names): Update to use
11976 expand_symtabs_symbol_matcher_ftype.
11977 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11978 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11979 Arg name_matcher renamed to symbol_matcher.
11980 * psymtab.c (recursively_search_psymtabs): Update to use
11981 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11982 sym_matcher.
11983 (expand_symtabs_matching_via_partial): Update to use
11984 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11985 Arg name_matcher renamed to symbol_matcher.
11986
540c2971
DE
119872014-01-14 Doug Evans <dje@google.com>
11988
11989 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11990 (map_partial_symbol_filenames): Ditto.
11991 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11992 (map_partial_symbol_filenames): Ditto.
11993 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11994 (map_partial_symbol_filenames): Ditto.
11995 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11996 (map_partial_symbol_filenames): Ditto.
11997 * symtab.c: Delete #include "psymtab.h".
11998
8213266a
PA
119992014-01-14 Pedro Alves <palves@redhat.com>
12000 Tom Tromey <tromey@redhat.com>
12001
12002 * infrun.c (use_displaced_stepping): Use find_record_target
12003 instead of RECORD_IS_USED.
12004 (adjust_pc_after_break): Use record_full_is_used instead of
12005 RECORD_IS_USED.
12006 * record-btrace.c (record_btrace_open): Call record_preopen
12007 instead of checking RECORD_IS_USED.
12008 * record-full.c (record_full_shortname)
12009 (record_full_core_shortname): New globals.
12010 (record_full_is_used): New function.
12011 (find_full_open): Call record_preopen instead of checking
12012 RECORD_IS_USED.
12013 (init_record_full_ops): Set the target's shortname to
12014 record_full_shortname.
12015 (init_record_full_core_ops): Set the target's shortname to
12016 record_full_core_shortname.
12017 * record-full.h (record_full_is_used): Declare.
12018 * record.c (find_record_target): Make extern.
12019 (record_preopen): New function.
12020 * record.h (RECORD_IS_USED): Delete macro.
12021 (find_record_target, record_preopen): Declare functions.
12022
7ec1862d
YQ
120232014-01-14 Yao Qi <yao@codesourcery.com>
12024
12025 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12026 'len''s type to ULONGEST.
12027 (core_xfer_shared_libraries_aix): Likewise.
12028 * gdbarch.c, gdbarch.h: Regenerated.
12029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12030 Change type of 'len' to ULONGEST.
12031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12032 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12033
dea80a27
YQ
120342014-01-14 Yao Qi <yao@codesourcery.com>
12035
12036 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12037 type of 'len' to ULONGEST.
12038 (linux_xfer_osdata_processgroups): Likewise.
12039 (linux_xfer_osdata_threads): Likewise.
12040 (linux_xfer_osdata_fds): Likewise.
12041 (linux_xfer_osdata_isockets): Likewise.
12042 (linux_xfer_osdata_shm): Likewise.
12043 (linux_xfer_osdata_sem): Likewise.
12044 (linux_xfer_osdata_msg): Likewise.
12045 (linux_common_xfer_osdata): Likewise.
12046 (struct osdata_type) <getter>: Likewise.
12047 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12048 the declaration.
12049
b55e14c7
YQ
120502014-01-14 Yao Qi <yao@codesourcery.com>
12051
12052 * target.h (target_xfer_partial_ftype): Update.
12053 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12054 ULONGEST.
12055 * aix-thread.c (aix_thread_xfer_partial): Change type of
12056 argument 'len' to ULONGEST.
12057 * auxv.c (procfs_xfer_auxv): Likewise.
12058 (ld_so_xfer_auxv): Likewise.
12059 (memory_xfer_auxv): Likewise.
12060 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12061 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12062 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12063 * corelow.c (core_xfer_partial): Likewise.
12064 * ctf.c (ctf_xfer_partial): Likewise.
12065 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12066 '%u'.
12067 (darwin_read_dyld_info): Likewise.
12068 (darwin_xfer_partial): Likewise.
12069 * exec.c (section_table_xfer_memory_partial): Likewise.
12070 (exec_xfer_partial): Likewise.
12071 * exec.h (section_table_xfer_memory_partial): Update
12072 declaration.
12073 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12074 instead of plongest.
12075 (gnu_xfer_partial): Likewise.
12076 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12077 (ia64_hpux_xfer_solib_got): Likewise.
12078 (ia64_hpux_xfer_partial): Likewise.
12079 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12080 * inf-ptrace.c (inf_ptrace_xfer_partial):
12081 * inf-ttrace.c (inf_ttrace_xfer_partial):
12082 * linux-nat.c (linux_xfer_siginfo): Likewise.
12083 (linux_nat_xfer_partial): Likewise.
12084 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12085 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12086 * monitor.c (monitor_xfer_memory): Likewise.
12087 (monitor_xfer_partial): Likewise.
12088 * procfs.c (procfs_xfer_partial): Likewise.
12089 * record-full.c (record_full_xfer_partial): Likewise.
12090 (record_full_core_xfer_partial): Likewise.
12091 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12092 instead of plongest.
12093 (gdbsim_xfer_partial): Likewise.
12094 * remote.c (remote_xfer_partial): Likewise.
12095 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12096 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12097 declaration.
12098 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12099 (rs6000_xfer_shared_libraries): Likewise.
12100 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12101 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12102 (sparc_xfer_partial): Likewise.
12103 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12104 (spu_xfer_partial): Likewise.
12105 * spu-multiarch.c (spu_xfer_partial): Likewise.
12106 * target.c (target_read_live_memory): Likewise.
12107 (memory_xfer_live_readonly_partial): Likewise.
12108 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12109 (target_xfer_partial, default_xfer_partial): Likewise.
12110 (current_xfer_partial): Likewise.
12111 * tracepoint.c (tfile_xfer_partial): Likewise.
12112 * windows-nat.c (windows_xfer_memory): Likewise. Call
12113 pulongest instead of plongest.
12114 (windows_xfer_partial): Likewise.
12115 (windows_xfer_shared_libraries): Likewise.
12116
05804640
YQ
121172014-01-14 Yao Qi <yao@codesourcery.com>
12118
12119 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12120 target_xfer_partial_ftype.
12121
b5b08fb4
SC
121222014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12123
12124 PR python/15464
12125 PR python/16113
12126 * valops.c (value_struct_elt_bitpos): New function
12127 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12128 object to 'None' if the field name is an empty string ("").
12129 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12130 attribute to look for a field when 'name' is 'None'.
12131 (get_field_type): New function
12132
13aaf454
DE
121332014-01-13 Doug Evans <dje@google.com>
12134
12135 PR symtab/16426
12136 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12137 (try_open_dwop_file): Ditto.
12138 * gdb_bfd.c: #include "vec.h".
12139 (bfdp): New typedef.
12140 (struct gdb_bfd_data): New member included_bfds.
12141 (gdb_bfd_unref): Unref all included bfds.
12142 (gdb_bfd_record_inclusion): New function.
12143 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12144
c2cec97c
TT
121452014-01-13 Tom Tromey <tromey@redhat.com>
12146
12147 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12148
78e5999d
TT
121492014-01-13 Tom Tromey <tromey@redhat.com>
12150
12151 * defs.h (use_windows): Remove.
12152 * gdb.c (main): Update.
12153 * main.c (captured_main, gdb_main): Update.
12154 * main.h (struct captured_main_args) <use_windows>: Remove.
12155 * top.c (use_windows): Remove.
12156
f2052bbe
TT
121572014-01-13 Tom Tromey <tromey@redhat.com>
12158
12159 * defs.h (deprecated_flush_hook): Remove.
12160
fde4f8ed
JK
121612014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12162
12163 PR threads/16216
12164 * linux-thread-db.c (try_thread_db_load): Add parameter
12165 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12166 (try_thread_db_load_from_pdir_1): Move it there from here.
12167 (try_thread_db_load_from_sdir): Update caller.
12168 (try_thread_db_load_from_dir): Move it there from here.
12169
bdf61915
PP
121702014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12171
12172 * regformats/regdat.sh: Always rewrite the register file.
12173
f71e1a8d
PA
121742014-01-13 Pedro Alves <palves@redhat.com>
12175
12176 * Makefile.in (CHECK_HEADERS): New variable.
12177 (check-headers:): New rule.
12178
42c85435
TT
121792014-01-13 Tom Tromey <tromey@redhat.com>
12180
12181 * cli/cli-setshow.c (do_set_command): Update.
12182 * defs.h (deprecated_set_hook): Remove.
12183 * top.c (deprecated_set_hook): Remove.
12184
f8de5129
PA
121852014-01-13 Pedro Alves <palves@redhat.com>
12186
12187 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12188 the tracepoint if the PC is a pseudo-register.
12189
fc270c35
TT
121902014-01-13 Tom Tromey <tromey@redhat.com>
12191
12192 * defs.h (XCALLOC): Remove.
12193 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12194 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12195 * dwarf2loc.c (allocate_piece_closure): Likewise.
12196 * elfread.c (elf_symfile_segments): Likewise.
12197 (elf_symfile_segments): Likewise.
12198 * gdbtypes.c (copy_type_recursive): Likewise.
12199 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12200 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12201 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12202 XCALLOC.
12203 * mt-tdep.c (mt_gdbarch_init): Likewise.
12204 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12205 XCALLOC.
12206 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12207 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12208 * registry.c (registry_alloc_data): Likewise.
12209 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12210 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12211 * serial.c (serial_fdopen_ops): Likewise.
12212 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12213 XCALLOC.
12214 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12215 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12216 not XCALLOC.
12217
70ba0933
TT
122182014-01-13 Tom Tromey <tromey@redhat.com>
12219
12220 * defs.h (XMALLOC): Remove.
12221 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12222 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12223 * cli-out.c (struct ui_out *): Likewise.
12224 * cli/cli-dump.c (add_dump_command): Likewise.
12225 (add_dump_command): Likewise.
12226 * complaints.c (get_complaints): Likewise.
12227 (find_complaint): Likewise.
12228 * dwarf2-frame.c (execute_cfa_program): Likewise.
12229 * dwarf2read.c (abbrev_table_read_table): Likewise.
12230 * gdbarch.sh: Likewise.
12231 * gdbarch.c: Rebuild.
12232 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12233 * interps.c (interp_new): Likewise.
12234 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12235 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12236 * mi/mi-console.c (mi_console_file_new): Likewise.
12237 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12238 * mi/mi-out.c (mi_out_new): Likewise.
12239 * mi/mi-parse.c (mi_parse): Likewise.
12240 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12241 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12242 * observer.c (xalloc_observer_list_node): Likewise.
12243 * regcache.c (regcache_xmalloc_1): Likewise.
12244 * reggroups.c (reggroup_new): Likewise.
12245 (_initialize_reggroup): Likewise.
12246 * registry.c (register_data_with_cleanup): Likewise.
12247 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12248 * ser-base.c (serial_ttystate): Likewise.
12249 * ser-mingw.c (make_pipe_state): Likewise.
12250 * ser-pipe.c (pipe_open): Likewise.
12251 * serial.c (serial_open): Likewise.
12252 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12253 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12254 (tui_alloc_win_info): Likewise.
12255 (tui_add_content_elements): Likewise.
12256 * tui/tui-file.c (tui_file_new): Likewise.
12257 * tui/tui-out.c (tui_out_new): Likewise.
12258 * ui-file.c (mem_file_new): Likewise.
12259 * ui-out.c (push_level): Likewise.
12260 (make_cleanup_ui_out_end): Likewise.
12261 (append_header_to_list): Likewise.
12262 (ui_out_new): Likewise.
12263 * user-regs.c (user_reg_add_builtin): Likewise.
12264
41bf6aca
TT
122652014-01-13 Tom Tromey <tromey@redhat.com>
12266
12267 * defs.h (XZALLOC): Remove.
12268 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12269 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12270 (get_ada_tasks_inferior_data): Likewise.
12271 * auto-load.c (get_auto_load_pspace_data): Likewise.
12272 * auxv.c (get_auxv_inferior_data): Likewise.
12273 * bfd-target.c (target_bfd_reopen): Likewise.
12274 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12275 (deprecated_insert_raw_breakpoint): Likewise.
12276 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12277 * corelow.c (core_open): Likewise.
12278 * darwin-nat.c (darwin_check_new_threads): Likewise.
12279 (darwin_attach_pid): Likewise.
12280 * dummy-frame.c (dummy_frame_push): Likewise.
12281 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12282 * dwarf2loc.c (allocate_piece_closure): Likewise.
12283 * elfread.c (elf_symfile_segments): Likewise.
12284 * eval.c (ptrmath_type_p): Likewise.
12285 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12286 * gdbtypes.c (alloc_type_arch): Likewise.
12287 (alloc_type_instance): Likewise.
12288 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12289 * inf-child.c (inf_child_can_use_agent): Likewise.
12290 * inflow.c (get_inflow_inferior_data): Likewise.
12291 * infrun.c (save_infcall_suspend_state): Likewise.
12292 * jit.c (jit_reader_load): Likewise.
12293 (get_jit_objfile_data): Likewise.
12294 (get_jit_program_space_data): Likewise.
12295 (jit_object_open_impl): Likewise.
12296 (jit_symtab_open_impl): Likewise.
12297 (jit_block_open_impl): Likewise.
12298 (jit_frame_sniffer): Likewise.
12299 * linux-fork.c (add_fork): Likewise.
12300 * maint.c (make_command_stats_cleanup): Likewise.
12301 * objfiles.c (get_objfile_pspace_data): Likewise.
12302 * opencl-lang.c (struct lval_closure): Likewise.
12303 * osdata.c (osdata_start_osdata): Likewise.
12304 * progspace.c (new_address_space): Likewise.
12305 (add_program_space): Likewise.
12306 * remote-sim.c (get_sim_inferior_data): Likewise.
12307 * sh-tdep.c (sh_gdbarch_init): Likewise.
12308 * skip.c (Ignore): Likewise.
12309 (skip_delete_command): Likewise.
12310 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12311 (library_list_start_library): Likewise.
12312 (solib_aix_current_sos): Likewise.
12313 * solib-darwin.c (get_darwin_info): Likewise.
12314 (darwin_current_sos): Likewise.
12315 * solib-dsbt.c (get_dsbt_info): Likewise.
12316 * solib-ia64-hpux.c (new_so_list): Likewise.
12317 (ia64_hpux_get_solib_linkage_addr): Likewise.
12318 * solib-spu.c (append_ocl_sos): Likewise.
12319 (spu_current_sos): Likewise.
12320 * solib-svr4.c (get_svr4_info): Likewise.
12321 (svr4_keep_data_in_core): Likewise.
12322 (library_list_start_library): Likewise.
12323 (svr4_default_sos): Likewise.
12324 (svr4_read_so_list): Likewise.
12325 * solib-target.c (library_list_start_library): Likewise.
12326 (solib_target_current_sos): Likewise.
12327 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12328 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12329 * symfile.c (default_symfile_segments): Likewise.
12330 * target-descriptions.c (tdesc_data_init): Likewise.
12331 (tdesc_create_reg): Likewise.
12332 (struct tdesc_type *): Likewise.
12333 (tdesc_create_vector): Likewise.
12334 (tdesc_set_struct_size): Likewise.
12335 (struct tdesc_type *): Likewise.
12336 (tdesc_free_feature): Likewise.
12337 (tdesc_create_feature): Likewise.
12338 * windows-nat.c (windows_add_thread): Likewise.
12339 (windows_make_so): Likewise.
12340 * xml-support.c (gdb_xml_body_text): Likewise.
12341 (gdb_xml_create_parser_and_cleanup): Likewise.
12342 (xml_process_xincludes): Likewise.
12343 * xml-syscall.c (allocate_syscalls_info): Likewise.
12344 (syscall_create_syscall_desc): Likewise.
12345
5acfdbae
SDJ
123462014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12347
12348 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12349 function, with code from i386_stap_parse_special_token.
12350 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12351 (i386_stap_parse_special_token): Move code to the two functions
12352 above; simplify it.
12353
0000e5cc
PA
123542014-01-09 Pedro Alves <palves@redhat.com>
12355 Hui Zhu <hui@codesourcery.com>
12356
12357 PR gdb/16101
12358 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12359 bp_err_string. Don't mark the location shlib_disabled if the
12360 error thrown wasn't a generic or memory error. Catch errors
12361 thrown while inserting breakpoints in overlayed code. Output
12362 error message of software breakpoints.
12363 * remote.c (remote_insert_breakpoint): If this breakpoint has
12364 target-side commands but this stub doesn't support Z0 packets,
12365 throw NOT_SUPPORTED_ERROR error.
12366 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12367 * target.h (target_insert_breakpoint): Extend comment.
12368 (target_insert_hw_breakpoint): Add comment.
12369
b7ea362b
PA
123702014-01-08 Pedro Alves <palves@redhat.com>
12371
12372 * remote.c (remote_add_thread): Add threads silently if starting
12373 up.
12374 (remote_notice_new_inferior): If in all-stop, and starting up,
12375 don't call notice_new_inferior.
12376 (get_current_thread): New function, factored out from ...
12377 (add_current_inferior_and_thread): ... this. Adjust.
12378 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12379 found any thread, then select the remote's current thread as GDB's
12380 current thread too.
12381
b7bba001
JB
123822014-01-08 Joel Brobecker <brobecker@adacore.com>
12383
12384 * NEWS: Create a new section for the next release branch.
12385 Rename the section of the current branch, now that it has
12386 been cut.
12387
16dfbded
JB
123882014-01-08 Joel Brobecker <brobecker@adacore.com>
12389
12390 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12391 * version.in: Bump version to 7.7.50.DATE-cvs.
12392
22c90ac1
YQ
123932014-01-08 Yao Qi <yao@codesourcery.com>
12394
12395 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12396 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12397 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12398
d64ad97c
YQ
123992014-01-08 Yao Qi <yao@codesourcery.com>
12400
12401 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12402 return value of bfd_get_filename to symbol_file_add_from_bfd.
12403
f93ba80c
PM
124042014-01-08 Pierre Muller <muller@sourceware.org>
12405
12406 Fix PR16201.
12407 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12408 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12409 to prim_record_mininal_symbol_and_info.
12410 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12411 in call to prim_record_minimal_symbol_and_info.
12412 (read_pe_exported_syms): Set index field of section_data.
12413
a4d9ba85
AP
124142014-01-07 Andrew Pinski <apinski@cavium.com>
12415
12416 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12417 * features/aarch64.c: Regenerate.
12418
1b67eb02
AS
124192014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12420
12421 * target.c (return_null): Define.
12422 (update_current_target): Use it instead of return_zero for
12423 functions that return a pointer.
12424
5e3f4fab
EBM
124252014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12426
12427 * source.c (add_path): Fix check for duplicated paths in the previously
12428 included paths.
12429
e2616788
HK
124302014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12431
12432 * ada-lang.c: Remove duplicated include statements.
12433 * alphabsd-nat.c: Ditto.
12434 * amd64-darwin-tdep.c: Ditto.
12435 * amd64fbsd-nat.c: Ditto.
12436 * auto-load.c: Ditto.
12437 * ax-gdb.c: Ditto.
12438 * breakpoint.c: Ditto.
12439 * dbxread.c: Ditto.
12440 * fork-child.c: Ditto.
12441 * gdb_usleep.c: Ditto.
12442 * i386-darwin-tdep.c: Ditto.
12443 * i386fbsd-nat.c: Ditto.
12444 * infcmd.c: Ditto.
12445 * inferior.c: Ditto.
12446 * jv-lang.c: Ditto.
12447 * linux-nat.c: Ditto.
12448 * linux-tdep.c: Ditto.
12449 * m68kbsd-nat.c: Ditto.
12450 * m68klinux-nat.c: Ditto.
12451 * microblaze-tdep.c: Ditto.
12452 * mips-linux-tdep.c: Ditto.
12453 * mn10300-tdep.c: Ditto.
12454 * nto-tdep.c: Ditto.
12455 * opencl-lang.c: Ditto.
12456 * osdata.c: Ditto.
12457 * printcmd.c: Ditto.
12458 * regcache.c: Ditto.
12459 * remote-m32r-sdi.c: Ditto.
12460 * remote.c: Ditto.
12461 * symfile.c: Ditto.
12462 * symtab.c: Ditto.
12463 * tilegx-linux-nat.c: Ditto.
12464 * tilegx-tdep.c: Ditto.
12465 * tracepoint.c: Ditto.
12466 * valops.c: Ditto.
12467 * vaxbsd-nat.c: Ditto.
12468 * windows-nat.c: Ditto.
12469 * xtensa-tdep.c: Ditto.
12470
bd1f7788
YQ
124712014-01-07 Yao Qi <yao@codesourcery.com>
12472
12473 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12474
79301218
JB
124752014-01-07 Yao Qi <yao@codesourcery.com>
12476 Joel Brobecker <brobecker@adacore.com>
12477
12478 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12479 (pdc_write_regs): Likewise.
12480 (fetch_regs_kernel_thread): Likewise.
12481 (store_regs_kernel_thread): Likewise.
12482
124832014-01-07 Joel Brobecker <brobecker@adacore.com>
12484
12485 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12486 tagged type objects to their actual type.
12487
8e355c5d
JB
124882014-01-07 Joel Brobecker <brobecker@adacore.com>
12489
12490 * ada-valprint.c (print_field_values): Add "language" parameter.
12491 Update calls to print_field_values and print_variant_part.
12492 Pass new parameter "language" in call to val_print instead
12493 of "current_language". Replace call to ada_val_print by call
12494 to val_print.
12495 (print_variant_part): Add "language" parameter.
12496 (ada_val_print_struct_union): Update call to print_field_values.
12497
4fbf5aa5
JB
124982014-01-07 Joel Brobecker <brobecker@adacore.com>
12499
12500 * ada-valprint.c (ui_memcpy): Delete.
12501 (ada_print_floating): Update documentation. Add empty line
12502 between between function documentation and implementation.
12503 Delete variable "buffer". Use ui_file_xstrdup in place of
12504 ui_file_put. Minor adjustments following this change.
12505
71855601
JB
125062014-01-07 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-valprint.c (ada_val_print_string): New function,
12509 extracted from ada_val_print_array.
12510 (ada_val_print_array): Replace extracted code by call
12511 to ada_val_print_string followed by a return. Move
12512 "else" branch to the function's top block.
12513
4eb27a30
JB
125142014-01-07 Joel Brobecker <brobecker@adacore.com>
12515
12516 * ada-valprint.c (ada_val_print_array): Move implementation
12517 down. Rename parameter "offset" and "val" into "offset_aligned"
12518 and "original_value" respectively. Add parameter "offset".
12519
34b27950
JB
125202014-01-07 Joel Brobecker <brobecker@adacore.com>
12521
12522 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12523 re-organizing the code. Change the "???" message printed
12524 when target type is a TYPE_CODE_UNDEF into
12525 "<ref to undefined type>".
12526
079e4591
JB
125272014-01-07 Joel Brobecker <brobecker@adacore.com>
12528
12529 * ada-valprint.c (print_record): Delete, implementation inlined...
12530 (ada_val_print_struct_union): ... here. Remove call to
12531 ada_check_typedef in inlined implementation.
12532
8004dfd1
JB
125332014-01-07 Joel Brobecker <brobecker@adacore.com>
12534
12535 * ada-valprint.c (ada_val_print_gnat_array): New function,
12536 extracted from ada_val_print_1;
12537 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12538 (ada_val_print_flt, ada_val_print_struct_union)
12539 (ada_val_print_ref): Likewise.
12540 (ada_val_print_1): Delete variables i and elttype.
12541 Replace extracted-out code by call to corresponding
12542 new functions.
12543
760a2db0
JB
125442014-01-07 Joel Brobecker <brobecker@adacore.com>
12545
12546 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12547
3a92c861
JB
125482014-01-07 Joel Brobecker <brobecker@adacore.com>
12549
12550 * ada-valprint.c (ada_val_print_1): Replace calls to
12551 ada_val_print_1 by calls to val_print.
12552
cd1630f9
JB
125532014-01-07 Joel Brobecker <brobecker@adacore.com>
12554
12555 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12556 Update calls to self accordingly. Replace calls to c_val_print
12557 by calls to val_print.
12558
bdf779a0
JB
125592014-01-07 Joel Brobecker <brobecker@adacore.com>
12560
12561 * ada-valprint.c (print_record): Delete declaration.
12562 (adjust_type_signedness, ada_val_print_1): Likewise.
12563 (ada_val_print): Move function implementation down.
12564 (print_variant_part, print_field_values, print_record):
12565 Move function implementation up.
12566
c0d48811
JB
125672014-01-07 Joel Brobecker <brobecker@adacore.com>
12568
12569 * python/py-type.c (typy_get_name): New function.
12570 (type_object_getset): Add entry for attribute "name".
12571 * NEWS: Add entry mentioning this new attribute.
12572
c26e9cbb
YQ
125732014-01-07 Yao Qi <yao@codesourcery.com>
12574
12575 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12576 statement.
12577
0cc6f43d
YQ
125782014-01-07 Yao Qi <yao@codesourcery.com>
12579
12580 * gnu-nat.c (info_port_rights): Add qualifier const to
12581 argument args.
12582
eec03155
YQ
125832014-01-07 Yao Qi <yao@codesourcery.com>
12584
12585 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12586
f04a82ef
YQ
125872014-01-07 Yao Qi <yao@codesourcery.com>
12588
12589 * gnu-nat.c (make_inf) Update declaration.
12590 (make_inf): Make it static.
12591 (inf_set_traced): Likewise.
12592 (inf_port_to_thread, inf_task_died_status): Likewise.
12593
d57dda0a
YQ
125942014-01-07 Yao Qi <yao@codesourcery.com>
12595
12596 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12597
3aa8c969
YQ
125982014-01-07 Yao Qi <yao@codesourcery.com>
12599
12600 * gnu-nat.c (_initialize_gnu_nat): Declare.
12601
94123b4f
YQ
126022014-01-07 Yao Qi <yao@codesourcery.com>
12603
12604 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12605 'enum bfd_endian'.
12606 (struct gdbarch_info) <byte_order>: Change type to
12607 'enum bfd_endian'.
12608 <byte_order_for_code>: Likewise.
12609 * gdbarch.c, gdbarch.h: Regenerated.
12610
dc81d70a
TT
126112014-01-06 Sasha Smundak <asmundak@google.com>
12612
12613 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12614
cc2f3c35
TT
126152014-01-06 Tom Tromey <tromey@redhat.com>
12616
12617 * doublest.c (convert_doublest_to_floatformat): Use const, not
12618 CONST.
12619 * somread.c (som_symtab_read): Likewise.
12620
adcf2eed
HZ
126212014-01-07 Hui Zhu <hui@codesourcery.com>
12622
12623 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12624 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12625 (gdb_bfd_fopen): Ditto.
12626 (gdb_bfd_openr): Ditto.
12627 (gdb_bfd_openw): Ditto.
12628 (gdb_bfd_openr_iovec): Ditto.
12629 (gdb_bfd_fdopenr): Ditto.
12630 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12631 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12632 with xstrdup.
12633 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12634 with xstrdup.
12635 * symfile-mem.c (symbol_file_add_from_memory): Removed
12636 gdb_bfd_stash_filename.
12637
50722198
DE
126382014-01-03 Doug Evans <dje@google.com>
12639
12640 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12641 output.
12642
2fa4b862
JB
126432014-01-01 Joel Brobecker <brobecker@adacore.com>
12644
12645 Update year range in copyright notice of all files.
12646
28498c42
JB
126472014-01-01 Joel Brobecker <brobecker@adacore.com>
12648
12649 * top.c (print_gdb_version): Set copyright year to 2014.
12650
7b6e1046
JB
126512014-01-01 Joel Brobecker <brobecker@adacore.com>
12652
12653 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12654
df96af55 12655For older changes see ChangeLog-2013.
c906108c
SS
12656\f
12657Local Variables:
12658mode: change-log
12659left-margin: 8
12660fill-column: 74
12661version-control: never
57da7796 12662coding: utf-8
c906108c 12663End:
This page took 2.667741 seconds and 4 git commands to generate.