Add <sys/uio.h> #include back in amd64-linux-nat.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35782f14
JB
12014-09-10 Joel Brobecker <brobecker@adacore.com>
2
3 * amd64-linux-nat.c: Add <sys/uio.h> #include.
4
d342a0da
DE
52014-09-09 Doug Evans <xdje42@gmail.com>
6
7 PR guile/17367
8 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
9 last parameter to pkg-config, not first.
10 * configure.ac: Pass --with-guile provided pkg-config path to
11 GDB_GUILE_PROGRAM_NAMES.
12 * configure: Regenerate.
13
b4a3d263
GKB
142014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
15
16 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
17 Bertazi".
18
6e466374
MR
192014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
20
21 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
22 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
23 the list of sections determining GDB_OSABI_IRIX.
24
a1ada89a
JH
252014-09-09 James Hogan <james.hogan@imgtec.com>
26
27 * MAINTAINERS (Write After Approval): Add "James Hogan".
28
86db008d
JH
292014-09-09 James Hogan <james.hogan@imgtec.com>
30
31 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
32
72fde3df
JB
332014-09-09 Joel Brobecker <brobecker@adacore.com>
34
35 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
36
92d8d229
DE
372014-09-08 Doug Evans <xdje42@gmail.com>
38
39 PR 17247
40 * guile.c: #include <signal.h>.
41 (_initialize_guile): Block SIGCHLD while initializing Guile.
42
43 Replaces the following, which is reverted.
44
45 2014-07-26 Doug Evans <xdje42@gmail.com>
46
47 PR 17185
48 * configure.ac: Add check for header gc/gc.h.
49 Add check for function setenv.
50 * configure: Regenerate.
51 * config.in: Regenerate.
52 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
53
d81412aa
DE
542014-09-08 Doug Evans <xdje42@gmail.com>
55
56 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
57 with named constant. Fix style of pointer comparison.
58 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
59
a9f116cb
GKB
602014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
61
62 PR gdb/17035
63 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
64 decide whether we display the command on "show user".
65 * cli/cli-script.c (show_user_1): Only verify cmdlines after
66 printing command name.
67 * cli/cli-decode.h (cli_user_command_p): Declare new function.
68 * cli/cli-decode.c (cli_user_command_p): Create helper function
69 to verify whether cmd_list_element is a user-defined command.
70
c75bd3a2
JK
712014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
72
73 PR python/17355
74 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
75 Fix goto out of TRY_CATCH.
76
faa42425 772014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 78 Tom Tromey <tromey@redhat.com>
faa42425
DE
79
80 PR 15276
81 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
82 $_any_caller_matches.
83 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
84 * python/lib/gdb/function/caller_is.py: New file.
85
0d41ba00
DE
862014-09-06 Doug Evans <xdje42@gmail.com>
87
88 * infcmd.c (program_info): Fix typo.
89
474ca4f6
SDJ
902014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
91
92 PR gdb/17235
93 * stap-probe.c (stap_parse_single_operand): Delete unused variable
94 'number'. New variable 'has_digit'. Rewrite code to deal with
95 subexpressions on SDT probes.
96
ebf13736
PA
972014-09-04 Pedro Alves <palves@redhat.com>
98
99 * c-exp.y (parse_number): Skip handling base-switching prefixes if
100 the input is only one character long.
101
eb0b0463
SDJ
1022014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
103
104 PR fortran/17237
105 * f-valprint.c (f_val_print): Specify the correct print option to
106 use when printing integer values.
107
5ee44bfa
GB
1082014-09-04 Gary Benson <gbenson@redhat.com>
109
110 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
111 Remove code to cope with LWPs wrapped as PIDs.
112 Add assertions to ensure no wrapped LWPs are passed.
113
4875ffdb
PA
1142014-09-04 Pedro Alves <palves@redhat.com>
115
116 * value.c (value_ranges_copy_adjusted): New function, factored out
117 from ...
118 (value_contents_copy_raw): ... here.
119 (unpack_value_bits_as_long_1): Rename back to ...
120 (unpack_bits_as_long): ... this. Remove 'original_value' and
121 'result' parameters. Change return type to LONGEST.
122 (unpack_value_bits_as_long): Delete.
123 (unpack_value_field_as_long_1): Delete.
124 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
125 (unpack_value_bitfield): New function.
126 (value_field_bitfield): Reimplement using unpack_value_bitfield.
127 (value_fetch_lazy): Use unpack_value_bitfield.
128 * value.h (unpack_value_bits_as_long): Delete declaration.
129
5f3b99cf
SS
1302014-09-03 Sasha Smundak <asmundak@google.com>
131
132 * python/py-frame.c (frapy_read_register): New function.
133
ac740bc7
JH
1342014-09-03 James Hogan <james.hogan@imgtec.com>
135
136 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
137 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
138
7d793aa9
SDJ
1392014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
140
141 PR python/16699
142 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
143 function.
144 (add_cmd): Set "completer_handle_brkchars" to NULL.
145 * cli/cli-decode.h (struct cmd_list_element)
146 <completer_handle_brkchars>: New field.
147 * command.h (completer_ftype_void): New typedef.
148 (set_cmd_completer_handle_brkchars): New prototype.
149 * completer.c (set_gdb_completion_word_break_characters): New
150 function.
151 (complete_line_internal): Call "completer_handle_brkchars"
152 callback from command.
153 * completer.h: Include "command.h".
154 (set_gdb_completion_word_break_characters): New prototype.
155 * python/py-cmd.c (cmdpy_completer_helper): New function.
156 (cmdpy_completer_handle_brkchars): New function.
157 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
158 (cmdpy_init): Set completer_handle_brkchars to
159 cmdpy_completer_handle_brkchars.
160
97ea6506
GB
1612014-09-03 Gary Benson <gbenson@redhat.com>
162
163 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
164 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
165 Loop conditions changed to equivalent form.
166 (struct x86_debug_reg_state): Updated dr_ref_count comment.
167 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
168 ALL_DEBUG_ADDRESS_REGISTERS.
169
d1437815
JB
1702014-09-03 Joel Brobecker <brobecker@adacore.com>
171
172 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
173 description fix.
174
9b94fcf1
DE
1752014-09-02 Doug Evans <dje@google.com>
176
177 * typeprint.c (find_global_typedef): Fix comment.
178
df7e5265
GB
1792014-09-02 Gary Benson <gbenson@redhat.com>
180
181 * i386-nat.h: Renamed as...
182 * x86-nat.h: New file. All type, function and variable name
183 prefixes changed from "i386_" to "x86_". All references updated.
184 * i386-nat.c: Renamed as...
185 * x86-nat.c: New file. All type, function and variable name
186 prefixes changed from "i386_" to "x86_". All references updated.
187 * common/i386-xstate.h: Renamed as...
188 * common/x86-xstate.h: New file. All type, function and variable
189 name prefixes changed from "i386_" to "x86_". All references
190 updated.
191 * nat/i386-cpuid.h: Renamed as...
192 * nat/x86-cpuid.h: New file. All type, function and variable name
193 prefixes changed from "i386_" to "x86_". All references updated.
194 * nat/i386-gcc-cpuid.h: Renamed as...
195 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
196 name prefixes changed from "i386_" to "x86_". All references
197 updated.
198 * nat/i386-dregs.h: Renamed as...
199 * nat/x86-dregs.h: New file. All type, function and variable name
200 prefixes changed from "i386_" to "x86_". All references updated.
201 * nat/i386-dregs.c: Renamed as...
202 * nat/x86-dregs.c: New file. All type, function and variable name
203 prefixes changed from "i386_" to "x86_". All references updated.
204
1c3569d4
MR
2052014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
206
207 * varobj.c (_initialize_varobj): Move to the end of file.
208
ff55e1b5
GB
2092014-08-29 Gary Benson <gbenson@redhat.com>
210
211 * common/common-exceptions.h: New file.
212 * common/common-exceptions.c: Likewise.
213 * Makefile.in (SFILES): Add common/common-exceptions.c.
214 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
215 (COMMON_OBS): Add common-exceptions.o.
216 (common-exceptions.o): New rule.
217 * exceptions.h (common-exceptions.h): Include.
218 (gdb_setjmp.h): Do not include.
219 (return_reason): Moved to common-exceptions.h.
220 (enum return_reason): Likewise.
221 (RETURN_MASK): Likewise.
222 (typedef return_mask): Likewise.
223 (enum errors): Likewise.
224 (struct gdb_exception): Likewise.
225 (exceptions_state_mc_init): Likewise.
226 (exceptions_state_mc_action_iter): Likewise.
227 (exceptions_state_mc_action_iter_1): Likewise.
228 (TRY_CATCH): Likewise.
229 (throw_exception): Likewise.
230 (throw_verror): Likewise.
231 (throw_vquit): Likewise.
232 (throw_error): Likewise.
233 (throw_quit): Likewise.
234 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
235 (enum catcher_action): Likewise.
236 (struct catcher): Likewise.
237 (current_catcher): Likewise.
238 (catcher_list_size): Likewise.
239 (exceptions_state_mc_init): Likewise.
240 (catcher_pop): Likewise.
241 (exceptions_state_mc): Likewise.
242 (exceptions_state_mc_action_iter): Likewise.
243 (exceptions_state_mc_action_iter_1): Likewise.
244 (throw_exception): Likewise.
245 (exception_messages): Likewise.
246 (exception_messages_size): Likewise.
247 (throw_it): Likewise.
248 (throw_verror): Likewise.
249 (throw_vquit): Likewise.
250 (throw_error): Likewise.
251 (throw_quit): Likewise.
252 (prepare_to_throw_exception): New function.
253
e9bcb658
GB
2542014-08-29 Gary Benson <gbenson@redhat.com>
255
256 * common/gdb_setjmp.h: New file.
257 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
258 * configure.ac: Move sigsetjmp check...
259 * common/common.m4: ...here.
260 * configure: Regenerate.
261 * cp-support.c (SIGJMP_BUF): Delete.
262 (SIGSETJMP): Likewise.
263 (SIGLONGJMP): Likewise.
264 * exceptions.h (gdb_setjmp.h): Include.
265 (setjmp.h): Do not include.
266 (EXCEPTIONS_SIGJMP_BUF): Delete.
267 (EXCEPTIONS_SIGSETJMP): Likewise.
268 (EXCEPTIONS_SIGLONGJMP): Likewise.
269 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
270 from gdb_setjmp.h.
271 * exceptions.c: Likewise.
272
e3180625
GB
2732014-08-29 Gary Benson <gbenson@redhat.com>
274
275 * cleanups.h: Moved to...
276 * common/cleanups.h: New file.
277 * cleanups.c: Moved to...
278 * common/cleanups.c: New file. Include common-defs.h and
279 cleanups.h. Do not include defs.h.
280 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
281 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
282 (cleanups.o): New rule.
283
e3d6ba5d
GB
2842014-08-29 Gary Benson <gbenson@redhat.com>
285
286 * common/errors.h (internal_warning): New declaration.
287 (internal_vwarning): Likewise.
288 * common/errors.c (internal_warning): New function.
289 * utils.h (internal_warning): Don't declare.
290 (internal_vwarning): Likewise.
291 * utils.c (internal_warning): Removed.
292
075c7033
GB
2932014-08-29 Gary Benson <gbenson@redhat.com>
294
295 * main.c (captured_main): Use warning during startup.
296 Prefix startup warning messages with command name.
297
91b35fd0
GB
2982014-08-29 Gary Benson <gbenson@redhat.com>
299
300 * main.c (captured_main): Handle usage errors with error.
301
b1ec390e
GB
3022014-08-29 Gary Benson <gbenson@redhat.com>
303
304 * go32-nat.c (go32_create_inferior): Replace a fprintf/
305 exit pair with a call to error. Wrap the message with _().
306
fd0ef3dd
GB
3072014-08-29 Gary Benson <gbenson@redhat.com>
308
309 * main.c (captured_main): Replace a fprintf/exit
310 pair with a call to error. Wrap the message with _().
311
e0e6bcab
GB
3122014-08-29 Gary Benson <gbenson@redhat.com>
313
314 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
315 pairs with calls to error. Wrap the message with _().
316
0d2f5c07
GB
3172014-08-29 Gary Benson <gbenson@redhat.com>
318
319 * utils.c (vwarning): Protect calls to target_terminal_ours
320 and wrap_here.
321
5df43998
GB
3222014-08-29 Gary Benson <gbenson@redhat.com>
323
324 * exceptions.c (print_flush): Protect calls to
325 target_terminal_ours and wrap_here.
326
2437fd32
GB
3272014-08-29 Gary Benson <gbenson@redhat.com>
328
329 * utils.h (filtered_printing_initialized): New declaration.
330 * utils.c (abort_with_message): New function.
331 (internal_vproblem): Use abort_with_message for first level
332 recursive internal problems, and if gdb_stderr is not set up.
333 Protect calls to target_terminal_ours, begin_line and query.
334
f1f58506
DE
3352014-08-28 Doug Evans <dje@google.com>
336
337 * symtab.c (in_prologue): Move definition to better spot.
338 (skip_prologue_using_sal): Ditto.
339
aab2f208
DE
3402014-08-28 Doug Evans <dje@google.com>
341
342 * symtab.c (find_function_start_sal): Move definition to better spot.
343
6b65d1b6
YQ
3442014-08-28 Yao Qi <yao@codesourcery.com>
345
346 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
347 found_stack_adjust in forward scan. Remove condition check
348 on found_stack_adjust which is always true. Indent the code.
349
a1b34d15
YQ
3502014-08-28 Yao Qi <yao@codesourcery.com>
351
352 * dwarf2read.c (dwarf_decode_lines): Update declaration.
353 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
354 (dwarf_decode_lines): Remove argument
355 want_line_info. Remove condition check on want_line_info.
356 Callers update.
357
d5962de5
DE
3582014-08-27 Doug Evans <dje@google.com>
359
360 * dwarf2read.c (dwarf_record_line): Fix typo.
361
9b139002
SDJ
3622014-08-27 Patrick Palka <patrick@parcs.ath.cx>
363
364 * target.h (struct target_ops::to_terminal_save_ours): Remove
365 declaration.
366 (target_terminal_save_ours): Remove macro.
367 * target-delegates.c: Regenerate.
368 * inf-child.c (inf_child_target): Don't set the nonexistent
369 field to_terminal_save_ours.
370 * inferior.h (child_terminal_save_ours): Remove declaration.
371 * terminal.h (gdb_save_tty_state): New declaration.
372 * inflow.c (child_terminal_save_ours): Rename to ...
373 (gdb_save_tty_state): ... this.
374 * tui/tui.c: Include terminal.h.
375 (tui_enable): Use gdb_save_tty_state instead of
376 target_terminal_save_ours.
377 (tui_disable): Likewise.
378
9debeba0
DE
3792014-08-25 Doug Evans <dje@google.com>
380
381 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
382 Pass NULL instead of 0 for context pointer.
383
428fc5fc
YQ
3842014-08-25 Yao Qi <yao@codesourcery.com>
385
386 * dwarf2read.c: Fix grammatical error.
387
cdc07690
YQ
3882014-08-24 Yao Qi <yao@codesourcery.com>
389
390 * dwarf2read.c (scan_partial_symbols): Update comments.
391 Rename argument 'need_pc' with 'set_addrmap'.
392 (add_partial_namespace): Rename argument 'need_pc' with
393 'set_addrmap'.
394 (add_partial_module): Likewise.
395 (add_partial_subprogram): Likewise. Update comments.
396 (dwarf2_name): Fix typo.
397
a05a36a5
DE
3982014-08-22 Doug Evans <dje@google.com>
399
400 PR 17276
401 * dwarf2read.c (dwarf_record_line_p): New function.
402 (dwarf_decode_lines_1): Ignore subsequent line number entries
403 for the same line if any entry had a non-zero discriminator.
404
252a6764
DE
4052014-08-22 Doug Evans <dje@google.com>
406
407 * buildsym.h (record_line_ftype): New typedef.
408 (record_line): Use it.
409 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
410 (dwarf_decode_lines_1): Call them.
411
510db052
YQ
4122014-08-22 Yao Qi <yao@codesourcery.com>
413
414 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
415 (ctf_end): Remove code.
416
22fd09ae
JK
4172014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
420 (linux_make_corefile_notes): call update_thread_list, protected against
421 exceptions.
422
656e8868
PA
4232014-08-21 Pedro Alves <palves@redhat.com>
424
425 * infcmd.c (attach_command): Remove comment.
426
de589d04
WN
4272014-08-21 Bin Cheng <bin.cheng@arm.com>
428
429 * aarch64-linux-nat.c (dr_changed_t): Change the type from
430 unsigned LONGEST to ULONGEST.
431
2a31c623
PA
4322014-08-20 Pedro Alves <palves@redhat.com>
433
434 * Makefile.in (check-read1): New rule.
435
d36430db
JB
4362014-08-20 Joel Brobecker <brobecker@adacore.com>
437
438 * value.c (value_from_contents_and_address): Strip resolved_type's
439 typedef layers before checking its TYPE_DATA_LOCATION.
440
000339af
PA
4412014-08-20 Pedro Alves <palves@redhat.com>
442
443 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
444
5f52445b
YQ
4452014-08-20 Yao Qi <yao@codesourcery.com>
446
447 * amd64-tdep.c (amd64_classify): Add a blank line after the
448 example. Move "*/" to a new line.
449 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
450 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
451 * dwarf2read.c (psymtab_include_file_name): Likewise.
452
9a0dc9e3
PA
4532014-08-19 Andrew Burgess <aburgess@broadcom.com>
454 Pedro Alves <palves@redhat.com>
455
456 PR symtab/14604
457 PR symtab/14605
458 * ada-lang.c (coerce_unspec_val_to_type): Use
459 value_contents_copy_raw.
460 * ada-valprint.c (val_print_packed_array_elements): Adjust.
461 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
462 * cp-valprint.c (cp_print_value_fields): Let the common printing
463 code handle optimized out values.
464 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
465 * d-valprint.c (dynamic_array_type): Use
466 value_bits_any_optimized_out.
467 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
468 check_any_valid fields.
469 (check_pieced_value_bits): Delete and inline ...
470 (check_pieced_synthetic_pointer): ... here.
471 (check_pieced_value_validity): Delete.
472 (check_pieced_value_invalid): Delete.
473 (pieced_value_funcs): Remove check_validity and check_any_valid
474 fields.
475 (read_pieced_value): Use mark_value_bits_optimized_out.
476 (write_pieced_value): Switch to use
477 mark_value_bytes_optimized_out.
478 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
479 of assuming the whole value is optimized out.
480 * findvar.c (read_frame_register_value): Remove special handling
481 of optimized out registers.
482 (value_from_register): Use mark_value_bytes_optimized_out.
483 * frame-unwind.c (frame_unwind_got_optimized): Use
484 mark_value_bytes_optimized_out.
485 * jv-valprint.c (java_value_print): Adjust.
486 (java_print_value_fields): Let the common printing code handle
487 optimized out values.
488 * mips-tdep.c (mips_print_register): Remove special handling of
489 optimized out registers.
490 * opencl-lang.c (lval_func_check_validity): Delete.
491 (lval_func_check_any_valid): Delete.
492 (opencl_value_funcs): Remove check_validity and check_any_valid
493 fields.
494 * p-valprint.c (pascal_object_print_value_fields): Let the common
495 printing code handle optimized out values.
496 * stack.c (read_frame_arg): Remove special handling of optimized
497 out values. Fetch both VAL and ENTRYVAL before comparing
498 contents. Adjust to value_available_contents_eq rename.
499 * valprint.c (valprint_check_validity)
500 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
501 (val_print_array_elements): Adjust.
502 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
503 (value_bits_any_optimized_out): New function.
504 (value_entirely_covered_by_range_vector): New function, factored
505 out from value_entirely_unavailable.
506 (value_entirely_unavailable): Reimplement.
507 (value_entirely_optimized_out): New function.
508 (insert_into_bit_range_vector): New function, factored out from
509 mark_value_bits_unavailable.
510 (mark_value_bits_unavailable): Reimplement.
511 (struct ranges_and_idx): New struct.
512 (find_first_range_overlap_and_match): New function, factored out
513 from value_available_contents_bits_eq.
514 (value_available_contents_bits_eq): Rename to ...
515 (value_contents_bits_eq): ... this. Check both unavailable
516 contents and optimized out contents.
517 (value_available_contents_eq): Rename to ...
518 (value_contents_eq): ... this.
519 (allocate_value_lazy): Remove reference to the old optimized_out
520 boolean.
521 (allocate_optimized_out_value): Use
522 mark_value_bytes_optimized_out.
523 (require_not_optimized_out): Adjust to check whether the
524 optimized_out vec is empty.
525 (ranges_copy_adjusted): New function, factored out from
526 value_contents_copy_raw.
527 (value_contents_copy_raw): Also copy the optimized out ranges.
528 Assert the destination ranges aren't optimized out.
529 (value_contents_copy): Update comment, remove call to
530 require_not_optimized_out.
531 (value_contents_equal): Adjust to check whether the optimized_out
532 vec is empty.
533 (set_value_optimized_out, value_optimized_out_const): Delete.
534 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
535 New functions.
536 (value_entirely_optimized_out, value_bits_valid): Delete.
537 (value_copy): Take a VEC copy of the 'optimized_out' field.
538 (value_primitive_field): Remove special handling of optimized out.
539 (value_fetch_lazy): Assert that lazy values have no unavailable
540 regions. Use value_bits_any_optimized_out. Remove some special
541 handling for optimized out values.
542 * value.h: Add intro comment about <optimized out> and
543 <unavailable>.
544 (struct lval_funcs): Remove check_validity and check_any_valid
545 fields.
546 (set_value_optimized_out, value_optimized_out_const): Remove.
547 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
548 New declarations.
549 (value_bits_any_optimized_out): New declaration.
550 (value_bits_valid): Delete declaration.
551 (value_available_contents_eq): Rename to ...
552 (value_contents_eq): ... this, and extend comments.
553
6694c411
JK
5542014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
555
556 Fix -fsanitize=address on unreadable inferior strings.
557 * valprint.c (val_print_string): Fix access before BUFFER.
558
89a1c21a
SM
5592014-08-19 Simon Marchi <simon.marchi@ericsson.com>
560
561 * target.c (target_struct_size): Remove.
562 (target_struct_allocsize): Remove.
563 (DEFAULT_ALLOCSIZE): Remove.
564 (target_ops_p): New typedef.
565 (DEF_VEC_P (target_ops_p)): New vector type.
566 (target_structs): Change type to VEC (target_ops_p).
567 (add_target_with_completer): Replace "push" code by VEC_safe_push.
568 (find_default_run_target): Rewrite for loop following changes to
569 target_structs.
570
cb417230
JB
5712014-08-19 Joel Brobecker <brobecker@adacore.com>
572
573 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
574 Adjust code accordingly. Adjust function description comment.
575
817e0957
YQ
5762014-08-19 Yao Qi <yao@codesourcery.com>
577
578 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
579 types.
580
2974be62
AM
5812014-08-19 Alan Modra <amodra@gmail.com>
582
583 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
584 * config.in: Regenerate.
585 * configure: Regenerate.
586
34abf635
GB
5872014-08-19 Tom Tromey <tromey@redhat.com>
588 Gary Benson <gbenson@redhat.com>
589
590 * common/common-debug.h: New file.
591 * common/common-debug.c: Likewise.
592 * debug.c: Likewise.
593 * Makefile.in (SFILES): Add common/common-debug.c.
594 (HFILES_NO_SRCDIR): Add common/common-debug.h.
595 (COMMON_OBS): Add common-debug.o and debug.o.
596 (common-debug.o): New rule.
597 * common/common-defs.h: Include common-debug.h.
598 * common/agent.c (debug_agent_printf): New function.
599 (DEBUG_AGENT): Redefine.
600 * nat/i386-dregs.c (debug_printf): Undefine.
601
f6e94d78
GB
6022014-08-19 Gary Benson <gbenson@redhat.com>
603
604 * common/common-defs.h: Include print-utils.h.
605 * utils.h: Do not include print-utils.h.
606
9239eeab
GB
6072014-08-19 Tom Tromey <tromey@redhat.com>
608 Gary Benson <gbenson@redhat.com>
609
610 * common/common-types.h: New file.
611 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
612 * common/common-defs.h: Include common-types.h.
613 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
614 (ULONGEST): Remove.
615
ef87c8bb
GB
6162014-08-19 Tom Tromey <tromey@redhat.com>
617 Gary Benson <gbenson@redhat.com>
618
619 * common/errors.h: New file.
620 * common/errors.c: Likewise.
621 * Makefile.in (SFILES): Add common/errors.c.
622 (HFILES_NO_SRCDIR): Add common/errors.h.
623 (COMMON_OBS): Add errors.o.
624 (errors.o): New rule.
625 * common/common-defs.h: Include errors.h.
626 * utils.h (perror_with_name, error, verror, warning, vwarning):
627 Don't declare.
628 * common/common-utils.h: (malloc_failure, internal_error):
629 Likewise.
630
196a707b
GB
6312014-08-19 Gary Benson <gbenson@redhat.com>
632
633 * utils.c (internal_vproblem): Always print the message.
634
ded4fc8f
DE
6352014-08-18 Doug Evans <dje@google.com>
636
637 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
638
950c97d8
JB
6392014-08-18 Joel Brobecker <brobecker@adacore.com>
640
641 * ada-typeprint.c (type_is_full_subrange_of_target_type):
642 Return 0 if TYPE is dynamic.
643 (print_range): Add handling of dynamic ranges.
644
3cdcd0ce
JB
6452014-08-18 Keven Boell <keven.boell@intel.com>
646 Joel Brobecker <brobecker@adacore.com>
647
648 * gdbtypes.h (struct main_type): Add field "data_location".
649 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
650 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
651 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
652 a dynamic data location.
653 (resolve_dynamic_type): Add DW_AT_data_location handling.
654 (copy_recursive, copy_type): Copy the data_location information
655 when present.
656 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
657 * value.c (value_from_contents_and_address): Add
658 DW_AT_data_location handling.
659
08412b07
JB
6602014-08-18 Keven Boell <keven.boell@intel.com>
661 Joel Brobecker <brobecker@adacore.com>
662
663 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
664 field "get_object_address".
665 * dwarf2expr.c (execute_stack_op): Add handling for
666 DW_OP_push_object_address.
667 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
668 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
669 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
670 (dwarf_expr_get_obj_addr): New function.
671 (dwarf_expr_ctx_funcs): Add get_object_address field.
672 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
673 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
674 (dwarf2_evaluate_property): Add parameter "address". Use it.
675 (needs_get_obj_addr): New function.
676 (needs_frame_ctx_funcs): Add get_object_address field.
677 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
678 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
679 (resolve_dynamic_array): Likewise.
680
84754697
JB
6812014-08-18 Joel Brobecker <brobecker@adacore.com>
682
683 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
684 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
685 fixed value for records and unions for which some GNAT encodings
686 are present.
687
da5c522f
JB
6882014-08-18 Joel Brobecker <brobecker@adacore.com>
689
690 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
691 rewrite to avoid "else if" and "else" constructs. Should be
692 a no-op in practice.
693
0d72a7c3
JB
6942014-08-18 Joel Brobecker <brobecker@adacore.com>
695
696 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
697 of lexical block.
698
e66d4446
SC
6992014-08-15 Siva Chandra Reddy <sivachandra@google.com>
700
701 PR c++/17132
702 * eval.c: Update all calls to find_overload_match.
703 * valarith.c: Likewise.
704 (value_user_defined_cpp_op, value_user_defined_op): New
705 argument NOSIDE. Update all callers.
706 * valops.c (find_overload_match): New argument NOSIDE.
707 * value.h (find_overload_match): Update signature.
708
940df408
SC
7092014-08-15 Siva Chandra Reddy <sivachandra@google.com>
710
711 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
712 'items' methods instead of 'iteritems' method on dictionaries.
713
699ca60a
DE
7142014-08-15 Doug Evans <dje@google.com>
715
716 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
717 closer to use.
718
37780ee5
DE
7192014-08-15 Doug Evans <dje@google.com>
720
721 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
722
0ad93d4f
DE
7232014-08-15 Doug Evans <dje@google.com>
724
725 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
726
20d8c372
DE
7272014-08-15 Doug Evans <dje@google.com>
728
729 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
730 unused.
731
cb039ba4
EZ
7322014-08-15 Eli Zaretskii <eliz@gnu.org>
733
734 * dcache.h: Include target.h, to avoid compile time warnings.
735
eb7a547a
JB
7362014-08-15 Joel Brobecker <brobecker@adacore.com>
737
738 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
739 frame_info" partial declaration.
740 * gdbarch.h: Regenerate.
741
783cecc8
YQ
7422014-08-15 Yao Qi <yao@codesourcery.com>
743
744 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
745 Add parameter 'decode_for_pst_p'. Callers update.
746
65c749e7
YQ
7472014-08-13 Yao Qi <yao@codesourcery.com>
748
749 PR build/17104
750 * configure.ac: Use local variable 'pos'.
751 * configure: Regenerated.
752
d769e349
DE
7532014-08-11 Doug Evans <dje@google.com>
754
755 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
756 message, it is redundant with "Reading symbols from ..." message.
757
24f1235e
DE
7582014-08-10 Doug Evans <xdje42@gmail.com>
759
760 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
761
dcd2e6ef
YQ
7622014-08-09 Yao Qi <yao@codesourcery.com>
763
764 PR remote/9053
765 * remote.c (remote_xfer_partial): Remove dead code.
766
070bdf0b
AA
7672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768
769 * ia64-linux-tdep.c: Include "regset.h".
770 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
771 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
772 (ia64_linux_supply_fpregset): New function.
773 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
774 (ia64_linux_regset_from_core_section): New function.
775 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
776 method.
777
08f9f542
AA
7782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
779
780 * m68klinux-tdep.c: Include "regset.h".
781 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
782 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
783 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
784 (m68k_linux_regset_from_core_section): New function.
785 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
786 method.
787
8f1cee41
AA
7882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
789
790 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
791 function. Move logic to...
792 (tilegx_linux_regmap): ... this new register map.
793 (tilegx_linux_regset): Refer to register map, replace supply
794 method by regcache_supply_regset, and add collect method.
795 * tilegx-tdep.h (enum tilegx_regnum): New enum value
796 TILEGX_FIRST_EASY_REGNUM.
797
c5741217
AA
7982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
799
800 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
801 that calls regcache_supply_regset and handles the EPC register
802 separately. Move main logic to...
803 (score7_linux_gregmap): ... this new register map.
804 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
805 (score7_linux_gregset): Refer to register map. Add collect method.
806 (score7_linux_regset_from_core_section): Replace
807 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
808 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
809 (struct regset): Delete unused forward declaraction.
810 (struct pt_regs): Delete structure definition.
811 (elf_gregset_t): Delete typedef.
812
81580573
AA
8132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
814
815 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
816 (nios2_core_regset): Add collect method.
817
ba199d7d
AA
8182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
819
820 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
821 platform-independent and don't write to read-only input buffer.
822 (m32r_linux_collect_gregset): New function.
823 (m32r_linux_gregset): Add collect method.
824
0006a9da
AA
8252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
826
827 * hppa-linux-tdep.c (greg_map): Rename to...
828 (hppa_linux_gregmap): ... this. Also convert to
829 regcache_map_entry format.
830 (hppa_linux_supply_regset): Delete function.
831 (hppa_linux_supply_fpregset): Delete function. Move logic to...
832 (hppa_linux_fpregmap): ... this new register map.
833 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
834 register map, replace supply method by regcache_supply_regset, and
835 add collect method regcache_collect_regset.
836
901e1b23
AA
8372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
838
839 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
840 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
841 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
842 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
843 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
844 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
845 (frv_linux_supply_gregset): Replace main logic by call to
846 regcache_supply_regset, but keep clearing gr32-gr63.
847 (frv_linux_supply_fpregset): Delete function.
848 (frv_linux_gregset): Refer to appropriate register map and add
849 regcache_collect_regset as the collect method.
850 (frv_linux_fpregset): Likewise. Also exchange the supply method
851 by regcache_supply_regset.
852
1d6e7555
AA
8532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
854
855 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
856 by call to alpha_supply_int_regs.
857 (alpha_linux_collect_gregset): New function.
858 (alpha_linux_supply_fpregset): Replace logic by call to
859 alpha_supply_fp_regs.
860 (alpha_linux_collect_fpregset): New function.
861 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
862
d4d793bf
AA
8632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
864
865 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
866 by call to regcache_collect_regset.
867 (supply_gregset, supply_fpregset): Call regcache_supply_regset
868 instead of aarch64_linux_supply_gregset/_fpregset.
869 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
870 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
871 header file instead.
872 (aarch64_linux_supply_gregset, supply_gregset_from_core)
873 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
874 functions. Move logic to ...
875 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
876 register maps.
877 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
878 refer to new register maps, replace *_regset_from_core by
879 regcache_supply_regset, and also use regcache_collect_regset.
880 * aarch64-linux-tdep.h: Include "regset.h".
881 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
882 Delete prototypes.
883 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
884 macros, moved from C source file.
885 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
886 variable declarations.
887
99b7da5d
AA
8882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
889
890 * s390-linux-nat.c: Include "regset.h".
891 (regmap_gregset): Delete macro.
892 (s390_64_regmap_gregset): New register map for
893 regcache_supply/_collect_regset.
894 (s390_64_gregset): New regset.
895 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
896 (regmap_fpregset): Delete macro.
897 (s390_native_supply, s390_native_collect): Delete functions.
898 (supply_gregset, fill_gregset): Replace s390-specific regmap
899 handling by a call to regcache_supply/_collect_regset.
900 (supply_fpregset, fill_fpregset): Call regcache_supply/
901 _collect_regset instead of s390_native_supply/_collect.
902 (fetch_regset, store_regset): Likewise. Also change the last
903 parameter to a regset instead of a regmap.
904 (s390_linux_fetch_inferior_registers)
905 (390_linux_store_inferior_registers): Adjust last parameter in
906 calls to fetch_regset and store_regset.
907 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
908 (s390_gregmap): ... this. Also make static const and convert to
909 regcache_map_entry format.
910 (s390x_regmap_gregset): Delete.
911 (s390_regmap_fpregset): Rename to...
912 (s390_fpregmap): ... this. Make static const and convert to
913 regcache_map_entry format.
914 (s390_regmap_upper, s390_regmap_last_break)
915 (s390x_regmap_last_break, s390_regmap_system_call)
916 (s390_regmap_tdb): Likewise.
917 (s390_supply_regset, s390_collect_regset): Remove functions.
918 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
919 s390_supply_regset.
920 (s390_gregset, s390_fpregset, s390_upper_regset)
921 (s390_last_break_regset, s390x_last_break_regset)
922 (s390_system_call_regset, s390_tdb_regset): Make global and
923 replace s390_supply/_collect_regset by regcache_supply/
924 _collect_regset.
925 (s390x_gregset): Delete.
926 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
927 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
928 (s390_regmap_fpregset, s390_regmap_last_break)
929 (s390x_regmap_last_break, s390_regmap_system_call)
930 (s390_regmap_tdb): Delete global variable declarations.
931 (s390_gregset, s390_fpregset, s390_last_break_regset)
932 (s390x_last_break_regset, s390_system_call_regset)
933 (s390_tdb_regset): New global variable declarations.
934
0b309272
AA
9352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
936
937 * regcache.c: Include "regset.h".
938 (regcache_transfer_regset): New local function.
939 (regcache_supply_regset, regcache_collect_regset): New functions.
940 * regcache.h (struct regcache_map_entry): New structure.
941 (REGCACHE_MAP_SKIP): New enum value.
942 (regcache_supply_regset, regcache_collect_regset): New prototypes.
943
7fefa8d7
AA
9442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
945
946 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
947 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
948 (ppc_linux_collect_gregset ): Likewise.
949 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
950 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
951 (ppc_collect_vrregset): Likewise.
952 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
953 Likewise.
954
96c4f946
YQ
9552014-08-07 Yao Qi <yao@codesourcery.com>
956
957 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
958 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
959 * remote.c (remote_read_bytes): Likewise.
960
fffbe6a8
YQ
9612014-08-07 Yao Qi <yao@codesourcery.com>
962
963 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
964
5ee8a82c
YQ
9652014-08-07 Yao Qi <yao@codesourcery.com>
966
967 PR remote/17230
968 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
969 TARGET_XFER_OK instead of 0.
970
bb974a24
GB
9712014-08-07 Gary Benson <gbenson@redhat.com>
972
973 * common/common-defs.h: Include errno.h.
974 * defs.h: Do not include errno.h.
975 * ada-typeprint.c: Likewise.
976 * c-typeprint.c: Likewise.
977 * core-regset.c: Likewise.
978 * corefile.c: Likewise.
979 * corelow.c: Likewise.
980 * event-loop.c: Likewise.
981 * f-typeprint.c: Likewise.
982 * gnu-nat.c: Likewise.
983 * go32-nat.c: Likewise.
984 * i386gnu-nat.c: Likewise.
985 * m2-typeprint.c: Likewise.
986 * nat/linux-btrace.c: Likewise.
987 * p-typeprint.c: Likewise.
988 * procfs.c: Likewise.
989 * remote-sim.c: Likewise.
990 * rs6000-nat.c: Likewise.
991 * target.c: Likewise.
992 * typeprint.c: Likewise.
993 * ui-file.c: Likewise.
994 * valops.c: Likewise.
995 * valprint.c: Likewise.
996
6d3d12eb
GB
9972014-08-07 Gary Benson <gbenson@redhat.com>
998
999 * common/common-defs.h: Include string.h.
1000 * aarch64-tdep.c: Do not include string.h.
1001 * ada-exp.y: Likewise.
1002 * ada-lang.c: Likewise.
1003 * ada-lex.l: Likewise.
1004 * ada-typeprint.c: Likewise.
1005 * ada-valprint.c: Likewise.
1006 * aix-thread.c: Likewise.
1007 * alpha-linux-tdep.c: Likewise.
1008 * alpha-mdebug-tdep.c: Likewise.
1009 * alpha-nat.c: Likewise.
1010 * alpha-osf1-tdep.c: Likewise.
1011 * alpha-tdep.c: Likewise.
1012 * alphanbsd-tdep.c: Likewise.
1013 * amd64-dicos-tdep.c: Likewise.
1014 * amd64-linux-tdep.c: Likewise.
1015 * amd64-nat.c: Likewise.
1016 * amd64-sol2-tdep.c: Likewise.
1017 * amd64fbsd-tdep.c: Likewise.
1018 * amd64obsd-tdep.c: Likewise.
1019 * arch-utils.c: Likewise.
1020 * arm-linux-nat.c: Likewise.
1021 * arm-linux-tdep.c: Likewise.
1022 * arm-tdep.c: Likewise.
1023 * arm-wince-tdep.c: Likewise.
1024 * armbsd-tdep.c: Likewise.
1025 * armnbsd-nat.c: Likewise.
1026 * armnbsd-tdep.c: Likewise.
1027 * armobsd-tdep.c: Likewise.
1028 * avr-tdep.c: Likewise.
1029 * ax-gdb.c: Likewise.
1030 * ax-general.c: Likewise.
1031 * bcache.c: Likewise.
1032 * bfin-tdep.c: Likewise.
1033 * breakpoint.c: Likewise.
1034 * build-id.c: Likewise.
1035 * buildsym.c: Likewise.
1036 * c-exp.y: Likewise.
1037 * c-lang.c: Likewise.
1038 * c-typeprint.c: Likewise.
1039 * c-valprint.c: Likewise.
1040 * charset.c: Likewise.
1041 * cli-out.c: Likewise.
1042 * cli/cli-cmds.c: Likewise.
1043 * cli/cli-decode.c: Likewise.
1044 * cli/cli-dump.c: Likewise.
1045 * cli/cli-interp.c: Likewise.
1046 * cli/cli-logging.c: Likewise.
1047 * cli/cli-script.c: Likewise.
1048 * cli/cli-setshow.c: Likewise.
1049 * cli/cli-utils.c: Likewise.
1050 * coffread.c: Likewise.
1051 * common/agent.c: Likewise.
1052 * common/buffer.c: Likewise.
1053 * common/buffer.h: Likewise.
1054 * common/common-utils.c: Likewise.
1055 * common/filestuff.c: Likewise.
1056 * common/filestuff.c: Likewise.
1057 * common/format.c: Likewise.
1058 * common/print-utils.c: Likewise.
1059 * common/rsp-low.c: Likewise.
1060 * common/signals.c: Likewise.
1061 * common/vec.h: Likewise.
1062 * common/xml-utils.c: Likewise.
1063 * core-regset.c: Likewise.
1064 * corefile.c: Likewise.
1065 * corelow.c: Likewise.
1066 * cp-abi.c: Likewise.
1067 * cp-name-parser.y: Likewise.
1068 * cp-support.c: Likewise.
1069 * cp-valprint.c: Likewise.
1070 * cris-tdep.c: Likewise.
1071 * d-exp.y: Likewise.
1072 * darwin-nat.c: Likewise.
1073 * dbxread.c: Likewise.
1074 * dcache.c: Likewise.
1075 * demangle.c: Likewise.
1076 * dicos-tdep.c: Likewise.
1077 * disasm.c: Likewise.
1078 * doublest.c: Likewise.
1079 * dsrec.c: Likewise.
1080 * dummy-frame.c: Likewise.
1081 * dwarf2-frame.c: Likewise.
1082 * dwarf2loc.c: Likewise.
1083 * dwarf2read.c: Likewise.
1084 * elfread.c: Likewise.
1085 * environ.c: Likewise.
1086 * eval.c: Likewise.
1087 * event-loop.c: Likewise.
1088 * exceptions.c: Likewise.
1089 * exec.c: Likewise.
1090 * expprint.c: Likewise.
1091 * f-exp.y: Likewise.
1092 * f-lang.c: Likewise.
1093 * f-typeprint.c: Likewise.
1094 * f-valprint.c: Likewise.
1095 * fbsd-nat.c: Likewise.
1096 * findcmd.c: Likewise.
1097 * findvar.c: Likewise.
1098 * fork-child.c: Likewise.
1099 * frame.c: Likewise.
1100 * frv-linux-tdep.c: Likewise.
1101 * frv-tdep.c: Likewise.
1102 * gdb.c: Likewise.
1103 * gdb_bfd.c: Likewise.
1104 * gdbarch.c: Likewise.
1105 * gdbarch.sh: Likewise.
1106 * gdbtypes.c: Likewise.
1107 * gnu-nat.c: Likewise.
1108 * gnu-v2-abi.c: Likewise.
1109 * gnu-v3-abi.c: Likewise.
1110 * go-exp.y: Likewise.
1111 * go-lang.c: Likewise.
1112 * go32-nat.c: Likewise.
1113 * guile/guile.c: Likewise.
1114 * guile/scm-auto-load.c: Likewise.
1115 * hppa-hpux-tdep.c: Likewise.
1116 * hppa-linux-nat.c: Likewise.
1117 * hppanbsd-tdep.c: Likewise.
1118 * hppaobsd-tdep.c: Likewise.
1119 * i386-cygwin-tdep.c: Likewise.
1120 * i386-dicos-tdep.c: Likewise.
1121 * i386-linux-tdep.c: Likewise.
1122 * i386-nto-tdep.c: Likewise.
1123 * i386-sol2-tdep.c: Likewise.
1124 * i386-tdep.c: Likewise.
1125 * i386bsd-tdep.c: Likewise.
1126 * i386gnu-nat.c: Likewise.
1127 * i386nbsd-tdep.c: Likewise.
1128 * i386obsd-tdep.c: Likewise.
1129 * i387-tdep.c: Likewise.
1130 * ia64-libunwind-tdep.c: Likewise.
1131 * ia64-linux-nat.c: Likewise.
1132 * inf-child.c: Likewise.
1133 * inf-ptrace.c: Likewise.
1134 * inf-ttrace.c: Likewise.
1135 * infcall.c: Likewise.
1136 * infcmd.c: Likewise.
1137 * inflow.c: Likewise.
1138 * infrun.c: Likewise.
1139 * interps.c: Likewise.
1140 * iq2000-tdep.c: Likewise.
1141 * irix5-nat.c: Likewise.
1142 * jv-exp.y: Likewise.
1143 * jv-lang.c: Likewise.
1144 * jv-typeprint.c: Likewise.
1145 * jv-valprint.c: Likewise.
1146 * language.c: Likewise.
1147 * linux-fork.c: Likewise.
1148 * linux-nat.c: Likewise.
1149 * lm32-tdep.c: Likewise.
1150 * m2-exp.y: Likewise.
1151 * m2-typeprint.c: Likewise.
1152 * m32c-tdep.c: Likewise.
1153 * m32r-linux-nat.c: Likewise.
1154 * m32r-linux-tdep.c: Likewise.
1155 * m32r-rom.c: Likewise.
1156 * m32r-tdep.c: Likewise.
1157 * m68hc11-tdep.c: Likewise.
1158 * m68k-tdep.c: Likewise.
1159 * m68kbsd-tdep.c: Likewise.
1160 * m68klinux-nat.c: Likewise.
1161 * m68klinux-tdep.c: Likewise.
1162 * m88k-tdep.c: Likewise.
1163 * machoread.c: Likewise.
1164 * macrocmd.c: Likewise.
1165 * main.c: Likewise.
1166 * mdebugread.c: Likewise.
1167 * mem-break.c: Likewise.
1168 * memattr.c: Likewise.
1169 * memory-map.c: Likewise.
1170 * mep-tdep.c: Likewise.
1171 * mi/mi-cmd-break.c: Likewise.
1172 * mi/mi-cmd-disas.c: Likewise.
1173 * mi/mi-cmd-env.c: Likewise.
1174 * mi/mi-cmd-stack.c: Likewise.
1175 * mi/mi-cmd-var.c: Likewise.
1176 * mi/mi-cmds.c: Likewise.
1177 * mi/mi-console.c: Likewise.
1178 * mi/mi-getopt.c: Likewise.
1179 * mi/mi-interp.c: Likewise.
1180 * mi/mi-main.c: Likewise.
1181 * mi/mi-parse.c: Likewise.
1182 * microblaze-rom.c: Likewise.
1183 * microblaze-tdep.c: Likewise.
1184 * mingw-hdep.c: Likewise.
1185 * minidebug.c: Likewise.
1186 * minsyms.c: Likewise.
1187 * mips-irix-tdep.c: Likewise.
1188 * mips-linux-tdep.c: Likewise.
1189 * mips-tdep.c: Likewise.
1190 * mips64obsd-tdep.c: Likewise.
1191 * mipsnbsd-tdep.c: Likewise.
1192 * mipsread.c: Likewise.
1193 * mn10300-linux-tdep.c: Likewise.
1194 * mn10300-tdep.c: Likewise.
1195 * monitor.c: Likewise.
1196 * moxie-tdep.c: Likewise.
1197 * mt-tdep.c: Likewise.
1198 * nat/linux-btrace.c: Likewise.
1199 * nat/linux-osdata.c: Likewise.
1200 * nat/linux-procfs.c: Likewise.
1201 * nat/linux-ptrace.c: Likewise.
1202 * nat/linux-waitpid.c: Likewise.
1203 * nbsd-tdep.c: Likewise.
1204 * nios2-linux-tdep.c: Likewise.
1205 * nto-procfs.c: Likewise.
1206 * nto-tdep.c: Likewise.
1207 * objc-lang.c: Likewise.
1208 * objfiles.c: Likewise.
1209 * opencl-lang.c: Likewise.
1210 * osabi.c: Likewise.
1211 * osdata.c: Likewise.
1212 * p-exp.y: Likewise.
1213 * p-lang.c: Likewise.
1214 * p-typeprint.c: Likewise.
1215 * parse.c: Likewise.
1216 * posix-hdep.c: Likewise.
1217 * ppc-linux-nat.c: Likewise.
1218 * ppc-sysv-tdep.c: Likewise.
1219 * ppcfbsd-tdep.c: Likewise.
1220 * ppcnbsd-tdep.c: Likewise.
1221 * ppcobsd-tdep.c: Likewise.
1222 * printcmd.c: Likewise.
1223 * procfs.c: Likewise.
1224 * prologue-value.c: Likewise.
1225 * python/py-auto-load.c: Likewise.
1226 * python/py-gdb-readline.c: Likewise.
1227 * ravenscar-thread.c: Likewise.
1228 * regcache.c: Likewise.
1229 * registry.c: Likewise.
1230 * remote-fileio.c: Likewise.
1231 * remote-m32r-sdi.c: Likewise.
1232 * remote-mips.c: Likewise.
1233 * remote-notif.c: Likewise.
1234 * remote-sim.c: Likewise.
1235 * remote.c: Likewise.
1236 * reverse.c: Likewise.
1237 * rs6000-aix-tdep.c: Likewise.
1238 * ser-base.c: Likewise.
1239 * ser-go32.c: Likewise.
1240 * ser-mingw.c: Likewise.
1241 * ser-pipe.c: Likewise.
1242 * ser-tcp.c: Likewise.
1243 * ser-unix.c: Likewise.
1244 * serial.c: Likewise.
1245 * sh-tdep.c: Likewise.
1246 * sh64-tdep.c: Likewise.
1247 * shnbsd-tdep.c: Likewise.
1248 * skip.c: Likewise.
1249 * sol-thread.c: Likewise.
1250 * solib-dsbt.c: Likewise.
1251 * solib-frv.c: Likewise.
1252 * solib-osf.c: Likewise.
1253 * solib-som.c: Likewise.
1254 * solib-spu.c: Likewise.
1255 * solib-target.c: Likewise.
1256 * solib.c: Likewise.
1257 * somread.c: Likewise.
1258 * source.c: Likewise.
1259 * sparc-nat.c: Likewise.
1260 * sparc-sol2-tdep.c: Likewise.
1261 * sparc-tdep.c: Likewise.
1262 * sparc64-tdep.c: Likewise.
1263 * sparc64fbsd-tdep.c: Likewise.
1264 * sparc64nbsd-tdep.c: Likewise.
1265 * sparcnbsd-tdep.c: Likewise.
1266 * spu-linux-nat.c: Likewise.
1267 * spu-multiarch.c: Likewise.
1268 * spu-tdep.c: Likewise.
1269 * stabsread.c: Likewise.
1270 * stack.c: Likewise.
1271 * std-regs.c: Likewise.
1272 * symfile.c: Likewise.
1273 * symmisc.c: Likewise.
1274 * symtab.c: Likewise.
1275 * target.c: Likewise.
1276 * thread.c: Likewise.
1277 * tilegx-linux-nat.c: Likewise.
1278 * tilegx-tdep.c: Likewise.
1279 * top.c: Likewise.
1280 * tracepoint.c: Likewise.
1281 * tui/tui-command.c: Likewise.
1282 * tui/tui-data.c: Likewise.
1283 * tui/tui-disasm.c: Likewise.
1284 * tui/tui-file.c: Likewise.
1285 * tui/tui-layout.c: Likewise.
1286 * tui/tui-out.c: Likewise.
1287 * tui/tui-regs.c: Likewise.
1288 * tui/tui-source.c: Likewise.
1289 * tui/tui-stack.c: Likewise.
1290 * tui/tui-win.c: Likewise.
1291 * tui/tui-windata.c: Likewise.
1292 * tui/tui-winsource.c: Likewise.
1293 * typeprint.c: Likewise.
1294 * ui-file.c: Likewise.
1295 * ui-out.c: Likewise.
1296 * user-regs.c: Likewise.
1297 * utils.c: Likewise.
1298 * v850-tdep.c: Likewise.
1299 * valarith.c: Likewise.
1300 * valops.c: Likewise.
1301 * valprint.c: Likewise.
1302 * value.c: Likewise.
1303 * varobj.c: Likewise.
1304 * vax-tdep.c: Likewise.
1305 * vaxnbsd-tdep.c: Likewise.
1306 * vaxobsd-tdep.c: Likewise.
1307 * windows-nat.c: Likewise.
1308 * xcoffread.c: Likewise.
1309 * xml-support.c: Likewise.
1310 * xstormy16-tdep.c: Likewise.
1311 * xtensa-linux-nat.c: Likewise.
1312
dccbb609
GB
13132014-08-07 Gary Benson <gbenson@redhat.com>
1314
1315 * common/common-defs.h: Include gdb_assert.h.
1316 * aarch64-tdep.c: Do not include gdb_assert.h.
1317 * addrmap.c: Likewise.
1318 * aix-thread.c: Likewise.
1319 * alpha-linux-tdep.c: Likewise.
1320 * alpha-mdebug-tdep.c: Likewise.
1321 * alphanbsd-tdep.c: Likewise.
1322 * amd64-nat.c: Likewise.
1323 * amd64-tdep.c: Likewise.
1324 * amd64bsd-nat.c: Likewise.
1325 * amd64fbsd-nat.c: Likewise.
1326 * amd64fbsd-tdep.c: Likewise.
1327 * amd64nbsd-nat.c: Likewise.
1328 * amd64nbsd-tdep.c: Likewise.
1329 * amd64obsd-nat.c: Likewise.
1330 * amd64obsd-tdep.c: Likewise.
1331 * arch-utils.c: Likewise.
1332 * arm-tdep.c: Likewise.
1333 * armbsd-tdep.c: Likewise.
1334 * auxv.c: Likewise.
1335 * bcache.c: Likewise.
1336 * bfin-tdep.c: Likewise.
1337 * blockframe.c: Likewise.
1338 * breakpoint.c: Likewise.
1339 * bsd-kvm.c: Likewise.
1340 * bsd-uthread.c: Likewise.
1341 * buildsym.c: Likewise.
1342 * c-exp.y: Likewise.
1343 * c-lang.c: Likewise.
1344 * charset.c: Likewise.
1345 * cleanups.c: Likewise.
1346 * cli-out.c: Likewise.
1347 * cli/cli-decode.c: Likewise.
1348 * cli/cli-dump.c: Likewise.
1349 * cli/cli-logging.c: Likewise.
1350 * cli/cli-script.c: Likewise.
1351 * cli/cli-utils.c: Likewise.
1352 * coffread.c: Likewise.
1353 * common/common-utils.c: Likewise.
1354 * common/queue.h: Likewise.
1355 * common/signals.c: Likewise.
1356 * common/vec.h: Likewise.
1357 * complaints.c: Likewise.
1358 * completer.c: Likewise.
1359 * corelow.c: Likewise.
1360 * cp-abi.c: Likewise.
1361 * cp-name-parser.y: Likewise.
1362 * cp-namespace.c: Likewise.
1363 * cp-support.c: Likewise.
1364 * cris-tdep.c: Likewise.
1365 * dbxread.c: Likewise.
1366 * dictionary.c: Likewise.
1367 * doublest.c: Likewise.
1368 * dsrec.c: Likewise.
1369 * dummy-frame.c: Likewise.
1370 * dwarf2-frame-tailcall.c: Likewise.
1371 * dwarf2-frame.c: Likewise.
1372 * dwarf2expr.c: Likewise.
1373 * dwarf2loc.c: Likewise.
1374 * dwarf2read.c: Likewise.
1375 * eval.c: Likewise.
1376 * event-loop.c: Likewise.
1377 * exceptions.c: Likewise.
1378 * expprint.c: Likewise.
1379 * f-valprint.c: Likewise.
1380 * fbsd-nat.c: Likewise.
1381 * findvar.c: Likewise.
1382 * frame-unwind.c: Likewise.
1383 * frame.c: Likewise.
1384 * frv-tdep.c: Likewise.
1385 * gcore.c: Likewise.
1386 * gdb-dlfcn.c: Likewise.
1387 * gdb_bfd.c: Likewise.
1388 * gdbarch.c: Likewise.
1389 * gdbarch.sh: Likewise.
1390 * gdbtypes.c: Likewise.
1391 * gnu-nat.c: Likewise.
1392 * gnu-v3-abi.c: Likewise.
1393 * go-lang.c: Likewise.
1394 * guile/scm-exception.c: Likewise.
1395 * guile/scm-gsmob.c: Likewise.
1396 * guile/scm-lazy-string.c: Likewise.
1397 * guile/scm-math.c: Likewise.
1398 * guile/scm-pretty-print.c: Likewise.
1399 * guile/scm-safe-call.c: Likewise.
1400 * guile/scm-utils.c: Likewise.
1401 * guile/scm-value.c: Likewise.
1402 * h8300-tdep.c: Likewise.
1403 * hppa-hpux-nat.c: Likewise.
1404 * hppa-tdep.c: Likewise.
1405 * hppanbsd-tdep.c: Likewise.
1406 * hppaobsd-tdep.c: Likewise.
1407 * i386-darwin-nat.c: Likewise.
1408 * i386-darwin-tdep.c: Likewise.
1409 * i386-nto-tdep.c: Likewise.
1410 * i386-tdep.c: Likewise.
1411 * i386bsd-nat.c: Likewise.
1412 * i386fbsd-tdep.c: Likewise.
1413 * i386gnu-nat.c: Likewise.
1414 * i386nbsd-tdep.c: Likewise.
1415 * i386obsd-tdep.c: Likewise.
1416 * i387-tdep.c: Likewise.
1417 * ia64-libunwind-tdep.c: Likewise.
1418 * ia64-tdep.c: Likewise.
1419 * inf-ptrace.c: Likewise.
1420 * inf-ttrace.c: Likewise.
1421 * infcall.c: Likewise.
1422 * infcmd.c: Likewise.
1423 * infrun.c: Likewise.
1424 * inline-frame.c: Likewise.
1425 * interps.c: Likewise.
1426 * jv-lang.c: Likewise.
1427 * jv-typeprint.c: Likewise.
1428 * linux-fork.c: Likewise.
1429 * linux-nat.c: Likewise.
1430 * linux-thread-db.c: Likewise.
1431 * m32c-tdep.c: Likewise.
1432 * m32r-linux-nat.c: Likewise.
1433 * m32r-tdep.c: Likewise.
1434 * m68k-tdep.c: Likewise.
1435 * m68kbsd-nat.c: Likewise.
1436 * m68kbsd-tdep.c: Likewise.
1437 * m88k-tdep.c: Likewise.
1438 * machoread.c: Likewise.
1439 * macroexp.c: Likewise.
1440 * macrotab.c: Likewise.
1441 * maint.c: Likewise.
1442 * mdebugread.c: Likewise.
1443 * memory-map.c: Likewise.
1444 * mep-tdep.c: Likewise.
1445 * mi/mi-common.c: Likewise.
1446 * microblaze-tdep.c: Likewise.
1447 * mingw-hdep.c: Likewise.
1448 * mips-linux-nat.c: Likewise.
1449 * mips-linux-tdep.c: Likewise.
1450 * mips-tdep.c: Likewise.
1451 * mips64obsd-tdep.c: Likewise.
1452 * mipsnbsd-tdep.c: Likewise.
1453 * mn10300-linux-tdep.c: Likewise.
1454 * mn10300-tdep.c: Likewise.
1455 * moxie-tdep.c: Likewise.
1456 * mt-tdep.c: Likewise.
1457 * nat/linux-btrace.c: Likewise.
1458 * nat/linux-osdata.c: Likewise.
1459 * nat/linux-ptrace.c: Likewise.
1460 * nat/mips-linux-watch.c: Likewise.
1461 * nios2-linux-tdep.c: Likewise.
1462 * nios2-tdep.c: Likewise.
1463 * objc-lang.c: Likewise.
1464 * objfiles.c: Likewise.
1465 * obsd-nat.c: Likewise.
1466 * opencl-lang.c: Likewise.
1467 * osabi.c: Likewise.
1468 * parse.c: Likewise.
1469 * ppc-linux-nat.c: Likewise.
1470 * ppc-sysv-tdep.c: Likewise.
1471 * ppcfbsd-nat.c: Likewise.
1472 * ppcfbsd-tdep.c: Likewise.
1473 * ppcnbsd-nat.c: Likewise.
1474 * ppcnbsd-tdep.c: Likewise.
1475 * ppcobsd-nat.c: Likewise.
1476 * ppcobsd-tdep.c: Likewise.
1477 * printcmd.c: Likewise.
1478 * procfs.c: Likewise.
1479 * prologue-value.c: Likewise.
1480 * psymtab.c: Likewise.
1481 * python/py-lazy-string.c: Likewise.
1482 * python/py-value.c: Likewise.
1483 * regcache.c: Likewise.
1484 * reggroups.c: Likewise.
1485 * registry.c: Likewise.
1486 * remote-sim.c: Likewise.
1487 * remote.c: Likewise.
1488 * rs6000-aix-tdep.c: Likewise.
1489 * rs6000-tdep.c: Likewise.
1490 * s390-linux-tdep.c: Likewise.
1491 * score-tdep.c: Likewise.
1492 * ser-base.c: Likewise.
1493 * ser-mingw.c: Likewise.
1494 * sh-tdep.c: Likewise.
1495 * sh64-tdep.c: Likewise.
1496 * solib-darwin.c: Likewise.
1497 * solib-spu.c: Likewise.
1498 * solib-svr4.c: Likewise.
1499 * source.c: Likewise.
1500 * sparc-nat.c: Likewise.
1501 * sparc-sol2-tdep.c: Likewise.
1502 * sparc-tdep.c: Likewise.
1503 * sparc64-sol2-tdep.c: Likewise.
1504 * sparc64-tdep.c: Likewise.
1505 * sparc64fbsd-tdep.c: Likewise.
1506 * sparc64nbsd-tdep.c: Likewise.
1507 * sparc64obsd-tdep.c: Likewise.
1508 * sparcnbsd-tdep.c: Likewise.
1509 * sparcobsd-tdep.c: Likewise.
1510 * spu-multiarch.c: Likewise.
1511 * spu-tdep.c: Likewise.
1512 * stabsread.c: Likewise.
1513 * stack.c: Likewise.
1514 * symfile.c: Likewise.
1515 * symtab.c: Likewise.
1516 * target-descriptions.c: Likewise.
1517 * target-memory.c: Likewise.
1518 * target.c: Likewise.
1519 * tic6x-linux-tdep.c: Likewise.
1520 * tic6x-tdep.c: Likewise.
1521 * tilegx-linux-nat.c: Likewise.
1522 * tilegx-tdep.c: Likewise.
1523 * top.c: Likewise.
1524 * tramp-frame.c: Likewise.
1525 * tui/tui-out.c: Likewise.
1526 * tui/tui-winsource.c: Likewise.
1527 * ui-out.c: Likewise.
1528 * user-regs.c: Likewise.
1529 * utils.c: Likewise.
1530 * v850-tdep.c: Likewise.
1531 * valops.c: Likewise.
1532 * value.c: Likewise.
1533 * varobj.c: Likewise.
1534 * vax-nat.c: Likewise.
1535 * xml-syscall.c: Likewise.
1536 * xml-tdesc.c: Likewise.
1537 * xstormy16-tdep.c: Likewise.
1538 * xtensa-linux-nat.c: Likewise.
1539 * xtensa-tdep.c: Likewise.
1540
e76df0d0
GB
15412014-08-07 Gary Benson <gbenson@redhat.com>
1542
1543 * common/common-defs.h: Include common-utils.h.
1544 * defs.h: Do not include common-utils.h.
1545 * common/gdb_assert.h: Likewise.
1546 * darwin-nat.h: Likewise.
1547 * nat/linux-btrace.c: Likewise.
1548 * target/waitstatus.h: Likewise.
1549
4cb9c816
GB
15502014-08-07 Gary Benson <gbenson@redhat.com>
1551
1552 * common/common-defs.h: Include ptid.h.
1553 * defs.h: Do not include ptid.h.
1554 * inferior.h: Likewise.
1555 * infrun.h: Likewise.
1556 * nat/linux-btrace.h: Likewise.
1557 * nat/linux-osdata.h: Likewise.
1558 * target/waitstatus.h: Likewise.
1559
3995eeee
GB
15602014-08-07 Gary Benson <gbenson@redhat.com>
1561
1562 * common/common-defs.h: Include gdb_locale.h.
1563 * defs.h: Do not include gdb_locale.h.
1564
cb9f1a9b
GB
15652014-08-07 Gary Benson <gbenson@redhat.com>
1566
1567 * common/common-defs.h: Include gdb/signals.h.
1568 * defs.h: Do not include gdb/signals.h.
1569
a5fceff8
GB
15702014-08-07 Gary Benson <gbenson@redhat.com>
1571
1572 * common/common-defs.h: Include pathmax.h.
1573 * defs.h: Do not include pathmax.h.
1574
b9391142
GB
15752014-08-07 Gary Benson <gbenson@redhat.com>
1576
1577 * common/common-defs.h: Include libiberty.h.
1578 * defs.h: Do not include libiberty.h.
1579 * common/queue.h: Likewise.
1580 * cp-name-parser.y: Likewise.
1581 * mi/mi-cmd-catch.c: Likewise.
1582 * python/python.c: Likewise.
1583
0e443c87
GB
15842014-08-07 Gary Benson <gbenson@redhat.com>
1585
1586 * common/common-defs.h: Include ansidecl.h.
1587 * defs.h: Do not include ansidecl.h.
1588 * common/buffer.h: Likewise.
1589 * common/common-utils.h: Likewise.
1590
8ebb3f56
GB
15912014-08-07 Gary Benson <gbenson@redhat.com>
1592
1593 * common/common-defs.h: Include stddef.h.
1594 * defs.h: Do not include stddef.h.
1595 * common/common-utils.h: Likewise.
1596 * amd64fbsd-nat.c: Likewise.
1597 * bcache.c: Likewise.
1598 * charset.c: Likewise.
1599 * common/buffer.h: Likewise.
1600 * common/vec.h: Likewise.
1601 * i386bsd-nat.c: Likewise.
1602 * nat/linux-btrace.h: Likewise.
1603 * ppcfbsd-nat.c: Likewise.
1604 * ppcnbsd-tdep.h: Likewise.
1605 * ppcobsd-nat.c: Likewise.
1606 * ppcobsd-tdep.h: Likewise.
1607 * python/py-gdb-readline.c: Likewise.
1608
8980bdf6
GB
16092014-08-07 Gary Benson <gbenson@redhat.com>
1610
1611 * common/common-defs.h: Include stdarg.h.
1612 * defs.h: Do not include stdarg.h.
1613 * ada-lang.c: Likewise.
1614 * common/common-utils.h: Likewise.
1615 * guile/scm-string.c: Likewise.
1616 * guile/scm-utils.c: Likewise.
1617 * m32c-tdep.c: Likewise.
1618
d7096f71
GB
16192014-08-07 Gary Benson <gbenson@redhat.com>
1620
1621 * common/common-defs.h: Include stdlib.h.
1622 * defs.h: Do not include stdlib.h.
1623 * addrmap.c: Likewise.
1624 * bcache.c: Likewise.
1625 * common/buffer.c: Likewise.
1626 * common/common-utils.c: Likewise.
1627 * cp-name-parser.y: Likewise.
1628 * go32-nat.c: Likewise.
1629 * mn10300-linux-tdep.c: Likewise.
1630 * nat/linux-osdata.c: Likewise.
1631 * tui/tui.c: Likewise.
1632 * windows-nat.c: Likewise.
1633
d02f550d
GB
16342014-08-07 Gary Benson <gbenson@redhat.com>
1635
1636 * common/common-defs.h: Include stdio.h.
1637 * defs.h: Do not include stdio.h.
1638 * ada-lang.c: Likewise.
1639 * common/buffer.c: Likewise.
1640 * common/common-utils.c: Likewise.
1641 * cp-name-parser.y: Likewise.
1642 * gnu-nat.c: Likewise.
1643 * go32-nat.c: Likewise.
1644 * i386gnu-nat.c: Likewise.
1645 * proc-api.c: Likewise.
1646 * proc-events.c: Likewise.
1647 * proc-flags.c: Likewise.
1648 * proc-why.c: Likewise.
1649 * python/python-internal.h: Likewise.
1650 * target-memory.c: Likewise.
1651 * tui/tui-io.c: Likewise.
1652 * tui/tui.c: Likewise.
1653
b6d7a4bf
SM
16542014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1655
1656 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1657 (scan_dyntag_auxv): Same.
1658
af19829b
YQ
16592014-08-06 Yao Qi <yao@codesourcery.com>
1660
1661 * amd64-linux-nat.c: Remove duplicated include
1662 "x86-linux-nat.h".
1663 * i386-linux-nat.c: Likewise.
1664
8e07a239
YQ
16652014-08-06 Yao Qi <yao@codesourcery.com>
1666
1667 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1668 operand" with "Special opcode" in comments.
1669
7bfe8241
GB
16702014-08-05 Gary Benson <gbenson@redhat.com>
1671
1672 * interps.c (initialize_interps): Remove prototype.
1673 (interpreter_initialized): Remove static global.
1674 (interp_add): Do not call initialize_interps.
1675 (initialize_interps): Remove function.
1676
d6c95504
GB
16772014-08-05 Gary Benson <gbenson@redhat.com>
1678
1679 * utils.c (vwarning): Remove spurious va_end.
1680
241fd515
AM
16812014-08-05 Alan Modra <amodra@gmail.com>
1682
1683 * charset.c (convert_between_encodings): Cast result of obstack_base.
1684 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1685 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1686 (read_unwind_info): Use size_t for some locals.
1687 * jit.c (finalize_symtab): Likewise.
1688 * utils.c (hashtab_obstack_allocate): Likewise.
1689 * symmisc.c (print_objfile_statistics): Update format strings.
1690
dc304a94
JK
16912014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1694 (Changes in GDB 7.8): ... here.
1695
3cecbbbe
TT
16962014-08-04 Tom Tromey <tromey@redhat.com>
1697
1698 * target.c (set_targetdebug): New function.
1699 (initialize_targets): Pass set_targetdebug when creating "set
1700 debug target".
1701
6908c509
JB
17022014-08-01 Joel Brobecker <brobecker@adacore.com>
1703
1704 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1705 if detecting a variable-sized field that is not the last field.
1706 Fix struct type length computation.
1707
53e8f97d
JB
17082014-08-01 Joel Brobecker <brobecker@adacore.com>
1709
1710 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1711 Add debug trace.
1712
e068c55d
JB
17132014-08-01 Joel Brobecker <brobecker@adacore.com>
1714
1715 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1716 Remove "+ 8" offset in computation of CHAIN_VMA.
1717
4d4ca2a1
DE
17182014-07-31 Doug Evans <dje@google.com>
1719
1720 * inflow.c (child_terminal_inferior): Add comment.
1721 (child_terminal_ours_for_output): Add comment.
1722 (child_terminal_ours): Add comment.
1723 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1724 (linux_nat_terminal_ours): Add comment.
1725
462f517e
GB
17262014-07-31 Gary Benson <gbenson@redhat.com>
1727
1728 * common/btrace-common.h: Do not include defs.h or server.h.
1729 * nat/mips-linux-watch.h: Likewise.
1730 * gdb-dlfcn.h: Do not include defs.h.
1731 * tracefile.h: Likewise.
1732
74228e77
RM
17332014-07-30 Roland McGrath <mcgrathr@google.com>
1734
1735 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1736
014f9477
TT
17372014-07-30 Tom Tromey <tromey@redhat.com>
1738
1739 * bsd-kvm.c (bsd_kvm_open): Constify.
1740 * corelow.c (core_open): Constify.
1741 * ctf.c (ctf_open): Constify.
1742 * dbug-rom.c (dbug_open): Constify.
1743 * exec.c (exec_open): Constify.
1744 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1745 * microblaze-rom.c (picobug_open): Constify.
1746 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1747 Constify.
1748 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1749 * record-btrace.c (record_btrace_open): Constify.
1750 * record-full.c (record_full_core_open_1, record_full_open_1)
1751 (record_full_open): Constify.
1752 * remote-m32r-sdi.c (m32r_open): Constify.
1753 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1754 (rockhopper_open, lsi_open): Constify.
1755 * remote-sim.c (gdbsim_open): Constify.
1756 * remote.c (remote_open, extended_remote_open, remote_open_1):
1757 Constify.
1758 * target.h (struct target_ops) <to_open>: Make "arg" const.
1759 * tracefile-tfile.c (tfile_open): Constify.
1760
e799154c
TT
17612014-07-30 Tom Tromey <tromey@redhat.com>
1762
1763 * breakpoint.c (map_breakpoint_numbers): Update.
1764 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1765 (get_number_const): New function.
1766 (get_number): Rewrite using get_number_const.
1767 (init_number_or_range): Make "string" const.
1768 (number_is_in_list): Make "list" const.
1769 * cli/cli-utils.h (get_number_const): Declare.
1770 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1771 (init_number_or_range, number_is_in_list): Update.
1772 * printcmd.c (map_display_numbers): Update.
1773 * value.c (value_from_history_ref): Constify.
1774 * value.h (value_from_history_ref): Update.
1775
5f08566b
TT
17762014-07-30 Tom Tromey <tromey@redhat.com>
1777
1778 * corefile.c (hook_type, call_extra_exec_file_hooks)
1779 (specify_exec_file_hook): Constify.
1780 * exec.c (exec_file_attach): Make "filename" const.
1781 * gdbcore.h (deprecated_exec_file_display_hook)
1782 (specify_exec_file_hook, exec_file_attach): Constify.
1783 * main.c (captured_main): Use catch_command_errors_const.
1784
8981c758
TT
17852014-07-30 Tom Tromey <tromey@redhat.com>
1786
1787 * target.c (open_target): New function.
1788 (add_target_with_completer, add_deprecated_target_alias): Use
1789 set_cmd_sfunc, set_cmd_context.
1790 (debug_to_open): Remove.
1791 (setup_target_debug): Update.
1792
a1c7835a
YQ
17932014-07-30 Yao Qi <yao@codesourcery.com>
1794
1795 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1796 comments.
1797 * parse.c (exp_iterate): Update comments.
1798
976411d6
GB
17992014-07-30 Gary Benson <gbenson@redhat.com>
1800
1801 * common/common-defs.h: New file.
1802 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1803 * defs.h: Include common-defs.h.
1804 Do not include config.h or build-gnulib/config.h.
1805
5d4848a4
GB
18062014-07-30 Gary Benson <gbenson@redhat.com>
1807
1808 * common/common-utils.h: Do not include config.h.
1809 * nat/linux-btrace.h: Likewise.
1810
d41f6d8e
GB
18112014-07-30 Gary Benson <gbenson@redhat.com>
1812
1813 * btrace.c: Include defs.h.
1814 * common/ptid.c: Include defs.h or server.h as appropriate.
1815 * nat/mips-linux-watch.c: Likewise.
1816
84202f9c
TT
18172014-07-29 Tom Tromey <tromey@redhat.com>
1818
1819 * target.c (target_is_pushed): Simplify.
1820
2530441c
JB
18212014-07-29 Joel Brobecker <brobecker@adacore.com>
1822
1823 GDB 7.8 released.
1824
7e09a223
YQ
18252014-07-29 Yao Qi <yao@codesourcery.com>
1826
1827 PR gdb/17206
1828 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1829
7ebdbe92
DE
18302014-07-28 Doug Evans <xdje42@gmail.com>
1831
1832 PR guile/17203
1833 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1834 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1835 parameters.
1836
f347ffc9
WN
18372014-07-28 Will Newton <will.newton@linaro.org>
1838
1839 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1840 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1841 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1842 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1843 (THUMB2_EABI_SYSCALL): Likewise.
1844 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1845 struct tramp_frame.
1846 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1847 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1848
37c5f1f7
DE
18492014-07-27 Doug Evans <xdje42@gmail.com>
1850
1851 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1852
0c3abbc7
DE
18532014-07-27 Doug Evans <xdje42@gmail.com>
1854
1855 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1856
e76c5d17
DE
18572014-07-26 Ludovic Courtès <ludo@gnu.org>
1858 Doug Evans <xdje42@gmail.com>
1859
1860 PR guile/17146
1861 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1862 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1863 * configure.ac: Try to use guild to compile an scm file, if it fails
1864 then disable guile support.
1865 * configure: Regenerate.
1866 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1867 GUILE_FILE_LIST.
1868 (GUILE_COMPILED_FILES): New variable.
1869 (GUILE_FILES) Update.
1870 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1871 (stamp-guile): Compile scm files.
1872 * guile/guile.c (boot_guile_support): New function.
1873 (standard_throw_args_p): New function.
1874 (print_standard_throw_error, print_throw_error): New functions.
1875 (handle_boot_error): New function.
1876 (initialize_scheme_side): Rewrite to call boot_guile_support.
1877 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1878 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1879
186fcde0
DE
18802014-07-26 Ludovic Courtès <ludo@gnu.org>
1881 Doug Evans <xdje42@gmail.com>
1882
1883 PR guile/17146
1884 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1885 * guile/lib/gdb/support.scm: New file.
1886 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1887 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1888 All uses updated.
1889 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1890 All uses updated.
1891 (%assert-type): Ditto, and renamed to assert-type.
1892 (%exception-print-style): Delete.
1893
4df42755
DE
18942014-07-26 Doug Evans <xdje42@gmail.com>
1895
1896 PR build/17105
1897 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1898 * configure: Regenerate.
1899 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1900 PYTHON_FILES.
1901 (PYTHON_FILES): New variable.
1902 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1903 (GUILE_FILES): New variable.
1904 (stamp-python, install-python, uninstall-python): Handle empty
1905 file list.
1906 (stamp-guile, install-guile, uninstall-guile): Ditto.
1907
ee7333ae
DE
19082014-07-26 Doug Evans <xdje42@gmail.com>
1909
1910 PR guile/17177
1911 * guile/lib/gdb.scm (pretty-printers): Export.
1912 (set-pretty-printers!): Export.
1913 * guile/lib/gdb/printing.scm (gdb module): Update.
1914 (prepend-pretty-printer!, append-pretty-printer!): Update.
1915 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1916 (pretty_printer_list_var): Delete.
1917 (pretty_printer_list): New static global.
1918 (gdbscm_pretty_printers): New function.
1919 (gdbscm_set_pretty_printers_x): New function.
1920 (ppscm_find_pretty_printer_from_gdb): Update.
1921 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1922 (gdbscm_initialize_pretty_printers): Update.
1923
74edf516
DE
19242014-07-26 Doug Evans <xdje42@gmail.com>
1925
1926 PR 17185
1927 * configure.ac: Add check for header gc/gc.h.
1928 Add check for function setenv.
1929 * configure: Regenerate.
1930 * config.in: Regenerate.
1931 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1932
d54398a7
MR
19332014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1934
1935 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1936 variation in gdbarch matching.
1937
ab16fce8
TT
19382014-07-25 Tom Tromey <tromey@redhat.com>
1939
1940 * exec.c (using_exec_ops): Remove.
1941 (exec_close_1): Update. Remove extraneous block, reindent.
1942 (add_target_sections): Use target_is_pushed.
1943
88056fbb
PA
19442014-07-25 Pedro Alves <palves@redhat.com>
1945
1946 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1947 * monitor.c (monitor_create_inferior): Likewise.
1948 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1949 * remote-sim.c (gdbsim_create_inferior): Likewise.
1950 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1951 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1952 * windows-nat.c (do_initial_windows_stuff): Likewise.
1953
70509625
PA
19542014-07-25 Pedro Alves <palves@redhat.com>
1955
1956 * NEWS: Mention signal passing and "signal" command changes.
1957 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1958 comment.
1959 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1960 call.
1961 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1962 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1963 (jump_command): Adjust clear_proceed_status call.
1964 (signal_command): Warn if other thread that are resumed have
1965 signals that will be delivered. Adjust clear_proceed_status call.
1966 (until_next_command, finish_command)
1967 (proceed_after_attach_callback, attach_command_post_wait)
1968 (attach_command): Adjust clear_proceed_status call.
1969 * infrun.c (proceed_after_vfork_done): Likewise.
1970 (proceed_after_attach_callback): Adjust comment.
1971 (clear_proceed_status_thread): Clear stop_signal if not in pass
1972 state.
1973 (clear_proceed_status_callback): Delete.
1974 (clear_proceed_status): New 'step' parameter. Only clear the
1975 proceed status of threads the command being prepared is about to
1976 resume.
1977 (proceed): If passed in an explicit signal, override stop_signal
1978 with it. Don't pass the last stop signal to the thread we're
1979 resuming.
1980 (init_wait_for_inferior): Adjust clear_proceed_status call.
1981 (switch_back_to_stepped_thread): Clear the signal if it should not
1982 be passed.
1983 * infrun.h (clear_proceed_status): New 'step' parameter.
1984 (user_visible_resume_ptid): Add comment.
1985 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1986 signal is in pass state.
1987 * remote.c (append_pending_thread_resumptions): Likewise.
1988 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1989
d8be2939
TT
19902014-07-25 Tom Tromey <tromey@redhat.com>
1991
1992 * target.h (target_stopped_data_address)
1993 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1994 parentheses.
1995
7d0d9d2b
PL
19962014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1997
1998 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1999 comments.
2000 (avr_pointer_to_address): Likewise.
2001
e9e7f724
TT
20022014-07-24 Tom Tromey <tromey@redhat.com>
2003
2004 * monitor.c (compile_pattern): Update.
2005 * target.h (struct target_ops) <to_shortname, to_longname,
2006 to_doc>: Now const.
2007
1947513d
TT
20082014-07-24 Tom Tromey <tromey@redhat.com>
2009
2010 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2011 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2012 (add_info_alias, add_com): Make "doc" const.
2013 (print_doc_line): Make "str" const.
2014 (delete_cmd): Update.
2015 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2016 (print_doc_line): Update.
2017 * cli/cli-script.c (document_command): Update.
2018 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2019 (add_com, add_info, add_info_alias): Update.
2020 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2021 * python/py-cmd.c (cmdpy_destroyer): Update.
2022
64e61d29
TT
20232014-07-24 Tom Tromey <tromey@redhat.com>
2024
2025 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2026 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2027 (help_cmd_list): Constify.
2028 (lookup_cmd): Update.
2029 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2030 const.
2031 (help_cmd_list, apropos_cmd): Update.
2032 * cli/cli-script.c (show_user): Update.
2033 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2034 * cli/cli-setshow.h (cmd_show_list): Update.
2035 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2036 (cmd_show_list): Update.
2037 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2038 * python/py-cmd.c (cmdpy_destroyer): Update.
2039
429e55ea
TT
20402014-07-24 Tom Tromey <tromey@redhat.com>
2041
2042 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2043 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2044 const.
2045 * command.h (deprecate_cmd): Update.
2046 * maint.c (maintenance_do_deprecate): Add casts.
2047
64669f3b
TT
20482014-07-24 Tom Tromey <tromey@redhat.com>
2049
2050 * cli/cli-decode.c (help_cmd): Make parameter "const".
2051 * cli/cli-decode.h (help_cmd): Update.
2052
d3d3328b
TT
20532014-07-24 Tom Tromey <tromey@redhat.com>
2054
2055 * stack.c (up_silently_base, down_silently_base): Make argument
2056 const.
2057
414842dc
TT
20582014-07-24 Tom Tromey <tromey@redhat.com>
2059
2060 * solib.c (solib_add): Make "pattern" const.
2061 * solib.h (solib_add): Update.
2062
baa336ce
TT
20632014-07-24 Tom Tromey <tromey@redhat.com>
2064
2065 * remote.c (remote_serial_open, print_packet, putpkt)
2066 (putpkt_binary): Constify.
2067 * remote.h (putpkt): Update.
2068
5a19e2d0
TT
20692014-07-24 Tom Tromey <tromey@redhat.com>
2070
2071 * monitor.c (monitor_open): Make "args" const.
2072 * monitor.h (monitor_open): Update.
2073
fc4baa5e
TT
20742014-07-24 Tom Tromey <tromey@redhat.com>
2075
2076 * maint.c (match_bfd_flags): Make "string" const.
2077 (print_bfd_section_info): Remove casts.
2078 (print_objfile_section_info): Make "string" const.
2079
0d5f0dbe
TT
20802014-07-24 Tom Tromey <tromey@redhat.com>
2081
2082 * inf-child.c (inf_child_open_target): Make "arg" const.
2083 * inf-child.h (inf_child_open_target): Update.
2084
41c77899
TT
20852014-07-24 Tom Tromey <tromey@redhat.com>
2086
2087 * environ.c (unset_in_environ): Make "var" const.
2088 * environ.h (unset_in_environ): Update.
2089
93db0d79
TT
20902014-07-24 Tom Tromey <tromey@redhat.com>
2091
2092 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2093 Make "cmd" const.
2094 (scan_filename_with_cleanup): Likewise.
2095 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2096 Make arguments const.
2097 (restore_command): Update.
2098
36d6eb95
PA
20992014-07-24 Pedro Alves <palves@redhat.com>
2100
2101 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2102
8009206a
TT
21032014-07-24 Tom Tromey <tromey@redhat.com>
2104 Gary Benson <gbenson@redhat.com>
2105
2106 * nat/linux-ptrace.c (additional_flags): New global.
2107 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2108 additional_flags; don't check GDBSERVER.
2109 (linux_ptrace_set_additional_flags): New function.
2110 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2111 Declare.
2112 * linux-nat.c (_initialize_linux_nat): Call
2113 linux_ptrace_set_additional_flags.
2114
a7068b60
TT
21152014-07-24 Tom Tromey <tromey@redhat.com>
2116
2117 * make-target-delegates (munge_type, write_debugmethod): New
2118 functions.
2119 (debug_names): New global.
2120 ($TARGET_DEBUG_PRINTER): New global.
2121 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2122 name.
2123 Write debug methods. Generate init_debug_target.
2124 * target-debug.h: New file.
2125 * target-delegates.c: Rebuild.
2126 * target.c: Include target-debug.h.
2127 (debug_target): Hoist definition.
2128 (target_kill, target_get_section_table, target_memory_map)
2129 (target_flash_erase, target_flash_done, target_detach)
2130 (target_disconnect, target_wait, target_resume)
2131 (target_pass_signals, target_program_signals, target_follow_fork)
2132 (target_mourn_inferior, target_search_memory)
2133 (target_thread_address_space, target_close)
2134 (target_find_new_threads, target_core_of_thread)
2135 (target_verify_memory, target_insert_mask_watchpoint)
2136 (target_remove_mask_watchpoint): Remove targetdebug code.
2137 (debug_to_post_attach, debug_to_prepare_to_store)
2138 (debug_to_files_info, debug_to_insert_breakpoint)
2139 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2140 (debug_to_region_ok_for_hw_watchpoint)
2141 (debug_to_can_accel_watchpoint_condition)
2142 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2143 (debug_to_watchpoint_addr_within_range)
2144 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2145 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2146 (debug_to_terminal_init, debug_to_terminal_inferior)
2147 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2148 (debug_to_terminal_save_ours, debug_to_terminal_info)
2149 (debug_to_load, debug_to_post_startup_inferior)
2150 (debug_to_insert_fork_catchpoint)
2151 (debug_to_remove_fork_catchpoint)
2152 (debug_to_insert_vfork_catchpoint)
2153 (debug_to_remove_vfork_catchpoint)
2154 (debug_to_insert_exec_catchpoint)
2155 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2156 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2157 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2158 (setup_target_debug): Call init_debug_target.
2159 * target.h (TARGET_DEBUG_PRINTER): New macro.
2160 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2161 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2162
2c51604d
GB
21632014-07-24 Gary Benson <gbenson@redhat.com>
2164
2165 * exceptions.h (throw_vfatal): Renamed to...
2166 (throw_vquit): New declaration.
2167 (throw_quit): Likewise.
2168 * exceptions.c (throw_vfatal): Renamed to...
2169 (throw_vquit): New function.
2170 (throw_quit): Likewise.
2171 (throw_error): Call throw_verror rather than throw_it.
2172 * utils.h (vfatal): Removed.
2173 (fatal): Likewise.
2174 * utils.c (vfatal): Removed.
2175 (fatal): Likewise.
2176 (internal_verror): Replaced call to fatal with call to throw_quit.
2177 (quit): Replaced calls to fatal with calls to throw_quit.
2178
34211963
ME
21792014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2180
2181 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2182 target_read_code.
2183
a52b4d3e
ME
21842014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2185
2186 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2187 less than zero in conditional expression.
2188
a8bdc56b
TT
21892014-07-23 Tom Tromey <tromey@redhat.com>
2190
2191 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2192 ($INTRO_PART): Don't match whitespace.
2193 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2194 argument matching.
2195 ($METHOD): Add $METHOD_TRAILER.
2196 (trim): Rewrite.
2197 (scan_target_h): New sub.
2198 Change main loop not to collect state.
2199 * target-delegates.c: Rebuild.
2200
91b52240
GB
22012014-07-23 Gary Benson <gbenson@redhat.com>
2202
2203 * cp-support.c (gdb_demangle): Fix build on systems without
2204 sigaltstack.
2205
45326f6f
JK
22062014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2209 for reference entry value target data value.
2210
e214cf6c
JK
22112014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2212
2213 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2214 value_available_contents_eq.
2215
bddbbedd
PA
22162014-07-22 Pedro Alves <palves@redhat.com>
2217
2218 * value.c (allocate_optimized_out_value): Don't mark value as
2219 non-lazy.
2220
45c71484
JW
22212014-07-22 Jiong Wang <jiong.wang@arm.com>
2222
2223 * MAINTAINERS (Write After Approval): Update my email address.
2224
9597b22a
DE
22252014-07-20 Doug Evans <dje@google.com>
2226
2227 PR server/17147
2228 * remote.c (putpkt_binary): Add text to error message.
2229
91101fe5
YQ
22302014-07-20 Yao Qi <yao@codesourcery.com>
2231
2232 * eval.c: Remove "Chill" from comments.
2233 * gdbtypes.h: Likewise.
2234 * symtab.h: Likewise.
2235
c9402c95
YQ
22362014-07-20 Yao Qi <yao@codesourcery.com>
2237
2238 * std-operator.def: Update comments to TERNOP_SLICE.
2239
ae8fddda
YQ
22402014-07-20 Yao Qi <yao@codesourcery.com>
2241
2242 * std-operator.def: Remove BINOP_RANGE.
2243 * breakpoint.c (watchpoint_exp_is_const): Update.
2244 * expprint.c (dump_subexp_body_standard): Likewise.
2245 * eval.c (init_array_element): Remove dead code.
2246 (evaluate_subexp_standard): Likewise.
2247
9c816640
YQ
22482014-07-20 Yao Qi <yao@codesourcery.com>
2249
2250 * std-operator.def: Remove BINOP_IN.
2251 * breakpoint.c (watchpoint_exp_is_const): Update.
2252 * eval.c (evaluate_subexp_standard): Likewise.
2253 * expprint.c (dump_subexp_body_standard): Likewise.
2254
164224e9
ME
22552014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2256
2257 * microblaze-tdep.c (microblaze_register_names): Add
2258 the rshr and rslr register names.
2259 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2260 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2261 Use of tdesc_numbered_register. Use of
2262 microblaze_register_g_packet_guesses. Use of
2263 tdesc_use_registers. Use of set_gdbarch_register_type.
2264 (microblaze_register_g_packet_guesses): New.
2265 * microblaze-tdep.h (microblaze_reg_num): Add
2266 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2267 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2268 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2269 * features/microblaze-core.xml: New file.
2270 * features/microblaze-stack-protect.xml: New file.
2271 * features/microblaze-with-stack-protect.c: New file.
2272 * features/microblaze-with-stack-protect.xml: New file.
2273 * features/microblaze.xml: New file.
2274 * features/microblaze.c: New file.
2275 * features/Makefile (microblaze-with-stack-protect): Add
2276 microblaze-with-stack-protect microblaze and microblaze-expedite.
2277 * regformats/microblaze-with-stack-protect.dat: New file.
2278 * regformats/microblaze.dat: New file.
2279 * doc/gdb.texinfo (MicroBlaze Features): Added.
2280
e8b2341c
TT
22812014-07-18 Tom Tromey <tromey@redhat.com>
2282
2283 * exec.c (exec_ops): Now static.
2284 * exec.h (exec_ops): Don't declare.
2285
44e89118
TT
22862014-07-18 Tom Tromey <tromey@redhat.com>
2287
2288 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2289 to find_target_beneath.
2290 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2291 find_target_beneath.
2292 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2293
b0ed115f
TT
22942014-07-18 Tom Tromey <tromey@redhat.com>
2295
2296 PR gdb/17130:
2297 * utils.c (quit): Use target_supports_terminal_ours.
2298 * target.h (target_supports_terminal_ours): Declare.
2299 * target.c (target_supports_delete_record): Don't check
2300 to_delete_record against NULL.
2301 (target_supports_terminal_ours): New function.
2302
e75fdfca
TT
23032014-07-18 Tom Tromey <tromey@redhat.com>
2304
2305 PR gdb/17130:
2306 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2307 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2308 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2309 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2310 * windows-nat.c (windows_xfer_partial): Always delegate.
2311 * record-btrace.c (record_btrace_xfer_partial): Simplify
2312 delegation.
2313 (record_btrace_fetch_registers, record_btrace_store_registers)
2314 (record_btrace_prepare_to_store, record_btrace_resume)
2315 (record_btrace_wait, record_btrace_find_new_threads)
2316 (record_btrace_thread_alive): Likewise.
2317 * procfs.c (procfs_xfer_partial): Always delegate.
2318 * corelow.c (core_xfer_partial): Always delegate.
2319 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2320
83814951
TT
23212014-07-18 Tom Tromey <tromey@redhat.com>
2322
2323 * exec.c (exec_make_note_section): Move earlier.
2324
b8b8facf
DE
23252014-07-17 Doug Evans <dje@google.com>
2326
74b49205 2327 PR gdb/17170
b8b8facf
DE
2328 * maint.c (count_symtabs_and_blocks): Handle NULL
2329 current_program_space.
2330 (report_command_stats): Check global enabled flag in addition to
2331 recorded enabled flag.
2332 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2333
69ff6be5
PA
23342014-07-16 Pedro Alves <palves@redhat.com>
2335
2336 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2337
252db1b5
TT
23382014-07-16 Tom Tromey <tromey@redhat.com>
2339
2340 * target.h (struct target_ops) <to_delete_record>: Reformat
2341 comment.
2342
a432721e
TT
23432014-07-16 Tom Tromey <tromey@redhat.com>
2344
2345 * target-delegates.c: Rebuild.
2346
487d9753
PL
23472014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2348
2349 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2350 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2351 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2352 (avr_pointer_to_address): Likewise.
2353 (avr_address_class_type_flags): New function.
2354 (avr_address_class_type_flags_to_name): Likewise.
2355 (avr_address_class_name_to_type_flags): Likewise.
2356 (avr_gdbarch_init): Set address_class_type_flags,
2357 address_class_type_flags_to_name and
2358 address_class_name_to_type_flags.
2359
57745c90
PA
23602014-07-15 Pedro Alves <palves@redhat.com>
2361
2362 * linux-nat.c (kill_callback): Save errno and work with saved
2363 copy.
2364
2d40be18
SM
23652014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2366
2367 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2368
572f6555
EBM
23692014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2370
2371 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2372 breakpoint support correctly.
2373
cc1c52ad
PA
23742014-07-14 Pedro Alves <palves@redhat.com>
2375
2376 * utils.c (prompt_for_continue): Call target_terminal_ours.
2377
1e973570
PA
23782014-07-14 Pedro Alves <palves@redhat.com>
2379
2380 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2381 catch_errors. Don't re-enable stdin or notify observers where,
2382 and rethrow error.
2383 (fetch_inferior_event_wrapper): Delete.
2384
93d6eb10
PA
23852014-07-14 Pedro Alves <palves@redhat.com>
2386
2387 PR gdb/17072
2388 * top.c: Include "inf-loop.h".
2389 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2390 field.
2391 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2392 was async before.
2393 (gdb_readline_wrapper): Store whether the target is async, and
2394 make it sync.
2395
0017922d
PA
23962014-07-14 Pedro Alves <palves@redhat.com>
2397
2398 PR gdb/17072
2399 * top.c (gdb_readline_wrapper_line): Tweak comment.
2400 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2401 the input handler callback.
2402
94696ad3
PA
24032014-07-14 Pedro Alves <palves@redhat.com>
2404
2405 PR gdb/17072
2406 * main.c: Include event-top.h.
2407 (handle_command_errors): New function.
2408 (catch_command_errors, catch_command_errors_const): Use it.
2409
9d1e69a2
PA
24102014-07-14 Pedro Alves <palves@redhat.com>
2411
2412 * exceptions.c (catch_command_errors, catch_command_errors_const):
2413 Moved to main.c.
2414 * exceptions.h (catch_command_errors_ftype)
2415 (catch_command_errors_const_ftype): Moved to main.c.
2416 (catch_command_errors, catch_command_errors_const): Delete
2417 declarations.
2418 * main.c (catch_command_errors_ftype)
2419 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2420 (catch_command_errors, catch_command_errors_const)): Moved here
2421 from exceptions.c and make static.
2422
feefc97b
PA
24232014-07-14 Pedro Alves <palves@redhat.com>
2424
2425 * exceptions.c (print_any_exception): Delete.
2426 (catch_exceptions_with_msg): Use exception_print instead of
2427 print_any_exception.
2428 (catch_errors): Use exception_fprintf instead of
2429 print_any_exception.
2430 (catch_command_errors, catch_command_errors_const): Use
2431 exception_print instead of print_any_exception.
2432
c933f875
PA
24332014-07-14 Pedro Alves <palves@redhat.com>
2434
2435 * infcall.c (run_inferior_call): Set 'sync_execution' while
2436 running the inferior call.
2437
feb6f816
PA
24382014-07-14 Pedro Alves <palves@redhat.com>
2439
2440 * value.c (value_contents_equal): Delete function.
2441 * value.h (value_contents_equal): Delete declaration.
2442
d98b7a16
TT
24432014-07-14 Tom Tromey <tromey@redhat.com>
2444
2445 PR exp/17106:
2446 * gdbtypes.c (is_dynamic_type_internal): New function, from
2447 is_dynamic_type.
2448 (is_dynamic_type): Rewrite.
2449 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2450 (resolve_dynamic_struct): Likewise.
2451 (resolve_dynamic_type_internal): New function, from
2452 resolve_dynamic_type.
2453 (resolve_dynamic_type): Rewrite.
2454
548740d6
TT
24552014-07-14 Tom Tromey <tromey@redhat.com>
2456
2457 * target.c (target_require_runnable): Also check record_stratum.
2458 Update comment.
2459
808f7ab1
YQ
24602014-07-11 Yao Qi <yao@codesourcery.com>
2461
2462 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2463 thumb_instruction_restores_sp return true.
2464
540314bd
YQ
24652014-07-11 Yao Qi <yao@codesourcery.com>
2466
2467 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2468 (thumb_in_function_epilogue_p): Call
2469 thumb_instruction_restores_sp.
2470
1db01f22
YQ
24712014-07-11 Yao Qi <yao@codesourcery.com>
2472
2473 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2474 'add sp, #imm'.
2475 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2476
3116063b
GB
24772014-07-11 Gary Benson <gbenson@redhat.com>
2478
2479 * amd64-linux-nat.c (gdbcore.h): Remove include.
2480 (regset.h): Likewise.
2481 (nat/linux-btrace.h): Likewise.
2482 (btrace.h): Likewise.
2483 (gdb_assert.h): Likewise.
2484 (string.h): Likewise.
2485 (sys/uio.h): Likewise.
2486 (sys/debugreg.h): Likewise.
2487 (sys/syscall.h): Likewise.
2488 (sys/procfs.h): Likewise.
2489 (sys/user.h): Likewise.
2490 (asm/ptrace.h): Likewise.
2491 (i386-nat.h): Likewise.
2492 * i386-linux-nat.c (i386-nat.h): Likewise.
2493 (regset.h): Likewise.
2494 (target.h): Likewise.
2495 (linux-nat.h): Likewise.
2496 (nat/linux-btrace.h): Likewise.
2497 (btrace.h): Likewise.
2498 (gdb_assert.h): Likewise.
2499 (string.h): Likewise.
2500 (sys/uio.h): Likewise.
2501 (sys/user.h): Likewise.
2502 (sys/procfs.h): Likewise.
2503 (sys/reg.h): Likewise.
2504 (sys/debugreg.h): Likewise.
2505 (ORIG_EAX): Remove definition.
2506
040baaf6
GB
25072014-07-11 Gary Benson <gbenson@redhat.com>
2508
2509 * i386-linux-nat.h: New file.
2510 * x86-linux-nat.h: Likewise.
2511 * x86-linux-nat.c: Likewise.
2512 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2513 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2514 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2515 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2516 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2517 (PTRACE_SETREGSET): Likewise.
2518 (arch_lwp_info): Now in x86-linux-nat.c.
2519 (have_ptrace_getregset): Now in x86-linux-nat.h.
2520 (x86_linux_dr_get): Now in x86-linux-nat.c.
2521 (x86_linux_dr_set): Likewise.
2522 (x86_linux_dr_get_addr): Likewise.
2523 (x86_linux_dr_get_control): Likewise.
2524 (x86_linux_dr_get_status): Likewise.
2525 (update_debug_registers_callback): Likewise.
2526 (x86_linux_dr_set_control): Likewise.
2527 (x86_linux_dr_set_addr): Likewise.
2528 (x86_linux_prepare_to_resume): Likewise.
2529 (x86_linux_new_thread): Likewise.
2530 (x86_linux_new_fork): Likewise.
2531 (x86_linux_get_thread_area): Likewise.
2532 (super_post_startup_inferior): Likewise.
2533 (x86_linux_child_post_startup_inferior): Likewise.
2534 (AMD64_LINUX_USER64_CS): Likewise.
2535 (AMD64_LINUX_X32_DS): Likewise.
2536 (x86_linux_read_description): Likewise.
2537 (x86_linux_enable_btrace): Likewise.
2538 (x86_linux_disable_btrace): Likewise.
2539 (x86_linux_teardown_btrace): Likewise.
2540 (x86_linux_read_btrace): Likewise.
2541 (x86_linux_create_target): Likewise.
2542 (x86_linux_add_target): Likewise.
2543 * i386-linux-nat.c (x86-linux-nat.h): New include.
2544 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2545 (PTRACE_SETREGSET): Likewise.
2546 (arch_lwp_info): Now in x86-linux-nat.c.
2547 (have_ptrace_getregset): Now in x86-linux-nat.h.
2548 (x86_linux_dr_get): Now in x86-linux-nat.c.
2549 (x86_linux_dr_set): Likewise.
2550 (x86_linux_dr_get_addr): Likewise.
2551 (x86_linux_dr_get_control): Likewise.
2552 (x86_linux_dr_get_status): Likewise.
2553 (update_debug_registers_callback): Likewise.
2554 (x86_linux_dr_set_control): Likewise.
2555 (x86_linux_dr_set_addr): Likewise.
2556 (x86_linux_prepare_to_resume): Likewise.
2557 (x86_linux_new_thread): Likewise.
2558 (x86_linux_new_fork): Likewise.
2559 (x86_linux_get_thread_area): Likewise.
2560 (super_post_startup_inferior): Likewise.
2561 (x86_linux_child_post_startup_inferior): Likewise.
2562 (AMD64_LINUX_USER64_CS): Likewise.
2563 (AMD64_LINUX_X32_DS): Likewise.
2564 (x86_linux_read_description): Likewise.
2565 (x86_linux_enable_btrace): Likewise.
2566 (x86_linux_disable_btrace): Likewise.
2567 (x86_linux_teardown_btrace): Likewise.
2568 (x86_linux_read_btrace): Likewise.
2569 (x86_linux_create_target): Likewise.
2570 (x86_linux_add_target): Likewise.
2571
1aa7e42c
GB
25722014-07-11 Gary Benson <gbenson@redhat.com>
2573
2574 * amd64-linux-nat.c: Comment and whitespace changes.
2575 * i386-linux-nat.c: Comment and whitespace changes.
2576
c1e246a0
GB
25772014-07-11 Gary Benson <gbenson@redhat.com>
2578
2579 * amd64-linux-nat.c (x86_linux_create_target): New function.
2580 (x86_linux_add_target): Likewise.
2581 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2582 * i386-linux-nat.c (x86_linux_create_target): New function.
2583 (x86_linux_add_target): Likewise.
2584 (_initialize_i386_linux_nat): Delegate to the above new functions.
2585
8c420b8d
GB
25862014-07-11 Gary Benson <gbenson@redhat.com>
2587
2588 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2589 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2590 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2591 (ps_get_thread_area): Delegate to the above.
2592
cb1da100
GB
25932014-07-11 Gary Benson <gbenson@redhat.com>
2594
2595 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2596 x86_linux_read_description. All uses updated. amd64-specific
2597 code conditionalized. Conditionalized i386-specific code added.
2598 Redundant cast removed.
2599 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2600 x86_linux_read_description. All uses updated. i386-specific
2601 code conditionalized. Conditionalized amd64-specific code added.
2602 One sizeof replaced with the actual type it is describing.
2603
2acf3cd0
GB
26042014-07-11 Gary Benson <gbenson@redhat.com>
2605
2606 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2607 x86_linux_dr_get. All uses updated.
2608 (amd64_linux_dr_set): Renamed to
2609 x86_linux_dr_set. All uses updated.
2610 (amd64_linux_dr_get_addr): Renamed to
2611 x86_linux_dr_get_addr. All uses updated.
2612 (amd64_linux_dr_get_control): Renamed to
2613 x86_linux_dr_get_control. All uses updated.
2614 (amd64_linux_dr_get_status): Renamed to
2615 x86_linux_dr_get_status. All uses updated.
2616 (amd64_linux_dr_set_control): Renamed to
2617 x86_linux_dr_set_control. All uses updated.
2618 (amd64_linux_dr_set_addr): Renamed to
2619 x86_linux_dr_set_addr. All uses updated.
2620 (amd64_linux_prepare_to_resume): Renamed to
2621 x86_linux_prepare_to_resume. All uses updated.
2622 (amd64_linux_new_thread): Renamed to
2623 x86_linux_new_thread. All uses updated.
2624 (amd64_linux_new_fork): Renamed to
2625 x86_linux_new_fork. All uses updated.
2626 (amd64_linux_child_post_startup_inferior): Renamed to
2627 x86_linux_child_post_startup_inferior. All uses updated.
2628 (amd64_linux_enable_btrace): Renamed to
2629 x86_linux_enable_btrace. All uses updated.
2630 (amd64_linux_disable_btrace): Renamed to
2631 x86_linux_disable_btrace. All uses updated.
2632 (amd64_linux_teardown_btrace): Renamed to
2633 x86_linux_teardown_btrace. All uses updated.
2634 (amd64_linux_read_btrace): Renamed to
2635 x86_linux_read_btrace. All uses updated.
2636 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2637 x86_linux_dr_get. All uses updated.
2638 (i386_linux_dr_set): Renamed to
2639 x86_linux_dr_set. All uses updated.
2640 (i386_linux_dr_get_addr): Renamed to
2641 x86_linux_dr_get_addr. All uses updated.
2642 (i386_linux_dr_get_control): Renamed to
2643 x86_linux_dr_get_control. All uses updated.
2644 (i386_linux_dr_get_status): Renamed to
2645 x86_linux_dr_get_status. All uses updated.
2646 (i386_linux_dr_set_control): Renamed to
2647 x86_linux_dr_set_control. All uses updated.
2648 (i386_linux_dr_set_addr): Renamed to
2649 x86_linux_dr_set_addr. All uses updated.
2650 (i386_linux_prepare_to_resume): Renamed to
2651 x86_linux_prepare_to_resume. All uses updated.
2652 (i386_linux_new_thread): Renamed to
2653 x86_linux_new_thread. All uses updated.
2654 (i386_linux_new_fork): Renamed to
2655 x86_linux_new_fork. All uses updated.
2656 (i386_linux_child_post_startup_inferior): Renamed to
2657 x86_linux_child_post_startup_inferior. All uses updated.
2658 (i386_linux_enable_btrace): Renamed to
2659 x86_linux_enable_btrace. All uses updated.
2660 (i386_linux_disable_btrace): Renamed to
2661 x86_linux_disable_btrace. All uses updated.
2662 (i386_linux_teardown_btrace): Renamed to
2663 x86_linux_teardown_btrace. All uses updated.
2664 (i386_linux_read_btrace): Renamed to
2665 x86_linux_read_btrace. All uses updated.
2666
b9c1d481
AS
26672014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2668
2669 * remote.c (extended_remote_post_attach): New function.
2670 (init_extended_remote_ops): Install it as to_post_attach method.
2671
7180e04a
PA
26722014-07-09 Pedro Alves <palves@redhat.com>
2673
2674 * infcmd.c (attach_command_post_wait): Don't call
2675 target_terminal_inferior here.
2676 (attach_command): Call it here instead.
2677
9a9a7608
AB
26782014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2681 field.
2682 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2683 from varobj.c, with additional checks.
2684 (c_varobj_ops): Fill in is_path_expr_parent field.
2685 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2686 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2687 field.
2688 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2689 ops method.
2690 (varobj_default_is_path_expr_parent): New function.
2691 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2692 (varobj_default_is_path_expr_parent): Declare new function.
2693
1f267ae3
MM
26942014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2695
2696 * infcmd.c (finish_backward): Turn internal error into normal error.
2697
b2ee242b
PA
26982014-07-07 Pedro Alves <palves@redhat.com>
2699
8a869bca 2700 PR gdb/17096
b2ee242b
PA
2701 * remote.c (async_handle_remote_sigint)
2702 (async_handle_remote_sigint_twice): Call
2703 gdb_call_async_signal_handler instead of
2704 mark_async_signal_handler.
2705
38e229b2
TT
27062014-07-07 Tom Tromey <tromey@redhat.com>
2707
2708 * target-delegates.c: Rebuild.
2709 * target.c (target_info_record): Remove.
2710 * record.c (info_record_command): Unconditionally call
2711 to_info_record.
2712 * target.h (struct target_ops) <to_info_record>: Use
2713 TARGET_DEFAULT_IGNORE.
2714 (target_info_record): Remove.
2715
f0f9ff95
TT
27162014-07-07 Tom Tromey <tromey@redhat.com>
2717
2718 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2719 TARGET_DEFAULT_NORETURN.
2720 * target.c (generic_tls_error): New function.
2721 (target_translate_tls_address): Don't search target stack.
2722 * target-delegates.c: Rebuild.
2723 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2724 stack.
2725 * linux-thread-db.c (thread_db_get_thread_local_address):
2726 Unconditionally call beneath target.
2727
4a5be5ee
MK
27282014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2729
2730 * cli/cli-logging.c (pop_output_files): Assign targerr to
2731 gdb_stdtargerr.
2732
92c3b204
AB
27332014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * MAINTAINERS (Write After Approval): Update my email address.
2736
9b11e3a7
GB
27372014-07-02 Gary Benson <gbenson@redhat.com>
2738
2739 * proc-service.c (ps_xfer_memory): Update comment.
2740 (ps_pstop): Remove unused function.
2741 (ps_pcontinue): Likewise.
2742 (ps_lstop): Likewise.
2743 (ps_lcontinue): Likewise.
2744 (ps_lgetxregsize): Likewise.
2745 (ps_lgetxregs): Likewise.
2746 (ps_lsetxregs): Likewise.
2747 (ps_plog): Likewise.
2748 (ps_ptread): Likewise.
2749 (ps_ptwrite): Likewise.
2750
cf363f18
MW
27512014-07-01 Mark Wielaard <mjw@redhat.com>
2752
2753 * dwarf2read.c (add_array_cv_type): New function.
2754 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2755 (read_tag_volatile_type): Likewise.
2756
82ae6c8d
TT
27572014-07-01 Tom Tromey <tromey@redhat.com>
2758
2759 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2760 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2761 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2762 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2763 * command.h (cmd_cfunc_ftype): Move earlier.
2764 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2765 (add_com, add_info): Use cmd_cfunc_ftype.
2766
96142726
TT
27672014-06-30 Tom Tromey <tromey@redhat.com>
2768
2769 * symtab.c (operator_chars): Make parameters and return type
2770 const.
2771 (file_matches): Make "files" const.
2772 (struct search_symbols_data) <files>: Now const.
2773 (search_symbols): Make "regexp" and "files" parameters const.
2774 Update.
2775 (symtab_symbol_info): Remove cast.
2776 (rbreak_command): Update.
2777 * symtab.h (search_symbols): Update.
2778
b67a2c6f
YQ
27792014-06-27 Yao Qi <yao@codesourcery.com>
2780
2781 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2782 Change parameter type to 'struct thread_info *'. Caller
2783 updated.
2784 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2785 Update declaration.
2786 * dummy-frame.c (struct dummy_frame_id): New.
2787 (dummy_frame_id_eq): New function.
2788 (struct dummy_frame) <id>: Change its type to 'struct
2789 dummy_frame_id'.
2790 (dummy_frame_push): Add parameter ptid and save it in
2791 dummy_frame_id.
2792 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2793 inferior_ptid.
2794 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2795 to inferior_ptid.
2796 (lookup_dummy_frame): Change parameter type to 'struct
2797 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2798 instead of frame_id_eq.
2799 (dummy_frame_pop): Add parameter ptid. Callers updated.
2800 Update comments. Compose dummy_frame_id and pass it to
2801 lookup_dummy_frame.
2802 (dummy_frame_discard): Add parameter ptid.
2803 (dummy_frame_sniffer): Compose dummy_frame_id and call
2804 dummy_frame_id_eq instead of frame_id_eq.
2805 (fprint_dummy_frames): Print ptid.
2806 * dummy-frame.h: Remove comments.
2807 (dummy_frame_push): Add ptid in declaration.
2808 (dummy_frame_pop, dummy_frame_discard): Likewise.
2809
5b10184c
TT
28102014-06-26 Tom Tromey <tromey@redhat.com>
2811
2812 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2813 * command.h (error_no_arg): Update.
2814
06900326
TT
28152014-06-26 Tom Tromey <tromey@redhat.com>
2816
2817 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2818 (do_show_command): Make "arg" const.
2819 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2820
c2bcbb1d
TT
28212014-06-26 Tom Tromey <tromey@redhat.com>
2822
2823 * record-full.c (record_full_get_bookmark): Make "args" const.
2824 (record_full_goto_bookmark): Make "raw_bookmark" const.
2825 * record.c (record_goto): New function.
2826 (cmd_record_goto): Use it. Now static.
2827 * record.h (record_goto): Declare.
2828 (cmd_record_goto): Remove declaration.
2829 * target-delegates.c: Rebuild.
2830 * target.h (struct target_ops) <to_get_bookmark,
2831 to_goto_bookmark>: Make parameter const.
2832
9cbe5fff
TT
28332014-06-26 Tom Tromey <tromey@redhat.com>
2834
2835 * defs.h (generic_load): Update.
2836 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2837 * monitor.c (monitor_load): Make "args" const.
2838 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2839 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2840 const.
2841 (mips_load): Make "file" const.
2842 * remote-sim.c (gdbsim_load): Make "args" const.
2843 * remote.c (remote_load): Make "name" const.
2844 * symfile.c (generic_load): Make "args" const.
2845 * target-delegates.c: Rebuild.
2846 * target.c (target_load): Make "arg" const.
2847 (debug_to_load): Make "args" const.
2848 * target.h (struct target_ops) <to_load>: Make parameter const.
2849 (target_load): Update.
2850
34a68019
TT
28512014-06-26 Tom Tromey <tromey@redhat.com>
2852
2853 PR symtab/16902:
2854 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2855 (dwarf2_physname, read_partial_die)
2856 (guess_partial_die_structure_name, fixup_partial_die)
2857 (guess_full_die_structure_name, anonymous_struct_prefix)
2858 (dwarf2_name): Use per-BFD obstack.
2859
efc889c1
YQ
28602014-06-26 Yao Qi <yao@codesourcery.com>
2861
2862 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2863 dummyframe and this_id into inner block below.
2864
4395285e
YQ
28652014-06-26 Yao Qi <yao@codesourcery.com>
2866
2867 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2868 with "signal_pass[0]" in the initialization of signal_pass.
2869
aef92902
MM
28702014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2871
2872 * record-btrace.c (record_btrace_generating_corefile)
2873 (record_btrace_prepare_to_generate_core)
2874 (record_btrace_done_generating_core): New.
2875 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2876 (record_btrace_store_registers, record_btrace_prepare_to_store):
2877 Forward request when generating a core file.
2878 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2879 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2880 to_done_generating_core.
2881
5fff78c4
MM
28822014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2883
2884 * target.h (target_ops) <to_prepare_to_generate_core>
2885 <to_done_generating_core>: New.
2886 (target_prepare_to_generate_core, target_done_generating_core): New.
2887 * target.c (target_prepare_to_generate_core)
2888 (target_done_generating_core): New.
2889 * target-delegates.c: Regenerate.
2890 * gcore.c: (write_gcore_file): Rename to ...
2891 (write_gcore_file_1): ...this.
2892 (write_gcore_file): Call target_prepare_to_generate_core
2893 and target_done_generating_core.
2894
1d1f1ccb
MM
28952014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2896
2897 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2898 * gcore.c (write_gcore_file): Free memory returned from
2899 make_corefile_notes.
2900 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2901 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2902
3343ef86
YQ
29032014-06-24 Yao Qi <yao@codesourcery.com>
2904
2905 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2906 (arm_linux_init_abi): Set skip_trampoline_code with
2907 gdbarch_skip_trampoline_code instead of
2908 find_solib_trampoline_target.
2909
18d18ac8
YQ
29102014-06-24 Yao Qi <yao@codesourcery.com>
2911
2912 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2913 arm_skip_bx_reg returns non-zero.
2914
80d8d390
YQ
29152014-06-24 Yao Qi <yao@codesourcery.com>
2916
2917 * arm-tdep.c (arm_skip_bx_reg): New function.
2918 (arm_skip_stub): Call arm_skip_bx_reg.
2919
6a18a01c
DB
29202014-06-23 Don Breazeal <donb@codesourcery.com>
2921
2922 * MAINTAINERS: Add myself as write-after-approval maintainer.
2923
8e9db26e
PA
29242014-06-23 Pedro Alves <palves@redhat.com>
2925
2926 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2927 DR_CONTROL before setting DR0..DR3.
2928 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2929 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2930 bits of DR_CONTROL related to the debug register slot being
2931 disabled. If all slots are vacant, clear local slowdown as well,
2932 and assert DR_CONTROL is 0.
2933
70afc5b7
SC
29342014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2935
2936 * python/lib/gdb/command/xmethods.py
2937 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2938 current progspace only if the string "progspace" matches LOCUS_RE.
2939
840ed64d
JK
29402014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 Fix --with-system-readline with readline-6.3 patch 5.
2943 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2944 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2945 types.
2946
26f2dc30
TT
29472014-06-20 Tom Tromey <tromey@redhat.com>
2948
2949 * dwarf2read.c (dw2_get_real_path): Use correct type in
2950 OBSTACK_CALLOC.
2951 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2952
125f8a3d
GB
29532014-06-20 Gary Benson <gbenson@redhat.com>
2954
2955 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2956 * common/glibc_thread_db.h: Likewise.
2957 * common/i386-cpuid.h: Likewise.
2958 * common/i386-gcc-cpuid.h: Likewise.
2959 * common/linux-btrace.h: Likewise.
2960 * common/linux-osdata.h: Likewise.
2961 * common/linux-procfs.h: Likewise.
2962 * common/linux-ptrace.h: Likewise.
2963 * common/mips-linux-watch.h: Likewise.
2964 * common/linux-btrace.c: Moved to nat.
2965 * common/linux-osdata.c: Likewise.
2966 * common/linux-procfs.c: Likewise.
2967 * common/linux-ptrace.c: Likewise.
2968 * common/mips-linux-watch.c: Likewise.
2969 * nat/gdb_thread_db.h: Moved from common.
2970 * nat/glibc_thread_db.h: Likewise.
2971 * nat/i386-cpuid.h: Likewise.
2972 * nat/i386-gcc-cpuid.h: Likewise.
2973 * nat/linux-btrace.c: Likewise.
2974 * nat/linux-btrace.h: Likewise.
2975 * nat/linux-osdata.c: Likewise.
2976 * nat/linux-osdata.h: Likewise.
2977 * nat/linux-procfs.c: Likewise.
2978 * nat/linux-procfs.h: Likewise.
2979 * nat/linux-ptrace.c: Likewise.
2980 * nat/linux-ptrace.h: Likewise.
2981 * nat/mips-linux-watch.c: Likewise.
2982 * nat/mips-linux-watch.h: Likewise.
2983 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2984 (object file files): Reordered.
2985 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2986 of glibc_thread_db.h.
2987
42995dbd
GB
29882014-06-20 Gary Benson <gbenson@redhat.com>
2989
2990 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2991 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2992 (i386_dr_low): Likewise.
2993 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2994 (i386_dr_low_set_addr): Likewise.
2995 (i386_dr_low_get_addr): Likewise.
2996 (i386_dr_low_can_set_control): Likewise.
2997 (i386_dr_low_set_control): Likewise.
2998 (i386_dr_low_get_control): Likewise.
2999 (i386_dr_low_get_status): Likewise.
3000 (i386_get_debug_register_length): Likewise.
3001 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3002 (i386_dr_low): Likewise.
3003 * nat/i386-dregs.c (i386-low.h): Remove include.
3004 (i386-nat.h): Likewise.
3005 (nat/i386-dregs.h): New include.
3006 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3007 (i386_dr_low_set_addr): Likewise.
3008 (i386_dr_low_get_addr): Likewise.
3009 (i386_dr_low_can_set_control): Likewise.
3010 (i386_dr_low_set_control): Likewise.
3011 (i386_dr_low_get_control): Likewise.
3012 (i386_dr_low_get_status): Likewise.
3013 (i386_get_debug_register_length): Likewise.
3014 (debug_hw_points): Likewise.
3015
3ed9baed
IB
30162014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3017
3018 * Makefile.in (SFILES): Add d-exp.y.
3019 (YYFILES): Add d-exp.c.
3020 (YYOBJ): Add d-exp.o.
3021 (local-maintainer-clean): Delete d-exp.c.
3022 * d-exp.y: New file.
3023 * d-lang.h (d_parse): New declaration.
3024 (d_error): New declaration.
3025 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3026 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3027 PREC_ORDER operators.
3028 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3029
78c164b0
YQ
30302014-06-19 Yao Qi <yao@codesourcery.com>
3031
3032 * gdbthread.h (any_running): Remove the declaration.
3033 * thread.c (any_running): Remove.
3034
f6e29b6e
YQ
30352014-06-19 Yao Qi <yao@codesourcery.com>
3036
3037 * gdbthread.h (struct thread_info) <state>: Change its type to
3038 'enum thread_state'. Update comments.
3039
034f788c
PA
30402014-06-19 Pedro Alves <palves@redhat.com>
3041
3042 * gdbthread.h (ALL_THREADS): Delete.
3043 (ALL_NON_EXITED_THREADS): New macro.
3044 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3045 instead of ALL_THREADS.
3046 * infrun.c (find_thread_needs_step_over)
3047 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3048 instead of ALL_THREADS.
3049 * record-btrace.c (record_btrace_open)
3050 (record_btrace_stop_recording, record_btrace_close)
3051 (record_btrace_is_replaying, record_btrace_resume)
3052 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3053 * remote.c (append_pending_thread_resumptions): Likewise.
3054 * thread.c (thread_apply_all_command): Likewise.
3055
46e33252
GB
30562014-06-19 Gary Benson <gbenson@redhat.com>
3057
3058 * i386-nat.c (i386_stopped_by_watchpoint):
3059 Use i386_dr_stopped_by_watchpoint.
3060 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3061 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3062
3a8ee006
GB
30632014-06-19 Gary Benson <gbenson@redhat.com>
3064
3065 * nat/i386-dregs.c: New file.
3066 * Makefile.in (i386-dregs.o): New rule.
3067 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3068 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3069 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3070 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3071 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3072 * config/i386/go32.mh (NATDEPFILES): Likewise.
3073 * config/i386/linux.mh (NATDEPFILES): Likewise.
3074 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3075 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3076 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3077 * i386-nat.h (debug_hw_points): New declaration.
3078 * i386-nat.c (breakpoint.h): Remove include.
3079 (command.h): Likewise.
3080 (target.h): Likewise.
3081 (gdb_assert.h): Likewise.
3082 (debug_hw_points): Made nonstatic.
3083 (debug_printf): Now in i386-dregs.c.
3084 (TARGET_HAS_DR_LEN_8): Likewise.
3085 (DR_CONTROL_SHIFT): Likewise.
3086 (DR_CONTROL_SIZE): Likewise.
3087 (DR_RW_EXECUTE): Likewise.
3088 (DR_RW_WRITE): Likewise.
3089 (DR_RW_READ): Likewise.
3090 (DR_RW_IORW): Likewise.
3091 (DR_LEN_1): Likewise.
3092 (DR_LEN_2): Likewise.
3093 (DR_LEN_4): Likewise.
3094 (DR_LEN_8): Likewise.
3095 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3096 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3097 (DR_ENABLE_SIZE): Likewise.
3098 (DR_LOCAL_SLOWDOWN): Likewise.
3099 (DR_GLOBAL_SLOWDOWN): Likewise.
3100 (DR_CONTROL_RESERVED): Likewise.
3101 (I386_DR_CONTROL_MASK): Likewise.
3102 (I386_DR_VACANT): Likewise.
3103 (I386_DR_LOCAL_ENABLE): Likewise.
3104 (I386_DR_GLOBAL_ENABLE): Likewise.
3105 (I386_DR_DISABLE): Likewise.
3106 (I386_DR_SET_RW_LEN): Likewise.
3107 (I386_DR_GET_RW_LEN): Likewise.
3108 (I386_DR_WATCH_HIT): Likewise.
3109 (i386_wp_op_t): Likewise.
3110 (i386_show_dr): Likewise.
3111 (i386_length_and_rw_bits): Likewise.
3112 (i386_insert_aligned_watchpoint): Likewise.
3113 (i386_remove_aligned_watchpoint): Likewise.
3114 (i386_handle_nonaligned_watchpoint): Likewise.
3115 (i386_update_inferior_debug_regs): Likewise.
3116 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3117 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3118 (i386_region_ok_for_watchpoint):
3119 Use i386_dr_region_ok_for_watchpoint.
3120 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3121
322a8e06
GB
31222014-06-19 Gary Benson <gbenson@redhat.com>
3123
3124 * i386-nat.c (i386_insert_hw_breakpoint): Use
3125 i386_insert_watchpoint.
3126 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3127
8f26655c
GB
31282014-06-19 Gary Benson <gbenson@redhat.com>
3129
3130 * i386-nat.c (i386_dr_show): Renamed to
3131 i386_show_dr and made static. All uses updated.
3132 (i386_dr_length_and_rw_bits): Renamed to
3133 i386_length_and_rw_bits and made static.
3134 All uses updated.
3135 (i386_dr_insert_aligned_watchpoint): Renamed to
3136 i386_insert_aligned_watchpoint and made static.
3137 All uses updated.
3138 (i386_dr_remove_aligned_watchpoint): Renamed to
3139 i386_remove_aligned_watchpoint and made static.
3140 All uses updated.
3141 (i386_dr_update_inferior_debug_regs): Renamed to
3142 i386_update_inferior_debug_regs and made static.
3143 All uses updated.
3144 * nat/i386-dregs.h (i386_dr_show): Removed.
3145 (i386_dr_length_and_rw_bits): Likewise.
3146 (i386_dr_insert_aligned_watchpoint): Likewise.
3147 (i386_dr_remove_aligned_watchpoint): Likewise.
3148 (i386_dr_update_inferior_debug_regs): Likewise.
3149
992c7d70
GB
31502014-06-19 Gary Benson <gbenson@redhat.com>
3151
3152 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3153 * configure: Regenerate.
3154 * config.in: Likewise.
3155 * main.c (signal.h): New include.
3156 (setup_alternate_signal_stack): New function.
3157 (captured_main): Call the above.
3158 * cp-support.c (signal.h): New include.
3159 (catch_demangler_crashes): New flag.
3160 (SIGJMP_BUF): New define.
3161 (SIGSETJMP): Likewise.
3162 (SIGLONGJMP): Likewise.
3163 (gdb_demangle_jmp_buf): New static global.
3164 (gdb_demangle_attempt_core_dump): Likewise.
3165 (gdb_demangle_signal_handler): New function.
3166 (gdb_demangle): If catch_demangler_crashes is set, install the
3167 above signal handler before calling bfd_demangle, and restore
3168 the original signal handler afterwards. Display the offending
3169 symbol and call demangler_warning the first time a segmentation
3170 fault is caught.
3171 (_initialize_cp_support): New maint set/show command.
3172
eae7090b
GB
31732014-06-19 Gary Benson <gbenson@redhat.com>
3174
3175 * utils.h (resource_limit_kind): New enum.
3176 (can_dump_core): New declaration.
3177 (warn_cant_dump_core): Likewise.
3178 (dump_core): Likewise.
3179 * utils.c (dump_core): Made nonstatic. Added new
3180 parameter "limit_kind".
3181 (can_dump_core): Made nonstatic. Moved printing code to...
3182 (warn_cant_dump_core): New function.
3183 (can_dump_core_warn): Likewise.
3184 (internal_vproblem): Replace calls to can_dump_core with
3185 calls to can_dump_core_warn. Supply new argument to each.
3186
57fcfb1b
GB
31872014-06-19 Gary Benson <gbenson@redhat.com>
3188
3189 * utils.h (demangler_vwarning): New declaration.
3190 (demangler_warning): Likewise.
3191 * utils.c (struct internal_problem)
3192 <user_settable_should_quit>: New field.
3193 <user_settable_should_dump_core>: Likewise
3194 (internal_error_problem): Add values for above new fields.
3195 (internal_warning_problem): Likewise.
3196 (demangler_warning_problem): New static global.
3197 (demangler_vwarning): New function.
3198 (demangler_warning): Likewise.
3199 (add_internal_problem_command): Selectively add commands.
3200 (_initialize_utils): New internal problem command.
3201 * maint.c (maintenance_demangler_warning): New function.
3202 (_initialize_maint_cmds): New command.
3203
17a40b44
TT
32042014-06-18 Tom Tromey <tromey@redhat.com>
3205
3206 * f-valprint.c (info_common_command_for_block): Update.
3207 * symtab.h (struct general_symbol_info) <common_block>: Now
3208 const.
3209
346d1dfe
TT
32102014-06-18 Tom Tromey <tromey@redhat.com>
3211
3212 * symtab.h (struct symtab) <blockvector>: Now const.
3213 * ada-lang.c (ada_add_global_exceptions): Update.
3214 * buildsym.c (augment_type_symtab): Update.
3215 * dwarf2read.c (dw2_lookup_symbol): Update.
3216 * jit.c (finalize_symtab): Update.
3217 * jv-lang.c (add_class_symtab_symbol): Update.
3218 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3219 Update.
3220 * objfiles.c (objfile_relocate1): Update.
3221 * psymtab.c (lookup_symbol_aux_psymtabs)
3222 (maintenance_check_psymtabs): Update.
3223 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3224 Update.
3225 * spu-tdep.c (spu_catch_start): Update.
3226 * symmisc.c (dump_symtab_1): Update.
3227 * symtab.c (lookup_global_symbol_from_objfile)
3228 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3229 (basic_lookup_transparent_type_quick)
3230 (basic_lookup_transparent_type, find_pc_sect_symtab)
3231 (find_pc_sect_line, search_symbols): Update.
3232 * block.c (find_block_in_blockvector): Make "bl" const.
3233 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3234 const.
3235 (blockvector_contains_pc): Make "bv" const.
3236 (block_for_pc_sect): Update.
3237 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3238 (blockvector_contains_pc): Update.
3239 * breakpoint.c (resolve_sal_pc): Update.
3240 * inline-frame.c (block_starting_point_at): Update.
3241
1834676b
TT
32422014-06-18 Tom Tromey <tromey@redhat.com>
3243
3244 * completer.c (complete_line): Make "line_buffer" const.
3245 * completer.h (complete_line): Update.
3246
ac1a991b
TT
32472014-06-18 Tom Tromey <tromey@redhat.com>
3248
3249 * symtab.c (add_macro_name): Remove unneeded cast.
3250
5bc98e52
TT
32512014-06-18 Tom Tromey <tromey@redhat.com>
3252
3253 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3254 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3255
8236def8
TT
32562014-06-18 Tom Tromey <tromey@redhat.com>
3257
3258 * probe.c (info_probes_for_ops): Make "arg" const.
3259 * probe.h (info_probes_for_ops): Update.
3260
3977b71f
TT
32612014-06-18 Tom Tromey <tromey@redhat.com>
3262
3263 * varobj.c (varobj_create): Update.
3264 * valops.c (value_of_this): Update.
3265 * tracepoint.c (add_local_symbols, scope_info): Update.
3266 * symtab.h (struct general_symbol_info) <block>: Now const.
3267 * symtab.c (skip_prologue_sal)
3268 (default_make_symbol_completion_list_break_on)
3269 (skip_prologue_using_sal): Update.
3270 * stack.h (iterate_over_block_locals)
3271 (iterate_over_block_local_vars): Update.
3272 * stack.c (print_frame_args): Update.
3273 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3274 parameter const.
3275 (get_selected_block): Make return type const.
3276 * python/py-frame.c (frapy_block): Update.
3277 * python/py-block.c (gdbpy_block_for_pc): Update.
3278 * p-exp.y (%union) <bval>: Now const.
3279 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3280 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3281 * m2-exp.y (%union) <bval>: Now const.
3282 * linespec.c (get_current_search_block): Make return type const.
3283 (create_sals_line_offset, find_label_symbols): Update.
3284 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3285 Update.
3286 (block_starting_point_at): Make "block" const.
3287 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3288 (check_exception_resume): Update.
3289 * guile/scm-frame.c (gdbscm_frame_block): Update.
3290 * guile/scm-block.c (gdbscm_lookup_block): Update.
3291 * frame.h (get_frame_block): Update.
3292 (get_selected_block): Make return type const.
3293 * frame.c (frame_id_inner): Update.
3294 * f-valprint.c (info_common_command_for_block)
3295 (info_common_command): Update.
3296 * dwarf2loc.c (dwarf2_find_location_expression)
3297 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3298 (locexpr_describe_location_piece): Update.
3299 * c-exp.y (%union) <bval>: Now const.
3300 * breakpoint.c (resolve_sal_pc): Update.
3301 * blockframe.c (get_frame_block):Make return type const.
3302 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3303 (block_innermost_frame): Update.
3304 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3305 (block_for_pc, block_for_pc_sect): Update.
3306 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3307 'pblock' const.
3308 (block_for_pc_sect, block_for_pc): Make return type const.
3309 * ax-gdb.c (gen_expr): Update.
3310 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3311 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3312 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3313 (ada_read_var_value): Update.
3314 * ada-exp.y (struct name_info) <block>: Now const.
3315 (%union): Likewise.
3316 (block_lookup): Constify.
3317
b9228891
GB
33182014-06-18 Gary Benson <gbenson@redhat.com>
3319
3320 * nat/i386-dregs.h: New file.
3321 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3322 * i386-nat.h (i386-dregs.h): New include.
3323 (DR_FIRSTADDR): Now in i386-dregs.h.
3324 (DR_LASTADDR): Likewise.
3325 (DR_NADDR): Likewise.
3326 (DR_STATUS): Likewise.
3327 (DR_CONTROL): Likewise.
3328 (i386_debug_reg_state): Likewise.
3329 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3330
a1aa2221
LM
33312014-06-18 Don Breazeal <donb@codesourcery.com>
3332
3333 * breakpoint.c (set_longjmp_breakpoint): Call
3334 momentary_breakpoint_from_master with additional argument.
3335 (set_longjmp_breakpoint_for_call_dummy): Call
3336 momentary_breakpoint_from_master with additional argument.
3337 (set_std_terminate_breakpoint): Call
3338 momentary_breakpoint_from_master with additional argument.
3339 (momentary_breakpoint_from_master): Add argument to function
3340 definition and use it to initialize structure member flag.
74228e77 3341 (clone_momentary_breakpoint): Call
a1aa2221
LM
3342 momentary_breakpoint_from_master with additional argument.
3343 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3344 member flags set in momentary_breakpoint_from_master.
3345
4be83cc2
GB
33462014-06-18 Gary Benson <gbenson@redhat.com>
3347
3348 * i386-nat.c (i386_show_dr): Renamed to
3349 i386_dr_show and made nonstatic. All uses updated.
3350 (i386_length_and_rw_bits): Renamed to
3351 i386_dr_length_and_rw_bits and made nonstatic.
3352 All uses updated.
3353 (i386_insert_aligned_watchpoint): Renamed to
3354 i386_dr_insert_aligned_watchpoint and made nonstatic.
3355 All uses updated.
3356 (i386_remove_aligned_watchpoint): Renamed to
3357 i386_dr_remove_aligned_watchpoint and made nonstatic.
3358 All uses updated.
3359 (i386_update_inferior_debug_regs): Renamed to
3360 i386_dr_update_inferior_debug_regs and made nonstatic.
3361 All uses updated.
3362
131aa0d4
GB
33632014-06-18 Gary Benson <gbenson@redhat.com>
3364
3365 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3366 (i386_dr_low_can_set_control): Likewise.
3367 (i386_dr_low_set_addr): Likewise.
3368 (i386_dr_low_set_control): Likewise.
3369 (i386_dr_low_get_addr): Likewise.
3370 (i386_dr_low_get_status): Likewise.
3371 (i386_dr_low_get_control): Likewise.
3372 (i386_insert_aligned_watchpoint): Use new macros.
3373 (i386_update_inferior_debug_regs): Likewise.
3374 (i386_stopped_data_address): Likewise.
3375
d9305f7f
GB
33762014-06-18 Gary Benson <gbenson@redhat.com>
3377
3378 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3379 New parameter. All uses updated.
3380
ea008da4
GB
33812014-06-18 Gary Benson <gbenson@redhat.com>
3382
3383 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3384 All uses updated.
3385
1b6d4134
GB
33862014-06-18 Gary Benson <gbenson@redhat.com>
3387
3388 * i386-nat.c (debug_printf): New macro.
3389 (i386_get_debug_register_length): Likewise.
3390 (TARGET_HAS_DR_LEN_8): Use above macro.
3391 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3392 and printf_unfiltered. Use phex to format values.
3393
9b4550ef
GB
33942014-06-18 Gary Benson <gbenson@redhat.com>
3395
3396 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3397 Make const.
3398
6e62758f
GB
33992014-06-18 Gary Benson <gbenson@redhat.com>
3400
3401 * i386-nat.c: Comment changes.
3402
51c79e94
GB
34032014-06-18 Gary Benson <gbenson@redhat.com>
3404
3405 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3406
3e11889a
GB
34072014-06-18 Gary Benson <gbenson@redhat.com>
3408
3409 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3410 (i386_insert_aligned_watchpoint): Likewise.
3411 (i386_remove_aligned_watchpoint): Likewise.
3412 (i386_handle_nonaligned_watchpoint): Likewise.
3413
fc6e2f03
GB
34142014-06-18 Gary Benson <gbenson@redhat.com>
3415
3416 * i386-nat.c: Whitespace changes.
3417
2afe7d50
SB
34182014-06-17 Samuel Bronson <naesten@gmail.com>
3419
3420 * MAINTAINERS: Update Roland McGrath's email address.
3421 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3422 Red Hat a while ago, and giving me a current address.
2afe7d50 3423
3bca49ee
TT
34242014-06-17 Tom Tromey <tromey@redhat.com>
3425
3426 * utils.h (savestring): Remove declaration.
3427
6e366df1
TT
34282014-06-17 Tom Tromey <tromey@redhat.com>
3429
3430 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3431
6be47f0c
KS
34322014-06-16 Keith Seitz <keiths@redhat.com>
3433
3434 PR mi/15863
3435 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3436 to update the varobj if inferior_ptid is null_ptid.
3437
7bc112c1
TT
34382014-06-16 Tom Tromey <tromey@redhat.com>
3439
3440 * target.h (struct target_ops) <to_info_proc>: Make parameter
3441 const.
3442 (target_info_proc): Update.
3443 * target.c (target_info_proc): Make "args" const.
3444 * procfs.c (procfs_info_proc): Update.
3445 * linux-tdep.c (linux_info_proc): Update.
3446 (linux_core_info_proc_mappings): Make "args" const.
3447 (linux_core_info_proc): Update.
3448 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3449 * gdbarch.c: Rebuild.
3450 * gdbarch.h: Rebuild.
3451 * corelow.c (core_info_proc): Update.
3452
fee354ee
TT
34532014-06-16 Tom Tromey <tromey@redhat.com>
3454
3455 * target.h (struct target_ops) <to_disconnect>: Make parameter
3456 const.
3457 (target_disconnect): Update.
3458 * target.c (target_disconnect): Make "args" const.
3459 * target-delegates.c: Rebuild.
3460 * remote.c (remote_disconnect): Update.
3461 * record.h (record_disconnect): Update.
3462 * record.c (record_disconnect): Update.
3463 * inf-child.c (inf_child_disconnect): Update.
3464
a30bf1f1
TT
34652014-06-16 Tom Tromey <tromey@redhat.com>
3466
3467 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3468 * target.c (debug_to_rcmd, default_rcmd): Update.
3469 * target-delegates.c: Rebuild.
3470 * remote.c (remote_rcmd): Update.
3471 * monitor.c (monitor_rcmd): Update.
3472
d03de421
PA
34732014-06-16 Pedro Alves <palves@redhat.com>
3474
3475 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3476 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3477 have OBJF_SHARED set.
3478 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3479 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3480 instead of OBJF_USERLOADED.
3481 * objfiles.h (OBJF_SHARED): Update comment.
3482 (userloaded_objfile_contains_address_p): Rename to ...
3483 (shared_objfile_contains_address_p): ... this, and update
3484 comments.
3485 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3486 new objfile.
3487 (remove_symbol_file_command): Skip objfiles that don't have
3488 OBJF_SHARED set.
3489
99f4262f
TT
34902014-06-16 Tom Tromey <tromey@redhat.com>
3491
3492 * minsyms.h (prim_record_minimal_symbol)
3493 (prim_record_minimal_symbol_and_info): Update comments.
3494
97d66cc6
EZ
34952014-06-14 Eli Zaretskii <eliz@gnu.org>
3496
3497 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3498 or --without-guile, according to how GDB was built.
3499
635c7e8a
TT
35002014-06-13 Tom Tromey <tromey@redhat.com>
3501
3502 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3503 to help_list.
3504 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3505 to help_list.
3506 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3507 help_list.
3508 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3509 help_list.Pass all_commands, not -1, to help_list.
3510 * cli/cli-dump.c (dump_command, append_command)
3511 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3512 (binary_dump_command, binary_append_command): Pass all_commands,
3513 not -1, to help_list.
3514 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3515 -1, to help_list.
3516 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3517 -1, to help_list.
3518 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3519 help_list.
3520 * top.c (set_history): Pass all_commands, not -1, to help_list.
3521 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3522 all_commands, not -1, to help_list.
3523 * symfile.c (overlay_command): Pass all_commands, not -1, to
3524 help_list.
3525 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3526 help_list.
3527 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3528 help_list.
3529 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3530 -1, to help_list.
3531 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3532 not -1, to help_list.
3533 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3534 not -1, to help_list.
3535 * maint.c (maintenance_command, maintenance_info_command)
3536 (maintenance_print_command, maintenance_set_cmd): Pass
3537 all_commands, not -1, to help_list.
3538 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3539 help_list.
3540 * language.c (set_check): Pass all_commands, not -1, to help_list.
3541 * infcmd.c (unset_command): Pass all_commands, not -1, to
3542 help_list.
3543 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3544 help_list.
3545 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3546 help_list.
3547 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3548 help_list.
3549 * breakpoint.c (save_command): Pass all_commands, not -1, to
3550 help_list.
3551 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3552 all_commands, not -1, to help_list.
3553
b94ade42
PL
35542014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3555
3556 * regcache.c (struct register_to_invalidate): New structure.
3557 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3558 functions.
3559 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3560
31f628ae
YQ
35612014-06-12 Yao Qi <yao@codesourcery.com>
3562
3563 * varobj.c (varobj_get_num_children): Call
3564 varobj_is_dynamic_p.
3565 (varobj_list_children): Likewise.
3566 (varobj_update): Likewise. Update comments.
3567
cde5ef40
YQ
35682014-06-12 Yao Qi <yao@codesourcery.com>
3569
3570 * varobj.c (varobj_pretty_printed_p): Rename to ...
3571 (varobj_is_dynamic_p): ... this. New function.
3572 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3573 (varobj_is_dynamic_p): Declare.
3574 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3575 (mi_print_value_p, varobj_update_one): Likewise.
3576
576ea091
YQ
35772014-06-12 Pedro Alves <pedro@codesourcery.com>
3578 Yao Qi <yao@codesourcery.com>
3579
3580 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3581 (varobj_get_iterator): Wrap up code for pretty-printer by
3582 "#if HAVE_PYTHON" and "#endif".
3583 (update_dynamic_varobj_children): Likewise.
3584
827f100c
YQ
35852014-06-12 Pedro Alves <pedro@codesourcery.com>
3586 Yao Qi <yao@codesourcery.com>
3587
3588 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3589 gdb_python_initialized is false. Move some code from varobj.c.
3590 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3591 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3592 (struct varobj_item): Moved to varobj-iter.h".
3593 (varobj_clear_saved_item): New function.
3594 (update_dynamic_varobj_children): Move python-related code to
3595 py-varobj.c.
3596 (free_variable): Call varobj_clear_saved_item and
3597 varobj_iter_delete.
3598
e5250216
YQ
35992014-06-12 Pedro Alves <pedro@codesourcery.com>
3600 Yao Qi <yao@codesourcery.com>
3601
3602 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3603 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3604 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3605 (py-varobj.o): New rule.
3606 * python/py-varobj.c: New file.
3607 * python/python-internal.h (py_varobj_get_iterator): Declare.
3608 * varobj-iter.h: New file.
3609 * varobj.c: Include "varobj-iter.h"
3610 (struct varobj) <child_iter>: Change its type from "PyObject *"
3611 to "struct varobj_iter *".
3612 <saved_item>: Likewise.
3613 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3614 [HAVE_PYTHON] (varobj_get_iterator): New function.
3615 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3616 python-specific code to python/py-varobj.c.
3617 (install_visualizer): Call varobj_iter_delete instead of
3618 Py_XDECREF.
3619 * varobj.h (varobj_ensure_python_env): Declare.
3620
5a2e0d6e
YQ
36212014-06-12 Yao Qi <yao@codesourcery.com>
3622
3623 * varobj.c (struct varobj_item): New structure.
3624 (create_child_with_value): Update declaration.
3625 (varobj_add_child): Replace arguments 'name' and 'value' with
3626 'item'. All callers updated.
3627 (install_dynamic_child): Likewise.
3628 (update_dynamic_varobj_children): Likewise.
3629 (varobj_add_child): Likewise.
3630 (create_child_with_value): Likewise.
3631
919b9a93
JB
36322014-06-11 Joel Brobecker <brobecker@adacore.com>
3633
3634 * NEWS: Create a new section for the next release branch.
3635 Rename the section of the current branch, now that it has
3636 been cut.
3637
71a55bdf
JB
36382014-06-11 Joel Brobecker <brobecker@adacore.com>
3639
3640 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3641 * version.in: Bump version to 7.8.50.DATE-cvs.
3642
364fe1f7
PA
36432014-06-11 Pedro Alves <palves@redhat.com>
3644
3645 PR remote/17028
3646 * ser-mingw.c (net_windows_socket_check_pending): New function.
3647 (net_windows_select_thread): Ignore spurious wakeups. Use
3648 net_windows_socket_check_pending.
3649 (net_windows_wait_handle): Check for pending events with
3650 ioctlsocket, through net_windows_socket_check_pending, instead of
3651 checking the socket's event.
3652
5a6c7709
SC
36532014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3654
3655 * python/python-internal.h (gdb_PyObject_GetAttrString)
3656 (gdb_PyObject_HasAttrString): New inline function definitions.
3657 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3658 char * of the second argument to PyObject_GetAttrString.
74228e77 3659
0e58ee40
JB
36602014-06-10 Joel Brobecker <brobecker@adacore.com>
3661
3662 * serial.c (serial_write): Fix index of character to be printed
3663 in call to serial_logchar when serial debug traces are enabled.
3664
d190df30
JB
36652014-06-10 Joel Brobecker <brobecker@adacore.com>
3666
3667 * gdbtypes (resolve_dynamic_range): Add function description.
3668
b4b01d36
PA
36692014-06-09 Pedro Alves <palves@redhat.com>
3670
3671 * linux-nat.c (linux_child_follow_fork): Initialize status with
3672 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3673 inner block. Only pass the signal to PTRACE_DETACH if in pass
3674 state.
3675
3657956b
GB
36762014-06-09 Gary Benson <gbenson@redhat.com>
3677
3678 * common/signals.c (gdb_signal_from_host): Reorder to separate
3679 the always-available ANSI-standard signals from the signals that
3680 require checking.
3681 (do_gdb_signal_to_host): Likewise.
3682 * proc-events.c (signal_table): Likewise.
3683
c077881a
HZ
36842014-06-08 Hui Zhu <hui@codesourcery.com>
3685
3686 * common/linux-ptrace.c (linux_disable_event_reporting): New
3687 function.
3688 * common/linux-ptrace.h (linux_disable_event_reporting): New
3689 declaration.
3690 * linux-nat.c (linux_child_follow_fork): Do a single step before
3691 detach.
3692
4186eb54
KS
36932014-06-07 Keith Seitz <keiths@redhat.com>
3694
3695 Revert:
3696 PR c++/16253
3697 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3698 from symbol_matches_domain in symtab.c. All local callers
3699 of symbol_matches_domain updated.
3700 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3701 search STRUCT_DOMAIN.
3702 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3703 independently. standard_lookup will do that automatically.
3704 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3705 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3706 (cp_lookup_symbol_in_namespace): Likewise.
3707 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3708 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3709 may return a STRUCT_DOMAIN match.
3710 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3711 * cp-support.c: Include language.h.
3712 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3713 VAR_DOMAIN.
3714 * psymtab.c (match_partial_symbol): Compare the requested
3715 domain with the symbol's domain directly.
3716 (lookup_partial_symbol): Likewise.
3717 * symtab.c (lookup_symbol_in_language): Explain when/why
3718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3719 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3720 appropriate languages.
3721 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3722 and moved to ada-lang.c
3723 (lookup_block_symbol): Explain that this function only returns
3724 symbol matching the requested DOMAIN.
3725 Compare the requested domain with the symbol's domain directly.
3726 (iterate_over_symbols): Compare the requested domain with the
3727 symbol's domain directly.
3728 * symtab.h (symbol_matches_domain): Remove.
3729
25326a28 37302014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3731
3732 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3733 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3734 (gdbscm_guile_version_is_at_least): Declare.
3735 (gdbscm_scm_string_to_int): Declare.
3736 * guile/guile.c (gdbscm_guile_major_version): New global.
3737 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3738 (guile_datadir): New static global.
3739 (gdbscm_guile_data_directory): New function.
3740 (initialize_scheme_side): Update.
3741 (misc_guile_functions): Add guile-data-directory.
3742 (initialize_gdb_module): Fetch guile version number.
3743 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3744 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3745 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3746 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3747 comments.
3748 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3749 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3750 * guile/scm-value.c (gdbscm_value_to_string): Only call
3751 scm_port_conversion_strategy if Guile version >= 2.0.6.
3752
0a770bb2 37532014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3754
3755 * main.c (print_gdb_help): Add -q and --silent.
3756
73ba372c
GB
37572014-06-06 Gary Benson <gbenson@redhat.com>
3758
3759 * common/signals.c: Remove preprocessor conditionals for
3760 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3761 SIGSEGV and SIGTERM.
3762 * proc-events.c: Likewise.
3763
c33b2f12
MM
37642014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3765
3766 * symfile.c (symfile_free_objfile): Remove restriction to
3767 OBJF_USERLOADED.
3768 * symfile-mem.c (symbol_file_add_from_memory): Call
3769 add_target_sections_of_objfile.
3770
fb934770
LC
37712014-06-05 Ludovic Courtès <ludo@gnu.org>
3772
3773 * guile/scm-value.c (gdbscm_history_append_x): Use
3774 'vlscm_get_value_smob_arg_unsafe' instead of
3775 'vlscm_scm_to_value'.
3776
6ef284bd
SM
37772014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3778
3779 PR mi/15806
3780 * utils.c (printchar): Don't escape at all if quoter is NUL.
3781 Update function documentation to clarify effect of parameter
3782 QUOTER.
3783 * remote.c (escape_buffer): Pass '\\' as the quoter to
3784 fputstrn_unfiltered.
3785 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3786 generate the output.
3787 (mi_solib_unloaded): Same.
3788
270c9937
JB
37892014-06-05 Joel Brobecker <brobecker@adacore.com>
3790
3791 * development.sh: Delete.
3792 * Makefile.in (config.status): Adjust dependency on development.sh.
3793 * configure.ac: Adjust development.sh source call.
3794 * configure: Regenerate.
3795
16f691fb
DE
37962014-06-04 Doug Evans <xdje42@gmail.com>
3797
3798 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3799 is_scheme_bkpt, spec.
3800 (bpscm_make_breakpoint_smob): Initialize new members.
3801 (gdbscm_create_breakpoint_x): Split into two ...
3802 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3803 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3804 (scheme_function breakpoint_functions): Update.
3805 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3806 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3807 register-breakpoint!.
3808
ef7cab6b
JB
38092014-06-04 Joel Brobecker <brobecker@adacorer.com>
3810
3811 PR server/17023
3812 * mem-break.c (z_type_supported): Return zero if
3813 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3814
012370f6
TT
38152014-06-04 Tom Tromey <tromey@redhat.com>
3816
3817 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3818 value_from_contents_and_address_unresolved.
3819 (ada_template_to_fixed_record_type_1): Likewise.
3820 (ada_which_variant_applies): Likewise.
3821 * value.h (value_from_contents_and_address_unresolved): Declare.
3822 * value.c (value_from_contents_and_address_unresolved): New
3823 function.
3824 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3825 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3826 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3827
92e2a17f
TT
38282014-06-04 Tom Tromey <tromey@redhat.com>
3829
3830 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3831
c0939df1
TT
38322014-06-04 Tom Tromey <tromey@redhat.com>
3833
3834 * procfs.c (procfs_attach): Make "args" const.
3835 * windows-nat.c (windows_attach): Make "args" const.
3836 * nto-procfs.c (procfs_attach): Make "args" const.
3837 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3838 * go32-nat.c (go32_attach): Make "args" const.
3839 * gnu-nat.c (gnu_attach): Make "args" const.
3840 * darwin-nat.c (darwin_attach): Make "args" const.
3841 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3842 * linux-nat.c (linux_nat_attach): Make "args" const.
3843 * remote.c (extended_remote_attach_1, extended_remote_attach):
3844 Make "args" const.
3845 * target.h (struct target_ops) <to_attach>: Make "args" const.
3846 (find_default_attach): Likewise.
3847 * utils.c (parse_pid_to_attach): Make "args" const.
3848 * utils.h (parse_pid_to_attach): Update.
3849
8eaff7cd
TT
38502014-06-04 Tom Tromey <tromey@redhat.com>
3851
3852 * target-delegates.c: Rebuild.
3853 * target.c (default_thread_address_space): New function.
3854 (target_thread_address_space): Simplify.
3855 * target.h (struct target_ops) <to_thread_address_space>: Add
3856 TARGET_DEFAULT_FUNC.
3857
1913f160
DE
38582014-06-04 Doug Evans <xdje42@gmail.com>
3859
3860 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3861
70ad5bff
MM
38622014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3863
3864 * record-btrace.c: Include event-loop.h and inf-loop.h.
3865 (record_btrace_resume_exec_dir)
3866 (record_btrace_async_inferior_event_handler)
3867 (record_btrace_handle_async_inferior_event): New.
3868 (record_btrace_open): Create async event handler.
3869 (record_btrace_close): Delete async event handler.
3870 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3871 Mark async event handler.
3872 (record_btrace_execution_direction): New.
3873 (init_record_btrace_ops): Initialize to_execution_direction.
3874
b6210538
DE
38752014-06-03 Doug Evans <xdje42@gmail.com>
3876
3877 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3878 (gdbscm_make_parameter): Ditto.
3879
a5b1fd27
DE
38802014-06-03 Doug Evans <dje@google.com>
3881
3882 * exec.c (exec_close_1): Call clear_section_table instead of
3883 resize_section_table.
3884 (clear_section_table): New function.
3885 (resize_section_table): Make static. Rename arg num_added to
3886 adjustment.
3887 * exec.h (clear_section_table): Declare.
3888 (resize_section_table): Delete.
3889 * progspace.c (release_program_space): Call clear_section_table
3890 instead of resize_section_table.
3891
0c6e92a5
SC
38922014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3893
3894 * NEWS (Python Scripting): Add entry about the new xmethods
3895 feature.
3896
883964a7
SC
38972014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3898
3899 * python/py-xmethods.c: New file.
3900 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3901 (objfpy_dealloc): XDECREF on the new xmethods field.
3902 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3903 field.
3904 (objfpy_get_xmethods): New function.
3905 (objfile_getset): New entry 'xmethods'.
3906 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3907 (pspy_dealloc): XDECREF on the new xmethods field.
3908 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3909 field.
3910 (pspy_get_xmethods): New function.
3911 (pspace_getset): New entry 'xmethods'.
3912 * python/python-internal.h: Add declarations for new functions.
3913 * python/python.c (_initialize_python): Invoke
3914 gdbpy_initialize_xmethods.
3915 * python/lib/gdb/__init__.py (xmethods): New
3916 attribute.
3917 * python/lib/gdb/xmethod.py: New file.
3918 * python/lib/gdb/command/xmethods.py: New file.
3919
58992dc5
SC
39202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3921
3922 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3923 best match method returned by find_overload_match is an xmethod.
3924 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3925 the best matching operator returned by find_overload_match is an
3926 xmethod.
3927 * valops.c: #include "extension.h".
3928 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3929 Return void. The list of matching source methods is returned in
3930 "fn_list" and a vector of matching debug method workers is
3931 returned in "xm_worker_vec". Update all callers.
3932 (value_find_oload_method_list): Likewise.
3933 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3934 non-NULL, then the index of the best matching method in this
3935 vector is returned. Update all callers.
3936 (find_overload_match): Include xmethods while performing overload
3937 resolution.
3938
e81e7f5e
SC
39392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3940
3941 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3942 * extension-priv.h (struct extension_language_ops): Add the
3943 xmethod interface.
3944 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3945 get_matching_xmethod_workers, get_xmethod_argtypes,
3946 invoke_xmethod, free_xmethod_worker,
3947 free_xmethod_worker_vec): New functions.
3948 * extension.h: #include "common/vec.h".
3949 New function declarations.
3950 (struct xmethod_worker): New struct.
3951 (VEC (xmethod_worker_ptr)): New vector type.
3952 (xmethod_worker_ptr): New typedef.
3953 (xmethod_worker_vec): Likewise.
3954 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3955 builtin_type.
3956 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3957 (struct builtin_type): New field "xmethod".
3958 * valarith.c (value_ptradd): Assert that the value argument is not
3959 lval_xcallable.
3960 * valops.c (value_must_coerce_to_target): Return 0 for
3961 lval_xcallable values.
3962 * value.c (struct value): New field XM_WORKER in the field
3963 LOCATION.
3964 (value_address, value_raw_address): Return 0 for lval_xcallable
3965 values.
3966 (set_value_address): Assert that the value is not an
3967 lval_xcallable.
3968 (value_free): Free the associated xmethod worker when freeing
3969 lval_xcallable values.
3970 (set_value_component_location): Assert that the WHOLE value is not
3971 lval_xcallable.
3972 (value_of_xmethod, call_xmethod): New functions.
3973 * value.h: Declare "struct xmethod_worker".
3974 Declare new functions value_of_xmethod, call_xmethod.
3975
ef370185
JB
39762014-06-03 Joel Brobecker <brobecker@adacore.com>
3977 Pedro Alves <palves@redhat.com>
3978
3979 PR breakpoints/17000
3980 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3981 New function, extracted from software_breakpoint_inserted_here_p.
3982 (software_breakpoint_inserted_here_p): Replace factored out code
3983 by call to find_non_raw_software_breakpoint_inserted_here.
3984 (bp_target_info_copy_insertion_state): New function.
3985 (bkpt_insert_location): Handle the case of a single-step
3986 breakpoint already inserted at the same address.
3987 (bkpt_remove_location): Handle the case of a single-step
3988 breakpoint still inserted at the same address.
3989 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3990 breakpoint already inserted at the same address.
3991 (deprecated_remove_raw_breakpoint): Handle the case of a
3992 non-raw breakpoint still inserted at the same address.
3993 (find_single_step_breakpoint): New function, extracted from
3994 single_step_breakpoint_inserted_here_p.
3995 (find_single_step_breakpoint): New function,
3996 factored out from single_step_breakpoint_inserted_here_p.
3997 (single_step_breakpoint_inserted_here_p): Reimplement.
3998
1e2ccb61
BM
39992014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4000
4001 Pushed by Joel Brobecker <brobecker@adacore.com>
4002 * source.c (show_substitute_path_command): Fix display of matching
4003 substitution rules.
4004
d3448d85
GB
40052014-06-03 Gary Benson <gbenson@redhat.com>
4006
4007 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4008
06eb1586
DE
40092014-06-02 Doug Evans <xdje42@gmail.com>
4010
4011 Add parameter support for Guile.
4012 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4013 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4014 (scm-param.o): New rule.
4015 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4016 (gdbscm_misc_error): Declare.
4017 (gdbscm_canonicalize_command_name): Declare.
4018 (gdbscm_scm_to_host_string): Declare.
4019 (gdbscm_scm_from_host_string): Declare.
4020 (gdbscm_initialize_parameters): Declare.
4021 * guile/guile.c (initialize_gdb_module): Call
4022 gdbscm_initialize_parameters.
4023 * guile/lib/gdb.scm: Export parameter symbols.
4024 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4025 cmdscm_canonicalize_name and made public. All callers updated.
4026 * guile/scm-exception.c (gdbscm_misc_error): New function.
4027 * guile/scm-param.c: New file.
4028 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4029 (gdbscm_scm_to_host_string): New function.
4030 (gdbscm_scm_from_host_string): New function.
4031 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4032
e698b8c4
DE
40332014-06-02 Doug Evans <xdje42@gmail.com>
4034
4035 Add command support for Guile.
4036 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4037 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4038 (scm-cmd.o): New rule.
4039 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4040 (gdbscm_user_error_p): Declare.
4041 (gdbscm_parse_command_name): Declare.
4042 (gdbscm_valid_command_class_p): Declare.
4043 (gdbscm_initialize_commands): Declare.
4044 * guile/guile.c (initialize_gdb_module): Call
4045 gdbscm_initialize_commands.
4046 * guile/lib/gdb.scm: Export command symbols.
4047 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4048 (throw-user-error): New function.
4049 * guile/scm-cmd.c: New file.
4050 * guile/scm-exception.c (user_error_symbol): New static global.
4051 (gdbscm_user_error_p): New function.
4052 (gdbscm_initialize_exceptions): Set user_error_symbol.
4053 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4054
fb1f94b0
PM
40552014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4056
4057 * top.c (command_loop): Handle comments here...
4058 (command_line_input): ... not here.
4059
ded03782
DE
40602014-06-02 Doug Evans <xdje42@gmail.com>
4061
4062 Add progspace support for Guile.
4063 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4064 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4065 (scm-progspace.o): New rule.
4066 * guile/guile-internal.h (pspace_smob): New typedef.
4067 (psscm_pspace_smob_pretty_printers): Declare.
4068 (psscm_pspace_smob_from_pspace): Declare.
4069 (psscm_scm_from_pspace): Declare.
4070 * guile/guile.c (initialize_gdb_module): Call
4071 gdbscm_initialize_pspaces.
4072 * guile/lib/gdb.scm: Export progspace symbols.
4073 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4074 support.
4075 (append-pretty-printer!): Ditto.
4076 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4077 Implement.
4078 * guile/scm-progspace.c: New file.
4079
397998fc
AM
40802014-06-03 Alan Modra <amodra@gmail.com>
4081
4082 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4083 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4084
6aa5f3a6
DE
40852014-06-02 Doug Evans <dje@google.com>
4086
4087 Add support for skeletonless type units.
4088 * dwarf2read.c (struct dwarf2_per_objfile): New member
4089 n_allocated_type_units.
4090 (struct dwarf2_per_objfile) <tu_stats>: New member
4091 nr_all_type_units_reallocs.
4092 (create_signatured_type_table_from_index): Initialize
4093 n_allocated_type_units
4094 (create_all_type_units): Ditto.
4095 (add_type_unit): Move up in file. New arg slot.
4096 All callers updated. Increase space for all_type_units more
4097 efficiently.
4098 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4099 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4100 (lookup_dwp_signatured_type): Ditto.
4101 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4102 All callers updated.
4103 (build_type_psymtabs_1): Leave type_unit_groups as
4104 NULL if no TUs present.
4105 (print_tu_stats): New function.
4106 (process_skeletonless_type_unit): New function.
4107 (process_dwo_file_for_skeletonless_type_units): New
4108 function.
4109 (process_skeletonless_type_units): New function.
4110 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4111 Call print tu_stats if debugging enabled.
4112
41fac0cf
PA
41132014-06-02 Pedro Alves <palves@redhat.com>
4114
4115 * breakpoint.c (build_target_command_list): Don't build a command
4116 list if we have any duplicate location that isn't a dprintf.
4117
cd1608cc
PA
41182014-06-02 Pedro Alves <palves@redhat.com>
4119
4120 * breakpoint.c (dprintf_breakpoint_hit): New function.
4121 (initialize_breakpoint_ops): Install it as dprintf's
4122 breakpoint_hit method.
4123
486ef3b9
JB
41242014-06-02 Joel Brobecker <brobecker@adacore.com>
4125
4126 * source.c (substitute_path_rule_matches): Simplify using
4127 filename_ncmp instead of FILENAME_CMP.
4128
230cd560
JB
41292014-06-02 Joel Brobecker <brobecker@adacore.com>
4130
4131 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4132
16954d5d
LC
41332014-06-01 Ludovic Courtès <ludo@gnu.org>
4134
4135 * configure.ac: When Guile is available, check for the
4136 availability of 'scm_new_smob'.
4137 * configure, config.h.in: Regenerate.
4138 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4139 function.
4140
53e8a631
AB
41412014-05-30 Andrew Burgess <aburgess@broadcom.com>
4142
4143 * frame.c (struct frame_info): Add stop_string field.
4144 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4145 (get_prev_frame_always): Old content moved into
4146 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4147 TRY_CATCH, handle MEMORY_ERROR exceptions.
4148 (frame_stop_reason_string): New function definition.
4149 * frame.h (unwind_stop_reason_to_string): Extend comment to
4150 mention frame_stop_reason_string.
4151 (frame_stop_reason_string): New function declaration.
4152 * stack.c (frame_info): Switch to frame_stop_reason_string.
4153 (backtrace_command_1): Switch to frame_stop_reason_string.
4154 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4155 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4156 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4157
70e38b8e
AB
41582014-05-30 Andrew Burgess <aburgess@broadcom.com>
4159
4160 * frame.c (frame_stop_reason_string): Rename to ...
4161 (unwind_stop_reason_to_string): this.
4162 * frame.h (frame_stop_reason_string): Rename to ...
4163 (unwind_stop_reason_to_string): this.
4164 * stack.c (frame_info): Update call to frame_stop_reason_string.
4165 (backtrace_command_1): Likewise.
4166 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4167 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4168
938f0e2f
AB
41692014-05-30 Andrew Burgess <aburgess@broadcom.com>
4170
4171 * frame.c (remove_prev_frame): New function.
4172 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4173 remove_prev_frame.
4174
a09dd441
PA
41752014-05-29 Pedro Alves <palves@redhat.com>
4176
4177 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4178 and make it const. When a single-step decays to a continue,
4179 clear 'step', not 'hw_step'. Pass whether the caller wanted
4180 to step to user_visible_resume_ptid, not what we ask the
4181 target to do.
4182
bdc36728
PA
41832014-05-29 Pedro Alves <palves@redhat.com>
4184
4185 * infrun.c (process_event_stop_test, handle_step_into_function)
4186 (handle_step_into_function_backward): Adjust.
4187 Don't set the even thread's stop_step and call stop_waiting before
4188 calling end_stepping_range. Instead do that ...
4189 (end_stepping_range): ... here. Take an ecs pointer parameter.
4190
22bcd14b
PA
41912014-05-29 Pedro Alves <palves@redhat.com>
4192
4193 * infrun.c (stop_stepping): Rename to ...
4194 (stop_waiting): ... this.
4195 (proceed): Update comment.
4196 (process_event_stop_test, handle_inferior_event)
4197 (handle_signal_stop, handle_step_into_function)
4198 (handle_step_into_function_backward): Update.
4199
4ae57c05
PA
42002014-05-29 Pedro Alves <palves@redhat.com>
4201
4202 * infcall.c (run_inferior_call): Don't check whether the current
4203 thread is running after the proceed call.
4204
329ea579
PA
42052014-05-29 Pedro Alves <palves@redhat.com>
4206 Tom Tromey <tromey@redhat.com>
4207
4208 * NEWS: Mention "maint set target-async", "set mi-async", and that
4209 background execution commands are now always available.
4210 * target.h (target_async_permitted): Update comment.
4211 * target.c (target_async_permitted, target_async_permitted_1):
4212 Default to 1.
4213 (set_target_async_command): Rename to ...
4214 (maint_set_target_async_command): ... this.
4215 (show_target_async_command): Rename to ...
4216 (maint_show_target_async_command): ... this.
4217 (_initialize_target): Adjust.
4218 * infcmd.c (prepare_execution_command): Make extern.
4219 * inferior.h (prepare_execution_command): Declare.
4220 * infrun.c (set_observer_mode): Leave target async alone.
4221 * mi/mi-interp.c (mi_interpreter_init): Install
4222 mi_on_sync_execution_done as sync_execution_done observer.
4223 (mi_on_sync_execution_done): New function.
4224 (mi_execute_command_input_handler): Don't print the prompt if we
4225 just started a synchronous command with an async target.
4226 (mi_on_resume): Check sync_execution before printing prompt.
4227 * mi/mi-main.h (mi_async_p): Declare.
4228 * mi/mi-main.c: Include gdbcmd.h.
4229 (mi_async_p): New function.
4230 (mi_async, mi_async_1): New globals.
4231 (set_mi_async_command, show_mi_async_command, mi_async): New
4232 functions.
4233 (exec_continue): Call prepare_execution_command.
4234 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4235 (mi_execute_async_cli_command): Use mi_async_p.
4236 (_initialize_mi_main): Install "set mi-async". Make
4237 "target-async" a deprecated alias.
4238
92bcb5f9
PA
42392014-05-29 Pedro Alves <palves@redhat.com>
4240
4241 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4242 (_initialize_cli_interp): Adjust.
4243 * event-loop.c: Include "observer.h".
4244 (start_event_loop): Notify 'command_error' observers instead of
4245 calling display_gdb_prompt. Remove FIXME comment.
4246 * event-top.c (display_gdb_prompt): Remove call into the
4247 interpreters.
4248 * inf-loop.c: Include "observer.h".
4249 (inferior_event_handler): Notify 'command_error' observers instead
4250 of calling display_gdb_prompt.
4251 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4252 observers instead of calling display_gdb_prompt.
4253 * interps.c (interp_set): Don't call display_gdb_prompt.
4254 (current_interp_display_prompt_p): Delete.
4255 * interps.h (interp_prompt_p): Delete declaration.
4256 (interp_prompt_p_ftype): Delete.
4257 (struct interp_procs) <prompt_proc_p>: Delete field.
4258 (current_interp_display_prompt_p): Delete declaration.
4259 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4260 (_initialize_mi_interp): Adjust.
4261 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4262 'command_error' observers.
4263 (tui_on_sync_execution_done, tui_on_command_error): New
4264 functions.
4265 (tui_display_prompt_p): Delete.
4266 (_initialize_tui_interp): Adjust.
4267
fd664c91
PA
42682014-05-29 Pedro Alves <palves@redhat.com>
4269
4270 PR gdb/13860
4271 * cli/cli-interp.c: Include infrun.h and observer.h.
4272 (cli_uiout, cli_interp): New globals.
4273 (cli_on_signal_received, cli_on_end_stepping_range)
4274 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4275 functions.
4276 (cli_interpreter_init): Install them as 'end_stepping_range',
4277 'signal_received' 'signal_exited', 'exited' and 'no_history'
4278 observers.
4279 (_initialize_cli_interp): Remove cli_interp local.
4280 * infrun.c (handle_inferior_event): Call the several stop reason
4281 observers instead of printing the stop reason directly.
4282 (end_stepping_range): New function.
4283 (print_end_stepping_range_reason, print_signal_exited_reason)
4284 (print_exited_reason, print_signal_received_reason)
4285 (print_no_history_reason): Make static, and add an uiout
4286 parameter. Print to that instead of to CURRENT_UIOUT.
4287 * infrun.h (print_end_stepping_range_reason)
4288 (print_signal_exited_reason, print_exited_reason)
4289 (print_signal_received_reason print_no_history_reason): New
4290 declarations.
4291 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4292 'mi_uiout'.
4293 <cli_uiout>: New field.
4294 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4295 uiout for CLI output. Install 'signal_received',
4296 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4297 observers.
4298 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4299 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4300 (mi_on_no_history): New functions.
4301 (ui_out_free_cleanup): Delete function.
4302 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4303 instead use the one already stored in the MI interpreter data.
4304 (mi_ui_out): Adjust.
4305 * tui/tui-interp.c: Include infrun.h and observer.h.
4306 (tui_interp): New global.
4307 (tui_on_signal_received, tui_on_end_stepping_range)
4308 (tui_on_signal_exited, tui_on_exited)
4309 (tui_on_no_history): New functions.
4310 (tui_init): Install them as 'end_stepping_range',
4311 'signal_received' 'signal_exited', 'exited' and 'no_history'
4312 observers.
4313 (_initialize_tui_interp): Delete tui_interp local.
4314
8817a6f2
PA
43152014-05-29 Pedro Alves <palves@redhat.com>
4316
4317 PR gdb/15713
4318 * linux-nat.c (linux_nat_resume_callback): Rename the second
4319 parameter to 'except'. Skip LP if it points to EXCEPT.
4320 (linux_nat_resume): Don't mark the event lwp as not stopped
4321 before resuming sibling lwps. Instead ask
4322 linux_nat_resume_callback to skip the event lwp. Mark it as not
4323 stopped after actually resuming it.
4324 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4325 resuming it.
4326 (wait_lwp): Mark the lwp as stopped here.
4327 (stop_wait_callback): Mark the lwp as not stopped right after
4328 resuming it. Don't mark lwps as stopped here.
4329 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4330 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4331
251bde03
PA
43322014-05-29 Pedro Alves <palves@redhat.com>
4333
4334 PR PR15693
4335 * infrun.c (resume): Determine how much to resume depending on
4336 whether the caller wanted a step, not whether we can hardware step
4337 the target. Mark all threads that we intend to run as running,
4338 unless we're calling an inferior function.
4339 (normal_stop): If the thread is running an infcall, don't finish
4340 thread state.
4341 * target.c (target_resume): Don't mark threads as running here.
4342
7f3c0343
JB
43432014-05-28 Joel Brobecker <brobecker@adacore.com>
4344
4345 * serial.c (_initialize_serial): Remove support for
4346 the "set remotebaud" and "show remotebaud" commands.
4347 * NEWS: Add entry documenting the removal of that command.
4348
ee34b3f9
YQ
43492014-05-28 Yao Qi <yao@codesourcery.com>
4350
4351 * charset.c: Fix typo in comments.
4352
add6c04d
GB
43532014-05-27 Gary Benson <gbenson@redhat.com>
4354
4355 * utils.c (internal_vproblem): Prompt for a bug report.
4356
92c48fc5
AW
43572014-05-26 Andy Wingo <wingo@igalia.com>
4358
4359 * guile/scm-arch.c (arscm_mark_arch_smob):
4360 * guile/scm-block.c (bkscm_mark_block_smob)
4361 (bkscm_mark_block_syms_progress_smob):
4362 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4363 * guile/scm-exception.c (exscm_mark_exception_smob):
4364 * guile/scm-frame.c (frscm_mark_frame_smob):
4365 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4366 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4367 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4368 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4369 (ppscm_mark_pretty_printer_worker_smob):
4370 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4371 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4372 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4373 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4374 mark functions.
4375 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4376 function.
4377
b2715b27
AW
43782014-05-26 Andy Wingo <wingo@igalia.com>
4379 Doug Evans <xdje42@gmail.com>
4380
4381 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4382 empty_base_class. All uses updated.
4383 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4384 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4385 Adapt all callers.
4386 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4387 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4388 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4389 (gdbscm_gsmob_has_property_p, add_property_name)
4390 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4391 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4392 (gdb-object-has-property?, gdb-object-properties): Remove.
4393 (gdb-object-kind): Renamed from gsmob-kind.
4394
214ab2da
AW
43952014-05-26 Andy Wingo <wingo@igalia.com>
4396
4397 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4398 * configure: Regenerate.
4399
589fdceb
MM
44002014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4401
4402 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4403
67b5c0c1
MM
44042014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4405
4406 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4407 (replay_memory_access_read_only, replay_memory_access_read_write)
4408 (replay_memory_access_types, replay_memory_access)
4409 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4410 (cmd_set_record_btrace, cmd_show_record_btrace)
4411 (cmd_show_replay_memory_access): New.
4412 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4413 (record_btrace_remove_breakpoint): Replace
4414 record_btrace_allow_memory_access with replay_memory_access.
4415 (_initialize_record_btrace): Add commands.
4416 * NEWS: Announce it.
4417
036cd381
RR
44182014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4419
4420 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4421
c77c1e42
RR
44222014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4423
4424 * MAINTAINERS (Write After Approval): Move self back from
4425 paper trail.
4426
45741a9c
PA
44272014-05-22 Pedro Alves <palves@redhat.com>
4428
4429 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4430 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4431 (disable_randomization, enum exec_direction_kind)
4432 (execution_direction, stop_registers, start_remote)
4433 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4434 (wait_for_inferior, normal_stop, get_last_target_status)
4435 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4436 (insert_step_resume_breakpoint_at_sal)
4437 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4438 (set_step_info, print_stop_event, signal_stop_state)
4439 (signal_print_state, signal_pass_state, signal_stop_update)
4440 (signal_print_update, signal_pass_update)
4441 (update_signals_program_target, clear_exit_convenience_vars)
4442 (displaced_step_dump_bytes, update_observer_mode)
4443 (signal_catch_update, gdb_signal_from_command): Move
4444 declarations ...
4445 * infrun.h: ... to this new file.
4446 * amd64-tdep.c: Include infrun.h.
4447 * annotate.c: Include infrun.h.
4448 * arch-utils.c: Include infrun.h.
4449 * arm-linux-tdep.c: Include infrun.h.
4450 * arm-tdep.c: Include infrun.h.
4451 * break-catch-sig.c: Include infrun.h.
4452 * breakpoint.c: Include infrun.h.
4453 * common/agent.c: Include infrun.h instead of inferior.h.
4454 * corelow.c: Include infrun.h.
4455 * event-top.c: Include infrun.h.
4456 * go32-nat.c: Include infrun.h.
4457 * i386-tdep.c: Include infrun.h.
4458 * inf-loop.c: Include infrun.h.
4459 * infcall.c: Include infrun.h.
4460 * infcmd.c: Include infrun.h.
4461 * infrun.c: Include infrun.h.
4462 * linux-fork.c: Include infrun.h.
4463 * linux-nat.c: Include infrun.h.
4464 * linux-thread-db.c: Include infrun.h.
4465 * monitor.c: Include infrun.h.
4466 * nto-tdep.c: Include infrun.h.
4467 * procfs.c: Include infrun.h.
4468 * record-btrace.c: Include infrun.h.
4469 * record-full.c: Include infrun.h.
4470 * remote-m32r-sdi.c: Include infrun.h.
4471 * remote-mips.c: Include infrun.h.
4472 * remote-notif.c: Include infrun.h.
4473 * remote-sim.c: Include infrun.h.
4474 * remote.c: Include infrun.h.
4475 * reverse.c: Include infrun.h.
4476 * rs6000-tdep.c: Include infrun.h.
4477 * s390-linux-tdep.c: Include infrun.h.
4478 * solib-irix.c: Include infrun.h.
4479 * solib-osf.c: Include infrun.h.
4480 * solib-svr4.c: Include infrun.h.
4481 * target.c: Include infrun.h.
4482 * top.c: Include infrun.h.
4483 * windows-nat.c: Include infrun.h.
4484 * mi/mi-interp.c: Include infrun.h.
4485 * mi/mi-main.c: Include infrun.h.
4486 * python/py-threadevent.c: Include infrun.h.
4487
98eb56a4
PA
44882014-05-22 Pedro Alves <palves@redhat.com>
4489
4490 * infrun.c (handle_inferior_event): Store the exit code for
4491 --return-child-result here, instead of ...
4492 (print_exited_reason): ... here.
4493
17b2616c
PA
44942014-05-21 Pedro Alves <palves@redhat.com>
4495
4496 PR gdb/13860
4497 * gdbthread.h (struct thread_control_state): New field
4498 `command_interp'.
4499 * infrun.c (follow_fork): Copy the new thread control field to the
4500 child fork thread.
4501 (clear_proceed_status_thread): Clear the new thread control field.
4502 (proceed): Set the new thread control field.
4503 * interps.h (command_interp): Declare.
4504 * interps.c (command_interpreter): New global.
4505 (command_interp): New function.
4506 (interp_exec): Set `command_interpreter' while here.
4507 * cli-out.c (cli_uiout_dtor): New function.
4508 (cli_ui_out_impl): Install it.
4509 * mi/mi-interp.c: Include cli-out.h.
4510 (mi_cmd_interpreter_exec): Add comment.
4511 (restore_current_uiout_cleanup): New function.
4512 (ui_out_free_cleanup): New function.
4513 (mi_on_normal_stop): If finishing an execution command started by
4514 a CLI command, or any kind of breakpoint-like event triggered,
4515 print the stop event to the output (CLI) stream.
4516 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4517
5166082f
PA
45182014-05-21 Pedro Alves <palves@redhat.com>
4519
4520 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4521 current source line having changed.
4522 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4523 * infrun.c (normal_stop): Adjust call to
4524 set_current_sal_from_frame.
4525 * source.c (clear_lines_listed_range): New function.
4526 (set_current_source_symtab_and_line, identify_source_line): Clear
4527 the lines listed range.
4528 (line_info): Handle the first "info line" after the current source
4529 line having changed.
4530 * stack.c (print_stack_frame): Remove center handling.
4531 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4532 center sal.line.
4533
c1ee2fb3
PA
45342014-05-21 Pedro Alves <palves@redhat.com>
4535
4536 * inf-child.c (inf_child_mourn_inferior): New function.
4537 * inf-child.h (inf_child_mourn_inferior): New declaration.
4538 * darwin-nat.c (darwin_mourn_inferior): Use
4539 inf_child_mourn_inferior.
4540 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4541 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4542 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4543 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4544 * windows-nat.c (windows_mourn_inferior): Likewise.
4545
5c6d4fb2
DE
45462014-05-21 Doug Evans <xdje42@gmail.com>
4547
250748cb 4548 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4549
4a2722c5
DE
45502014-05-21 Doug Evans <xdje42@gmail.com>
4551
17292b30 4552 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4553 (gdbscm_out_of_range_error): Ditto.
4554 (gdbscm_memory_error): Ditto.
250748cb
DE
4555 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4556 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4557 (gdbscm_out_of_range_error): Update.
4558 (gdbscm_memory_error): Update.
4559 (gdbscm_scm_to_target_string_unsafe): Delete.
4560
6a3cb8e8
PA
45612014-05-21 Pedro Alves <palves@redhat.com>
4562
4563 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4564 globals.
4565 (inf_child_open_target): New function.
4566 (inf_child_open): Use inf_child_open_target to push the target
4567 instead of erroring out.
4568 (inf_child_disconnect, inf_child_close)
4569 (inf_child_maybe_unpush_target): New functions.
4570 (inf_child_target): Install inf_child_disconnect and
4571 inf_child_close. Store a pointer to the returned object.
4572 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4573 declarations.
4574 * target.c (auto_connect_native_target): New global.
4575 (show_default_run_target): New function.
4576 (find_default_run_target): Return NULL if automatically connecting
4577 to the native target is disabled.
4578 (_initialize_target): Install set/show auto-connect-native-target.
4579 * NEWS: Mention "set auto-connect-native-target", and "target
4580 native".
4581 * linux-nat.c (super_close): New global.
4582 (linux_nat_close): Call super_close.
4583 (linux_nat_add_target): Store a pointer to the base class's
4584 to_close method.
4585 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4586 inf_child_maybe_unpush.
4587 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4588 already pushed.
4589 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4590 the inferior. Use inf_child_maybe_unpush_target.
4591 (inf_ttrace_attach): Don't push the target if it is already
4592 pushed.
4593 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4594 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4595 after mourning the inferior. Use inf_child_maybe_unpush_target.
4596 (darwin_attach_pid): Don't push the target if it is already
4597 pushed.
4598 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4599 mourning the inferior. Use inf_child_maybe_unpush_target.
4600 (gnu_detach): Use inf_child_maybe_unpush_target.
4601 * go32-nat.c (go32_create_inferior): Don't push the target if it
4602 is already pushed.
4603 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4604 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4605 (procfs_open): Rename to ...
4606 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4607 comments. Can target_preopen before changing node. Call
4608 inf_child_open_target to push the target explicitly.
4609 (procfs_attach): Don't push the target if it is already pushed.
4610 (procfs_detach): Use inf_child_maybe_unpush_target.
4611 (procfs_create_inferior): Don't push the target if it is already
4612 pushed.
4613 (nto_native_ops): New global.
4614 (procfs_open): Reimplement.
4615 (procfs_native_open): New function.
4616 (init_procfs_targets): Install procfs_native_open as to_open of
4617 "target native". Store a pointer to the "native" target in
4618 nto_native_ops.
4619 * procfs.c (procfs_attach): Don't push the target if it is already
4620 pushed.
4621 (procfs_detach): Use inf_child_maybe_unpush_target.
4622 (procfs_mourn_inferior): Only unpush the target after mourning the
4623 inferior. Use inf_child_maybe_unpush_target.
4624 (procfs_init_inferior): Don't push the target if it is already
4625 pushed.
4626 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4627 if it is already pushed.
4628
930ee1b1
PA
46292014-05-21 Pedro Alves <palves@redhat.com>
4630
4631 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4632 and "procfs" targets are now called "native" instead.
4633
1f5d1b13
PA
46342014-05-21 Pedro Alves <palves@redhat.com>
4635
4636 * go32-nat.c (go32_open): Delete.
4637 (go32_target): Don't override the to_open method.
4638
132f8e03
PA
46392014-05-21 Pedro Alves <palves@redhat.com>
4640
4641 * nto-procfs.c (procfs_can_run): New function.
4642 (nto_procfs_ops): New global.
4643 (init_procfs_targets): New, based on procfs_target. Install
4644 "target native" in addition to "target procfs".
4645 (_initialize_procfs): Call init_procfs_targets instead of adding
4646 the target here.
4647
03c136c3
PA
46482014-05-21 Pedro Alves <palves@redhat.com>
4649
4650 * windows-nat.c (windows_target): Don't override to_shortname,
4651 to_longname or to_doc.
4652
a635d0f3
PA
46532014-05-21 Pedro Alves <palves@redhat.com>
4654
4655 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4656 to_doc.
4657
4f9b5133
PA
46582014-05-21 Pedro Alves <palves@redhat.com>
4659
4660 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4661 to_shortname, to_longname or to_doc.
4662
bc85afde
PA
46632014-05-21 Pedro Alves <palves@redhat.com>
4664
4665 * go32-nat.c (go32_target): Don't override to_shortname,
4666 to_longname or to_doc.
4667
4ebfc96e
PA
46682014-05-21 Pedro Alves <palves@redhat.com>
4669
4670 * inf-child.c (inf_child_open): Remove mention of "child".
4671 (inf_child_target): Rename target to "native" instead of "child".
4672
2648dfed
AA
46732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4674
4675 * Makefile.in (SFILES): Delete "regset.c".
4676 (COMMON_OBS): Delete "regset.o".
4677 * regset.c: Remove.
4678 * regset.h (regset_alloc): Delete prototype.
4679
b13feb94
AA
46802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4681
4682 * sparc-linux-tdep.c (sparc32_linux_gregset)
4683 (sparc32_linux_fpregset): New static regset structures.
4684 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4685 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4686 'fpregset' fields.
4687 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4688 (sparc64_linux_fpregset): New static regset structures.
4689 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4690 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4691 New static regset structures.
4692 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4693 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4694 New static regset structures.
4695 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4696 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4697 New static regset structures.
4698 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4699 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4700 New static regset structures.
4701 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4702
b4fd25c9
AA
47032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4704
4705 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4706 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4707 register maps ("regmaps") from "*regset" to "*regmap". Do this
4708 for all regmap types and variables.
4709 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4710 (sparc32_linux_supply_core_gregset)
4711 (sparc32_linux_collect_core_gregset)
4712 (sparc32_linux_supply_core_fpregset)
4713 (sparc32_linux_collect_core_fpregset): Likewise.
4714 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4715 (sparc_gregmap, sparc_fpregmap): ... these.
4716 (sparc_supply_gregset, sparc_collect_gregset)
4717 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4718 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4719 (_initialize_sparc_nat): Rename regmaps.
4720 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4721 (sparc_gregmap, sparc_fpregmap): ... these.
4722 (sparc_supply_gregset, sparc_collect_gregset)
4723 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4724 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4725 Rename macros to...
4726 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4727 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4728 Likewise.
4729 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4730 Rename to...
4731 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4732 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4733 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4734 regmaps.
4735 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4736 (sparc32_bsd_fpregset): Rename to...
4737 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4738 (sparc32_bsd_fpregmap): ... these.
4739 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4740 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4741 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4742 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4743 (struct sparc_gregmap, struct sparc_fpregmap)
4744 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4745 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4746 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4747 (sparc32_supply_regset, sparc32_collect_gregset)
4748 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4749 prototypes.
4750 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4751 (sparc64_linux_ptrace_gregmap): ... this.
4752 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4753 (_initialize_sparc64_linux_nat): Rename regmaps.
4754 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4755 (sparc64_linux_core_gregmap): ... this.
4756 (sparc64_linux_supply_core_gregset)
4757 (sparc64_linux_collect_core_gregset)
4758 (sparc64_linux_supply_core_fpregset)
4759 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4760 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4761 (sparc64_sol2_fpregset): Rename to...
4762 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4763 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4764 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4765 regmaps.
4766 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4767 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4768 (sparc64_bsd_fpregset): Rename to...
4769 (struct sparc_gregmap, sparc64_sol2_gregmap)
4770 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4771 (sparc64_bsd_fpregmap): ... these.
4772 (sparc64_supply_gregset, sparc64_collect_gregset)
4773 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4774 prototypes.
4775 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4776 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4777 (sparc64fbsd_gregmap): ... this.
4778 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4779 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4780 Rename regmaps.
4781 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4782 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4783 (sparc64nbsd_collect_fpregset): Likewise.
4784 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4785 (sparc64nbsd_gregmap): ... this.
4786 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4787 regmaps.
4788 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4789 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4790 (sparc64obsd_gregmap): ... this.
4791 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4792 regmaps.
4793 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4794 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4795 (sparc32nbsd_gregmap): ... this.
4796 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4797 regmaps.
4798
8fea3224
AA
47992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4800
4801 * score-tdep.c (score7_linux_gregset): New static regset
4802 structure.
4803 (score7_linux_regset_from_core_section): Remove dynamic regset
4804 allocation.
4805 (score_gdbarch_init): Drop allocation of tdep structure.
4806 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4807
24534243
AA
48082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4809
4810 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4811 regset structures.
4812 (am33_regset_from_core_section): Remove dynamic regset
4813 allocations.
4814
b7195f27
AA
48152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4816
4817 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4818 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4819 structures.
4820 (mips_linux_regset_from_core_section): Remove dynamic regset
4821 allocations.
4822 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4823 'gregset64', 'fpregset', and 'fpregset64'.
4824 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4825 deleted tdep fields.
4826
ecc37a5a
AA
48272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4828
4829 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4830 regset structures.
4831 (amd64_regset_from_core_section): Remove dynamic regset
4832 allocations.
4833 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4834 structure.
4835 (amd64obsd_regset_from_core_section): Remove dynamic regset
4836 allocation.
4837 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4838 Likewise.
4839 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4840 x86-common regset supply function.
4841 * i386-tdep.c (i386_collect_gregset): Make static.
4842 (i386_gregset): New global regset structure.
4843 (i386_fpregset, i386_xstateregset): New static regset structures.
4844 (i386_regset_from_core_section): Remove dynamic regset
4845 allocations.
4846 (i386_gdbarch_init): Remove initialization of tdep fields
4847 'gregset', 'fpregset', and 'xstateregset'.
4848 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4849 'fpregset', and 'xstateregset'.
4850 (i386_collect_gregset): Remove prototype.
4851 (i386_gregset): New declaration.
4852 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4853 structure.
4854 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4855 allocation.
4856
b7611c43
AA
48572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4858
4859 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4860 (arm_linux_vfpregset): New static regset structures.
4861 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4862 regset structures.
4863 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4864 and 'vfpregset' fields.
4865
a069a2bd
AA
48662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4867
4868 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4869 (aarch64_linux_fpregset): New static regset structures.
4870 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4871 of regset structures.
4872 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4873 'fpregset' fields.
4874
09424cff
AA
48752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4876
4877 * regset.h (struct regset): Remove gdbarch field.
4878 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4879 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4880 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4881 Likewise.
4882 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4883 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4884 (ppc32_linux_vsxregset): Likewise.
4885 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4886 via the regcache instead of the regset.
4887 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4888 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4889 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4890 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4891 Likewise.
4892
3ca7dae4
AA
48932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4894
4895 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4896 Constify structures.
4897 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4898 (alphanbsd_aout_gregset): Likewise.
4899 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4900 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4901 Likewise.
4902 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4903 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4904 Likewise.
4905 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4906 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4907 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4908 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4909 * m88k-tdep.c (m88k_gregset): Likewise.
4910 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4911 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4912 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4913 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4914 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4915 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4916 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4917 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4918 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4919 Likewise.
4920 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4921 * sh-tdep.h (sh_corefile_gregset): Likewise.
4922 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4923 * vax-tdep.c (vax_gregset): Likewise.
4924
5876f503
JK
49252014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4926
4927 Fix TLS access for -static -pthread.
4928 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4929 (try_thread_db_load_1): Initialize it.
4930 (thread_db_get_thread_local_address): Call it if LM is zero.
4931 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4932 * target.h (struct target_ops) (to_get_thread_local_address): Add
4933 load_module_addr comment.
4934
0256a6ac
PA
49352014-05-21 Pedro Alves <palves@redhat.com>
4936
4937 * dcache.c (dcache_read_memory_partial): If reading the cache line
4938 fails, fallback to reading just the memory the caller wanted.
4939
227533ac
DE
49402014-05-20 Doug Evans <dje@google.com>
4941
4942 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4943 instead of get_current_arch.
4944
936d2992
PA
49452014-05-20 Pedro Alves <palves@redhat.com>
4946
4947 * NEWS: Mention that compare-sections now works with all targets.
4948
4949 * remote.c (PACKET_qCRC): New enum value.
4950 (remote_verify_memory): Don't send qCRC if the target has no
4951 execution. Use packet_support/packet_ok. If the target doesn't
4952 support the qCRC packet, fallback to a deep memory copy.
4953 (compare_sections_command): Say "target image" instead of "remote
4954 executable".
4955 (_initialize_remote): Add PACKET_qCRC to the list of config
4956 packets that have no associated command. Extend comment.
4957 * target.c (simple_verify_memory, default_verify_memory): New
4958 function.
4959 * target.h (struct target_ops) <to_verify_memory>: Default to
4960 default_verify_memory.
4961 (simple_verify_memory): New declaration.
4962 * target-delegates.c: Regenerate.
4963
e59fa00f
MM
49642014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4965
4966 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4967
f2205de0
HZ
49682014-05-20 Hui Zhu <hui@codesourcery.com>
4969 Yao Qi <yao@codesourcery.com>
4970
4971 PR backtrace/16558
4972 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4973 and change address of sp and pc.
4974
c4e54771
TT
49752014-05-19 Tom Tromey <tromey@redhat.com>
4976
4977 * gdbtypes.c (rank_function): Use XNEWVEC.
4978 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4979
73051182
DE
49802014-05-19 Doug Evans <dje@google.com>
4981
4982 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4983 build_type_unit_groups and moved closer to only caller. Remove
4984 arguments. All references updated. Remove outdated .gdb_index
4985 comment.
4986 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4987 build_type_psymtabs_1.
4988
8832e7e3
DE
49892014-05-19 Doug Evans <dje@google.com>
4990
4991 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4992 n_type_unit_groups, all_type_unit_groups. All uses removed.
4993 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4994 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4995 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4996 (add_type_unit_group_to_table): Delete.
4997
cd8ae15e
DE
49982014-05-19 Doug Evans <dje@google.com>
4999
5000 * eval.c (evaluate_subexp_standard): Add some comments.
5001
08f4850b
DE
50022014-05-17 Doug Evans <xdje42@gmail.com>
5003
5004 * progspace.c (remove_program_space): Delete, unused.
5005 * progspace.h (remove_program_space): Ditto.
5006
bed8455c
DE
50072014-05-17 Doug Evans <xdje42@gmail.com>
5008
5009 * inferior.c (prune_inferiors): Fix comment.
5010 (remove_inferior_command): Call prune_program_spaces.
5011
8d551b02
DE
50122014-05-16 Doug Evans <dje@google.com>
5013
5014 New command line option -D.
5015 * NEWS: Mention it.
5016 * main.c (set_gdb_data_directory): New function.
5017 (captured_main): Recognize -D. Flag error for --data-directory "".
5018 Call set_gdb_data_directory.
5019 (print_gdb_help): Print --data-directory, -D.
5020 * main.h (set_gdb_data_directory): Declare.
5021 * top.c (staged_gdb_datadir): New static global.
5022 (set_gdb_datadir): Call set_gdb_data_directory
5023 (show_gdb_datadir): New function.
5024 (init_main): Update init of data-directory parameter.
5025
18848e28
GF
50262014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5027
5028 Import the "dirfd" gnulib module.
5029 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5030 * gnulib/aclocal.m4: Update.
5031 * gnulib/config.in: Update.
5032 * gnulib/configure: Update.
5033 * gnulib/import/Makefile.am: Update.
5034 * gnulib/import/Makefile.in: Update.
5035 * gnulib/import/dirfd.c: New.
5036 * gnulib/import/m4/dirfd.m4: New.
5037 * gnulib/import/m4/gnulib-cache.m4: Update.
5038 * gnulib/import/m4/gnulib-comp.m4: Update.
5039
95c64f92
YQ
50402014-05-16 Pierre Muller <muller@sourceware.org>
5041 Yao Qi <yao@codesourcery.com>
5042
5043 * valprint.c (print_wchar): Move the code on checking whether
5044 W is a printable wide char to the default branch of switch
5045 statement below. Call wchar_printable instead of gdb_iswprint.
5046
cac395ea
TM
50472014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5048
19679eca 5049 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5050 ldr.w and ldrd instructions.
5051
83655187
DE
50522014-05-15 Doug Evans <dje@google.com>
5053
5054 * dwarf2read.c (read_structure_type): Delete outdated comments.
5055
dd756689
TT
50562014-05-14 Tom Tromey <tromey@redhat.com>
5057
5058 * macrocmd.c (print_macro_definition): Reindent.
5059
75ddda77
DE
50602014-05-13 Doug Evans <xdje42@gmail.com>
5061
5062 * python/py-cmd.c (cmdpy_completer): Add comment.
5063 (completers): Make const.
5064
b0f16a3e
SM
50652014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5066
5067 * infrun.c (resume): Remove should_resume (unused). Move up
5068 declaration of resume_ptid.
5069
033c3379
TT
50702014-05-13 Tom Tromey <tromey@redhat.com>
5071
5072 * language.h (unop_type_check): Remove.
5073 (binop_type_check): Don't declare.
5074
9b44a3a5
AA
50752014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5076
5077 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5078 call to regcache_raw_collect.
5079
303a33fa
SM
50802014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5081
5082 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5083 mi_console->quote as the quoting character.
5084
196100a0
SM
50852014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5086
5087 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5088
f989a1c8
TT
50892014-04-29 Tom Tromey <tromey@redhat.com>
5090
5091 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5092 "show debug varobj".
5093
9404b58f
KM
50942014-05-07 Kyle McMartin <kyle@redhat.com>
5095
5096 Pushed by Joel Brobecker <brobecker@adacore.com>.
5097 * aarch64-tdep.c (aarch64_software_single_step): New function.
5098 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5099 with aarch64_software_single_step.
5100
5e49ba57
JB
51012014-05-05 Joel Brobecker <brobecker@adacore.com>
5102
5103 GDB 7.7.1 released.
5104
c888a17d
KS
51052014-05-05 Keith Seitz <keiths@redhat.com>
5106
5107 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5108 variable or history value is successfully parsed.
5109
290a839c
YQ
51102014-05-05 Yao Qi <yao@codesourcery.com>
5111 Pedro Alves <palves@redhat.com>
5112
5113 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5114 address of blocks that intersects the requested range. Trim
5115 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5116 sections.
5117 * ctf.c (ctf_xfer_partial): Likewise.
5118
91256dc2
YQ
51192014-05-05 Yao Qi <yao@codesourcery.com>
5120
5121 * printcmd.c (display_command): Remove the check to
5122 target_has_execution.
5123
07284463
MK
51242014-05-03 Mark Kettenis <kettenis@gnu.org>
5125
5126 * ppcobsd-nat.c: Include "obsd-nat.h".
5127 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5128 add_target.
5129 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5130
30a1e6cc
SDJ
51312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5132
5133 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5134 and 16-bit signed and unsigned arguments. Update comment.
5135 (stap_parse_probe_arguments): Extend code to handle such
5136 arguments. Use warning instead of complaint to notify about
5137 unrecognized bitness.
5138
f33da99a
SDJ
51392014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5140
5141 PR breakpoints/16889
5142 * stap-probe.c (stap_parse_probe_arguments): Simplify
5143 check for non-prefixed probes (i.e., probes whose
5144 arguments do not start with "N@"). Always set the
5145 argument type to a sane value.
5146
95cf3b38
DT
51472014-05-01 David Taylor <dtaylor@emc.com>
5148
5149 * remote.c (compare_sections_command): Add -r option to compare
5150 all loadable read-only sections.
5151
1cfdf534
SC
51522014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5153
5154 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5155 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5156 Update all callers.
5157 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5158 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5159 Remove unused CORE_ADDR argument. Update all callers.
5160
ca4f7f8b
PA
51612014-04-29 Pedro Alves <palves@redhat.com>
5162
5163 * remote.c (struct packet_config) <detect>: Extend comment.
5164 (add_packet_config_cmd): Don't set the config's detect or support
5165 fields here.
5166 (init_all_packet_configs): Also initialize the config's 'detect'
5167 field.
5168 (reset_all_packet_configs_support): New function.
5169 (remote_open_1): Call reset_all_packet_configs_support instead of
5170 init_all_packet_configs.
5171 (_initialize_remote): Initialize all packet configs. Assert that
5172 all packets have an associated command, except a few known
5173 outliers.
5174
11c1ba78
JB
51752014-04-28 Joel Brobecker <brobecker@adacore.com>
5176
5177 * dwarf2read.c (read_subrange_type): Handle dynamic
5178 DW_AT_lower_bound attributes.
5179
8739bc53
JB
51802014-04-28 Joel Brobecker <brobecker@adacore.com>
5181
5182 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5183 dynamic bounds before computing its upper bound.
5184 (ada_discrete_type_low_bound): Same as above with the lower bound.
5185
6f8a3220
JB
51862014-04-28 Joel Brobecker <brobecker@adacore.com>
5187
5188 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5189 range types. Adjust the array handling implementation to
5190 take advantage of this change.
5191 (resolve_dynamic_range): New function, mostly extracted from
5192 resolve_dynamic_bounds.
5193 (resolve_dynamic_array): New function, mostly extracted from
5194 resolve_dynamic_bounds.
5195 (resolve_dynamic_bounds): Delete.
5196 (resolve_dynamic_type): Reimplement. Add handling of
5197 TYPE_CODE_RANGE types.
5198
4d072ce4
JB
51992014-04-28 Joel Brobecker <brobecker@adacore.com>
5200
5201 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5202 handling of parallel ___XA types.
5203
52865325
JB
52042014-04-28 Joel Brobecker <brobecker@adacore.com>
5205
5206 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5207 unnecessary second call to static_unwrap_type.
5208
433e77fa
HZ
52092014-04-27 Hui Zhu <hui@codesourcery.com>
5210
5211 * stack.c (print_frame_info): Call do_gdb_disassembly with
5212 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5213
b51a69ee
DE
52142014-04-26 Doug Evans <xdje42@gmail.com>
5215
5216 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5217
7ae1a6a6
PA
52182014-04-25 Pedro Alves <palves@redhat.com>
5219
5220 PR server/16255
5221 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5222 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5223 and newline from built string.
5224 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5225 (linux_ptrace_attach_fail_reason): ... this.
5226 * linux-nat.c (linux_nat_attach): Adjust to use
5227 linux_ptrace_attach_fail_reason.
5228
4082afcc
PA
52292014-04-25 Pedro Alves <palves@redhat.com>
5230
5231 * remote.c (struct remote_state): Remove multi_process_aware,
5232 non_stop_aware, cond_tracepoints, cond_breakpoints,
5233 breakpoint_commands, fast_tracepoints, static_tracepoints,
5234 install_in_trace, disconnected_tracing,
5235 enable_disable_tracepoints, string_tracing, and
5236 augmented_libraries_svr4_read fields.
5237 (remote_multi_process_p): Move further below in the file.
5238 (struct packet_config): Add comments.
5239 (update_packet_config): Delete function.
5240 (show_packet_config_cmd): Use packet_config_support.
5241 (add_packet_config_cmd): Use NULL as set callback.
5242 (packet_ok): "set remote foo-packet"-style commands no longer
5243 change config->supported -- adjust.
5244 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5245 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5246 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5247 (PACKET_QNonStop, PACKET_multiprocess_feature)
5248 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5249 (PACKET_DisconnectedTracing_feature)
5250 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5251 (set_remote_protocol_packet_cmd): Delete function.
5252 (packet_config_support, packet_support): New functions.
5253 (set_remote_protocol_Z_packet_cmd): Don't call
5254 update_packet_config.
5255 (remote_query_attached, remote_pass_signals)
5256 (remote_program_signals, remote_threads_info)
5257 (remote_threads_extra_info, remote_start_remote): Use
5258 packet_support.
5259 (remote_start_remote): Use packet_config_support and
5260 packet_support.
5261 (init_all_packet_configs): Set all packets to unknown support,
5262 instead of calling update_packet_config.
5263 (remote_check_symbols): Use packet_support.
5264 (remote_supported_packet): Unconditionally set the packet config's
5265 support status.
5266 (remote_multi_process_feature, remote_non_stop_feature)
5267 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5268 (remote_breakpoint_commands_feature)
5269 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5270 (remote_install_in_trace_feature)
5271 (remote_disconnected_tracing_feature)
5272 (remote_enable_disable_tracepoint_feature)
5273 (remote_string_tracing_feature)
5274 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5275 (remote_protocol_features): Adjust to use remote_supported_packet
5276 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5277 "ConditionalTracepoints", "ConditionalBreakpoints",
5278 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5279 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5280 "EnableDisableTracepoints", and "tracenz".
5281 (remote_query_supported): Use packet_support.
5282 (remote_open_1): Adjust.
5283 (extended_remote_attach_1): Use packet_support. Switch on the
5284 result of packet_ok instead of checking whether the packet ended
5285 up disabled.
5286 (remote_vcont_resume): Use packet_support.
5287 (remote_resume, remote_stop_ns, fetch_register_using_p)
5288 (remote_prepare_to_store, store_register_using_P)
5289 (check_binary_download, remote_write_bytes): Use packet_support.
5290 (remote_vkill): Use packet_support. Switch on the result of
5291 packet_ok instead of checking whether the packet ended up
5292 disabled.
5293 (extended_remote_supports_disable_randomization): Use
5294 packet_support.
5295 (extended_remote_run): Switch on the result of packet_ok instead
5296 of checking whether the packet ended up disabled.
5297 (remote_insert_breakpoint, remote_remove_breakpoint)
5298 (remote_insert_watchpoint, remote_remove_watchpoint)
5299 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5300 packet_support.
5301 (remote_search_memory): Use packet_config_support.
5302 (remote_get_thread_local_address, remote_get_tib_address)
5303 (remote_hostio_send_command, remote_can_execute_reverse): Use
5304 packet_support.
5305 (remote_supports_cond_tracepoints)
5306 (remote_supports_cond_breakpoints)
5307 (remote_supports_fast_tracepoints)
5308 (remote_supports_static_tracepoints)
5309 (remote_supports_install_in_trace)
5310 (remote_supports_enable_disable_tracepoint)
5311 (remote_supports_string_tracing)
5312 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5313 the packet config says the feature is enabled or disabled.
5314 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5315 (remote_get_trace_status): Use packet_support.
5316 (remote_set_disconnected_tracing): Adjust to check whether the
5317 feature is enabled with packet_support.
5318 (remote_set_trace_buffer_size, remote_use_agent)
5319 (remote_can_use_agent, remote_supports_btrace): Use
5320 packet_support.
5321 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5322 Use packet_config_support.
5323 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5324 the packet config says the feature is enabled or disabled.
5325 (set_range_stepping): Use packet_support.
5326
bdb52a22
TT
53272014-04-25 Tom Tromey <tromey@redhat.com>
5328
5329 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5330 argument.
5331
e9475ead
SA
53322014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5333
5334 * NEWS: Mention support for C99 variable length arrays.
5335
82eacd52
JB
53362014-04-24 Joel Brobecker <brobecker@adacore.com>
5337
5338 * ada-lang.c (standard_exc): Expand introductory comment.
5339
01f9f808
MS
53402014-04-24 Michael Sturm <michael.sturm@mintel.com>
5341 Walfred Tedeschi <walfred.tedeschi@intel.com>
5342
5343 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5344 AVX512 registers.
5345 (amd64_linux_read_description): Add code to handle AVX512 xstate
5346 mask and return respective tdesc.
5347 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5348 and features/i386/x32-avx512-linux.c.
5349 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5350 (amd64_linux_core_read_description): Add code to handle AVX512
5351 xstate mask and return respective tdesc.
5352 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5353 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5354 calculation.
5355 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5356 (tdesc_amd64_avx512_linux): New prototype.
5357 (tdesc_x32_avx512_linux): Likewise.
5358 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5359 features/i386/x32-avx512.c.
5360 (amd64_ymm_avx512_names): New register names for pseudo
5361 registers YMM16-31.
5362 (amd64_ymmh_avx512_names): New register names for raw registers
5363 YMMH16-31.
5364 (amd64_k_names): New register names for K registers.
5365 (amd64_zmmh_names): New register names for ZMM raw registers.
5366 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5367 (amd64_xmm_avx512_names): New register names for XMM16-31
5368 registers.
5369 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5370 registers.
5371 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5372 if feature is present.
5373 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5374 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5375 (AMD64_NUM_REGS): Adjust to new number of registers.
5376 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5377 registers supplied via XSTATE by AVX512 registers.
5378 (i386_linux_read_description): Add case for AVX512.
5379 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5380 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5381 (i386_linux_core_read_description): Add case for AVX512.
5382 (i386_linux_init_abi): Install supported register note section
5383 for AVX512.
5384 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5385 AVX512.
5386 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5387 registers to be number of zmm7h + 1.
5388 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5389 * i386-tdep.c: Include features/i386/i386-avx512.c.
5390 (i386_zmm_names): Add ZMM pseudo register names array.
5391 (i386_zmmh_names): Add ZMM raw register names array.
5392 (i386_k_names): Add K raw register names array.
5393 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5394 registers. AVX512 has 16 more ZMM registers than there are YMM
5395 registers.
5396 (i386_zmmh_regnum_p): Add function to look up register number of
5397 ZMM raw registers.
5398 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5399 (i386_k_regnum_p): Likewise for K raw registers.
5400 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5401 registers added by AVX512.
5402 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5403 registers added by AVX512.
5404 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5405 added by AVX512.
5406 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5407 (i386_pseudo_register_name): Add ZMM pseudo registers.
5408 (i386_zmm_type): Construct and return vector registers type for ZMM
5409 registers.
5410 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5411 ZMM0-31 pseudo registers and K registers.
5412 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5413 and YMM16-31 registers from register cache.
5414 (i386_pseudo_register_write): Add code to write K, ZMM and
5415 YMM16-31 registers.
5416 (i386_register_reggroup_p): Add code to include/exclude AVX512
5417 registers in/from respective register groups.
5418 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5419 registers if feature is present in xcr0.
5420 (i386_gdbarch_init): Add code to initialize AVX512 feature
5421 variables in tdep structure, wire in pseudo registers and call
5422 initialize_tdesc_i386_avx512.
5423 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5424 variables.
5425 (i386_regnum): Add AVX512 registers.
5426 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5427 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5428 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5429 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5430 512 bits wide.
5431 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5432 (i386_ymm_avx512_regnum_p): Likewise.
5433 (i386_k_regnum_p): Likewise.
5434 (i386_zmm_regnum_p): Likewise.
5435 (i386_zmmh_regnum_p): Likewise.
5436 * i387-tdep.c : Update year in copyright notice.
5437 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5438 XSAVE buffer.
5439 (XSAVE_YMM_AVX512_ADDR): New macro.
5440 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5441 XSAVE buffer.
5442 (XSAVE_XMM_AVX512_ADDR): New macro.
5443 (xsave_avx512_k_offset): New table for K register offsets in
5444 XSAVE buffer.
5445 (XSAVE_AVX512_K_ADDR): New macro.
5446 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5447 in XSAVE buffer.
5448 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5449 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5450 buffer.
5451 (i387_collect_xsave): Add code to collect AVX512 registers from
5452 XSAVE buffer.
5453 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5454 of XMM16-31 registers.
5455 (I387_NUM_K_REGS): New define for number of K registers.
5456 (I387_K0_REGNUM): New define for K0 register number.
5457 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5458 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5459 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5460 registers.
5461 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5462 (I387_XMM16_REGNUM): New define for XMM16 register number.
5463 (I387_YMM0_REGNUM): New define for YMM0 register number.
5464 (I387_KEND_REGNUM): New define for last K register number.
5465 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5466 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5467 number.
5468 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5469 number.
5470 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5471 size.
5472 * features/Makefile: Add AVX512 related files.
5473 * features/i386/32bit-avx512.xml: New file.
5474 * features/i386/64bit-avx512.xml: Likewise.
5475 * features/i386/amd64-avx512-linux.c: Likewise.
5476 * features/i386/amd64-avx512-linux.xml: Likewise.
5477 * features/i386/amd64-avx512.c: Likewise.
5478 * features/i386/amd64-avx512.xml: Likewise.
5479 * features/i386/i386-avx512-linux.c: Likewise.
5480 * features/i386/i386-avx512-linux.xml: Likewise.
5481 * features/i386/i386-avx512.c: Likewise.
5482 * features/i386/i386-avx512.xml: Likewise.
5483 * features/i386/x32-avx512-linux.c: Likewise.
5484 * features/i386/x32-avx512-linux.xml: Likewise.
5485 * features/i386/x32-avx512.c: Likewise.
5486 * features/i386/x32-avx512.xml: Likewise.
5487 * regformats/i386/amd64-avx512-linux.dat: New file.
5488 * regformats/i386/amd64-avx512.dat: Likewise.
5489 * regformats/i386/i386-avx512-linux.dat: Likewise.
5490 * regformats/i386/i386-avx512.dat: Likewise.
5491 * regformats/i386/x32-avx512-linux.dat: Likewise.
5492 * regformats/i386/x32-avx512.dat: Likewise.
5493 * NEWS: Add note about new support for AVX512.
5494
5495
08351840
PA
54962014-04-23 Pedro Alves <palves@redhat.com>
5497
5498 * breakpoint.c (insert_bp_location): Tolerate errors if the
5499 breakpoint is set in a user-loaded objfile.
5500 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5501 location is marked shlib_disabled. If the breakpoint is set in a
5502 user-loaded objfile is a GDB-side memory breakpoint, validate it
5503 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5504 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5505 flag.
5506 * mem-break.c (memory_validate_breakpoint): New function.
5507 * objfiles.c (userloaded_objfile_contains_address_p): New
5508 function.
5509 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5510 * target.h (memory_validate_breakpoint): New declaration.
5511
076855f9
PA
55122014-04-23 Pedro Alves <palves@redhat.com>
5513
5514 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5515 the breakpoint is set in a shared library, only suppress
5516 errors for software breakpoints, not hardware breakpoints.
5517
483805cf
PA
55182014-04-22 Pedro Alves <palves@redhat.com>
5519
5520 * infrun.c (schedlock_applies): New function, factored out from
5521 find_thread_needs_step_over.
5522 (find_thread_needs_step_over): Use it.
5523 (switch_back_to_stepped_thread): Always clear trap_expected if the
5524 step over is finished. Return early if scheduler locking applies.
5525 Look for the stepping thread and a potential step-over thread with
5526 a single loop.
5527 (currently_stepping_or_nexting_callback): Delete.
5528
a75fef0e
NC
55292014-04-22 Nick Clifton <nickc@redhat.com>
5530
5531 * NEWS: Mention that ARM sim now supports tracing.
5532
48b6e87e
YQ
55332014-04-22 Yao Qi <yao@codesourcery.com>
5534
5535 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5536 to ...
5537 * tracefile.c (tracefile_fetch_registers): ... it. New
5538 function.
5539 * tracefile.h (tracefile_fetch_registers): Declare.
5540 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5541 tracefile_fetch_registers.
5542
17617f2d
EZ
55432014-04-19 Eli Zaretskii <eliz@gnu.org>
5544
5545 PR gdb/14018
5546 * windows-nat.c (thread_rec): Don't display a warning when
5547 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5548 fails for any reason, set th->suspended to -1, so that we don't
5549 try to resume such a thread. Also, don't return NULL in these
5550 cases, to avoid completely ruin the session due to "PC register is
5551 not available" error.
5552 (do_windows_fetch_inferior_registers): Check errors in
5553 GetThreadContext call.
5554 (windows_continue): Accept an additional argument KILLED; if not
5555 zero, ignore errors in the SetThreadContext call, since the
5556 inferior was killed and is shutting down.
5557 (windows_resume, get_windows_debug_event)
5558 (windows_create_inferior, windows_mourn_inferior)
5559 (windows_kill_inferior): All callers of windows_continue changed
5560 to adjust to its new calling sequence.
5561
5723a6fd
YQ
55622014-04-19 Yao Qi <yao@codesourcery.com>
5563
5564 * ctf.c (ctf_open): Call post_create_inferior.
5565
614d5099
YQ
55662014-04-19 Yao Qi <yao@codesourcery.com>
5567
5568 * ctf.c (handle_id): New static variable.
5569 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5570 value. Get the declaration of event "register" and get length
5571 of field "contents".
5572
dac3e710
YQ
55732014-04-19 Yao Qi <yao@codesourcery.com>
5574
5575 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5576
2bca57ba
SC
55772014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5578
5579 * valops.c (oload_method_static): Remove unnecessary argument
5580 METHOD. Update all callers.
5581
51d48146
PA
55822014-04-18 Pedro alves <palves@redhat.com>
5583 Tom Tromey <tromey@redhat.com>
5584
5585 PR backtrace/15558
5586 * frame.c (get_prev_frame_1): Rename to ...
5587 (get_prev_frame_always): ... this, and make extern. Adjust.
5588 (skip_artificial_frames): Use get_prev_frame_always.
5589 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5590 (get_frame_unwind_stop_reason): Adjust to rename.
5591 * frame.h (get_prev_frame_always): Declare.
5592 * inline-frame.c: Include frame.h.
5593 (inline_frame_this_id): Use get_prev_frame_always.
5594
1bdad2e0
TG
55952014-04-18 Tristan Gingold <gingold@adacore.com>
5596
5597 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5598 code by using bfd_mach_o_get_base_address.
5599
7ce16bd4
UW
56002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5601
5602 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5603 (spu_ax_pseudo_register_collect): New function.
5604 (spu_ax_pseudo_register_push_stack): Likewise.
5605 (spu_dwarf_reg_to_regnum): Likewise.
5606 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5607
2ed3c037
UW
56082014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5609
5610 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5611 Replace FRAME argument with FRAME_ID.
5612 * gdbarch.c, gdbarch.h: Regenerate.
5613 * findvar.c (default_value_from_register): Add GDBARCH argument;
5614 replace FRAME by FRAME_ID. No longer call get_frame_id.
5615 (value_from_register): Update call to gdbarch_value_from_register.
5616 * value.h (default_value_from_register): Update prototype.
5617 * s390-linux-tdep.c (s390_value_from_register): Update interface
5618 and call to default_value_from_register.
5619 * spu-tdep.c (spu_value_from_register): Likewise.
5620
5621 * findvar.c (address_from_register): Remove TYPE argument.
5622 Do not call value_from_register; use gdbarch_value_from_register
5623 with null_frame_id instead.
5624 * value.h (address_from_register): Update prototype.
5625 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5626 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5627 address_from_register interface change.
5628
71e50e83
YQ
56292014-04-17 Yao Qi <yao@codesourcery.com>
5630
5631 * gdbtypes.h: Update comments to link to types and macros'
5632 definitions.
5633
7a23c549
SC
56342014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5635
5636 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5637
22869d73
KS
56382014-04-16 Keith Seitz <keiths@redhat.com>
5639
5640 PR gdb/15827
5641 * dwarf2read.c (skip_one_die): Check that all relative-offset
5642 sibling DIEs fall within range of the current reader's buffer.
5643 (read_partial_die): Likewise.
5644
c4f87ca6
KS
56452014-04-16 Keith Seitz <keiths@redhat.com>
5646
5647 PR c++/16597
5648 * cp-namespace.c (lookup_symbol_file): If the type name of
5649 `this' is NULL, return immediately.
5650
b50c8614
KS
56512014-04-14 Keith Seitz <keiths@redhat.com>
5652
5653 PR c++/16253
5654 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5655 from symbol_matches_domain in symtab.c. All local callers
5656 of symbol_matches_domain updated.
5657 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5658 search STRUCT_DOMAIN.
5659 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5660 independently. standard_lookup will do that automatically.
5661 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5662 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5663 (cp_lookup_symbol_in_namespace): Likewise.
5664 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5665 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5666 may return a STRUCT_DOMAIN match.
5667 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5668 * cp-support.c: Include language.h.
5669 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5670 VAR_DOMAIN.
5671 * psymtab.c (match_partial_symbol): Compare the requested
5672 domain with the symbol's domain directly.
5673 (lookup_partial_symbol): Likewise.
5674 * symtab.c (lookup_symbol_in_language): Explain when/why
5675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5676 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5677 appropriate languages.
5678 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5679 and moved to ada-lang.c
5680 (lookup_block_symbol): Explain that this function only returns
5681 symbol matching the requested DOMAIN.
5682 Compare the requested domain with the symbol's domain directly.
5683 (iterate_over_symbols): Compare the requested domain with the
5684 symbol's domain directly.
5685 * symtab.h (symbol_matches_domain): Remove.
5686
3d567982
TT
56872014-04-14 Tom Tromey <tromey@redhat.com>
5688
5689 PR c++/15246:
5690 * c-exp.y (type_aggregate_p): New function.
5691 (qualified_name, classify_inner_name): Use it.
5692 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5693 and TYPE_TARGET_TYPE of an enum type.
5694 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5695 an enum type.
5696 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5697 handle TYPE_DECLARED_CLASS.
5698 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5699 types.
5700 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5701 * valops.c (enum_constant_from_type): New function.
5702 (value_aggregate_elt): Use it.
5703 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5704 TYPE_CODE_ENUM.
5705
c848d642
TT
57062014-04-14 Tom Tromey <tromey@redhat.com>
5707
5708 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5709 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5710 const.
5711 * value.h (value_aggregate_elt): Update.
5712
0626fc76
TT
57132014-04-14 Tom Tromey <tromey@redhat.com>
5714
5715 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5716
5ecaaa66
SA
57172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5718
5719 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5720 (evaluate_subexp_standard): Pass noside argument.
5721 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5722 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5723 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5724 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5725 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5726
1612e0c0
SA
57272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5728
5729 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5730 points to a constant blob.
5731
c451ebe5
SA
57322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5733
5734 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5735 property and store it as the high bound and flag the range accordingly.
5736 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5737 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5738 * gdbtypes.h (enum range_flags): New enum.
5739 (struct range_bounds): Add flags member.
5740
1d42e4c4
SA
57412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5742
5743 * c-typeprint.c (c_type_print_varspec_suffix): Added
5744 check for not yet resolved high bound. If unresolved, print
5745 "variable length" string to the console instead of random
5746 length.
5747
9f1f738a
SA
57482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5749
5750 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5751 value.
5752 (ada_template_to_fixed_record_type_1): Likewise.
5753 (ada_to_fixed_type_1): Likewise.
5754 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5755 (cp_print_value): Likewise.
5756 * d-valprint.c (dynamic_array_type): Likewise.
5757 * findvar.c (address_of_variable): Likewise.
5758 * jv-valprint.c (java_value_print): Likewise.
5759 * valops.c (value_ind): Likewise.
5760 * value.c (coerce_ref): Likewise.
5761
3c8452d4
SA
57622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5763
5764 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5765 value and retrieve the dynamic type size.
5766
4ad88275
SA
57672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5768
5769 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5770 passed to sizeof is dynamic evaluate the argument to compute the length.
5771
80180f79
SA
57722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5773 Joel Brobecker <brobecker@adacore.com>
5774
5775 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5776 (dwarf2_evaluate_property): New function.
5777 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5778 * dwarf2read.c (attr_to_dynamic_prop): New function.
5779 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5780 attribute.
5781 * gdbtypes.c: Include dwarf2loc.h.
5782 (is_dynamic_type): New function.
5783 (resolve_dynamic_type): New function.
5784 (resolve_dynamic_bounds): New function.
5785 (get_type_length): New function.
5786 (check_typedef): Use get_type_length to compute type length.
5787 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5788 (TYPE_LOW_BOUND_KIND): New macro.
5789 (is_dynamic_type): New function prototype.
5790 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5791 to resolve dynamic properties of the type. Update comment.
5792 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5793
a1556843
RH
57942014-04-14 Richard Henderson <rth@redhat.com>
5795
5796 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5797
0be03e84
DE
57982014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5799 Doug Evans <xdje42@gmail.com>
5800
5801 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5802 dereference TYPE_CODE_REF values.
5803
6b662e19
JB
58042014-04-11 Joel Brobecker <brobecker@adacore.com>
5805
5806 Revert the following changes due to regressions:
5807
5808 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5809 (dwarf2_evaluate_property): New function.
5810 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5811 * dwarf2read.c (attr_to_dynamic_prop): New function.
5812 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5813 attribute.
5814 * gdbtypes.c: Include dwarf2loc.h.
5815 (is_dynamic_type): New function.
5816 (resolve_dynamic_type): New function.
5817 (resolve_dynamic_bounds): New function.
5818 (get_type_length): New function.
5819 (check_typedef): Use get_type_length to compute type length.
5820 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5821 (TYPE_LOW_BOUND_KIND): New macro.
5822 (is_dynamic_type): New function prototype.
5823 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5824 to resolve dynamic properties of the type. Update comment.
5825 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5826
5827 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5828 passed to sizeof is dynamic evaluate the argument to compute the length.
5829
5830 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5831 value and retrieve the dynamic type size.
5832
5833 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5834 (ada_template_to_fixed_record_type_1): Likewise.
5835 (ada_to_fixed_type_1): Likewise.
5836 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5837 (cp_print_value): Likewise.
5838 * d-valprint.c (dynamic_array_type): Likewise.
5839 * eval.c (evaluate_subexp_with_coercion): Likewise.
5840 * findvar.c (address_of_variable): Likewise.
5841 * jv-valprint.c (java_value_print): Likewise.
5842 * valops.c (value_ind): Likewise.
5843 * value.c (coerce_ref): Likewise.
5844
5845 * c-typeprint.c (c_type_print_varspec_suffix): Added
5846 check for not yet resolved high bound. If unresolved, print
5847 "variable length" string to the console instead of random
5848 length.
5849
5850 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5851 property and store it as the high bound and flag the range accordingly.
5852 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5853 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5854 * gdbtypes.h (enum range_flags): New enum.
5855 (struct range_bounds): Add flags member.
5856
5857 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5858 points to a constant blob.
5859
5860 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5861 (evaluate_subexp_standard): Pass noside argument.
5862 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5863 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5864 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5865 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5866 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5867
245a5f0b
KS
58682014-04-11 Keith Seitz <keiths@redhat.com>
5869
5870 PR c++/16675
5871 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5872 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5873 reference types.
5874
3bce8237
SA
58752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5876
5877 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5878 (evaluate_subexp_standard): Pass noside argument.
5879 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5880 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5881 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5882 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5883 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5884
92b09522
SA
58852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5886
5887 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5888 points to a constant blob.
5889
e1969afb
SA
58902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5891
5892 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5893 property and store it as the high bound and flag the range accordingly.
5894 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5895 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5896 * gdbtypes.h (enum range_flags): New enum.
5897 (struct range_bounds): Add flags member.
5898
b86138fb
SA
58992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5900
5901 * c-typeprint.c (c_type_print_varspec_suffix): Added
5902 check for not yet resolved high bound. If unresolved, print
5903 "variable length" string to the console instead of random
5904 length.
5905
bcd629a4
SA
59062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5907
5908 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5909 (ada_template_to_fixed_record_type_1): Likewise.
5910 (ada_to_fixed_type_1): Likewise.
5911 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5912 (cp_print_value): Likewise.
5913 * d-valprint.c (dynamic_array_type): Likewise.
5914 * eval.c (evaluate_subexp_with_coercion): Likewise.
5915 * findvar.c (address_of_variable): Likewise.
5916 * jv-valprint.c (java_value_print): Likewise.
5917 * valops.c (value_ind): Likewise.
5918 * value.c (coerce_ref): Likewise.
5919
04b19544
SA
59202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5921
5922 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5923 value and retrieve the dynamic type size.
5924
26cb189f
SA
59252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5926
5927 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5928 passed to sizeof is dynamic evaluate the argument to compute the length.
5929
37c1ab67
SA
59302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5931
5932 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5933 (dwarf2_evaluate_property): New function.
5934 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5935 * dwarf2read.c (attr_to_dynamic_prop): New function.
5936 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5937 attribute.
5938 * gdbtypes.c: Include dwarf2loc.h.
5939 (is_dynamic_type): New function.
5940 (resolve_dynamic_type): New function.
5941 (resolve_dynamic_bounds): New function.
5942 (get_type_length): New function.
5943 (check_typedef): Use get_type_length to compute type length.
5944 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5945 (TYPE_LOW_BOUND_KIND): New macro.
5946 (is_dynamic_type): New function prototype.
5947 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5948 to resolve dynamic properties of the type. Update comment.
5949 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5950
729efb13
SA
59512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5952
5953 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5954 declaring high/low bounds and change uses accordingly. Call
5955 create_range_type instead of create_static_range_type.
5956 * gdbtypes.c (create_range_type): New function.
5957 (create_range_type): Convert bounds into struct bound_prop and pass
5958 them to create_range_type.
5959 * gdbtypes.h (struct bound_prop): New struct.
5960 (create_range_type): New function prototype.
5961 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5962 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5963 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5964 part of the bound.
5965 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5966
0c9c3474
SA
59672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5968
5969 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5970 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5971 * ada-lang.c: All uses of create_range_type updated.
5972 * coffread.c: All uses of create_range_type updated.
5973 * dwarf2read.c: All uses of create_range_type updated.
5974 * f-exp.y: All uses of create_range_type updated.
5975 * m2-valprint.c: All uses of create_range_type updated.
5976 * mdebugread.c: All uses of create_range_type updated.
5977 * stabsread.c: All uses of create_range_type updated.
5978 * valops.c: All uses of create_range_type updated.
5979 * valprint.c: All uses of create_range_type updated.
5980
9d497a19
PA
59812014-04-10 Pedro Alves <palves@redhat.com>
5982
5983 * breakpoint.c (single_step_breakpoints)
5984 (single_step_gdbarch): Move up in the file.
5985 (one_breakpoint_xfer_memory): New function, factored out from ...
5986 (breakpoint_xfer_memory): ... here. Also process single-step
5987 breakpoints.
5988
15a9128a
TG
59892014-04-09 Tristan Gingold <gingold@adacore.com>
5990
5991 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5992 comments.
5993 (darwin_decode_exception_message): Free port only after use.
5994
9c97a070
PL
59952014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5996
5997 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5998 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5999 when setting the size of call_length.
6000
7af389b8
SC
60012014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6002
6003 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6004 dereference TYPE_CODE_REF values.
6005
86ad98c3
JB
60062014-04-07 Joel Brobecker <brobecker@adacore.com>
6007
6008 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6009 end of warning message.
6010
b0aeadb3
DE
60112014-04-03 Doug Evans <dje@google.com>
6012
6013 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6014 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6015
5979d6b6
AM
60162014-04-02 Alan Modra <amodra@gmail.com>
6017
6018 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6019 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6020 (struct symbol_file_add_from_memory_args): Add size field.
6021 (find_vdso_size): New function.
6022 (add_vsyscall_page): Attempt to find vdso size.
6023
0d60c288
DE
60242014-04-01 Doug Evans <dje@google.com>
6025
6026 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6027
a41f2563
TG
60282014-04-01 Tristan Gingold <gingold@adacore.com>
6029
6030 * darwin-nat.c (darwin_encode_reply): Add prototype.
6031 (darwin_decode_exception_message): Reply to unknown inferiors.
6032 (darwin_decode_message): Handle message by id. Ignore message
6033 to unknown inferior.
6034 (darwin_wait): Discard unknown messages, add debug trace.
6035
11a865c8
DE
60362014-03-31 Doug Evans <dje@google.com>
6037
6038 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6039 comp_dir_string.
6040
770e7fc7
DE
60412014-03-31 Doug Evans <dje@google.com>
6042
6043 New option "set print symbol-loading".
6044 * NEWS: Mention it.
6045 * solib.c (solib_read_symbols): Only print symbol loading messages
6046 if requested.
6047 (solib_add): If symbol loading is in "brief" mode, notify user
6048 symbols are being loaded.
6049 (reload_shared_libraries_1): Ditto.
6050 * symfile.c (print_symbol_loading_off): New static global.
6051 (print_symbol_loading_brief): New static global.
6052 (print_symbol_loading_full): New static global.
6053 (print_symbol_loading_enums): New static global.
6054 (print_symbol_loading): New static global.
6055 (print_symbol_loading_p): New function.
6056 (symbol_file_add_with_addrs): Only print symbol loading messages
6057 if requested.
6058 (_initialize_symfile): Register "print symbol-loading" set/show
6059 command.
6060 * symfile.h (print_symbol_loading_p): Declare.
6061
c32c64b7
DE
60622014-03-30 Doug Evans <xdje42@gmail.com>
6063
6064 * infrun.c (set_last_target_status): New function.
6065 (handle_inferior_event): Call it.
6066
7c0bc051
DE
60672014-03-30 Doug Evans <xdje42@gmail.com>
6068
6069 * inferior.h (enum stop_kind): Improve comment.
6070
8776cfe9
JB
60712014-03-28 Joel Brobecker <brobecker@adacore.com>
6072
6073 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6074 a reference, strip the reference layer before calling
6075 the lang_ops value_has_mutated callback.
6076
410a0ff2
SDJ
60772014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6078
6079 Remove some globals from our parser.
6080 * language.c (unk_lang_parser): Add "struct parser_state"
6081 argument.
6082 * language.h (struct language_defn) <la_parser>: Likewise.
6083 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6084 (initialize_expout): Add "struct parser_state" argument.
6085 Rewrite function to use the parser state.
6086 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6087 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6088 write_exp_elt_longcst, write_exp_elt_dblcst,
6089 write_exp_elt_decfloatcst, write_exp_elt_type,
6090 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6091 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6092 write_dollar_variable): Likewise.
6093 (parse_exp_in_context_1): Use parser state.
6094 (insert_type_address_space): Add "struct parser_state" argument.
6095 Use parser state.
6096 (increase_expout_size): New function.
6097 * parser-defs.h: Forward declare "struct language_defn" and
6098 "struct parser_state".
6099 (expout, expout_size, expout_ptr): Remove extern declarations.
6100 (parse_gdbarch, parse_language): Rewrite macro declarations to
6101 accept the parser state.
6102 (struct parser_state): New struct.
6103 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6104 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6105 write_exp_elt_decfloatcst, write_exp_elt_type,
6106 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6107 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6108 write_exp_msymbol, write_dollar_variable,
6109 mark_struct_expression, insert_type_address_space): Add "struct
6110 parser_state" argument.
6111 (increase_expout_size): New function.
6112 * utils.c (do_clear_parser_state): New function.
6113 (make_cleanup_clear_parser_state): Likewise.
6114 * utils.h (make_cleanup_clear_parser_state): New function
6115 prototype.
6116 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6117 Update calls to write_exp* in order to pass the parser state.
6118 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6119 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6120 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6121 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6122 * stap-probe.c (stap_parse_register_operand): Likewise.
6123 (stap_parse_single_operand): Likewise.
6124 (stap_parse_argument_1): Likewise.
6125 (stap_parse_argument): Use parser state.
6126 * stap-probe.h: Include "parser-defs.h".
6127 (struct stap_parse_info) <pstate>: New field.
6128 * c-exp.y (parse_type): Rewrite to use parser state.
6129 (yyparse): Redefine to c_parse_internal.
6130 (pstate): New global variable.
6131 (parse_number): Add "struct parser_state" argument.
6132 (write_destructor_name): Likewise.
6133 (type_exp): Update calls to write_exp* and similars in order to
6134 use parser state.
6135 (exp1, exp, variable, qualified_name, space_identifier,
6136 typename, typebase): Likewise.
6137 (write_destructor_name, parse_number, lex_one_token,
6138 classify_name, classify_inner_name, c_parse): Add "struct
6139 parser_state" argument. Update function to use parser state.
6140 * c-lang.h: Forward declare "struct parser_state".
6141 (c_parse): Add "struct parser_state" argument.
6142 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6143 (yyparse): Redefine macro to ada_parse_internal.
6144 (pstate): New variable.
6145 (write_int, write_object_renaming, write_var_or_type,
6146 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6147 type_int, type_long, type_long_long, type_float, type_double,
6148 type_long_double, type_char, type_boolean, type_system_address):
6149 Add "struct parser_state" argument.
6150 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6151 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6152 var_or_type, aggregate, aggregate_component_list,
6153 positional_list, others, component_group,
6154 component_associations): Update calls to write_exp* and similar
6155 functions in order to use parser state.
6156 (ada_parse, write_var_from_sym, write_int,
6157 write_exp_op_with_string, write_object_renaming,
6158 find_primitive_type, write_selectors, write_ambiguous_var,
6159 write_var_or_type, write_name_assoc, type_int, type_long,
6160 type_long_long, type_float, type_double, type_long_double,
6161 type_char, type_boolean, type_system_address): Add "struct
6162 parser_state" argument. Adjust function to use parser state.
6163 * ada-lang.c (parse): Likewise.
6164 * ada-lang.h: Forward declare "struct parser_state".
6165 (ada_parse): Add "struct parser_state" argument.
6166 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6167 calls to both functions.
6168 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6169 parser state.
6170 (yyparse): Redefine macro to f_parse_internal.
6171 (pstate): New variable.
6172 (parse_number): Add "struct parser_state" argument.
6173 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6174 and similars in order to use parser state.
6175 (parse_number): Adjust code to use parser state.
6176 (yylex): Likewise.
6177 (f_parse): New function.
6178 * f-lang.h: Forward declare "struct parser_state".
6179 (f_parse): Add "struct parser_state" argument.
6180 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6181 parser state.
6182 (yyparse): Redefine macro for java_parse_internal.
6183 (pstate): New variable.
6184 (push_expression_name, push_expression_name, insert_exp): Add
6185 "struct parser_state" argument.
6186 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6187 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6188 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6189 PostIncrementExpression, PostDecrementExpression,
6190 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6191 UnaryExpressionNotPlusMinus, CastExpression,
6192 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6193 RelationalExpression, EqualityExpression, AndExpression,
6194 ExclusiveOrExpression, InclusiveOrExpression,
6195 ConditionalAndExpression, ConditionalOrExpression,
6196 ConditionalExpression, Assignment, LeftHandSide): Update
6197 calls to write_exp* and similars in order to use parser state.
6198 (parse_number): Ajust code to use parser state.
6199 (yylex): Likewise.
6200 (java_parse): New function.
6201 (push_variable): Add "struct parser_state" argument. Adjust
6202 code to user parser state.
6203 (push_fieldnames, push_qualified_expression_name,
6204 push_expression_name, insert_exp): Likewise.
6205 * jv-lang.h: Forward declare "struct parser_state".
6206 (java_parse): Add "struct parser_state" argument.
6207 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6208 parser state.
6209 (yyparse): Redefine macro to m2_parse_internal.
6210 (pstate): New variable.
6211 (type_exp, exp, fblock, variable, type): Update calls to
6212 write_exp* and similars to use parser state.
6213 (yylex): Likewise.
6214 (m2_parse): New function.
6215 * m2-lang.h: Forward declare "struct parser_state".
6216 (m2_parse): Add "struct parser_state" argument.
6217 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6218 * objc-lang.h: Forward declare "struct parser_state".
6219 (end_msglist): Add "struct parser_state" argument.
6220 * p-exp.y (parse_type): Rewrite macro to use parser state.
6221 (yyparse): Redefine macro to pascal_parse_internal.
6222 (pstate): New variable.
6223 (parse_number): Add "struct parser_state" argument.
6224 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6225 write_exp* and similars in order to use parser state.
6226 (parse_number, yylex): Adjust code to use parser state.
6227 (pascal_parse): New function.
6228 * p-lang.h: Forward declare "struct parser_state".
6229 (pascal_parse): Add "struct parser_state" argument.
6230 * go-exp.y (parse_type): Rewrite macro to use parser state.
6231 (yyparse): Redefine macro to go_parse_internal.
6232 (pstate): New variable.
6233 (parse_number): Add "struct parser_state" argument.
6234 (type_exp, exp1, exp, variable, type): Update calls to
6235 write_exp* and similars in order to use parser state.
6236 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6237 to use parser state.
6238 (go_parse): Likewise.
6239 * go-lang.h: Forward declare "struct parser_state".
6240 (go_parse): Add "struct parser_state" argument.
6241
342587c4
DE
62422014-03-27 Doug Evans <dje@google.com>
6243
6244 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6245
33e80786
DE
62462014-03-27 Doug Evans <dje@google.com>
6247
6248 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6249 Remove argument abbrev_section. All callers updated.
6250
1dbab08b
DE
62512014-03-27 Doug Evans <dje@google.com>
6252
6253 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6254 addr_base, ranges_base.
6255
318d3177
KS
62562014-03-26 Keith Seitz <keiths@redhat.com>
6257
6258 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6259 types, not VAR_DOMAIN.
6260
1e54db15
SL
62612014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6262
6263 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6264 "ra" registers.
6265 * features/nios2-linux.c: Regenerated.
6266 * features/nios2.c: Regenerated.
6267
d3839ede
PA
62682014-03-25 Pedro Alves <palves@redhat.com>
6269
6270 * cli/cli-script.c (script_from_file): Force the interpreter to
6271 sync mode.
6272
7588d2ec
PL
62732014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6274
6275 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6276 small stack allocation.
6277
a6290449
TG
62782014-03-24 Tristan Gingold <gingold@adacore.com>
6279
6280 * darwin-nat.c (exc_server): Remove unused prototype.
6281 (darwin_dump_message): Correctly display data on x86_64.
6282 (darwin_encode_reply): Fix style.
6283 Add comments and fix indentation.
6284
31ae9d24 62852014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6286
6287 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6288
6339bfc4
DE
62892014-03-22 Doug Evans <xdje42@gmail.com>
6290
6291 * infcmd.c: Whitespace fixes.
6292 (interrupt_command): Merge two function comments into one.
6293
0a07590b
DE
62942014-03-22 Doug Evans <xdje42@gmail.com>
6295
6296 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6297 All uses updated.
6298
b55fbac4
YQ
62992014-03-22 Yao Qi <yao@codesourcery.com>
6300
6301 * remote.c (target_read_live_memory): Remove.
6302 (memory_xfer_live_readonly_partial): Rename it to
6303 remote_xfer_live_readonly_partial. Remove argument 'object'.
6304 All callers updated. Call remote_read_bytes_1
6305 instead of target_read_live_memory.
6306 * tracepoint.c (set_traceframe_number): Remove.
6307 (make_cleanup_restore_traceframe_number): Likewise .
6308 * tracepoint.h (set_traceframe_number): Remove declaration.
6309 (make_cleanup_restore_traceframe_number): Likewise.
6310
9217e74e
YQ
63112014-03-22 Yao Qi <yao@codesourcery.com>
6312
6313 * remote.c (remote_read_bytes): Move code on reading from the
6314 remote stub to ...
6315 (remote_read_bytes_1): ... here. New function.
6316
8acf9577
YQ
63172014-03-22 Yao Qi <yao@codesourcery.com>
6318
6319 * ctf.c (ctf_xfer_partial): Check the return value of
6320 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6321 return TARGET_XFER_UNAVAILABLE.
6322 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6323 * target.c (target_read_live_memory): Move it to remote.c.
6324 (memory_xfer_live_readonly_partial): Likewise.
6325 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6326 * remote.c (target_read_live_memory): Moved from target.c.
6327 (memory_xfer_live_readonly_partial): Likewise.
6328 (remote_read_bytes): Factored out from
6329 memory_xfer_partial_1.
6330
feef67ab
DE
63312014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6332
6333 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6334 NULL pointer.
6335
b65dc60b
PA
63362014-03-21 Pedro Alves <palves@redhat.com>
6337
6338 * infrun.c (normal_stop): Extend comment.
6339
b4ab256d
HZ
63402014-03-21 Hui Zhu <hui@codesourcery.com>
6341 Pedro Alves <palves@redhat.com>
6342
6343 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6344 static buffer.
6345 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6346 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6347 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6348
deba7593
MR
63492014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6350
6351 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6352 `z' formatted output modifier.
6353
1bff71c3
SDJ
63542014-03-20 Tom Tromey <tromey@redhat.com>
6355 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * probe.c (parse_probes): Turn assert into an ordinary error.
6358 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6359 exceptions when parsing probes. Rearrange the code for clarity.
6360
90e28950
TT
63612014-03-20 Tom Tromey <tromey@redhat.com>
6362
6363 PR gdb/14135
6364 * top.c (execute_command): Only dispatch events if the command
6365 started the target.
6366
beb460e8
PA
63672014-03-20 Tom Tromey <tromey@redhat.com>
6368
6369 PR cli/15718
6370 * infcall.c: Include event-top.h.
6371 (run_inferior_call): Call async_disable_stdin if needed.
6372
99619bea
PA
63732014-03-20 Pedro Alves <palves@redhat.com>
6374
6375 * infrun.c (prepare_to_proceed): Delete.
6376 (thread_still_needs_step_over): New function.
6377 (find_thread_needs_step_over): New function.
6378 (proceed): If the current thread needs a step-over, set its
6379 steping_over_breakpoint flag. Adjust to use
6380 find_thread_needs_step_over instead of prepare_to_proceed.
6381 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6382 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6383 breakpoint.
6384 (switch_back_to_stepped_thread): Step over breakpoints of all
6385 threads not the stepping thread, before switching back to the
6386 stepping thread.
6387
2adfaa28
PA
63882014-03-20 Pedro Alves <palves@redhat.com>
6389
6390 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6391 extern.
6392 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6393 * infrun.c (saved_singlestep_ptid)
6394 (stepping_past_singlestep_breakpoint): Delete.
6395 (resume): Remove stepping_past_singlestep_breakpoint handling.
6396 (proceed): Store the prev_pc of the stepping thread too.
6397 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6398 singlestep_pc.
6399 (enum infwait_states): Delete infwait_thread_hop_state.
6400 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6401 field.
6402 (handle_inferior_event): Adjust.
6403 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6404 handling and the thread-hop code. Before removing single-step
6405 breakpoints, check whether the thread hit a single-step breakpoint
6406 of another thread. If it did, the trap is not a random signal.
6407 (switch_back_to_stepped_thread): If the event thread hit a
6408 single-step breakpoint, unblock it before switching to the
6409 stepping thread. Handle the case of the stepped thread having
6410 advanced already.
6411 (keep_going): Handle the case of the current thread moving past a
6412 single-step breakpoint.
6413
31e77af2
PA
64142014-03-20 Pedro Alves <palves@redhat.com>
6415
6416 PR breakpoints/7143
6417 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6418 are being stepped over.
6419 (breakpoint_address_match): Make extern.
6420 * breakpoint.h (breakpoint_address_match): New declaration.
6421 * inferior.h (stepping_past_instruction_at): New declaration.
6422 * infrun.c (struct step_over_info): New type.
6423 (step_over_info): New global.
6424 (set_step_over_info, clear_step_over_info)
6425 (stepping_past_instruction_at): New functions.
6426 (handle_inferior_event): Clear the step-over info when
6427 trap_expected is cleared.
6428 (resume): Remove now stale comment.
6429 (clear_proceed_status): Clear step-over info.
6430 (proceed): Adjust step-over handling to set or clear the step-over
6431 info instead of removing all breakpoints.
6432 (handle_signal_stop): When setting up a thread-hop, don't remove
6433 breakpoints here.
6434 (stop_stepping): Clear step-over info.
6435 (keep_going): Adjust step-over handling to set or clear step-over
6436 info and then always inserting breakpoints, instead of removing
6437 all breakpoints when stepping over one.
6438
b9f437de
PA
64392014-03-20 Pedro Alves <palves@redhat.com>
6440
6441 * infrun.c (previous_inferior_ptid): Adjust comment.
6442 (deferred_step_ptid): Delete.
6443 (infrun_thread_ptid_changed, prepare_to_proceed)
6444 (init_wait_for_inferior): Adjust.
6445 (handle_signal_stop): Delete deferred_step_ptid handling.
6446
06c868a8
JK
64472014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 PR gdb/15358
6450 * defs.h (sync_quit_force_run): New declaration.
6451 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6452 * event-top.c (async_sigterm_handler): New declaration.
6453 (async_sigterm_token): New variable.
6454 (async_init_signals): Create also async_sigterm_token.
6455 (async_sigterm_handler): New function.
6456 (sync_quit_force_run): New variable.
6457 (handle_sigterm): Replace quit_force call by other calls.
6458 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6459
dea80df0
MR
64602014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6461
6462 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6463 offset into SPE pseudo registers.
6464
0c7e1a46
PA
64652014-03-18 Pedro Alves <palves@redhat.com>
6466
6467 PR gdb/13860
6468 * inferior.h (print_stop_event): Declare.
6469 * infrun.c (print_stop_event): New, factored out from ...
6470 (normal_stop): ... this.
6471 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6472 of bpstat_print/print_stack_frame.
6473
9c1fcd01
TT
64742014-03-17 Tom Tromey <tromey@redhat.com>
6475
6476 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6477
11aa919a
PMR
64782014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6479
6480 * ada-lang.c (decode_constrained_packed_array): Perform a
6481 minimal coercion for reference with coerce_ref instead of
6482 ada_coerce_ref.
6483
d4ccb5e0
TG
64842014-03-17 Tristan Gingold <gingold@adacore.com>
6485
6486 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6487 (darwin_solib_create_inferior_hook): Emit a warning if version
6488 is unhandled.
6489
49840f2a
UW
64902014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6491
6492 * python/py-value.c (get_field_flag): Cast flag_name argument to
6493 PyObject_GetAttrString to support Python 2.4.
6494
ed4123e5
JK
64952014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6496
6497 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6498 (Global Maintainers): Remove Jan Kratochvil.
6499
d6b64346
PA
65002014-03-14 Pedro Alves <palves@redhat.com>
6501
6502 * inferior.h (terminal_ours_for_output): Rename to ...
6503 (child_terminal_ours_for_output): ... this.
6504 (terminal_save_ours): Rename to ...
6505 (child_terminal_save_ours): ... this.
6506 (terminal_ours): Rename to ...
6507 (child_terminal_ours): ... this.
6508 (terminal_inferior): Rename to ...
6509 (child_terminal_inferior): ... this.
6510 (terminal_init_inferior): Rename to ...
6511 (child_terminal_init_inferior): ... this.
6512 (terminal_init_inferior_with_pgrp): Rename to ...
6513 (child_terminal_init_inferior_with_pgrp): ... this.
6514 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6515 (child_terminal_init_with_pgrp): ... this.
6516 (terminal_save_ours): Rename to ...
6517 (child_terminal_save_ours): ... this.
6518 (terminal_init_inferior): Rename to ...
6519 (child_terminal_init): ... this. Adjust.
6520 (terminal_inferior): Rename to ...
6521 (child_terminal_inferior): ... this.
6522 (terminal_ours_for_output): Rename to ...
6523 (child_terminal_ours_for_output): ... this. Adjust.
6524 (terminal_ours): Rename to ...
6525 (child_terminal_ours): ... this.
6526 (terminal_ours_1): Rename to ...
6527 (child_terminal_ours_1): ... this. Adjust.
6528 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6529 * windows-nat.c (do_initial_windows_stuff): Adjust.
6530 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6531 (gnu_terminal_init): ... this. Adjust.
6532 (gnu_target): Adjust.
6533 * inf-child.c (inf_child_target): Adjust.
6534
5a1e8c7a
DE
65352014-03-13 Doug Evans <xdje42@gmail.com>
6536
6537 PR guile/16612
6538 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6539 new eq?-hashtab.
6540
350e1a76
DE
65412014-03-13 Doug Evans <xdje42@gmail.com>
6542
6543 * value.c (record_latest_value): Call release_value_or_incref
6544 instead of release_value.
6545
a69900ae
PA
65462014-03-13 Pedro Alves <palves@redhat.com>
6547
6548 * procfs.c (procfs_target): Don't override to_shortname,
6549 to_longname or to_doc.
6550
5db9f0bd
PA
65512014-03-13 Pedro Alves <palves@redhat.com>
6552
6553 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6554 Unix in user visible strings.
6555
5e3a2c38
SS
65562014-03-12 Stan Shebs <stan@codesourcery.com>
6557
6558 * gdbtypes.h: Annotate comments for Doxygen, add a page
6559 block comment with some general info.
6560
8bc2fe48
PA
65612014-03-12 Pedro Alves <palves@redhat.com>
6562
6563 * infcmd.c (prepare_execution_command): New function, factored out
6564 from several execution commands.
6565 (run_command_1, continue_command, step_1, jump_command)
6566 (signal_command, until_command, advance_command, finish_command)
6567 (attach_command): Use prepare_execution_command.
6568
638c5f49
OJ
65692014-03-12 Omair Javaid <omair.javaid@linaro.org>
6570
6571 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6572 (MAX_BPTS): Define.
6573 (MAX_WPTS): Define.
6574 (struct arm_linux_thread_points): Removed.
6575 (struct arm_linux_process_info): New.
6576 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6577 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6578 (arm_linux_find_breakpoints_by_tid): Removed.
6579 (struct arch_lwp_info): New.
6580 (arm_linux_find_process_pid): New functions.
6581 (arm_linux_add_process): New functions.
6582 (arm_linux_process_info_get): New functions.
6583 (arm_linux_forget_process): New function.
6584 (arm_linux_get_debug_reg_state): New function.
6585 (struct update_registers_data): New.
6586 (update_registers_callback): New function.
6587 (arm_linux_insert_hw_breakpoint1): Updated.
6588 (arm_linux_remove_hw_breakpoint1): Updated.
6589 (arm_linux_insert_hw_breakpoint): Updated.
6590 (arm_linux_remove_hw_breakpoint): Updated.
6591 (arm_linux_insert_watchpoint): Updated.
6592 (arm_linux_remove_watchpoint): Updated.
6593 (arm_linux_new_thread): Updated.
6594 (arm_linux_prepare_to_resume): New function.
6595 (arm_linux_new_fork): New function.
6596 (_initialize_arm_linux_nat): Updated.
6597
6d03af93
PA
65982014-03-12 Pedro Alves <palves@redhat.com>
6599
6600 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6601
b3ccfe11
TT
66022014-03-12 Tom Tromey <tromey@redhat.com>
6603
6604 * inf-child.c (return_zero): New function.
6605 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6606 * aix-thread.c (aix_thread_inferior_created): New function.
6607 (aix_thread_attach): Remove.
6608 (init_aix_thread_ops): Don't set to_attach.
6609 (_initialize_aix_thread): Register inferior_created observer.
6610 * corelow.c (init_core_ops): Don't set to_attach or
6611 to_create_inferior.
6612 * exec.c (init_exec_ops): Don't set to_attach or
6613 to_create_inferior.
6614 * infcmd.c (run_command_1): Use find_run_target. Make direct
6615 target calls.
6616 (attach_command): Use find_attach_target. Make direct target
6617 calls.
6618 * record-btrace.c (init_record_btrace_ops): Don't set
6619 to_create_inferior.
6620 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6621 Remove.
6622 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6623 set to_create_inferior.
6624 * target.c (complete_target_initialization): Add assertion.
6625 (target_create_inferior): Remove.
6626 (find_default_attach, find_default_create_inferior): Remove.
6627 (find_attach_target, find_run_target): New functions.
6628 (find_default_is_async_p, find_default_can_async_p)
6629 (target_supports_non_stop, target_attach): Remove.
6630 (init_dummy_target): Don't set to_create_inferior or
6631 to_supports_non_stop.
6632 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6633 TARGET_DEFAULT_FUNC.
6634 <to_create_inferior>: Add comment.
6635 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6636 TARGET_DEFAULT_RETURN.
6637 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6638 (find_attach_target, find_run_target): Declare.
6639 (target_create_inferior): Remove.
6640 (target_has_execution_1): Update comment.
6641 (target_supports_non_stop): Remove.
6642 * target-delegates.c: Rebuild.
6643
91f83b02
PA
66442014-03-12 Pedro Alves <palves@redhat.com>
6645
6646 * inf-child.h: Update comment to not mention Unix.
6647
f1aea813
PA
66482014-03-12 Pedro Alves <palves@redhat.com>
6649
6650 * inf-child.c: Update top comment to not mention Unix. Add
6651 generic comment describing how this target is meant to be used.
6652 (inf_child_post_attach, inf_child_post_startup_inferior)
6653 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6654 Unix in comment.
6655
ee8e9165
PA
66562014-03-12 Pedro Alves <palves@redhat.com>
6657
6658 * nto-procfs.c: Include inf-child.h.
6659 (procfs_ops): Delete global.
6660 (procfs_can_run): Delete method.
6661 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6662 target pointer instead of referencing procfs_ops.
6663 (procfs_prepare_to_store): Delete.
6664 (init_procfs_ops): Delete function.
6665 (procfs_target): New function, based on init_procfs_ops, but
6666 inherit inf_child_target.
6667 (_initialize_procfs): Use procfs_target.
6668
51a9c8c5
PA
66692014-03-12 Pedro Alves <palves@redhat.com>
6670
6671 * windows-nat.c: Include inf-child.h.
6672 (windows_ops): Delete global.
6673 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6674 methods.
6675 (init_windows_ops): Delete function.
6676 (windows_target): New function, based on init_windows_ops, but
6677 inherit inf_child_target.
6678 (_initialize_windows_nat): Use windows_target. Install x86
6679 specific target methods here.
6680
c1966e26
DE
66812014-03-10 Doug Evans <xdje42@gmail.com>
6682
6683 * guile/guile.c (call_initialize_gdb_module): New function.
6684 (initialize_guile): Replace call to scm_init_guile with call to
6685 scm_with_guile.
6686
023db19c
JB
66872014-03-10 Joel Brobecker <brobecker@adacore.com>
6688
6689 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6690 in call to TYPE_CODE macro.
6691
5ec18f2b
JG
66922014-03-10 Jerome Guitton <guitton@adacore.com>
6693
8668be63
JB
6694 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6695 Resolve tagged types to full view.
5ec18f2b 6696
7d03f2eb
HZ
66972014-03-10 Hui Zhu <hui@codesourcery.com>
6698
6699 * target.h (target_insert_breakpoint): Remove "hardware" from its
6700 comments.
6701
c5164cbc
DE
67022014-03-07 Doug Evans <dje@google.com>
6703
6704 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6705
c4a3fee2
DE
67062014-03-07 Doug Evans <dje@google.com>
6707
6708 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6709 Remove unused local comp_dir_attr. Assert exactly one of
6710 stub_comp_unit_die, stub_comp_dir is non-NULL.
6711
3156469c
JB
67122014-03-07 Joel Brobecker <brobecker@adacore.com>
6713
6714 * target.h (complete_target_initialization, add_target):
6715 Add comment.
6716
c1a7b7c6
PA
67172014-03-07 Pedro Alves <palves@redhat.com>
6718
6719 * go32-nat.c: Include inf-child.h.
6720 (go32_ops): Delete global.
6721 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6722 Delete methods.
6723 (go32_create_inferior): Push the passed in target pointer instead
6724 of referencing go32_ops.
6725 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6726 (go32_target): New function, based on init_go32_ops, but inherit
6727 inf_child_target.
6728 (_initialize_go32_nat): Use go32_target. Move parts of
6729 init_go32_ops here.
6730
d3c1a85f
JB
67312014-03-06 Joel Brobecker <brobecker@adacore.com>
6732
6733 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6734 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6735 SYMBOL_VALUE_ADDRESS.
6736 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6737
5fa1d40e
YQ
67382014-03-06 Yao Qi <yao@codesourcery.com>
6739
6740 * breakpoint.c (get_tracepoint_by_number): Remove argument
6741 optional_p. All callers updated. Adjust comments. Update
6742 output message.
6743 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6744
0c13193f
YQ
67452014-03-06 Yao Qi <yao@codesourcery.com>
6746
6747 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6748 early if get_number returns zero. Use 'p' instead of 'args'.
6749
2217da06
YQ
67502014-03-06 Yao Qi <yao@codesourcery.com>
6751
6752 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6753 message.
6754
cc3da688
YQ
67552014-03-06 Yao Qi <yao@codesourcery.com>
6756
6757 PR breakpoints/16508
6758 * tracepoint.c (check_trace_running): New function.
6759 (trace_find_command): Move code to check_trace_running and
6760 call check_trace_running.
6761 (trace_find_pc_command): Likewise.
6762 (trace_find_tracepoint_command): Likewise.
6763 (trace_find_line_command): Likewise.
6764 (trace_find_range_command): Likewise.
6765 * tracepoint.h (check_trace_running): Likewise.
6766 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6767
6a5f844b
YQ
67682014-03-06 Yao Qi <yao@codesourcery.com>
6769
6770 * target.h (struct target_ops) <to_traceframe_info>: Use
6771 TARGET_DEFAULT_NORETURN (tcomplain ()).
6772 * target-delegates.c: Regenerated.
6773
0f26cec1
PA
67742014-03-05 Pedro Alves <palves@redhat.com>
6775
6776 PR gdb/16575
6777 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6778 void. Update comment.
6779 (dcache_xfer_memory): Delete.
6780 (dcache_read_memory_partial): New, based on the read bits of
6781 dcache_xfer_memory.
6782 (dcache_update): Add status parameter. Use ULONGEST for len, and
6783 adjust. Discard cache lines if the reason for the update was
6784 error.
6785 * dcache.h (dcache_xfer_memory): Delete declaration.
6786 (dcache_read_memory_partial): New declaration.
6787 (dcache_update): Update prototype.
6788 * target.c (raw_memory_xfer_partial): Update the dcache here.
6789 (memory_xfer_partial_1): Don't handle dcache writes here.
6790
b2b255bd
MF
67912014-03-05 Mike Frysinger <vapier@gentoo.org>
6792
6793 * remote-sim.c (gdbsim_load): Add const to prog.
6794
5d9cf8a4
TT
67952014-03-03 Tom Tromey <tromey@redhat.com>
6796
6797 * elfread.c (probe_key): Change to bfd_data.
6798 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6799 now per-BFD, not per-objfile.
6800 * stap-probe.c (stap_probe_destroy): Update comment.
6801 (handle_stap_probe): Allocate on the per-BFD obstack.
6802
729662a5
TT
68032014-03-03 Tom Tromey <tromey@redhat.com>
6804
6805 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6806 * breakpoint.c (create_longjmp_master_breakpoint): Use
6807 get_probe_address.
6808 (add_location_to_breakpoint, bkpt_probe_insert_location)
6809 (bkpt_probe_remove_location): Update.
6810 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6811 * elfread.c (elf_symfile_relocate_probe): Remove.
6812 (elf_probe_fns): Update.
6813 (insert_exception_resume_breakpoint): Change type of "probe"
6814 parameter to bound_probe.
6815 (check_exception_resume): Update.
6816 * objfiles.c (objfile_relocate1): Don't relocate probes.
6817 * probe.c (bound_probe_s): New typedef.
6818 (parse_probes): Use get_probe_address. Set sal's objfile.
6819 (find_probe_by_pc): Return a bound_probe.
6820 (collect_probes): Return a VEC(bound_probe_s).
6821 (compare_probes): Update.
6822 (gen_ui_out_table_header_info): Change type of "probes"
6823 parameter. Update.
6824 (info_probes_for_ops): Update.
6825 (get_probe_address): New function.
6826 (probe_safe_evaluate_at_pc): Update.
6827 * probe.h (struct probe_ops) <get_probe_address>: New field.
6828 <set_semaphore, clear_semaphore>: Add objfile parameter.
6829 (struct probe) <objfile>: Remove field.
6830 <arch>: New field.
6831 <address>: Update comment.
6832 (struct bound_probe): New.
6833 (find_probe_by_pc): Return a bound_probe.
6834 (get_probe_address): Declare.
6835 * solib-svr4.c (struct probe_and_action) <address>: New field.
6836 (hash_probe_and_action, equal_probe_and_action): Update.
6837 (register_solib_event_probe): Add address parameter.
6838 (solib_event_probe_at): Update.
6839 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6840 get_probe_address.
6841 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6842 (stap_get_probe_address): New function.
6843 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6844 (compile_probe_arg): Update.
6845 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6846 address.
6847 (handle_stap_probe): Don't relocate the probe.
6848 (stap_relocate): Remove.
6849 (stap_gen_info_probes_table_values): Update.
6850 (stap_probe_ops): Remove stap_relocate.
6851 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6852 (debug_sym_probe_fns): Update.
6853 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6854 * symtab.c (init_sal): Use memset.
6855 * symtab.h (struct symtab_and_line) <objfile>: New field.
6856 * tracepoint.c (start_tracing, stop_tracing): Update.
6857
ff887920
TT
68582014-03-03 Tom Tromey <tromey@redhat.com>
6859
6860 * probe.h (parse_probes, find_probe_by_pc)
6861 (find_probes_in_objfile): Fix comments.
6862
f0407826
DE
68632014-03-02 Doug Evans <xdje42@gmail.com>
6864
6865 * infrun.c (handle_signal_stop): Replace test for
6866 TARGET_WAITKIND_STOPPED with an assert.
6867
35e6a711
DE
68682014-03-02 Doug Evans <xdje42@gmail.com>
6869
6870 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6871
667f9d0b
DE
68722014-03-02 Doug Evans <xdje42@gmail.com>
6873
6874 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6875
dc92ace0
MK
68762014-03-01 Mark Kettenis <kettenis@gnu.org>
6877
6878 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6879
a900370f
MK
68802014-03-01 Mark Kettenis <kettenis@gnu.org>
6881
6882 * i386obsd-nat.c: Include "obsd-nat.h".
6883 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6884 add_target.
6885 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6886
b72a7981
MK
68872014-03-01 Mark Kettenis <kettenis@gnu.org>
6888
6889 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6890
96c70aba
MK
68912014-03-01 Mark Kettenis <kettenis@gnu.org>
6892
6893 * mips64obsd-nat.c: Include "obsd-nath".
6894 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6895 add_target
6896 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6897
874a80af
MK
68982014-03-01 Mark Kettenis <kettenis@gnu.org>
6899
8fd408f1
MK
6900 * amd64obsd-nat.c: Include "obsd-nat,h.
6901 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6902 add_target.
874a80af
MK
6903 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6904
9cf95373
SC
69052014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6906
6907 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6908 (find_overload_match): Update call to find_oload_champ.
6909 (find_oload_champ_namespace_loop): Likewise
6910
863e4da4
MK
69112014-02-28 Mark Kettenis <kettenis@gnu.org>
6912
025cac40
MK
6913 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6914
1ed586ce
MK
6915 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6916 * config/sparc/obsd64.mh: New file.
6917 * sparc64obsd-nat.c: New file.
6918
863e4da4
MK
6919 * obsd-nat.h: New file.
6920 * obsd-nat.c: New file.
6921 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6922 (ALLDEPFILES): Add obsd-nat.c.
6923
89de4da4
TT
69242014-02-28 Tom Tromey <tromey@redhat.com>
6925
6926 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6927 * cli-out.h (cli_ui_out_impl): Now const.
6928 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6929 * ui-out.c (struct ui_out) <impl>: Now const.
6930 (default_ui_out_impl): Now const.
6931 (ui_out_new): Make 'impl' parameter const.
6932 * ui-out.h (ui_out_new): Update.
6933
c725e7b6
MK
69342014-02-27 Mark Kettenis <kettenis@gnu.org>
6935
6936 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6937
670b46b3
MK
69382014-02-27 Mark Kettenis <kettenis@gnu.org>
6939
6940 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6941
c91550fc
JK
69422014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6943
6944 Additional PR 8882 fix.
6945 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6946
2fa0369e
PA
69472014-02-27 Pedro Alves <palves@redhat.com>
6948
6949 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6950 isn't set.
6951
d632a097
PA
69522014-02-27 Pedro Alves <palves@redhat.com>
6953
6954 PR 12702
6955 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6956 * nat/linux-waitpid.c: Include string.h.
6957 (status_to_str): Moved here and made extern.
6958 * nat/linux-waitpid.h (status_to_str): New declaration.
6959
2ebd5a35
HZ
69602014-02-27 Hui Zhu <hui@codesourcery.com>
6961
6962 PR 12702
6963 * infrun.c (ptid_match): Move ...
6964 * common/ptid.c (ptid_match): ... here.
6965 * inferior.h (ptid_match): Move ...
6966 * common/ptid.h (ptid_match): ... here.
6967
3cdd631f
MK
69682014-02-27 Mark Kettenis <kettenis@gnu.org>
6969
6970 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6971 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6972 gdb_target_obs.
6973
bee30a64
MK
69742014-02-27 Mark Kettenis <kettenis@gnu.org>
6975
6976 * obsd-tdep.c (obsd_auxv_parse): New function.
6977 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6978
6979 * gdbarch.sh (auxv_parse): New.
6980 * gdbarch.h: Regenerated.
6981 * gdbarch.c: Regenerated.
6982 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6983
7a5a839f
LC
69842014-02-26 Ludovic Courtès <ludo@gnu.org>
6985
6986 * guile/scm-value.c (gdbscm_history_append_x): New function.
6987 (value_functions): Add it.
6988
31aa7e4e
JB
69892014-02-27 Joel Brobecker <brobecker@adacore.com>
6990
6991 * dwarf2read.c (attr_value_as_address): New function.
6992 (dwarf2_find_base_address, read_call_site_scope): Use
6993 attr_value_as_address in place of DW_ADDR.
6994 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6995 the low and high addresses. Slight rework of the handling
6996 of the high pc being a constant form, and limit it to
6997 DWARF verson 4 or higher.
6998 (dwarf2_record_block_ranges): Likewise.
6999 (read_partial_die): Likewise.
7000 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7001
9b333ba3
TT
70022014-02-26 Tom Tromey <tromey@redhat.com>
7003
7004 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7005
5f6cac40
TT
70062014-02-26 Tom Tromey <tromey@redhat.com>
7007
7008 * elfread.c (elf_read_minimal_symbols): Return early if
7009 minimal symbols have already been read. Add "ei" parameter.
7010 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7011 * minsyms.c (prim_record_minimal_symbol_full): Update.
7012 * objfiles.h (struct objstats) <n_minsyms>: Move...
7013 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7014 * symmisc.c (print_objfile_statistics): Update.
7015
2750ef27
TT
70162014-02-26 Tom Tromey <tromey@redhat.com>
7017
7018 * elfread.c (elf_read_minimal_symbols): New function, from
7019 elf_symfile_read.
7020 (elf_symfile_read): Call it.
7021
34643a32
TT
70222014-02-26 Tom Tromey <tromey@redhat.com>
7023
7024 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7025 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7026 (lookup_minimal_symbol_solib_trampoline)
7027 (lookup_minimal_symbol_by_pc_section_1)
7028 (lookup_minimal_symbol_and_objfile): Update.
7029 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7030 Don't allocate a minimal symbol if minsyms have already been read.
7031 (build_minimal_symbol_hash_tables): Update.
7032 (install_minimal_symbols): Do nothing if minsyms already read.
7033 Use the per-BFD obstack.
7034 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7035 * objfiles.c (allocate_objfile): Call
7036 terminate_minimal_symbol_table later.
7037 (have_minimal_symbols): Update.
7038 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7039 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7040 Move from struct objfile.
7041 <minsyms_read>: New field.
7042 (struct objfile) <msymbols, minimal_symbol_count,
7043 msymbol_hash, msymbol_demangled_hash>: Move.
7044 (ALL_OBJFILE_MSYMBOLS): Update.
7045 * symfile.c (read_symbols): Set minsyms_read.
7046 (reread_symbols): Update.
7047 * symmisc.c (dump_objfile, dump_msymbols): Update.
7048
2273f0ac
TT
70492014-02-26 Tom Tromey <tromey@redhat.com>
7050
7051 * minsyms.c (msymbols_sort): Remove.
7052 * minsyms.h (msymbols_sort): Remove.
7053 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7054 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7055 * elfread.c (elf_symtab_read): Don't add section offsets.
7056 * xcoffread.c (record_minimal_symbol): Don't add section offset
7057 to minimal symbol address.
7058 * somread.c (text_offset, data_offset): Remove.
7059 (som_symtab_read): Don't add section offsets to minimal symbol
7060 addresses.
7061 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7062 Don't add section offsets to minimal symbols.
7063 * coffread.c (coff_symtab_read): Don't add section offsets
7064 to minimal symbol addresses.
7065 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7066 to minimal symbol addresses.
7067 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7068 section offset to minimal symbol addresses.
7069 * mdebugread.c (parse_partial_symbols): Don't add section
7070 offset to minimal symbol addresses.
7071 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7072 offset to minimal symbol addresses.
7073
77e371c0
TT
70742014-02-26 Tom Tromey <tromey@redhat.com>
7075
7076 * ada-lang.c (ada_main_name): Update.
7077 (ada_add_standard_exceptions): Update.
7078 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7079 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7080 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7081 * auxv.c (ld_so_xfer_auxv): Update.
7082 * avr-tdep.c (avr_scan_prologue): Update.
7083 * ax-gdb.c (gen_var_ref): Update.
7084 * blockframe.c (get_pc_function_start)
7085 (find_pc_partial_function_gnu_ifunc): Update.
7086 * breakpoint.c (create_overlay_event_breakpoint)
7087 (create_longjmp_master_breakpoint)
7088 (create_std_terminate_master_breakpoint)
7089 (create_exception_master_breakpoint): Update.
7090 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7091 * c-valprint.c (c_val_print): Update.
7092 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7093 * common/agent.c (agent_look_up_symbols): Update.
7094 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7095 * dwarf2loc.c (call_site_to_target_addr): Update.
7096 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7097 * elfread.c (elf_gnu_ifunc_record_cache)
7098 (elf_gnu_ifunc_resolve_by_got): Update.
7099 * findvar.c (default_read_var_value): Update.
7100 * frame.c (inside_main_func): Update.
7101 * frv-tdep.c (frv_frame_this_id): Update.
7102 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7103 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7104 Update.
7105 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7106 (hppa_hpux_find_dummy_bpaddr): Update.
7107 * hppa-tdep.c (hppa_symbol_address): Update.
7108 * infcmd.c (until_next_command): Update.
7109 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7110 Update.
7111 * linespec.c (minsym_found, add_minsym): Update.
7112 * linux-nat.c (get_signo): Update.
7113 * linux-thread-db.c (inferior_has_bug): Update.
7114 * m32c-tdep.c (m32c_return_value)
7115 (m32c_m16c_address_to_pointer): Update.
7116 * m32r-tdep.c (m32r_frame_this_id): Update.
7117 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7118 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7119 * maint.c (maintenance_translate_address): Update.
7120 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7121 (frob_address): New function.
7122 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7123 frob_address. Rename parameter to "pc_in".
7124 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7125 addresses.
7126 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7127 Update.
7128 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7129 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7130 * objc-lang.c (find_objc_msgsend): Update.
7131 * objfiles.c (objfile_relocate1): Update.
7132 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7133 * p-valprint.c (pascal_val_print): Update.
7134 * parse.c (write_exp_msymbol): Update.
7135 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7136 (ppc_elfv2_skip_entrypoint): Update.
7137 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7138 * printcmd.c (build_address_symbolic, msym_info)
7139 (address_info): Update.
7140 * proc-service.c (ps_pglobal_lookup): Update.
7141 * psymtab.c (find_pc_sect_psymtab_closer)
7142 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7143 Change msymbol parameter to bound_minimal_symbol.
7144 * ravenscar-thread.c (get_running_thread_id): Update.
7145 * remote.c (remote_check_symbols): Update.
7146 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7147 address.
7148 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7149 * solib-dsbt.c (lm_base): Update.
7150 * solib-frv.c (lm_base, main_got): Update.
7151 * solib-irix.c (locate_base): Update.
7152 * solib-som.c (som_solib_create_inferior_hook)
7153 (link_map_start): Update.
7154 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7155 * solib-svr4.c (elf_locate_base, enable_break): Update.
7156 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7157 (flush_ea_cache): Update.
7158 * stabsread.c (define_symbol, scan_file_globals): Update.
7159 * stack.c (find_frame_funname): Update.
7160 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7161 (debug_qf_find_pc_sect_symtab): Update.
7162 * symfile.c (simple_read_overlay_table)
7163 (simple_overlay_update): Update.
7164 * symfile.h (struct quick_symbol_functions)
7165 <find_pc_sect_symtab>: Change type of msymbol to
7166 bound_minimal_symbol.
7167 * symmisc.c (dump_msymbols): Update.
7168 * symtab.c (find_pc_sect_symtab_via_partial)
7169 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7170 (search_symbols, print_msymbol_info): Update.
7171 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7172 (MSYMBOL_VALUE_ADDRESS): Redefine.
7173 (BMSYMBOL_VALUE_ADDRESS): New macro.
7174 * tracepoint.c (scope_info): Update.
7175 * tui/tui-disasm.c (tui_find_disassembly_address)
7176 (tui_get_begin_asm_address): Update.
7177 * valops.c (find_function_in_inferior): Update.
7178 * value.c (value_static_field, value_fn_field): Update.
7179
3b7344d5
TT
71802014-02-26 Tom Tromey <tromey@redhat.com>
7181
7182 * ada-lang.c (ada_update_initial_language): Update.
7183 (ada_main_name, ada_has_this_exception_support): Update.
7184 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7185 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7186 * arm-tdep.c (arm_skip_stub): Update.
7187 * auxv.c (ld_so_xfer_auxv): Update.
7188 * avr-tdep.c (avr_scan_prologue): Update.
7189 * ax-gdb.c (gen_var_ref): Update.
7190 * breakpoint.c (struct breakpoint_objfile_data)
7191 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7192 type to bound_minimal_symbol.
7193 (create_overlay_event_breakpoint)
7194 (create_longjmp_master_breakpoint)
7195 (create_std_terminate_master_breakpoint)
7196 (create_exception_master_breakpoint): Update.
7197 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7198 * c-exp.y (classify_name): Update.
7199 * coffread.c (coff_symfile_read): Update.
7200 * common/agent.c (agent_look_up_symbols): Update.
7201 * d-lang.c (d_main_name): Update.
7202 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7203 * dec-thread.c (enable_dec_thread): Update.
7204 * dwarf2loc.c (call_site_to_target_addr): Update.
7205 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7206 * eval.c (evaluate_subexp_standard): Update.
7207 * findvar.c (struct minsym_lookup_data) <result>: Change type
7208 to bound_minimal_symbol.
7209 <objfile>: Remove.
7210 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7211 * frame.c (inside_main_func): Update.
7212 * frv-tdep.c (frv_frame_this_id): Update.
7213 * gcore.c (call_target_sbrk): Update.
7214 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7215 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7216 Update.
7217 * go-lang.c (go_main_name): Update.
7218 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7219 (hppa_hpux_find_import_stub_for_addr): Update.
7220 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7221 Update. Change return type.
7222 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7223 type.
7224 * jit.c (jit_breakpoint_re_set_internal): Update.
7225 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7226 Update.
7227 * linux-nat.c (get_signo): Update.
7228 * linux-thread-db.c (inferior_has_bug): Update
7229 * m32c-tdep.c (m32c_return_value)
7230 (m32c_m16c_address_to_pointer): Update.
7231 * m32r-tdep.c (m32r_frame_this_id): Update.
7232 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7233 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7234 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7235 lookup_minimal_symbol. Change return type.
7236 (lookup_minimal_symbol): Remove.
7237 (lookup_bound_minimal_symbol): Update.
7238 (lookup_minimal_symbol_text): Change return type.
7239 (lookup_minimal_symbol_solib_trampoline): Change return type.
7240 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7241 (lookup_minimal_symbol_solib_trampoline): Change return type.
7242 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7243 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7244 (value_nsstring, find_imps): Update.
7245 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7246 * p-lang.c (pascal_main_name): Update.
7247 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7248 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7249 * proc-service.c (ps_pglobal_lookup): Update.
7250 * ravenscar-thread.c (get_running_thread_msymbol): Change
7251 return type.
7252 (has_ravenscar_runtime, get_running_thread_id): Update.
7253 * remote.c (remote_check_symbols): Update.
7254 * sol-thread.c (ps_pglobal_lookup): Update.
7255 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7256 * solib-dsbt.c (lm_base): Update.
7257 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7258 Update.
7259 * solib-irix.c (locate_base): Update.
7260 * solib-som.c (som_solib_create_inferior_hook)
7261 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7262 Update.
7263 * solib-spu.c (spu_enable_break): Update.
7264 * solib-svr4.c (elf_locate_base, enable_break): Update.
7265 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7266 (flush_ea_cache): Update.
7267 * stabsread.c (define_symbol): Update.
7268 * symfile.c (simple_read_overlay_table): Update.
7269 * symtab.c (find_pc_sect_line): Update.
7270 * tracepoint.c (scope_info): Update.
7271 * tui-disasm.c (tui_get_begin_asm_address): Update.
7272 * value.c (value_static_field): Update.
7273
40c1a007
TT
72742014-02-26 Tom Tromey <tromey@redhat.com>
7275
7276 * minsyms.c (prim_record_minimal_symbol_full): Use
7277 SET_MSYMBOL_VALUE_ADDRESS.
7278 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7279 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7280 SET_MSYMBOL_VALUE_ADDRESS.
7281 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7282 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7283
efd66ac6
TT
72842014-02-26 Tom Tromey <tromey@redhat.com>
7285
7286 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7287 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7288 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7289 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7290 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7291 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7292 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7293 * ada-lang.c (ada_main_name): Update.
7294 (ada_lookup_simple_minsym): Update.
7295 (ada_make_symbol_completion_list): Update.
7296 (ada_add_standard_exceptions): Update.
7297 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7298 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7299 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7300 * arm-tdep.c (skip_prologue_function): Update.
7301 (arm_skip_stack_protector, arm_skip_stub): Update.
7302 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7303 (arm_wince_skip_main_prologue): Update.
7304 * auxv.c (ld_so_xfer_auxv): Update.
7305 * avr-tdep.c (avr_scan_prologue): Update.
7306 * ax-gdb.c (gen_var_ref): Update.
7307 * block.c (call_site_for_pc): Update.
7308 * blockframe.c (get_pc_function_start): Update.
7309 (find_pc_partial_function_gnu_ifunc): Update.
7310 * breakpoint.c (create_overlay_event_breakpoint): Update.
7311 (create_longjmp_master_breakpoint): Update.
7312 (create_std_terminate_master_breakpoint): Update.
7313 (create_exception_master_breakpoint): Update.
7314 (resolve_sal_pc): Update.
7315 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7316 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7317 Update.
7318 * c-valprint.c (c_val_print): Update.
7319 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7320 * coffread.c (coff_symfile_read): Update.
7321 * common/agent.c (agent_look_up_symbols): Update.
7322 * dbxread.c (find_stab_function_addr): Update.
7323 (end_psymtab): Update.
7324 * dwarf2loc.c (call_site_to_target_addr): Update.
7325 (func_verify_no_selftailcall): Update.
7326 (tailcall_dump): Update.
7327 (call_site_find_chain_1): Update.
7328 (dwarf_expr_reg_to_entry_parameter): Update.
7329 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7330 (elf_gnu_ifunc_resolve_by_got): Update.
7331 * f-valprint.c (info_common_command): Update.
7332 * findvar.c (read_var_value): Update.
7333 * frame.c (get_prev_frame_1): Update.
7334 (inside_main_func): Update.
7335 * frv-tdep.c (frv_skip_main_prologue): Update.
7336 (frv_frame_this_id): Update.
7337 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7338 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7339 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7340 (gnuv3_skip_trampoline): Update.
7341 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7342 (hppa64_hpux_in_solib_call_trampoline): Update.
7343 (hppa_hpux_skip_trampoline_code): Update.
7344 (hppa64_hpux_search_dummy_call_sequence): Update.
7345 (hppa_hpux_find_import_stub_for_addr): Update.
7346 (hppa_hpux_find_dummy_bpaddr): Update.
7347 * hppa-tdep.c (hppa_symbol_address)
7348 (hppa_lookup_stub_minimal_symbol): Update.
7349 * i386-tdep.c (i386_skip_main_prologue): Update.
7350 (i386_pe_skip_trampoline_code): Update.
7351 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7352 * infcall.c (get_function_name): Update.
7353 * infcmd.c (until_next_command): Update.
7354 * jit.c (jit_breakpoint_re_set_internal): Update.
7355 (jit_inferior_init): Update.
7356 * linespec.c (minsym_found): Update.
7357 (add_minsym): Update.
7358 * linux-fork.c (info_checkpoints_command): Update.
7359 * linux-nat.c (get_signo): Update.
7360 * linux-thread-db.c (inferior_has_bug): Update.
7361 * m32c-tdep.c (m32c_return_value): Update.
7362 (m32c_m16c_address_to_pointer): Update.
7363 (m32c_m16c_pointer_to_address): Update.
7364 * m32r-tdep.c (m32r_frame_this_id): Update.
7365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7367 * maint.c (maintenance_translate_address): Update.
7368 * minsyms.c (add_minsym_to_hash_table): Update.
7369 (add_minsym_to_demangled_hash_table): Update.
7370 (msymbol_objfile): Update.
7371 (lookup_minimal_symbol): Update.
7372 (iterate_over_minimal_symbols): Update.
7373 (lookup_minimal_symbol_text): Update.
7374 (lookup_minimal_symbol_by_pc_name): Update.
7375 (lookup_minimal_symbol_solib_trampoline): Update.
7376 (lookup_minimal_symbol_by_pc_section_1): Update.
7377 (lookup_minimal_symbol_and_objfile): Update.
7378 (prim_record_minimal_symbol_full): Update.
7379 (compare_minimal_symbols): Update.
7380 (compact_minimal_symbols): Update.
7381 (build_minimal_symbol_hash_tables): Update.
7382 (install_minimal_symbols): Update.
7383 (terminate_minimal_symbol_table): Update.
7384 (find_solib_trampoline_target): Update.
7385 (minimal_symbol_upper_bound): Update.
7386 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7387 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7388 (mips_skip_pic_trampoline_code): Update.
7389 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7390 * objc-lang.c (selectors_info): Update.
7391 (classes_info): Update.
7392 (find_methods): Update.
7393 (find_imps): Update.
7394 (find_objc_msgsend): Update.
7395 * objfiles.c (objfile_relocate1): Update.
7396 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7398 * p-valprint.c (pascal_val_print): Update.
7399 * parse.c (write_exp_msymbol): Update.
7400 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7401 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7402 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7403 * printcmd.c (build_address_symbolic): Update.
7404 (sym_info): Update.
7405 (address_info): Update.
7406 * proc-service.c (ps_pglobal_lookup): Update.
7407 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7408 (find_pc_sect_psymtab): Update.
7409 * python/py-framefilter.c (py_print_frame): Update.
7410 * ravenscar-thread.c (get_running_thread_id): Update.
7411 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7412 Update.
7413 * remote.c (remote_check_symbols): Update.
7414 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7415 (rs6000_skip_trampoline_code): Update.
7416 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7417 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7418 * solib-dsbt.c (lm_base): Update.
7419 * solib-frv.c (lm_base): Update.
7420 (main_got): Update.
7421 * solib-irix.c (locate_base): Update.
7422 * solib-som.c (som_solib_create_inferior_hook): Update.
7423 (som_solib_desire_dynamic_linker_symbols): Update.
7424 (link_map_start): Update.
7425 * solib-spu.c (spu_enable_break): Update.
7426 (ocl_enable_break): Update.
7427 * solib-svr4.c (elf_locate_base): Update.
7428 (enable_break): Update.
7429 * spu-tdep.c (spu_get_overlay_table): Update.
7430 (spu_catch_start): Update.
7431 (flush_ea_cache): Update.
7432 * stabsread.c (define_symbol): Update.
7433 (scan_file_globals): Update.
7434 * stack.c (find_frame_funname): Update.
7435 (frame_info): Update.
7436 * symfile.c (simple_read_overlay_table): Update.
7437 (simple_overlay_update): Update.
7438 * symmisc.c (dump_msymbols): Update.
7439 * symtab.c (fixup_section): Update.
7440 (find_pc_sect_line): Update.
7441 (skip_prologue_sal): Update.
7442 (search_symbols): Update.
7443 (print_msymbol_info): Update.
7444 (rbreak_command): Update.
7445 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7446 (completion_list_objc_symbol): Update.
7447 (default_make_symbol_completion_list_break_on): Update.
7448 * tracepoint.c (scope_info): Update.
7449 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7450 (tui_get_begin_asm_address): Update.
7451 * valops.c (find_function_in_inferior): Update.
7452 * value.c (value_static_field): Update.
7453 (value_fn_field): Update.
7454
50e65b17
TT
74552014-02-26 Tom Tromey <tromey@redhat.com>
7456
7457 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7458 bound minimal symbols. Move code that knows about minsym
7459 table layout...
7460 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7461 function.
7462 * minsyms.h (minimal_symbol_upper_bound): Declare.
7463 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7464 minimal_symbol_upper_bound.
7465
1b588015
JB
74662014-02-27 Joel Brobecker <brobecker@adacore.com>
7467
7468 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7469 Use the type's name if its basic type does not have a tag.
7470
dbb9c2b1
JB
74712014-02-27 Joel Brobecker <brobecker@adacore.com>
7472
7473 * dwarf2read.c (read_subrange_type): Add comment.
7474
55426c9d
JB
74752014-02-27 Joel Brobecker <brobecker@adacore.com>
7476
7477 * dwarf2read.c (update_enumeration_type_from_children): New
7478 function, mostly extracted from process_structure_scope.
7479 (read_enumeration_type): Call update_enumeration_type_from_children.
7480 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7481 and flag_flag_enum fields.
7482
f2fce0ca
PA
74832014-02-26 Pedro Alves <palves@redhat.com>
7484
7485 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7486 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7487 to_xfer_partial method.
7488
7a44e40e
PA
74892014-02-26 Pedro Alves <palves@redhat.com>
7490
7491 * target.c (complete_target_initialization): Don't install
7492 default_xfer_partial as to_xfer_partial hook.
7493 (nomemory): Delete.
7494 (update_current_target): Don't INHERIT nor de_fault
7495 deprecated_xfer_memory. Delete de_fault macro.
7496 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7497 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7498 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7499 field.
7500
bd265cd0
PA
75012014-02-26 Pedro Alves <palves@redhat.com>
7502
7503 * go32-nat.c (my_write_child): New function.
7504 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7505 (go32_xfer_partial): New function.
7506 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7507 Instead install a to_xfer_partial hook.
7508
9d46c4e5
PA
75092014-02-26 Pedro Alves <palves@redhat.com>
7510
7511 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7512 to_xfer_partial helper. Rewrite.
7513 (procfs_xfer_partial): New function.
7514 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7515 Install a to_xfer_partial hook.
7516
a1583b1f
PA
75172014-02-26 Pedro Alves <palves@redhat.com>
7518
7519 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7520 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7521 (m32r_xfer_partial): New function.
7522 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7523 Install a to_xfer_partial hook.
7524
6df1b29f
PA
75252014-02-26 Pedro Alves <palves@redhat.com>
7526
7527 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7528 helper.
7529 (mips_xfer_partial): New function.
7530 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7531 hook. Install a to_xfer_partial hook.
7532
dc53a7ad
JB
75332014-02-26 Joel Brobecker <brobecker@adacore.com>
7534
7535 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7536 * gdbtypes.c (create_array_type_with_stride): New function,
7537 renaming create_array_type, but with an added parameter
7538 called "bit_stride".
7539 (create_array_type): Re-implement using
7540 create_array_type_with_stride.
7541 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7542 and DW_AT_bit_stride attributes.
7543
12ab52e9
PA
75442014-02-26 Pedro Alves <palves@redhat.com>
7545
7546 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7547 task-specific breakpoints.
7548
d16461ae
PA
75492014-02-25 Pedro Alves <palves@redhat.com>
7550
7551 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7552 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7553
a8b16220
SS
75542014-02-25 Stan Shebs <stan@codesourcery.com>
7555
7556 * defs.h: Annotate comments for Doxygen.
7557
b9e795ee
TT
75582014-02-25 Tom Tromey <tromey@redhat.com>
7559
7560 * target.h (target_ignore): Don't declare.
7561 * target.c (target_ignore): Remove.
7562
849c862e
JK
75632014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 PR gdb/16626
7566 * auto-load.c (auto_load_objfile_script_1): Change filename to
7567 debugfile.
7568
475109d8
JB
75692014-02-25 Joel Brobecker <brobecker@adacore.com>
7570
7571 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7572 documentation. Adjust prototype to match the target_ops
7573 to_xfer_partial method. Adjust implementation accordingly.
7574
e186c3bd
HZ
75752014-02-25 Hui Zhu <hui@codesourcery.com>
7576
7577 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7578 to_traceframe_info.
7579
6d451942
KB
75802014-02-25 Kevin Buettner <kevinb@redhat.com>
7581
041ab8b4 7582 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7583 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7584 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7585 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7586 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7587 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7588 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7589 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7590 New constants.
7591 (rl78_register_type): Use a data pointer type for SP and
7592 new pseudo registers mentioned above. Use a 16 bit integer
7593 type for all other register pairs.
7594 (rl78_register_name, rl78_g10_register_name): Update for
7595 new pseudo registers.
7596 (rl78_pseudo_register_read): Likewise.
7597 (rl78_pseudo_register_write): Likewise.
7598 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7599 to the newly added pseudo registers.
7600
eddf0bae
DE
76012014-02-24 Doug Evans <dje@google.com>
7602
7603 * value.c (record_latest_value): Fix comment.
7604 * printcmd.c (print_command_1): Remove code to handle -1 return from
7605 record_latest_value.
7606
e96027e0
PA
76072014-02-24 Pedro Alves <palves@redhat.com>
7608
7609 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7610 deprecated_xfer_memory hook.
7611 (procfs_xfer_partial): Call procfs_xfer_memory instead
7612 of the deprecated_xfer_memory target hook.
7613 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7614 helper.
7615
0837c976
YZ
76162014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7617
7618 * windows-nat.c (windows_xfer_shared_libraries): Return
7619 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7620 requested object is TARGET_OBJECT_LIBRARIES.
7621
bc113b4e
YQ
76222014-02-24 Yao Qi <yao@codesourcery.com>
7623
7624 * target.h (enum target_xfer_status)
7625 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7626 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7627 explicitly. New.
7628 * corefile.c (memory_error_message): User updated.
7629 * exec.c (section_table_read_available_memory): Likewise.
7630 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7631 * target.c (target_xfer_status_to_string): Likewise.
7632 (raw_memory_xfer_partial): Likewise.
7633 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7634 * valops.c (read_value_memory): Likewise.
7635 * exec.h: Update comments.
7636
01cb8804
YQ
76372014-02-24 Yao Qi <yao@codesourcery.com>
7638
7639 * target.c (target_xfer_status_to_string): Rename argument err
7640 to status.
7641 * target.h (target_xfer_status_to_string): Update declaration.
7642 Replace target_xfer_error_to_string with
7643 target_xfer_status_to_string in comment.
7644
93063aa6
YQ
76452014-02-24 Yao Qi <yao@codesourcery.com>
7646
7647 * mips-linux-nat.c (super_close): Update its type.
7648 (mips_linux_close): Pass 'self' to super_close.
7649
5c328c05
YQ
76502014-02-24 Yao Qi <yao@codesourcery.com>
7651
7652 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7653 * corefile.c (read_memory): Adjusted.
7654 * target.c (target_write_with_progress): Adjusted.
7655
f73023dd
YQ
76562014-02-23 Yao Qi <yao@codesourcery.com>
7657
7658 Revert two patches:
7659
7660 2013-10-25 Yao Qi <yao@codesourcery.com>
7661
7662 * remote.c (remote_traceframe_info): Return early if
7663 traceframe is not selected.
7664
7665 2013-07-19 Yao Qi <yao@codesourcery.com>
7666
7667 * target.c (update_current_target): Change the default action
7668 of 'to_traceframe_info' from tcomplain to return_zero.
7669 * target.h (struct target_ops) <to_traceframe_info>: Add more
7670 comments.
7671
5a2eb0ef
YQ
76722014-02-23 Yao Qi <yao@codesourcery.com>
7673
7674 * valops.c (read_value_memory): Rewrite it. Call
7675 target_xfer_partial in a loop.
7676 * exec.h (section_table_available_memory): Remove declaration.
7677 Move comments to ...
7678 * exec.c (section_table_available_memory): ... here. Make it
7679 static.
7680
1ee79381
YQ
76812014-02-23 Yao Qi <yao@codesourcery.com>
7682
7683 * exec.c (section_table_read_available_memory): New function.
7684 * exec.h (section_table_read_available_memory): Declare.
7685 * ctf.c (ctf_xfer_partial): Call
7686 section_table_read_available_memory.
7687 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7688
1ca49d37
YQ
76892014-02-23 Yao Qi <yao@codesourcery.com>
7690
7691 * ctf.c (ctf_xfer_partial): Move code to ...
7692 * exec.c (exec_read_partial_read_only): ... it. New function.
7693 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7694 * tracefile.c: Include "exec.h".
7695 * exec.h (exec_read_partial_read_only): Declare.
7696
a283690e
YQ
76972014-02-23 Yao Qi <yao@codesourcery.com>
7698
7699 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7700 (tfile_has_memory): Remove.
7701 (init_tfile_ops): Don't set fields to_has_all_memory and
7702 to_has_memory of tfile_ops.
7703 * tracefile.c (tracefile_has_all_memory): New function.
7704 (tracefile_has_memory): New function.
7705 (init_tracefile_ops): Initialize fields to_has_all_memory and
7706 to_has_memory of 'ops'.
7707
12e03cd0
YQ
77082014-02-23 Yao Qi <yao@codesourcery.com>
7709
7710 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7711 (ctf_thread_alive, ctf_get_trace_status): Remove.
7712 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7713 init_tracefile_ops.
7714 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7715 (tfile_has_stack, tfile_has_registers): Remove.
7716 (tfile_thread_alive): Remove.
7717 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7718 init_tracefile_ops.
7719 * tracefile.c (tracefile_has_stack): New function.
7720 (tracefile_has_registers): New function.
7721 (tracefile_thread_alive): New function.
7722 (tracefile_get_trace_status): New function.
7723 (init_tracefile_ops): New function.
7724 * tracefile.h (init_tracefile_ops): Declare.
7725
11395323
YQ
77262014-02-23 Yao Qi <yao@codesourcery.com>
7727
7728 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7729 (O_LARGEFILE): Likewise.
7730 (tfile_ops): Likewise.
7731 (TRACE_HEADER_SIZE): Likewise.
7732 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7733 (cur_data_size): Likewise.
7734 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7735 (tfile_close, tfile_files_info): Likewise.
7736 (tfile_get_trace_status): Likewise.
7737 (tfile_get_tracepoint_status): Likewise.
7738 (tfile_get_traceframe_address): Likewise.
7739 (tfile_trace_find, match_blocktype): Likewise.
7740 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7741 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7742 (tfile_get_trace_state_variable_value): Likewise.
7743 (tfile_has_all_memory, tfile_has_memory): Likewise.
7744 (tfile_has_stack, tfile_has_registers): Likewise.
7745 (tfile_thread_alive, build_traceframe_info): Likewise.
7746 (tfile_traceframe_info, init_tfile_ops): Likewise.
7747 (_initialize_tracepoint): Don't call init_tfile_ops
7748 and add_target_with_completer.
7749 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7750 exec.h, completer.h and filenames.h.
7751 (_initialize_tracefile_tfile): New function.
7752
7951c4eb
YQ
77532014-02-23 Yao Qi <yao@codesourcery.com>
7754
7755 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7756 tracefile-tfile.o.
7757 (HFILES_NO_SRCDIR): Add tracefile.h.
7758 * ctf.c: Include "tracefile.h".
7759 * tracefile.h: New file.
7760 * tracefile.c: New file
7761 * tracefile-tfile.c: New file.
7762 * tracepoint.c: Include "tracefile.h".
7763 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7764 (stop_reason_names): Add const.
7765 (trace_file_writer_xfree): Move it to tracefile.c.
7766 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7767 (trace_save_ctf): Likewise.
7768 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7769 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7770 (tfile_write_header, tfile_write_regblock_type): Likewise.
7771 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7772 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7773 (tfile_write_raw_data, tfile_end): Likewise.
7774 (tfile_trace_file_writer_new): Likewise.
7775 (free_uploaded_tp): Make it extern.
7776 (free_uploaded_tsv): Make it extern.
7777 (_initialize_tracepoint): Move code to register command 'tsave'
7778 to tracefile.c.
7779 * tracepoint.h (stop_reason_names): Declare.
7780 (struct trace_frame_write_ops): Move it to tracefile.h.
7781 (struct trace_file_write_ops): Likewise.
7782 (struct trace_file_writer): Likewise.
7783 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7784
184cd072
JK
77852014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7786
7787 PR gdb/16594
7788 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7789 process name.
7790 (get_cores_used_by_process): New parameter num_cores, use it.
7791 (linux_xfer_osdata_processes): Pass num_cores to it.
7792 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7793 process name.
7794
c63528fc
AK
77952014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7796
7797 * target.c (memory_xfer_partial): Fix length arg in call to
7798 breakpoint_xfer_memory.
7799
d7b30f67
SDJ
78002014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7801
7802 PR tdep/16397
7803 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7804 number comes after the + or - signs. Adjust length of register
7805 name to be extracted.
7806
8838afaf
TT
78072014-02-20 Tom Tromey <tromey@redhat.com>
7808
7809 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7810 (ada_varobj_ops): Mark "extern".
7811
05227d14
TT
78122014-02-20 Tom Tromey <tromey@redhat.com>
7813
7814 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7815
1254eefc
DE
78162014-02-20 Doug Evans <xdje42@gmail.com>
7817
7818 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7819 All callers updated.
7820 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7821 All callers updated.
7822 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7823 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7824
adde2bff
DE
78252014-02-20 lin zuojian <manjian2006@gmail.com>
7826 Joel Brobecker <brobecker@adacore.com>
7827 Doug Evans <xdje42@gmail.com>
7828
7829 PR symtab/16581
7830 * dwarf2read.c (struct die_info): New member in_process.
7831 (reset_die_in_process): New function.
7832 (process_die): Set it at the start, reset when returning.
7833 (inherit_abstract_dies): Only call process_die if origin_child_die
7834 not already being processed.
7835
3be75f87
JB
78362014-02-20 Joel Brobecker <brobecker@adacore.com>
7837
7838 * windows-nat.c (handle_unload_dll): Add function documentation.
7839 (do_initial_windows_stuff): Add comment explaining why we wait
7840 until after inferior initialization has finished before
7841 processing all DLLs.
7842
47f7ffdb
JB
78432014-02-20 Joel Brobecker <brobecker@adacore.com>
7844
7845 * windows-nat.c (get_module_name): Delete.
7846 (windows_get_exec_module_filename): New function, mostly
7847 inspired from get_module_name.
7848 (windows_pid_to_exec_file): Replace call to get_module_name
7849 by call to windows_get_exec_module_filename.
7850
1cd9feab
JB
78512014-02-20 Joel Brobecker <brobecker@adacore.com>
7852
7853 * windows-nat.c (handle_load_dll): Rewrite this function's
7854 introductory comment. Remove code using get_module_name
7855 to get the DLL's name.
7856
ea39ad35
JB
78572014-02-20 Joel Brobecker <brobecker@adacore.com>
7858
7859 * windows-nat.c (get_windows_debug_event): Ignore
7860 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7861 if windows_initialization_done == 0.
7862 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7863 Adjust implementation to always load all DLLs.
7864 (do_initial_windows_stuff): Replace call to
7865 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7866
95060284
JB
78672014-02-20 Joel Brobecker <brobecker@adacore.com>
7868
7869 * windows-nat.c (_initialize_windows_nat): Deprecate the
7870 "dll-symbols" command. Turn the "add-shared-symbol-files"
7871 and "assf" aliases into commands, and deprecate them as well.
7872 * NEWS: Add entry explaining that "dll-symbols" and its two
7873 aliases are now deprecated.
7874
8d4fdb12
JB
78752014-02-20 Joel Brobecker <brobecker@adacore.com>
7876
7877 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7878 new-line in debug string. Remove trailing spaces.
7879
1b281443
SS
78802014-02-19 Stan Shebs <stan@codesourcery.com>
7881
7882 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7883
f7bd0f78
SC
78842014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7885
7886 * NEWS: Add entry for the new feature
7887 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7888 and class values.
7889
399ebc3d
SS
78902014-02-19 Stan Shebs <stan@codesourcery.com>
7891
7892 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7893
c658158d
PA
78942014-02-19 Pedro Alves <palves@redhat.com>
7895
7896 * common/ptid.h (struct ptid): Mention that process_stratum
7897 targets should prefer ptid.lwp.
7898
ba348170
PA
78992014-02-19 Pedro Alves <palves@redhat.com>
7900
7901 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7902 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7903 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7904 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7905 store remote thread ids rather than ptid.tid.
7906 (_initialize_remote): Adjust.
7907
ac01945b
TT
79082014-02-19 Tom Tromey <tromey@redhat.com>
7909
7910 * target.c (target_get_unwinder): Rewrite.
7911 (target_get_tailcall_unwinder): Rewrite.
7912 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7913 (record_btrace_to_get_tailcall_unwinder): New function.
7914 (init_record_btrace_ops): Update.
7915 * target.h (struct target_ops) <to_get_unwinder,
7916 to_get_tailcall_unwinder>: Now function pointers. Use
7917 TARGET_DEFAULT_RETURN.
7918
8476dc92
TT
79192014-02-19 Tom Tromey <tromey@redhat.com>
7920
7921 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7922 argument.
7923 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7924
c0eca49f
TT
79252014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7928 directly.
7929 * target-delegates.c: Rebuild.
7930 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7931 TARGET_DEFAULT_FUNC.
7932 * target.c (default_target_decr_pc_after_break): Rename from
7933 forward_target_decr_pc_after_break. Simplify.
7934 (target_decr_pc_after_break): Rely on delegation.
7935
596b6b39
TT
79362014-02-19 Tom Tromey <tromey@redhat.com>
7937
7938 * target.c (update_current_target): Do not INHERIT to_doc or
7939 to_magic. Do not de_fault to_open or to_close.
7940
b427c1bc
TT
79412014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * gcore.h (objfile_find_memory_regions): Declare.
7944 * gcore.c (objfile_find_memory_regions): No longer static. Add
7945 "self" argument.
7946 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7947 * exec.c: Include gcore.h.
7948 (exec_set_find_memory_regions): Remove.
7949 (exec_find_memory_regions): Remove.
7950 (exec_do_find_memory_regions): Remove.
7951 (init_exec_ops): Update.
7952 * defs.h (exec_set_find_memory_regions): Remove.
7953
9b144037
TT
79542014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * target-delegates.c: Rebuild.
7957 * target.h (struct target_ops) <to_extra_thread_info,
7958 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7959 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7960 not 0, in TARGET_DEFAULT_RETURN.
7961
555bbdeb
TT
79622014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target.c (complete_target_initialization): Remove casts. Use
7965 return_zero_has_execution.
7966 (return_zero): Add "ignore" argument.
7967 (return_zero_has_execution): New function.
7968 (init_dummy_target): Remove casts. Use
7969 return_zero_has_execution.
7970
be4ddd36
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target.c (update_current_target): Update comments. Do not
7974 INHERIT to_stratum.
7975
2117c711
TT
79762014-02-19 Tom Tromey <tromey@redhat.com>
7977
7978 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7979 needed.
7980 * corelow.c (core_read_description): Delegate when needed.
7981 * remote.c (remote_read_description): Delegate when needed.
7982 * target-delegates.c: Rebuild.
7983 * target.c (target_read_description): Rewrite.
7984 * target.h (struct target_ops) <to_read_description>: Update
7985 comment. Use TARGET_DEFAULT_RETURN.
7986
e88ef65c
TT
79872014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * target-delegates.c: Rebuild.
7990 * target.c (update_current_target): Don't inherit or default
7991 to_can_run.
7992 (find_default_run_target): Check against delegate_can_run.
7993 * target.h (struct target_ops) <to_can_run>: Use
7994 TARGET_DEFAULT_RETURN.
7995
86a0854a
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_disconnect): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_disconnect>: Use
8001 TARGET_DEFAULT_NORETURN.
8002
ee97f592
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * record.c (record_stop): Unconditionally delegate.
8006 * target-delegates.c: Rebuild.
8007 * target.c (target_stop_recording): Unconditionally delegate.
8008 * target.h (struct target_ops) <to_stop_recording>: Use
8009 TARGET_DEFAULT_IGNORE.
8010
6dc7fcf4
TT
80112014-02-19 Tom Tromey <tromey@redhat.com>
8012
8013 * target-delegates.c: Rebuild.
8014 * target.c (target_enable_btrace): Unconditionally delegate.
8015 * target.h (struct target_ops) <to_enable_btrace>: Use
8016 TARGET_DEFAULT_NORETURN.
8017
eb5b20d4
TT
80182014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (target_read_btrace): Unconditionally delegate.
8022 * target.h (struct target_ops) <to_read_btrace>: Use
8023 TARGET_DEFAULT_NORETURN.
8024
9ace480d
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_teardown_btrace): Unconditionally delegate.
8029 * target.h (struct target_ops) <to_teardown_btrace>: Use
8030 TARGET_DEFAULT_NORETURN.
8031
8dc292d3
TT
80322014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_disable_btrace): Unconditionally delegate.
8036 * target.h (struct target_ops) <to_disable_btrace>: Use
8037 TARGET_DEFAULT_NORETURN.
8038
58a5184e
TT
80392014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * target-delegates.c: Rebuild.
8042 * target.c (default_search_memory): New function.
8043 (simple_search_memory): Update comment.
8044 (target_search_memory): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_search_memory>: Use
8046 TARGET_DEFAULT_FUNC.
8047
8de71aab
TT
80482014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * auxv.c (default_auxv_parse): No longer static.
8051 (target_auxv_parse): Unconditionally delegate.
8052 * auxv.h (default_auxv_parse): Declare.
8053 * target-delegates.c: Rebuild.
8054 * target.c: Include auxv.h.
8055 * target.h (struct target_ops) <to_auxv_parse>: Use
8056 TARGET_DEFAULT_FUNC.
8057
6b2c5a57
TT
80582014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_memory_map): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_memory_map>: Use
8063 TARGET_DEFAULT_RETURN.
8064
cbffc065
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_thread_alive): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_thread_alive>: Use
8070 TARGET_DEFAULT_RETURN.
8071
f09e2107
TT
80722014-02-19 Tom Tromey <tromey@redhat.com>
8073
8074 * target-delegates.c: Rebuild.
8075 * target.c (target_save_record): Unconditionally delegate.
8076 * target.h (struct target_ops) <to_save_record>: Use
8077 TARGET_DEFAULT_NORETURN.
8078
07366925
TT
80792014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_delete_record): Unconditionally delegate.
8083 * target.h (struct target_ops) <to_delete_record>: Use
8084 TARGET_DEFAULT_NORETURN.
8085
dd2e9d25
TT
80862014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target-delegates.c: Rebuild.
8089 * target.c (target_record_is_replaying): Unconditionally
8090 delegate.
8091 * target.h (struct target_ops) <to_record_is_replaying>: Use
8092 TARGET_DEFAULT_RETURN.
8093
671e76cc
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_goto_record_begin): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_goto_record_begin>: Use
8099 TARGET_DEFAULT_NORETURN.
8100
e9179bb3
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_goto_record_end): Unconditionally delegate.
8105 * target.h (struct target_ops) <to_goto_record_end>: Use
8106 TARGET_DEFAULT_NORETURN.
8107
05969c84
TT
81082014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_goto_record): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_goto_record>: Use
8113 TARGET_DEFAULT_NORETURN.
8114
3679abfa
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (target_insn_history): Unconditionally delegate.
8119 * target.h (struct target_ops) <to_insn_history>: Use
8120 TARGET_DEFAULT_NORETURN.
8121
8444ab58
TT
81222014-02-19 Tom Tromey <tromey@redhat.com>
8123
8124 * target-delegates.c: Rebuild.
8125 * target.c (target_insn_history_from): Unconditionally delegate.
8126 * target.h (struct target_ops) <to_insn_history_from>: Use
8127 TARGET_DEFAULT_NORETURN.
8128
c29302cc
TT
81292014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (target_insn_history_range): Unconditionally delegate.
8133 * target.h (struct target_ops) <to_insn_history_range>: Use
8134 TARGET_DEFAULT_NORETURN.
8135
170049d4
TT
81362014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * target-delegates.c: Rebuild.
8139 * target.c (target_call_history): Unconditionally delegate.
8140 * target.h (struct target_ops) <to_call_history>: Use
8141 TARGET_DEFAULT_NORETURN.
8142
16fc27d6
TT
81432014-02-19 Tom Tromey <tromey@redhat.com>
8144
8145 * target-delegates.c: Rebuild.
8146 * target.c (target_call_history_from): Unconditionally delegate.
8147 * target.h (struct target_ops) <to_call_history_from>: Use
8148 TARGET_DEFAULT_NORETURN.
8149
115d9817
TT
81502014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (target_call_history_range): Unconditionally delegate.
8154 * target.h (struct target_ops) <to_call_history_range>: Use
8155 TARGET_DEFAULT_NORETURN.
8156
eb276a6b
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (target_verify_memory): Unconditionally delegate.
8161 * target.h (struct target_ops) <to_verify_memory>: Use
8162 TARGET_DEFAULT_NORETURN.
8163
9e538d0d
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (target_core_of_thread): Unconditionally delegate.
8168 * target.h (struct target_ops) <to_core_of_thread>: Use
8169 TARGET_DEFAULT_RETURN.
8170
f6fb2925
TT
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target-delegates.c: Rebuild.
8174 * target.c (target_flash_done): Unconditionally delegate.
8175 * target.h (struct target_ops) <to_flash_done>: Use
8176 TARGET_DEFAULT_NORETURN.
8177
e8a6c6ac
TT
81782014-02-19 Tom Tromey <tromey@redhat.com>
8179
8180 * target-delegates.c: Rebuild.
8181 * target.c (target_flash_erase): Unconditionally delegate.
8182 * target.h (struct target_ops) <to_flash_erase>: Use
8183 TARGET_DEFAULT_NORETURN.
8184
7e35c012
TT
81852014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_get_section_table): Unconditionally delegate.
8189 * target.h (struct target_ops) <to_get_section_table>: Use
8190 TARGET_DEFAULT_RETURN.
8191
770234d3
TT
81922014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_pid_to_str): Unconditionally delegate.
8196 (init_dummy_target): Don't initialize to_pid_to_str.
8197 (default_pid_to_str): Rename from dummy_pid_to_str.
8198 * target.h (struct target_ops) <to_pid_to_str>: Use
8199 TARGET_DEFAULT_FUNC.
8200
09b0dc2b
TT
82012014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target-delegates.c: Rebuild.
8204 * target.c (target_find_new_threads): Unconditionally delegate.
8205 * target.h (struct target_ops) <to_find_new_threads>: Use
8206 TARGET_DEFAULT_RETURN.
8207
7d4f8efa
TT
82082014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (target_program_signals): Unconditionally delegate.
8212 * target.h (struct target_ops) <to_program_signals>: Use
8213 TARGET_DEFAULT_IGNORE.
8214
035cad7f
TT
82152014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (target_pass_signals): Unconditionally delegate.
8219 * target.h (struct target_ops) <to_pass_signals>: Use
8220 TARGET_DEFAULT_IGNORE.
8221
8d657035
TT
82222014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (default_mourn_inferior): New function.
8226 (target_mourn_inferior): Unconditionally delegate.
8227 * target.h (struct target_ops) <to_mourn_inferior>: Use
8228 TARGET_DEFAULT_FUNC.
8229
098dba18
TT
82302014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target-delegates.c: Rebuild.
8233 * target.c (default_follow_fork): New function.
8234 (target_follow_fork): Unconditionally delegate.
8235 * target.h (struct target_ops) <to_follow_fork>: Use
8236 TARGET_DEFAULT_FUNC.
8237
423a4807
TT
82382014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target-delegates.c: Rebuild.
8241 * target.c (target_kill): Unconditionally delegate.
8242 * target.h (struct target_ops) <to_kill>: Use
8243 TARGET_DEFAULT_NORETURN.
8244
6c7e5e5c
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (target_masked_watch_num_registers): Unconditionally
8249 delegate.
8250 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8251 Use TARGET_DEFAULT_RETURN.
8252
8b1c364c
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_remove_mask_watchpoint): Unconditionally
8257 delegate.
8258 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8259 TARGET_DEFAULT_RETURN.
8260
cd4ae029
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target-delegates.c: Rebuild.
8264 * target.c (target_insert_mask_watchpoint): Unconditionally
8265 delegate.
8266 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8267 TARGET_DEFAULT_RETURN.
8268
a134316b
TT
82692014-02-19 Tom Tromey <tromey@redhat.com>
8270
8271 * target-delegates.c: Rebuild.
8272 * target.c (target_ranged_break_num_registers): Unconditionally
8273 delegate.
8274 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8275 Use TARGET_DEFAULT_RETURN.
8276
ad5989bd
TT
82772014-02-19 Tom Tromey <tromey@redhat.com>
8278
8279 * target-delegates.c: Rebuild.
8280 * target.c (target_fetch_registers): Unconditionally delegate.
8281 * target.h (struct target_ops) <to_fetch_registers>: Use
8282 TARGET_DEFAULT_NORETURN.
8283
46ee7e8d
TT
82842014-02-19 Tom Tromey <tromey@redhat.com>
8285
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_stop.
8289 * target.h (struct target_ops) <to_stop>: Use
8290 TARGET_DEFAULT_IGNORE.
8291
843f59ed
TT
82922014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_can_run_breakpoint_commands.
8297 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8298 Use TARGET_DEFAULT_RETURN.
8299
ccfde2a0
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_supports_evaluation_of_breakpoint_conditions.
8305 * target.h (struct target_ops)
8306 <to_supports_evaluation_of_breakpoint_conditions>: Use
8307 TARGET_DEFAULT_RETURN.
8308
0de91722
TT
83092014-02-19 Tom Tromey <tromey@redhat.com>
8310
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8313 to_augmented_libraries_svr4_read.
8314 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8315 Use TARGET_DEFAULT_RETURN.
8316
9a7d8b48
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_can_use_agent.
8322 * target.h (struct target_ops) <to_can_use_agent>: Use
8323 TARGET_DEFAULT_RETURN.
8324
d9db5b21
TT
83252014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * target-delegates.c: Rebuild.
8328 * target.c (update_current_target): Don't inherit or default
8329 to_use_agent.
8330 * target.h (struct target_ops) <to_use_agent>: Use
8331 TARGET_DEFAULT_NORETURN.
8332
92155eeb
TT
83332014-02-19 Tom Tromey <tromey@redhat.com>
8334
8335 * target-delegates.c: Rebuild.
8336 * target.c (update_current_target): Don't inherit or default
8337 to_traceframe_info.
8338 (return_null): Remove.
8339 * target.h (struct target_ops) <to_traceframe_info>: Use
8340 TARGET_DEFAULT_RETURN.
8341
d6522a22
TT
83422014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8346 to_static_tracepoint_markers_by_strid.
8347 * target.h (struct target_ops)
8348 <to_static_tracepoint_markers_by_strid>: Use
8349 TARGET_DEFAULT_NORETURN.
8350
4c3e4425
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't inherit or default
8355 to_static_tracepoint_marker_at.
8356 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8357 Use TARGET_DEFAULT_RETURN.
8358
dcd6917f
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_permissions.
8364 * target.h (struct target_ops) <to_set_permissions>: Use
8365 TARGET_DEFAULT_IGNORE.
8366
22bcceee
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_get_tib_address.
8372 * target.h (struct target_ops) <to_get_tib_address>: Use
8373 TARGET_DEFAULT_NORETURN.
8374
8586ccaa
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_set_trace_notes.
8380 * target.h (struct target_ops) <to_set_trace_notes>: Use
8381 TARGET_DEFAULT_RETURN.
8382
91df8d1d
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't initialize
8387 to_set_trace_buffer_size.
8388 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8389 TARGET_DEFAULT_IGNORE.
8390
8d526939
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (update_current_target): Don't inherit or default
8395 to_set_circular_trace_buffer.
8396 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8397 TARGET_DEFAULT_IGNORE.
8398
0bcfeddf
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_set_disconnected_tracing.
8404 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8405 TARGET_DEFAULT_IGNORE.
8406
9249843f
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_get_min_fast_tracepoint_insn_len.
8412 (return_minus_one): Remove.
8413 * target.h (struct target_ops)
8414 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8415
ace92e7d
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_raw_trace_data.
8421 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8422 TARGET_DEFAULT_NORETURN.
8423
08120467
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_upload_trace_state_variables.
8429 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8430 Use TARGET_DEFAULT_RETURN.
8431
1e949b00
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_upload_tracepoints.
8437 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8438 TARGET_DEFAULT_RETURN.
8439
a2e6c147
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_save_trace_data.
8445 * target.h (struct target_ops) <to_save_trace_data>: Use
8446 TARGET_DEFAULT_NORETURN.
8447
959bcd0b
TT
84482014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_get_trace_state_variable_value.
8453 * target.h (struct target_ops)
8454 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8455
afc94e66
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_trace_find.
8461 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8462
e51c07ea
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_stop.
8468 * target.h (struct target_ops) <to_trace_stop>: Use
8469 TARGET_DEFAULT_NORETURN.
8470
6fea14cd
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_get_tracepoint_status.
8476 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8477 TARGET_DEFAULT_NORETURN.
8478
4072d4ff
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_get_trace_status.
8484 * target.h (struct target_ops) <to_get_trace_status>: Use
8485 TARGET_DEFAULT_RETURN.
8486
25da2e80
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_trace_start.
8492 * target.h (struct target_ops) <to_trace_start>: Use
8493 TARGET_DEFAULT_NORETURN.
8494
86dd181d
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_trace_set_readonly_regions.
8500 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8501 Use TARGET_DEFAULT_NORETURN.
8502
05c41993
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_disable_tracepoint.
8508 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8509 TARGET_DEFAULT_NORETURN.
8510
151f70f1
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_enable_tracepoint.
8516 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8517 TARGET_DEFAULT_NORETURN.
8518
94eb98b9
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_download_trace_state_variable.
8524 * target.h (struct target_ops) <to_download_trace_state_variable>:
8525 Use TARGET_DEFAULT_NORETURN.
8526
719acc4a
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_can_download_tracepoint.
8532 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8533 TARGET_DEFAULT_RETURN.
8534
9a980a22
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target-delegates.c: Rebuild.
8538 * target.c (update_current_target): Don't inherit or default
8539 to_download_tracepoint.
8540 * target.h (struct target_ops) <to_download_tracepoint>: Use
8541 TARGET_DEFAULT_NORETURN.
8542
5536135b
TT
85432014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8547 to_trace_init.
8548 * target.h (struct target_ops) <to_trace_init>: Use
8549 TARGET_DEFAULT_RETURN.
8550
9409d39e
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (update_current_target): Don't inherit or default
8555 to_supports_string_tracing.
8556 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8557 TARGET_DEFAULT_RETURN.
8558
aab1b22d
TT
85592014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target-delegates.c: Rebuild.
8562 * target.c (update_current_target): Don't inherit or default
8563 to_supports_enable_disable_tracepoint.
8564 * target.h (struct target_ops)
8565 <to_supports_enable_disable_tracepoint>: Use
8566 TARGET_DEFAULT_RETURN.
8567
a7304748
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_supports_multi_process.
8573 * target.h (struct target_ops) <to_supports_multi_process>: Use
8574 TARGET_DEFAULT_RETURN.
8575
4229b31d
TT
85762014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_get_ada_task_ptid.
8581 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8582 TARGET_DEFAULT_FUNC.
8583
43eba180
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_thread_architecture.
8589 * target.h (struct target_ops) <to_thread_architecture>: Use
8590 TARGET_DEFAULT_FUNC.
8591
fe31bf5b
TT
85922014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8596 to_execution_direction.
8597 * target.h (struct target_ops) <to_execution_direction>: Use
8598 TARGET_DEFAULT_FUNC.
8599
53e1cfc7
TT
86002014-02-19 Tom Tromey <tromey@redhat.com>
8601
8602 * target-delegates.c: Rebuild.
8603 * target.c (update_current_target): Don't inherit or default
8604 to_can_execute_reverse.
8605 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8606 TARGET_DEFAULT_RETURN.
8607 (target_can_execute_reverse): Unconditionally delegate.
8608
9bb9d61d
TT
86092014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_goto_bookmark.
8614 (dummy_goto_bookmark): Remove.
8615 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8616 * target.h (struct target_ops) <to_goto_bookmark>: Use
8617 TARGET_DEFAULT_NORETURN.
8618
3dbafbbb
TT
86192014-02-19 Tom Tromey <tromey@redhat.com>
8620
8621 * target-delegates.c: Rebuild.
8622 * target.c (update_current_target): Don't inherit or default
8623 to_get_bookmark.
8624 (dummy_get_bookmark): Remove.
8625 (init_dummy_target): Don't inherit or default to_get_bookmark.
8626 * target.h (struct target_ops) <to_get_bookmark>: Use
8627 TARGET_DEFAULT_NORETURN
8628
16f796b1
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_make_corefile_notes.
8634 (init_dummy_target): Don't initialize to_make_corefile_notes.
8635 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8636 TARGET_DEFAULT_FUNC.
8637
0b5a2719
TT
86382014-02-19 Tom Tromey <tromey@redhat.com>
8639
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_find_memory_regions.
8643 (init_dummy_target): Don't initialize to_find_memory_regions.
8644 * target.h (struct target_ops) <to_find_memory_regions>: Use
8645 TARGET_DEFAULT_FUNC.
8646
d9cb0195
TT
86472014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8651 to_log_command.
8652 * target.h (struct target_ops) <to_log_command>: Use
8653 TARGET_DEFAULT_IGNORE.
8654 (target_log_command): Unconditionally delegate.
8655
830ca330
TT
86562014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target-delegates.c: Rebuild.
8659 * target.c (update_current_target): Don't inherit or default
8660 to_pid_to_exec_file.
8661 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8662 TARGET_DEFAULT_RETURN.
8663
825828fc
TT
86642014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (update_current_target): Don't inherit or default
8668 to_thread_name.
8669 (target_thread_name): Unconditionally delegate.
8670 * target.h (struct target_ops) <to_thread_name>: Use
8671 TARGET_DEFAULT_RETURN.
8672
4a7e6dda
TT
86732014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_extra_thread_info.
8678 * target.h (struct target_ops) <to_extra_thread_info>: Use
8679 TARGET_DEFAULT_RETURN.
8680
0db88c1d
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_has_exited.
8686 * target.h (struct target_ops) <to_has_exited>: Use
8687 TARGET_DEFAULT_RETURN..
8688
6a9fa051
TT
86892014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_set_syscall_catchpoint.
8694 (return_one): Remove.
8695 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8696 TARGET_DEFAULT_RETURN.
8697
62f64d7a
TT
86982014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_insert_exec_catchpoint.
8703 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8704 TARGET_DEFAULT_RETURN.
8705
cda0f38c
TT
87062014-01-08 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_exec_catchpoint.
8711 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8712 TARGET_DEFAULT_RETURN.
8713
95c3375e
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_remove_vfork_catchpoint.
8719 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8720 TARGET_DEFAULT_RETURN.
8721
7e18a8dc
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_insert_vfork_catchpoint.
8727 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8728 TARGET_DEFAULT_RETURN.
8729
e1a21fb7
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_remove_fork_catchpoint.
8735 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8736 TARGET_DEFAULT_RETURN.
8737
5958ebeb
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_insert_fork_catchpoint.
8743 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8744 TARGET_DEFAULT_RETURN.
8745
340ba4bf
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_post_startup_inferior.
8751 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8752 TARGET_DEFAULT_IGNORE.
8753
7634da87
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_load.
8759 * target.h (struct target_ops) <to_load>: Use
8760 TARGET_DEFAULT_NORETURN.
8761
e19e919f
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_info.
8767 * target.h (struct target_ops) <to_terminal_info>: Use
8768 TARGET_DEFAULT_FUNC.
8769
c6ea8f79
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_save_ours.
8775 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
e4a733f1
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_terminal_ours.
8783 * target.h (struct target_ops) <to_terminal_ours>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
74fcbef9
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_terminal_ours_for_output.
8791 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8792 TARGET_DEFAULT_IGNORE.
8793
ddeaacc9
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_terminal_inferior.
8799 * target.h (struct target_ops) <to_terminal_inferior>: Use
8800 TARGET_DEFAULT_IGNORE.
8801
0343661d
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_terminal_init.
8807 * target.h (struct target_ops) <to_terminal_init>: Use
8808 TARGET_DEFAULT_IGNORE.
8809
77cdffe9
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_can_accel_watchpoint_condition.
8815 * target.h (struct target_ops)
8816 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8817
d03655e4
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_region_ok_for_hw_watchpoint.
8823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8824 Use TARGET_DEFAULT_FUNC.
8825
65f160a9
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_watchpoint_addr_within_range.
8831 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8832 Use TARGET_DEFAULT_FUNC.
8833
61dd109f
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_remove_watchpoint.
8839 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8840 TARGET_DEFAULT_NORETURN.
8841
016facd4
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_insert_watchpoint.
8847 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8848 TARGET_DEFAULT_RETURN.
8849
418dabac
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_remove_hw_breakpoint.
8855 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8856 TARGET_DEFAULT_RETURN.
8857
61b371f9
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_insert_hw_breakpoint.
8863 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8864 TARGET_DEFAULT_RETURN.
8865
52b51d06
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_can_use_hw_breakpoint.
8871 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8872 TARGET_DEFAULT_RETURN.
8873
f86e59b2
TT
88742014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_files_info.
8879 * target.h (struct target_ops) <to_files_info>: Use
8880 TARGET_DEFAULT_IGNORE.
8881
6c628163
TT
88822014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (update_current_target): Don't inherit or default
8886 to_store.
8887 * target.h (struct target_ops) <to_store>: Use
8888 TARGET_DEFAULT_NORETURN.
8889
bebd3233
TT
88902014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8894 to_post_attach.
8895 * target.h (struct target_ops) <to_post_attach>: Use
8896 TARGET_DEFAULT_IGNORE.
8897
a53f3625
TT
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_rcmd.
8903 (default_rcmd): New function.
8904 (do_monitor_command): Unconditionally delegate.
8905 * target.h (struct target_ops) <to_rmcd>: Use
8906 TARGET_DEFAULT_FUNC.
8907
e9a29200
TT
89082014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target-delegates.c: Rebuild.
8911 * target.c (init_dummy_target): Don't initialize to_attach.
8912 (target_attach): Unconditionally delegate.
8913 * target.h (struct target_ops) <to_attach>: Use
8914 TARGET_DEFAULT_FUNC.
8915
09da0d0a
TT
89162014-02-19 Tom Tromey <tromey@redhat.com>
8917
8918 * target-delegates.c: Rebuild.
8919 * target.c (target_detach): Unconditionally delegate.
8920 (init_dummy_target): Don't initialize to_detach.
8921 * target.h (struct target_ops) <to_detach>: Use
8922 TARGET_DEFAULT_IGNORE.
8923
5436ff03
TT
89242014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8927 Add argument.
8928 (target_augmented_libraries_svr4_read): Add argument.
8929 * target.c (update_current_target): Update.
8930 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8931 argument.
8932
f0d960ea
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_call_history_range>: Add
8936 argument.
8937 * target.c (target_call_history_range): Add argument.
8938 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8939 argument.
8940 (record_btrace_call_history_from): Update.
8941
ec0aea04
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_call_history_from>: Add
8945 argument.
8946 * target.c (target_call_history_from): Add argument.
8947 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8948 argument.
8949
5df2fcba
TT
89502014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target.h (struct target_ops) <to_call_history>: Add argument.
8953 * target.c (target_call_history): Add argument.
8954 * record-btrace.c (record_btrace_call_history): Add 'self'
8955 argument.
8956
4e99c6b7
TT
89572014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target.h (struct target_ops) <to_insn_history_range>: Add
8960 argument.
8961 * target.c (target_insn_history_range): Add argument.
8962 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8963 argument.
8964 (record_btrace_insn_history_from): Update.
8965
9abc3ff3
TT
89662014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target.h (struct target_ops) <to_insn_history_from>: Add
8969 argument.
8970 * target.c (target_insn_history_from): Add argument.
8971 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8972 argument.
8973
7a6c5609
TT
89742014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target.h (struct target_ops) <to_insn_history>: Add argument.
8977 * target.c (target_insn_history): Add argument.
8978 * record-btrace.c (record_btrace_insn_history): Add 'self'
8979 argument.
8980
606183ac
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_goto_record>: Add argument.
8984 * target.c (target_goto_record): Add argument.
8985 * record-full.c (record_full_goto): Add 'self' argument.
8986 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8987
307a1b91
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8991 * target.c (target_goto_record_end): Add argument.
8992 * record-full.c (record_full_goto_end): Add 'self' argument.
8993 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8994
08475817
TT
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_goto_record_begin>: Add
8998 argument.
8999 * target.c (target_goto_record_begin): Add argument.
9000 * record-full.c (record_full_goto_begin): Add 'self' argument.
9001 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9002 argument.
9003
1c63c994
TT
90042014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target.h (struct target_ops) <to_record_is_replaying>: Add
9007 argument.
9008 * target.c (target_record_is_replaying): Add argument.
9009 * record-full.c (record_full_is_replaying): Add 'self' argument.
9010 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9011 argument.
9012 (record_btrace_xfer_partial, record_btrace_store_registers)
9013 (record_btrace_prepare_to_store, record_btrace_resume)
9014 (record_btrace_wait, record_btrace_decr_pc_after_break)
9015 (record_btrace_find_new_threads, record_btrace_thread_alive):
9016 Update.
9017
d1b55219
TT
90182014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target.h (struct target_ops) <to_delete_record>: Add argument.
9021 * target.c (target_delete_record): Add argument.
9022 * record-full.c (record_full_delete): Add 'self' argument.
9023
1390f529
TT
90242014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_save_record>: Add argument.
9027 * target.c (target_save_record): Add argument.
9028 * record-full.c (record_full_save): Add 'self' argument.
9029 (record_full_save): Add 'self' argument.
9030
630d6a4a
TT
90312014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_info_record>: Add argument.
9034 * target.c (target_info_record): Add argument.
9035 * record.c (info_record_command): Add argument.
9036 * record-full.c (record_full_info): Add 'self' argument.
9037 * record-btrace.c (record_btrace_info): Add 'self' argument.
9038
c6cd7c02
TT
90392014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9042 * target.c (target_stop_recording): Add argument.
9043 * record.c (record_stop): Add argument.
9044 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9045 argument.
9046
39c49f83
TT
90472014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9050 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9051 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9052 argument.
9053 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9054 (_initialize_amd64_linux_nat): Use it.
9055 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9056 (_initialize_i386_linux_nat): Use it.
9057
1777056d
TT
90582014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9061 * target.c (target_teardown_btrace): Add argument.
9062 * remote.c (remote_teardown_btrace): Add 'self' argument.
9063 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9064 argument.
9065 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9066 argument.
9067
25e95349
TT
90682014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9071 * target.c (target_disable_btrace): Add argument.
9072 * remote.c (remote_disable_btrace): Add 'self' argument.
9073 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9074 argument.
9075 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9076 argument.
9077
e3c49f88
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9081 * target.c (target_enable_btrace): Add argument.
9082 * remote.c (remote_enable_btrace): Add 'self' argument.
9083 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9084 argument.
9085 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9086 argument.
9087
fe38f897
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9091 (target_can_use_agent): Add argument.
9092 * target.c (update_current_target): Update.
9093 * remote.c (remote_can_use_agent): Add 'self' argument.
9094 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9095
2c152180
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_use_agent>: Add argument.
9099 (target_use_agent): Add argument.
9100 * target.c (update_current_target): Update.
9101 * remote.c (remote_use_agent): Add 'self' argument.
9102 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9103
a893e81f
TT
91042014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9107 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9108 (target_traceframe_info): Add argument.
9109 * target.c (update_current_target): Update.
9110 * remote.c (remote_traceframe_info): Add 'self' argument.
9111 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9112
c686c57f
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target.h (target_static_tracepoint_markers_by_strid): Add
9116 argument.
9117 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9118 'self' argument.
9119 * target.c (update_current_target): Update.
9120 * remote.c (struct target_ops)
9121 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9122 * linux-nat.c (struct target_ops)
9123 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9124
61fc905d
TT
91252014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9128 Add argument.
9129 (target_static_tracepoint_marker_at): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9132 argument.
9133
c378d69d
TT
91342014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9137 (target_set_permissions): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_set_permissions): Add 'self' argument.
9140 (remote_start_remote): Update.
9141
bd7ae0f5
TT
91422014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9145 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9146 (target_get_tib_address): Add argument.
9147 * target.c (update_current_target): Update.
9148 * remote.c (remote_get_tib_address): Add 'self' argument.
9149
d9e68a2c
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9153 (target_set_trace_notes): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_set_trace_notes): Add 'self' argument.
9156
4da384be
TT
91572014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9160 argument.
9161 (target_set_trace_buffer_size): Add argument.
9162 * target.c (update_current_target): Update.
9163 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9164
736d5b1f
TT
91652014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9168 argument.
9169 (target_set_circular_trace_buffer): Add argument.
9170 * target.c (update_current_target): Update.
9171 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9172 argument.
9173
37b25738
TT
91742014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9177 argument.
9178 (target_set_disconnected_tracing): Add argument.
9179 * target.c (update_current_target): Update.
9180 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9181
0e67620a
TT
91822014-02-19 Tom Tromey <tromey@redhat.com>
9183
9184 * target.h (struct target_ops)
9185 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9186 (target_get_min_fast_tracepoint_insn_len): Add argument.
9187 * target.c (update_current_target): Update.
9188 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9189 argument.
9190
88ee6f45
TT
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9194 argument.
9195 (target_get_raw_trace_data): Add argument.
9196 * target.c (update_current_target): Update.
9197 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9198
181e3713
TT
91992014-02-19 Tom Tromey <tromey@redhat.com>
9200
9201 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9202 Add argument.
9203 (target_upload_trace_state_variables): Add argument.
9204 * target.c (update_current_target): Update.
9205 * remote.c (remote_upload_trace_state_variables): Add 'self'
9206 argument.
9207 (remote_start_remote): Update.
9208
ab6617cc
TT
92092014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9212 argument.
9213 (target_upload_tracepoints): Add argument.
9214 * target.c (update_current_target): Update.
9215 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9216 (remote_start_remote): Update.
9217
dc3decaf
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9221 (target_save_trace_data): Add argument.
9222 * target.c (update_current_target): Update.
9223 * remote.c (remote_save_trace_data): Add 'self' argument.
9224
4011015b
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9228 argument.
9229 * target.h (struct target_ops)
9230 <to_get_trace_state_variable_value>: Add argument.
9231 (target_get_trace_state_variable_value): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9234 argument.
9235 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9236
bd4c6793
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9240 * target.h (struct target_ops) <to_trace_find>: Add argument.
9241 (target_trace_find): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_trace_find): Add 'self' argument.
9244 * ctf.c (ctf_trace_find): Add 'self' argument.
9245
74499f1b
TT
92462014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9249 (target_trace_stop): Add argument.
9250 * target.c (update_current_target): Update.
9251 * remote.c (remote_trace_stop): Add 'self' argument.
9252
db90e85c
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9256 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9257 argument.
9258 (target_get_tracepoint_status): Add argument.
9259 * target.c (update_current_target): Update.
9260 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9261
8bd200f1
TT
92622014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9265 * target.h (struct target_ops) <to_get_trace_status>: Add
9266 argument.
9267 (target_get_trace_status): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_get_trace_status): Add 'self' argument.
9270 (remote_start_remote, remote_can_download_tracepoint): Update.
9271 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9272
e2d1aae3
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_trace_start>: Add argument.
9276 (target_trace_start): Add argument.
9277 * target.c (update_current_target): Update.
9278 * remote.c (remote_trace_start): Add 'self' argument.
9279
583f9a86
TT
92802014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9283 Add argument.
9284 (target_trace_set_readonly_regions): Add argument.
9285 * target.c (update_current_target): Update.
9286 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9287 argument.
9288
780b049c
TT
92892014-02-19 Tom Tromey <tromey@redhat.com>
9290
9291 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9292 argument.
9293 (target_disable_tracepoint): Add argument.
9294 * target.c (update_current_target): Update.
9295 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9296
46670d57
TT
92972014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9300 argument.
9301 (target_enable_tracepoint): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9304
559d2b81
TT
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target.h (struct target_ops) <to_download_trace_state_variable>:
9308 Add argument.
9309 (target_download_trace_state_variable): Add argument.
9310 * target.c (update_current_target): Update.
9311 * remote.c (remote_download_trace_state_variable): Add 'self'
9312 argument.
9313
a52a8357
TT
93142014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9317 argument.
9318 (target_can_download_tracepoint): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9321
548f7808
TT
93222014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * target.h (struct target_ops) <to_download_tracepoint>: Add
9325 argument.
9326 (target_download_tracepoint): Add argument.
9327 * target.c (update_current_target): Update.
9328 * remote.c (remote_download_tracepoint): Add 'self' argument.
9329
ecae04e1
TT
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target.h (struct target_ops) <to_trace_init>: Add argument.
9333 (target_trace_init): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_trace_init): Add 'self' argument.
9336
fab5aa7c
TT
93372014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9340 * target.c (target_fileio_readlink): Add argument.
9341 * remote.c (remote_hostio_readlink): Add 'self' argument.
9342 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9343
dbbca37d
TT
93442014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9347 * target.c (target_fileio_unlink): Add argument.
9348 * remote.c (remote_hostio_unlink): Add 'self' argument.
9349 (remote_file_delete): Update.
9350 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9351
df39ea25
TT
93522014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9355 * target.c (target_fileio_close): Add argument.
9356 * remote.c (remote_hostio_close): Add 'self' argument.
9357 (remote_hostio_close_cleanup): Update.
9358 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9359 Update.
9360 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9361
a3be983c
TT
93622014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9365 * target.c (target_fileio_pread): Add argument.
9366 * remote.c (remote_hostio_pread): Add 'self' argument.
9367 (remote_bfd_iovec_pread, remote_file_get): Update.
9368 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9369
0d866f62
TT
93702014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9373 * target.c (target_fileio_pwrite): Add argument.
9374 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9375 (remote_file_put): Update.
9376 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9377
cd897586
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9381 * target.c (target_fileio_open): Add argument.
9382 * remote.c (remote_hostio_open): Add 'self' argument.
9383 (remote_bfd_iovec_open): Add 'self' argument.
9384 (remote_file_put): Add 'self' argument.
9385 (remote_file_get): Add 'self' argument.
9386 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9387
78eff0ec
TT
93882014-02-19 Tom Tromey <tromey@redhat.com>
9389
9390 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9391 Add argument.
9392 (target_can_run_breakpoint_commands): Add argument.
9393 * target.c (update_current_target): Update.
9394 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9395 argument.
9396 (remote_insert_breakpoint): Add 'self' argument.
9397 (remote_insert_hw_breakpoint): Add 'self' argument.
9398 (remote_can_run_breakpoint_commands): Add 'self' argument.
9399
efcc2da7
TT
94002014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target.h (struct target_ops)
9403 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9404 (target_supports_evaluation_of_breakpoint_conditions): Add
9405 argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9408 argument.
9409 (remote_insert_breakpoint): Add 'self' argument.
9410 (remote_insert_hw_breakpoint): Add 'self' argument.
9411 (remote_supports_cond_breakpoints): Add 'self' argument.
9412
6de37a3a
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9416 argument.
9417 (target_supports_string_tracing): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9420
2bfc0540
TT
94212014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target.h (struct target_ops)
9424 <to_supports_disable_randomization>: Add argument.
9425 * target.c (find_default_supports_disable_randomization): Add
9426 argument.
9427 (target_supports_disable_randomization): Add argument.
9428 (find_default_supports_disable_randomization): Add 'self'
9429 argument.
9430 * remote.c (extended_remote_supports_disable_randomization): Add
9431 'self' argument.
9432 (remote_supports_disable_randomization): Add 'self' argument.
9433 (extended_remote_create_inferior): Update.
9434 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9435 'self' argument.
9436
7d178d6a
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops)
9440 <to_supports_enable_disable_tracepoint>: Add argument.
9441 (target_supports_enable_disable_tracepoint): Add argument.
9442 * target.c (update_current_target): Update.
9443 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9444 argument.
9445
86ce2668
TT
94462014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_supports_multi_process>: Add
9449 argument.
9450 (target_supports_multi_process): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_supports_multi_process): Add 'self' argument.
9453 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9454 argument.
9455 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9456 argument.
9457
4c612759
TT
94582014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * target.h (struct target_ops) <to_execution_direction>: Add
9461 argument.
9462 (target_execution_direction): Add argument.
9463 * target.c (default_execution_direction): Add 'self' argument.
9464 * record-full.c (record_full_execution_direction): Add 'self'
9465 argument.
9466
19db3e69
TT
94672014-02-19 Tom Tromey <tromey@redhat.com>
9468
9469 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9470 argument.
9471 (target_can_execute_reverse): Add argument.
9472 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9473 * record-full.c (record_full_can_execute_reverse): Add 'self'
9474 argument.
9475 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9476 argument.
9477
1e6b91a4
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9481 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9482 argument.
9483 (target_get_ada_task_ptid): Add argument.
9484 * target.c (update_current_target): Update.
9485 (default_get_ada_task_ptid): Add 'self' argument.
9486 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9487 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9488 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9489 argument.
9490 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9491 argument.
9492 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9493 argument.
9494 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9495 argument.
9496 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9497 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9498 argument.
9499
3c80fb48
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9503 (target_goto_bookmark): Add argument.
9504 * target.c (dummy_goto_bookmark): Add 'self' argument.
9505 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9506
dd0e2830
TT
95072014-02-19 Tom Tromey <tromey@redhat.com>
9508
9509 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9510 (target_get_bookmark): Add argument.
9511 * target.c (dummy_get_bookmark): Add 'self' argument.
9512 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9513
fc6691b2
TT
95142014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9517 argument.
9518 (target_make_corefile_notes): Add argument.
9519 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9520 * procfs.c (procfs_make_note_section): Add 'self' argument.
9521 (procfs_make_note_section): Add 'self' argument.
9522 (procfs_make_note_section): Add 'self' argument.
9523 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9524 argument.
9525 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9526 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9527 * exec.c (exec_make_note_section): Add 'self' argument.
9528 (exec_make_note_section): Add 'self' argument.
9529
2e73927c
TT
95302014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_find_memory_regions>: Add
9533 argument.
9534 (target_find_memory_regions): Add argument.
9535 * target.c (dummy_find_memory_regions): Add 'self' argument.
9536 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9537 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9538 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9539 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9540 * exec. (exec_do_find_memory_regions): New global.
9541 (exec_set_find_memory_regions): Rewrite.
9542 (exec_find_memory_regions): New function.
9543 (init_exec_ops): Use exec_find_memory_regions.
9544
2a9a2795
TT
95452014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_supports_non_stop>: Add
9548 argument.
9549 * target.c (find_default_supports_non_stop): Add argument.
9550 (target_supports_non_stop): Add argument.
9551 (find_default_supports_non_stop): Add 'self' argument.
9552 * remote.c (remote_supports_non_stop): Add 'self' argument.
9553 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9554
4ab76ea3
TT
95552014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target.h (struct target_ops) <to_log_command>: Add argument.
9558 (target_log_command): Add argument.
9559 * serial.h (serial_log_command): Add 'self' argument.
9560 * serial.c (serial_log_command): Add 'self' argument.
9561
8dd27370
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9565 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9566 argument.
9567 (target_pid_to_exec_file): Add argument.
9568 * target.c (debug_to_pid_to_exec_file): Add argument.
9569 (update_current_target): Update.
9570 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9571 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9572 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9573 (linux_handle_extended_wait): Update.
9574 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9575 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9576 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9577 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9578
1aac633b
TT
95792014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target.h (struct target_ops) <to_rcmd>: Add argument.
9582 (target_rcmd): Add argument.
9583 * target.c (debug_to_rcmd): Add argument.
9584 (update_current_target, do_monitor_command): Update.
9585 * remote.c (remote_rcmd): Add 'self' argument.
9586 * monitor.c (monitor_rcmd): Add 'self' argument.
9587
1eab8a48
TT
95882014-02-19 Tom Tromey <tromey@redhat.com>
9589
9590 * windows-nat.c (windows_stop): Add 'self' argument.
9591 * target.h (struct target_ops) <to_stop>: Add argument.
9592 * target.c (target_stop): Add argument.
9593 (debug_to_stop): Add argument.
9594 (update_current_target): Update.
9595 * remote.c (remote_stop): Add 'self' argument.
9596 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9597 (gdbsim_cntrl_c): Update.
9598 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9599 * procfs.c (procfs_stop): Add 'self' argument.
9600 * nto-procfs.c (procfs_stop): Add 'self' argument.
9601 * monitor.c (monitor_stop): Add 'self' argument.
9602 (monitor_open): Update.
9603 * linux-nat.c (linux_nat_stop): Add argument.
9604 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9605 * gnu-nat.c (gnu_stop): Add 'self' argument.
9606 * darwin-nat.c (darwin_stop): Add 'self' argument.
9607
503a628d
TT
96082014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target.h (struct target_ops) <to_thread_name>: Add argument.
9611 * target.c (target_thread_name): Add argument.
9612 (update_current_target): Update.
9613 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9614
c15906d8
TT
96152014-02-19 Tom Tromey <tromey@redhat.com>
9616
9617 * target.h (struct target_ops) <to_extra_thread_info>: Add
9618 argument.
9619 (target_extra_thread_info): Add argument.
9620 * target.c (update_current_target): Update.
9621 * remote.c (remote_threads_extra_info): Add 'self' argument.
9622 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9623 argument.
9624 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9625 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9626 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9627 argument.
9628 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9629 argument.
9630 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9631 argument.
9632 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9633 argument.
9634
daf5e9b6
TT
96352014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.h (struct target_ops) <to_program_signals>: Add argument.
9638 * target.c (target_program_signals): Add argument.
9639 * remote.c (remote_program_signals): Add 'self' argument.
9640
94bedb42
TT
96412014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9644 * target.c (target_pass_signals): Add argument.
9645 * remote.c (remote_pass_signals): Add 'self' argument.
9646 (remote_start_remote): Update.
9647 * procfs.c (procfs_pass_signals): Add 'self' argument.
9648 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9649 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9650 (linux_nat_create_inferior, linux_nat_attach): Update.
9651
da82bd6b
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * windows-nat.c (windows_can_run): Add 'self' argument.
9655 * target.h (struct target_ops) <to_can_run>: Add argument.
9656 (target_can_run): Add argument.
9657 * target.c (debug_to_can_run): Add argument.
9658 (update_current_target): Update.
9659 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9660 * inf-child.c (inf_child_can_run): Add 'self' argument.
9661 * go32-nat.c (go32_can_run): Add 'self' argument.
9662
d796e1d6
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_has_exited>: Add argument.
9666 (target_has_exited): Add argument.
9667 * target.c (debug_to_has_exited): Add argument.
9668 (update_current_target): Update.
9669
ff214e67
TT
96702014-02-19 Tom Tromey <tromey@redhat.com>
9671
9672 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9673 argument.
9674 (target_set_syscall_catchpoint): Add argument.
9675 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9676 argument.
9677 * target.c (update_current_target): Update.
9678
758e29d2
TT
96792014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9682 argument.
9683 (target_remove_exec_catchpoint): Add argument.
9684 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9685 (update_current_target): Update.
9686 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9687 argument.
9688
ba025e51
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9692 argument.
9693 (target_insert_exec_catchpoint): Add argument.
9694 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9695 (update_current_target): Update.
9696 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9697 argument.
9698
e98cf0cd
TT
96992014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9702 argument.
9703 (target_remove_vfork_catchpoint): Add argument.
9704 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9705 (update_current_target): Update.
9706 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9707 argument.
9708
3ecc7da0
TT
97092014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9712 argument.
9713 (target_insert_vfork_catchpoint): Add argument.
9714 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9715 (update_current_target): Update.
9716 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9717 argument.
9718
973fc227
TT
97192014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9722 argument.
9723 (target_remove_fork_catchpoint): Add argument.
9724 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9725 (update_current_target): Update.
9726 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9727 argument.
9728
a863b201
TT
97292014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9732 argument.
9733 (target_insert_fork_catchpoint): Add argument.
9734 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9735 (update_current_target): Update.
9736 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9737 argument.
9738
2e97a79e
TT
97392014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9742 argument.
9743 (target_post_startup_inferior): Add argument.
9744 * target.c (debug_to_post_startup_inferior): Add argument.
9745 (update_current_target): Update.
9746 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9747 argument.
9748 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9749 argument.
9750 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9751 argument.
9752 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9753 argument.
9754 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9755 'self' argument.
9756 (super_post_startup_inferior): Likewise.
9757 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9758 'self' argument.
9759 (super_post_startup_inferior): Likewise.
9760 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9761 Add 'self' argument.
9762 (super_post_startup_inferior): Likewise.
9763
71a9f134
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_load>: Add argument.
9767 * target.c (target_load): Add argument.
9768 (debug_to_load): Add argument.
9769 (update_current_target): Update.
9770 * remote.c (remote_load): Add 'self' argument.
9771 * remote-sim.c (gdbsim_load): Add 'self' argument.
9772 * remote-mips.c (mips_load): Add 'self' argument.
9773 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9774 * monitor.c (monitor_load): Add 'self' argument.
9775 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9776
0a4f40a2
TT
97772014-02-19 Tom Tromey <tromey@redhat.com>
9778
9779 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9780 (target_terminal_info): Add argument.
9781 * target.c (debug_to_terminal_info): Add argument.
9782 (default_terminal_info): Likewise.
9783 * inflow.c (child_terminal_info): Add 'self' argument.
9784 * inferior.h (child_terminal_info): Add 'self' argument.
9785 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9786
ae3bd431
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9790 argument.
9791 (target_terminal_save_ours): Add argument.
9792 * target.c (debug_to_terminal_save_ours): Add argument.
9793 (update_current_target): Update.
9794 * inflow.c (terminal_save_ours): Add 'self' argument.
9795 * inferior.h (terminal_save_ours): Add 'self' argument.
9796
e3594fd1
TT
97972014-02-19 Tom Tromey <tromey@redhat.com>
9798
9799 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9800 (target_terminal_ours): Add argument.
9801 * target.c (debug_to_terminal_ours): Add argument.
9802 (update_current_target): Update.
9803 * remote.c (remote_terminal_ours): Add 'self' argument.
9804 (remote_close): Update.
9805 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9806 * inflow.c (terminal_ours): Add 'self' argument.
9807 * inferior.h (terminal_ours): Add 'self' argument.
9808 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9809
2e1e1a19
TT
98102014-02-19 Pedro Alves <palves@redhat.com>
9811 Tom Tromey <tromey@redhat.com>
9812
9813 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9814 argument.
9815 (target_terminal_ours_for_output): Add argument.
9816 * target.c (debug_to_terminal_ours_for_output): Add argument.
9817 (update_current_target): Update.
9818 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9819 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9820 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9821
d2f640d4
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_terminal_inferior>: Add
9825 argument.
9826 * target.c (target_terminal_inferior): Add argument.
9827 (update_current_target): Update.
9828 * remote.c (remote_terminal_inferior): Add 'self' argument.
9829 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9830 * inflow.c (terminal_inferior): Add 'self' argument.
9831 * inferior.h (terminal_inferior): Add 'self' argument.
9832 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9833 (go32_terminal_inferior): Add 'self' argument.
9834
c42bf286
TT
98352014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9838 (target_terminal_init): Add argument.
9839 * target.c (debug_to_terminal_init): Add argument.
9840 (update_current_target): Update.
9841 * inflow.c (terminal_init_inferior): Add 'self' argument.
9842 * inferior.h (terminal_init_inferior): Add 'self' argument.
9843 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9844 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9845
c3a5ff89
TT
98462014-02-19 Tom Tromey <tromey@redhat.com>
9847
9848 * target.h (struct target_ops)
9849 <to_can_accel_watchpoint_condition>: Add argument.
9850 (target_can_accel_watchpoint_condition): Add argument.
9851 * target.c (debug_to_can_accel_watchpoint_condition): Add
9852 argument.
9853 (update_current_target): Update.
9854 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9855 'self' argument.
9856
31568a15
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9860 Add argument.
9861 (target_region_ok_for_hw_watchpoint): Add argument.
9862 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9863 (default_region_ok_for_hw_watchpoint): Add argument.
9864 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9865 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9866 argument.
9867 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9868 argument.
9869 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9870 argument.
9871 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9872 'self' argument.
9873 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9874 'self' argument.
9875 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9876 'self' argument.
9877 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9878 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9879 'self' argument.
9880 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9881 Add 'self' argument.
9882
7bb99c53
TT
98832014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9886 argument.
9887 (target_insert_watchpoint): Add argument.
9888 * target.c (debug_to_insert_watchpoint): Add argument.
9889 (update_current_target): Update.
9890 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9891 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9892 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9893 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9894 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9895 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9896 argument.
9897 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9898 (procfs_insert_hw_watchpoint): Add 'self' argument.
9899 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9900 argument.
9901 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9902 argument.
9903 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9904 argument.
9905 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9906 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9907 argument.
9908 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9909 'self' argument.
9910
11b5219a
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9914 argument.
9915 (target_remove_watchpoint): Add argument.
9916 * target.c (debug_to_remove_watchpoint): Add argument.
9917 (update_current_target): Update.
9918 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9919 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9920 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9921 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9922 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9923 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9924 argument.
9925 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9926 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9927 argument.
9928 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9929 argument.
9930 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9931 argument.
9932 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9933 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9934 argument.
9935 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9936 'self' argument.
9937
a64dc96c
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9941 argument.
9942 (target_remove_hw_breakpoint): Add argument.
9943 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9944 (update_current_target): Update.
9945 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9946 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9947 argument.
9948 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9949 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9950 argument.
9951 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9952 'self' argument.
9953
23a26771
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9957 argument.
9958 (target_insert_hw_breakpoint): Add argument.
9959 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9960 (update_current_target): Update.
9961 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9962 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9963 argument.
9964 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9965 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9966 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9967 argument.
9968 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9969 'self' argument.
9970
5461485a
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9974 argument.
9975 (target_can_use_hardware_watchpoint): Add argument.
9976 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9977 (update_current_target): Update.
9978 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9979 argument.
9980 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9981 argument.
9982 * remote.c (remote_check_watch_resources): Add 'self' argument.
9983 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9984 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9985 argument.
9986 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9987 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9988 argument.
9989 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9990 argument.
9991 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9992 argument.
9993 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9994 argument.
9995 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9996 argument.
9997 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9998 argument.
9999 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10000 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10001 argument.
10002 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10003 'self' argument.
10004
f045800c
TT
100052014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target.h (struct target_ops) <to_post_attach>: Add argument.
10008 (target_post_attach): Add argument.
10009 * target.c (debug_to_post_attach): Add argument.
10010 (update_current_target): Update.
10011 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10012 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10013 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10014 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10015 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10016
de90e03d
TT
100172014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * windows-nat.c (windows_close): Add 'self' argument.
10020 * tracepoint.c (tfile_close): Add 'self' argument.
10021 * target.h (struct target_ops) <to_close>: Add argument.
10022 * target.c (target_close): Add argument.
10023 (update_current_target): Update.
10024 * remote.c (remote_close): Add 'self' argument.
10025 * remote-sim.c (gdbsim_close): Add 'self' argument.
10026 * remote-mips.c (mips_close): Add 'self' argument.
10027 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10028 * record-full.c (record_full_close): Add 'self' argument.
10029 * record-btrace.c (record_btrace_close): Add 'self' argument.
10030 * monitor.h (monitor_close): Add 'self' argument.
10031 * monitor.c (monitor_close): Add 'self' argument.
10032 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10033 * linux-nat.c (linux_nat_close): Add argument.
10034 * go32-nat.c (go32_close): Add 'self' argument.
10035 * exec.c (exec_close_1): Add 'self' argument.
10036 * ctf.c (ctf_close): Add 'self' argument.
10037 * corelow.c (core_close): Add 'self' argument.
10038 (core_close_cleanup): Update.
10039 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10040 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10041
9dd130a0
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * remote.c (remote_load): New function.
10045 (init_remote_ops): Use it.
10046
46917d26
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10050 argument.
10051 * common/linux-btrace.h (linux_supports_btrace): Update.
10052 * remote.c (remote_supports_btrace): Add "self" argument.
10053 * target-delegates.c: Rebuild.
10054 * target.c (target_supports_btrace): Remove.
10055 * target.h (struct target_ops) <to_supports_btrace>: Add
10056 target_ops argument.
10057 (target_supports_btrace): New define.
10058
6b84065d
TT
100592014-02-19 Tom Tromey <tromey@redhat.com>
10060
10061 * record-full.c (record_full_beneath_to_resume_ops)
10062 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10063 (record_full_beneath_to_wait)
10064 (record_full_beneath_to_store_registers_ops)
10065 (record_full_beneath_to_store_registers)
10066 (record_full_beneath_to_xfer_partial_ops)
10067 (record_full_beneath_to_xfer_partial)
10068 (record_full_beneath_to_insert_breakpoint_ops)
10069 (record_full_beneath_to_insert_breakpoint)
10070 (record_full_beneath_to_remove_breakpoint_ops)
10071 (record_full_beneath_to_remove_breakpoint)
10072 (record_full_beneath_to_stopped_by_watchpoint)
10073 (record_full_beneath_to_stopped_data_address)
10074 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10075 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10076 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10077 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10078 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10079 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10080 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10081 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10082 (record_full_resume, record_full_wait_1)
10083 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10084 (record_full_store_registers, record_full_xfer_partial)
10085 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10086 (record_full_async, record_full_core_xfer_partial): Use target
10087 delegation.
10088 * target-delegates.c: Rebuild.
10089 * target.c (current_xfer_partial): Remove.
10090 (update_current_target): Do not INHERIT or de_fault
10091 to_insert_breakpoint, to_remove_breakpoint,
10092 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10093 to_is_async_p, to_async. Do not set to_xfer_partial field.
10094 (default_xfer_partial): Simplify.
10095 (current_xfer_partial): Remove.
10096 (target_wait, target_resume): Simplify.
10097 (find_default_can_async_p, find_default_is_async_p): Update.
10098 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10099 to_xfer_partial, to_stopped_by_watchpoint,
10100 to_stopped_data_address.
10101 (target_store_registers): Simplify.
10102 (forward_target_remove_breakpoint)
10103 (forward_target_insert_breakpoint): Remove.
10104 (target_remove_breakpoint, target_insert_breakpoint)
10105 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10106 * target.h (struct target_ops) <to_resume, to_wait,
10107 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10108 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10109 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10110 markup.
10111 (forward_target_remove_breakpoint)
10112 (forward_target_insert_breakpoint): Remove.
10113 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10114 directly.
10115 (record_btrace_insert_breakpoint): Delegate directly.
10116
1101cb7b
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 PR build/7701:
10120 * target-delegates.c: New file.
10121 * target.c: Include target-delegates.c.
10122 (init_dummy_target): Call install_dummy_methods.
10123 (complete_target_initialization): Call install_delegators.
10124 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10125 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10126 * make-target-delegates: New file.
10127
8b06beed
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * record.c (find_record_target): Use find_target_at.
10131 * target.c (find_target_at): New function.
10132 * target.h (find_target_at): Declare.
10133
6a109b6b
TT
101342014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10137 Add 'ops' argument.
10138 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10139 'ops' argument.
10140 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10141 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10142 'ops' argument.
10143 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10144 argument.
10145 * linux-nat.c (save_sigtrap): Update.
10146 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10147 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10148 (linux_nat_close): Update.
10149 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10150 argument.
10151 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10152 argument.
10153 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10154 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10155 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10156 (tmp_to_async): Add 'ops' argument.
10157 (record_full_stopped_by_watchpoint, record_full_async)
10158 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10159 argument.
10160 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10161 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10162 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10163 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10164 (remote_is_async_p, remote_async): Add 'ops' argument.
10165 (remote_stopped_data_address): Update.
10166 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10167 * target.c (update_current_target)
10168 (find_default_can_async_p, find_default_is_async_p): Update.
10169 (init_dummy_target): Update.
10170 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10171 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10172 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10173 (target_can_async_p, target_is_async_p, target_async)
10174 (target_stopped_by_watchpoint): Update.
10175
e095146b
YQ
101762014-02-19 Yao Qi <yao@codesourcery.com>
10177
10178 PR gdb/16220
10179 * gdbarch.sh: Remove startup_gdbarch.
10180 * gdbarch.c: Regenerated.
10181 * gdbarch.h: Likewise.
10182
bc3c6b36
KB
101832014-02-17 Kevin Buettner <kevinb@redhat.com>
10184
10185 * rl78-tdep.c (rl78_g10_register_name): New function.
10186 (rl78_return_value): Add g10 support.
10187 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10188 g10.
10189
98dc0167 101902014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10191
10192 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10193 (SUBDIR_GUILE_SRCS): Ditto.
10194 (scm-gsmob.o): Ditto.
10195
842c05cd
YQ
101962014-02-17 Yao Qi <yao@codesourcery.com>
10197
10198 * gnu-nat.c (ILL_RPC): Declare defined function.
10199
25c0bd04
YQ
102002014-02-17 Yao Qi <yao@codesourcery.com>
10201
10202 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10203 mach_msg_type_number_t.
10204 (gnu_write_inferior): Likewise.
10205
a9a758e3
YQ
102062014-02-17 Yao Qi <yao@codesourcery.com>
10207
10208 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10209 in format string.
10210 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10211 (inf_validate_procs, inf_signal): Likewise.
10212 (S_exception_raise_request): Likewise.
10213 (do_mach_notify_dead_name): Likewise.
10214 (steal_exc_port): Likewise.
10215 (gnu_read_inferior): Change 'copy_count''s type to
10216 mach_msg_type_number_t.
10217 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10218 format string.
10219
bae8023e
TS
102202014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10221
c82f56d9
TS
10222 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10223 flag. Adjust all users; in particular...
10224 (gnu_wait): ..., don't decrement its value in here...
10225 (gnu_create_inferior): ..., and instead set the flag in here,
10226 around the startup_inferior call, and call that one with
10227 START_INFERIOR_TRAPS_EXPECTED.
10228
3398af6a
TS
10229 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10230 (ILL_RPC): ... new macro.
10231 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10232 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10233 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10234 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10235 functions with ILL_RPC macro.
10236 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10237 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10238 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10239 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10240 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10241 (S_proc_getlogin_reply, S_proc_getsid_reply)
10242 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10243 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10244 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10245 (S_proc_getnports_reply, S_proc_is_important_reply)
10246 (S_proc_get_code_reply): New stub functions, generated with
10247 ILL_RPC macro.
10248
d47642c9
TS
10249 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10250 collected the type check structures.
10251
bae8023e
TS
10252 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10253
8a55ffb0
DE
102542014-02-14 Doug Evans <dje@google.com>
10255
10256 * target.c (target_write_partial): Fix result type.
10257
c2853f3d
JM
102582014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10259
10260 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10261 the proper offsets to access fpregset_t.
10262
ac61d2db
SA
102632014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10264
10265 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10266 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10267 * h8300-tdep.c (setmachinelist): Remove global.
10268 * hppa-tdep.c (hppa_sigtramp): Remove global.
10269 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10270 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10271 * ravenscar-thread.c (update_target_observer): Remove global.
10272 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10273
9d2d0b8b
TT
102742014-02-12 Tom Tromey <tromey@redhat.com>
10275
10276 * common/rsp-low.c: Update comments.
10277 * common/rsp-low.h: Update comments.
10278
a7191e8b
TT
102792014-02-12 Tom Tromey <tromey@redhat.com>
10280
10281 * common/rsp-low.c (convert_ascii_to_int): Remove.
10282 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10283
ff0e980e
TT
102842014-02-12 Tom Tromey <tromey@redhat.com>
10285
10286 * common/rsp-low.h (unhexify): Don't declare.
10287 * common/rsp-low.c (unhexify): Remove.
10288
e9371aff
TT
102892014-02-12 Tom Tromey <tromey@redhat.com>
10290
10291 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10292 * common/rsp-low.c (convert_int_to_ascii): Remove.
10293
971dc0b8
TT
102942014-02-12 Tom Tromey <tromey@redhat.com>
10295
10296 * common/rsp-low.h (hexify): Don't declare.
10297 * common/rsp-low.c (hexify): Remove.
10298
0a822afb
TT
102992014-02-12 Tom Tromey <tromey@redhat.com>
10300
10301 * common/rsp-low.c (hexify): Never take strlen of argument.
10302
9f1b45b0
TT
103032014-02-12 Tom Tromey <tromey@redhat.com>
10304
10305 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10306 * remote.c (extended_remote_run, remote_rcmd)
10307 (remote_download_trace_state_variable, remote_save_trace_data)
10308 (remote_set_trace_notes): Update.
10309 * tracepoint.c (encode_source_string, tfile_write_status)
10310 (tfile_write_uploaded_tsv): Update.
10311
9c3d6531
TT
103122014-02-12 Tom Tromey <tromey@redhat.com>
10313
10314 * tracepoint.c: Include rsp-low.h.
10315 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10316 * remote.c: Include rsp-low.h.
10317 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10318 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10319 (remote_unescape_input): Move to common/rsp-low.c.
10320 * common/rsp-low.h: New file.
10321 * common/rsp-low.c: New file.
10322 * Makefile.in (SFILES): Add common/rsp-low.c.
10323 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10324 (COMMON_OBS): Add rsp-low.o.
10325 (rsp-low.o): New target.
10326
01fd3ea5
TT
103272014-02-12 Tom Tromey <tromey@redhat.com>
10328
10329 * utils.h: Include print-utils.h.
10330 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10331 (int_string, core_addr_to_string, core_addr_to_string_nz)
10332 (hex_string, hex_string_custom): Don't declare.
10333 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10334 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10335 (hex_string_custom, int_string, core_addr_to_string)
10336 (core_addr_to_string_nz, host_address_to_string): Move to
10337 common/print-utils.c.
10338 * common/print-utils.h: New file.
10339 * common/print-utils.c: New file
10340 * Makefile.in (SFILES): Add common/print-utils.c.
10341 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10342 (COMMON_OBS): Add print-utils.o.
10343 (print-utils.o): New target.
10344
9fb50108
TT
103452014-02-12 Tom Tromey <tromey@redhat.com>
10346
10347 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10348
0548b5db
MK
103492014-02-12 Mark Kettenis <kettenis@gnu.org>
10350
10351 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10352
493443a4
MK
103532014-02-12 Mark Kettenis <kettenis@gnu.org>
10354
10355 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10356 if a PT_IO ptrace request returns sucessfully but indicates that 0
10357 bytes were transferred.
10358
706d0883
PA
103592014-02-12 Pedro Alves <palves@redhat.com>
10360 Kevin Buettner <kevinb@redhat.com>
10361
10362 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10363 TYPE_INSTANCE_FLAG_CODE_SPACE.
10364
5caa2f0b
PA
103652014-02-12 Pedro Alves <palves@redhat.com>
10366
10367 * h8300-tdep.c (pseudo_from_raw_register)
10368 (raw_from_pseudo_register): New functions.
10369 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10370 them.
10371
76fd5f74
PA
103722014-02-12 Pedro Alves <palves@redhat.com>
10373
10374 * h8300-tdep.c (h8300_register_sim_regno): New function.
10375 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10376 gdbarch_register_sim_regno hook.
10377
8f008406
SA
103782014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10379
10380 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10381
195abc10
SA
103822014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10383
10384 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10385
93ffa5b9
MK
103862014-02-12 Mark Kettenis <kettenis@gnu.org>
10387
10388 * obsd-tdep.h (obsd_init_abi): New prototype.
10389 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10390 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10391 (obsd_init_abi): New functions.
10392 * i386obsd-tdep.c: Include "obsd-tdep.h".
10393 (i386obsd_init_abi): Call obsd_init_abi.
10394 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10395 (amd64obsd_init_abi): Call obsd_init_abi.
10396 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10397 obsd-tdep.c to gdb_target_obs.
10398
49caec94
JM
103992014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10400
10401 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10402 double float arguments to 16-byte in the argument slots.
10403
e1402065
DE
104042014-02-11 Doug Evans <xdje42@gmail.com>
10405
10406 * configure.ac: Don't crash if pkg-config is not found and guile
10407 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10408 in guile checks.
10409 * configure: Regenerate.
10410
edcc890f
YQ
104112014-02-11 Yao Qi <yao@codesourcery.com>
10412
10413 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10414 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10415 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10416 * gnu-nat.c (gnu_xfer_memory): Likewise.
10417 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10418 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10419 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10420 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10421
9b409511
YQ
104222014-02-11 Yao Qi <yao@codesourcery.com>
10423
10424 * target.h (enum target_xfer_error): Rename to ...
10425 (enum target_xfer_status): ... it. New. All users updated.
10426 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10427 New.
10428 (TARGET_XFER_STATUS_ERROR_P): New macro.
10429 (target_xfer_error_to_string): Remove declaration.
10430 (target_xfer_status_to_string): Declare.
10431 (target_xfer_partial_ftype): Adjust it.
10432 (struct target_ops) <to_xfer_partial>: Return
10433 target_xfer_status. Add argument xfered_len. Update
10434 comments.
10435 * target.c (target_xfer_error_to_string): Rename to ...
10436 (target_xfer_status_to_string): ... it. New. All callers
10437 updated.
10438 (target_read_live_memory): Likewise. Call target_xfer_partial
10439 instead of target_read.
10440 (memory_xfer_live_readonly_partial): Return
10441 target_xfer_status. Add argument xfered_len.
10442 (raw_memory_xfer_partial): Likewise.
10443 (memory_xfer_partial_1): Likewise.
10444 (memory_xfer_partial): Likewise.
10445 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10446 properly. Update debug message.
10447 (default_xfer_partial, current_xfer_partial): Likewise.
10448 (target_write_partial): Likewise.
10449 (target_read_partial): Likewise. All callers updated.
10450 (read_whatever_is_readable): Likewise.
10451 (target_write_with_progress): Likewise.
10452 (target_read_alloc_1): Likewise.
10453
10454 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10455 * auxv.c (procfs_xfer_auxv): Likewise.
10456 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10457 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10458 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10459 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10460 * corefile.c (read_memory): Adjust.
10461 * corelow.c (core_xfer_partial): Likewise.
10462 * ctf.c (ctf_xfer_partial): Likewise.
10463 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10464 updated.
10465 (darwin_xfer_partial): Likewise.
10466 * exec.c (section_table_xfer_memory_partial): Likewise. All
10467 callers updated.
10468 (exec_xfer_partial): Likewise.
10469 * exec.h (section_table_xfer_memory_partial): Update
10470 declaration.
10471 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10472 negative.
10473 (gnu_xfer_partial): Likewise.
10474 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10475 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10476 (ia64_hpux_xfer_solib_got): Likewise.
10477 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10478 type of 'partial_len' to ULONGEST.
10479 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10480 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10481 (linux_nat_xfer_partial): Likewise.
10482 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10483 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10484 * monitor.c (monitor_xfer_memory): Likewise.
10485 (monitor_xfer_partial): Likewise.
10486 * procfs.c (procfs_xfer_partial): Likewise.
10487 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10488 * record-full.c (record_full_xfer_partial): Likewise.
10489 (record_full_core_xfer_partial): Likewise.
10490 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10491 (gdbsim_xfer_partial): Likewise.
10492 * remote.c (remote_write_bytes_aux): Likewise. All callers
10493 updated.
10494 (remote_write_bytes, remote_read_bytes): Likewise. All
10495 callers updated.
10496 (remote_flash_erase): Likewise. All callers updated.
10497 (remote_write_qxfer): Likewise. All callers updated.
10498 (remote_read_qxfer): Likewise. All callers updated.
10499 (remote_xfer_partial): Likewise.
10500 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10501 (rs6000_xfer_shared_libraries): Likewise.
10502 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10503 (sol_thread_xfer_partial): Likewise.
10504 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10505 (sparc_xfer_partial): Likewise.
10506 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10507 updated.
10508 (spu_xfer_partial): Likewise.
10509 * spu-multiarch.c (spu_xfer_partial): Likewise.
10510 * tracepoint.c (tfile_xfer_partial): Likewise.
10511 * windows-nat.c (windows_xfer_memory): Likewise.
10512 (windows_xfer_shared_libraries): Likewise.
10513 (windows_xfer_partial): Likewise.
10514 * valprint.c: Replace 'target_xfer_error' with
10515 'target_xfer_status' in comments.
10516
a8e63083
JB
105172014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10518
10519 Checked in by Joel Brobecker <brobecker@adacore.com>.
10520 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10521
e86b67d3
JB
105222014-02-11 Joel Brobecker <brobecker@adacore.com>
10523
10524 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10525 function parameters.
10526
4b7d1f7f
WN
105272014-02-10 Will Newton <will.newton@linaro.org>
10528
10529 * elfread.c (elf_rel_plt_read): Look for a .got section if
10530 looking up .got.plt fails.
10531 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10532 on address passed to elf_gnu_ifunc_record_cache.
10533 (elf_gnu_ifunc_resolve_addr): Likewise.
10534 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10535
961842b2
JM
105362014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10537
10538 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10539 (X_RETTURN): New macro.
10540 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10541
10542 * sparc64-tdep.c (sparc64_init_abi): Hook
10543 sparc_in_function_epilogue_p.
10544
3f03e7b1
GB
105452014-02-10 Gary Benson <gbenson@redhat.com>
10546
10547 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10548 Rename name_matcher to symbol_matcher.
10549
96f861ef
GB
105502014-02-10 Gary Benson <gbenson@redhat.com>
10551
10552 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10553 Use expand_symtabs_file_matcher_ftype and
10554 expand_symtabs_symbol_matcher_ftype.
10555
ee01b665
JB
105562014-02-10 Joel Brobecker <brobecker@adacore.com>
10557
10558 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10559 (struct ada_symbol_cache): New.
10560 (ada_free_symbol_cache): Forward declare.
10561 (struct ada_pspace_data): New.
10562 (ada_pspace_data_handle): New static global.
10563 (get_ada_pspace_data, ada_pspace_data_cleanup)
10564 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10565 (cache_space, cache): Delete, now folded inside struct
10566 ada_pspace_data.
10567 (ada_get_symbol_cache): New function.
10568 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10569 implementation.
10570 (_initialize_ada_language): Remove initialization of cache_space.
10571 Move call to observer_attach_inferior_exit up, grouping it
10572 with the other observer registrations inside this function.
10573 Rename command to be more general. Add call to
10574 register_program_space_data_with_cleanup.
10575
143adbbf
JB
105762014-02-10 Joel Brobecker <brobecker@adacore.com>
10577
10578 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10579 ada_new_objfile_observer.
10580 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10581 (_initialize_tasks): Update uses of ada_new_objfile_observer
10582 and ada_tasks_normal_stop_observer.
10583
aa4fb036
JB
105842014-02-10 Joel Brobecker <brobecker@adacore.com>
10585
10586 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10587 returned by the 'Length attribute to integer.
10588
9dee8cc6
JB
105892014-02-10 Joel Brobecker <brobecker@adacore.com>
10590
10591 * ada-lang.c (_initialize_ada_language): Initialize
10592 cache_space obstack.
10593
3d9434b5
JB
105942014-02-10 Joel Brobecker <brobecker@adacore.com>
10595
10596 * ada-lang.c (HASH_SIZE): New macro.
10597 (struct cache_entry): New type.
10598 (cache_space, cache): New static globals.
10599 (ada_clear_symbol_cache, find_entry): New functions.
10600 (lookup_cached_symbol, cache_symbol): Implement.
10601 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10602 (_initialize_ada_language): Attach ada_new_objfile_observer
10603 and ada_free_objfile_observer.
10604
f0c5f9b2
JB
106052014-02-10 Joel Brobecker <brobecker@adacore.com>
10606
10607 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10608 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10609 struct block * parameter.
10610 (ada_lookup_symbol_list_worker): Constify local variable "block".
10611 Remove cast which is no longer necessary.
10612
ed3ef339
DE
106132014-02-10 Doug Evans <xdje42@gmail.com>
10614
10615 Add Guile as an extension language.
10616 * NEWS: Mention Guile scripting.
10617 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10618 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10619 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10620 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10621 (CLIBS): Add GUILE_LIBS.
10622 (install-guile): New rule.
10623 (guile.o): New rule.
10624 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10625 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10626 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10627 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10628 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10629 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10630 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10631 * configure.ac: New option --with-guile.
10632 * configure: Regenerate.
10633 * config.in: Regenerate.
10634 * auto-load.c: Remove #include "python/python.h". Add #include
10635 "gdb/section-scripts.h".
10636 (source_section_scripts): Handle Guile scripts.
10637 (_initialize_auto_load): Add name of Guile objfile script to
10638 scripts-directory help text.
10639 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10640 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10641 (struct breakpoint): New member scm_bp_object.
10642 * defs.h (enum command_control_type): New value guile_control.
10643 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10644 "extension.h".
10645 (show_user): Update comment.
10646 (_initialize_cli_cmds): Update help text for "show user". Update help
10647 text for max-user-call-depth.
10648 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10649 "extension.h".
10650 (multi_line_command_p): Add guile_control.
10651 (print_command_lines): Handle guile_control.
10652 (execute_control_command, recurse_read_control_structure): Ditto.
10653 (process_next_line): Recognize "guile" commands.
10654 * disasm.c (gdb_disassemble_info): Make non-static.
10655 * disasm.h: #include "dis-asm.h".
10656 (struct gdbarch): Add forward decl.
10657 (gdb_disassemble_info): Declare.
10658 * extension.c: #include "guile/guile.h".
10659 (extension_languages): Add guile.
10660 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10661 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10662 * gdbtypes.c (get_unsigned_type_max): New function.
10663 (get_signed_type_minmax): New function.
10664 * gdbtypes.h (get_unsigned_type_max): Declare.
10665 (get_signed_type_minmax): Declare.
10666 * guile/README: New file.
10667 * guile/guile-internal.h: New file.
10668 * guile/guile.c: New file.
10669 * guile/guile.h: New file.
10670 * guile/scm-arch.c: New file.
10671 * guile/scm-auto-load.c: New file.
10672 * guile/scm-block.c: New file.
10673 * guile/scm-breakpoint.c: New file.
10674 * guile/scm-disasm.c: New file.
10675 * guile/scm-exception.c: New file.
10676 * guile/scm-frame.c: New file.
10677 * guile/scm-gsmob.c: New file.
10678 * guile/scm-iterator.c: New file.
10679 * guile/scm-lazy-string.c: New file.
10680 * guile/scm-math.c: New file.
10681 * guile/scm-objfile.c: New file.
10682 * guile/scm-ports.c: New file.
10683 * guile/scm-pretty-print.c: New file.
10684 * guile/scm-safe-call.c: New file.
10685 * guile/scm-string.c: New file.
10686 * guile/scm-symbol.c: New file.
10687 * guile/scm-symtab.c: New file.
10688 * guile/scm-type.c: New file.
10689 * guile/scm-utils.c: New file.
10690 * guile/scm-value.c: New file.
10691 * guile/lib/gdb.scm: New file.
10692 * guile/lib/gdb/boot.scm: New file.
10693 * guile/lib/gdb/experimental.scm: New file.
10694 * guile/lib/gdb/init.scm: New file.
10695 * guile/lib/gdb/iterator.scm: New file.
10696 * guile/lib/gdb/printing.scm: New file.
10697 * guile/lib/gdb/types.scm: New file.
10698 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10699 (VPATH): Add $(GUILE_SRCDIR).
10700 (GUILE_DIR): New variable.
10701 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10702 (all): Add stamp-guile dependency.
10703 (stamp-guile): New rule.
10704 (clean-guile, install-guile, uninstall-guile): New rules.
10705 (install-only): Add install-guile dependency.
10706 (uninstall): Add uninstall-guile dependency.
10707 (clean): Add clean-guile dependency.
10708
ac020ec5
DE
107092014-02-09 Doug Evans <xdje42@gmail.com>
10710
10711 Revert this patch (which I approved, mea culpa).
10712
10713 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10714
10715 * Makefile.in (all-lib): Remove.
10716 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10717
2a081c59
JK
107182014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10719
10720 Fix Python stack corruption.
10721 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10722 gdb_py_longest.
10723
0a6bd22d
MK
107242014-02-08 Mark Kettenis <kettenis@gnu.org>
10725
10726 * Makefile.in (all-lib): Remove.
10727 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10728
1a860409
DE
107292014-02-07 Doug Evans <dje@google.com>
10730
10731 * extension-priv.h (extension_language_script_ops): Add comment.
10732 (extension_language_ops): Add comment.
caf5a491 10733 (active_ext_lang_state): Fix typo in comment.
1a860409 10734
d137e6dc
PA
107352014-02-07 Pedro Alves <palves@redhat.com>
10736
0dcb32c3 10737 PR breakpoints/16292
d137e6dc
PA
10738 * infrun.c (handle_signal_stop) <signal arrives while stepping
10739 over a breakpoint>: Switch back to the stepping thread.
10740
ce6d0892
YQ
107412014-02-07 Yao Qi <yao@codesourcery.com>
10742
10743 * target.c (target_xfer_partial): Return zero if LEN is zero.
10744
2ed4b548
YQ
107452014-02-07 Yao Qi <yao@codesourcery.com>
10746
10747 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10748 (ld_so_xfer_auxv): Likewise.
10749 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10750 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10751 * corelow.c (core_xfer_partial): Likewise.
10752 * ctf.c (ctf_xfer_partial): Likewise.
10753 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10754 (darwin_xfer_partial): Likewise.
10755 * exec.c (exec_xfer_partial): Likewise.
10756 * gnu-nat.c (gnu_xfer_partial): Likewise.
10757 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10758 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10759 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10760 * linux-nat.c (linux_xfer_siginfo): Likewise.
10761 (linux_proc_xfer_spu): Likewise.
10762 * procfs.c (procfs_xfer_partial): Likewise.
10763 * record-full.c (record_full_xfer_partial): Likewise.
10764 (record_full_core_xfer_partial): Likewise.
10765 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10766 * remote.c (remote_write_qxfer): Likewise.
10767 (remote_write_qxfer, remote_read_qxfer): Likewise.
10768 (remote_xfer_partial): Likewise.
10769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10770 (rs6000_xfer_shared_libraries): Likewise.
10771 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10772 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10773 (spu_xfer_partial): Likewise.
10774 * target.c (memory_xfer_partial_1): Likewise.
10775 * tracepoint.c (tfile_xfer_partial): Likewise.
10776 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10777 (windows_xfer_partial): Likewise.
10778
c09f20e4
YQ
107792014-02-07 Yao Qi <yao@codesourcery.com>
10780
10781 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10782 comments.
10783 (core_xfer_shared_libraries_aix): Likewise.
10784 * gdbarch.c, gdbarch.h: Regenerated.
10785 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10786 ULONGEST. Change 'len_avail' type to ULONGEST.
10787 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10788 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10789 declaration.
10790 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10791
8635b3bf
YQ
107922014-02-07 Yao Qi <yao@codesourcery.com>
10793
10794 * corefile.c (memory_error): Get 'exception' from ERR and pass
10795 'exception' to throw_error.
10796
6dddc817
DE
107972014-02-06 Doug Evans <xdje42@gmail.com>
10798
10799 * configure.ac (libpython checking): Remove all but python.o from
10800 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10801 * configure: Regenerate.
10802
10803 * Makefile.in (SFILES): Add extension.c.
10804 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10805 (COMMON_OBS): Add extension.o.
10806 * extension.h: New file.
10807 * extension-priv.h: New file.
10808 * extension.c: New file.
10809
10810 * python/python-internal.h: #include "extension.h".
10811 (gdbpy_auto_load_enabled): Declare.
10812 (gdbpy_apply_val_pretty_printer): Declare.
10813 (gdbpy_apply_frame_filter): Declare.
10814 (gdbpy_preserve_values): Declare.
10815 (gdbpy_breakpoint_cond_says_stop): Declare.
10816 (gdbpy_breakpoint_has_cond): Declare.
10817 (void source_python_script_for_objfile): Delete.
10818 * python/python.c: #include "extension-priv.h".
10819 Delete inclusion of "observer.h".
10820 (extension_language_python): Moved here and renamed from
10821 script_language_python in py-auto-load.c.
10822 Redefined to be of type extension_language_defn.
10823 (python_extension_script_ops): New global.
10824 (python_extension_ops): New global.
10825 (struct python_env): New member previous_active.
10826 (restore_python_env): Call restore_active_ext_lang.
10827 (ensure_python_env): Call set_active_ext_lang.
10828 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10829 New arg extlang.
10830 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10831 New arg extlang.
10832 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10833 New arg extlang.
10834 (gdbpy_eval_from_control_command): Renamed from
10835 eval_python_from_control_command, made static. New arg extlang.
10836 (gdbpy_source_script) Renamed from source_python_script, made static.
10837 New arg extlang.
10838 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10839 result to int. New arg extlang.
10840 (gdbpy_source_objfile_script): Renamed from
10841 source_python_script_for_objfile, made static. New arg extlang.
10842 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10843 static. New args extlang, extlang_printers. Change result type to
10844 "void".
10845 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10846 static. New arg extlang. Rename arg printers to extlang_printers
10847 and change type to ext_lang_type_printers *.
10848 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10849 static. Replace argument arg with extlang, extlang_printers.
10850 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10851 (!HAVE_PYTHON, source_python_script): Delete.
10852 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10853 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10854 (!HAVE_PYTHON, start_type_printers): Delete.
10855 (!HAVE_PYTHON, apply_type_printers): Delete.
10856 (!HAVE_PYTHON, free_type_printers): Delete.
10857 (_initialize_python): Delete call to observer_attach_before_prompt.
10858 (finalize_python): Set/restore active extension language.
10859 (gdbpy_finish_initialization) Renamed from
10860 finish_python_initialization, made static. New arg extlang.
10861 (gdbpy_initialized): New function.
10862 * python/python.h: #include "extension.h". Delete #include
10863 "value.h", "mi/mi-cmds.h".
10864 (extension_language_python): Declare.
10865 (GDBPY_AUTO_FILE_NAME): Delete.
10866 (enum py_bt_status): Moved to extension.h and renamed to
10867 ext_lang_bt_status.
10868 (enum frame_filter_flags): Moved to extension.h.
10869 (enum py_frame_args): Moved to extension.h and renamed to
10870 ext_lang_frame_args.
10871 (finish_python_initialization): Delete.
10872 (eval_python_from_control_command): Delete.
10873 (source_python_script): Delete.
10874 (apply_val_pretty_printer): Delete.
10875 (apply_frame_filter): Delete.
10876 (preserve_python_values): Delete.
10877 (gdbpy_script_language_defn): Delete.
10878 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10879 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10880
10881 * auto-load.c: #include "extension.h".
10882 (GDB_AUTO_FILE_NAME): Delete.
10883 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10884 (script_language_gdb): Delete, moved to extension.c and renamed to
10885 extension_language_gdb.
10886 (source_gdb_script_for_objfile): Delete.
10887 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10888 (loaded_script): Change type of language member to
10889 struct extension_language_defn *.
10890 (init_loaded_scripts_info): Initialize
10891 unsupported_script_warning_printed.
10892 (maybe_add_script): Make static. Change type of language arg to
10893 struct extension_language_defn *.
10894 (clear_section_scripts): Reset unsupported_script_warning_printed.
10895 (auto_load_objfile_script_1): Rewrite to use extension language API.
10896 (auto_load_objfile_script): Make public. Remove support-compiled-in
10897 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10898 (source_section_scripts): Rewrite to use extension language API.
10899 (load_auto_scripts_for_objfile): Rewrite to use
10900 auto_load_scripts_for_objfile.
10901 (collect_matching_scripts_data): Change type of language member to
10902 struct extension_language_defn *.
10903 (auto_load_info_scripts): Change type of language arg to
10904 struct extension_language_defn *.
10905 (unsupported_script_warning_print): New function.
10906 (script_not_found_warning_print): Make static.
10907 (_initialize_auto_load): Rewrite construction of scripts-directory
10908 help.
10909 * auto-load.h (struct objfile): Add forward decl.
10910 (struct script_language): Delete.
10911 (struct auto_load_pspace_info): Add forward decl.
10912 (struct extension_language_defn): Add forward decl.
10913 (maybe_add_script): Delete.
10914 (auto_load_objfile_script): Declare.
10915 (script_not_found_warning_print): Delete.
10916 (auto_load_info_scripts): Update prototype.
10917 (auto_load_gdb_scripts_enabled): Declare.
10918 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10919 auto_load_python_scripts_enabled and made public.
10920 (script_language_python): Delete, moved to python.c.
10921 (gdbpy_script_language_defn): Delete.
10922 (info_auto_load_python_scripts): Update to use
10923 extension_language_python.
10924
10925 * breakpoint.c (condition_command): Replace call to
10926 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10927 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10928 with call to breakpoint_ext_lang_cond_says_stop.
10929 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10930 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10931 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10932 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10933 New arg slang.
10934 (local_setattro): Print name of extension language with existing
10935 stop condition.
10936
10937 * valprint.c (val_print, value_print): Update to call
10938 apply_ext_lang_val_pretty_printer.
10939 * cp-valprint.c (cp_print_value): Update call to
10940 apply_ext_lang_val_pretty_printer.
10941 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10942 (gdbpy_apply_val_pretty_printer): Renamed from
10943 apply_val_pretty_printer. New arg extlang.
10944 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10945
10946 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10947 extension language API.
10948 * cli/cli-script.c (execute_control_command): Update to call
10949 eval_ext_lang_from_control_command.
10950
10951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10952 enum ext_lang_bt_status values. Update call to
10953 apply_ext_lang_frame_filter.
10954 (mi_cmd_stack_list_locals): Ditto.
10955 (mi_cmd_stack_list_args): Ditto.
10956 (mi_cmd_stack_list_variables): Ditto.
10957 * mi/mi-main.c: Delete #include "python/python-internal.h".
10958 Add #include "extension.h".
10959 (mi_cmd_list_features): Replace reference to python internal variable
10960 gdb_python_initialized with call to ext_lang_initialized_p.
10961
10962 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10963 Update to use enum ext_lang_frame_args. Update to call
10964 apply_ext_lang_frame_filter.
10965 * python/py-framefilter.c (extract_sym): Update to use enum
10966 ext_lang_bt_status.
10967 (extract_value, py_print_type, py_print_value): Ditto.
10968 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10969 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10970 (py_print_frame): Ditto.
10971 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10972 New arg extlang. Update to use enum ext_lang_bt_status.
10973
10974 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10975 finish_python_initialization. Replace with call to
10976 finish_ext_lang_initialization.
10977
10978 * typeprint.c (do_free_global_table): Update to call
10979 free_ext_lang_type_printers.
10980 (create_global_typedef_table): Update to call
10981 start_ext_lang_type_printers.
10982 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10983 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10984 (type_print_options): Change type of global_printers from "void *"
10985 to "struct ext_lang_type_printers *".
10986
10987 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10988 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10989 (gdbpy_preserve_values): Renamed from preserve_python_values.
10990 New arg extlang.
10991 (!HAVE_PYTHON, preserve_python_values): Delete.
10992
10993 * utils.c (quit_flag): Delete, moved to extension.c.
10994 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10995 extension.c.
10996
10997 * eval.c: Delete #include "python/python.h".
10998 * main.c: Delete #include "python/python.h".
10999
11000 * defs.h: Update comment.
11001
6af79985
JB
110022014-02-06 Joel Brobecker <brobecker@adacore.com>
11003
11004 GDB 7.7 released.
11005
12c5175d
MK
110062014-02-05 Mark Kettenis <kettenis@gnu.org>
11007
11008 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11009 defined.
11010
8dc5b319
YQ
110112014-02-05 Yao Qi <yao@codesourcery.com>
11012
11013 * remote.c (remote_pass_signals): Remove local 'buf' and use
11014 rs->buf.
11015 (remote_program_signals): Likewise.
11016
de7b2893
YQ
110172014-02-05 Yao Qi <yao@codesourcery.com>
11018
11019 * ctf.c: Include "inferior.h" and "gdbthread.h".
11020 (CTF_PID): A new macro.
11021 (ctf_open): Call inferior_appeared and add_thread_silent.
11022 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11023 (ctf_thread_alive): New function.
11024 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11025
66d032ac
YQ
110262014-02-05 Yao Qi <yao@codesourcery.com>
11027
11028 Revert this patch:
11029
11030 2013-05-24 Yao Qi <yao@codesourcery.com>
11031
11032 * tracepoint.c (TFILE_PID): Remove.
11033 (tfile_open): Don't add thread and inferior.
11034 (tfile_close): Don't set 'inferior_ptid'. Don't call
11035 exit_inferior_silent.
11036 (tfile_thread_alive): Remove.
11037 (init_tfile_ops): Don't set field 'to_thread_alive' of
11038 tfile_ops.
11039
f4ccffad
CE
110402014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11041
11042 * remote.c (remote_start_remote): Call remote_check_symbols even
11043 if only symbol-file (not file) has been given.
11044
591a12a1
UW
110452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11046
11047 * gdbarch.sh (skip_entrypoint): New callback.
11048 * gdbarch.c, gdbarch.h: Regenerate.
11049 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11050 * infrun.c (fill_in_stop_func): Likewise.
11051 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11052 (ppc_elfv2_elf_make_msymbol_special): New function.
11053 (ppc_elfv2_skip_entrypoint): Likewise.
11054 (ppc_linux_init_abi): Install them for ELFv2.
11055
cc0e89c5
UW
110562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11057
11058 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11059 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11060 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11061 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11062 structures returned in GPRs.
11063
52f548e4
UW
110642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11065
11066 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11067 offset to the stack parameter list for the ELFv2 ABI.
11068
d4094b6a
UW
110692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11070
11071 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11072 set_gdbarch_convert_from_func_ptr_addr and
11073 set_gdbarch_elf_make_msymbol_special for ELFv1.
11074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11075 function descriptors on ELFv1.
11076 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11077 set up r12 at function entry.
11078
cd453cd0
UW
110792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11080
11081 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11082 (struct gdbarch_tdep): New member elf_abi.
11083
11084 * rs6000-tdep.c: Include "elf/ppc64.h".
11085 (rs6000_gdbarch_init): Detect ELF ABI version.
11086
0ff3e01f
UW
110872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11088
11089 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11090 within a register pair holding a DFP 128-bit value on little-endian.
11091 (ppc64_sysv_abi_return_value_base): Likewise.
11092 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11093 (dfp_pseudo_register_write): Likewise.
11094
5b757e5d
UW
110952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11096
11097 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11098 offset on little-endian when passing _Decimal32.
11099 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11100
084ee545
UW
111012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11102
11103 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11104 of the overlapped FP register within the VSX register on little-
11105 endian platforms.
11106 (efpr_pseudo_register_write): Likewise.
11107
d63167af
UW
111082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11109
11110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11111 offset on little-endian when passing small structures.
11112
e765b44c
UW
111132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11114
11115 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11116 (struct ppc64_sysv_argpos): New data structure.
11117 (ppc64_sysv_abi_push_float): Remove.
11118 (ppc64_sysv_abi_push_val): New function.
11119 (ppc64_sysv_abi_push_integer): Likewise.
11120 (ppc64_sysv_abi_push_freg): Likewise.
11121 (ppc64_sysv_abi_push_vreg): Likewise.
11122 (ppc64_sysv_abi_push_param): Likewise.
11123 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11124 (ppc64_sysv_abi_return_value_base): New function.
11125 (ppc64_sysv_abi_return_value): Refactor to use it.
11126
36c24d95
UW
111272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11128
11129 * NEWS: Document new target powerpc64le-*-linux*.
11130
26fd9228
MK
111312014-02-04 Mark Kettenis <kettenis@gnu.org>
11132
11133 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11134 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11135 core dumps.
11136 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11137 register set used in ELF core dumps. Add floating-point register set.
11138
c5bb7362
KB
111392014-02-03 Kevin Buettner <kevinb@redhat.com>
11140
74228e77 11141 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11142 dwarf2_to_gdb[] table using symbolic constants. Adjust
11143 penultimate entry from number representing the PC register
11144 to symbolic constant representing the MDR register. Add
11145 constant for the PC register to the end of the table.
11146
af09351e
MK
111472014-02-03 Mark Kettenis <kettenis@gnu.org>
11148
11149 * bsd-kvm.c: Include <sys/param.h>
11150
8507e05d
MK
111512014-02-03 Mark Kettenis <kettenis@gnu.org>
11152
11153 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11154
ae56bfb8
JB
111552014-01-31 Joel Brobecker <brobecker@adacore.com>
11156
11157 * ada-lang.h (clear_ada_sym_cache): Delete.
11158
718ee4dc
UW
111592014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11160
11161 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11162
401e27fd
JM
111632014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11164
11165 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11166 the sigreturn register save area only if the syscall is
11167 sigreturn.
11168
a7c88acd
JB
111692014-01-29 Joel Brobecker <brobecker@adacore.com>
11170
11171 * valops.c (value_slice): Minor reformatting.
11172
fa0079ea
UW
111732014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11174
11175 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11176
c6044dd1
JB
111772014-01-28 Joel Brobecker <brobecker@adacore.com>
11178
11179 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11180 New static globals.
11181 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11182 (ada_ignore_descriptive_types_p): New static global.
11183 (find_parallel_type_by_descriptive_type): Return immediately
11184 if ada_ignore_descriptive_types_p is set.
11185 (_initialize_ada_language): Register new commands "maintenance
11186 set ada", "maintenance show ada", "maintenance set ada
11187 ignore-descriptive-types" and "maintenance show ada
11188 ignore-descriptive-types".
11189 * NEWS: Add entry for new "maint ada set/show
11190 ignore-descriptive-types" commands.
11191
568e808b
MM
111922014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11193
11194 * record-btrace.c (record_btrace_close): Call btrace_teardown
11195 for all threads.
11196
467d141b
JB
111972014-01-27 Joel Brobecker <brobecker@adacore.com>
11198
11199 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11200 "ui-out.h".
11201
fb151210
JB
112022014-01-27 Joel Brobecker <brobecker@adacore.com>
11203
11204 * ada-typeprint (type_is_full_subrange_of_target_type):
11205 New function.
11206 (print_range): Add parameter bounds_prefered_p. If not set,
11207 try printing range types using the name of their base type.
11208 (print_range_type): Add parameter bounds_prefered_p.
11209 Use it in call to print_range.
11210 (print_array_type, ada_print_type): Update calls to print_range
11211 and print_range_type.
11212
aba02109
JB
112132014-01-27 Joel Brobecker <brobecker@adacore.com>
11214
11215 * ada-typeprint.c (print_array_type, print_choices, print_range)
11216 (print_range_bound, print_dynamic_range_bound, print_range_type):
11217 Remove declaration.
11218
e62e21fd
JB
112192014-01-27 Joel Brobecker <brobecker@adacore.com>
11220
11221 * ada-typeprint.c (print_range): Add missing empty line
11222 after local declaration.
11223
859cf5d1
JB
112242014-01-27 Joel Brobecker <brobecker@adacore.com>
11225
11226 * ada-valprint.c (print_optional_low_bound): Get index_type's
11227 target type for as long as it is a TYPE_CODE_RANGE.
11228
25790f6f
JB
112292014-01-27 Joel Brobecker <brobecker@adacore.com>
11230
11231 * procfs.c (procfs_make_note_section): Remove assertion and
11232 associated comment.
11233
6b6aa828
YQ
112342014-01-24 Yao Qi <yao@codesourcery.com>
11235
11236 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11237 * corelow.c (get_core_siginfo): Likewise.
11238
5d6df423
YQ
112392014-01-24 Yao Qi <yao@codesourcery.com>
11240
11241 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11242 ULONGEST. Don't check 'len' is negative.
11243 (remote_write_bytes): Change type of 'len' to ULONGEST.
11244
83b645b8
TT
112452014-01-23 Tom Tromey <tromey@redhat.com>
11246
11247 PR python/16485:
11248 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11249 Handle exception from frame.block.
11250 (FrameVars.fetch_frame_locals): Likewise.
11251
0740f8d8
TT
112522014-01-23 Tom Tromey <tromey@redhat.com>
11253
11254 PR python/16487:
11255 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11256 on a NULL pointer. Move "goto error" to correct place.
11257
21909fa1
TT
112582014-01-23 Tom Tromey <tromey@redhat.com>
11259
11260 PR python/16491:
11261 * python/py-framefilter.c (apply_frame_filter): Call
11262 ensure_python_env after computing gdbarch.
11263
17fde6d0
YQ
112642014-01-23 Yao Qi <yao@codesourcery.com>
11265
11266 * target.c (raw_memory_xfer_partial): Change argument type
11267 from void * to gdb_byte *.
11268 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11269
87ce2a04
DE
112702014-01-22 Doug Evans <dje@google.com>
11271
11272 New gdbserver option --debug-format=timestamp.
11273 * NEWS: Mention it.
11274
237b092b
AA
112752014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11276
11277 * syscalls/s390x-linux.xml: New file.
11278 * syscalls/s390-linux.xml: New file.
11279 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11280 (XML_SYSCALL_FILENAME_S390X): Likewise.
11281 (op_svc): New enum value for SVC opcode.
11282 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11283 (s390_linux_get_syscall_number): New function.
11284 (s390_gdbarch_init): Register '*get_syscall_number' and the
11285 syscall xml file name.
11286 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11287 "s390-linux.xml" and "s390x-linux.xml".
11288 * NEWS: Announce new feature.
11289
54bff650
BS
112902014-01-22 Baruch Siach <baruch@tkos.co.il>
11291
11292 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11293
14e361d7
PA
112942014-01-22 Pedro Alves <palves@redhat.com>
11295
11296 * xtensa-config.c: Include defs.h.
11297
46bbb3ed
JB
112982014-01-22 Joel Brobecker <brobecker@adacore.com>
11299
11300 * common/common-utils.h: Add "ARI:" comment beside __func__
11301 reference.
11302
3a80edfc
JB
113032014-01-22 Joel Brobecker <brobecker@adacore.com>
11304
11305 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11306 documentation a bit.
11307
4869db5e
RM
113082014-01-21 Roland McGrath <mcgrathr@google.com>
11309
11310 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11311 * configure: Regenerate.
11312 * aclocal.m4: Regenerate.
11313 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11314 New substituted variables.
11315 (install-strip): New target.
11316 (INSTALL_SCRIPT): New substituted variable.
11317 (FLAGS_TO_PASS): Add it.
11318 (install-only): Use $(INSTALL_SCRIPT) rather than
11319 $(INSTALL_PROGRAM) for gcore.
11320
9ea4267d
TT
113212014-01-20 Tom Tromey <tromey@redhat.com>
11322
11323 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11324 together.
11325
1f2bdf09
TT
113262014-01-20 Tom Tromey <tromey@redhat.com>
11327
11328 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11329 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11330 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11331 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11332 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11333 (struct cmd_list_element) <flags>: Remove.
11334 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11335 doc_allocated>: New fields.
11336 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11337 bitfields.
11338 * maint.c (maintenance_do_deprecate): Update.
11339 * top.c (execute_command): Update.
11340
e671835b
BS
113412014-01-20 Baruch Siach <baruch@tkos.co.il>
11342
11343 * xtensa-linux-nat.c: Include asm/ptrace.h.
11344
50367cd2
IB
113452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11346
11347 * Makefile.in (SFILES): Add d-support.c.
11348 (COMMON_OBS): Add d-support.o.
11349 * d-lang.h (d_parse_symbol): Add comment, now defined in
11350 d-support.c.
11351 * d-lang.c (parse_call_convention)
11352 (parse_attributes, parse_function_types)
11353 (parse_function_args, parse_type, parse_identifier)
11354 (call_convention_p, d_parse_symbol): Move functions to ...
11355 * d-support.c: ... New file.
11356
ec9f644a
IB
113572014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11358
11359 * d-lang.h (d_parse_symbol): Add declaration.
11360 * d-lang.c (extract_identifiers)
11361 (extract_type_info): Remove functions.
11362 (parse_call_convention, parse_attributes)
11363 (parse_function_types, parse_function_args)
11364 (parse_type, parse_identifier, call_convention_p)
11365 (d_parse_symbol): New functions.
11366 (d_demangle): Use d_parse_symbol to demangle D symbols.
11367
94b1b47e
IB
113682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11369
11370 * d-lang.h (struct builtin_d_type): New data type.
11371 (builtin_d_type): Add declaration.
11372 * d-lang.c (d_language_arch_info, build_d_types)
11373 (builtin_d_type): New functions.
11374 (enum d_primitive_types): New data type.
11375 (d_language_defn): Change c_language_arch_info to
11376 d_language_arch_info.
11377 (d_type_data): New static variable.
11378 (_initialize_d_language): Initialize d_type_data.
11379
63778547
IB
113802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11381
11382 * d-lang.h (d_main_name): Add declaration.
11383 * d-lang.c (d_main_name): New function.
11384 * symtab.c (find_main_name): Add call to d_main_name.
11385
3271ba66
IB
113862014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11387
11388 * d-lang.c (d_language_defn): Change macro_expansion_c to
11389 macro_expansion_no.
11390
d36b3012
IB
113912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11392
11393 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11394
c90a6fb7
SDJ
113952014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11396
11397 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11398 gdb_exception" declaration.
11399 * remote.c (getpkt_or_notif_sane): Likewise.
11400
749234e5
DE
114012014-01-17 Doug Evans <dje@google.com>
11402
11403 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11404 function, contents of dirnames_to_char_ptr_vec_append moved here.
11405 (delim_string_to_char_ptr_vec): New function.
11406 (dirnames_to_char_ptr_vec_append): Rewrite.
11407 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11408
df049a58
DE
114092014-01-17 Doug Evans <dje@google.com>
11410
11411 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11412 and moved here ...
11413 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11414 #include "common-utils.h".
11415 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11416 * common/vec.h (VEC_ASSERT_PASS): Update.
11417 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11418 (MACH_CHECK_ERROR): Update.
11419
69f97648
SM
114202014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11421
11422 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11423 comments.
11424 * gdbarch.h: Regenerate.
11425
98b1cfdc
TT
114262014-01-16 Tom Tromey <tromey@redhat.com>
11427
11428 * value.c (struct value) <regnum>: Move earlier.
11429
77a19445
TT
114302014-01-16 Tom Tromey <tromey@redhat.com>
11431
11432 * remote.c (extended_remote_create_inferior): Rename from
11433 extended_remote_create_inferior_1. Add "ops" argument. Remove
11434 old implementation.
11435
62261490
PA
114362014-01-16 Pedro Alves <palves@redhat.com>
11437
11438 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11439 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11440 the backchain.
11441
4d65956b
DE
114422014-01-16 Doug Evans <dje@google.com>
11443
11444 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11445
52834460
MM
114462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11447
11448 * btrace.h (btrace_thread_flag): New.
11449 (struct btrace_thread_info) <flags>: New.
11450 * record-btrace.c (record_btrace_resume_thread)
11451 (record_btrace_find_thread_to_move, btrace_step_no_history)
11452 (btrace_step_stopped, record_btrace_start_replaying)
11453 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11454 (record_btrace_find_resume_thread): New.
11455 (record_btrace_resume, record_btrace_wait): Extend.
11456 (record_btrace_can_execute_reverse): New.
11457 (record_btrace_open): Fail in non-stop mode.
11458 (record_btrace_set_replay): Split into this, ...
11459 (record_btrace_stop_replaying): ... this, ...
11460 (record_btrace_clear_histories): ... and this.
11461 (init_record_btrace_ops): Init to_can_execute_reverse.
11462 * NEWS: Announce it.
11463
118e6252
MM
114642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11465
11466 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11467 (forward_target_decr_pc_after_break)
11468 (target_decr_pc_after_break): New.
11469 * target.c (forward_target_decr_pc_after_break)
11470 (target_decr_pc_after_break): New.
11471 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11472 instead of gdbarch_decr_pc_after_break.
11473 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11474 instead of gdbarch_decr_pc_after_break.
11475 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11476 instead of gdbarch_decr_pc_after_break.
11477 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11478 instead of gdbarch_decr_pc_after_break.
11479 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11480 instead of gdbarch_decr_pc_after_break.
11481 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11482 instead of gdbarch_decr_pc_after_break.
11483
6e07b1d2
MM
114842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11485
11486 * btrace.c: Include regcache.h.
11487 (btrace_add_pc): New.
11488 (btrace_enable): Call btrace_add_pc.
11489 (btrace_is_empty): New.
11490 * btrace.h (btrace_is_empty): New.
11491 * record-btrace.c (require_btrace, record_btrace_info): Call
11492 btrace_is_empty.
11493
969c39fb
MM
114942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11495
11496 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11497 Support delta reads.
11498 (linux_disable_btrace): Change return type.
11499 * common/linux-btrace.h (linux_read_btrace): Change parameters
11500 and return type to allow error reporting. Update users.
11501 (linux_disable_btrace): Change return type. Update users.
11502 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11503 New.
11504 (btrace_error): New.
11505 (btrace_block) <begin>: Comment on BEGIN == 0.
11506 * btrace.c (btrace_compute_ftrace): Start from the end of
11507 the current trace.
11508 (btrace_stitch_trace, btrace_clear_history): New.
11509 (btrace_fetch): Read delta trace, return if replaying.
11510 (btrace_clear): Move clear history code to btrace_clear_history.
11511 (parse_xml_btrace): Throw an error if parsing failed.
11512 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11513 and return type to allow error reporting.
11514 (target_read_btrace): Change parameters and return type to allow
11515 error reporting.
11516 * target.c (target_read_btrace): Update.
11517 * remote.c (remote_read_btrace): Support delta reads. Pass
11518 errors on.
11519 * NEWS: Announce it.
11520
0b722aec
MM
115212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11522
11523 * record.h (record_btrace_frame_unwind)
11524 (record_btrace_tailcall_frame_unwind): New declarations.
11525 * dwarf2-frame: Include record.h
11526 (dwarf2_frame_cfa): Throw an error for btrace frames.
11527 * record-btrace.c: Include hashtab.h.
11528 (btrace_get_bfun_name): New.
11529 (btrace_call_history): Call btrace_get_bfun_name.
11530 (struct btrace_frame_cache): New.
11531 (bfcache): New.
11532 (bfcache_hash, bfcache_eq, bfcache_new): New.
11533 (btrace_get_frame_function): New.
11534 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11535 (record_btrace_frame_this_id): Compute own id.
11536 (record_btrace_frame_prev_register): Provide PC, throw_error
11537 for all other registers.
11538 (record_btrace_frame_sniffer): Detect btrace frames.
11539 (record_btrace_tailcall_frame_sniffer): New.
11540 (record_btrace_frame_dealloc_cache): New.
11541 (record_btrace_frame_unwind): Add new functions.
11542 (record_btrace_tailcall_frame_unwind): New.
11543 (_initialize_record_btrace): Allocate cache.
11544 * btrace.c (btrace_clear): Call reinit_frame_cache.
11545 * NEWS: Announce it.
11546
066ce621
MM
115472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11548
11549 * record-btrace.c (record_btrace_set_replay)
11550 (record_btrace_goto_begin, record_btrace_goto_end)
11551 (record_btrace_goto): New.
11552 (init_record_btrace_ops): Initialize them.
11553 * NEWS: Announce it.
11554
e2887aa3
MM
115552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11556
11557 * record-btrace.c (record_btrace_find_new_threads)
11558 (record_btrace_thread_alive): New.
11559 (init_record_btrace_ops): Initialize to_find_new_threads and
11560 to_thread_alive.
11561
b2f4cfde
MM
115622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11563
11564 * record-btrace.c (record_btrace_resume): New.
11565 (record_btrace_wait): New.
11566 (init_record_btrace_ops): Initialize to_wait and to_resume.
11567
633785ff
MM
115682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11569
11570 * record-btrace.c (record_btrace_xfer_partial)
11571 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11572 (record_btrace_allow_memory_access): New.
11573 (init_record_btrace_ops): Initialize new methods.
11574 * target.c (raw_memory_xfer_partial): Bail out if target reports
11575 that this memory is not available.
11576
3db08215
MM
115772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11578
11579 * target.h (target_ops) <to_insert_breakpoint>
11580 <to_remove_breakpoint>: Add target_ops parameter.
11581 (forward_target_insert_breakpoint): New.
11582 (forward_target_remove_breakpoint): New.
11583 (memory_remove_breakpoint, memory_insert_breakpoint):
11584 Add target_ops parameter.
11585 * target.c (target_insert_breakpoint): Split into this and ...
11586 (forward_target_insert_breakpoint): ... this.
11587 (target_remove_breakpoint): Split into this and ...
11588 (forward_target_remove_breakpoint): ... this.
11589 (debug_to_insert_breakpoint): Add target_ops parameter.
11590 Call forward_target_insert_breakpoint.
11591 (debug_to_remove_breakpoint): Add target_ops parameter.
11592 Call forward_target_remove_breakpoint.
11593 (update_current_target): Do not inherit or default to_insert_breakpoint
11594 and to_remove_breakpoint.
11595 * corelow.c (ignore): Add target_ops parameter.
11596 * exec.c (ignore): Add target_ops parameter.
11597 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11598 Add target_ops parameter.
11599 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11600 Add target_ops parameter.
11601 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11602 Add target_ops parameter.
11603 * record-full.c (record_full_beneath_to_insert_breakpoint)
11604 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11605 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11606 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11607 (record_full_core_remove_breakpoint): Add target_ops parameter.
11608 Update users.
11609 (record_full_beneath_to_insert_breakpoint_ops)
11610 (record_full_beneath_to_remove_breakpoint_ops)
11611 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11612 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11613 tmp_to_remove_breakpoint_ops,
11614 record_full_beneath_to_insert_breakpoint_ops, and
11615 record_full_beneath_to_remove_breakpoint_ops.
11616 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11617 (m32r_remove_breakpoint): Add target_ops parameter.
11618 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11619 Add target_ops parameter.
11620 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11621 Add target_ops parameter.
11622
cecac1ab
MM
116232014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11624 Markus Metzger <markus.t.metzger@intel.com>
11625
11626 * record-btrace.c: Include frame-unwind.h.
11627 (record_btrace_frame_unwind_stop_reason)
11628 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11629 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11630 New.
11631 (init_record_btrace_ops): Install it.
11632
824344ca
MM
116332014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11636 get_prev_frame_1.
11637
32261e52
MM
116382014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11641 earlier.
11642
ea001bdc
MM
116432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11644
11645 * frame-unwind.c: Include target.h.
11646 (frame_unwind_try_unwinder): New function with code from ...
11647 (frame_unwind_find_by_frame): ... here. New variable
11648 unwinder_from_target, call also target_get_unwinder)
11649 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11650 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11651 * target.h (struct target_ops): New fields to_get_unwinder and
11652 to_get_tailcall_unwinder.
11653 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11654
1f3ef581
MM
116552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11656
11657 * record-btrace.c (record_btrace_fetch_registers)
11658 (record_btrace_store_registers)
11659 (record_btrace_to_prepare_to_store): New.
11660 (init_record_btrace_ops): Add the above.
11661
f32dbf8c
MM
116622014-01-16 Tom Tromey <tromey@redhat.com>
11663
11664 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11665 * target.h (struct target_ops) <to_prepare_to_store>: Add
11666 argument.
11667 (target_prepare_to_store): Add argument.
11668 * target.c (debug_to_prepare_to_store): Add argument.
11669 (update_current_target): Update.
11670 * remote.c (remote_prepare_to_store): Add 'self' argument.
11671 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11672 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11673 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11674 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11675 argument.
11676 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11677 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11678 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11679 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11680 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11681
07bbe694
MM
116822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11683
11684 * btrace.h (replay) <replay>: New.
11685 (btrace_is_replaying): New.
11686 * btrace.c (btrace_clear): Free replay iterator.
11687 (btrace_is_replaying): New.
11688 * record-btrace.c (record_btrace_is_replaying): New.
11689 (record_btrace_info): Print insn number if replaying.
11690 (record_btrace_insn_history): Start at replay position.
11691 (record_btrace_call_history): Start at replay position.
11692 (init_record_btrace_ops): Init to_record_is_replaying.
11693
0688d04e
MM
116942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11695
11696 * record-btrace.c (record_btrace_insn_history_range): Include
11697 end.
11698 (record_btrace_insn_history_from): Adjust range.
11699 (record_btrace_call_history_range): Include
11700 end.
11701 (record_btrace_call_history_from): Adjust range.
11702 * NEWS: Announce changes.
11703
8710b709
MM
117042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11705
11706 * record.h (enum record_print_flag)
11707 <record_print_indent_calls>: New.
11708 * record.c (get_call_history_modifiers): Recognize /c modifier.
11709 (_initialize_record): Document /c modifier.
11710 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11711 Reorder fields. Optionally indent the function name. Update
11712 all users.
11713 * NEWS: Announce changes.
11714
d0fa7535
MM
117152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11716
11717 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11718
5de9129b
MM
117192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11720
11721 * btrace.c (ftrace_new_function): Start counting at one.
11722 * record-btrace.c (record_btrace_info): Adjust number of calls
11723 and insns.
11724 * NEWS: Announce it.
11725
7acbe133
MM
117262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11727
11728 * record-btrace.c (btrace_call_history_insn_range): Print
11729 insn range as [begin, end].
11730
23a7fe75
MM
117312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11732
11733 * btrace.h (struct btrace_func_link): New.
11734 (enum btrace_function_flag): New.
11735 (struct btrace_inst): Rename to ...
11736 (struct btrace_insn): ...this. Update all users.
11737 (struct btrace_func) <ibegin, iend>: Remove.
11738 (struct btrace_func_link): New.
11739 (struct btrace_func): Rename to ...
11740 (struct btrace_function): ...this. Update all users.
11741 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11742 (number, level, flags>: New.
11743 (struct btrace_insn_iterator): Rename to ...
11744 (struct btrace_insn_history): ...this.
11745 Update all users.
11746 (struct btrace_insn_iterator, btrace_call_iterator): New.
11747 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11748 (struct btrace_target_info) <begin, end, level>
11749 <insn_history, call_history>: New.
11750 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11751 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11752 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11753 (btrace_call_number, btrace_call_begin, btrace_call_end)
11754 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11755 (btrace_find_function_by_number, btrace_set_insn_history)
11756 (btrace_set_call_history): New.
11757 * btrace.c (btrace_init_insn_iterator)
11758 (btrace_init_func_iterator, compute_itrace): Remove.
11759 (ftrace_print_function_name, ftrace_print_filename)
11760 (ftrace_skip_file): Change
11761 parameter to const.
11762 (ftrace_init_func): Remove.
11763 (ftrace_debug): Use new btrace_function fields.
11764 (ftrace_function_switched): Also consider gaining and
11765 losing symbol information).
11766 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11767 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11768 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11769 New.
11770 (ftrace_new_function): Move. Remove debug print.
11771 (ftrace_update_lines, ftrace_update_insns): New.
11772 (ftrace_update_function): Check for call, ret, and jump.
11773 (compute_ftrace): Renamed to ...
11774 (btrace_compute_ftrace): ...this. Rewritten to compute call
11775 stack.
11776 (btrace_fetch, btrace_clear): Updated.
11777 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11778 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11779 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11780 (btrace_call_number, btrace_call_begin, btrace_call_end)
11781 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11782 (btrace_find_function_by_number, btrace_set_insn_history)
11783 (btrace_set_call_history): New.
11784 * record-btrace.c (require_btrace): Use new btrace thread
11785 info fields.
11786 (record_btrace_info, btrace_insn_history)
11787 (record_btrace_insn_history, record_btrace_insn_history_range):
11788 Use new btrace thread info fields and new iterator.
11789 (btrace_func_history_src_line): Rename to ...
11790 (btrace_call_history_src_line): ...this. Use new btrace
11791 thread info fields.
11792 (btrace_func_history): Rename to ...
11793 (btrace_call_history): ...this. Use new btrace thread info
11794 fields and new iterator.
11795 (record_btrace_call_history, record_btrace_call_history_range):
11796 Use new btrace thread info fields and new iterator.
11797
8372a7cb
MM
117982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11799
11800 * frame.h (frame_id_build_unavailable_stack_special): New.
11801 * frame.c (frame_id_build_unavailable_stack_special): New.
11802
c2170eef
MM
118032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11804
11805 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11806 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11807 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11808 to gdbarch.
11809 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11810 (i386_insn_is_jump, i386_jmp_p): New.
11811 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11812 insn_is_jump to gdbarch.
11813 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11814 * gdbarch.h: Regenerated.
11815 * gdbarch.c: Regenerated.
11816 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11817 (default_insn_is_jump): New.
11818 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11819 (default_insn_is_jump): New.
11820
864089d2
MM
118212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11822
11823 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11824 Change to ...
11825 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11826 (btrace_read_type) <btrace_read_new>: Change to ...
11827 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11828
ed9edfb5
MM
118292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11830
11831 * common/linux-btrace.c (linux_read_btrace): Free trace from
11832 previous iteration.
11833
fbcbc3fd
DE
118342014-01-15 Doug Evans <dje@google.com>
11835
11836 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11837 uint32_t.
11838
3d548a53
TT
118392014-01-15 Tom Tromey <tromey@redhat.com>
11840
11841 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11842 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11843 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11844 (set_objfile_main_name): New function.
11845 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11846 language_of_main>: New fields.
11847 (set_objfile_main_name): Declare.
11848 * symtab.c (find_main_name): Loop over objfiles to find the main
11849 name and language.
11850 (set_main_name): Now static.
11851 (get_main_info): Add comment.
11852 * symtab.h (set_main_name): Don't declare.
11853
32ac0d11
TT
118542014-01-15 Tom Tromey <tromey@redhat.com>
11855
11856 * symtab.c (main_progspace_key): New global.
11857 (struct main_info): New.
11858 (name_of_main, language_of_main): Remove.
11859 (get_main_info, main_info_cleanup): New function.
11860 (set_main_name, main_name, main_language): Use get_main_info.
11861 (_initialize_symtab): Initialize main_progspace_key.
11862
9e6c82ad
TT
118632014-01-15 Tom Tromey <tromey@redhat.com>
11864
11865 * dbxread.c (process_one_symbol): Update.
11866 * dwarf2read.c (read_partial_die): Update.
11867 * symfile.c (set_initial_language): Call main_language.
11868 * symtab.c (language_of_main): Now static.
11869 (set_main_name): Add 'lang' parameter.
11870 (find_main_name): Update.
11871 (main_language): New function.
11872 (symtab_observer_executable_changed): Update.
11873 * symtab.h (set_main_name): Update.
11874 (language_of_main): Remove.
11875 (main_language): Declare.
11876
6ef55de7
TT
118772014-01-15 Tom Tromey <tromey@redhat.com>
11878
11879 * symfile.c (init_entry_point_info): Use new "initialized" field.
11880 Update.
11881 * objfiles.h (struct entry_point) <initialized>: New field.
11882 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11883 (struct objfile) <ei>: ...here. Remove.
11884 * objfiles.c (entry_point_address_query): Update.
11885
53eddfa6
TT
118862014-01-15 Tom Tromey <tromey@redhat.com>
11887
11888 * objfiles.c (entry_point_address_query): Relocate entry point
11889 address.
11890 (objfile_relocate1): Do not relocate entry point address.
11891 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11892 <the_bfd_section_index>: New field.
11893 * symfile.c (init_entry_point_info): Find the entry point's
11894 section.
11895
d56e56aa
TT
118962014-01-15 Tom Tromey <tromey@redhat.com>
11897
11898 * solib-frv.c (enable_break): Use entry_point_address_query.
11899
33a97bbe
OJ
119002014-01-15 Omair Javaid <omair.javaid@linaro.org>
11901
11902 * NEWS: Add note on improved process record-replay on
11903 arm*-linux* targets.
11904
c6ec2b30
OJ
119052014-01-15 Omair Javaid <omair.javaid@linaro.org>
11906
11907 * arm-tdep.c (enum arm_record_result): New enum.
11908 (arm_record_unsupported_insn): New function.
11909 (arm_record_coproc_data_proc): Removed.
11910 (thumb2_record_ld_st_multiple): New function.
11911 (thumb2_record_ld_st_dual_ex_tbb): New function.
11912 (thumb2_record_data_proc_sreg_mimm): New function.
11913 (thumb2_record_ps_dest_generic): New function.
11914 (thumb2_record_branch_misc_cntrl): New function.
11915 (thumb2_record_str_single_data): New function.
11916 (thumb2_record_ld_mem_hints): New function.
11917 (thumb2_record_ld_word): New function.
11918 (thumb2_record_lmul_lmla_div): New function.
11919 (thumb2_record_decode_insn_handler): New function.
11920 (decode_insn): Add thumb32 instruction handlers.
11921
97dfe206
OJ
119222014-01-15 Omair Javaid <omair.javaid@linaro.org>
11923
11924 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11925 (struct arm_linux_record_tdep): Declare.
11926 (arm_canonicalize_syscall): New function.
11927 (arm_all_but_pc_registers_record): New function.
11928 (arm_linux_syscall_record): New function.
11929 (arm_linux_init_abi): Add syscall recording constructs.
11930 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11931 decoding. (arm_record_coproc_data_proc): Update arm syscall
11932 decoding.
11933 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11934 <arm_syscall_record>: New field.
11935 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11936 gdb_target_obs.
11937
9904a494
OJ
119382014-01-15 Omair Javaid <omair.javaid@linaro.org>
11939
11940 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11941 register for push instruction recording.
11942
f969241e
OJ
119432014-01-15 Omair Javaid <omair.javaid@linaro.org>
11944
11945 * arm-tdep.c (thumb_record_misc): Update to correct logical
11946 error while recording ldm, ldmia and pop instructions.
11947
bfbbec00
OJ
119482014-01-15 Omair Javaid <omair.javaid@linaro.org>
11949
11950 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11951
e40adcc9
PA
119522014-01-15 Pedro Alves <palves@redhat.com>
11953
11954 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11955 (go32_resume, go32_fetch_registers, store_register)
11956 (go32_store_registers, go32_prepare_to_store)
11957 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11958 (go32_create_inferior, go32_can_run, go32_terminal_init)
11959 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11960 declarations.
11961
b0a16e66
TT
119622014-01-15 Tom Tromey <tromey@redhat.com>
11963
11964 * target.h (async_callback_ftype): New typedef.
11965 (struct target_ops) <to_async>: Use it.
11966
bf7105a4
JB
119672014-01-15 Joel Brobecker <brobecker@adacore.com>
11968
11969 * python/py-value.c (get_field_type): Remove unnecessary curly
11970 braces for single-statement if block.
11971
a8f35c2e
JB
119722014-01-15 Joel Brobecker <brobecker@adacore.com>
11973
11974 * python/py-type.c (convert_field): Add missing empty line
11975 after declarations.
11976
bb4142cf
DE
119772014-01-14 Doug Evans <dje@google.com>
11978
11979 * symfile.h (expand_symtabs_matching): Renamed from
11980 expand_partial_symbol_names. Update prototype.
11981 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11982 * symfile.c (expand_symtabs_matching): Renamed from
11983 expand_partial_symbol_names. New args file_matcher, kind.
11984 Rename arg fun to symbol_matcher.
11985 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11986 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11987 ada_expand_partial_symbol_name.
11988 (ada_make_symbol_completion_list): Update to call
11989 expand_symtabs_matching.
11990 (ada_add_global_exceptions): Call expand_symtabs_matching.
11991 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11992 call map_symbol_filenames.
11993 * symtab.c (sources_info): Update to call map_symbol_filenames.
11994 (search_symbols): Call expand_symtabs_matching.
11995 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11996 (default_make_symbol_completion_list_break_on): Update to call
11997 expand_symtabs_matching.
11998 (make_source_files_completion_list): Update to call
11999 map_symbol_filenames.
12000
206f2a57
DE
120012014-01-14 Doug Evans <dje@google.com>
12002
12003 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12004 (expand_symtabs_symbol_matcher_ftype): New typedef.
12005 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12006 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12007 * symfile.c (expand_partial_symbol_names): Update to use
12008 expand_symtabs_symbol_matcher_ftype.
12009 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12010 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12011 Arg name_matcher renamed to symbol_matcher.
12012 * psymtab.c (recursively_search_psymtabs): Update to use
12013 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12014 sym_matcher.
12015 (expand_symtabs_matching_via_partial): Update to use
12016 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12017 Arg name_matcher renamed to symbol_matcher.
12018
540c2971
DE
120192014-01-14 Doug Evans <dje@google.com>
12020
12021 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12022 (map_partial_symbol_filenames): Ditto.
12023 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12024 (map_partial_symbol_filenames): Ditto.
12025 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12026 (map_partial_symbol_filenames): Ditto.
12027 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12028 (map_partial_symbol_filenames): Ditto.
12029 * symtab.c: Delete #include "psymtab.h".
12030
8213266a
PA
120312014-01-14 Pedro Alves <palves@redhat.com>
12032 Tom Tromey <tromey@redhat.com>
12033
12034 * infrun.c (use_displaced_stepping): Use find_record_target
12035 instead of RECORD_IS_USED.
12036 (adjust_pc_after_break): Use record_full_is_used instead of
12037 RECORD_IS_USED.
12038 * record-btrace.c (record_btrace_open): Call record_preopen
12039 instead of checking RECORD_IS_USED.
12040 * record-full.c (record_full_shortname)
12041 (record_full_core_shortname): New globals.
12042 (record_full_is_used): New function.
12043 (find_full_open): Call record_preopen instead of checking
12044 RECORD_IS_USED.
12045 (init_record_full_ops): Set the target's shortname to
12046 record_full_shortname.
12047 (init_record_full_core_ops): Set the target's shortname to
12048 record_full_core_shortname.
12049 * record-full.h (record_full_is_used): Declare.
12050 * record.c (find_record_target): Make extern.
12051 (record_preopen): New function.
12052 * record.h (RECORD_IS_USED): Delete macro.
12053 (find_record_target, record_preopen): Declare functions.
12054
7ec1862d
YQ
120552014-01-14 Yao Qi <yao@codesourcery.com>
12056
12057 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12058 'len''s type to ULONGEST.
12059 (core_xfer_shared_libraries_aix): Likewise.
12060 * gdbarch.c, gdbarch.h: Regenerated.
12061 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12062 Change type of 'len' to ULONGEST.
12063 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12064 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12065
dea80a27
YQ
120662014-01-14 Yao Qi <yao@codesourcery.com>
12067
12068 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12069 type of 'len' to ULONGEST.
12070 (linux_xfer_osdata_processgroups): Likewise.
12071 (linux_xfer_osdata_threads): Likewise.
12072 (linux_xfer_osdata_fds): Likewise.
12073 (linux_xfer_osdata_isockets): Likewise.
12074 (linux_xfer_osdata_shm): Likewise.
12075 (linux_xfer_osdata_sem): Likewise.
12076 (linux_xfer_osdata_msg): Likewise.
12077 (linux_common_xfer_osdata): Likewise.
12078 (struct osdata_type) <getter>: Likewise.
12079 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12080 the declaration.
12081
b55e14c7
YQ
120822014-01-14 Yao Qi <yao@codesourcery.com>
12083
12084 * target.h (target_xfer_partial_ftype): Update.
12085 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12086 ULONGEST.
12087 * aix-thread.c (aix_thread_xfer_partial): Change type of
12088 argument 'len' to ULONGEST.
12089 * auxv.c (procfs_xfer_auxv): Likewise.
12090 (ld_so_xfer_auxv): Likewise.
12091 (memory_xfer_auxv): Likewise.
12092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12094 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12095 * corelow.c (core_xfer_partial): Likewise.
12096 * ctf.c (ctf_xfer_partial): Likewise.
12097 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12098 '%u'.
12099 (darwin_read_dyld_info): Likewise.
12100 (darwin_xfer_partial): Likewise.
12101 * exec.c (section_table_xfer_memory_partial): Likewise.
12102 (exec_xfer_partial): Likewise.
12103 * exec.h (section_table_xfer_memory_partial): Update
12104 declaration.
12105 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12106 instead of plongest.
12107 (gnu_xfer_partial): Likewise.
12108 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12109 (ia64_hpux_xfer_solib_got): Likewise.
12110 (ia64_hpux_xfer_partial): Likewise.
12111 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12112 * inf-ptrace.c (inf_ptrace_xfer_partial):
12113 * inf-ttrace.c (inf_ttrace_xfer_partial):
12114 * linux-nat.c (linux_xfer_siginfo): Likewise.
12115 (linux_nat_xfer_partial): Likewise.
12116 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12117 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12118 * monitor.c (monitor_xfer_memory): Likewise.
12119 (monitor_xfer_partial): Likewise.
12120 * procfs.c (procfs_xfer_partial): Likewise.
12121 * record-full.c (record_full_xfer_partial): Likewise.
12122 (record_full_core_xfer_partial): Likewise.
12123 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12124 instead of plongest.
12125 (gdbsim_xfer_partial): Likewise.
12126 * remote.c (remote_xfer_partial): Likewise.
12127 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12128 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12129 declaration.
12130 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12131 (rs6000_xfer_shared_libraries): Likewise.
12132 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12133 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12134 (sparc_xfer_partial): Likewise.
12135 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12136 (spu_xfer_partial): Likewise.
12137 * spu-multiarch.c (spu_xfer_partial): Likewise.
12138 * target.c (target_read_live_memory): Likewise.
12139 (memory_xfer_live_readonly_partial): Likewise.
12140 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12141 (target_xfer_partial, default_xfer_partial): Likewise.
12142 (current_xfer_partial): Likewise.
12143 * tracepoint.c (tfile_xfer_partial): Likewise.
12144 * windows-nat.c (windows_xfer_memory): Likewise. Call
12145 pulongest instead of plongest.
12146 (windows_xfer_partial): Likewise.
12147 (windows_xfer_shared_libraries): Likewise.
12148
05804640
YQ
121492014-01-14 Yao Qi <yao@codesourcery.com>
12150
12151 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12152 target_xfer_partial_ftype.
12153
b5b08fb4
SC
121542014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12155
12156 PR python/15464
12157 PR python/16113
12158 * valops.c (value_struct_elt_bitpos): New function
12159 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12160 object to 'None' if the field name is an empty string ("").
12161 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12162 attribute to look for a field when 'name' is 'None'.
12163 (get_field_type): New function
12164
13aaf454
DE
121652014-01-13 Doug Evans <dje@google.com>
12166
12167 PR symtab/16426
12168 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12169 (try_open_dwop_file): Ditto.
12170 * gdb_bfd.c: #include "vec.h".
12171 (bfdp): New typedef.
12172 (struct gdb_bfd_data): New member included_bfds.
12173 (gdb_bfd_unref): Unref all included bfds.
12174 (gdb_bfd_record_inclusion): New function.
12175 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12176
c2cec97c
TT
121772014-01-13 Tom Tromey <tromey@redhat.com>
12178
12179 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12180
78e5999d
TT
121812014-01-13 Tom Tromey <tromey@redhat.com>
12182
12183 * defs.h (use_windows): Remove.
12184 * gdb.c (main): Update.
12185 * main.c (captured_main, gdb_main): Update.
12186 * main.h (struct captured_main_args) <use_windows>: Remove.
12187 * top.c (use_windows): Remove.
12188
f2052bbe
TT
121892014-01-13 Tom Tromey <tromey@redhat.com>
12190
12191 * defs.h (deprecated_flush_hook): Remove.
12192
fde4f8ed
JK
121932014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 PR threads/16216
12196 * linux-thread-db.c (try_thread_db_load): Add parameter
12197 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12198 (try_thread_db_load_from_pdir_1): Move it there from here.
12199 (try_thread_db_load_from_sdir): Update caller.
12200 (try_thread_db_load_from_dir): Move it there from here.
12201
bdf61915
PP
122022014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12203
12204 * regformats/regdat.sh: Always rewrite the register file.
12205
f71e1a8d
PA
122062014-01-13 Pedro Alves <palves@redhat.com>
12207
12208 * Makefile.in (CHECK_HEADERS): New variable.
12209 (check-headers:): New rule.
12210
42c85435
TT
122112014-01-13 Tom Tromey <tromey@redhat.com>
12212
12213 * cli/cli-setshow.c (do_set_command): Update.
12214 * defs.h (deprecated_set_hook): Remove.
12215 * top.c (deprecated_set_hook): Remove.
12216
f8de5129
PA
122172014-01-13 Pedro Alves <palves@redhat.com>
12218
12219 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12220 the tracepoint if the PC is a pseudo-register.
12221
fc270c35
TT
122222014-01-13 Tom Tromey <tromey@redhat.com>
12223
12224 * defs.h (XCALLOC): Remove.
12225 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12226 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12227 * dwarf2loc.c (allocate_piece_closure): Likewise.
12228 * elfread.c (elf_symfile_segments): Likewise.
12229 (elf_symfile_segments): Likewise.
12230 * gdbtypes.c (copy_type_recursive): Likewise.
12231 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12232 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12233 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12234 XCALLOC.
12235 * mt-tdep.c (mt_gdbarch_init): Likewise.
12236 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12237 XCALLOC.
12238 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12239 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12240 * registry.c (registry_alloc_data): Likewise.
12241 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12242 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12243 * serial.c (serial_fdopen_ops): Likewise.
12244 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12245 XCALLOC.
12246 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12247 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12248 not XCALLOC.
12249
70ba0933
TT
122502014-01-13 Tom Tromey <tromey@redhat.com>
12251
12252 * defs.h (XMALLOC): Remove.
12253 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12254 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12255 * cli-out.c (struct ui_out *): Likewise.
12256 * cli/cli-dump.c (add_dump_command): Likewise.
12257 (add_dump_command): Likewise.
12258 * complaints.c (get_complaints): Likewise.
12259 (find_complaint): Likewise.
12260 * dwarf2-frame.c (execute_cfa_program): Likewise.
12261 * dwarf2read.c (abbrev_table_read_table): Likewise.
12262 * gdbarch.sh: Likewise.
12263 * gdbarch.c: Rebuild.
12264 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12265 * interps.c (interp_new): Likewise.
12266 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12267 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12268 * mi/mi-console.c (mi_console_file_new): Likewise.
12269 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12270 * mi/mi-out.c (mi_out_new): Likewise.
12271 * mi/mi-parse.c (mi_parse): Likewise.
12272 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12273 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12274 * observer.c (xalloc_observer_list_node): Likewise.
12275 * regcache.c (regcache_xmalloc_1): Likewise.
12276 * reggroups.c (reggroup_new): Likewise.
12277 (_initialize_reggroup): Likewise.
12278 * registry.c (register_data_with_cleanup): Likewise.
12279 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12280 * ser-base.c (serial_ttystate): Likewise.
12281 * ser-mingw.c (make_pipe_state): Likewise.
12282 * ser-pipe.c (pipe_open): Likewise.
12283 * serial.c (serial_open): Likewise.
12284 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12285 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12286 (tui_alloc_win_info): Likewise.
12287 (tui_add_content_elements): Likewise.
12288 * tui/tui-file.c (tui_file_new): Likewise.
12289 * tui/tui-out.c (tui_out_new): Likewise.
12290 * ui-file.c (mem_file_new): Likewise.
12291 * ui-out.c (push_level): Likewise.
12292 (make_cleanup_ui_out_end): Likewise.
12293 (append_header_to_list): Likewise.
12294 (ui_out_new): Likewise.
12295 * user-regs.c (user_reg_add_builtin): Likewise.
12296
41bf6aca
TT
122972014-01-13 Tom Tromey <tromey@redhat.com>
12298
12299 * defs.h (XZALLOC): Remove.
12300 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12301 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12302 (get_ada_tasks_inferior_data): Likewise.
12303 * auto-load.c (get_auto_load_pspace_data): Likewise.
12304 * auxv.c (get_auxv_inferior_data): Likewise.
12305 * bfd-target.c (target_bfd_reopen): Likewise.
12306 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12307 (deprecated_insert_raw_breakpoint): Likewise.
12308 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12309 * corelow.c (core_open): Likewise.
12310 * darwin-nat.c (darwin_check_new_threads): Likewise.
12311 (darwin_attach_pid): Likewise.
12312 * dummy-frame.c (dummy_frame_push): Likewise.
12313 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12314 * dwarf2loc.c (allocate_piece_closure): Likewise.
12315 * elfread.c (elf_symfile_segments): Likewise.
12316 * eval.c (ptrmath_type_p): Likewise.
12317 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12318 * gdbtypes.c (alloc_type_arch): Likewise.
12319 (alloc_type_instance): Likewise.
12320 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12321 * inf-child.c (inf_child_can_use_agent): Likewise.
12322 * inflow.c (get_inflow_inferior_data): Likewise.
12323 * infrun.c (save_infcall_suspend_state): Likewise.
12324 * jit.c (jit_reader_load): Likewise.
12325 (get_jit_objfile_data): Likewise.
12326 (get_jit_program_space_data): Likewise.
12327 (jit_object_open_impl): Likewise.
12328 (jit_symtab_open_impl): Likewise.
12329 (jit_block_open_impl): Likewise.
12330 (jit_frame_sniffer): Likewise.
12331 * linux-fork.c (add_fork): Likewise.
12332 * maint.c (make_command_stats_cleanup): Likewise.
12333 * objfiles.c (get_objfile_pspace_data): Likewise.
12334 * opencl-lang.c (struct lval_closure): Likewise.
12335 * osdata.c (osdata_start_osdata): Likewise.
12336 * progspace.c (new_address_space): Likewise.
12337 (add_program_space): Likewise.
12338 * remote-sim.c (get_sim_inferior_data): Likewise.
12339 * sh-tdep.c (sh_gdbarch_init): Likewise.
12340 * skip.c (Ignore): Likewise.
12341 (skip_delete_command): Likewise.
12342 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12343 (library_list_start_library): Likewise.
12344 (solib_aix_current_sos): Likewise.
12345 * solib-darwin.c (get_darwin_info): Likewise.
12346 (darwin_current_sos): Likewise.
12347 * solib-dsbt.c (get_dsbt_info): Likewise.
12348 * solib-ia64-hpux.c (new_so_list): Likewise.
12349 (ia64_hpux_get_solib_linkage_addr): Likewise.
12350 * solib-spu.c (append_ocl_sos): Likewise.
12351 (spu_current_sos): Likewise.
12352 * solib-svr4.c (get_svr4_info): Likewise.
12353 (svr4_keep_data_in_core): Likewise.
12354 (library_list_start_library): Likewise.
12355 (svr4_default_sos): Likewise.
12356 (svr4_read_so_list): Likewise.
12357 * solib-target.c (library_list_start_library): Likewise.
12358 (solib_target_current_sos): Likewise.
12359 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12360 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12361 * symfile.c (default_symfile_segments): Likewise.
12362 * target-descriptions.c (tdesc_data_init): Likewise.
12363 (tdesc_create_reg): Likewise.
12364 (struct tdesc_type *): Likewise.
12365 (tdesc_create_vector): Likewise.
12366 (tdesc_set_struct_size): Likewise.
12367 (struct tdesc_type *): Likewise.
12368 (tdesc_free_feature): Likewise.
12369 (tdesc_create_feature): Likewise.
12370 * windows-nat.c (windows_add_thread): Likewise.
12371 (windows_make_so): Likewise.
12372 * xml-support.c (gdb_xml_body_text): Likewise.
12373 (gdb_xml_create_parser_and_cleanup): Likewise.
12374 (xml_process_xincludes): Likewise.
12375 * xml-syscall.c (allocate_syscalls_info): Likewise.
12376 (syscall_create_syscall_desc): Likewise.
12377
5acfdbae
SDJ
123782014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12379
12380 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12381 function, with code from i386_stap_parse_special_token.
12382 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12383 (i386_stap_parse_special_token): Move code to the two functions
12384 above; simplify it.
12385
0000e5cc
PA
123862014-01-09 Pedro Alves <palves@redhat.com>
12387 Hui Zhu <hui@codesourcery.com>
12388
12389 PR gdb/16101
12390 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12391 bp_err_string. Don't mark the location shlib_disabled if the
12392 error thrown wasn't a generic or memory error. Catch errors
12393 thrown while inserting breakpoints in overlayed code. Output
12394 error message of software breakpoints.
12395 * remote.c (remote_insert_breakpoint): If this breakpoint has
12396 target-side commands but this stub doesn't support Z0 packets,
12397 throw NOT_SUPPORTED_ERROR error.
12398 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12399 * target.h (target_insert_breakpoint): Extend comment.
12400 (target_insert_hw_breakpoint): Add comment.
12401
b7ea362b
PA
124022014-01-08 Pedro Alves <palves@redhat.com>
12403
12404 * remote.c (remote_add_thread): Add threads silently if starting
12405 up.
12406 (remote_notice_new_inferior): If in all-stop, and starting up,
12407 don't call notice_new_inferior.
12408 (get_current_thread): New function, factored out from ...
12409 (add_current_inferior_and_thread): ... this. Adjust.
12410 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12411 found any thread, then select the remote's current thread as GDB's
12412 current thread too.
12413
b7bba001
JB
124142014-01-08 Joel Brobecker <brobecker@adacore.com>
12415
12416 * NEWS: Create a new section for the next release branch.
12417 Rename the section of the current branch, now that it has
12418 been cut.
12419
16dfbded
JB
124202014-01-08 Joel Brobecker <brobecker@adacore.com>
12421
12422 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12423 * version.in: Bump version to 7.7.50.DATE-cvs.
12424
22c90ac1
YQ
124252014-01-08 Yao Qi <yao@codesourcery.com>
12426
12427 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12428 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12429 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12430
d64ad97c
YQ
124312014-01-08 Yao Qi <yao@codesourcery.com>
12432
12433 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12434 return value of bfd_get_filename to symbol_file_add_from_bfd.
12435
f93ba80c
PM
124362014-01-08 Pierre Muller <muller@sourceware.org>
12437
12438 Fix PR16201.
12439 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12440 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12441 to prim_record_mininal_symbol_and_info.
12442 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12443 in call to prim_record_minimal_symbol_and_info.
12444 (read_pe_exported_syms): Set index field of section_data.
12445
a4d9ba85
AP
124462014-01-07 Andrew Pinski <apinski@cavium.com>
12447
12448 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12449 * features/aarch64.c: Regenerate.
12450
1b67eb02
AS
124512014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12452
12453 * target.c (return_null): Define.
12454 (update_current_target): Use it instead of return_zero for
12455 functions that return a pointer.
12456
5e3f4fab
EBM
124572014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12458
12459 * source.c (add_path): Fix check for duplicated paths in the previously
12460 included paths.
12461
e2616788
HK
124622014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12463
12464 * ada-lang.c: Remove duplicated include statements.
12465 * alphabsd-nat.c: Ditto.
12466 * amd64-darwin-tdep.c: Ditto.
12467 * amd64fbsd-nat.c: Ditto.
12468 * auto-load.c: Ditto.
12469 * ax-gdb.c: Ditto.
12470 * breakpoint.c: Ditto.
12471 * dbxread.c: Ditto.
12472 * fork-child.c: Ditto.
12473 * gdb_usleep.c: Ditto.
12474 * i386-darwin-tdep.c: Ditto.
12475 * i386fbsd-nat.c: Ditto.
12476 * infcmd.c: Ditto.
12477 * inferior.c: Ditto.
12478 * jv-lang.c: Ditto.
12479 * linux-nat.c: Ditto.
12480 * linux-tdep.c: Ditto.
12481 * m68kbsd-nat.c: Ditto.
12482 * m68klinux-nat.c: Ditto.
12483 * microblaze-tdep.c: Ditto.
12484 * mips-linux-tdep.c: Ditto.
12485 * mn10300-tdep.c: Ditto.
12486 * nto-tdep.c: Ditto.
12487 * opencl-lang.c: Ditto.
12488 * osdata.c: Ditto.
12489 * printcmd.c: Ditto.
12490 * regcache.c: Ditto.
12491 * remote-m32r-sdi.c: Ditto.
12492 * remote.c: Ditto.
12493 * symfile.c: Ditto.
12494 * symtab.c: Ditto.
12495 * tilegx-linux-nat.c: Ditto.
12496 * tilegx-tdep.c: Ditto.
12497 * tracepoint.c: Ditto.
12498 * valops.c: Ditto.
12499 * vaxbsd-nat.c: Ditto.
12500 * windows-nat.c: Ditto.
12501 * xtensa-tdep.c: Ditto.
12502
bd1f7788
YQ
125032014-01-07 Yao Qi <yao@codesourcery.com>
12504
12505 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12506
79301218
JB
125072014-01-07 Yao Qi <yao@codesourcery.com>
12508 Joel Brobecker <brobecker@adacore.com>
12509
12510 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12511 (pdc_write_regs): Likewise.
12512 (fetch_regs_kernel_thread): Likewise.
12513 (store_regs_kernel_thread): Likewise.
12514
125152014-01-07 Joel Brobecker <brobecker@adacore.com>
12516
12517 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12518 tagged type objects to their actual type.
12519
8e355c5d
JB
125202014-01-07 Joel Brobecker <brobecker@adacore.com>
12521
12522 * ada-valprint.c (print_field_values): Add "language" parameter.
12523 Update calls to print_field_values and print_variant_part.
12524 Pass new parameter "language" in call to val_print instead
12525 of "current_language". Replace call to ada_val_print by call
12526 to val_print.
12527 (print_variant_part): Add "language" parameter.
12528 (ada_val_print_struct_union): Update call to print_field_values.
12529
4fbf5aa5
JB
125302014-01-07 Joel Brobecker <brobecker@adacore.com>
12531
12532 * ada-valprint.c (ui_memcpy): Delete.
12533 (ada_print_floating): Update documentation. Add empty line
12534 between between function documentation and implementation.
12535 Delete variable "buffer". Use ui_file_xstrdup in place of
12536 ui_file_put. Minor adjustments following this change.
12537
71855601
JB
125382014-01-07 Joel Brobecker <brobecker@adacore.com>
12539
12540 * ada-valprint.c (ada_val_print_string): New function,
12541 extracted from ada_val_print_array.
12542 (ada_val_print_array): Replace extracted code by call
12543 to ada_val_print_string followed by a return. Move
12544 "else" branch to the function's top block.
12545
4eb27a30
JB
125462014-01-07 Joel Brobecker <brobecker@adacore.com>
12547
12548 * ada-valprint.c (ada_val_print_array): Move implementation
12549 down. Rename parameter "offset" and "val" into "offset_aligned"
12550 and "original_value" respectively. Add parameter "offset".
12551
34b27950
JB
125522014-01-07 Joel Brobecker <brobecker@adacore.com>
12553
12554 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12555 re-organizing the code. Change the "???" message printed
12556 when target type is a TYPE_CODE_UNDEF into
12557 "<ref to undefined type>".
12558
079e4591
JB
125592014-01-07 Joel Brobecker <brobecker@adacore.com>
12560
12561 * ada-valprint.c (print_record): Delete, implementation inlined...
12562 (ada_val_print_struct_union): ... here. Remove call to
12563 ada_check_typedef in inlined implementation.
12564
8004dfd1
JB
125652014-01-07 Joel Brobecker <brobecker@adacore.com>
12566
12567 * ada-valprint.c (ada_val_print_gnat_array): New function,
12568 extracted from ada_val_print_1;
12569 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12570 (ada_val_print_flt, ada_val_print_struct_union)
12571 (ada_val_print_ref): Likewise.
12572 (ada_val_print_1): Delete variables i and elttype.
12573 Replace extracted-out code by call to corresponding
12574 new functions.
12575
760a2db0
JB
125762014-01-07 Joel Brobecker <brobecker@adacore.com>
12577
12578 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12579
3a92c861
JB
125802014-01-07 Joel Brobecker <brobecker@adacore.com>
12581
12582 * ada-valprint.c (ada_val_print_1): Replace calls to
12583 ada_val_print_1 by calls to val_print.
12584
cd1630f9
JB
125852014-01-07 Joel Brobecker <brobecker@adacore.com>
12586
12587 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12588 Update calls to self accordingly. Replace calls to c_val_print
12589 by calls to val_print.
12590
bdf779a0
JB
125912014-01-07 Joel Brobecker <brobecker@adacore.com>
12592
12593 * ada-valprint.c (print_record): Delete declaration.
12594 (adjust_type_signedness, ada_val_print_1): Likewise.
12595 (ada_val_print): Move function implementation down.
12596 (print_variant_part, print_field_values, print_record):
12597 Move function implementation up.
12598
c0d48811
JB
125992014-01-07 Joel Brobecker <brobecker@adacore.com>
12600
12601 * python/py-type.c (typy_get_name): New function.
12602 (type_object_getset): Add entry for attribute "name".
12603 * NEWS: Add entry mentioning this new attribute.
12604
c26e9cbb
YQ
126052014-01-07 Yao Qi <yao@codesourcery.com>
12606
12607 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12608 statement.
12609
0cc6f43d
YQ
126102014-01-07 Yao Qi <yao@codesourcery.com>
12611
12612 * gnu-nat.c (info_port_rights): Add qualifier const to
12613 argument args.
12614
eec03155
YQ
126152014-01-07 Yao Qi <yao@codesourcery.com>
12616
12617 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12618
f04a82ef
YQ
126192014-01-07 Yao Qi <yao@codesourcery.com>
12620
12621 * gnu-nat.c (make_inf) Update declaration.
12622 (make_inf): Make it static.
12623 (inf_set_traced): Likewise.
12624 (inf_port_to_thread, inf_task_died_status): Likewise.
12625
d57dda0a
YQ
126262014-01-07 Yao Qi <yao@codesourcery.com>
12627
12628 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12629
3aa8c969
YQ
126302014-01-07 Yao Qi <yao@codesourcery.com>
12631
12632 * gnu-nat.c (_initialize_gnu_nat): Declare.
12633
94123b4f
YQ
126342014-01-07 Yao Qi <yao@codesourcery.com>
12635
12636 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12637 'enum bfd_endian'.
12638 (struct gdbarch_info) <byte_order>: Change type to
12639 'enum bfd_endian'.
12640 <byte_order_for_code>: Likewise.
12641 * gdbarch.c, gdbarch.h: Regenerated.
12642
dc81d70a
TT
126432014-01-06 Sasha Smundak <asmundak@google.com>
12644
12645 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12646
cc2f3c35
TT
126472014-01-06 Tom Tromey <tromey@redhat.com>
12648
12649 * doublest.c (convert_doublest_to_floatformat): Use const, not
12650 CONST.
12651 * somread.c (som_symtab_read): Likewise.
12652
adcf2eed
HZ
126532014-01-07 Hui Zhu <hui@codesourcery.com>
12654
12655 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12656 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12657 (gdb_bfd_fopen): Ditto.
12658 (gdb_bfd_openr): Ditto.
12659 (gdb_bfd_openw): Ditto.
12660 (gdb_bfd_openr_iovec): Ditto.
12661 (gdb_bfd_fdopenr): Ditto.
12662 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12663 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12664 with xstrdup.
12665 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12666 with xstrdup.
12667 * symfile-mem.c (symbol_file_add_from_memory): Removed
12668 gdb_bfd_stash_filename.
12669
50722198
DE
126702014-01-03 Doug Evans <dje@google.com>
12671
12672 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12673 output.
12674
2fa4b862
JB
126752014-01-01 Joel Brobecker <brobecker@adacore.com>
12676
12677 Update year range in copyright notice of all files.
12678
28498c42
JB
126792014-01-01 Joel Brobecker <brobecker@adacore.com>
12680
12681 * top.c (print_gdb_version): Set copyright year to 2014.
12682
7b6e1046
JB
126832014-01-01 Joel Brobecker <brobecker@adacore.com>
12684
12685 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12686
df96af55 12687For older changes see ChangeLog-2013.
c906108c
SS
12688\f
12689Local Variables:
12690mode: change-log
12691left-margin: 8
12692fill-column: 74
12693version-control: never
57da7796 12694coding: utf-8
c906108c 12695End:
This page took 2.225684 seconds and 4 git commands to generate.