print PTR.all where PTR is an Ada thin pointer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7828a5f5
JB
12014-09-10 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
4 instead of VAL's type.
5
35782f14
JB
62014-09-10 Joel Brobecker <brobecker@adacore.com>
7
8 * amd64-linux-nat.c: Add <sys/uio.h> #include.
9
d342a0da
DE
102014-09-09 Doug Evans <xdje42@gmail.com>
11
12 PR guile/17367
13 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
14 last parameter to pkg-config, not first.
15 * configure.ac: Pass --with-guile provided pkg-config path to
16 GDB_GUILE_PROGRAM_NAMES.
17 * configure: Regenerate.
18
b4a3d263
GKB
192014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
20
21 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
22 Bertazi".
23
6e466374
MR
242014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
25
26 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
27 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
28 the list of sections determining GDB_OSABI_IRIX.
29
a1ada89a
JH
302014-09-09 James Hogan <james.hogan@imgtec.com>
31
32 * MAINTAINERS (Write After Approval): Add "James Hogan".
33
86db008d
JH
342014-09-09 James Hogan <james.hogan@imgtec.com>
35
36 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
37
72fde3df
JB
382014-09-09 Joel Brobecker <brobecker@adacore.com>
39
40 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
41
92d8d229
DE
422014-09-08 Doug Evans <xdje42@gmail.com>
43
44 PR 17247
45 * guile.c: #include <signal.h>.
46 (_initialize_guile): Block SIGCHLD while initializing Guile.
47
48 Replaces the following, which is reverted.
49
50 2014-07-26 Doug Evans <xdje42@gmail.com>
51
52 PR 17185
53 * configure.ac: Add check for header gc/gc.h.
54 Add check for function setenv.
55 * configure: Regenerate.
56 * config.in: Regenerate.
57 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
58
d81412aa
DE
592014-09-08 Doug Evans <xdje42@gmail.com>
60
61 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
62 with named constant. Fix style of pointer comparison.
63 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
64
a9f116cb
GKB
652014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
66
67 PR gdb/17035
68 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
69 decide whether we display the command on "show user".
70 * cli/cli-script.c (show_user_1): Only verify cmdlines after
71 printing command name.
72 * cli/cli-decode.h (cli_user_command_p): Declare new function.
73 * cli/cli-decode.c (cli_user_command_p): Create helper function
74 to verify whether cmd_list_element is a user-defined command.
75
c75bd3a2
JK
762014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 PR python/17355
79 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
80 Fix goto out of TRY_CATCH.
81
faa42425 822014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 83 Tom Tromey <tromey@redhat.com>
faa42425
DE
84
85 PR 15276
86 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
87 $_any_caller_matches.
88 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
89 * python/lib/gdb/function/caller_is.py: New file.
90
0d41ba00
DE
912014-09-06 Doug Evans <xdje42@gmail.com>
92
93 * infcmd.c (program_info): Fix typo.
94
474ca4f6
SDJ
952014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
96
97 PR gdb/17235
98 * stap-probe.c (stap_parse_single_operand): Delete unused variable
99 'number'. New variable 'has_digit'. Rewrite code to deal with
100 subexpressions on SDT probes.
101
ebf13736
PA
1022014-09-04 Pedro Alves <palves@redhat.com>
103
104 * c-exp.y (parse_number): Skip handling base-switching prefixes if
105 the input is only one character long.
106
eb0b0463
SDJ
1072014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
108
109 PR fortran/17237
110 * f-valprint.c (f_val_print): Specify the correct print option to
111 use when printing integer values.
112
5ee44bfa
GB
1132014-09-04 Gary Benson <gbenson@redhat.com>
114
115 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
116 Remove code to cope with LWPs wrapped as PIDs.
117 Add assertions to ensure no wrapped LWPs are passed.
118
4875ffdb
PA
1192014-09-04 Pedro Alves <palves@redhat.com>
120
121 * value.c (value_ranges_copy_adjusted): New function, factored out
122 from ...
123 (value_contents_copy_raw): ... here.
124 (unpack_value_bits_as_long_1): Rename back to ...
125 (unpack_bits_as_long): ... this. Remove 'original_value' and
126 'result' parameters. Change return type to LONGEST.
127 (unpack_value_bits_as_long): Delete.
128 (unpack_value_field_as_long_1): Delete.
129 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
130 (unpack_value_bitfield): New function.
131 (value_field_bitfield): Reimplement using unpack_value_bitfield.
132 (value_fetch_lazy): Use unpack_value_bitfield.
133 * value.h (unpack_value_bits_as_long): Delete declaration.
134
5f3b99cf
SS
1352014-09-03 Sasha Smundak <asmundak@google.com>
136
137 * python/py-frame.c (frapy_read_register): New function.
138
ac740bc7
JH
1392014-09-03 James Hogan <james.hogan@imgtec.com>
140
141 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
142 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
143
7d793aa9
SDJ
1442014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
145
146 PR python/16699
147 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
148 function.
149 (add_cmd): Set "completer_handle_brkchars" to NULL.
150 * cli/cli-decode.h (struct cmd_list_element)
151 <completer_handle_brkchars>: New field.
152 * command.h (completer_ftype_void): New typedef.
153 (set_cmd_completer_handle_brkchars): New prototype.
154 * completer.c (set_gdb_completion_word_break_characters): New
155 function.
156 (complete_line_internal): Call "completer_handle_brkchars"
157 callback from command.
158 * completer.h: Include "command.h".
159 (set_gdb_completion_word_break_characters): New prototype.
160 * python/py-cmd.c (cmdpy_completer_helper): New function.
161 (cmdpy_completer_handle_brkchars): New function.
162 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
163 (cmdpy_init): Set completer_handle_brkchars to
164 cmdpy_completer_handle_brkchars.
165
97ea6506
GB
1662014-09-03 Gary Benson <gbenson@redhat.com>
167
168 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
169 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
170 Loop conditions changed to equivalent form.
171 (struct x86_debug_reg_state): Updated dr_ref_count comment.
172 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
173 ALL_DEBUG_ADDRESS_REGISTERS.
174
d1437815
JB
1752014-09-03 Joel Brobecker <brobecker@adacore.com>
176
177 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
178 description fix.
179
9b94fcf1
DE
1802014-09-02 Doug Evans <dje@google.com>
181
182 * typeprint.c (find_global_typedef): Fix comment.
183
df7e5265
GB
1842014-09-02 Gary Benson <gbenson@redhat.com>
185
186 * i386-nat.h: Renamed as...
187 * x86-nat.h: New file. All type, function and variable name
188 prefixes changed from "i386_" to "x86_". All references updated.
189 * i386-nat.c: Renamed as...
190 * x86-nat.c: New file. All type, function and variable name
191 prefixes changed from "i386_" to "x86_". All references updated.
192 * common/i386-xstate.h: Renamed as...
193 * common/x86-xstate.h: New file. All type, function and variable
194 name prefixes changed from "i386_" to "x86_". All references
195 updated.
196 * nat/i386-cpuid.h: Renamed as...
197 * nat/x86-cpuid.h: New file. All type, function and variable name
198 prefixes changed from "i386_" to "x86_". All references updated.
199 * nat/i386-gcc-cpuid.h: Renamed as...
200 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
201 name prefixes changed from "i386_" to "x86_". All references
202 updated.
203 * nat/i386-dregs.h: Renamed as...
204 * nat/x86-dregs.h: New file. All type, function and variable name
205 prefixes changed from "i386_" to "x86_". All references updated.
206 * nat/i386-dregs.c: Renamed as...
207 * nat/x86-dregs.c: New file. All type, function and variable name
208 prefixes changed from "i386_" to "x86_". All references updated.
209
1c3569d4
MR
2102014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
211
212 * varobj.c (_initialize_varobj): Move to the end of file.
213
ff55e1b5
GB
2142014-08-29 Gary Benson <gbenson@redhat.com>
215
216 * common/common-exceptions.h: New file.
217 * common/common-exceptions.c: Likewise.
218 * Makefile.in (SFILES): Add common/common-exceptions.c.
219 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
220 (COMMON_OBS): Add common-exceptions.o.
221 (common-exceptions.o): New rule.
222 * exceptions.h (common-exceptions.h): Include.
223 (gdb_setjmp.h): Do not include.
224 (return_reason): Moved to common-exceptions.h.
225 (enum return_reason): Likewise.
226 (RETURN_MASK): Likewise.
227 (typedef return_mask): Likewise.
228 (enum errors): Likewise.
229 (struct gdb_exception): Likewise.
230 (exceptions_state_mc_init): Likewise.
231 (exceptions_state_mc_action_iter): Likewise.
232 (exceptions_state_mc_action_iter_1): Likewise.
233 (TRY_CATCH): Likewise.
234 (throw_exception): Likewise.
235 (throw_verror): Likewise.
236 (throw_vquit): Likewise.
237 (throw_error): Likewise.
238 (throw_quit): Likewise.
239 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
240 (enum catcher_action): Likewise.
241 (struct catcher): Likewise.
242 (current_catcher): Likewise.
243 (catcher_list_size): Likewise.
244 (exceptions_state_mc_init): Likewise.
245 (catcher_pop): Likewise.
246 (exceptions_state_mc): Likewise.
247 (exceptions_state_mc_action_iter): Likewise.
248 (exceptions_state_mc_action_iter_1): Likewise.
249 (throw_exception): Likewise.
250 (exception_messages): Likewise.
251 (exception_messages_size): Likewise.
252 (throw_it): Likewise.
253 (throw_verror): Likewise.
254 (throw_vquit): Likewise.
255 (throw_error): Likewise.
256 (throw_quit): Likewise.
257 (prepare_to_throw_exception): New function.
258
e9bcb658
GB
2592014-08-29 Gary Benson <gbenson@redhat.com>
260
261 * common/gdb_setjmp.h: New file.
262 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
263 * configure.ac: Move sigsetjmp check...
264 * common/common.m4: ...here.
265 * configure: Regenerate.
266 * cp-support.c (SIGJMP_BUF): Delete.
267 (SIGSETJMP): Likewise.
268 (SIGLONGJMP): Likewise.
269 * exceptions.h (gdb_setjmp.h): Include.
270 (setjmp.h): Do not include.
271 (EXCEPTIONS_SIGJMP_BUF): Delete.
272 (EXCEPTIONS_SIGSETJMP): Likewise.
273 (EXCEPTIONS_SIGLONGJMP): Likewise.
274 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
275 from gdb_setjmp.h.
276 * exceptions.c: Likewise.
277
e3180625
GB
2782014-08-29 Gary Benson <gbenson@redhat.com>
279
280 * cleanups.h: Moved to...
281 * common/cleanups.h: New file.
282 * cleanups.c: Moved to...
283 * common/cleanups.c: New file. Include common-defs.h and
284 cleanups.h. Do not include defs.h.
285 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
286 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
287 (cleanups.o): New rule.
288
e3d6ba5d
GB
2892014-08-29 Gary Benson <gbenson@redhat.com>
290
291 * common/errors.h (internal_warning): New declaration.
292 (internal_vwarning): Likewise.
293 * common/errors.c (internal_warning): New function.
294 * utils.h (internal_warning): Don't declare.
295 (internal_vwarning): Likewise.
296 * utils.c (internal_warning): Removed.
297
075c7033
GB
2982014-08-29 Gary Benson <gbenson@redhat.com>
299
300 * main.c (captured_main): Use warning during startup.
301 Prefix startup warning messages with command name.
302
91b35fd0
GB
3032014-08-29 Gary Benson <gbenson@redhat.com>
304
305 * main.c (captured_main): Handle usage errors with error.
306
b1ec390e
GB
3072014-08-29 Gary Benson <gbenson@redhat.com>
308
309 * go32-nat.c (go32_create_inferior): Replace a fprintf/
310 exit pair with a call to error. Wrap the message with _().
311
fd0ef3dd
GB
3122014-08-29 Gary Benson <gbenson@redhat.com>
313
314 * main.c (captured_main): Replace a fprintf/exit
315 pair with a call to error. Wrap the message with _().
316
e0e6bcab
GB
3172014-08-29 Gary Benson <gbenson@redhat.com>
318
319 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
320 pairs with calls to error. Wrap the message with _().
321
0d2f5c07
GB
3222014-08-29 Gary Benson <gbenson@redhat.com>
323
324 * utils.c (vwarning): Protect calls to target_terminal_ours
325 and wrap_here.
326
5df43998
GB
3272014-08-29 Gary Benson <gbenson@redhat.com>
328
329 * exceptions.c (print_flush): Protect calls to
330 target_terminal_ours and wrap_here.
331
2437fd32
GB
3322014-08-29 Gary Benson <gbenson@redhat.com>
333
334 * utils.h (filtered_printing_initialized): New declaration.
335 * utils.c (abort_with_message): New function.
336 (internal_vproblem): Use abort_with_message for first level
337 recursive internal problems, and if gdb_stderr is not set up.
338 Protect calls to target_terminal_ours, begin_line and query.
339
f1f58506
DE
3402014-08-28 Doug Evans <dje@google.com>
341
342 * symtab.c (in_prologue): Move definition to better spot.
343 (skip_prologue_using_sal): Ditto.
344
aab2f208
DE
3452014-08-28 Doug Evans <dje@google.com>
346
347 * symtab.c (find_function_start_sal): Move definition to better spot.
348
6b65d1b6
YQ
3492014-08-28 Yao Qi <yao@codesourcery.com>
350
351 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
352 found_stack_adjust in forward scan. Remove condition check
353 on found_stack_adjust which is always true. Indent the code.
354
a1b34d15
YQ
3552014-08-28 Yao Qi <yao@codesourcery.com>
356
357 * dwarf2read.c (dwarf_decode_lines): Update declaration.
358 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
359 (dwarf_decode_lines): Remove argument
360 want_line_info. Remove condition check on want_line_info.
361 Callers update.
362
d5962de5
DE
3632014-08-27 Doug Evans <dje@google.com>
364
365 * dwarf2read.c (dwarf_record_line): Fix typo.
366
9b139002
SDJ
3672014-08-27 Patrick Palka <patrick@parcs.ath.cx>
368
369 * target.h (struct target_ops::to_terminal_save_ours): Remove
370 declaration.
371 (target_terminal_save_ours): Remove macro.
372 * target-delegates.c: Regenerate.
373 * inf-child.c (inf_child_target): Don't set the nonexistent
374 field to_terminal_save_ours.
375 * inferior.h (child_terminal_save_ours): Remove declaration.
376 * terminal.h (gdb_save_tty_state): New declaration.
377 * inflow.c (child_terminal_save_ours): Rename to ...
378 (gdb_save_tty_state): ... this.
379 * tui/tui.c: Include terminal.h.
380 (tui_enable): Use gdb_save_tty_state instead of
381 target_terminal_save_ours.
382 (tui_disable): Likewise.
383
9debeba0
DE
3842014-08-25 Doug Evans <dje@google.com>
385
386 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
387 Pass NULL instead of 0 for context pointer.
388
428fc5fc
YQ
3892014-08-25 Yao Qi <yao@codesourcery.com>
390
391 * dwarf2read.c: Fix grammatical error.
392
cdc07690
YQ
3932014-08-24 Yao Qi <yao@codesourcery.com>
394
395 * dwarf2read.c (scan_partial_symbols): Update comments.
396 Rename argument 'need_pc' with 'set_addrmap'.
397 (add_partial_namespace): Rename argument 'need_pc' with
398 'set_addrmap'.
399 (add_partial_module): Likewise.
400 (add_partial_subprogram): Likewise. Update comments.
401 (dwarf2_name): Fix typo.
402
a05a36a5
DE
4032014-08-22 Doug Evans <dje@google.com>
404
405 PR 17276
406 * dwarf2read.c (dwarf_record_line_p): New function.
407 (dwarf_decode_lines_1): Ignore subsequent line number entries
408 for the same line if any entry had a non-zero discriminator.
409
252a6764
DE
4102014-08-22 Doug Evans <dje@google.com>
411
412 * buildsym.h (record_line_ftype): New typedef.
413 (record_line): Use it.
414 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
415 (dwarf_decode_lines_1): Call them.
416
510db052
YQ
4172014-08-22 Yao Qi <yao@codesourcery.com>
418
419 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
420 (ctf_end): Remove code.
421
22fd09ae
JK
4222014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
425 (linux_make_corefile_notes): call update_thread_list, protected against
426 exceptions.
427
656e8868
PA
4282014-08-21 Pedro Alves <palves@redhat.com>
429
430 * infcmd.c (attach_command): Remove comment.
431
de589d04
WN
4322014-08-21 Bin Cheng <bin.cheng@arm.com>
433
434 * aarch64-linux-nat.c (dr_changed_t): Change the type from
435 unsigned LONGEST to ULONGEST.
436
2a31c623
PA
4372014-08-20 Pedro Alves <palves@redhat.com>
438
439 * Makefile.in (check-read1): New rule.
440
d36430db
JB
4412014-08-20 Joel Brobecker <brobecker@adacore.com>
442
443 * value.c (value_from_contents_and_address): Strip resolved_type's
444 typedef layers before checking its TYPE_DATA_LOCATION.
445
000339af
PA
4462014-08-20 Pedro Alves <palves@redhat.com>
447
448 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
449
5f52445b
YQ
4502014-08-20 Yao Qi <yao@codesourcery.com>
451
452 * amd64-tdep.c (amd64_classify): Add a blank line after the
453 example. Move "*/" to a new line.
454 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
455 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
456 * dwarf2read.c (psymtab_include_file_name): Likewise.
457
9a0dc9e3
PA
4582014-08-19 Andrew Burgess <aburgess@broadcom.com>
459 Pedro Alves <palves@redhat.com>
460
461 PR symtab/14604
462 PR symtab/14605
463 * ada-lang.c (coerce_unspec_val_to_type): Use
464 value_contents_copy_raw.
465 * ada-valprint.c (val_print_packed_array_elements): Adjust.
466 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
467 * cp-valprint.c (cp_print_value_fields): Let the common printing
468 code handle optimized out values.
469 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
470 * d-valprint.c (dynamic_array_type): Use
471 value_bits_any_optimized_out.
472 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
473 check_any_valid fields.
474 (check_pieced_value_bits): Delete and inline ...
475 (check_pieced_synthetic_pointer): ... here.
476 (check_pieced_value_validity): Delete.
477 (check_pieced_value_invalid): Delete.
478 (pieced_value_funcs): Remove check_validity and check_any_valid
479 fields.
480 (read_pieced_value): Use mark_value_bits_optimized_out.
481 (write_pieced_value): Switch to use
482 mark_value_bytes_optimized_out.
483 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
484 of assuming the whole value is optimized out.
485 * findvar.c (read_frame_register_value): Remove special handling
486 of optimized out registers.
487 (value_from_register): Use mark_value_bytes_optimized_out.
488 * frame-unwind.c (frame_unwind_got_optimized): Use
489 mark_value_bytes_optimized_out.
490 * jv-valprint.c (java_value_print): Adjust.
491 (java_print_value_fields): Let the common printing code handle
492 optimized out values.
493 * mips-tdep.c (mips_print_register): Remove special handling of
494 optimized out registers.
495 * opencl-lang.c (lval_func_check_validity): Delete.
496 (lval_func_check_any_valid): Delete.
497 (opencl_value_funcs): Remove check_validity and check_any_valid
498 fields.
499 * p-valprint.c (pascal_object_print_value_fields): Let the common
500 printing code handle optimized out values.
501 * stack.c (read_frame_arg): Remove special handling of optimized
502 out values. Fetch both VAL and ENTRYVAL before comparing
503 contents. Adjust to value_available_contents_eq rename.
504 * valprint.c (valprint_check_validity)
505 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
506 (val_print_array_elements): Adjust.
507 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
508 (value_bits_any_optimized_out): New function.
509 (value_entirely_covered_by_range_vector): New function, factored
510 out from value_entirely_unavailable.
511 (value_entirely_unavailable): Reimplement.
512 (value_entirely_optimized_out): New function.
513 (insert_into_bit_range_vector): New function, factored out from
514 mark_value_bits_unavailable.
515 (mark_value_bits_unavailable): Reimplement.
516 (struct ranges_and_idx): New struct.
517 (find_first_range_overlap_and_match): New function, factored out
518 from value_available_contents_bits_eq.
519 (value_available_contents_bits_eq): Rename to ...
520 (value_contents_bits_eq): ... this. Check both unavailable
521 contents and optimized out contents.
522 (value_available_contents_eq): Rename to ...
523 (value_contents_eq): ... this.
524 (allocate_value_lazy): Remove reference to the old optimized_out
525 boolean.
526 (allocate_optimized_out_value): Use
527 mark_value_bytes_optimized_out.
528 (require_not_optimized_out): Adjust to check whether the
529 optimized_out vec is empty.
530 (ranges_copy_adjusted): New function, factored out from
531 value_contents_copy_raw.
532 (value_contents_copy_raw): Also copy the optimized out ranges.
533 Assert the destination ranges aren't optimized out.
534 (value_contents_copy): Update comment, remove call to
535 require_not_optimized_out.
536 (value_contents_equal): Adjust to check whether the optimized_out
537 vec is empty.
538 (set_value_optimized_out, value_optimized_out_const): Delete.
539 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
540 New functions.
541 (value_entirely_optimized_out, value_bits_valid): Delete.
542 (value_copy): Take a VEC copy of the 'optimized_out' field.
543 (value_primitive_field): Remove special handling of optimized out.
544 (value_fetch_lazy): Assert that lazy values have no unavailable
545 regions. Use value_bits_any_optimized_out. Remove some special
546 handling for optimized out values.
547 * value.h: Add intro comment about <optimized out> and
548 <unavailable>.
549 (struct lval_funcs): Remove check_validity and check_any_valid
550 fields.
551 (set_value_optimized_out, value_optimized_out_const): Remove.
552 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
553 New declarations.
554 (value_bits_any_optimized_out): New declaration.
555 (value_bits_valid): Delete declaration.
556 (value_available_contents_eq): Rename to ...
557 (value_contents_eq): ... this, and extend comments.
558
6694c411
JK
5592014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 Fix -fsanitize=address on unreadable inferior strings.
562 * valprint.c (val_print_string): Fix access before BUFFER.
563
89a1c21a
SM
5642014-08-19 Simon Marchi <simon.marchi@ericsson.com>
565
566 * target.c (target_struct_size): Remove.
567 (target_struct_allocsize): Remove.
568 (DEFAULT_ALLOCSIZE): Remove.
569 (target_ops_p): New typedef.
570 (DEF_VEC_P (target_ops_p)): New vector type.
571 (target_structs): Change type to VEC (target_ops_p).
572 (add_target_with_completer): Replace "push" code by VEC_safe_push.
573 (find_default_run_target): Rewrite for loop following changes to
574 target_structs.
575
cb417230
JB
5762014-08-19 Joel Brobecker <brobecker@adacore.com>
577
578 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
579 Adjust code accordingly. Adjust function description comment.
580
817e0957
YQ
5812014-08-19 Yao Qi <yao@codesourcery.com>
582
583 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
584 types.
585
2974be62
AM
5862014-08-19 Alan Modra <amodra@gmail.com>
587
588 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
589 * config.in: Regenerate.
590 * configure: Regenerate.
591
34abf635
GB
5922014-08-19 Tom Tromey <tromey@redhat.com>
593 Gary Benson <gbenson@redhat.com>
594
595 * common/common-debug.h: New file.
596 * common/common-debug.c: Likewise.
597 * debug.c: Likewise.
598 * Makefile.in (SFILES): Add common/common-debug.c.
599 (HFILES_NO_SRCDIR): Add common/common-debug.h.
600 (COMMON_OBS): Add common-debug.o and debug.o.
601 (common-debug.o): New rule.
602 * common/common-defs.h: Include common-debug.h.
603 * common/agent.c (debug_agent_printf): New function.
604 (DEBUG_AGENT): Redefine.
605 * nat/i386-dregs.c (debug_printf): Undefine.
606
f6e94d78
GB
6072014-08-19 Gary Benson <gbenson@redhat.com>
608
609 * common/common-defs.h: Include print-utils.h.
610 * utils.h: Do not include print-utils.h.
611
9239eeab
GB
6122014-08-19 Tom Tromey <tromey@redhat.com>
613 Gary Benson <gbenson@redhat.com>
614
615 * common/common-types.h: New file.
616 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
617 * common/common-defs.h: Include common-types.h.
618 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
619 (ULONGEST): Remove.
620
ef87c8bb
GB
6212014-08-19 Tom Tromey <tromey@redhat.com>
622 Gary Benson <gbenson@redhat.com>
623
624 * common/errors.h: New file.
625 * common/errors.c: Likewise.
626 * Makefile.in (SFILES): Add common/errors.c.
627 (HFILES_NO_SRCDIR): Add common/errors.h.
628 (COMMON_OBS): Add errors.o.
629 (errors.o): New rule.
630 * common/common-defs.h: Include errors.h.
631 * utils.h (perror_with_name, error, verror, warning, vwarning):
632 Don't declare.
633 * common/common-utils.h: (malloc_failure, internal_error):
634 Likewise.
635
196a707b
GB
6362014-08-19 Gary Benson <gbenson@redhat.com>
637
638 * utils.c (internal_vproblem): Always print the message.
639
ded4fc8f
DE
6402014-08-18 Doug Evans <dje@google.com>
641
642 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
643
950c97d8
JB
6442014-08-18 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-typeprint.c (type_is_full_subrange_of_target_type):
647 Return 0 if TYPE is dynamic.
648 (print_range): Add handling of dynamic ranges.
649
3cdcd0ce
JB
6502014-08-18 Keven Boell <keven.boell@intel.com>
651 Joel Brobecker <brobecker@adacore.com>
652
653 * gdbtypes.h (struct main_type): Add field "data_location".
654 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
655 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
656 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
657 a dynamic data location.
658 (resolve_dynamic_type): Add DW_AT_data_location handling.
659 (copy_recursive, copy_type): Copy the data_location information
660 when present.
661 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
662 * value.c (value_from_contents_and_address): Add
663 DW_AT_data_location handling.
664
08412b07
JB
6652014-08-18 Keven Boell <keven.boell@intel.com>
666 Joel Brobecker <brobecker@adacore.com>
667
668 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
669 field "get_object_address".
670 * dwarf2expr.c (execute_stack_op): Add handling for
671 DW_OP_push_object_address.
672 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
673 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
674 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
675 (dwarf_expr_get_obj_addr): New function.
676 (dwarf_expr_ctx_funcs): Add get_object_address field.
677 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
678 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
679 (dwarf2_evaluate_property): Add parameter "address". Use it.
680 (needs_get_obj_addr): New function.
681 (needs_frame_ctx_funcs): Add get_object_address field.
682 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
683 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
684 (resolve_dynamic_array): Likewise.
685
84754697
JB
6862014-08-18 Joel Brobecker <brobecker@adacore.com>
687
688 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
689 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
690 fixed value for records and unions for which some GNAT encodings
691 are present.
692
da5c522f
JB
6932014-08-18 Joel Brobecker <brobecker@adacore.com>
694
695 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
696 rewrite to avoid "else if" and "else" constructs. Should be
697 a no-op in practice.
698
0d72a7c3
JB
6992014-08-18 Joel Brobecker <brobecker@adacore.com>
700
701 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
702 of lexical block.
703
e66d4446
SC
7042014-08-15 Siva Chandra Reddy <sivachandra@google.com>
705
706 PR c++/17132
707 * eval.c: Update all calls to find_overload_match.
708 * valarith.c: Likewise.
709 (value_user_defined_cpp_op, value_user_defined_op): New
710 argument NOSIDE. Update all callers.
711 * valops.c (find_overload_match): New argument NOSIDE.
712 * value.h (find_overload_match): Update signature.
713
940df408
SC
7142014-08-15 Siva Chandra Reddy <sivachandra@google.com>
715
716 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
717 'items' methods instead of 'iteritems' method on dictionaries.
718
699ca60a
DE
7192014-08-15 Doug Evans <dje@google.com>
720
721 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
722 closer to use.
723
37780ee5
DE
7242014-08-15 Doug Evans <dje@google.com>
725
726 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
727
0ad93d4f
DE
7282014-08-15 Doug Evans <dje@google.com>
729
730 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
731
20d8c372
DE
7322014-08-15 Doug Evans <dje@google.com>
733
734 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
735 unused.
736
cb039ba4
EZ
7372014-08-15 Eli Zaretskii <eliz@gnu.org>
738
739 * dcache.h: Include target.h, to avoid compile time warnings.
740
eb7a547a
JB
7412014-08-15 Joel Brobecker <brobecker@adacore.com>
742
743 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
744 frame_info" partial declaration.
745 * gdbarch.h: Regenerate.
746
783cecc8
YQ
7472014-08-15 Yao Qi <yao@codesourcery.com>
748
749 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
750 Add parameter 'decode_for_pst_p'. Callers update.
751
65c749e7
YQ
7522014-08-13 Yao Qi <yao@codesourcery.com>
753
754 PR build/17104
755 * configure.ac: Use local variable 'pos'.
756 * configure: Regenerated.
757
d769e349
DE
7582014-08-11 Doug Evans <dje@google.com>
759
760 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
761 message, it is redundant with "Reading symbols from ..." message.
762
24f1235e
DE
7632014-08-10 Doug Evans <xdje42@gmail.com>
764
765 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
766
dcd2e6ef
YQ
7672014-08-09 Yao Qi <yao@codesourcery.com>
768
769 PR remote/9053
770 * remote.c (remote_xfer_partial): Remove dead code.
771
070bdf0b
AA
7722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
773
774 * ia64-linux-tdep.c: Include "regset.h".
775 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
776 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
777 (ia64_linux_supply_fpregset): New function.
778 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
779 (ia64_linux_regset_from_core_section): New function.
780 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
781 method.
782
08f9f542
AA
7832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
784
785 * m68klinux-tdep.c: Include "regset.h".
786 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
787 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
788 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
789 (m68k_linux_regset_from_core_section): New function.
790 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
791 method.
792
8f1cee41
AA
7932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
794
795 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
796 function. Move logic to...
797 (tilegx_linux_regmap): ... this new register map.
798 (tilegx_linux_regset): Refer to register map, replace supply
799 method by regcache_supply_regset, and add collect method.
800 * tilegx-tdep.h (enum tilegx_regnum): New enum value
801 TILEGX_FIRST_EASY_REGNUM.
802
c5741217
AA
8032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
804
805 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
806 that calls regcache_supply_regset and handles the EPC register
807 separately. Move main logic to...
808 (score7_linux_gregmap): ... this new register map.
809 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
810 (score7_linux_gregset): Refer to register map. Add collect method.
811 (score7_linux_regset_from_core_section): Replace
812 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
813 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
814 (struct regset): Delete unused forward declaraction.
815 (struct pt_regs): Delete structure definition.
816 (elf_gregset_t): Delete typedef.
817
81580573
AA
8182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
819
820 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
821 (nios2_core_regset): Add collect method.
822
ba199d7d
AA
8232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
824
825 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
826 platform-independent and don't write to read-only input buffer.
827 (m32r_linux_collect_gregset): New function.
828 (m32r_linux_gregset): Add collect method.
829
0006a9da
AA
8302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
831
832 * hppa-linux-tdep.c (greg_map): Rename to...
833 (hppa_linux_gregmap): ... this. Also convert to
834 regcache_map_entry format.
835 (hppa_linux_supply_regset): Delete function.
836 (hppa_linux_supply_fpregset): Delete function. Move logic to...
837 (hppa_linux_fpregmap): ... this new register map.
838 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
839 register map, replace supply method by regcache_supply_regset, and
840 add collect method regcache_collect_regset.
841
901e1b23
AA
8422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
843
844 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
845 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
846 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
847 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
848 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
849 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
850 (frv_linux_supply_gregset): Replace main logic by call to
851 regcache_supply_regset, but keep clearing gr32-gr63.
852 (frv_linux_supply_fpregset): Delete function.
853 (frv_linux_gregset): Refer to appropriate register map and add
854 regcache_collect_regset as the collect method.
855 (frv_linux_fpregset): Likewise. Also exchange the supply method
856 by regcache_supply_regset.
857
1d6e7555
AA
8582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
859
860 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
861 by call to alpha_supply_int_regs.
862 (alpha_linux_collect_gregset): New function.
863 (alpha_linux_supply_fpregset): Replace logic by call to
864 alpha_supply_fp_regs.
865 (alpha_linux_collect_fpregset): New function.
866 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
867
d4d793bf
AA
8682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
869
870 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
871 by call to regcache_collect_regset.
872 (supply_gregset, supply_fpregset): Call regcache_supply_regset
873 instead of aarch64_linux_supply_gregset/_fpregset.
874 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
875 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
876 header file instead.
877 (aarch64_linux_supply_gregset, supply_gregset_from_core)
878 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
879 functions. Move logic to ...
880 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
881 register maps.
882 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
883 refer to new register maps, replace *_regset_from_core by
884 regcache_supply_regset, and also use regcache_collect_regset.
885 * aarch64-linux-tdep.h: Include "regset.h".
886 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
887 Delete prototypes.
888 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
889 macros, moved from C source file.
890 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
891 variable declarations.
892
99b7da5d
AA
8932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
894
895 * s390-linux-nat.c: Include "regset.h".
896 (regmap_gregset): Delete macro.
897 (s390_64_regmap_gregset): New register map for
898 regcache_supply/_collect_regset.
899 (s390_64_gregset): New regset.
900 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
901 (regmap_fpregset): Delete macro.
902 (s390_native_supply, s390_native_collect): Delete functions.
903 (supply_gregset, fill_gregset): Replace s390-specific regmap
904 handling by a call to regcache_supply/_collect_regset.
905 (supply_fpregset, fill_fpregset): Call regcache_supply/
906 _collect_regset instead of s390_native_supply/_collect.
907 (fetch_regset, store_regset): Likewise. Also change the last
908 parameter to a regset instead of a regmap.
909 (s390_linux_fetch_inferior_registers)
910 (390_linux_store_inferior_registers): Adjust last parameter in
911 calls to fetch_regset and store_regset.
912 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
913 (s390_gregmap): ... this. Also make static const and convert to
914 regcache_map_entry format.
915 (s390x_regmap_gregset): Delete.
916 (s390_regmap_fpregset): Rename to...
917 (s390_fpregmap): ... this. Make static const and convert to
918 regcache_map_entry format.
919 (s390_regmap_upper, s390_regmap_last_break)
920 (s390x_regmap_last_break, s390_regmap_system_call)
921 (s390_regmap_tdb): Likewise.
922 (s390_supply_regset, s390_collect_regset): Remove functions.
923 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
924 s390_supply_regset.
925 (s390_gregset, s390_fpregset, s390_upper_regset)
926 (s390_last_break_regset, s390x_last_break_regset)
927 (s390_system_call_regset, s390_tdb_regset): Make global and
928 replace s390_supply/_collect_regset by regcache_supply/
929 _collect_regset.
930 (s390x_gregset): Delete.
931 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
932 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
933 (s390_regmap_fpregset, s390_regmap_last_break)
934 (s390x_regmap_last_break, s390_regmap_system_call)
935 (s390_regmap_tdb): Delete global variable declarations.
936 (s390_gregset, s390_fpregset, s390_last_break_regset)
937 (s390x_last_break_regset, s390_system_call_regset)
938 (s390_tdb_regset): New global variable declarations.
939
0b309272
AA
9402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
941
942 * regcache.c: Include "regset.h".
943 (regcache_transfer_regset): New local function.
944 (regcache_supply_regset, regcache_collect_regset): New functions.
945 * regcache.h (struct regcache_map_entry): New structure.
946 (REGCACHE_MAP_SKIP): New enum value.
947 (regcache_supply_regset, regcache_collect_regset): New prototypes.
948
7fefa8d7
AA
9492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
950
951 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
952 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
953 (ppc_linux_collect_gregset ): Likewise.
954 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
955 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
956 (ppc_collect_vrregset): Likewise.
957 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
958 Likewise.
959
96c4f946
YQ
9602014-08-07 Yao Qi <yao@codesourcery.com>
961
962 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
963 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
964 * remote.c (remote_read_bytes): Likewise.
965
fffbe6a8
YQ
9662014-08-07 Yao Qi <yao@codesourcery.com>
967
968 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
969
5ee8a82c
YQ
9702014-08-07 Yao Qi <yao@codesourcery.com>
971
972 PR remote/17230
973 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
974 TARGET_XFER_OK instead of 0.
975
bb974a24
GB
9762014-08-07 Gary Benson <gbenson@redhat.com>
977
978 * common/common-defs.h: Include errno.h.
979 * defs.h: Do not include errno.h.
980 * ada-typeprint.c: Likewise.
981 * c-typeprint.c: Likewise.
982 * core-regset.c: Likewise.
983 * corefile.c: Likewise.
984 * corelow.c: Likewise.
985 * event-loop.c: Likewise.
986 * f-typeprint.c: Likewise.
987 * gnu-nat.c: Likewise.
988 * go32-nat.c: Likewise.
989 * i386gnu-nat.c: Likewise.
990 * m2-typeprint.c: Likewise.
991 * nat/linux-btrace.c: Likewise.
992 * p-typeprint.c: Likewise.
993 * procfs.c: Likewise.
994 * remote-sim.c: Likewise.
995 * rs6000-nat.c: Likewise.
996 * target.c: Likewise.
997 * typeprint.c: Likewise.
998 * ui-file.c: Likewise.
999 * valops.c: Likewise.
1000 * valprint.c: Likewise.
1001
6d3d12eb
GB
10022014-08-07 Gary Benson <gbenson@redhat.com>
1003
1004 * common/common-defs.h: Include string.h.
1005 * aarch64-tdep.c: Do not include string.h.
1006 * ada-exp.y: Likewise.
1007 * ada-lang.c: Likewise.
1008 * ada-lex.l: Likewise.
1009 * ada-typeprint.c: Likewise.
1010 * ada-valprint.c: Likewise.
1011 * aix-thread.c: Likewise.
1012 * alpha-linux-tdep.c: Likewise.
1013 * alpha-mdebug-tdep.c: Likewise.
1014 * alpha-nat.c: Likewise.
1015 * alpha-osf1-tdep.c: Likewise.
1016 * alpha-tdep.c: Likewise.
1017 * alphanbsd-tdep.c: Likewise.
1018 * amd64-dicos-tdep.c: Likewise.
1019 * amd64-linux-tdep.c: Likewise.
1020 * amd64-nat.c: Likewise.
1021 * amd64-sol2-tdep.c: Likewise.
1022 * amd64fbsd-tdep.c: Likewise.
1023 * amd64obsd-tdep.c: Likewise.
1024 * arch-utils.c: Likewise.
1025 * arm-linux-nat.c: Likewise.
1026 * arm-linux-tdep.c: Likewise.
1027 * arm-tdep.c: Likewise.
1028 * arm-wince-tdep.c: Likewise.
1029 * armbsd-tdep.c: Likewise.
1030 * armnbsd-nat.c: Likewise.
1031 * armnbsd-tdep.c: Likewise.
1032 * armobsd-tdep.c: Likewise.
1033 * avr-tdep.c: Likewise.
1034 * ax-gdb.c: Likewise.
1035 * ax-general.c: Likewise.
1036 * bcache.c: Likewise.
1037 * bfin-tdep.c: Likewise.
1038 * breakpoint.c: Likewise.
1039 * build-id.c: Likewise.
1040 * buildsym.c: Likewise.
1041 * c-exp.y: Likewise.
1042 * c-lang.c: Likewise.
1043 * c-typeprint.c: Likewise.
1044 * c-valprint.c: Likewise.
1045 * charset.c: Likewise.
1046 * cli-out.c: Likewise.
1047 * cli/cli-cmds.c: Likewise.
1048 * cli/cli-decode.c: Likewise.
1049 * cli/cli-dump.c: Likewise.
1050 * cli/cli-interp.c: Likewise.
1051 * cli/cli-logging.c: Likewise.
1052 * cli/cli-script.c: Likewise.
1053 * cli/cli-setshow.c: Likewise.
1054 * cli/cli-utils.c: Likewise.
1055 * coffread.c: Likewise.
1056 * common/agent.c: Likewise.
1057 * common/buffer.c: Likewise.
1058 * common/buffer.h: Likewise.
1059 * common/common-utils.c: Likewise.
1060 * common/filestuff.c: Likewise.
1061 * common/filestuff.c: Likewise.
1062 * common/format.c: Likewise.
1063 * common/print-utils.c: Likewise.
1064 * common/rsp-low.c: Likewise.
1065 * common/signals.c: Likewise.
1066 * common/vec.h: Likewise.
1067 * common/xml-utils.c: Likewise.
1068 * core-regset.c: Likewise.
1069 * corefile.c: Likewise.
1070 * corelow.c: Likewise.
1071 * cp-abi.c: Likewise.
1072 * cp-name-parser.y: Likewise.
1073 * cp-support.c: Likewise.
1074 * cp-valprint.c: Likewise.
1075 * cris-tdep.c: Likewise.
1076 * d-exp.y: Likewise.
1077 * darwin-nat.c: Likewise.
1078 * dbxread.c: Likewise.
1079 * dcache.c: Likewise.
1080 * demangle.c: Likewise.
1081 * dicos-tdep.c: Likewise.
1082 * disasm.c: Likewise.
1083 * doublest.c: Likewise.
1084 * dsrec.c: Likewise.
1085 * dummy-frame.c: Likewise.
1086 * dwarf2-frame.c: Likewise.
1087 * dwarf2loc.c: Likewise.
1088 * dwarf2read.c: Likewise.
1089 * elfread.c: Likewise.
1090 * environ.c: Likewise.
1091 * eval.c: Likewise.
1092 * event-loop.c: Likewise.
1093 * exceptions.c: Likewise.
1094 * exec.c: Likewise.
1095 * expprint.c: Likewise.
1096 * f-exp.y: Likewise.
1097 * f-lang.c: Likewise.
1098 * f-typeprint.c: Likewise.
1099 * f-valprint.c: Likewise.
1100 * fbsd-nat.c: Likewise.
1101 * findcmd.c: Likewise.
1102 * findvar.c: Likewise.
1103 * fork-child.c: Likewise.
1104 * frame.c: Likewise.
1105 * frv-linux-tdep.c: Likewise.
1106 * frv-tdep.c: Likewise.
1107 * gdb.c: Likewise.
1108 * gdb_bfd.c: Likewise.
1109 * gdbarch.c: Likewise.
1110 * gdbarch.sh: Likewise.
1111 * gdbtypes.c: Likewise.
1112 * gnu-nat.c: Likewise.
1113 * gnu-v2-abi.c: Likewise.
1114 * gnu-v3-abi.c: Likewise.
1115 * go-exp.y: Likewise.
1116 * go-lang.c: Likewise.
1117 * go32-nat.c: Likewise.
1118 * guile/guile.c: Likewise.
1119 * guile/scm-auto-load.c: Likewise.
1120 * hppa-hpux-tdep.c: Likewise.
1121 * hppa-linux-nat.c: Likewise.
1122 * hppanbsd-tdep.c: Likewise.
1123 * hppaobsd-tdep.c: Likewise.
1124 * i386-cygwin-tdep.c: Likewise.
1125 * i386-dicos-tdep.c: Likewise.
1126 * i386-linux-tdep.c: Likewise.
1127 * i386-nto-tdep.c: Likewise.
1128 * i386-sol2-tdep.c: Likewise.
1129 * i386-tdep.c: Likewise.
1130 * i386bsd-tdep.c: Likewise.
1131 * i386gnu-nat.c: Likewise.
1132 * i386nbsd-tdep.c: Likewise.
1133 * i386obsd-tdep.c: Likewise.
1134 * i387-tdep.c: Likewise.
1135 * ia64-libunwind-tdep.c: Likewise.
1136 * ia64-linux-nat.c: Likewise.
1137 * inf-child.c: Likewise.
1138 * inf-ptrace.c: Likewise.
1139 * inf-ttrace.c: Likewise.
1140 * infcall.c: Likewise.
1141 * infcmd.c: Likewise.
1142 * inflow.c: Likewise.
1143 * infrun.c: Likewise.
1144 * interps.c: Likewise.
1145 * iq2000-tdep.c: Likewise.
1146 * irix5-nat.c: Likewise.
1147 * jv-exp.y: Likewise.
1148 * jv-lang.c: Likewise.
1149 * jv-typeprint.c: Likewise.
1150 * jv-valprint.c: Likewise.
1151 * language.c: Likewise.
1152 * linux-fork.c: Likewise.
1153 * linux-nat.c: Likewise.
1154 * lm32-tdep.c: Likewise.
1155 * m2-exp.y: Likewise.
1156 * m2-typeprint.c: Likewise.
1157 * m32c-tdep.c: Likewise.
1158 * m32r-linux-nat.c: Likewise.
1159 * m32r-linux-tdep.c: Likewise.
1160 * m32r-rom.c: Likewise.
1161 * m32r-tdep.c: Likewise.
1162 * m68hc11-tdep.c: Likewise.
1163 * m68k-tdep.c: Likewise.
1164 * m68kbsd-tdep.c: Likewise.
1165 * m68klinux-nat.c: Likewise.
1166 * m68klinux-tdep.c: Likewise.
1167 * m88k-tdep.c: Likewise.
1168 * machoread.c: Likewise.
1169 * macrocmd.c: Likewise.
1170 * main.c: Likewise.
1171 * mdebugread.c: Likewise.
1172 * mem-break.c: Likewise.
1173 * memattr.c: Likewise.
1174 * memory-map.c: Likewise.
1175 * mep-tdep.c: Likewise.
1176 * mi/mi-cmd-break.c: Likewise.
1177 * mi/mi-cmd-disas.c: Likewise.
1178 * mi/mi-cmd-env.c: Likewise.
1179 * mi/mi-cmd-stack.c: Likewise.
1180 * mi/mi-cmd-var.c: Likewise.
1181 * mi/mi-cmds.c: Likewise.
1182 * mi/mi-console.c: Likewise.
1183 * mi/mi-getopt.c: Likewise.
1184 * mi/mi-interp.c: Likewise.
1185 * mi/mi-main.c: Likewise.
1186 * mi/mi-parse.c: Likewise.
1187 * microblaze-rom.c: Likewise.
1188 * microblaze-tdep.c: Likewise.
1189 * mingw-hdep.c: Likewise.
1190 * minidebug.c: Likewise.
1191 * minsyms.c: Likewise.
1192 * mips-irix-tdep.c: Likewise.
1193 * mips-linux-tdep.c: Likewise.
1194 * mips-tdep.c: Likewise.
1195 * mips64obsd-tdep.c: Likewise.
1196 * mipsnbsd-tdep.c: Likewise.
1197 * mipsread.c: Likewise.
1198 * mn10300-linux-tdep.c: Likewise.
1199 * mn10300-tdep.c: Likewise.
1200 * monitor.c: Likewise.
1201 * moxie-tdep.c: Likewise.
1202 * mt-tdep.c: Likewise.
1203 * nat/linux-btrace.c: Likewise.
1204 * nat/linux-osdata.c: Likewise.
1205 * nat/linux-procfs.c: Likewise.
1206 * nat/linux-ptrace.c: Likewise.
1207 * nat/linux-waitpid.c: Likewise.
1208 * nbsd-tdep.c: Likewise.
1209 * nios2-linux-tdep.c: Likewise.
1210 * nto-procfs.c: Likewise.
1211 * nto-tdep.c: Likewise.
1212 * objc-lang.c: Likewise.
1213 * objfiles.c: Likewise.
1214 * opencl-lang.c: Likewise.
1215 * osabi.c: Likewise.
1216 * osdata.c: Likewise.
1217 * p-exp.y: Likewise.
1218 * p-lang.c: Likewise.
1219 * p-typeprint.c: Likewise.
1220 * parse.c: Likewise.
1221 * posix-hdep.c: Likewise.
1222 * ppc-linux-nat.c: Likewise.
1223 * ppc-sysv-tdep.c: Likewise.
1224 * ppcfbsd-tdep.c: Likewise.
1225 * ppcnbsd-tdep.c: Likewise.
1226 * ppcobsd-tdep.c: Likewise.
1227 * printcmd.c: Likewise.
1228 * procfs.c: Likewise.
1229 * prologue-value.c: Likewise.
1230 * python/py-auto-load.c: Likewise.
1231 * python/py-gdb-readline.c: Likewise.
1232 * ravenscar-thread.c: Likewise.
1233 * regcache.c: Likewise.
1234 * registry.c: Likewise.
1235 * remote-fileio.c: Likewise.
1236 * remote-m32r-sdi.c: Likewise.
1237 * remote-mips.c: Likewise.
1238 * remote-notif.c: Likewise.
1239 * remote-sim.c: Likewise.
1240 * remote.c: Likewise.
1241 * reverse.c: Likewise.
1242 * rs6000-aix-tdep.c: Likewise.
1243 * ser-base.c: Likewise.
1244 * ser-go32.c: Likewise.
1245 * ser-mingw.c: Likewise.
1246 * ser-pipe.c: Likewise.
1247 * ser-tcp.c: Likewise.
1248 * ser-unix.c: Likewise.
1249 * serial.c: Likewise.
1250 * sh-tdep.c: Likewise.
1251 * sh64-tdep.c: Likewise.
1252 * shnbsd-tdep.c: Likewise.
1253 * skip.c: Likewise.
1254 * sol-thread.c: Likewise.
1255 * solib-dsbt.c: Likewise.
1256 * solib-frv.c: Likewise.
1257 * solib-osf.c: Likewise.
1258 * solib-som.c: Likewise.
1259 * solib-spu.c: Likewise.
1260 * solib-target.c: Likewise.
1261 * solib.c: Likewise.
1262 * somread.c: Likewise.
1263 * source.c: Likewise.
1264 * sparc-nat.c: Likewise.
1265 * sparc-sol2-tdep.c: Likewise.
1266 * sparc-tdep.c: Likewise.
1267 * sparc64-tdep.c: Likewise.
1268 * sparc64fbsd-tdep.c: Likewise.
1269 * sparc64nbsd-tdep.c: Likewise.
1270 * sparcnbsd-tdep.c: Likewise.
1271 * spu-linux-nat.c: Likewise.
1272 * spu-multiarch.c: Likewise.
1273 * spu-tdep.c: Likewise.
1274 * stabsread.c: Likewise.
1275 * stack.c: Likewise.
1276 * std-regs.c: Likewise.
1277 * symfile.c: Likewise.
1278 * symmisc.c: Likewise.
1279 * symtab.c: Likewise.
1280 * target.c: Likewise.
1281 * thread.c: Likewise.
1282 * tilegx-linux-nat.c: Likewise.
1283 * tilegx-tdep.c: Likewise.
1284 * top.c: Likewise.
1285 * tracepoint.c: Likewise.
1286 * tui/tui-command.c: Likewise.
1287 * tui/tui-data.c: Likewise.
1288 * tui/tui-disasm.c: Likewise.
1289 * tui/tui-file.c: Likewise.
1290 * tui/tui-layout.c: Likewise.
1291 * tui/tui-out.c: Likewise.
1292 * tui/tui-regs.c: Likewise.
1293 * tui/tui-source.c: Likewise.
1294 * tui/tui-stack.c: Likewise.
1295 * tui/tui-win.c: Likewise.
1296 * tui/tui-windata.c: Likewise.
1297 * tui/tui-winsource.c: Likewise.
1298 * typeprint.c: Likewise.
1299 * ui-file.c: Likewise.
1300 * ui-out.c: Likewise.
1301 * user-regs.c: Likewise.
1302 * utils.c: Likewise.
1303 * v850-tdep.c: Likewise.
1304 * valarith.c: Likewise.
1305 * valops.c: Likewise.
1306 * valprint.c: Likewise.
1307 * value.c: Likewise.
1308 * varobj.c: Likewise.
1309 * vax-tdep.c: Likewise.
1310 * vaxnbsd-tdep.c: Likewise.
1311 * vaxobsd-tdep.c: Likewise.
1312 * windows-nat.c: Likewise.
1313 * xcoffread.c: Likewise.
1314 * xml-support.c: Likewise.
1315 * xstormy16-tdep.c: Likewise.
1316 * xtensa-linux-nat.c: Likewise.
1317
dccbb609
GB
13182014-08-07 Gary Benson <gbenson@redhat.com>
1319
1320 * common/common-defs.h: Include gdb_assert.h.
1321 * aarch64-tdep.c: Do not include gdb_assert.h.
1322 * addrmap.c: Likewise.
1323 * aix-thread.c: Likewise.
1324 * alpha-linux-tdep.c: Likewise.
1325 * alpha-mdebug-tdep.c: Likewise.
1326 * alphanbsd-tdep.c: Likewise.
1327 * amd64-nat.c: Likewise.
1328 * amd64-tdep.c: Likewise.
1329 * amd64bsd-nat.c: Likewise.
1330 * amd64fbsd-nat.c: Likewise.
1331 * amd64fbsd-tdep.c: Likewise.
1332 * amd64nbsd-nat.c: Likewise.
1333 * amd64nbsd-tdep.c: Likewise.
1334 * amd64obsd-nat.c: Likewise.
1335 * amd64obsd-tdep.c: Likewise.
1336 * arch-utils.c: Likewise.
1337 * arm-tdep.c: Likewise.
1338 * armbsd-tdep.c: Likewise.
1339 * auxv.c: Likewise.
1340 * bcache.c: Likewise.
1341 * bfin-tdep.c: Likewise.
1342 * blockframe.c: Likewise.
1343 * breakpoint.c: Likewise.
1344 * bsd-kvm.c: Likewise.
1345 * bsd-uthread.c: Likewise.
1346 * buildsym.c: Likewise.
1347 * c-exp.y: Likewise.
1348 * c-lang.c: Likewise.
1349 * charset.c: Likewise.
1350 * cleanups.c: Likewise.
1351 * cli-out.c: Likewise.
1352 * cli/cli-decode.c: Likewise.
1353 * cli/cli-dump.c: Likewise.
1354 * cli/cli-logging.c: Likewise.
1355 * cli/cli-script.c: Likewise.
1356 * cli/cli-utils.c: Likewise.
1357 * coffread.c: Likewise.
1358 * common/common-utils.c: Likewise.
1359 * common/queue.h: Likewise.
1360 * common/signals.c: Likewise.
1361 * common/vec.h: Likewise.
1362 * complaints.c: Likewise.
1363 * completer.c: Likewise.
1364 * corelow.c: Likewise.
1365 * cp-abi.c: Likewise.
1366 * cp-name-parser.y: Likewise.
1367 * cp-namespace.c: Likewise.
1368 * cp-support.c: Likewise.
1369 * cris-tdep.c: Likewise.
1370 * dbxread.c: Likewise.
1371 * dictionary.c: Likewise.
1372 * doublest.c: Likewise.
1373 * dsrec.c: Likewise.
1374 * dummy-frame.c: Likewise.
1375 * dwarf2-frame-tailcall.c: Likewise.
1376 * dwarf2-frame.c: Likewise.
1377 * dwarf2expr.c: Likewise.
1378 * dwarf2loc.c: Likewise.
1379 * dwarf2read.c: Likewise.
1380 * eval.c: Likewise.
1381 * event-loop.c: Likewise.
1382 * exceptions.c: Likewise.
1383 * expprint.c: Likewise.
1384 * f-valprint.c: Likewise.
1385 * fbsd-nat.c: Likewise.
1386 * findvar.c: Likewise.
1387 * frame-unwind.c: Likewise.
1388 * frame.c: Likewise.
1389 * frv-tdep.c: Likewise.
1390 * gcore.c: Likewise.
1391 * gdb-dlfcn.c: Likewise.
1392 * gdb_bfd.c: Likewise.
1393 * gdbarch.c: Likewise.
1394 * gdbarch.sh: Likewise.
1395 * gdbtypes.c: Likewise.
1396 * gnu-nat.c: Likewise.
1397 * gnu-v3-abi.c: Likewise.
1398 * go-lang.c: Likewise.
1399 * guile/scm-exception.c: Likewise.
1400 * guile/scm-gsmob.c: Likewise.
1401 * guile/scm-lazy-string.c: Likewise.
1402 * guile/scm-math.c: Likewise.
1403 * guile/scm-pretty-print.c: Likewise.
1404 * guile/scm-safe-call.c: Likewise.
1405 * guile/scm-utils.c: Likewise.
1406 * guile/scm-value.c: Likewise.
1407 * h8300-tdep.c: Likewise.
1408 * hppa-hpux-nat.c: Likewise.
1409 * hppa-tdep.c: Likewise.
1410 * hppanbsd-tdep.c: Likewise.
1411 * hppaobsd-tdep.c: Likewise.
1412 * i386-darwin-nat.c: Likewise.
1413 * i386-darwin-tdep.c: Likewise.
1414 * i386-nto-tdep.c: Likewise.
1415 * i386-tdep.c: Likewise.
1416 * i386bsd-nat.c: Likewise.
1417 * i386fbsd-tdep.c: Likewise.
1418 * i386gnu-nat.c: Likewise.
1419 * i386nbsd-tdep.c: Likewise.
1420 * i386obsd-tdep.c: Likewise.
1421 * i387-tdep.c: Likewise.
1422 * ia64-libunwind-tdep.c: Likewise.
1423 * ia64-tdep.c: Likewise.
1424 * inf-ptrace.c: Likewise.
1425 * inf-ttrace.c: Likewise.
1426 * infcall.c: Likewise.
1427 * infcmd.c: Likewise.
1428 * infrun.c: Likewise.
1429 * inline-frame.c: Likewise.
1430 * interps.c: Likewise.
1431 * jv-lang.c: Likewise.
1432 * jv-typeprint.c: Likewise.
1433 * linux-fork.c: Likewise.
1434 * linux-nat.c: Likewise.
1435 * linux-thread-db.c: Likewise.
1436 * m32c-tdep.c: Likewise.
1437 * m32r-linux-nat.c: Likewise.
1438 * m32r-tdep.c: Likewise.
1439 * m68k-tdep.c: Likewise.
1440 * m68kbsd-nat.c: Likewise.
1441 * m68kbsd-tdep.c: Likewise.
1442 * m88k-tdep.c: Likewise.
1443 * machoread.c: Likewise.
1444 * macroexp.c: Likewise.
1445 * macrotab.c: Likewise.
1446 * maint.c: Likewise.
1447 * mdebugread.c: Likewise.
1448 * memory-map.c: Likewise.
1449 * mep-tdep.c: Likewise.
1450 * mi/mi-common.c: Likewise.
1451 * microblaze-tdep.c: Likewise.
1452 * mingw-hdep.c: Likewise.
1453 * mips-linux-nat.c: Likewise.
1454 * mips-linux-tdep.c: Likewise.
1455 * mips-tdep.c: Likewise.
1456 * mips64obsd-tdep.c: Likewise.
1457 * mipsnbsd-tdep.c: Likewise.
1458 * mn10300-linux-tdep.c: Likewise.
1459 * mn10300-tdep.c: Likewise.
1460 * moxie-tdep.c: Likewise.
1461 * mt-tdep.c: Likewise.
1462 * nat/linux-btrace.c: Likewise.
1463 * nat/linux-osdata.c: Likewise.
1464 * nat/linux-ptrace.c: Likewise.
1465 * nat/mips-linux-watch.c: Likewise.
1466 * nios2-linux-tdep.c: Likewise.
1467 * nios2-tdep.c: Likewise.
1468 * objc-lang.c: Likewise.
1469 * objfiles.c: Likewise.
1470 * obsd-nat.c: Likewise.
1471 * opencl-lang.c: Likewise.
1472 * osabi.c: Likewise.
1473 * parse.c: Likewise.
1474 * ppc-linux-nat.c: Likewise.
1475 * ppc-sysv-tdep.c: Likewise.
1476 * ppcfbsd-nat.c: Likewise.
1477 * ppcfbsd-tdep.c: Likewise.
1478 * ppcnbsd-nat.c: Likewise.
1479 * ppcnbsd-tdep.c: Likewise.
1480 * ppcobsd-nat.c: Likewise.
1481 * ppcobsd-tdep.c: Likewise.
1482 * printcmd.c: Likewise.
1483 * procfs.c: Likewise.
1484 * prologue-value.c: Likewise.
1485 * psymtab.c: Likewise.
1486 * python/py-lazy-string.c: Likewise.
1487 * python/py-value.c: Likewise.
1488 * regcache.c: Likewise.
1489 * reggroups.c: Likewise.
1490 * registry.c: Likewise.
1491 * remote-sim.c: Likewise.
1492 * remote.c: Likewise.
1493 * rs6000-aix-tdep.c: Likewise.
1494 * rs6000-tdep.c: Likewise.
1495 * s390-linux-tdep.c: Likewise.
1496 * score-tdep.c: Likewise.
1497 * ser-base.c: Likewise.
1498 * ser-mingw.c: Likewise.
1499 * sh-tdep.c: Likewise.
1500 * sh64-tdep.c: Likewise.
1501 * solib-darwin.c: Likewise.
1502 * solib-spu.c: Likewise.
1503 * solib-svr4.c: Likewise.
1504 * source.c: Likewise.
1505 * sparc-nat.c: Likewise.
1506 * sparc-sol2-tdep.c: Likewise.
1507 * sparc-tdep.c: Likewise.
1508 * sparc64-sol2-tdep.c: Likewise.
1509 * sparc64-tdep.c: Likewise.
1510 * sparc64fbsd-tdep.c: Likewise.
1511 * sparc64nbsd-tdep.c: Likewise.
1512 * sparc64obsd-tdep.c: Likewise.
1513 * sparcnbsd-tdep.c: Likewise.
1514 * sparcobsd-tdep.c: Likewise.
1515 * spu-multiarch.c: Likewise.
1516 * spu-tdep.c: Likewise.
1517 * stabsread.c: Likewise.
1518 * stack.c: Likewise.
1519 * symfile.c: Likewise.
1520 * symtab.c: Likewise.
1521 * target-descriptions.c: Likewise.
1522 * target-memory.c: Likewise.
1523 * target.c: Likewise.
1524 * tic6x-linux-tdep.c: Likewise.
1525 * tic6x-tdep.c: Likewise.
1526 * tilegx-linux-nat.c: Likewise.
1527 * tilegx-tdep.c: Likewise.
1528 * top.c: Likewise.
1529 * tramp-frame.c: Likewise.
1530 * tui/tui-out.c: Likewise.
1531 * tui/tui-winsource.c: Likewise.
1532 * ui-out.c: Likewise.
1533 * user-regs.c: Likewise.
1534 * utils.c: Likewise.
1535 * v850-tdep.c: Likewise.
1536 * valops.c: Likewise.
1537 * value.c: Likewise.
1538 * varobj.c: Likewise.
1539 * vax-nat.c: Likewise.
1540 * xml-syscall.c: Likewise.
1541 * xml-tdesc.c: Likewise.
1542 * xstormy16-tdep.c: Likewise.
1543 * xtensa-linux-nat.c: Likewise.
1544 * xtensa-tdep.c: Likewise.
1545
e76df0d0
GB
15462014-08-07 Gary Benson <gbenson@redhat.com>
1547
1548 * common/common-defs.h: Include common-utils.h.
1549 * defs.h: Do not include common-utils.h.
1550 * common/gdb_assert.h: Likewise.
1551 * darwin-nat.h: Likewise.
1552 * nat/linux-btrace.c: Likewise.
1553 * target/waitstatus.h: Likewise.
1554
4cb9c816
GB
15552014-08-07 Gary Benson <gbenson@redhat.com>
1556
1557 * common/common-defs.h: Include ptid.h.
1558 * defs.h: Do not include ptid.h.
1559 * inferior.h: Likewise.
1560 * infrun.h: Likewise.
1561 * nat/linux-btrace.h: Likewise.
1562 * nat/linux-osdata.h: Likewise.
1563 * target/waitstatus.h: Likewise.
1564
3995eeee
GB
15652014-08-07 Gary Benson <gbenson@redhat.com>
1566
1567 * common/common-defs.h: Include gdb_locale.h.
1568 * defs.h: Do not include gdb_locale.h.
1569
cb9f1a9b
GB
15702014-08-07 Gary Benson <gbenson@redhat.com>
1571
1572 * common/common-defs.h: Include gdb/signals.h.
1573 * defs.h: Do not include gdb/signals.h.
1574
a5fceff8
GB
15752014-08-07 Gary Benson <gbenson@redhat.com>
1576
1577 * common/common-defs.h: Include pathmax.h.
1578 * defs.h: Do not include pathmax.h.
1579
b9391142
GB
15802014-08-07 Gary Benson <gbenson@redhat.com>
1581
1582 * common/common-defs.h: Include libiberty.h.
1583 * defs.h: Do not include libiberty.h.
1584 * common/queue.h: Likewise.
1585 * cp-name-parser.y: Likewise.
1586 * mi/mi-cmd-catch.c: Likewise.
1587 * python/python.c: Likewise.
1588
0e443c87
GB
15892014-08-07 Gary Benson <gbenson@redhat.com>
1590
1591 * common/common-defs.h: Include ansidecl.h.
1592 * defs.h: Do not include ansidecl.h.
1593 * common/buffer.h: Likewise.
1594 * common/common-utils.h: Likewise.
1595
8ebb3f56
GB
15962014-08-07 Gary Benson <gbenson@redhat.com>
1597
1598 * common/common-defs.h: Include stddef.h.
1599 * defs.h: Do not include stddef.h.
1600 * common/common-utils.h: Likewise.
1601 * amd64fbsd-nat.c: Likewise.
1602 * bcache.c: Likewise.
1603 * charset.c: Likewise.
1604 * common/buffer.h: Likewise.
1605 * common/vec.h: Likewise.
1606 * i386bsd-nat.c: Likewise.
1607 * nat/linux-btrace.h: Likewise.
1608 * ppcfbsd-nat.c: Likewise.
1609 * ppcnbsd-tdep.h: Likewise.
1610 * ppcobsd-nat.c: Likewise.
1611 * ppcobsd-tdep.h: Likewise.
1612 * python/py-gdb-readline.c: Likewise.
1613
8980bdf6
GB
16142014-08-07 Gary Benson <gbenson@redhat.com>
1615
1616 * common/common-defs.h: Include stdarg.h.
1617 * defs.h: Do not include stdarg.h.
1618 * ada-lang.c: Likewise.
1619 * common/common-utils.h: Likewise.
1620 * guile/scm-string.c: Likewise.
1621 * guile/scm-utils.c: Likewise.
1622 * m32c-tdep.c: Likewise.
1623
d7096f71
GB
16242014-08-07 Gary Benson <gbenson@redhat.com>
1625
1626 * common/common-defs.h: Include stdlib.h.
1627 * defs.h: Do not include stdlib.h.
1628 * addrmap.c: Likewise.
1629 * bcache.c: Likewise.
1630 * common/buffer.c: Likewise.
1631 * common/common-utils.c: Likewise.
1632 * cp-name-parser.y: Likewise.
1633 * go32-nat.c: Likewise.
1634 * mn10300-linux-tdep.c: Likewise.
1635 * nat/linux-osdata.c: Likewise.
1636 * tui/tui.c: Likewise.
1637 * windows-nat.c: Likewise.
1638
d02f550d
GB
16392014-08-07 Gary Benson <gbenson@redhat.com>
1640
1641 * common/common-defs.h: Include stdio.h.
1642 * defs.h: Do not include stdio.h.
1643 * ada-lang.c: Likewise.
1644 * common/buffer.c: Likewise.
1645 * common/common-utils.c: Likewise.
1646 * cp-name-parser.y: Likewise.
1647 * gnu-nat.c: Likewise.
1648 * go32-nat.c: Likewise.
1649 * i386gnu-nat.c: Likewise.
1650 * proc-api.c: Likewise.
1651 * proc-events.c: Likewise.
1652 * proc-flags.c: Likewise.
1653 * proc-why.c: Likewise.
1654 * python/python-internal.h: Likewise.
1655 * target-memory.c: Likewise.
1656 * tui/tui-io.c: Likewise.
1657 * tui/tui.c: Likewise.
1658
b6d7a4bf
SM
16592014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1660
1661 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1662 (scan_dyntag_auxv): Same.
1663
af19829b
YQ
16642014-08-06 Yao Qi <yao@codesourcery.com>
1665
1666 * amd64-linux-nat.c: Remove duplicated include
1667 "x86-linux-nat.h".
1668 * i386-linux-nat.c: Likewise.
1669
8e07a239
YQ
16702014-08-06 Yao Qi <yao@codesourcery.com>
1671
1672 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1673 operand" with "Special opcode" in comments.
1674
7bfe8241
GB
16752014-08-05 Gary Benson <gbenson@redhat.com>
1676
1677 * interps.c (initialize_interps): Remove prototype.
1678 (interpreter_initialized): Remove static global.
1679 (interp_add): Do not call initialize_interps.
1680 (initialize_interps): Remove function.
1681
d6c95504
GB
16822014-08-05 Gary Benson <gbenson@redhat.com>
1683
1684 * utils.c (vwarning): Remove spurious va_end.
1685
241fd515
AM
16862014-08-05 Alan Modra <amodra@gmail.com>
1687
1688 * charset.c (convert_between_encodings): Cast result of obstack_base.
1689 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1690 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1691 (read_unwind_info): Use size_t for some locals.
1692 * jit.c (finalize_symtab): Likewise.
1693 * utils.c (hashtab_obstack_allocate): Likewise.
1694 * symmisc.c (print_objfile_statistics): Update format strings.
1695
dc304a94
JK
16962014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1699 (Changes in GDB 7.8): ... here.
1700
3cecbbbe
TT
17012014-08-04 Tom Tromey <tromey@redhat.com>
1702
1703 * target.c (set_targetdebug): New function.
1704 (initialize_targets): Pass set_targetdebug when creating "set
1705 debug target".
1706
6908c509
JB
17072014-08-01 Joel Brobecker <brobecker@adacore.com>
1708
1709 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1710 if detecting a variable-sized field that is not the last field.
1711 Fix struct type length computation.
1712
53e8f97d
JB
17132014-08-01 Joel Brobecker <brobecker@adacore.com>
1714
1715 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1716 Add debug trace.
1717
e068c55d
JB
17182014-08-01 Joel Brobecker <brobecker@adacore.com>
1719
1720 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1721 Remove "+ 8" offset in computation of CHAIN_VMA.
1722
4d4ca2a1
DE
17232014-07-31 Doug Evans <dje@google.com>
1724
1725 * inflow.c (child_terminal_inferior): Add comment.
1726 (child_terminal_ours_for_output): Add comment.
1727 (child_terminal_ours): Add comment.
1728 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1729 (linux_nat_terminal_ours): Add comment.
1730
462f517e
GB
17312014-07-31 Gary Benson <gbenson@redhat.com>
1732
1733 * common/btrace-common.h: Do not include defs.h or server.h.
1734 * nat/mips-linux-watch.h: Likewise.
1735 * gdb-dlfcn.h: Do not include defs.h.
1736 * tracefile.h: Likewise.
1737
74228e77
RM
17382014-07-30 Roland McGrath <mcgrathr@google.com>
1739
1740 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1741
014f9477
TT
17422014-07-30 Tom Tromey <tromey@redhat.com>
1743
1744 * bsd-kvm.c (bsd_kvm_open): Constify.
1745 * corelow.c (core_open): Constify.
1746 * ctf.c (ctf_open): Constify.
1747 * dbug-rom.c (dbug_open): Constify.
1748 * exec.c (exec_open): Constify.
1749 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1750 * microblaze-rom.c (picobug_open): Constify.
1751 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1752 Constify.
1753 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1754 * record-btrace.c (record_btrace_open): Constify.
1755 * record-full.c (record_full_core_open_1, record_full_open_1)
1756 (record_full_open): Constify.
1757 * remote-m32r-sdi.c (m32r_open): Constify.
1758 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1759 (rockhopper_open, lsi_open): Constify.
1760 * remote-sim.c (gdbsim_open): Constify.
1761 * remote.c (remote_open, extended_remote_open, remote_open_1):
1762 Constify.
1763 * target.h (struct target_ops) <to_open>: Make "arg" const.
1764 * tracefile-tfile.c (tfile_open): Constify.
1765
e799154c
TT
17662014-07-30 Tom Tromey <tromey@redhat.com>
1767
1768 * breakpoint.c (map_breakpoint_numbers): Update.
1769 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1770 (get_number_const): New function.
1771 (get_number): Rewrite using get_number_const.
1772 (init_number_or_range): Make "string" const.
1773 (number_is_in_list): Make "list" const.
1774 * cli/cli-utils.h (get_number_const): Declare.
1775 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1776 (init_number_or_range, number_is_in_list): Update.
1777 * printcmd.c (map_display_numbers): Update.
1778 * value.c (value_from_history_ref): Constify.
1779 * value.h (value_from_history_ref): Update.
1780
5f08566b
TT
17812014-07-30 Tom Tromey <tromey@redhat.com>
1782
1783 * corefile.c (hook_type, call_extra_exec_file_hooks)
1784 (specify_exec_file_hook): Constify.
1785 * exec.c (exec_file_attach): Make "filename" const.
1786 * gdbcore.h (deprecated_exec_file_display_hook)
1787 (specify_exec_file_hook, exec_file_attach): Constify.
1788 * main.c (captured_main): Use catch_command_errors_const.
1789
8981c758
TT
17902014-07-30 Tom Tromey <tromey@redhat.com>
1791
1792 * target.c (open_target): New function.
1793 (add_target_with_completer, add_deprecated_target_alias): Use
1794 set_cmd_sfunc, set_cmd_context.
1795 (debug_to_open): Remove.
1796 (setup_target_debug): Update.
1797
a1c7835a
YQ
17982014-07-30 Yao Qi <yao@codesourcery.com>
1799
1800 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1801 comments.
1802 * parse.c (exp_iterate): Update comments.
1803
976411d6
GB
18042014-07-30 Gary Benson <gbenson@redhat.com>
1805
1806 * common/common-defs.h: New file.
1807 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1808 * defs.h: Include common-defs.h.
1809 Do not include config.h or build-gnulib/config.h.
1810
5d4848a4
GB
18112014-07-30 Gary Benson <gbenson@redhat.com>
1812
1813 * common/common-utils.h: Do not include config.h.
1814 * nat/linux-btrace.h: Likewise.
1815
d41f6d8e
GB
18162014-07-30 Gary Benson <gbenson@redhat.com>
1817
1818 * btrace.c: Include defs.h.
1819 * common/ptid.c: Include defs.h or server.h as appropriate.
1820 * nat/mips-linux-watch.c: Likewise.
1821
84202f9c
TT
18222014-07-29 Tom Tromey <tromey@redhat.com>
1823
1824 * target.c (target_is_pushed): Simplify.
1825
2530441c
JB
18262014-07-29 Joel Brobecker <brobecker@adacore.com>
1827
1828 GDB 7.8 released.
1829
7e09a223
YQ
18302014-07-29 Yao Qi <yao@codesourcery.com>
1831
1832 PR gdb/17206
1833 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1834
7ebdbe92
DE
18352014-07-28 Doug Evans <xdje42@gmail.com>
1836
1837 PR guile/17203
1838 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1839 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1840 parameters.
1841
f347ffc9
WN
18422014-07-28 Will Newton <will.newton@linaro.org>
1843
1844 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1845 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1846 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1847 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1848 (THUMB2_EABI_SYSCALL): Likewise.
1849 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1850 struct tramp_frame.
1851 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1852 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1853
37c5f1f7
DE
18542014-07-27 Doug Evans <xdje42@gmail.com>
1855
1856 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1857
0c3abbc7
DE
18582014-07-27 Doug Evans <xdje42@gmail.com>
1859
1860 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1861
e76c5d17
DE
18622014-07-26 Ludovic Courtès <ludo@gnu.org>
1863 Doug Evans <xdje42@gmail.com>
1864
1865 PR guile/17146
1866 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1867 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1868 * configure.ac: Try to use guild to compile an scm file, if it fails
1869 then disable guile support.
1870 * configure: Regenerate.
1871 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1872 GUILE_FILE_LIST.
1873 (GUILE_COMPILED_FILES): New variable.
1874 (GUILE_FILES) Update.
1875 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1876 (stamp-guile): Compile scm files.
1877 * guile/guile.c (boot_guile_support): New function.
1878 (standard_throw_args_p): New function.
1879 (print_standard_throw_error, print_throw_error): New functions.
1880 (handle_boot_error): New function.
1881 (initialize_scheme_side): Rewrite to call boot_guile_support.
1882 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1883 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1884
186fcde0
DE
18852014-07-26 Ludovic Courtès <ludo@gnu.org>
1886 Doug Evans <xdje42@gmail.com>
1887
1888 PR guile/17146
1889 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1890 * guile/lib/gdb/support.scm: New file.
1891 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1892 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1893 All uses updated.
1894 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1895 All uses updated.
1896 (%assert-type): Ditto, and renamed to assert-type.
1897 (%exception-print-style): Delete.
1898
4df42755
DE
18992014-07-26 Doug Evans <xdje42@gmail.com>
1900
1901 PR build/17105
1902 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1903 * configure: Regenerate.
1904 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1905 PYTHON_FILES.
1906 (PYTHON_FILES): New variable.
1907 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1908 (GUILE_FILES): New variable.
1909 (stamp-python, install-python, uninstall-python): Handle empty
1910 file list.
1911 (stamp-guile, install-guile, uninstall-guile): Ditto.
1912
ee7333ae
DE
19132014-07-26 Doug Evans <xdje42@gmail.com>
1914
1915 PR guile/17177
1916 * guile/lib/gdb.scm (pretty-printers): Export.
1917 (set-pretty-printers!): Export.
1918 * guile/lib/gdb/printing.scm (gdb module): Update.
1919 (prepend-pretty-printer!, append-pretty-printer!): Update.
1920 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1921 (pretty_printer_list_var): Delete.
1922 (pretty_printer_list): New static global.
1923 (gdbscm_pretty_printers): New function.
1924 (gdbscm_set_pretty_printers_x): New function.
1925 (ppscm_find_pretty_printer_from_gdb): Update.
1926 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1927 (gdbscm_initialize_pretty_printers): Update.
1928
74edf516
DE
19292014-07-26 Doug Evans <xdje42@gmail.com>
1930
1931 PR 17185
1932 * configure.ac: Add check for header gc/gc.h.
1933 Add check for function setenv.
1934 * configure: Regenerate.
1935 * config.in: Regenerate.
1936 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1937
d54398a7
MR
19382014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1939
1940 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1941 variation in gdbarch matching.
1942
ab16fce8
TT
19432014-07-25 Tom Tromey <tromey@redhat.com>
1944
1945 * exec.c (using_exec_ops): Remove.
1946 (exec_close_1): Update. Remove extraneous block, reindent.
1947 (add_target_sections): Use target_is_pushed.
1948
88056fbb
PA
19492014-07-25 Pedro Alves <palves@redhat.com>
1950
1951 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1952 * monitor.c (monitor_create_inferior): Likewise.
1953 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1954 * remote-sim.c (gdbsim_create_inferior): Likewise.
1955 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1956 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1957 * windows-nat.c (do_initial_windows_stuff): Likewise.
1958
70509625
PA
19592014-07-25 Pedro Alves <palves@redhat.com>
1960
1961 * NEWS: Mention signal passing and "signal" command changes.
1962 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1963 comment.
1964 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1965 call.
1966 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1967 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1968 (jump_command): Adjust clear_proceed_status call.
1969 (signal_command): Warn if other thread that are resumed have
1970 signals that will be delivered. Adjust clear_proceed_status call.
1971 (until_next_command, finish_command)
1972 (proceed_after_attach_callback, attach_command_post_wait)
1973 (attach_command): Adjust clear_proceed_status call.
1974 * infrun.c (proceed_after_vfork_done): Likewise.
1975 (proceed_after_attach_callback): Adjust comment.
1976 (clear_proceed_status_thread): Clear stop_signal if not in pass
1977 state.
1978 (clear_proceed_status_callback): Delete.
1979 (clear_proceed_status): New 'step' parameter. Only clear the
1980 proceed status of threads the command being prepared is about to
1981 resume.
1982 (proceed): If passed in an explicit signal, override stop_signal
1983 with it. Don't pass the last stop signal to the thread we're
1984 resuming.
1985 (init_wait_for_inferior): Adjust clear_proceed_status call.
1986 (switch_back_to_stepped_thread): Clear the signal if it should not
1987 be passed.
1988 * infrun.h (clear_proceed_status): New 'step' parameter.
1989 (user_visible_resume_ptid): Add comment.
1990 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1991 signal is in pass state.
1992 * remote.c (append_pending_thread_resumptions): Likewise.
1993 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1994
d8be2939
TT
19952014-07-25 Tom Tromey <tromey@redhat.com>
1996
1997 * target.h (target_stopped_data_address)
1998 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1999 parentheses.
2000
7d0d9d2b
PL
20012014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2002
2003 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2004 comments.
2005 (avr_pointer_to_address): Likewise.
2006
e9e7f724
TT
20072014-07-24 Tom Tromey <tromey@redhat.com>
2008
2009 * monitor.c (compile_pattern): Update.
2010 * target.h (struct target_ops) <to_shortname, to_longname,
2011 to_doc>: Now const.
2012
1947513d
TT
20132014-07-24 Tom Tromey <tromey@redhat.com>
2014
2015 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2016 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2017 (add_info_alias, add_com): Make "doc" const.
2018 (print_doc_line): Make "str" const.
2019 (delete_cmd): Update.
2020 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2021 (print_doc_line): Update.
2022 * cli/cli-script.c (document_command): Update.
2023 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2024 (add_com, add_info, add_info_alias): Update.
2025 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2026 * python/py-cmd.c (cmdpy_destroyer): Update.
2027
64e61d29
TT
20282014-07-24 Tom Tromey <tromey@redhat.com>
2029
2030 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2031 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2032 (help_cmd_list): Constify.
2033 (lookup_cmd): Update.
2034 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2035 const.
2036 (help_cmd_list, apropos_cmd): Update.
2037 * cli/cli-script.c (show_user): Update.
2038 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2039 * cli/cli-setshow.h (cmd_show_list): Update.
2040 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2041 (cmd_show_list): Update.
2042 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2043 * python/py-cmd.c (cmdpy_destroyer): Update.
2044
429e55ea
TT
20452014-07-24 Tom Tromey <tromey@redhat.com>
2046
2047 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2048 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2049 const.
2050 * command.h (deprecate_cmd): Update.
2051 * maint.c (maintenance_do_deprecate): Add casts.
2052
64669f3b
TT
20532014-07-24 Tom Tromey <tromey@redhat.com>
2054
2055 * cli/cli-decode.c (help_cmd): Make parameter "const".
2056 * cli/cli-decode.h (help_cmd): Update.
2057
d3d3328b
TT
20582014-07-24 Tom Tromey <tromey@redhat.com>
2059
2060 * stack.c (up_silently_base, down_silently_base): Make argument
2061 const.
2062
414842dc
TT
20632014-07-24 Tom Tromey <tromey@redhat.com>
2064
2065 * solib.c (solib_add): Make "pattern" const.
2066 * solib.h (solib_add): Update.
2067
baa336ce
TT
20682014-07-24 Tom Tromey <tromey@redhat.com>
2069
2070 * remote.c (remote_serial_open, print_packet, putpkt)
2071 (putpkt_binary): Constify.
2072 * remote.h (putpkt): Update.
2073
5a19e2d0
TT
20742014-07-24 Tom Tromey <tromey@redhat.com>
2075
2076 * monitor.c (monitor_open): Make "args" const.
2077 * monitor.h (monitor_open): Update.
2078
fc4baa5e
TT
20792014-07-24 Tom Tromey <tromey@redhat.com>
2080
2081 * maint.c (match_bfd_flags): Make "string" const.
2082 (print_bfd_section_info): Remove casts.
2083 (print_objfile_section_info): Make "string" const.
2084
0d5f0dbe
TT
20852014-07-24 Tom Tromey <tromey@redhat.com>
2086
2087 * inf-child.c (inf_child_open_target): Make "arg" const.
2088 * inf-child.h (inf_child_open_target): Update.
2089
41c77899
TT
20902014-07-24 Tom Tromey <tromey@redhat.com>
2091
2092 * environ.c (unset_in_environ): Make "var" const.
2093 * environ.h (unset_in_environ): Update.
2094
93db0d79
TT
20952014-07-24 Tom Tromey <tromey@redhat.com>
2096
2097 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2098 Make "cmd" const.
2099 (scan_filename_with_cleanup): Likewise.
2100 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2101 Make arguments const.
2102 (restore_command): Update.
2103
36d6eb95
PA
21042014-07-24 Pedro Alves <palves@redhat.com>
2105
2106 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2107
8009206a
TT
21082014-07-24 Tom Tromey <tromey@redhat.com>
2109 Gary Benson <gbenson@redhat.com>
2110
2111 * nat/linux-ptrace.c (additional_flags): New global.
2112 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2113 additional_flags; don't check GDBSERVER.
2114 (linux_ptrace_set_additional_flags): New function.
2115 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2116 Declare.
2117 * linux-nat.c (_initialize_linux_nat): Call
2118 linux_ptrace_set_additional_flags.
2119
a7068b60
TT
21202014-07-24 Tom Tromey <tromey@redhat.com>
2121
2122 * make-target-delegates (munge_type, write_debugmethod): New
2123 functions.
2124 (debug_names): New global.
2125 ($TARGET_DEBUG_PRINTER): New global.
2126 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2127 name.
2128 Write debug methods. Generate init_debug_target.
2129 * target-debug.h: New file.
2130 * target-delegates.c: Rebuild.
2131 * target.c: Include target-debug.h.
2132 (debug_target): Hoist definition.
2133 (target_kill, target_get_section_table, target_memory_map)
2134 (target_flash_erase, target_flash_done, target_detach)
2135 (target_disconnect, target_wait, target_resume)
2136 (target_pass_signals, target_program_signals, target_follow_fork)
2137 (target_mourn_inferior, target_search_memory)
2138 (target_thread_address_space, target_close)
2139 (target_find_new_threads, target_core_of_thread)
2140 (target_verify_memory, target_insert_mask_watchpoint)
2141 (target_remove_mask_watchpoint): Remove targetdebug code.
2142 (debug_to_post_attach, debug_to_prepare_to_store)
2143 (debug_to_files_info, debug_to_insert_breakpoint)
2144 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2145 (debug_to_region_ok_for_hw_watchpoint)
2146 (debug_to_can_accel_watchpoint_condition)
2147 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2148 (debug_to_watchpoint_addr_within_range)
2149 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2150 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2151 (debug_to_terminal_init, debug_to_terminal_inferior)
2152 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2153 (debug_to_terminal_save_ours, debug_to_terminal_info)
2154 (debug_to_load, debug_to_post_startup_inferior)
2155 (debug_to_insert_fork_catchpoint)
2156 (debug_to_remove_fork_catchpoint)
2157 (debug_to_insert_vfork_catchpoint)
2158 (debug_to_remove_vfork_catchpoint)
2159 (debug_to_insert_exec_catchpoint)
2160 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2161 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2162 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2163 (setup_target_debug): Call init_debug_target.
2164 * target.h (TARGET_DEBUG_PRINTER): New macro.
2165 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2166 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2167
2c51604d
GB
21682014-07-24 Gary Benson <gbenson@redhat.com>
2169
2170 * exceptions.h (throw_vfatal): Renamed to...
2171 (throw_vquit): New declaration.
2172 (throw_quit): Likewise.
2173 * exceptions.c (throw_vfatal): Renamed to...
2174 (throw_vquit): New function.
2175 (throw_quit): Likewise.
2176 (throw_error): Call throw_verror rather than throw_it.
2177 * utils.h (vfatal): Removed.
2178 (fatal): Likewise.
2179 * utils.c (vfatal): Removed.
2180 (fatal): Likewise.
2181 (internal_verror): Replaced call to fatal with call to throw_quit.
2182 (quit): Replaced calls to fatal with calls to throw_quit.
2183
34211963
ME
21842014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2185
2186 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2187 target_read_code.
2188
a52b4d3e
ME
21892014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2190
2191 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2192 less than zero in conditional expression.
2193
a8bdc56b
TT
21942014-07-23 Tom Tromey <tromey@redhat.com>
2195
2196 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2197 ($INTRO_PART): Don't match whitespace.
2198 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2199 argument matching.
2200 ($METHOD): Add $METHOD_TRAILER.
2201 (trim): Rewrite.
2202 (scan_target_h): New sub.
2203 Change main loop not to collect state.
2204 * target-delegates.c: Rebuild.
2205
91b52240
GB
22062014-07-23 Gary Benson <gbenson@redhat.com>
2207
2208 * cp-support.c (gdb_demangle): Fix build on systems without
2209 sigaltstack.
2210
45326f6f
JK
22112014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2212
2213 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2214 for reference entry value target data value.
2215
e214cf6c
JK
22162014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2217
2218 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2219 value_available_contents_eq.
2220
bddbbedd
PA
22212014-07-22 Pedro Alves <palves@redhat.com>
2222
2223 * value.c (allocate_optimized_out_value): Don't mark value as
2224 non-lazy.
2225
45c71484
JW
22262014-07-22 Jiong Wang <jiong.wang@arm.com>
2227
2228 * MAINTAINERS (Write After Approval): Update my email address.
2229
9597b22a
DE
22302014-07-20 Doug Evans <dje@google.com>
2231
2232 PR server/17147
2233 * remote.c (putpkt_binary): Add text to error message.
2234
91101fe5
YQ
22352014-07-20 Yao Qi <yao@codesourcery.com>
2236
2237 * eval.c: Remove "Chill" from comments.
2238 * gdbtypes.h: Likewise.
2239 * symtab.h: Likewise.
2240
c9402c95
YQ
22412014-07-20 Yao Qi <yao@codesourcery.com>
2242
2243 * std-operator.def: Update comments to TERNOP_SLICE.
2244
ae8fddda
YQ
22452014-07-20 Yao Qi <yao@codesourcery.com>
2246
2247 * std-operator.def: Remove BINOP_RANGE.
2248 * breakpoint.c (watchpoint_exp_is_const): Update.
2249 * expprint.c (dump_subexp_body_standard): Likewise.
2250 * eval.c (init_array_element): Remove dead code.
2251 (evaluate_subexp_standard): Likewise.
2252
9c816640
YQ
22532014-07-20 Yao Qi <yao@codesourcery.com>
2254
2255 * std-operator.def: Remove BINOP_IN.
2256 * breakpoint.c (watchpoint_exp_is_const): Update.
2257 * eval.c (evaluate_subexp_standard): Likewise.
2258 * expprint.c (dump_subexp_body_standard): Likewise.
2259
164224e9
ME
22602014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2261
2262 * microblaze-tdep.c (microblaze_register_names): Add
2263 the rshr and rslr register names.
2264 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2265 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2266 Use of tdesc_numbered_register. Use of
2267 microblaze_register_g_packet_guesses. Use of
2268 tdesc_use_registers. Use of set_gdbarch_register_type.
2269 (microblaze_register_g_packet_guesses): New.
2270 * microblaze-tdep.h (microblaze_reg_num): Add
2271 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2272 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2273 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2274 * features/microblaze-core.xml: New file.
2275 * features/microblaze-stack-protect.xml: New file.
2276 * features/microblaze-with-stack-protect.c: New file.
2277 * features/microblaze-with-stack-protect.xml: New file.
2278 * features/microblaze.xml: New file.
2279 * features/microblaze.c: New file.
2280 * features/Makefile (microblaze-with-stack-protect): Add
2281 microblaze-with-stack-protect microblaze and microblaze-expedite.
2282 * regformats/microblaze-with-stack-protect.dat: New file.
2283 * regformats/microblaze.dat: New file.
2284 * doc/gdb.texinfo (MicroBlaze Features): Added.
2285
e8b2341c
TT
22862014-07-18 Tom Tromey <tromey@redhat.com>
2287
2288 * exec.c (exec_ops): Now static.
2289 * exec.h (exec_ops): Don't declare.
2290
44e89118
TT
22912014-07-18 Tom Tromey <tromey@redhat.com>
2292
2293 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2294 to find_target_beneath.
2295 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2296 find_target_beneath.
2297 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2298
b0ed115f
TT
22992014-07-18 Tom Tromey <tromey@redhat.com>
2300
2301 PR gdb/17130:
2302 * utils.c (quit): Use target_supports_terminal_ours.
2303 * target.h (target_supports_terminal_ours): Declare.
2304 * target.c (target_supports_delete_record): Don't check
2305 to_delete_record against NULL.
2306 (target_supports_terminal_ours): New function.
2307
e75fdfca
TT
23082014-07-18 Tom Tromey <tromey@redhat.com>
2309
2310 PR gdb/17130:
2311 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2312 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2313 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2314 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2315 * windows-nat.c (windows_xfer_partial): Always delegate.
2316 * record-btrace.c (record_btrace_xfer_partial): Simplify
2317 delegation.
2318 (record_btrace_fetch_registers, record_btrace_store_registers)
2319 (record_btrace_prepare_to_store, record_btrace_resume)
2320 (record_btrace_wait, record_btrace_find_new_threads)
2321 (record_btrace_thread_alive): Likewise.
2322 * procfs.c (procfs_xfer_partial): Always delegate.
2323 * corelow.c (core_xfer_partial): Always delegate.
2324 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2325
83814951
TT
23262014-07-18 Tom Tromey <tromey@redhat.com>
2327
2328 * exec.c (exec_make_note_section): Move earlier.
2329
b8b8facf
DE
23302014-07-17 Doug Evans <dje@google.com>
2331
74b49205 2332 PR gdb/17170
b8b8facf
DE
2333 * maint.c (count_symtabs_and_blocks): Handle NULL
2334 current_program_space.
2335 (report_command_stats): Check global enabled flag in addition to
2336 recorded enabled flag.
2337 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2338
69ff6be5
PA
23392014-07-16 Pedro Alves <palves@redhat.com>
2340
2341 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2342
252db1b5
TT
23432014-07-16 Tom Tromey <tromey@redhat.com>
2344
2345 * target.h (struct target_ops) <to_delete_record>: Reformat
2346 comment.
2347
a432721e
TT
23482014-07-16 Tom Tromey <tromey@redhat.com>
2349
2350 * target-delegates.c: Rebuild.
2351
487d9753
PL
23522014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2353
2354 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2355 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2356 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2357 (avr_pointer_to_address): Likewise.
2358 (avr_address_class_type_flags): New function.
2359 (avr_address_class_type_flags_to_name): Likewise.
2360 (avr_address_class_name_to_type_flags): Likewise.
2361 (avr_gdbarch_init): Set address_class_type_flags,
2362 address_class_type_flags_to_name and
2363 address_class_name_to_type_flags.
2364
57745c90
PA
23652014-07-15 Pedro Alves <palves@redhat.com>
2366
2367 * linux-nat.c (kill_callback): Save errno and work with saved
2368 copy.
2369
2d40be18
SM
23702014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2371
2372 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2373
572f6555
EBM
23742014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2375
2376 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2377 breakpoint support correctly.
2378
cc1c52ad
PA
23792014-07-14 Pedro Alves <palves@redhat.com>
2380
2381 * utils.c (prompt_for_continue): Call target_terminal_ours.
2382
1e973570
PA
23832014-07-14 Pedro Alves <palves@redhat.com>
2384
2385 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2386 catch_errors. Don't re-enable stdin or notify observers where,
2387 and rethrow error.
2388 (fetch_inferior_event_wrapper): Delete.
2389
93d6eb10
PA
23902014-07-14 Pedro Alves <palves@redhat.com>
2391
2392 PR gdb/17072
2393 * top.c: Include "inf-loop.h".
2394 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2395 field.
2396 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2397 was async before.
2398 (gdb_readline_wrapper): Store whether the target is async, and
2399 make it sync.
2400
0017922d
PA
24012014-07-14 Pedro Alves <palves@redhat.com>
2402
2403 PR gdb/17072
2404 * top.c (gdb_readline_wrapper_line): Tweak comment.
2405 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2406 the input handler callback.
2407
94696ad3
PA
24082014-07-14 Pedro Alves <palves@redhat.com>
2409
2410 PR gdb/17072
2411 * main.c: Include event-top.h.
2412 (handle_command_errors): New function.
2413 (catch_command_errors, catch_command_errors_const): Use it.
2414
9d1e69a2
PA
24152014-07-14 Pedro Alves <palves@redhat.com>
2416
2417 * exceptions.c (catch_command_errors, catch_command_errors_const):
2418 Moved to main.c.
2419 * exceptions.h (catch_command_errors_ftype)
2420 (catch_command_errors_const_ftype): Moved to main.c.
2421 (catch_command_errors, catch_command_errors_const): Delete
2422 declarations.
2423 * main.c (catch_command_errors_ftype)
2424 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2425 (catch_command_errors, catch_command_errors_const)): Moved here
2426 from exceptions.c and make static.
2427
feefc97b
PA
24282014-07-14 Pedro Alves <palves@redhat.com>
2429
2430 * exceptions.c (print_any_exception): Delete.
2431 (catch_exceptions_with_msg): Use exception_print instead of
2432 print_any_exception.
2433 (catch_errors): Use exception_fprintf instead of
2434 print_any_exception.
2435 (catch_command_errors, catch_command_errors_const): Use
2436 exception_print instead of print_any_exception.
2437
c933f875
PA
24382014-07-14 Pedro Alves <palves@redhat.com>
2439
2440 * infcall.c (run_inferior_call): Set 'sync_execution' while
2441 running the inferior call.
2442
feb6f816
PA
24432014-07-14 Pedro Alves <palves@redhat.com>
2444
2445 * value.c (value_contents_equal): Delete function.
2446 * value.h (value_contents_equal): Delete declaration.
2447
d98b7a16
TT
24482014-07-14 Tom Tromey <tromey@redhat.com>
2449
2450 PR exp/17106:
2451 * gdbtypes.c (is_dynamic_type_internal): New function, from
2452 is_dynamic_type.
2453 (is_dynamic_type): Rewrite.
2454 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2455 (resolve_dynamic_struct): Likewise.
2456 (resolve_dynamic_type_internal): New function, from
2457 resolve_dynamic_type.
2458 (resolve_dynamic_type): Rewrite.
2459
548740d6
TT
24602014-07-14 Tom Tromey <tromey@redhat.com>
2461
2462 * target.c (target_require_runnable): Also check record_stratum.
2463 Update comment.
2464
808f7ab1
YQ
24652014-07-11 Yao Qi <yao@codesourcery.com>
2466
2467 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2468 thumb_instruction_restores_sp return true.
2469
540314bd
YQ
24702014-07-11 Yao Qi <yao@codesourcery.com>
2471
2472 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2473 (thumb_in_function_epilogue_p): Call
2474 thumb_instruction_restores_sp.
2475
1db01f22
YQ
24762014-07-11 Yao Qi <yao@codesourcery.com>
2477
2478 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2479 'add sp, #imm'.
2480 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2481
3116063b
GB
24822014-07-11 Gary Benson <gbenson@redhat.com>
2483
2484 * amd64-linux-nat.c (gdbcore.h): Remove include.
2485 (regset.h): Likewise.
2486 (nat/linux-btrace.h): Likewise.
2487 (btrace.h): Likewise.
2488 (gdb_assert.h): Likewise.
2489 (string.h): Likewise.
2490 (sys/uio.h): Likewise.
2491 (sys/debugreg.h): Likewise.
2492 (sys/syscall.h): Likewise.
2493 (sys/procfs.h): Likewise.
2494 (sys/user.h): Likewise.
2495 (asm/ptrace.h): Likewise.
2496 (i386-nat.h): Likewise.
2497 * i386-linux-nat.c (i386-nat.h): Likewise.
2498 (regset.h): Likewise.
2499 (target.h): Likewise.
2500 (linux-nat.h): Likewise.
2501 (nat/linux-btrace.h): Likewise.
2502 (btrace.h): Likewise.
2503 (gdb_assert.h): Likewise.
2504 (string.h): Likewise.
2505 (sys/uio.h): Likewise.
2506 (sys/user.h): Likewise.
2507 (sys/procfs.h): Likewise.
2508 (sys/reg.h): Likewise.
2509 (sys/debugreg.h): Likewise.
2510 (ORIG_EAX): Remove definition.
2511
040baaf6
GB
25122014-07-11 Gary Benson <gbenson@redhat.com>
2513
2514 * i386-linux-nat.h: New file.
2515 * x86-linux-nat.h: Likewise.
2516 * x86-linux-nat.c: Likewise.
2517 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2518 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2519 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2520 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2521 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2522 (PTRACE_SETREGSET): Likewise.
2523 (arch_lwp_info): Now in x86-linux-nat.c.
2524 (have_ptrace_getregset): Now in x86-linux-nat.h.
2525 (x86_linux_dr_get): Now in x86-linux-nat.c.
2526 (x86_linux_dr_set): Likewise.
2527 (x86_linux_dr_get_addr): Likewise.
2528 (x86_linux_dr_get_control): Likewise.
2529 (x86_linux_dr_get_status): Likewise.
2530 (update_debug_registers_callback): Likewise.
2531 (x86_linux_dr_set_control): Likewise.
2532 (x86_linux_dr_set_addr): Likewise.
2533 (x86_linux_prepare_to_resume): Likewise.
2534 (x86_linux_new_thread): Likewise.
2535 (x86_linux_new_fork): Likewise.
2536 (x86_linux_get_thread_area): Likewise.
2537 (super_post_startup_inferior): Likewise.
2538 (x86_linux_child_post_startup_inferior): Likewise.
2539 (AMD64_LINUX_USER64_CS): Likewise.
2540 (AMD64_LINUX_X32_DS): Likewise.
2541 (x86_linux_read_description): Likewise.
2542 (x86_linux_enable_btrace): Likewise.
2543 (x86_linux_disable_btrace): Likewise.
2544 (x86_linux_teardown_btrace): Likewise.
2545 (x86_linux_read_btrace): Likewise.
2546 (x86_linux_create_target): Likewise.
2547 (x86_linux_add_target): Likewise.
2548 * i386-linux-nat.c (x86-linux-nat.h): New include.
2549 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2550 (PTRACE_SETREGSET): Likewise.
2551 (arch_lwp_info): Now in x86-linux-nat.c.
2552 (have_ptrace_getregset): Now in x86-linux-nat.h.
2553 (x86_linux_dr_get): Now in x86-linux-nat.c.
2554 (x86_linux_dr_set): Likewise.
2555 (x86_linux_dr_get_addr): Likewise.
2556 (x86_linux_dr_get_control): Likewise.
2557 (x86_linux_dr_get_status): Likewise.
2558 (update_debug_registers_callback): Likewise.
2559 (x86_linux_dr_set_control): Likewise.
2560 (x86_linux_dr_set_addr): Likewise.
2561 (x86_linux_prepare_to_resume): Likewise.
2562 (x86_linux_new_thread): Likewise.
2563 (x86_linux_new_fork): Likewise.
2564 (x86_linux_get_thread_area): Likewise.
2565 (super_post_startup_inferior): Likewise.
2566 (x86_linux_child_post_startup_inferior): Likewise.
2567 (AMD64_LINUX_USER64_CS): Likewise.
2568 (AMD64_LINUX_X32_DS): Likewise.
2569 (x86_linux_read_description): Likewise.
2570 (x86_linux_enable_btrace): Likewise.
2571 (x86_linux_disable_btrace): Likewise.
2572 (x86_linux_teardown_btrace): Likewise.
2573 (x86_linux_read_btrace): Likewise.
2574 (x86_linux_create_target): Likewise.
2575 (x86_linux_add_target): Likewise.
2576
1aa7e42c
GB
25772014-07-11 Gary Benson <gbenson@redhat.com>
2578
2579 * amd64-linux-nat.c: Comment and whitespace changes.
2580 * i386-linux-nat.c: Comment and whitespace changes.
2581
c1e246a0
GB
25822014-07-11 Gary Benson <gbenson@redhat.com>
2583
2584 * amd64-linux-nat.c (x86_linux_create_target): New function.
2585 (x86_linux_add_target): Likewise.
2586 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2587 * i386-linux-nat.c (x86_linux_create_target): New function.
2588 (x86_linux_add_target): Likewise.
2589 (_initialize_i386_linux_nat): Delegate to the above new functions.
2590
8c420b8d
GB
25912014-07-11 Gary Benson <gbenson@redhat.com>
2592
2593 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2594 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2595 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2596 (ps_get_thread_area): Delegate to the above.
2597
cb1da100
GB
25982014-07-11 Gary Benson <gbenson@redhat.com>
2599
2600 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2601 x86_linux_read_description. All uses updated. amd64-specific
2602 code conditionalized. Conditionalized i386-specific code added.
2603 Redundant cast removed.
2604 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2605 x86_linux_read_description. All uses updated. i386-specific
2606 code conditionalized. Conditionalized amd64-specific code added.
2607 One sizeof replaced with the actual type it is describing.
2608
2acf3cd0
GB
26092014-07-11 Gary Benson <gbenson@redhat.com>
2610
2611 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2612 x86_linux_dr_get. All uses updated.
2613 (amd64_linux_dr_set): Renamed to
2614 x86_linux_dr_set. All uses updated.
2615 (amd64_linux_dr_get_addr): Renamed to
2616 x86_linux_dr_get_addr. All uses updated.
2617 (amd64_linux_dr_get_control): Renamed to
2618 x86_linux_dr_get_control. All uses updated.
2619 (amd64_linux_dr_get_status): Renamed to
2620 x86_linux_dr_get_status. All uses updated.
2621 (amd64_linux_dr_set_control): Renamed to
2622 x86_linux_dr_set_control. All uses updated.
2623 (amd64_linux_dr_set_addr): Renamed to
2624 x86_linux_dr_set_addr. All uses updated.
2625 (amd64_linux_prepare_to_resume): Renamed to
2626 x86_linux_prepare_to_resume. All uses updated.
2627 (amd64_linux_new_thread): Renamed to
2628 x86_linux_new_thread. All uses updated.
2629 (amd64_linux_new_fork): Renamed to
2630 x86_linux_new_fork. All uses updated.
2631 (amd64_linux_child_post_startup_inferior): Renamed to
2632 x86_linux_child_post_startup_inferior. All uses updated.
2633 (amd64_linux_enable_btrace): Renamed to
2634 x86_linux_enable_btrace. All uses updated.
2635 (amd64_linux_disable_btrace): Renamed to
2636 x86_linux_disable_btrace. All uses updated.
2637 (amd64_linux_teardown_btrace): Renamed to
2638 x86_linux_teardown_btrace. All uses updated.
2639 (amd64_linux_read_btrace): Renamed to
2640 x86_linux_read_btrace. All uses updated.
2641 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2642 x86_linux_dr_get. All uses updated.
2643 (i386_linux_dr_set): Renamed to
2644 x86_linux_dr_set. All uses updated.
2645 (i386_linux_dr_get_addr): Renamed to
2646 x86_linux_dr_get_addr. All uses updated.
2647 (i386_linux_dr_get_control): Renamed to
2648 x86_linux_dr_get_control. All uses updated.
2649 (i386_linux_dr_get_status): Renamed to
2650 x86_linux_dr_get_status. All uses updated.
2651 (i386_linux_dr_set_control): Renamed to
2652 x86_linux_dr_set_control. All uses updated.
2653 (i386_linux_dr_set_addr): Renamed to
2654 x86_linux_dr_set_addr. All uses updated.
2655 (i386_linux_prepare_to_resume): Renamed to
2656 x86_linux_prepare_to_resume. All uses updated.
2657 (i386_linux_new_thread): Renamed to
2658 x86_linux_new_thread. All uses updated.
2659 (i386_linux_new_fork): Renamed to
2660 x86_linux_new_fork. All uses updated.
2661 (i386_linux_child_post_startup_inferior): Renamed to
2662 x86_linux_child_post_startup_inferior. All uses updated.
2663 (i386_linux_enable_btrace): Renamed to
2664 x86_linux_enable_btrace. All uses updated.
2665 (i386_linux_disable_btrace): Renamed to
2666 x86_linux_disable_btrace. All uses updated.
2667 (i386_linux_teardown_btrace): Renamed to
2668 x86_linux_teardown_btrace. All uses updated.
2669 (i386_linux_read_btrace): Renamed to
2670 x86_linux_read_btrace. All uses updated.
2671
b9c1d481
AS
26722014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2673
2674 * remote.c (extended_remote_post_attach): New function.
2675 (init_extended_remote_ops): Install it as to_post_attach method.
2676
7180e04a
PA
26772014-07-09 Pedro Alves <palves@redhat.com>
2678
2679 * infcmd.c (attach_command_post_wait): Don't call
2680 target_terminal_inferior here.
2681 (attach_command): Call it here instead.
2682
9a9a7608
AB
26832014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2686 field.
2687 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2688 from varobj.c, with additional checks.
2689 (c_varobj_ops): Fill in is_path_expr_parent field.
2690 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2691 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2692 field.
2693 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2694 ops method.
2695 (varobj_default_is_path_expr_parent): New function.
2696 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2697 (varobj_default_is_path_expr_parent): Declare new function.
2698
1f267ae3
MM
26992014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2700
2701 * infcmd.c (finish_backward): Turn internal error into normal error.
2702
b2ee242b
PA
27032014-07-07 Pedro Alves <palves@redhat.com>
2704
8a869bca 2705 PR gdb/17096
b2ee242b
PA
2706 * remote.c (async_handle_remote_sigint)
2707 (async_handle_remote_sigint_twice): Call
2708 gdb_call_async_signal_handler instead of
2709 mark_async_signal_handler.
2710
38e229b2
TT
27112014-07-07 Tom Tromey <tromey@redhat.com>
2712
2713 * target-delegates.c: Rebuild.
2714 * target.c (target_info_record): Remove.
2715 * record.c (info_record_command): Unconditionally call
2716 to_info_record.
2717 * target.h (struct target_ops) <to_info_record>: Use
2718 TARGET_DEFAULT_IGNORE.
2719 (target_info_record): Remove.
2720
f0f9ff95
TT
27212014-07-07 Tom Tromey <tromey@redhat.com>
2722
2723 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2724 TARGET_DEFAULT_NORETURN.
2725 * target.c (generic_tls_error): New function.
2726 (target_translate_tls_address): Don't search target stack.
2727 * target-delegates.c: Rebuild.
2728 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2729 stack.
2730 * linux-thread-db.c (thread_db_get_thread_local_address):
2731 Unconditionally call beneath target.
2732
4a5be5ee
MK
27332014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2734
2735 * cli/cli-logging.c (pop_output_files): Assign targerr to
2736 gdb_stdtargerr.
2737
92c3b204
AB
27382014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * MAINTAINERS (Write After Approval): Update my email address.
2741
9b11e3a7
GB
27422014-07-02 Gary Benson <gbenson@redhat.com>
2743
2744 * proc-service.c (ps_xfer_memory): Update comment.
2745 (ps_pstop): Remove unused function.
2746 (ps_pcontinue): Likewise.
2747 (ps_lstop): Likewise.
2748 (ps_lcontinue): Likewise.
2749 (ps_lgetxregsize): Likewise.
2750 (ps_lgetxregs): Likewise.
2751 (ps_lsetxregs): Likewise.
2752 (ps_plog): Likewise.
2753 (ps_ptread): Likewise.
2754 (ps_ptwrite): Likewise.
2755
cf363f18
MW
27562014-07-01 Mark Wielaard <mjw@redhat.com>
2757
2758 * dwarf2read.c (add_array_cv_type): New function.
2759 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2760 (read_tag_volatile_type): Likewise.
2761
82ae6c8d
TT
27622014-07-01 Tom Tromey <tromey@redhat.com>
2763
2764 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2765 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2766 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2767 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2768 * command.h (cmd_cfunc_ftype): Move earlier.
2769 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2770 (add_com, add_info): Use cmd_cfunc_ftype.
2771
96142726
TT
27722014-06-30 Tom Tromey <tromey@redhat.com>
2773
2774 * symtab.c (operator_chars): Make parameters and return type
2775 const.
2776 (file_matches): Make "files" const.
2777 (struct search_symbols_data) <files>: Now const.
2778 (search_symbols): Make "regexp" and "files" parameters const.
2779 Update.
2780 (symtab_symbol_info): Remove cast.
2781 (rbreak_command): Update.
2782 * symtab.h (search_symbols): Update.
2783
b67a2c6f
YQ
27842014-06-27 Yao Qi <yao@codesourcery.com>
2785
2786 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2787 Change parameter type to 'struct thread_info *'. Caller
2788 updated.
2789 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2790 Update declaration.
2791 * dummy-frame.c (struct dummy_frame_id): New.
2792 (dummy_frame_id_eq): New function.
2793 (struct dummy_frame) <id>: Change its type to 'struct
2794 dummy_frame_id'.
2795 (dummy_frame_push): Add parameter ptid and save it in
2796 dummy_frame_id.
2797 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2798 inferior_ptid.
2799 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2800 to inferior_ptid.
2801 (lookup_dummy_frame): Change parameter type to 'struct
2802 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2803 instead of frame_id_eq.
2804 (dummy_frame_pop): Add parameter ptid. Callers updated.
2805 Update comments. Compose dummy_frame_id and pass it to
2806 lookup_dummy_frame.
2807 (dummy_frame_discard): Add parameter ptid.
2808 (dummy_frame_sniffer): Compose dummy_frame_id and call
2809 dummy_frame_id_eq instead of frame_id_eq.
2810 (fprint_dummy_frames): Print ptid.
2811 * dummy-frame.h: Remove comments.
2812 (dummy_frame_push): Add ptid in declaration.
2813 (dummy_frame_pop, dummy_frame_discard): Likewise.
2814
5b10184c
TT
28152014-06-26 Tom Tromey <tromey@redhat.com>
2816
2817 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2818 * command.h (error_no_arg): Update.
2819
06900326
TT
28202014-06-26 Tom Tromey <tromey@redhat.com>
2821
2822 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2823 (do_show_command): Make "arg" const.
2824 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2825
c2bcbb1d
TT
28262014-06-26 Tom Tromey <tromey@redhat.com>
2827
2828 * record-full.c (record_full_get_bookmark): Make "args" const.
2829 (record_full_goto_bookmark): Make "raw_bookmark" const.
2830 * record.c (record_goto): New function.
2831 (cmd_record_goto): Use it. Now static.
2832 * record.h (record_goto): Declare.
2833 (cmd_record_goto): Remove declaration.
2834 * target-delegates.c: Rebuild.
2835 * target.h (struct target_ops) <to_get_bookmark,
2836 to_goto_bookmark>: Make parameter const.
2837
9cbe5fff
TT
28382014-06-26 Tom Tromey <tromey@redhat.com>
2839
2840 * defs.h (generic_load): Update.
2841 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2842 * monitor.c (monitor_load): Make "args" const.
2843 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2844 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2845 const.
2846 (mips_load): Make "file" const.
2847 * remote-sim.c (gdbsim_load): Make "args" const.
2848 * remote.c (remote_load): Make "name" const.
2849 * symfile.c (generic_load): Make "args" const.
2850 * target-delegates.c: Rebuild.
2851 * target.c (target_load): Make "arg" const.
2852 (debug_to_load): Make "args" const.
2853 * target.h (struct target_ops) <to_load>: Make parameter const.
2854 (target_load): Update.
2855
34a68019
TT
28562014-06-26 Tom Tromey <tromey@redhat.com>
2857
2858 PR symtab/16902:
2859 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2860 (dwarf2_physname, read_partial_die)
2861 (guess_partial_die_structure_name, fixup_partial_die)
2862 (guess_full_die_structure_name, anonymous_struct_prefix)
2863 (dwarf2_name): Use per-BFD obstack.
2864
efc889c1
YQ
28652014-06-26 Yao Qi <yao@codesourcery.com>
2866
2867 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2868 dummyframe and this_id into inner block below.
2869
4395285e
YQ
28702014-06-26 Yao Qi <yao@codesourcery.com>
2871
2872 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2873 with "signal_pass[0]" in the initialization of signal_pass.
2874
aef92902
MM
28752014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2876
2877 * record-btrace.c (record_btrace_generating_corefile)
2878 (record_btrace_prepare_to_generate_core)
2879 (record_btrace_done_generating_core): New.
2880 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2881 (record_btrace_store_registers, record_btrace_prepare_to_store):
2882 Forward request when generating a core file.
2883 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2884 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2885 to_done_generating_core.
2886
5fff78c4
MM
28872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2888
2889 * target.h (target_ops) <to_prepare_to_generate_core>
2890 <to_done_generating_core>: New.
2891 (target_prepare_to_generate_core, target_done_generating_core): New.
2892 * target.c (target_prepare_to_generate_core)
2893 (target_done_generating_core): New.
2894 * target-delegates.c: Regenerate.
2895 * gcore.c: (write_gcore_file): Rename to ...
2896 (write_gcore_file_1): ...this.
2897 (write_gcore_file): Call target_prepare_to_generate_core
2898 and target_done_generating_core.
2899
1d1f1ccb
MM
29002014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2901
2902 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2903 * gcore.c (write_gcore_file): Free memory returned from
2904 make_corefile_notes.
2905 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2906 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2907
3343ef86
YQ
29082014-06-24 Yao Qi <yao@codesourcery.com>
2909
2910 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2911 (arm_linux_init_abi): Set skip_trampoline_code with
2912 gdbarch_skip_trampoline_code instead of
2913 find_solib_trampoline_target.
2914
18d18ac8
YQ
29152014-06-24 Yao Qi <yao@codesourcery.com>
2916
2917 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2918 arm_skip_bx_reg returns non-zero.
2919
80d8d390
YQ
29202014-06-24 Yao Qi <yao@codesourcery.com>
2921
2922 * arm-tdep.c (arm_skip_bx_reg): New function.
2923 (arm_skip_stub): Call arm_skip_bx_reg.
2924
6a18a01c
DB
29252014-06-23 Don Breazeal <donb@codesourcery.com>
2926
2927 * MAINTAINERS: Add myself as write-after-approval maintainer.
2928
8e9db26e
PA
29292014-06-23 Pedro Alves <palves@redhat.com>
2930
2931 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2932 DR_CONTROL before setting DR0..DR3.
2933 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2934 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2935 bits of DR_CONTROL related to the debug register slot being
2936 disabled. If all slots are vacant, clear local slowdown as well,
2937 and assert DR_CONTROL is 0.
2938
70afc5b7
SC
29392014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2940
2941 * python/lib/gdb/command/xmethods.py
2942 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2943 current progspace only if the string "progspace" matches LOCUS_RE.
2944
840ed64d
JK
29452014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2946
2947 Fix --with-system-readline with readline-6.3 patch 5.
2948 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2949 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2950 types.
2951
26f2dc30
TT
29522014-06-20 Tom Tromey <tromey@redhat.com>
2953
2954 * dwarf2read.c (dw2_get_real_path): Use correct type in
2955 OBSTACK_CALLOC.
2956 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2957
125f8a3d
GB
29582014-06-20 Gary Benson <gbenson@redhat.com>
2959
2960 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2961 * common/glibc_thread_db.h: Likewise.
2962 * common/i386-cpuid.h: Likewise.
2963 * common/i386-gcc-cpuid.h: Likewise.
2964 * common/linux-btrace.h: Likewise.
2965 * common/linux-osdata.h: Likewise.
2966 * common/linux-procfs.h: Likewise.
2967 * common/linux-ptrace.h: Likewise.
2968 * common/mips-linux-watch.h: Likewise.
2969 * common/linux-btrace.c: Moved to nat.
2970 * common/linux-osdata.c: Likewise.
2971 * common/linux-procfs.c: Likewise.
2972 * common/linux-ptrace.c: Likewise.
2973 * common/mips-linux-watch.c: Likewise.
2974 * nat/gdb_thread_db.h: Moved from common.
2975 * nat/glibc_thread_db.h: Likewise.
2976 * nat/i386-cpuid.h: Likewise.
2977 * nat/i386-gcc-cpuid.h: Likewise.
2978 * nat/linux-btrace.c: Likewise.
2979 * nat/linux-btrace.h: Likewise.
2980 * nat/linux-osdata.c: Likewise.
2981 * nat/linux-osdata.h: Likewise.
2982 * nat/linux-procfs.c: Likewise.
2983 * nat/linux-procfs.h: Likewise.
2984 * nat/linux-ptrace.c: Likewise.
2985 * nat/linux-ptrace.h: Likewise.
2986 * nat/mips-linux-watch.c: Likewise.
2987 * nat/mips-linux-watch.h: Likewise.
2988 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2989 (object file files): Reordered.
2990 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2991 of glibc_thread_db.h.
2992
42995dbd
GB
29932014-06-20 Gary Benson <gbenson@redhat.com>
2994
2995 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2996 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2997 (i386_dr_low): Likewise.
2998 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2999 (i386_dr_low_set_addr): Likewise.
3000 (i386_dr_low_get_addr): Likewise.
3001 (i386_dr_low_can_set_control): Likewise.
3002 (i386_dr_low_set_control): Likewise.
3003 (i386_dr_low_get_control): Likewise.
3004 (i386_dr_low_get_status): Likewise.
3005 (i386_get_debug_register_length): Likewise.
3006 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3007 (i386_dr_low): Likewise.
3008 * nat/i386-dregs.c (i386-low.h): Remove include.
3009 (i386-nat.h): Likewise.
3010 (nat/i386-dregs.h): New include.
3011 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3012 (i386_dr_low_set_addr): Likewise.
3013 (i386_dr_low_get_addr): Likewise.
3014 (i386_dr_low_can_set_control): Likewise.
3015 (i386_dr_low_set_control): Likewise.
3016 (i386_dr_low_get_control): Likewise.
3017 (i386_dr_low_get_status): Likewise.
3018 (i386_get_debug_register_length): Likewise.
3019 (debug_hw_points): Likewise.
3020
3ed9baed
IB
30212014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3022
3023 * Makefile.in (SFILES): Add d-exp.y.
3024 (YYFILES): Add d-exp.c.
3025 (YYOBJ): Add d-exp.o.
3026 (local-maintainer-clean): Delete d-exp.c.
3027 * d-exp.y: New file.
3028 * d-lang.h (d_parse): New declaration.
3029 (d_error): New declaration.
3030 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3031 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3032 PREC_ORDER operators.
3033 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3034
78c164b0
YQ
30352014-06-19 Yao Qi <yao@codesourcery.com>
3036
3037 * gdbthread.h (any_running): Remove the declaration.
3038 * thread.c (any_running): Remove.
3039
f6e29b6e
YQ
30402014-06-19 Yao Qi <yao@codesourcery.com>
3041
3042 * gdbthread.h (struct thread_info) <state>: Change its type to
3043 'enum thread_state'. Update comments.
3044
034f788c
PA
30452014-06-19 Pedro Alves <palves@redhat.com>
3046
3047 * gdbthread.h (ALL_THREADS): Delete.
3048 (ALL_NON_EXITED_THREADS): New macro.
3049 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3050 instead of ALL_THREADS.
3051 * infrun.c (find_thread_needs_step_over)
3052 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3053 instead of ALL_THREADS.
3054 * record-btrace.c (record_btrace_open)
3055 (record_btrace_stop_recording, record_btrace_close)
3056 (record_btrace_is_replaying, record_btrace_resume)
3057 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3058 * remote.c (append_pending_thread_resumptions): Likewise.
3059 * thread.c (thread_apply_all_command): Likewise.
3060
46e33252
GB
30612014-06-19 Gary Benson <gbenson@redhat.com>
3062
3063 * i386-nat.c (i386_stopped_by_watchpoint):
3064 Use i386_dr_stopped_by_watchpoint.
3065 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3066 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3067
3a8ee006
GB
30682014-06-19 Gary Benson <gbenson@redhat.com>
3069
3070 * nat/i386-dregs.c: New file.
3071 * Makefile.in (i386-dregs.o): New rule.
3072 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3073 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3074 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3075 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3076 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3077 * config/i386/go32.mh (NATDEPFILES): Likewise.
3078 * config/i386/linux.mh (NATDEPFILES): Likewise.
3079 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3080 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3081 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3082 * i386-nat.h (debug_hw_points): New declaration.
3083 * i386-nat.c (breakpoint.h): Remove include.
3084 (command.h): Likewise.
3085 (target.h): Likewise.
3086 (gdb_assert.h): Likewise.
3087 (debug_hw_points): Made nonstatic.
3088 (debug_printf): Now in i386-dregs.c.
3089 (TARGET_HAS_DR_LEN_8): Likewise.
3090 (DR_CONTROL_SHIFT): Likewise.
3091 (DR_CONTROL_SIZE): Likewise.
3092 (DR_RW_EXECUTE): Likewise.
3093 (DR_RW_WRITE): Likewise.
3094 (DR_RW_READ): Likewise.
3095 (DR_RW_IORW): Likewise.
3096 (DR_LEN_1): Likewise.
3097 (DR_LEN_2): Likewise.
3098 (DR_LEN_4): Likewise.
3099 (DR_LEN_8): Likewise.
3100 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3101 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3102 (DR_ENABLE_SIZE): Likewise.
3103 (DR_LOCAL_SLOWDOWN): Likewise.
3104 (DR_GLOBAL_SLOWDOWN): Likewise.
3105 (DR_CONTROL_RESERVED): Likewise.
3106 (I386_DR_CONTROL_MASK): Likewise.
3107 (I386_DR_VACANT): Likewise.
3108 (I386_DR_LOCAL_ENABLE): Likewise.
3109 (I386_DR_GLOBAL_ENABLE): Likewise.
3110 (I386_DR_DISABLE): Likewise.
3111 (I386_DR_SET_RW_LEN): Likewise.
3112 (I386_DR_GET_RW_LEN): Likewise.
3113 (I386_DR_WATCH_HIT): Likewise.
3114 (i386_wp_op_t): Likewise.
3115 (i386_show_dr): Likewise.
3116 (i386_length_and_rw_bits): Likewise.
3117 (i386_insert_aligned_watchpoint): Likewise.
3118 (i386_remove_aligned_watchpoint): Likewise.
3119 (i386_handle_nonaligned_watchpoint): Likewise.
3120 (i386_update_inferior_debug_regs): Likewise.
3121 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3122 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3123 (i386_region_ok_for_watchpoint):
3124 Use i386_dr_region_ok_for_watchpoint.
3125 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3126
322a8e06
GB
31272014-06-19 Gary Benson <gbenson@redhat.com>
3128
3129 * i386-nat.c (i386_insert_hw_breakpoint): Use
3130 i386_insert_watchpoint.
3131 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3132
8f26655c
GB
31332014-06-19 Gary Benson <gbenson@redhat.com>
3134
3135 * i386-nat.c (i386_dr_show): Renamed to
3136 i386_show_dr and made static. All uses updated.
3137 (i386_dr_length_and_rw_bits): Renamed to
3138 i386_length_and_rw_bits and made static.
3139 All uses updated.
3140 (i386_dr_insert_aligned_watchpoint): Renamed to
3141 i386_insert_aligned_watchpoint and made static.
3142 All uses updated.
3143 (i386_dr_remove_aligned_watchpoint): Renamed to
3144 i386_remove_aligned_watchpoint and made static.
3145 All uses updated.
3146 (i386_dr_update_inferior_debug_regs): Renamed to
3147 i386_update_inferior_debug_regs and made static.
3148 All uses updated.
3149 * nat/i386-dregs.h (i386_dr_show): Removed.
3150 (i386_dr_length_and_rw_bits): Likewise.
3151 (i386_dr_insert_aligned_watchpoint): Likewise.
3152 (i386_dr_remove_aligned_watchpoint): Likewise.
3153 (i386_dr_update_inferior_debug_regs): Likewise.
3154
992c7d70
GB
31552014-06-19 Gary Benson <gbenson@redhat.com>
3156
3157 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3158 * configure: Regenerate.
3159 * config.in: Likewise.
3160 * main.c (signal.h): New include.
3161 (setup_alternate_signal_stack): New function.
3162 (captured_main): Call the above.
3163 * cp-support.c (signal.h): New include.
3164 (catch_demangler_crashes): New flag.
3165 (SIGJMP_BUF): New define.
3166 (SIGSETJMP): Likewise.
3167 (SIGLONGJMP): Likewise.
3168 (gdb_demangle_jmp_buf): New static global.
3169 (gdb_demangle_attempt_core_dump): Likewise.
3170 (gdb_demangle_signal_handler): New function.
3171 (gdb_demangle): If catch_demangler_crashes is set, install the
3172 above signal handler before calling bfd_demangle, and restore
3173 the original signal handler afterwards. Display the offending
3174 symbol and call demangler_warning the first time a segmentation
3175 fault is caught.
3176 (_initialize_cp_support): New maint set/show command.
3177
eae7090b
GB
31782014-06-19 Gary Benson <gbenson@redhat.com>
3179
3180 * utils.h (resource_limit_kind): New enum.
3181 (can_dump_core): New declaration.
3182 (warn_cant_dump_core): Likewise.
3183 (dump_core): Likewise.
3184 * utils.c (dump_core): Made nonstatic. Added new
3185 parameter "limit_kind".
3186 (can_dump_core): Made nonstatic. Moved printing code to...
3187 (warn_cant_dump_core): New function.
3188 (can_dump_core_warn): Likewise.
3189 (internal_vproblem): Replace calls to can_dump_core with
3190 calls to can_dump_core_warn. Supply new argument to each.
3191
57fcfb1b
GB
31922014-06-19 Gary Benson <gbenson@redhat.com>
3193
3194 * utils.h (demangler_vwarning): New declaration.
3195 (demangler_warning): Likewise.
3196 * utils.c (struct internal_problem)
3197 <user_settable_should_quit>: New field.
3198 <user_settable_should_dump_core>: Likewise
3199 (internal_error_problem): Add values for above new fields.
3200 (internal_warning_problem): Likewise.
3201 (demangler_warning_problem): New static global.
3202 (demangler_vwarning): New function.
3203 (demangler_warning): Likewise.
3204 (add_internal_problem_command): Selectively add commands.
3205 (_initialize_utils): New internal problem command.
3206 * maint.c (maintenance_demangler_warning): New function.
3207 (_initialize_maint_cmds): New command.
3208
17a40b44
TT
32092014-06-18 Tom Tromey <tromey@redhat.com>
3210
3211 * f-valprint.c (info_common_command_for_block): Update.
3212 * symtab.h (struct general_symbol_info) <common_block>: Now
3213 const.
3214
346d1dfe
TT
32152014-06-18 Tom Tromey <tromey@redhat.com>
3216
3217 * symtab.h (struct symtab) <blockvector>: Now const.
3218 * ada-lang.c (ada_add_global_exceptions): Update.
3219 * buildsym.c (augment_type_symtab): Update.
3220 * dwarf2read.c (dw2_lookup_symbol): Update.
3221 * jit.c (finalize_symtab): Update.
3222 * jv-lang.c (add_class_symtab_symbol): Update.
3223 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3224 Update.
3225 * objfiles.c (objfile_relocate1): Update.
3226 * psymtab.c (lookup_symbol_aux_psymtabs)
3227 (maintenance_check_psymtabs): Update.
3228 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3229 Update.
3230 * spu-tdep.c (spu_catch_start): Update.
3231 * symmisc.c (dump_symtab_1): Update.
3232 * symtab.c (lookup_global_symbol_from_objfile)
3233 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3234 (basic_lookup_transparent_type_quick)
3235 (basic_lookup_transparent_type, find_pc_sect_symtab)
3236 (find_pc_sect_line, search_symbols): Update.
3237 * block.c (find_block_in_blockvector): Make "bl" const.
3238 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3239 const.
3240 (blockvector_contains_pc): Make "bv" const.
3241 (block_for_pc_sect): Update.
3242 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3243 (blockvector_contains_pc): Update.
3244 * breakpoint.c (resolve_sal_pc): Update.
3245 * inline-frame.c (block_starting_point_at): Update.
3246
1834676b
TT
32472014-06-18 Tom Tromey <tromey@redhat.com>
3248
3249 * completer.c (complete_line): Make "line_buffer" const.
3250 * completer.h (complete_line): Update.
3251
ac1a991b
TT
32522014-06-18 Tom Tromey <tromey@redhat.com>
3253
3254 * symtab.c (add_macro_name): Remove unneeded cast.
3255
5bc98e52
TT
32562014-06-18 Tom Tromey <tromey@redhat.com>
3257
3258 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3259 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3260
8236def8
TT
32612014-06-18 Tom Tromey <tromey@redhat.com>
3262
3263 * probe.c (info_probes_for_ops): Make "arg" const.
3264 * probe.h (info_probes_for_ops): Update.
3265
3977b71f
TT
32662014-06-18 Tom Tromey <tromey@redhat.com>
3267
3268 * varobj.c (varobj_create): Update.
3269 * valops.c (value_of_this): Update.
3270 * tracepoint.c (add_local_symbols, scope_info): Update.
3271 * symtab.h (struct general_symbol_info) <block>: Now const.
3272 * symtab.c (skip_prologue_sal)
3273 (default_make_symbol_completion_list_break_on)
3274 (skip_prologue_using_sal): Update.
3275 * stack.h (iterate_over_block_locals)
3276 (iterate_over_block_local_vars): Update.
3277 * stack.c (print_frame_args): Update.
3278 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3279 parameter const.
3280 (get_selected_block): Make return type const.
3281 * python/py-frame.c (frapy_block): Update.
3282 * python/py-block.c (gdbpy_block_for_pc): Update.
3283 * p-exp.y (%union) <bval>: Now const.
3284 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3285 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3286 * m2-exp.y (%union) <bval>: Now const.
3287 * linespec.c (get_current_search_block): Make return type const.
3288 (create_sals_line_offset, find_label_symbols): Update.
3289 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3290 Update.
3291 (block_starting_point_at): Make "block" const.
3292 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3293 (check_exception_resume): Update.
3294 * guile/scm-frame.c (gdbscm_frame_block): Update.
3295 * guile/scm-block.c (gdbscm_lookup_block): Update.
3296 * frame.h (get_frame_block): Update.
3297 (get_selected_block): Make return type const.
3298 * frame.c (frame_id_inner): Update.
3299 * f-valprint.c (info_common_command_for_block)
3300 (info_common_command): Update.
3301 * dwarf2loc.c (dwarf2_find_location_expression)
3302 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3303 (locexpr_describe_location_piece): Update.
3304 * c-exp.y (%union) <bval>: Now const.
3305 * breakpoint.c (resolve_sal_pc): Update.
3306 * blockframe.c (get_frame_block):Make return type const.
3307 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3308 (block_innermost_frame): Update.
3309 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3310 (block_for_pc, block_for_pc_sect): Update.
3311 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3312 'pblock' const.
3313 (block_for_pc_sect, block_for_pc): Make return type const.
3314 * ax-gdb.c (gen_expr): Update.
3315 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3316 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3317 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3318 (ada_read_var_value): Update.
3319 * ada-exp.y (struct name_info) <block>: Now const.
3320 (%union): Likewise.
3321 (block_lookup): Constify.
3322
b9228891
GB
33232014-06-18 Gary Benson <gbenson@redhat.com>
3324
3325 * nat/i386-dregs.h: New file.
3326 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3327 * i386-nat.h (i386-dregs.h): New include.
3328 (DR_FIRSTADDR): Now in i386-dregs.h.
3329 (DR_LASTADDR): Likewise.
3330 (DR_NADDR): Likewise.
3331 (DR_STATUS): Likewise.
3332 (DR_CONTROL): Likewise.
3333 (i386_debug_reg_state): Likewise.
3334 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3335
a1aa2221
LM
33362014-06-18 Don Breazeal <donb@codesourcery.com>
3337
3338 * breakpoint.c (set_longjmp_breakpoint): Call
3339 momentary_breakpoint_from_master with additional argument.
3340 (set_longjmp_breakpoint_for_call_dummy): Call
3341 momentary_breakpoint_from_master with additional argument.
3342 (set_std_terminate_breakpoint): Call
3343 momentary_breakpoint_from_master with additional argument.
3344 (momentary_breakpoint_from_master): Add argument to function
3345 definition and use it to initialize structure member flag.
74228e77 3346 (clone_momentary_breakpoint): Call
a1aa2221
LM
3347 momentary_breakpoint_from_master with additional argument.
3348 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3349 member flags set in momentary_breakpoint_from_master.
3350
4be83cc2
GB
33512014-06-18 Gary Benson <gbenson@redhat.com>
3352
3353 * i386-nat.c (i386_show_dr): Renamed to
3354 i386_dr_show and made nonstatic. All uses updated.
3355 (i386_length_and_rw_bits): Renamed to
3356 i386_dr_length_and_rw_bits and made nonstatic.
3357 All uses updated.
3358 (i386_insert_aligned_watchpoint): Renamed to
3359 i386_dr_insert_aligned_watchpoint and made nonstatic.
3360 All uses updated.
3361 (i386_remove_aligned_watchpoint): Renamed to
3362 i386_dr_remove_aligned_watchpoint and made nonstatic.
3363 All uses updated.
3364 (i386_update_inferior_debug_regs): Renamed to
3365 i386_dr_update_inferior_debug_regs and made nonstatic.
3366 All uses updated.
3367
131aa0d4
GB
33682014-06-18 Gary Benson <gbenson@redhat.com>
3369
3370 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3371 (i386_dr_low_can_set_control): Likewise.
3372 (i386_dr_low_set_addr): Likewise.
3373 (i386_dr_low_set_control): Likewise.
3374 (i386_dr_low_get_addr): Likewise.
3375 (i386_dr_low_get_status): Likewise.
3376 (i386_dr_low_get_control): Likewise.
3377 (i386_insert_aligned_watchpoint): Use new macros.
3378 (i386_update_inferior_debug_regs): Likewise.
3379 (i386_stopped_data_address): Likewise.
3380
d9305f7f
GB
33812014-06-18 Gary Benson <gbenson@redhat.com>
3382
3383 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3384 New parameter. All uses updated.
3385
ea008da4
GB
33862014-06-18 Gary Benson <gbenson@redhat.com>
3387
3388 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3389 All uses updated.
3390
1b6d4134
GB
33912014-06-18 Gary Benson <gbenson@redhat.com>
3392
3393 * i386-nat.c (debug_printf): New macro.
3394 (i386_get_debug_register_length): Likewise.
3395 (TARGET_HAS_DR_LEN_8): Use above macro.
3396 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3397 and printf_unfiltered. Use phex to format values.
3398
9b4550ef
GB
33992014-06-18 Gary Benson <gbenson@redhat.com>
3400
3401 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3402 Make const.
3403
6e62758f
GB
34042014-06-18 Gary Benson <gbenson@redhat.com>
3405
3406 * i386-nat.c: Comment changes.
3407
51c79e94
GB
34082014-06-18 Gary Benson <gbenson@redhat.com>
3409
3410 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3411
3e11889a
GB
34122014-06-18 Gary Benson <gbenson@redhat.com>
3413
3414 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3415 (i386_insert_aligned_watchpoint): Likewise.
3416 (i386_remove_aligned_watchpoint): Likewise.
3417 (i386_handle_nonaligned_watchpoint): Likewise.
3418
fc6e2f03
GB
34192014-06-18 Gary Benson <gbenson@redhat.com>
3420
3421 * i386-nat.c: Whitespace changes.
3422
2afe7d50
SB
34232014-06-17 Samuel Bronson <naesten@gmail.com>
3424
3425 * MAINTAINERS: Update Roland McGrath's email address.
3426 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3427 Red Hat a while ago, and giving me a current address.
2afe7d50 3428
3bca49ee
TT
34292014-06-17 Tom Tromey <tromey@redhat.com>
3430
3431 * utils.h (savestring): Remove declaration.
3432
6e366df1
TT
34332014-06-17 Tom Tromey <tromey@redhat.com>
3434
3435 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3436
6be47f0c
KS
34372014-06-16 Keith Seitz <keiths@redhat.com>
3438
3439 PR mi/15863
3440 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3441 to update the varobj if inferior_ptid is null_ptid.
3442
7bc112c1
TT
34432014-06-16 Tom Tromey <tromey@redhat.com>
3444
3445 * target.h (struct target_ops) <to_info_proc>: Make parameter
3446 const.
3447 (target_info_proc): Update.
3448 * target.c (target_info_proc): Make "args" const.
3449 * procfs.c (procfs_info_proc): Update.
3450 * linux-tdep.c (linux_info_proc): Update.
3451 (linux_core_info_proc_mappings): Make "args" const.
3452 (linux_core_info_proc): Update.
3453 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3454 * gdbarch.c: Rebuild.
3455 * gdbarch.h: Rebuild.
3456 * corelow.c (core_info_proc): Update.
3457
fee354ee
TT
34582014-06-16 Tom Tromey <tromey@redhat.com>
3459
3460 * target.h (struct target_ops) <to_disconnect>: Make parameter
3461 const.
3462 (target_disconnect): Update.
3463 * target.c (target_disconnect): Make "args" const.
3464 * target-delegates.c: Rebuild.
3465 * remote.c (remote_disconnect): Update.
3466 * record.h (record_disconnect): Update.
3467 * record.c (record_disconnect): Update.
3468 * inf-child.c (inf_child_disconnect): Update.
3469
a30bf1f1
TT
34702014-06-16 Tom Tromey <tromey@redhat.com>
3471
3472 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3473 * target.c (debug_to_rcmd, default_rcmd): Update.
3474 * target-delegates.c: Rebuild.
3475 * remote.c (remote_rcmd): Update.
3476 * monitor.c (monitor_rcmd): Update.
3477
d03de421
PA
34782014-06-16 Pedro Alves <palves@redhat.com>
3479
3480 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3481 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3482 have OBJF_SHARED set.
3483 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3484 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3485 instead of OBJF_USERLOADED.
3486 * objfiles.h (OBJF_SHARED): Update comment.
3487 (userloaded_objfile_contains_address_p): Rename to ...
3488 (shared_objfile_contains_address_p): ... this, and update
3489 comments.
3490 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3491 new objfile.
3492 (remove_symbol_file_command): Skip objfiles that don't have
3493 OBJF_SHARED set.
3494
99f4262f
TT
34952014-06-16 Tom Tromey <tromey@redhat.com>
3496
3497 * minsyms.h (prim_record_minimal_symbol)
3498 (prim_record_minimal_symbol_and_info): Update comments.
3499
97d66cc6
EZ
35002014-06-14 Eli Zaretskii <eliz@gnu.org>
3501
3502 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3503 or --without-guile, according to how GDB was built.
3504
635c7e8a
TT
35052014-06-13 Tom Tromey <tromey@redhat.com>
3506
3507 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3508 to help_list.
3509 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3510 to help_list.
3511 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3512 help_list.
3513 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3514 help_list.Pass all_commands, not -1, to help_list.
3515 * cli/cli-dump.c (dump_command, append_command)
3516 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3517 (binary_dump_command, binary_append_command): Pass all_commands,
3518 not -1, to help_list.
3519 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3520 -1, to help_list.
3521 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3522 -1, to help_list.
3523 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3524 help_list.
3525 * top.c (set_history): Pass all_commands, not -1, to help_list.
3526 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3527 all_commands, not -1, to help_list.
3528 * symfile.c (overlay_command): Pass all_commands, not -1, to
3529 help_list.
3530 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3531 help_list.
3532 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3533 help_list.
3534 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3535 -1, to help_list.
3536 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3537 not -1, to help_list.
3538 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3539 not -1, to help_list.
3540 * maint.c (maintenance_command, maintenance_info_command)
3541 (maintenance_print_command, maintenance_set_cmd): Pass
3542 all_commands, not -1, to help_list.
3543 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3544 help_list.
3545 * language.c (set_check): Pass all_commands, not -1, to help_list.
3546 * infcmd.c (unset_command): Pass all_commands, not -1, to
3547 help_list.
3548 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3549 help_list.
3550 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3551 help_list.
3552 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3553 help_list.
3554 * breakpoint.c (save_command): Pass all_commands, not -1, to
3555 help_list.
3556 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3557 all_commands, not -1, to help_list.
3558
b94ade42
PL
35592014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3560
3561 * regcache.c (struct register_to_invalidate): New structure.
3562 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3563 functions.
3564 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3565
31f628ae
YQ
35662014-06-12 Yao Qi <yao@codesourcery.com>
3567
3568 * varobj.c (varobj_get_num_children): Call
3569 varobj_is_dynamic_p.
3570 (varobj_list_children): Likewise.
3571 (varobj_update): Likewise. Update comments.
3572
cde5ef40
YQ
35732014-06-12 Yao Qi <yao@codesourcery.com>
3574
3575 * varobj.c (varobj_pretty_printed_p): Rename to ...
3576 (varobj_is_dynamic_p): ... this. New function.
3577 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3578 (varobj_is_dynamic_p): Declare.
3579 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3580 (mi_print_value_p, varobj_update_one): Likewise.
3581
576ea091
YQ
35822014-06-12 Pedro Alves <pedro@codesourcery.com>
3583 Yao Qi <yao@codesourcery.com>
3584
3585 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3586 (varobj_get_iterator): Wrap up code for pretty-printer by
3587 "#if HAVE_PYTHON" and "#endif".
3588 (update_dynamic_varobj_children): Likewise.
3589
827f100c
YQ
35902014-06-12 Pedro Alves <pedro@codesourcery.com>
3591 Yao Qi <yao@codesourcery.com>
3592
3593 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3594 gdb_python_initialized is false. Move some code from varobj.c.
3595 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3596 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3597 (struct varobj_item): Moved to varobj-iter.h".
3598 (varobj_clear_saved_item): New function.
3599 (update_dynamic_varobj_children): Move python-related code to
3600 py-varobj.c.
3601 (free_variable): Call varobj_clear_saved_item and
3602 varobj_iter_delete.
3603
e5250216
YQ
36042014-06-12 Pedro Alves <pedro@codesourcery.com>
3605 Yao Qi <yao@codesourcery.com>
3606
3607 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3608 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3609 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3610 (py-varobj.o): New rule.
3611 * python/py-varobj.c: New file.
3612 * python/python-internal.h (py_varobj_get_iterator): Declare.
3613 * varobj-iter.h: New file.
3614 * varobj.c: Include "varobj-iter.h"
3615 (struct varobj) <child_iter>: Change its type from "PyObject *"
3616 to "struct varobj_iter *".
3617 <saved_item>: Likewise.
3618 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3619 [HAVE_PYTHON] (varobj_get_iterator): New function.
3620 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3621 python-specific code to python/py-varobj.c.
3622 (install_visualizer): Call varobj_iter_delete instead of
3623 Py_XDECREF.
3624 * varobj.h (varobj_ensure_python_env): Declare.
3625
5a2e0d6e
YQ
36262014-06-12 Yao Qi <yao@codesourcery.com>
3627
3628 * varobj.c (struct varobj_item): New structure.
3629 (create_child_with_value): Update declaration.
3630 (varobj_add_child): Replace arguments 'name' and 'value' with
3631 'item'. All callers updated.
3632 (install_dynamic_child): Likewise.
3633 (update_dynamic_varobj_children): Likewise.
3634 (varobj_add_child): Likewise.
3635 (create_child_with_value): Likewise.
3636
919b9a93
JB
36372014-06-11 Joel Brobecker <brobecker@adacore.com>
3638
3639 * NEWS: Create a new section for the next release branch.
3640 Rename the section of the current branch, now that it has
3641 been cut.
3642
71a55bdf
JB
36432014-06-11 Joel Brobecker <brobecker@adacore.com>
3644
3645 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3646 * version.in: Bump version to 7.8.50.DATE-cvs.
3647
364fe1f7
PA
36482014-06-11 Pedro Alves <palves@redhat.com>
3649
3650 PR remote/17028
3651 * ser-mingw.c (net_windows_socket_check_pending): New function.
3652 (net_windows_select_thread): Ignore spurious wakeups. Use
3653 net_windows_socket_check_pending.
3654 (net_windows_wait_handle): Check for pending events with
3655 ioctlsocket, through net_windows_socket_check_pending, instead of
3656 checking the socket's event.
3657
5a6c7709
SC
36582014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3659
3660 * python/python-internal.h (gdb_PyObject_GetAttrString)
3661 (gdb_PyObject_HasAttrString): New inline function definitions.
3662 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3663 char * of the second argument to PyObject_GetAttrString.
74228e77 3664
0e58ee40
JB
36652014-06-10 Joel Brobecker <brobecker@adacore.com>
3666
3667 * serial.c (serial_write): Fix index of character to be printed
3668 in call to serial_logchar when serial debug traces are enabled.
3669
d190df30
JB
36702014-06-10 Joel Brobecker <brobecker@adacore.com>
3671
3672 * gdbtypes (resolve_dynamic_range): Add function description.
3673
b4b01d36
PA
36742014-06-09 Pedro Alves <palves@redhat.com>
3675
3676 * linux-nat.c (linux_child_follow_fork): Initialize status with
3677 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3678 inner block. Only pass the signal to PTRACE_DETACH if in pass
3679 state.
3680
3657956b
GB
36812014-06-09 Gary Benson <gbenson@redhat.com>
3682
3683 * common/signals.c (gdb_signal_from_host): Reorder to separate
3684 the always-available ANSI-standard signals from the signals that
3685 require checking.
3686 (do_gdb_signal_to_host): Likewise.
3687 * proc-events.c (signal_table): Likewise.
3688
c077881a
HZ
36892014-06-08 Hui Zhu <hui@codesourcery.com>
3690
3691 * common/linux-ptrace.c (linux_disable_event_reporting): New
3692 function.
3693 * common/linux-ptrace.h (linux_disable_event_reporting): New
3694 declaration.
3695 * linux-nat.c (linux_child_follow_fork): Do a single step before
3696 detach.
3697
4186eb54
KS
36982014-06-07 Keith Seitz <keiths@redhat.com>
3699
3700 Revert:
3701 PR c++/16253
3702 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3703 from symbol_matches_domain in symtab.c. All local callers
3704 of symbol_matches_domain updated.
3705 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3706 search STRUCT_DOMAIN.
3707 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3708 independently. standard_lookup will do that automatically.
3709 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3710 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3711 (cp_lookup_symbol_in_namespace): Likewise.
3712 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3713 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3714 may return a STRUCT_DOMAIN match.
3715 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3716 * cp-support.c: Include language.h.
3717 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3718 VAR_DOMAIN.
3719 * psymtab.c (match_partial_symbol): Compare the requested
3720 domain with the symbol's domain directly.
3721 (lookup_partial_symbol): Likewise.
3722 * symtab.c (lookup_symbol_in_language): Explain when/why
3723 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3724 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3725 appropriate languages.
3726 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3727 and moved to ada-lang.c
3728 (lookup_block_symbol): Explain that this function only returns
3729 symbol matching the requested DOMAIN.
3730 Compare the requested domain with the symbol's domain directly.
3731 (iterate_over_symbols): Compare the requested domain with the
3732 symbol's domain directly.
3733 * symtab.h (symbol_matches_domain): Remove.
3734
25326a28 37352014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3736
3737 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3738 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3739 (gdbscm_guile_version_is_at_least): Declare.
3740 (gdbscm_scm_string_to_int): Declare.
3741 * guile/guile.c (gdbscm_guile_major_version): New global.
3742 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3743 (guile_datadir): New static global.
3744 (gdbscm_guile_data_directory): New function.
3745 (initialize_scheme_side): Update.
3746 (misc_guile_functions): Add guile-data-directory.
3747 (initialize_gdb_module): Fetch guile version number.
3748 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3749 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3750 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3751 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3752 comments.
3753 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3754 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3755 * guile/scm-value.c (gdbscm_value_to_string): Only call
3756 scm_port_conversion_strategy if Guile version >= 2.0.6.
3757
0a770bb2 37582014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3759
3760 * main.c (print_gdb_help): Add -q and --silent.
3761
73ba372c
GB
37622014-06-06 Gary Benson <gbenson@redhat.com>
3763
3764 * common/signals.c: Remove preprocessor conditionals for
3765 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3766 SIGSEGV and SIGTERM.
3767 * proc-events.c: Likewise.
3768
c33b2f12
MM
37692014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3770
3771 * symfile.c (symfile_free_objfile): Remove restriction to
3772 OBJF_USERLOADED.
3773 * symfile-mem.c (symbol_file_add_from_memory): Call
3774 add_target_sections_of_objfile.
3775
fb934770
LC
37762014-06-05 Ludovic Courtès <ludo@gnu.org>
3777
3778 * guile/scm-value.c (gdbscm_history_append_x): Use
3779 'vlscm_get_value_smob_arg_unsafe' instead of
3780 'vlscm_scm_to_value'.
3781
6ef284bd
SM
37822014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3783
3784 PR mi/15806
3785 * utils.c (printchar): Don't escape at all if quoter is NUL.
3786 Update function documentation to clarify effect of parameter
3787 QUOTER.
3788 * remote.c (escape_buffer): Pass '\\' as the quoter to
3789 fputstrn_unfiltered.
3790 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3791 generate the output.
3792 (mi_solib_unloaded): Same.
3793
270c9937
JB
37942014-06-05 Joel Brobecker <brobecker@adacore.com>
3795
3796 * development.sh: Delete.
3797 * Makefile.in (config.status): Adjust dependency on development.sh.
3798 * configure.ac: Adjust development.sh source call.
3799 * configure: Regenerate.
3800
16f691fb
DE
38012014-06-04 Doug Evans <xdje42@gmail.com>
3802
3803 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3804 is_scheme_bkpt, spec.
3805 (bpscm_make_breakpoint_smob): Initialize new members.
3806 (gdbscm_create_breakpoint_x): Split into two ...
3807 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3808 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3809 (scheme_function breakpoint_functions): Update.
3810 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3811 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3812 register-breakpoint!.
3813
ef7cab6b
JB
38142014-06-04 Joel Brobecker <brobecker@adacorer.com>
3815
3816 PR server/17023
3817 * mem-break.c (z_type_supported): Return zero if
3818 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3819
012370f6
TT
38202014-06-04 Tom Tromey <tromey@redhat.com>
3821
3822 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3823 value_from_contents_and_address_unresolved.
3824 (ada_template_to_fixed_record_type_1): Likewise.
3825 (ada_which_variant_applies): Likewise.
3826 * value.h (value_from_contents_and_address_unresolved): Declare.
3827 * value.c (value_from_contents_and_address_unresolved): New
3828 function.
3829 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3830 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3831 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3832
92e2a17f
TT
38332014-06-04 Tom Tromey <tromey@redhat.com>
3834
3835 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3836
c0939df1
TT
38372014-06-04 Tom Tromey <tromey@redhat.com>
3838
3839 * procfs.c (procfs_attach): Make "args" const.
3840 * windows-nat.c (windows_attach): Make "args" const.
3841 * nto-procfs.c (procfs_attach): Make "args" const.
3842 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3843 * go32-nat.c (go32_attach): Make "args" const.
3844 * gnu-nat.c (gnu_attach): Make "args" const.
3845 * darwin-nat.c (darwin_attach): Make "args" const.
3846 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3847 * linux-nat.c (linux_nat_attach): Make "args" const.
3848 * remote.c (extended_remote_attach_1, extended_remote_attach):
3849 Make "args" const.
3850 * target.h (struct target_ops) <to_attach>: Make "args" const.
3851 (find_default_attach): Likewise.
3852 * utils.c (parse_pid_to_attach): Make "args" const.
3853 * utils.h (parse_pid_to_attach): Update.
3854
8eaff7cd
TT
38552014-06-04 Tom Tromey <tromey@redhat.com>
3856
3857 * target-delegates.c: Rebuild.
3858 * target.c (default_thread_address_space): New function.
3859 (target_thread_address_space): Simplify.
3860 * target.h (struct target_ops) <to_thread_address_space>: Add
3861 TARGET_DEFAULT_FUNC.
3862
1913f160
DE
38632014-06-04 Doug Evans <xdje42@gmail.com>
3864
3865 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3866
70ad5bff
MM
38672014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3868
3869 * record-btrace.c: Include event-loop.h and inf-loop.h.
3870 (record_btrace_resume_exec_dir)
3871 (record_btrace_async_inferior_event_handler)
3872 (record_btrace_handle_async_inferior_event): New.
3873 (record_btrace_open): Create async event handler.
3874 (record_btrace_close): Delete async event handler.
3875 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3876 Mark async event handler.
3877 (record_btrace_execution_direction): New.
3878 (init_record_btrace_ops): Initialize to_execution_direction.
3879
b6210538
DE
38802014-06-03 Doug Evans <xdje42@gmail.com>
3881
3882 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3883 (gdbscm_make_parameter): Ditto.
3884
a5b1fd27
DE
38852014-06-03 Doug Evans <dje@google.com>
3886
3887 * exec.c (exec_close_1): Call clear_section_table instead of
3888 resize_section_table.
3889 (clear_section_table): New function.
3890 (resize_section_table): Make static. Rename arg num_added to
3891 adjustment.
3892 * exec.h (clear_section_table): Declare.
3893 (resize_section_table): Delete.
3894 * progspace.c (release_program_space): Call clear_section_table
3895 instead of resize_section_table.
3896
0c6e92a5
SC
38972014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3898
3899 * NEWS (Python Scripting): Add entry about the new xmethods
3900 feature.
3901
883964a7
SC
39022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3903
3904 * python/py-xmethods.c: New file.
3905 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3906 (objfpy_dealloc): XDECREF on the new xmethods field.
3907 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3908 field.
3909 (objfpy_get_xmethods): New function.
3910 (objfile_getset): New entry 'xmethods'.
3911 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3912 (pspy_dealloc): XDECREF on the new xmethods field.
3913 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3914 field.
3915 (pspy_get_xmethods): New function.
3916 (pspace_getset): New entry 'xmethods'.
3917 * python/python-internal.h: Add declarations for new functions.
3918 * python/python.c (_initialize_python): Invoke
3919 gdbpy_initialize_xmethods.
3920 * python/lib/gdb/__init__.py (xmethods): New
3921 attribute.
3922 * python/lib/gdb/xmethod.py: New file.
3923 * python/lib/gdb/command/xmethods.py: New file.
3924
58992dc5
SC
39252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3926
3927 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3928 best match method returned by find_overload_match is an xmethod.
3929 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3930 the best matching operator returned by find_overload_match is an
3931 xmethod.
3932 * valops.c: #include "extension.h".
3933 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3934 Return void. The list of matching source methods is returned in
3935 "fn_list" and a vector of matching debug method workers is
3936 returned in "xm_worker_vec". Update all callers.
3937 (value_find_oload_method_list): Likewise.
3938 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3939 non-NULL, then the index of the best matching method in this
3940 vector is returned. Update all callers.
3941 (find_overload_match): Include xmethods while performing overload
3942 resolution.
3943
e81e7f5e
SC
39442014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3945
3946 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3947 * extension-priv.h (struct extension_language_ops): Add the
3948 xmethod interface.
3949 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3950 get_matching_xmethod_workers, get_xmethod_argtypes,
3951 invoke_xmethod, free_xmethod_worker,
3952 free_xmethod_worker_vec): New functions.
3953 * extension.h: #include "common/vec.h".
3954 New function declarations.
3955 (struct xmethod_worker): New struct.
3956 (VEC (xmethod_worker_ptr)): New vector type.
3957 (xmethod_worker_ptr): New typedef.
3958 (xmethod_worker_vec): Likewise.
3959 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3960 builtin_type.
3961 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3962 (struct builtin_type): New field "xmethod".
3963 * valarith.c (value_ptradd): Assert that the value argument is not
3964 lval_xcallable.
3965 * valops.c (value_must_coerce_to_target): Return 0 for
3966 lval_xcallable values.
3967 * value.c (struct value): New field XM_WORKER in the field
3968 LOCATION.
3969 (value_address, value_raw_address): Return 0 for lval_xcallable
3970 values.
3971 (set_value_address): Assert that the value is not an
3972 lval_xcallable.
3973 (value_free): Free the associated xmethod worker when freeing
3974 lval_xcallable values.
3975 (set_value_component_location): Assert that the WHOLE value is not
3976 lval_xcallable.
3977 (value_of_xmethod, call_xmethod): New functions.
3978 * value.h: Declare "struct xmethod_worker".
3979 Declare new functions value_of_xmethod, call_xmethod.
3980
ef370185
JB
39812014-06-03 Joel Brobecker <brobecker@adacore.com>
3982 Pedro Alves <palves@redhat.com>
3983
3984 PR breakpoints/17000
3985 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3986 New function, extracted from software_breakpoint_inserted_here_p.
3987 (software_breakpoint_inserted_here_p): Replace factored out code
3988 by call to find_non_raw_software_breakpoint_inserted_here.
3989 (bp_target_info_copy_insertion_state): New function.
3990 (bkpt_insert_location): Handle the case of a single-step
3991 breakpoint already inserted at the same address.
3992 (bkpt_remove_location): Handle the case of a single-step
3993 breakpoint still inserted at the same address.
3994 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3995 breakpoint already inserted at the same address.
3996 (deprecated_remove_raw_breakpoint): Handle the case of a
3997 non-raw breakpoint still inserted at the same address.
3998 (find_single_step_breakpoint): New function, extracted from
3999 single_step_breakpoint_inserted_here_p.
4000 (find_single_step_breakpoint): New function,
4001 factored out from single_step_breakpoint_inserted_here_p.
4002 (single_step_breakpoint_inserted_here_p): Reimplement.
4003
1e2ccb61
BM
40042014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4005
4006 Pushed by Joel Brobecker <brobecker@adacore.com>
4007 * source.c (show_substitute_path_command): Fix display of matching
4008 substitution rules.
4009
d3448d85
GB
40102014-06-03 Gary Benson <gbenson@redhat.com>
4011
4012 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4013
06eb1586
DE
40142014-06-02 Doug Evans <xdje42@gmail.com>
4015
4016 Add parameter support for Guile.
4017 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4018 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4019 (scm-param.o): New rule.
4020 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4021 (gdbscm_misc_error): Declare.
4022 (gdbscm_canonicalize_command_name): Declare.
4023 (gdbscm_scm_to_host_string): Declare.
4024 (gdbscm_scm_from_host_string): Declare.
4025 (gdbscm_initialize_parameters): Declare.
4026 * guile/guile.c (initialize_gdb_module): Call
4027 gdbscm_initialize_parameters.
4028 * guile/lib/gdb.scm: Export parameter symbols.
4029 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4030 cmdscm_canonicalize_name and made public. All callers updated.
4031 * guile/scm-exception.c (gdbscm_misc_error): New function.
4032 * guile/scm-param.c: New file.
4033 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4034 (gdbscm_scm_to_host_string): New function.
4035 (gdbscm_scm_from_host_string): New function.
4036 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4037
e698b8c4
DE
40382014-06-02 Doug Evans <xdje42@gmail.com>
4039
4040 Add command support for Guile.
4041 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4042 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4043 (scm-cmd.o): New rule.
4044 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4045 (gdbscm_user_error_p): Declare.
4046 (gdbscm_parse_command_name): Declare.
4047 (gdbscm_valid_command_class_p): Declare.
4048 (gdbscm_initialize_commands): Declare.
4049 * guile/guile.c (initialize_gdb_module): Call
4050 gdbscm_initialize_commands.
4051 * guile/lib/gdb.scm: Export command symbols.
4052 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4053 (throw-user-error): New function.
4054 * guile/scm-cmd.c: New file.
4055 * guile/scm-exception.c (user_error_symbol): New static global.
4056 (gdbscm_user_error_p): New function.
4057 (gdbscm_initialize_exceptions): Set user_error_symbol.
4058 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4059
fb1f94b0
PM
40602014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4061
4062 * top.c (command_loop): Handle comments here...
4063 (command_line_input): ... not here.
4064
ded03782
DE
40652014-06-02 Doug Evans <xdje42@gmail.com>
4066
4067 Add progspace support for Guile.
4068 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4069 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4070 (scm-progspace.o): New rule.
4071 * guile/guile-internal.h (pspace_smob): New typedef.
4072 (psscm_pspace_smob_pretty_printers): Declare.
4073 (psscm_pspace_smob_from_pspace): Declare.
4074 (psscm_scm_from_pspace): Declare.
4075 * guile/guile.c (initialize_gdb_module): Call
4076 gdbscm_initialize_pspaces.
4077 * guile/lib/gdb.scm: Export progspace symbols.
4078 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4079 support.
4080 (append-pretty-printer!): Ditto.
4081 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4082 Implement.
4083 * guile/scm-progspace.c: New file.
4084
397998fc
AM
40852014-06-03 Alan Modra <amodra@gmail.com>
4086
4087 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4088 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4089
6aa5f3a6
DE
40902014-06-02 Doug Evans <dje@google.com>
4091
4092 Add support for skeletonless type units.
4093 * dwarf2read.c (struct dwarf2_per_objfile): New member
4094 n_allocated_type_units.
4095 (struct dwarf2_per_objfile) <tu_stats>: New member
4096 nr_all_type_units_reallocs.
4097 (create_signatured_type_table_from_index): Initialize
4098 n_allocated_type_units
4099 (create_all_type_units): Ditto.
4100 (add_type_unit): Move up in file. New arg slot.
4101 All callers updated. Increase space for all_type_units more
4102 efficiently.
4103 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4104 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4105 (lookup_dwp_signatured_type): Ditto.
4106 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4107 All callers updated.
4108 (build_type_psymtabs_1): Leave type_unit_groups as
4109 NULL if no TUs present.
4110 (print_tu_stats): New function.
4111 (process_skeletonless_type_unit): New function.
4112 (process_dwo_file_for_skeletonless_type_units): New
4113 function.
4114 (process_skeletonless_type_units): New function.
4115 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4116 Call print tu_stats if debugging enabled.
4117
41fac0cf
PA
41182014-06-02 Pedro Alves <palves@redhat.com>
4119
4120 * breakpoint.c (build_target_command_list): Don't build a command
4121 list if we have any duplicate location that isn't a dprintf.
4122
cd1608cc
PA
41232014-06-02 Pedro Alves <palves@redhat.com>
4124
4125 * breakpoint.c (dprintf_breakpoint_hit): New function.
4126 (initialize_breakpoint_ops): Install it as dprintf's
4127 breakpoint_hit method.
4128
486ef3b9
JB
41292014-06-02 Joel Brobecker <brobecker@adacore.com>
4130
4131 * source.c (substitute_path_rule_matches): Simplify using
4132 filename_ncmp instead of FILENAME_CMP.
4133
230cd560
JB
41342014-06-02 Joel Brobecker <brobecker@adacore.com>
4135
4136 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4137
16954d5d
LC
41382014-06-01 Ludovic Courtès <ludo@gnu.org>
4139
4140 * configure.ac: When Guile is available, check for the
4141 availability of 'scm_new_smob'.
4142 * configure, config.h.in: Regenerate.
4143 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4144 function.
4145
53e8a631
AB
41462014-05-30 Andrew Burgess <aburgess@broadcom.com>
4147
4148 * frame.c (struct frame_info): Add stop_string field.
4149 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4150 (get_prev_frame_always): Old content moved into
4151 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4152 TRY_CATCH, handle MEMORY_ERROR exceptions.
4153 (frame_stop_reason_string): New function definition.
4154 * frame.h (unwind_stop_reason_to_string): Extend comment to
4155 mention frame_stop_reason_string.
4156 (frame_stop_reason_string): New function declaration.
4157 * stack.c (frame_info): Switch to frame_stop_reason_string.
4158 (backtrace_command_1): Switch to frame_stop_reason_string.
4159 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4160 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4161 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4162
70e38b8e
AB
41632014-05-30 Andrew Burgess <aburgess@broadcom.com>
4164
4165 * frame.c (frame_stop_reason_string): Rename to ...
4166 (unwind_stop_reason_to_string): this.
4167 * frame.h (frame_stop_reason_string): Rename to ...
4168 (unwind_stop_reason_to_string): this.
4169 * stack.c (frame_info): Update call to frame_stop_reason_string.
4170 (backtrace_command_1): Likewise.
4171 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4172 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4173
938f0e2f
AB
41742014-05-30 Andrew Burgess <aburgess@broadcom.com>
4175
4176 * frame.c (remove_prev_frame): New function.
4177 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4178 remove_prev_frame.
4179
a09dd441
PA
41802014-05-29 Pedro Alves <palves@redhat.com>
4181
4182 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4183 and make it const. When a single-step decays to a continue,
4184 clear 'step', not 'hw_step'. Pass whether the caller wanted
4185 to step to user_visible_resume_ptid, not what we ask the
4186 target to do.
4187
bdc36728
PA
41882014-05-29 Pedro Alves <palves@redhat.com>
4189
4190 * infrun.c (process_event_stop_test, handle_step_into_function)
4191 (handle_step_into_function_backward): Adjust.
4192 Don't set the even thread's stop_step and call stop_waiting before
4193 calling end_stepping_range. Instead do that ...
4194 (end_stepping_range): ... here. Take an ecs pointer parameter.
4195
22bcd14b
PA
41962014-05-29 Pedro Alves <palves@redhat.com>
4197
4198 * infrun.c (stop_stepping): Rename to ...
4199 (stop_waiting): ... this.
4200 (proceed): Update comment.
4201 (process_event_stop_test, handle_inferior_event)
4202 (handle_signal_stop, handle_step_into_function)
4203 (handle_step_into_function_backward): Update.
4204
4ae57c05
PA
42052014-05-29 Pedro Alves <palves@redhat.com>
4206
4207 * infcall.c (run_inferior_call): Don't check whether the current
4208 thread is running after the proceed call.
4209
329ea579
PA
42102014-05-29 Pedro Alves <palves@redhat.com>
4211 Tom Tromey <tromey@redhat.com>
4212
4213 * NEWS: Mention "maint set target-async", "set mi-async", and that
4214 background execution commands are now always available.
4215 * target.h (target_async_permitted): Update comment.
4216 * target.c (target_async_permitted, target_async_permitted_1):
4217 Default to 1.
4218 (set_target_async_command): Rename to ...
4219 (maint_set_target_async_command): ... this.
4220 (show_target_async_command): Rename to ...
4221 (maint_show_target_async_command): ... this.
4222 (_initialize_target): Adjust.
4223 * infcmd.c (prepare_execution_command): Make extern.
4224 * inferior.h (prepare_execution_command): Declare.
4225 * infrun.c (set_observer_mode): Leave target async alone.
4226 * mi/mi-interp.c (mi_interpreter_init): Install
4227 mi_on_sync_execution_done as sync_execution_done observer.
4228 (mi_on_sync_execution_done): New function.
4229 (mi_execute_command_input_handler): Don't print the prompt if we
4230 just started a synchronous command with an async target.
4231 (mi_on_resume): Check sync_execution before printing prompt.
4232 * mi/mi-main.h (mi_async_p): Declare.
4233 * mi/mi-main.c: Include gdbcmd.h.
4234 (mi_async_p): New function.
4235 (mi_async, mi_async_1): New globals.
4236 (set_mi_async_command, show_mi_async_command, mi_async): New
4237 functions.
4238 (exec_continue): Call prepare_execution_command.
4239 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4240 (mi_execute_async_cli_command): Use mi_async_p.
4241 (_initialize_mi_main): Install "set mi-async". Make
4242 "target-async" a deprecated alias.
4243
92bcb5f9
PA
42442014-05-29 Pedro Alves <palves@redhat.com>
4245
4246 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4247 (_initialize_cli_interp): Adjust.
4248 * event-loop.c: Include "observer.h".
4249 (start_event_loop): Notify 'command_error' observers instead of
4250 calling display_gdb_prompt. Remove FIXME comment.
4251 * event-top.c (display_gdb_prompt): Remove call into the
4252 interpreters.
4253 * inf-loop.c: Include "observer.h".
4254 (inferior_event_handler): Notify 'command_error' observers instead
4255 of calling display_gdb_prompt.
4256 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4257 observers instead of calling display_gdb_prompt.
4258 * interps.c (interp_set): Don't call display_gdb_prompt.
4259 (current_interp_display_prompt_p): Delete.
4260 * interps.h (interp_prompt_p): Delete declaration.
4261 (interp_prompt_p_ftype): Delete.
4262 (struct interp_procs) <prompt_proc_p>: Delete field.
4263 (current_interp_display_prompt_p): Delete declaration.
4264 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4265 (_initialize_mi_interp): Adjust.
4266 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4267 'command_error' observers.
4268 (tui_on_sync_execution_done, tui_on_command_error): New
4269 functions.
4270 (tui_display_prompt_p): Delete.
4271 (_initialize_tui_interp): Adjust.
4272
fd664c91
PA
42732014-05-29 Pedro Alves <palves@redhat.com>
4274
4275 PR gdb/13860
4276 * cli/cli-interp.c: Include infrun.h and observer.h.
4277 (cli_uiout, cli_interp): New globals.
4278 (cli_on_signal_received, cli_on_end_stepping_range)
4279 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4280 functions.
4281 (cli_interpreter_init): Install them as 'end_stepping_range',
4282 'signal_received' 'signal_exited', 'exited' and 'no_history'
4283 observers.
4284 (_initialize_cli_interp): Remove cli_interp local.
4285 * infrun.c (handle_inferior_event): Call the several stop reason
4286 observers instead of printing the stop reason directly.
4287 (end_stepping_range): New function.
4288 (print_end_stepping_range_reason, print_signal_exited_reason)
4289 (print_exited_reason, print_signal_received_reason)
4290 (print_no_history_reason): Make static, and add an uiout
4291 parameter. Print to that instead of to CURRENT_UIOUT.
4292 * infrun.h (print_end_stepping_range_reason)
4293 (print_signal_exited_reason, print_exited_reason)
4294 (print_signal_received_reason print_no_history_reason): New
4295 declarations.
4296 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4297 'mi_uiout'.
4298 <cli_uiout>: New field.
4299 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4300 uiout for CLI output. Install 'signal_received',
4301 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4302 observers.
4303 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4304 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4305 (mi_on_no_history): New functions.
4306 (ui_out_free_cleanup): Delete function.
4307 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4308 instead use the one already stored in the MI interpreter data.
4309 (mi_ui_out): Adjust.
4310 * tui/tui-interp.c: Include infrun.h and observer.h.
4311 (tui_interp): New global.
4312 (tui_on_signal_received, tui_on_end_stepping_range)
4313 (tui_on_signal_exited, tui_on_exited)
4314 (tui_on_no_history): New functions.
4315 (tui_init): Install them as 'end_stepping_range',
4316 'signal_received' 'signal_exited', 'exited' and 'no_history'
4317 observers.
4318 (_initialize_tui_interp): Delete tui_interp local.
4319
8817a6f2
PA
43202014-05-29 Pedro Alves <palves@redhat.com>
4321
4322 PR gdb/15713
4323 * linux-nat.c (linux_nat_resume_callback): Rename the second
4324 parameter to 'except'. Skip LP if it points to EXCEPT.
4325 (linux_nat_resume): Don't mark the event lwp as not stopped
4326 before resuming sibling lwps. Instead ask
4327 linux_nat_resume_callback to skip the event lwp. Mark it as not
4328 stopped after actually resuming it.
4329 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4330 resuming it.
4331 (wait_lwp): Mark the lwp as stopped here.
4332 (stop_wait_callback): Mark the lwp as not stopped right after
4333 resuming it. Don't mark lwps as stopped here.
4334 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4335 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4336
251bde03
PA
43372014-05-29 Pedro Alves <palves@redhat.com>
4338
4339 PR PR15693
4340 * infrun.c (resume): Determine how much to resume depending on
4341 whether the caller wanted a step, not whether we can hardware step
4342 the target. Mark all threads that we intend to run as running,
4343 unless we're calling an inferior function.
4344 (normal_stop): If the thread is running an infcall, don't finish
4345 thread state.
4346 * target.c (target_resume): Don't mark threads as running here.
4347
7f3c0343
JB
43482014-05-28 Joel Brobecker <brobecker@adacore.com>
4349
4350 * serial.c (_initialize_serial): Remove support for
4351 the "set remotebaud" and "show remotebaud" commands.
4352 * NEWS: Add entry documenting the removal of that command.
4353
ee34b3f9
YQ
43542014-05-28 Yao Qi <yao@codesourcery.com>
4355
4356 * charset.c: Fix typo in comments.
4357
add6c04d
GB
43582014-05-27 Gary Benson <gbenson@redhat.com>
4359
4360 * utils.c (internal_vproblem): Prompt for a bug report.
4361
92c48fc5
AW
43622014-05-26 Andy Wingo <wingo@igalia.com>
4363
4364 * guile/scm-arch.c (arscm_mark_arch_smob):
4365 * guile/scm-block.c (bkscm_mark_block_smob)
4366 (bkscm_mark_block_syms_progress_smob):
4367 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4368 * guile/scm-exception.c (exscm_mark_exception_smob):
4369 * guile/scm-frame.c (frscm_mark_frame_smob):
4370 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4371 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4372 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4373 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4374 (ppscm_mark_pretty_printer_worker_smob):
4375 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4376 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4377 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4378 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4379 mark functions.
4380 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4381 function.
4382
b2715b27
AW
43832014-05-26 Andy Wingo <wingo@igalia.com>
4384 Doug Evans <xdje42@gmail.com>
4385
4386 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4387 empty_base_class. All uses updated.
4388 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4389 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4390 Adapt all callers.
4391 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4392 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4393 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4394 (gdbscm_gsmob_has_property_p, add_property_name)
4395 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4396 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4397 (gdb-object-has-property?, gdb-object-properties): Remove.
4398 (gdb-object-kind): Renamed from gsmob-kind.
4399
214ab2da
AW
44002014-05-26 Andy Wingo <wingo@igalia.com>
4401
4402 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4403 * configure: Regenerate.
4404
589fdceb
MM
44052014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4406
4407 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4408
67b5c0c1
MM
44092014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4410
4411 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4412 (replay_memory_access_read_only, replay_memory_access_read_write)
4413 (replay_memory_access_types, replay_memory_access)
4414 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4415 (cmd_set_record_btrace, cmd_show_record_btrace)
4416 (cmd_show_replay_memory_access): New.
4417 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4418 (record_btrace_remove_breakpoint): Replace
4419 record_btrace_allow_memory_access with replay_memory_access.
4420 (_initialize_record_btrace): Add commands.
4421 * NEWS: Announce it.
4422
036cd381
RR
44232014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4424
4425 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4426
c77c1e42
RR
44272014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4428
4429 * MAINTAINERS (Write After Approval): Move self back from
4430 paper trail.
4431
45741a9c
PA
44322014-05-22 Pedro Alves <palves@redhat.com>
4433
4434 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4435 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4436 (disable_randomization, enum exec_direction_kind)
4437 (execution_direction, stop_registers, start_remote)
4438 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4439 (wait_for_inferior, normal_stop, get_last_target_status)
4440 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4441 (insert_step_resume_breakpoint_at_sal)
4442 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4443 (set_step_info, print_stop_event, signal_stop_state)
4444 (signal_print_state, signal_pass_state, signal_stop_update)
4445 (signal_print_update, signal_pass_update)
4446 (update_signals_program_target, clear_exit_convenience_vars)
4447 (displaced_step_dump_bytes, update_observer_mode)
4448 (signal_catch_update, gdb_signal_from_command): Move
4449 declarations ...
4450 * infrun.h: ... to this new file.
4451 * amd64-tdep.c: Include infrun.h.
4452 * annotate.c: Include infrun.h.
4453 * arch-utils.c: Include infrun.h.
4454 * arm-linux-tdep.c: Include infrun.h.
4455 * arm-tdep.c: Include infrun.h.
4456 * break-catch-sig.c: Include infrun.h.
4457 * breakpoint.c: Include infrun.h.
4458 * common/agent.c: Include infrun.h instead of inferior.h.
4459 * corelow.c: Include infrun.h.
4460 * event-top.c: Include infrun.h.
4461 * go32-nat.c: Include infrun.h.
4462 * i386-tdep.c: Include infrun.h.
4463 * inf-loop.c: Include infrun.h.
4464 * infcall.c: Include infrun.h.
4465 * infcmd.c: Include infrun.h.
4466 * infrun.c: Include infrun.h.
4467 * linux-fork.c: Include infrun.h.
4468 * linux-nat.c: Include infrun.h.
4469 * linux-thread-db.c: Include infrun.h.
4470 * monitor.c: Include infrun.h.
4471 * nto-tdep.c: Include infrun.h.
4472 * procfs.c: Include infrun.h.
4473 * record-btrace.c: Include infrun.h.
4474 * record-full.c: Include infrun.h.
4475 * remote-m32r-sdi.c: Include infrun.h.
4476 * remote-mips.c: Include infrun.h.
4477 * remote-notif.c: Include infrun.h.
4478 * remote-sim.c: Include infrun.h.
4479 * remote.c: Include infrun.h.
4480 * reverse.c: Include infrun.h.
4481 * rs6000-tdep.c: Include infrun.h.
4482 * s390-linux-tdep.c: Include infrun.h.
4483 * solib-irix.c: Include infrun.h.
4484 * solib-osf.c: Include infrun.h.
4485 * solib-svr4.c: Include infrun.h.
4486 * target.c: Include infrun.h.
4487 * top.c: Include infrun.h.
4488 * windows-nat.c: Include infrun.h.
4489 * mi/mi-interp.c: Include infrun.h.
4490 * mi/mi-main.c: Include infrun.h.
4491 * python/py-threadevent.c: Include infrun.h.
4492
98eb56a4
PA
44932014-05-22 Pedro Alves <palves@redhat.com>
4494
4495 * infrun.c (handle_inferior_event): Store the exit code for
4496 --return-child-result here, instead of ...
4497 (print_exited_reason): ... here.
4498
17b2616c
PA
44992014-05-21 Pedro Alves <palves@redhat.com>
4500
4501 PR gdb/13860
4502 * gdbthread.h (struct thread_control_state): New field
4503 `command_interp'.
4504 * infrun.c (follow_fork): Copy the new thread control field to the
4505 child fork thread.
4506 (clear_proceed_status_thread): Clear the new thread control field.
4507 (proceed): Set the new thread control field.
4508 * interps.h (command_interp): Declare.
4509 * interps.c (command_interpreter): New global.
4510 (command_interp): New function.
4511 (interp_exec): Set `command_interpreter' while here.
4512 * cli-out.c (cli_uiout_dtor): New function.
4513 (cli_ui_out_impl): Install it.
4514 * mi/mi-interp.c: Include cli-out.h.
4515 (mi_cmd_interpreter_exec): Add comment.
4516 (restore_current_uiout_cleanup): New function.
4517 (ui_out_free_cleanup): New function.
4518 (mi_on_normal_stop): If finishing an execution command started by
4519 a CLI command, or any kind of breakpoint-like event triggered,
4520 print the stop event to the output (CLI) stream.
4521 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4522
5166082f
PA
45232014-05-21 Pedro Alves <palves@redhat.com>
4524
4525 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4526 current source line having changed.
4527 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4528 * infrun.c (normal_stop): Adjust call to
4529 set_current_sal_from_frame.
4530 * source.c (clear_lines_listed_range): New function.
4531 (set_current_source_symtab_and_line, identify_source_line): Clear
4532 the lines listed range.
4533 (line_info): Handle the first "info line" after the current source
4534 line having changed.
4535 * stack.c (print_stack_frame): Remove center handling.
4536 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4537 center sal.line.
4538
c1ee2fb3
PA
45392014-05-21 Pedro Alves <palves@redhat.com>
4540
4541 * inf-child.c (inf_child_mourn_inferior): New function.
4542 * inf-child.h (inf_child_mourn_inferior): New declaration.
4543 * darwin-nat.c (darwin_mourn_inferior): Use
4544 inf_child_mourn_inferior.
4545 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4546 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4547 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4548 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4549 * windows-nat.c (windows_mourn_inferior): Likewise.
4550
5c6d4fb2
DE
45512014-05-21 Doug Evans <xdje42@gmail.com>
4552
250748cb 4553 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4554
4a2722c5
DE
45552014-05-21 Doug Evans <xdje42@gmail.com>
4556
17292b30 4557 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4558 (gdbscm_out_of_range_error): Ditto.
4559 (gdbscm_memory_error): Ditto.
250748cb
DE
4560 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4561 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4562 (gdbscm_out_of_range_error): Update.
4563 (gdbscm_memory_error): Update.
4564 (gdbscm_scm_to_target_string_unsafe): Delete.
4565
6a3cb8e8
PA
45662014-05-21 Pedro Alves <palves@redhat.com>
4567
4568 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4569 globals.
4570 (inf_child_open_target): New function.
4571 (inf_child_open): Use inf_child_open_target to push the target
4572 instead of erroring out.
4573 (inf_child_disconnect, inf_child_close)
4574 (inf_child_maybe_unpush_target): New functions.
4575 (inf_child_target): Install inf_child_disconnect and
4576 inf_child_close. Store a pointer to the returned object.
4577 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4578 declarations.
4579 * target.c (auto_connect_native_target): New global.
4580 (show_default_run_target): New function.
4581 (find_default_run_target): Return NULL if automatically connecting
4582 to the native target is disabled.
4583 (_initialize_target): Install set/show auto-connect-native-target.
4584 * NEWS: Mention "set auto-connect-native-target", and "target
4585 native".
4586 * linux-nat.c (super_close): New global.
4587 (linux_nat_close): Call super_close.
4588 (linux_nat_add_target): Store a pointer to the base class's
4589 to_close method.
4590 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4591 inf_child_maybe_unpush.
4592 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4593 already pushed.
4594 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4595 the inferior. Use inf_child_maybe_unpush_target.
4596 (inf_ttrace_attach): Don't push the target if it is already
4597 pushed.
4598 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4599 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4600 after mourning the inferior. Use inf_child_maybe_unpush_target.
4601 (darwin_attach_pid): Don't push the target if it is already
4602 pushed.
4603 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4604 mourning the inferior. Use inf_child_maybe_unpush_target.
4605 (gnu_detach): Use inf_child_maybe_unpush_target.
4606 * go32-nat.c (go32_create_inferior): Don't push the target if it
4607 is already pushed.
4608 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4609 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4610 (procfs_open): Rename to ...
4611 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4612 comments. Can target_preopen before changing node. Call
4613 inf_child_open_target to push the target explicitly.
4614 (procfs_attach): Don't push the target if it is already pushed.
4615 (procfs_detach): Use inf_child_maybe_unpush_target.
4616 (procfs_create_inferior): Don't push the target if it is already
4617 pushed.
4618 (nto_native_ops): New global.
4619 (procfs_open): Reimplement.
4620 (procfs_native_open): New function.
4621 (init_procfs_targets): Install procfs_native_open as to_open of
4622 "target native". Store a pointer to the "native" target in
4623 nto_native_ops.
4624 * procfs.c (procfs_attach): Don't push the target if it is already
4625 pushed.
4626 (procfs_detach): Use inf_child_maybe_unpush_target.
4627 (procfs_mourn_inferior): Only unpush the target after mourning the
4628 inferior. Use inf_child_maybe_unpush_target.
4629 (procfs_init_inferior): Don't push the target if it is already
4630 pushed.
4631 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4632 if it is already pushed.
4633
930ee1b1
PA
46342014-05-21 Pedro Alves <palves@redhat.com>
4635
4636 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4637 and "procfs" targets are now called "native" instead.
4638
1f5d1b13
PA
46392014-05-21 Pedro Alves <palves@redhat.com>
4640
4641 * go32-nat.c (go32_open): Delete.
4642 (go32_target): Don't override the to_open method.
4643
132f8e03
PA
46442014-05-21 Pedro Alves <palves@redhat.com>
4645
4646 * nto-procfs.c (procfs_can_run): New function.
4647 (nto_procfs_ops): New global.
4648 (init_procfs_targets): New, based on procfs_target. Install
4649 "target native" in addition to "target procfs".
4650 (_initialize_procfs): Call init_procfs_targets instead of adding
4651 the target here.
4652
03c136c3
PA
46532014-05-21 Pedro Alves <palves@redhat.com>
4654
4655 * windows-nat.c (windows_target): Don't override to_shortname,
4656 to_longname or to_doc.
4657
a635d0f3
PA
46582014-05-21 Pedro Alves <palves@redhat.com>
4659
4660 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4661 to_doc.
4662
4f9b5133
PA
46632014-05-21 Pedro Alves <palves@redhat.com>
4664
4665 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4666 to_shortname, to_longname or to_doc.
4667
bc85afde
PA
46682014-05-21 Pedro Alves <palves@redhat.com>
4669
4670 * go32-nat.c (go32_target): Don't override to_shortname,
4671 to_longname or to_doc.
4672
4ebfc96e
PA
46732014-05-21 Pedro Alves <palves@redhat.com>
4674
4675 * inf-child.c (inf_child_open): Remove mention of "child".
4676 (inf_child_target): Rename target to "native" instead of "child".
4677
2648dfed
AA
46782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4679
4680 * Makefile.in (SFILES): Delete "regset.c".
4681 (COMMON_OBS): Delete "regset.o".
4682 * regset.c: Remove.
4683 * regset.h (regset_alloc): Delete prototype.
4684
b13feb94
AA
46852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4686
4687 * sparc-linux-tdep.c (sparc32_linux_gregset)
4688 (sparc32_linux_fpregset): New static regset structures.
4689 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4690 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4691 'fpregset' fields.
4692 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4693 (sparc64_linux_fpregset): New static regset structures.
4694 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4695 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4696 New static regset structures.
4697 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4698 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4699 New static regset structures.
4700 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4701 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4702 New static regset structures.
4703 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4704 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4705 New static regset structures.
4706 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4707
b4fd25c9
AA
47082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4709
4710 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4711 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4712 register maps ("regmaps") from "*regset" to "*regmap". Do this
4713 for all regmap types and variables.
4714 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4715 (sparc32_linux_supply_core_gregset)
4716 (sparc32_linux_collect_core_gregset)
4717 (sparc32_linux_supply_core_fpregset)
4718 (sparc32_linux_collect_core_fpregset): Likewise.
4719 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4720 (sparc_gregmap, sparc_fpregmap): ... these.
4721 (sparc_supply_gregset, sparc_collect_gregset)
4722 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4723 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4724 (_initialize_sparc_nat): Rename regmaps.
4725 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4726 (sparc_gregmap, sparc_fpregmap): ... these.
4727 (sparc_supply_gregset, sparc_collect_gregset)
4728 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4729 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4730 Rename macros to...
4731 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4732 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4733 Likewise.
4734 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4735 Rename to...
4736 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4737 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4738 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4739 regmaps.
4740 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4741 (sparc32_bsd_fpregset): Rename to...
4742 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4743 (sparc32_bsd_fpregmap): ... these.
4744 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4745 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4746 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4747 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4748 (struct sparc_gregmap, struct sparc_fpregmap)
4749 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4750 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4751 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4752 (sparc32_supply_regset, sparc32_collect_gregset)
4753 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4754 prototypes.
4755 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4756 (sparc64_linux_ptrace_gregmap): ... this.
4757 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4758 (_initialize_sparc64_linux_nat): Rename regmaps.
4759 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4760 (sparc64_linux_core_gregmap): ... this.
4761 (sparc64_linux_supply_core_gregset)
4762 (sparc64_linux_collect_core_gregset)
4763 (sparc64_linux_supply_core_fpregset)
4764 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4765 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4766 (sparc64_sol2_fpregset): Rename to...
4767 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4768 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4769 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4770 regmaps.
4771 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4772 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4773 (sparc64_bsd_fpregset): Rename to...
4774 (struct sparc_gregmap, sparc64_sol2_gregmap)
4775 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4776 (sparc64_bsd_fpregmap): ... these.
4777 (sparc64_supply_gregset, sparc64_collect_gregset)
4778 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4779 prototypes.
4780 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4781 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4782 (sparc64fbsd_gregmap): ... this.
4783 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4784 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4785 Rename regmaps.
4786 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4787 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4788 (sparc64nbsd_collect_fpregset): Likewise.
4789 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4790 (sparc64nbsd_gregmap): ... this.
4791 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4792 regmaps.
4793 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4794 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4795 (sparc64obsd_gregmap): ... this.
4796 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4797 regmaps.
4798 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4799 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4800 (sparc32nbsd_gregmap): ... this.
4801 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4802 regmaps.
4803
8fea3224
AA
48042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4805
4806 * score-tdep.c (score7_linux_gregset): New static regset
4807 structure.
4808 (score7_linux_regset_from_core_section): Remove dynamic regset
4809 allocation.
4810 (score_gdbarch_init): Drop allocation of tdep structure.
4811 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4812
24534243
AA
48132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4814
4815 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4816 regset structures.
4817 (am33_regset_from_core_section): Remove dynamic regset
4818 allocations.
4819
b7195f27
AA
48202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4821
4822 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4823 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4824 structures.
4825 (mips_linux_regset_from_core_section): Remove dynamic regset
4826 allocations.
4827 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4828 'gregset64', 'fpregset', and 'fpregset64'.
4829 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4830 deleted tdep fields.
4831
ecc37a5a
AA
48322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4833
4834 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4835 regset structures.
4836 (amd64_regset_from_core_section): Remove dynamic regset
4837 allocations.
4838 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4839 structure.
4840 (amd64obsd_regset_from_core_section): Remove dynamic regset
4841 allocation.
4842 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4843 Likewise.
4844 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4845 x86-common regset supply function.
4846 * i386-tdep.c (i386_collect_gregset): Make static.
4847 (i386_gregset): New global regset structure.
4848 (i386_fpregset, i386_xstateregset): New static regset structures.
4849 (i386_regset_from_core_section): Remove dynamic regset
4850 allocations.
4851 (i386_gdbarch_init): Remove initialization of tdep fields
4852 'gregset', 'fpregset', and 'xstateregset'.
4853 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4854 'fpregset', and 'xstateregset'.
4855 (i386_collect_gregset): Remove prototype.
4856 (i386_gregset): New declaration.
4857 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4858 structure.
4859 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4860 allocation.
4861
b7611c43
AA
48622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4863
4864 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4865 (arm_linux_vfpregset): New static regset structures.
4866 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4867 regset structures.
4868 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4869 and 'vfpregset' fields.
4870
a069a2bd
AA
48712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4872
4873 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4874 (aarch64_linux_fpregset): New static regset structures.
4875 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4876 of regset structures.
4877 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4878 'fpregset' fields.
4879
09424cff
AA
48802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4881
4882 * regset.h (struct regset): Remove gdbarch field.
4883 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4884 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4885 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4886 Likewise.
4887 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4888 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4889 (ppc32_linux_vsxregset): Likewise.
4890 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4891 via the regcache instead of the regset.
4892 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4893 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4894 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4895 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4896 Likewise.
4897
3ca7dae4
AA
48982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4899
4900 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4901 Constify structures.
4902 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4903 (alphanbsd_aout_gregset): Likewise.
4904 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4905 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4906 Likewise.
4907 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4908 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4909 Likewise.
4910 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4911 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4912 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4913 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4914 * m88k-tdep.c (m88k_gregset): Likewise.
4915 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4916 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4917 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4918 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4919 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4920 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4921 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4922 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4923 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4924 Likewise.
4925 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4926 * sh-tdep.h (sh_corefile_gregset): Likewise.
4927 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4928 * vax-tdep.c (vax_gregset): Likewise.
4929
5876f503
JK
49302014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4931
4932 Fix TLS access for -static -pthread.
4933 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4934 (try_thread_db_load_1): Initialize it.
4935 (thread_db_get_thread_local_address): Call it if LM is zero.
4936 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4937 * target.h (struct target_ops) (to_get_thread_local_address): Add
4938 load_module_addr comment.
4939
0256a6ac
PA
49402014-05-21 Pedro Alves <palves@redhat.com>
4941
4942 * dcache.c (dcache_read_memory_partial): If reading the cache line
4943 fails, fallback to reading just the memory the caller wanted.
4944
227533ac
DE
49452014-05-20 Doug Evans <dje@google.com>
4946
4947 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4948 instead of get_current_arch.
4949
936d2992
PA
49502014-05-20 Pedro Alves <palves@redhat.com>
4951
4952 * NEWS: Mention that compare-sections now works with all targets.
4953
4954 * remote.c (PACKET_qCRC): New enum value.
4955 (remote_verify_memory): Don't send qCRC if the target has no
4956 execution. Use packet_support/packet_ok. If the target doesn't
4957 support the qCRC packet, fallback to a deep memory copy.
4958 (compare_sections_command): Say "target image" instead of "remote
4959 executable".
4960 (_initialize_remote): Add PACKET_qCRC to the list of config
4961 packets that have no associated command. Extend comment.
4962 * target.c (simple_verify_memory, default_verify_memory): New
4963 function.
4964 * target.h (struct target_ops) <to_verify_memory>: Default to
4965 default_verify_memory.
4966 (simple_verify_memory): New declaration.
4967 * target-delegates.c: Regenerate.
4968
e59fa00f
MM
49692014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4970
4971 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4972
f2205de0
HZ
49732014-05-20 Hui Zhu <hui@codesourcery.com>
4974 Yao Qi <yao@codesourcery.com>
4975
4976 PR backtrace/16558
4977 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4978 and change address of sp and pc.
4979
c4e54771
TT
49802014-05-19 Tom Tromey <tromey@redhat.com>
4981
4982 * gdbtypes.c (rank_function): Use XNEWVEC.
4983 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4984
73051182
DE
49852014-05-19 Doug Evans <dje@google.com>
4986
4987 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4988 build_type_unit_groups and moved closer to only caller. Remove
4989 arguments. All references updated. Remove outdated .gdb_index
4990 comment.
4991 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4992 build_type_psymtabs_1.
4993
8832e7e3
DE
49942014-05-19 Doug Evans <dje@google.com>
4995
4996 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4997 n_type_unit_groups, all_type_unit_groups. All uses removed.
4998 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4999 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5000 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5001 (add_type_unit_group_to_table): Delete.
5002
cd8ae15e
DE
50032014-05-19 Doug Evans <dje@google.com>
5004
5005 * eval.c (evaluate_subexp_standard): Add some comments.
5006
08f4850b
DE
50072014-05-17 Doug Evans <xdje42@gmail.com>
5008
5009 * progspace.c (remove_program_space): Delete, unused.
5010 * progspace.h (remove_program_space): Ditto.
5011
bed8455c
DE
50122014-05-17 Doug Evans <xdje42@gmail.com>
5013
5014 * inferior.c (prune_inferiors): Fix comment.
5015 (remove_inferior_command): Call prune_program_spaces.
5016
8d551b02
DE
50172014-05-16 Doug Evans <dje@google.com>
5018
5019 New command line option -D.
5020 * NEWS: Mention it.
5021 * main.c (set_gdb_data_directory): New function.
5022 (captured_main): Recognize -D. Flag error for --data-directory "".
5023 Call set_gdb_data_directory.
5024 (print_gdb_help): Print --data-directory, -D.
5025 * main.h (set_gdb_data_directory): Declare.
5026 * top.c (staged_gdb_datadir): New static global.
5027 (set_gdb_datadir): Call set_gdb_data_directory
5028 (show_gdb_datadir): New function.
5029 (init_main): Update init of data-directory parameter.
5030
18848e28
GF
50312014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5032
5033 Import the "dirfd" gnulib module.
5034 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5035 * gnulib/aclocal.m4: Update.
5036 * gnulib/config.in: Update.
5037 * gnulib/configure: Update.
5038 * gnulib/import/Makefile.am: Update.
5039 * gnulib/import/Makefile.in: Update.
5040 * gnulib/import/dirfd.c: New.
5041 * gnulib/import/m4/dirfd.m4: New.
5042 * gnulib/import/m4/gnulib-cache.m4: Update.
5043 * gnulib/import/m4/gnulib-comp.m4: Update.
5044
95c64f92
YQ
50452014-05-16 Pierre Muller <muller@sourceware.org>
5046 Yao Qi <yao@codesourcery.com>
5047
5048 * valprint.c (print_wchar): Move the code on checking whether
5049 W is a printable wide char to the default branch of switch
5050 statement below. Call wchar_printable instead of gdb_iswprint.
5051
cac395ea
TM
50522014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5053
19679eca 5054 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5055 ldr.w and ldrd instructions.
5056
83655187
DE
50572014-05-15 Doug Evans <dje@google.com>
5058
5059 * dwarf2read.c (read_structure_type): Delete outdated comments.
5060
dd756689
TT
50612014-05-14 Tom Tromey <tromey@redhat.com>
5062
5063 * macrocmd.c (print_macro_definition): Reindent.
5064
75ddda77
DE
50652014-05-13 Doug Evans <xdje42@gmail.com>
5066
5067 * python/py-cmd.c (cmdpy_completer): Add comment.
5068 (completers): Make const.
5069
b0f16a3e
SM
50702014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 * infrun.c (resume): Remove should_resume (unused). Move up
5073 declaration of resume_ptid.
5074
033c3379
TT
50752014-05-13 Tom Tromey <tromey@redhat.com>
5076
5077 * language.h (unop_type_check): Remove.
5078 (binop_type_check): Don't declare.
5079
9b44a3a5
AA
50802014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5081
5082 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5083 call to regcache_raw_collect.
5084
303a33fa
SM
50852014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5086
5087 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5088 mi_console->quote as the quoting character.
5089
196100a0
SM
50902014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5091
5092 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5093
f989a1c8
TT
50942014-04-29 Tom Tromey <tromey@redhat.com>
5095
5096 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5097 "show debug varobj".
5098
9404b58f
KM
50992014-05-07 Kyle McMartin <kyle@redhat.com>
5100
5101 Pushed by Joel Brobecker <brobecker@adacore.com>.
5102 * aarch64-tdep.c (aarch64_software_single_step): New function.
5103 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5104 with aarch64_software_single_step.
5105
5e49ba57
JB
51062014-05-05 Joel Brobecker <brobecker@adacore.com>
5107
5108 GDB 7.7.1 released.
5109
c888a17d
KS
51102014-05-05 Keith Seitz <keiths@redhat.com>
5111
5112 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5113 variable or history value is successfully parsed.
5114
290a839c
YQ
51152014-05-05 Yao Qi <yao@codesourcery.com>
5116 Pedro Alves <palves@redhat.com>
5117
5118 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5119 address of blocks that intersects the requested range. Trim
5120 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5121 sections.
5122 * ctf.c (ctf_xfer_partial): Likewise.
5123
91256dc2
YQ
51242014-05-05 Yao Qi <yao@codesourcery.com>
5125
5126 * printcmd.c (display_command): Remove the check to
5127 target_has_execution.
5128
07284463
MK
51292014-05-03 Mark Kettenis <kettenis@gnu.org>
5130
5131 * ppcobsd-nat.c: Include "obsd-nat.h".
5132 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5133 add_target.
5134 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5135
30a1e6cc
SDJ
51362014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5137
5138 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5139 and 16-bit signed and unsigned arguments. Update comment.
5140 (stap_parse_probe_arguments): Extend code to handle such
5141 arguments. Use warning instead of complaint to notify about
5142 unrecognized bitness.
5143
f33da99a
SDJ
51442014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5145
5146 PR breakpoints/16889
5147 * stap-probe.c (stap_parse_probe_arguments): Simplify
5148 check for non-prefixed probes (i.e., probes whose
5149 arguments do not start with "N@"). Always set the
5150 argument type to a sane value.
5151
95cf3b38
DT
51522014-05-01 David Taylor <dtaylor@emc.com>
5153
5154 * remote.c (compare_sections_command): Add -r option to compare
5155 all loadable read-only sections.
5156
1cfdf534
SC
51572014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5158
5159 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5160 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5161 Update all callers.
5162 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5163 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5164 Remove unused CORE_ADDR argument. Update all callers.
5165
ca4f7f8b
PA
51662014-04-29 Pedro Alves <palves@redhat.com>
5167
5168 * remote.c (struct packet_config) <detect>: Extend comment.
5169 (add_packet_config_cmd): Don't set the config's detect or support
5170 fields here.
5171 (init_all_packet_configs): Also initialize the config's 'detect'
5172 field.
5173 (reset_all_packet_configs_support): New function.
5174 (remote_open_1): Call reset_all_packet_configs_support instead of
5175 init_all_packet_configs.
5176 (_initialize_remote): Initialize all packet configs. Assert that
5177 all packets have an associated command, except a few known
5178 outliers.
5179
11c1ba78
JB
51802014-04-28 Joel Brobecker <brobecker@adacore.com>
5181
5182 * dwarf2read.c (read_subrange_type): Handle dynamic
5183 DW_AT_lower_bound attributes.
5184
8739bc53
JB
51852014-04-28 Joel Brobecker <brobecker@adacore.com>
5186
5187 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5188 dynamic bounds before computing its upper bound.
5189 (ada_discrete_type_low_bound): Same as above with the lower bound.
5190
6f8a3220
JB
51912014-04-28 Joel Brobecker <brobecker@adacore.com>
5192
5193 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5194 range types. Adjust the array handling implementation to
5195 take advantage of this change.
5196 (resolve_dynamic_range): New function, mostly extracted from
5197 resolve_dynamic_bounds.
5198 (resolve_dynamic_array): New function, mostly extracted from
5199 resolve_dynamic_bounds.
5200 (resolve_dynamic_bounds): Delete.
5201 (resolve_dynamic_type): Reimplement. Add handling of
5202 TYPE_CODE_RANGE types.
5203
4d072ce4
JB
52042014-04-28 Joel Brobecker <brobecker@adacore.com>
5205
5206 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5207 handling of parallel ___XA types.
5208
52865325
JB
52092014-04-28 Joel Brobecker <brobecker@adacore.com>
5210
5211 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5212 unnecessary second call to static_unwrap_type.
5213
433e77fa
HZ
52142014-04-27 Hui Zhu <hui@codesourcery.com>
5215
5216 * stack.c (print_frame_info): Call do_gdb_disassembly with
5217 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5218
b51a69ee
DE
52192014-04-26 Doug Evans <xdje42@gmail.com>
5220
5221 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5222
7ae1a6a6
PA
52232014-04-25 Pedro Alves <palves@redhat.com>
5224
5225 PR server/16255
5226 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5227 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5228 and newline from built string.
5229 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5230 (linux_ptrace_attach_fail_reason): ... this.
5231 * linux-nat.c (linux_nat_attach): Adjust to use
5232 linux_ptrace_attach_fail_reason.
5233
4082afcc
PA
52342014-04-25 Pedro Alves <palves@redhat.com>
5235
5236 * remote.c (struct remote_state): Remove multi_process_aware,
5237 non_stop_aware, cond_tracepoints, cond_breakpoints,
5238 breakpoint_commands, fast_tracepoints, static_tracepoints,
5239 install_in_trace, disconnected_tracing,
5240 enable_disable_tracepoints, string_tracing, and
5241 augmented_libraries_svr4_read fields.
5242 (remote_multi_process_p): Move further below in the file.
5243 (struct packet_config): Add comments.
5244 (update_packet_config): Delete function.
5245 (show_packet_config_cmd): Use packet_config_support.
5246 (add_packet_config_cmd): Use NULL as set callback.
5247 (packet_ok): "set remote foo-packet"-style commands no longer
5248 change config->supported -- adjust.
5249 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5250 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5251 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5252 (PACKET_QNonStop, PACKET_multiprocess_feature)
5253 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5254 (PACKET_DisconnectedTracing_feature)
5255 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5256 (set_remote_protocol_packet_cmd): Delete function.
5257 (packet_config_support, packet_support): New functions.
5258 (set_remote_protocol_Z_packet_cmd): Don't call
5259 update_packet_config.
5260 (remote_query_attached, remote_pass_signals)
5261 (remote_program_signals, remote_threads_info)
5262 (remote_threads_extra_info, remote_start_remote): Use
5263 packet_support.
5264 (remote_start_remote): Use packet_config_support and
5265 packet_support.
5266 (init_all_packet_configs): Set all packets to unknown support,
5267 instead of calling update_packet_config.
5268 (remote_check_symbols): Use packet_support.
5269 (remote_supported_packet): Unconditionally set the packet config's
5270 support status.
5271 (remote_multi_process_feature, remote_non_stop_feature)
5272 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5273 (remote_breakpoint_commands_feature)
5274 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5275 (remote_install_in_trace_feature)
5276 (remote_disconnected_tracing_feature)
5277 (remote_enable_disable_tracepoint_feature)
5278 (remote_string_tracing_feature)
5279 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5280 (remote_protocol_features): Adjust to use remote_supported_packet
5281 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5282 "ConditionalTracepoints", "ConditionalBreakpoints",
5283 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5284 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5285 "EnableDisableTracepoints", and "tracenz".
5286 (remote_query_supported): Use packet_support.
5287 (remote_open_1): Adjust.
5288 (extended_remote_attach_1): Use packet_support. Switch on the
5289 result of packet_ok instead of checking whether the packet ended
5290 up disabled.
5291 (remote_vcont_resume): Use packet_support.
5292 (remote_resume, remote_stop_ns, fetch_register_using_p)
5293 (remote_prepare_to_store, store_register_using_P)
5294 (check_binary_download, remote_write_bytes): Use packet_support.
5295 (remote_vkill): Use packet_support. Switch on the result of
5296 packet_ok instead of checking whether the packet ended up
5297 disabled.
5298 (extended_remote_supports_disable_randomization): Use
5299 packet_support.
5300 (extended_remote_run): Switch on the result of packet_ok instead
5301 of checking whether the packet ended up disabled.
5302 (remote_insert_breakpoint, remote_remove_breakpoint)
5303 (remote_insert_watchpoint, remote_remove_watchpoint)
5304 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5305 packet_support.
5306 (remote_search_memory): Use packet_config_support.
5307 (remote_get_thread_local_address, remote_get_tib_address)
5308 (remote_hostio_send_command, remote_can_execute_reverse): Use
5309 packet_support.
5310 (remote_supports_cond_tracepoints)
5311 (remote_supports_cond_breakpoints)
5312 (remote_supports_fast_tracepoints)
5313 (remote_supports_static_tracepoints)
5314 (remote_supports_install_in_trace)
5315 (remote_supports_enable_disable_tracepoint)
5316 (remote_supports_string_tracing)
5317 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5318 the packet config says the feature is enabled or disabled.
5319 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5320 (remote_get_trace_status): Use packet_support.
5321 (remote_set_disconnected_tracing): Adjust to check whether the
5322 feature is enabled with packet_support.
5323 (remote_set_trace_buffer_size, remote_use_agent)
5324 (remote_can_use_agent, remote_supports_btrace): Use
5325 packet_support.
5326 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5327 Use packet_config_support.
5328 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5329 the packet config says the feature is enabled or disabled.
5330 (set_range_stepping): Use packet_support.
5331
bdb52a22
TT
53322014-04-25 Tom Tromey <tromey@redhat.com>
5333
5334 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5335 argument.
5336
e9475ead
SA
53372014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5338
5339 * NEWS: Mention support for C99 variable length arrays.
5340
82eacd52
JB
53412014-04-24 Joel Brobecker <brobecker@adacore.com>
5342
5343 * ada-lang.c (standard_exc): Expand introductory comment.
5344
01f9f808
MS
53452014-04-24 Michael Sturm <michael.sturm@mintel.com>
5346 Walfred Tedeschi <walfred.tedeschi@intel.com>
5347
5348 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5349 AVX512 registers.
5350 (amd64_linux_read_description): Add code to handle AVX512 xstate
5351 mask and return respective tdesc.
5352 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5353 and features/i386/x32-avx512-linux.c.
5354 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5355 (amd64_linux_core_read_description): Add code to handle AVX512
5356 xstate mask and return respective tdesc.
5357 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5358 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5359 calculation.
5360 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5361 (tdesc_amd64_avx512_linux): New prototype.
5362 (tdesc_x32_avx512_linux): Likewise.
5363 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5364 features/i386/x32-avx512.c.
5365 (amd64_ymm_avx512_names): New register names for pseudo
5366 registers YMM16-31.
5367 (amd64_ymmh_avx512_names): New register names for raw registers
5368 YMMH16-31.
5369 (amd64_k_names): New register names for K registers.
5370 (amd64_zmmh_names): New register names for ZMM raw registers.
5371 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5372 (amd64_xmm_avx512_names): New register names for XMM16-31
5373 registers.
5374 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5375 registers.
5376 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5377 if feature is present.
5378 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5379 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5380 (AMD64_NUM_REGS): Adjust to new number of registers.
5381 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5382 registers supplied via XSTATE by AVX512 registers.
5383 (i386_linux_read_description): Add case for AVX512.
5384 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5385 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5386 (i386_linux_core_read_description): Add case for AVX512.
5387 (i386_linux_init_abi): Install supported register note section
5388 for AVX512.
5389 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5390 AVX512.
5391 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5392 registers to be number of zmm7h + 1.
5393 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5394 * i386-tdep.c: Include features/i386/i386-avx512.c.
5395 (i386_zmm_names): Add ZMM pseudo register names array.
5396 (i386_zmmh_names): Add ZMM raw register names array.
5397 (i386_k_names): Add K raw register names array.
5398 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5399 registers. AVX512 has 16 more ZMM registers than there are YMM
5400 registers.
5401 (i386_zmmh_regnum_p): Add function to look up register number of
5402 ZMM raw registers.
5403 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5404 (i386_k_regnum_p): Likewise for K raw registers.
5405 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5406 registers added by AVX512.
5407 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5408 registers added by AVX512.
5409 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5410 added by AVX512.
5411 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5412 (i386_pseudo_register_name): Add ZMM pseudo registers.
5413 (i386_zmm_type): Construct and return vector registers type for ZMM
5414 registers.
5415 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5416 ZMM0-31 pseudo registers and K registers.
5417 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5418 and YMM16-31 registers from register cache.
5419 (i386_pseudo_register_write): Add code to write K, ZMM and
5420 YMM16-31 registers.
5421 (i386_register_reggroup_p): Add code to include/exclude AVX512
5422 registers in/from respective register groups.
5423 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5424 registers if feature is present in xcr0.
5425 (i386_gdbarch_init): Add code to initialize AVX512 feature
5426 variables in tdep structure, wire in pseudo registers and call
5427 initialize_tdesc_i386_avx512.
5428 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5429 variables.
5430 (i386_regnum): Add AVX512 registers.
5431 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5432 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5433 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5434 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5435 512 bits wide.
5436 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5437 (i386_ymm_avx512_regnum_p): Likewise.
5438 (i386_k_regnum_p): Likewise.
5439 (i386_zmm_regnum_p): Likewise.
5440 (i386_zmmh_regnum_p): Likewise.
5441 * i387-tdep.c : Update year in copyright notice.
5442 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5443 XSAVE buffer.
5444 (XSAVE_YMM_AVX512_ADDR): New macro.
5445 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5446 XSAVE buffer.
5447 (XSAVE_XMM_AVX512_ADDR): New macro.
5448 (xsave_avx512_k_offset): New table for K register offsets in
5449 XSAVE buffer.
5450 (XSAVE_AVX512_K_ADDR): New macro.
5451 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5452 in XSAVE buffer.
5453 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5454 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5455 buffer.
5456 (i387_collect_xsave): Add code to collect AVX512 registers from
5457 XSAVE buffer.
5458 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5459 of XMM16-31 registers.
5460 (I387_NUM_K_REGS): New define for number of K registers.
5461 (I387_K0_REGNUM): New define for K0 register number.
5462 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5463 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5464 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5465 registers.
5466 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5467 (I387_XMM16_REGNUM): New define for XMM16 register number.
5468 (I387_YMM0_REGNUM): New define for YMM0 register number.
5469 (I387_KEND_REGNUM): New define for last K register number.
5470 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5471 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5472 number.
5473 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5474 number.
5475 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5476 size.
5477 * features/Makefile: Add AVX512 related files.
5478 * features/i386/32bit-avx512.xml: New file.
5479 * features/i386/64bit-avx512.xml: Likewise.
5480 * features/i386/amd64-avx512-linux.c: Likewise.
5481 * features/i386/amd64-avx512-linux.xml: Likewise.
5482 * features/i386/amd64-avx512.c: Likewise.
5483 * features/i386/amd64-avx512.xml: Likewise.
5484 * features/i386/i386-avx512-linux.c: Likewise.
5485 * features/i386/i386-avx512-linux.xml: Likewise.
5486 * features/i386/i386-avx512.c: Likewise.
5487 * features/i386/i386-avx512.xml: Likewise.
5488 * features/i386/x32-avx512-linux.c: Likewise.
5489 * features/i386/x32-avx512-linux.xml: Likewise.
5490 * features/i386/x32-avx512.c: Likewise.
5491 * features/i386/x32-avx512.xml: Likewise.
5492 * regformats/i386/amd64-avx512-linux.dat: New file.
5493 * regformats/i386/amd64-avx512.dat: Likewise.
5494 * regformats/i386/i386-avx512-linux.dat: Likewise.
5495 * regformats/i386/i386-avx512.dat: Likewise.
5496 * regformats/i386/x32-avx512-linux.dat: Likewise.
5497 * regformats/i386/x32-avx512.dat: Likewise.
5498 * NEWS: Add note about new support for AVX512.
5499
5500
08351840
PA
55012014-04-23 Pedro Alves <palves@redhat.com>
5502
5503 * breakpoint.c (insert_bp_location): Tolerate errors if the
5504 breakpoint is set in a user-loaded objfile.
5505 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5506 location is marked shlib_disabled. If the breakpoint is set in a
5507 user-loaded objfile is a GDB-side memory breakpoint, validate it
5508 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5509 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5510 flag.
5511 * mem-break.c (memory_validate_breakpoint): New function.
5512 * objfiles.c (userloaded_objfile_contains_address_p): New
5513 function.
5514 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5515 * target.h (memory_validate_breakpoint): New declaration.
5516
076855f9
PA
55172014-04-23 Pedro Alves <palves@redhat.com>
5518
5519 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5520 the breakpoint is set in a shared library, only suppress
5521 errors for software breakpoints, not hardware breakpoints.
5522
483805cf
PA
55232014-04-22 Pedro Alves <palves@redhat.com>
5524
5525 * infrun.c (schedlock_applies): New function, factored out from
5526 find_thread_needs_step_over.
5527 (find_thread_needs_step_over): Use it.
5528 (switch_back_to_stepped_thread): Always clear trap_expected if the
5529 step over is finished. Return early if scheduler locking applies.
5530 Look for the stepping thread and a potential step-over thread with
5531 a single loop.
5532 (currently_stepping_or_nexting_callback): Delete.
5533
a75fef0e
NC
55342014-04-22 Nick Clifton <nickc@redhat.com>
5535
5536 * NEWS: Mention that ARM sim now supports tracing.
5537
48b6e87e
YQ
55382014-04-22 Yao Qi <yao@codesourcery.com>
5539
5540 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5541 to ...
5542 * tracefile.c (tracefile_fetch_registers): ... it. New
5543 function.
5544 * tracefile.h (tracefile_fetch_registers): Declare.
5545 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5546 tracefile_fetch_registers.
5547
17617f2d
EZ
55482014-04-19 Eli Zaretskii <eliz@gnu.org>
5549
5550 PR gdb/14018
5551 * windows-nat.c (thread_rec): Don't display a warning when
5552 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5553 fails for any reason, set th->suspended to -1, so that we don't
5554 try to resume such a thread. Also, don't return NULL in these
5555 cases, to avoid completely ruin the session due to "PC register is
5556 not available" error.
5557 (do_windows_fetch_inferior_registers): Check errors in
5558 GetThreadContext call.
5559 (windows_continue): Accept an additional argument KILLED; if not
5560 zero, ignore errors in the SetThreadContext call, since the
5561 inferior was killed and is shutting down.
5562 (windows_resume, get_windows_debug_event)
5563 (windows_create_inferior, windows_mourn_inferior)
5564 (windows_kill_inferior): All callers of windows_continue changed
5565 to adjust to its new calling sequence.
5566
5723a6fd
YQ
55672014-04-19 Yao Qi <yao@codesourcery.com>
5568
5569 * ctf.c (ctf_open): Call post_create_inferior.
5570
614d5099
YQ
55712014-04-19 Yao Qi <yao@codesourcery.com>
5572
5573 * ctf.c (handle_id): New static variable.
5574 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5575 value. Get the declaration of event "register" and get length
5576 of field "contents".
5577
dac3e710
YQ
55782014-04-19 Yao Qi <yao@codesourcery.com>
5579
5580 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5581
2bca57ba
SC
55822014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5583
5584 * valops.c (oload_method_static): Remove unnecessary argument
5585 METHOD. Update all callers.
5586
51d48146
PA
55872014-04-18 Pedro alves <palves@redhat.com>
5588 Tom Tromey <tromey@redhat.com>
5589
5590 PR backtrace/15558
5591 * frame.c (get_prev_frame_1): Rename to ...
5592 (get_prev_frame_always): ... this, and make extern. Adjust.
5593 (skip_artificial_frames): Use get_prev_frame_always.
5594 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5595 (get_frame_unwind_stop_reason): Adjust to rename.
5596 * frame.h (get_prev_frame_always): Declare.
5597 * inline-frame.c: Include frame.h.
5598 (inline_frame_this_id): Use get_prev_frame_always.
5599
1bdad2e0
TG
56002014-04-18 Tristan Gingold <gingold@adacore.com>
5601
5602 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5603 code by using bfd_mach_o_get_base_address.
5604
7ce16bd4
UW
56052014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5606
5607 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5608 (spu_ax_pseudo_register_collect): New function.
5609 (spu_ax_pseudo_register_push_stack): Likewise.
5610 (spu_dwarf_reg_to_regnum): Likewise.
5611 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5612
2ed3c037
UW
56132014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5614
5615 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5616 Replace FRAME argument with FRAME_ID.
5617 * gdbarch.c, gdbarch.h: Regenerate.
5618 * findvar.c (default_value_from_register): Add GDBARCH argument;
5619 replace FRAME by FRAME_ID. No longer call get_frame_id.
5620 (value_from_register): Update call to gdbarch_value_from_register.
5621 * value.h (default_value_from_register): Update prototype.
5622 * s390-linux-tdep.c (s390_value_from_register): Update interface
5623 and call to default_value_from_register.
5624 * spu-tdep.c (spu_value_from_register): Likewise.
5625
5626 * findvar.c (address_from_register): Remove TYPE argument.
5627 Do not call value_from_register; use gdbarch_value_from_register
5628 with null_frame_id instead.
5629 * value.h (address_from_register): Update prototype.
5630 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5631 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5632 address_from_register interface change.
5633
71e50e83
YQ
56342014-04-17 Yao Qi <yao@codesourcery.com>
5635
5636 * gdbtypes.h: Update comments to link to types and macros'
5637 definitions.
5638
7a23c549
SC
56392014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5640
5641 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5642
22869d73
KS
56432014-04-16 Keith Seitz <keiths@redhat.com>
5644
5645 PR gdb/15827
5646 * dwarf2read.c (skip_one_die): Check that all relative-offset
5647 sibling DIEs fall within range of the current reader's buffer.
5648 (read_partial_die): Likewise.
5649
c4f87ca6
KS
56502014-04-16 Keith Seitz <keiths@redhat.com>
5651
5652 PR c++/16597
5653 * cp-namespace.c (lookup_symbol_file): If the type name of
5654 `this' is NULL, return immediately.
5655
b50c8614
KS
56562014-04-14 Keith Seitz <keiths@redhat.com>
5657
5658 PR c++/16253
5659 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5660 from symbol_matches_domain in symtab.c. All local callers
5661 of symbol_matches_domain updated.
5662 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5663 search STRUCT_DOMAIN.
5664 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5665 independently. standard_lookup will do that automatically.
5666 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5667 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5668 (cp_lookup_symbol_in_namespace): Likewise.
5669 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5670 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5671 may return a STRUCT_DOMAIN match.
5672 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5673 * cp-support.c: Include language.h.
5674 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5675 VAR_DOMAIN.
5676 * psymtab.c (match_partial_symbol): Compare the requested
5677 domain with the symbol's domain directly.
5678 (lookup_partial_symbol): Likewise.
5679 * symtab.c (lookup_symbol_in_language): Explain when/why
5680 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5681 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5682 appropriate languages.
5683 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5684 and moved to ada-lang.c
5685 (lookup_block_symbol): Explain that this function only returns
5686 symbol matching the requested DOMAIN.
5687 Compare the requested domain with the symbol's domain directly.
5688 (iterate_over_symbols): Compare the requested domain with the
5689 symbol's domain directly.
5690 * symtab.h (symbol_matches_domain): Remove.
5691
3d567982
TT
56922014-04-14 Tom Tromey <tromey@redhat.com>
5693
5694 PR c++/15246:
5695 * c-exp.y (type_aggregate_p): New function.
5696 (qualified_name, classify_inner_name): Use it.
5697 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5698 and TYPE_TARGET_TYPE of an enum type.
5699 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5700 an enum type.
5701 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5702 handle TYPE_DECLARED_CLASS.
5703 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5704 types.
5705 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5706 * valops.c (enum_constant_from_type): New function.
5707 (value_aggregate_elt): Use it.
5708 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5709 TYPE_CODE_ENUM.
5710
c848d642
TT
57112014-04-14 Tom Tromey <tromey@redhat.com>
5712
5713 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5714 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5715 const.
5716 * value.h (value_aggregate_elt): Update.
5717
0626fc76
TT
57182014-04-14 Tom Tromey <tromey@redhat.com>
5719
5720 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5721
5ecaaa66
SA
57222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5723
5724 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5725 (evaluate_subexp_standard): Pass noside argument.
5726 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5727 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5728 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5729 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5730 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5731
1612e0c0
SA
57322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5733
5734 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5735 points to a constant blob.
5736
c451ebe5
SA
57372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5738
5739 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5740 property and store it as the high bound and flag the range accordingly.
5741 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5742 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5743 * gdbtypes.h (enum range_flags): New enum.
5744 (struct range_bounds): Add flags member.
5745
1d42e4c4
SA
57462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5747
5748 * c-typeprint.c (c_type_print_varspec_suffix): Added
5749 check for not yet resolved high bound. If unresolved, print
5750 "variable length" string to the console instead of random
5751 length.
5752
9f1f738a
SA
57532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5754
5755 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5756 value.
5757 (ada_template_to_fixed_record_type_1): Likewise.
5758 (ada_to_fixed_type_1): Likewise.
5759 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5760 (cp_print_value): Likewise.
5761 * d-valprint.c (dynamic_array_type): Likewise.
5762 * findvar.c (address_of_variable): Likewise.
5763 * jv-valprint.c (java_value_print): Likewise.
5764 * valops.c (value_ind): Likewise.
5765 * value.c (coerce_ref): Likewise.
5766
3c8452d4
SA
57672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5768
5769 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5770 value and retrieve the dynamic type size.
5771
4ad88275
SA
57722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5773
5774 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5775 passed to sizeof is dynamic evaluate the argument to compute the length.
5776
80180f79
SA
57772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5778 Joel Brobecker <brobecker@adacore.com>
5779
5780 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5781 (dwarf2_evaluate_property): New function.
5782 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5783 * dwarf2read.c (attr_to_dynamic_prop): New function.
5784 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5785 attribute.
5786 * gdbtypes.c: Include dwarf2loc.h.
5787 (is_dynamic_type): New function.
5788 (resolve_dynamic_type): New function.
5789 (resolve_dynamic_bounds): New function.
5790 (get_type_length): New function.
5791 (check_typedef): Use get_type_length to compute type length.
5792 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5793 (TYPE_LOW_BOUND_KIND): New macro.
5794 (is_dynamic_type): New function prototype.
5795 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5796 to resolve dynamic properties of the type. Update comment.
5797 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5798
a1556843
RH
57992014-04-14 Richard Henderson <rth@redhat.com>
5800
5801 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5802
0be03e84
DE
58032014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5804 Doug Evans <xdje42@gmail.com>
5805
5806 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5807 dereference TYPE_CODE_REF values.
5808
6b662e19
JB
58092014-04-11 Joel Brobecker <brobecker@adacore.com>
5810
5811 Revert the following changes due to regressions:
5812
5813 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5814 (dwarf2_evaluate_property): New function.
5815 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5816 * dwarf2read.c (attr_to_dynamic_prop): New function.
5817 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5818 attribute.
5819 * gdbtypes.c: Include dwarf2loc.h.
5820 (is_dynamic_type): New function.
5821 (resolve_dynamic_type): New function.
5822 (resolve_dynamic_bounds): New function.
5823 (get_type_length): New function.
5824 (check_typedef): Use get_type_length to compute type length.
5825 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5826 (TYPE_LOW_BOUND_KIND): New macro.
5827 (is_dynamic_type): New function prototype.
5828 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5829 to resolve dynamic properties of the type. Update comment.
5830 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5831
5832 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5833 passed to sizeof is dynamic evaluate the argument to compute the length.
5834
5835 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5836 value and retrieve the dynamic type size.
5837
5838 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5839 (ada_template_to_fixed_record_type_1): Likewise.
5840 (ada_to_fixed_type_1): Likewise.
5841 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5842 (cp_print_value): Likewise.
5843 * d-valprint.c (dynamic_array_type): Likewise.
5844 * eval.c (evaluate_subexp_with_coercion): Likewise.
5845 * findvar.c (address_of_variable): Likewise.
5846 * jv-valprint.c (java_value_print): Likewise.
5847 * valops.c (value_ind): Likewise.
5848 * value.c (coerce_ref): Likewise.
5849
5850 * c-typeprint.c (c_type_print_varspec_suffix): Added
5851 check for not yet resolved high bound. If unresolved, print
5852 "variable length" string to the console instead of random
5853 length.
5854
5855 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5856 property and store it as the high bound and flag the range accordingly.
5857 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5858 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5859 * gdbtypes.h (enum range_flags): New enum.
5860 (struct range_bounds): Add flags member.
5861
5862 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5863 points to a constant blob.
5864
5865 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5866 (evaluate_subexp_standard): Pass noside argument.
5867 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5868 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5869 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5870 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5871 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5872
245a5f0b
KS
58732014-04-11 Keith Seitz <keiths@redhat.com>
5874
5875 PR c++/16675
5876 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5877 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5878 reference types.
5879
3bce8237
SA
58802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5881
5882 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5883 (evaluate_subexp_standard): Pass noside argument.
5884 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5885 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5886 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5887 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5888 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5889
92b09522
SA
58902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5891
5892 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5893 points to a constant blob.
5894
e1969afb
SA
58952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5896
5897 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5898 property and store it as the high bound and flag the range accordingly.
5899 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5900 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5901 * gdbtypes.h (enum range_flags): New enum.
5902 (struct range_bounds): Add flags member.
5903
b86138fb
SA
59042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5905
5906 * c-typeprint.c (c_type_print_varspec_suffix): Added
5907 check for not yet resolved high bound. If unresolved, print
5908 "variable length" string to the console instead of random
5909 length.
5910
bcd629a4
SA
59112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5912
5913 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5914 (ada_template_to_fixed_record_type_1): Likewise.
5915 (ada_to_fixed_type_1): Likewise.
5916 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5917 (cp_print_value): Likewise.
5918 * d-valprint.c (dynamic_array_type): Likewise.
5919 * eval.c (evaluate_subexp_with_coercion): Likewise.
5920 * findvar.c (address_of_variable): Likewise.
5921 * jv-valprint.c (java_value_print): Likewise.
5922 * valops.c (value_ind): Likewise.
5923 * value.c (coerce_ref): Likewise.
5924
04b19544
SA
59252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5926
5927 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5928 value and retrieve the dynamic type size.
5929
26cb189f
SA
59302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5931
5932 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5933 passed to sizeof is dynamic evaluate the argument to compute the length.
5934
37c1ab67
SA
59352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5936
5937 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5938 (dwarf2_evaluate_property): New function.
5939 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5940 * dwarf2read.c (attr_to_dynamic_prop): New function.
5941 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5942 attribute.
5943 * gdbtypes.c: Include dwarf2loc.h.
5944 (is_dynamic_type): New function.
5945 (resolve_dynamic_type): New function.
5946 (resolve_dynamic_bounds): New function.
5947 (get_type_length): New function.
5948 (check_typedef): Use get_type_length to compute type length.
5949 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5950 (TYPE_LOW_BOUND_KIND): New macro.
5951 (is_dynamic_type): New function prototype.
5952 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5953 to resolve dynamic properties of the type. Update comment.
5954 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5955
729efb13
SA
59562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5957
5958 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5959 declaring high/low bounds and change uses accordingly. Call
5960 create_range_type instead of create_static_range_type.
5961 * gdbtypes.c (create_range_type): New function.
5962 (create_range_type): Convert bounds into struct bound_prop and pass
5963 them to create_range_type.
5964 * gdbtypes.h (struct bound_prop): New struct.
5965 (create_range_type): New function prototype.
5966 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5967 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5968 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5969 part of the bound.
5970 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5971
0c9c3474
SA
59722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5973
5974 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5975 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5976 * ada-lang.c: All uses of create_range_type updated.
5977 * coffread.c: All uses of create_range_type updated.
5978 * dwarf2read.c: All uses of create_range_type updated.
5979 * f-exp.y: All uses of create_range_type updated.
5980 * m2-valprint.c: All uses of create_range_type updated.
5981 * mdebugread.c: All uses of create_range_type updated.
5982 * stabsread.c: All uses of create_range_type updated.
5983 * valops.c: All uses of create_range_type updated.
5984 * valprint.c: All uses of create_range_type updated.
5985
9d497a19
PA
59862014-04-10 Pedro Alves <palves@redhat.com>
5987
5988 * breakpoint.c (single_step_breakpoints)
5989 (single_step_gdbarch): Move up in the file.
5990 (one_breakpoint_xfer_memory): New function, factored out from ...
5991 (breakpoint_xfer_memory): ... here. Also process single-step
5992 breakpoints.
5993
15a9128a
TG
59942014-04-09 Tristan Gingold <gingold@adacore.com>
5995
5996 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5997 comments.
5998 (darwin_decode_exception_message): Free port only after use.
5999
9c97a070
PL
60002014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6001
6002 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6003 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6004 when setting the size of call_length.
6005
7af389b8
SC
60062014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6007
6008 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6009 dereference TYPE_CODE_REF values.
6010
86ad98c3
JB
60112014-04-07 Joel Brobecker <brobecker@adacore.com>
6012
6013 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6014 end of warning message.
6015
b0aeadb3
DE
60162014-04-03 Doug Evans <dje@google.com>
6017
6018 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6019 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6020
5979d6b6
AM
60212014-04-02 Alan Modra <amodra@gmail.com>
6022
6023 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6024 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6025 (struct symbol_file_add_from_memory_args): Add size field.
6026 (find_vdso_size): New function.
6027 (add_vsyscall_page): Attempt to find vdso size.
6028
0d60c288
DE
60292014-04-01 Doug Evans <dje@google.com>
6030
6031 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6032
a41f2563
TG
60332014-04-01 Tristan Gingold <gingold@adacore.com>
6034
6035 * darwin-nat.c (darwin_encode_reply): Add prototype.
6036 (darwin_decode_exception_message): Reply to unknown inferiors.
6037 (darwin_decode_message): Handle message by id. Ignore message
6038 to unknown inferior.
6039 (darwin_wait): Discard unknown messages, add debug trace.
6040
11a865c8
DE
60412014-03-31 Doug Evans <dje@google.com>
6042
6043 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6044 comp_dir_string.
6045
770e7fc7
DE
60462014-03-31 Doug Evans <dje@google.com>
6047
6048 New option "set print symbol-loading".
6049 * NEWS: Mention it.
6050 * solib.c (solib_read_symbols): Only print symbol loading messages
6051 if requested.
6052 (solib_add): If symbol loading is in "brief" mode, notify user
6053 symbols are being loaded.
6054 (reload_shared_libraries_1): Ditto.
6055 * symfile.c (print_symbol_loading_off): New static global.
6056 (print_symbol_loading_brief): New static global.
6057 (print_symbol_loading_full): New static global.
6058 (print_symbol_loading_enums): New static global.
6059 (print_symbol_loading): New static global.
6060 (print_symbol_loading_p): New function.
6061 (symbol_file_add_with_addrs): Only print symbol loading messages
6062 if requested.
6063 (_initialize_symfile): Register "print symbol-loading" set/show
6064 command.
6065 * symfile.h (print_symbol_loading_p): Declare.
6066
c32c64b7
DE
60672014-03-30 Doug Evans <xdje42@gmail.com>
6068
6069 * infrun.c (set_last_target_status): New function.
6070 (handle_inferior_event): Call it.
6071
7c0bc051
DE
60722014-03-30 Doug Evans <xdje42@gmail.com>
6073
6074 * inferior.h (enum stop_kind): Improve comment.
6075
8776cfe9
JB
60762014-03-28 Joel Brobecker <brobecker@adacore.com>
6077
6078 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6079 a reference, strip the reference layer before calling
6080 the lang_ops value_has_mutated callback.
6081
410a0ff2
SDJ
60822014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6083
6084 Remove some globals from our parser.
6085 * language.c (unk_lang_parser): Add "struct parser_state"
6086 argument.
6087 * language.h (struct language_defn) <la_parser>: Likewise.
6088 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6089 (initialize_expout): Add "struct parser_state" argument.
6090 Rewrite function to use the parser state.
6091 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6092 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6093 write_exp_elt_longcst, write_exp_elt_dblcst,
6094 write_exp_elt_decfloatcst, write_exp_elt_type,
6095 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6096 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6097 write_dollar_variable): Likewise.
6098 (parse_exp_in_context_1): Use parser state.
6099 (insert_type_address_space): Add "struct parser_state" argument.
6100 Use parser state.
6101 (increase_expout_size): New function.
6102 * parser-defs.h: Forward declare "struct language_defn" and
6103 "struct parser_state".
6104 (expout, expout_size, expout_ptr): Remove extern declarations.
6105 (parse_gdbarch, parse_language): Rewrite macro declarations to
6106 accept the parser state.
6107 (struct parser_state): New struct.
6108 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6109 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6110 write_exp_elt_decfloatcst, write_exp_elt_type,
6111 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6112 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6113 write_exp_msymbol, write_dollar_variable,
6114 mark_struct_expression, insert_type_address_space): Add "struct
6115 parser_state" argument.
6116 (increase_expout_size): New function.
6117 * utils.c (do_clear_parser_state): New function.
6118 (make_cleanup_clear_parser_state): Likewise.
6119 * utils.h (make_cleanup_clear_parser_state): New function
6120 prototype.
6121 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6122 Update calls to write_exp* in order to pass the parser state.
6123 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6124 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6125 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6126 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6127 * stap-probe.c (stap_parse_register_operand): Likewise.
6128 (stap_parse_single_operand): Likewise.
6129 (stap_parse_argument_1): Likewise.
6130 (stap_parse_argument): Use parser state.
6131 * stap-probe.h: Include "parser-defs.h".
6132 (struct stap_parse_info) <pstate>: New field.
6133 * c-exp.y (parse_type): Rewrite to use parser state.
6134 (yyparse): Redefine to c_parse_internal.
6135 (pstate): New global variable.
6136 (parse_number): Add "struct parser_state" argument.
6137 (write_destructor_name): Likewise.
6138 (type_exp): Update calls to write_exp* and similars in order to
6139 use parser state.
6140 (exp1, exp, variable, qualified_name, space_identifier,
6141 typename, typebase): Likewise.
6142 (write_destructor_name, parse_number, lex_one_token,
6143 classify_name, classify_inner_name, c_parse): Add "struct
6144 parser_state" argument. Update function to use parser state.
6145 * c-lang.h: Forward declare "struct parser_state".
6146 (c_parse): Add "struct parser_state" argument.
6147 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6148 (yyparse): Redefine macro to ada_parse_internal.
6149 (pstate): New variable.
6150 (write_int, write_object_renaming, write_var_or_type,
6151 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6152 type_int, type_long, type_long_long, type_float, type_double,
6153 type_long_double, type_char, type_boolean, type_system_address):
6154 Add "struct parser_state" argument.
6155 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6156 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6157 var_or_type, aggregate, aggregate_component_list,
6158 positional_list, others, component_group,
6159 component_associations): Update calls to write_exp* and similar
6160 functions in order to use parser state.
6161 (ada_parse, write_var_from_sym, write_int,
6162 write_exp_op_with_string, write_object_renaming,
6163 find_primitive_type, write_selectors, write_ambiguous_var,
6164 write_var_or_type, write_name_assoc, type_int, type_long,
6165 type_long_long, type_float, type_double, type_long_double,
6166 type_char, type_boolean, type_system_address): Add "struct
6167 parser_state" argument. Adjust function to use parser state.
6168 * ada-lang.c (parse): Likewise.
6169 * ada-lang.h: Forward declare "struct parser_state".
6170 (ada_parse): Add "struct parser_state" argument.
6171 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6172 calls to both functions.
6173 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6174 parser state.
6175 (yyparse): Redefine macro to f_parse_internal.
6176 (pstate): New variable.
6177 (parse_number): Add "struct parser_state" argument.
6178 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6179 and similars in order to use parser state.
6180 (parse_number): Adjust code to use parser state.
6181 (yylex): Likewise.
6182 (f_parse): New function.
6183 * f-lang.h: Forward declare "struct parser_state".
6184 (f_parse): Add "struct parser_state" argument.
6185 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6186 parser state.
6187 (yyparse): Redefine macro for java_parse_internal.
6188 (pstate): New variable.
6189 (push_expression_name, push_expression_name, insert_exp): Add
6190 "struct parser_state" argument.
6191 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6192 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6193 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6194 PostIncrementExpression, PostDecrementExpression,
6195 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6196 UnaryExpressionNotPlusMinus, CastExpression,
6197 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6198 RelationalExpression, EqualityExpression, AndExpression,
6199 ExclusiveOrExpression, InclusiveOrExpression,
6200 ConditionalAndExpression, ConditionalOrExpression,
6201 ConditionalExpression, Assignment, LeftHandSide): Update
6202 calls to write_exp* and similars in order to use parser state.
6203 (parse_number): Ajust code to use parser state.
6204 (yylex): Likewise.
6205 (java_parse): New function.
6206 (push_variable): Add "struct parser_state" argument. Adjust
6207 code to user parser state.
6208 (push_fieldnames, push_qualified_expression_name,
6209 push_expression_name, insert_exp): Likewise.
6210 * jv-lang.h: Forward declare "struct parser_state".
6211 (java_parse): Add "struct parser_state" argument.
6212 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6213 parser state.
6214 (yyparse): Redefine macro to m2_parse_internal.
6215 (pstate): New variable.
6216 (type_exp, exp, fblock, variable, type): Update calls to
6217 write_exp* and similars to use parser state.
6218 (yylex): Likewise.
6219 (m2_parse): New function.
6220 * m2-lang.h: Forward declare "struct parser_state".
6221 (m2_parse): Add "struct parser_state" argument.
6222 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6223 * objc-lang.h: Forward declare "struct parser_state".
6224 (end_msglist): Add "struct parser_state" argument.
6225 * p-exp.y (parse_type): Rewrite macro to use parser state.
6226 (yyparse): Redefine macro to pascal_parse_internal.
6227 (pstate): New variable.
6228 (parse_number): Add "struct parser_state" argument.
6229 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6230 write_exp* and similars in order to use parser state.
6231 (parse_number, yylex): Adjust code to use parser state.
6232 (pascal_parse): New function.
6233 * p-lang.h: Forward declare "struct parser_state".
6234 (pascal_parse): Add "struct parser_state" argument.
6235 * go-exp.y (parse_type): Rewrite macro to use parser state.
6236 (yyparse): Redefine macro to go_parse_internal.
6237 (pstate): New variable.
6238 (parse_number): Add "struct parser_state" argument.
6239 (type_exp, exp1, exp, variable, type): Update calls to
6240 write_exp* and similars in order to use parser state.
6241 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6242 to use parser state.
6243 (go_parse): Likewise.
6244 * go-lang.h: Forward declare "struct parser_state".
6245 (go_parse): Add "struct parser_state" argument.
6246
342587c4
DE
62472014-03-27 Doug Evans <dje@google.com>
6248
6249 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6250
33e80786
DE
62512014-03-27 Doug Evans <dje@google.com>
6252
6253 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6254 Remove argument abbrev_section. All callers updated.
6255
1dbab08b
DE
62562014-03-27 Doug Evans <dje@google.com>
6257
6258 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6259 addr_base, ranges_base.
6260
318d3177
KS
62612014-03-26 Keith Seitz <keiths@redhat.com>
6262
6263 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6264 types, not VAR_DOMAIN.
6265
1e54db15
SL
62662014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6267
6268 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6269 "ra" registers.
6270 * features/nios2-linux.c: Regenerated.
6271 * features/nios2.c: Regenerated.
6272
d3839ede
PA
62732014-03-25 Pedro Alves <palves@redhat.com>
6274
6275 * cli/cli-script.c (script_from_file): Force the interpreter to
6276 sync mode.
6277
7588d2ec
PL
62782014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6279
6280 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6281 small stack allocation.
6282
a6290449
TG
62832014-03-24 Tristan Gingold <gingold@adacore.com>
6284
6285 * darwin-nat.c (exc_server): Remove unused prototype.
6286 (darwin_dump_message): Correctly display data on x86_64.
6287 (darwin_encode_reply): Fix style.
6288 Add comments and fix indentation.
6289
31ae9d24 62902014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6291
6292 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6293
6339bfc4
DE
62942014-03-22 Doug Evans <xdje42@gmail.com>
6295
6296 * infcmd.c: Whitespace fixes.
6297 (interrupt_command): Merge two function comments into one.
6298
0a07590b
DE
62992014-03-22 Doug Evans <xdje42@gmail.com>
6300
6301 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6302 All uses updated.
6303
b55fbac4
YQ
63042014-03-22 Yao Qi <yao@codesourcery.com>
6305
6306 * remote.c (target_read_live_memory): Remove.
6307 (memory_xfer_live_readonly_partial): Rename it to
6308 remote_xfer_live_readonly_partial. Remove argument 'object'.
6309 All callers updated. Call remote_read_bytes_1
6310 instead of target_read_live_memory.
6311 * tracepoint.c (set_traceframe_number): Remove.
6312 (make_cleanup_restore_traceframe_number): Likewise .
6313 * tracepoint.h (set_traceframe_number): Remove declaration.
6314 (make_cleanup_restore_traceframe_number): Likewise.
6315
9217e74e
YQ
63162014-03-22 Yao Qi <yao@codesourcery.com>
6317
6318 * remote.c (remote_read_bytes): Move code on reading from the
6319 remote stub to ...
6320 (remote_read_bytes_1): ... here. New function.
6321
8acf9577
YQ
63222014-03-22 Yao Qi <yao@codesourcery.com>
6323
6324 * ctf.c (ctf_xfer_partial): Check the return value of
6325 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6326 return TARGET_XFER_UNAVAILABLE.
6327 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6328 * target.c (target_read_live_memory): Move it to remote.c.
6329 (memory_xfer_live_readonly_partial): Likewise.
6330 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6331 * remote.c (target_read_live_memory): Moved from target.c.
6332 (memory_xfer_live_readonly_partial): Likewise.
6333 (remote_read_bytes): Factored out from
6334 memory_xfer_partial_1.
6335
feef67ab
DE
63362014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6337
6338 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6339 NULL pointer.
6340
b65dc60b
PA
63412014-03-21 Pedro Alves <palves@redhat.com>
6342
6343 * infrun.c (normal_stop): Extend comment.
6344
b4ab256d
HZ
63452014-03-21 Hui Zhu <hui@codesourcery.com>
6346 Pedro Alves <palves@redhat.com>
6347
6348 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6349 static buffer.
6350 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6351 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6352 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6353
deba7593
MR
63542014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6355
6356 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6357 `z' formatted output modifier.
6358
1bff71c3
SDJ
63592014-03-20 Tom Tromey <tromey@redhat.com>
6360 Sergio Durigan Junior <sergiodj@redhat.com>
6361
6362 * probe.c (parse_probes): Turn assert into an ordinary error.
6363 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6364 exceptions when parsing probes. Rearrange the code for clarity.
6365
90e28950
TT
63662014-03-20 Tom Tromey <tromey@redhat.com>
6367
6368 PR gdb/14135
6369 * top.c (execute_command): Only dispatch events if the command
6370 started the target.
6371
beb460e8
PA
63722014-03-20 Tom Tromey <tromey@redhat.com>
6373
6374 PR cli/15718
6375 * infcall.c: Include event-top.h.
6376 (run_inferior_call): Call async_disable_stdin if needed.
6377
99619bea
PA
63782014-03-20 Pedro Alves <palves@redhat.com>
6379
6380 * infrun.c (prepare_to_proceed): Delete.
6381 (thread_still_needs_step_over): New function.
6382 (find_thread_needs_step_over): New function.
6383 (proceed): If the current thread needs a step-over, set its
6384 steping_over_breakpoint flag. Adjust to use
6385 find_thread_needs_step_over instead of prepare_to_proceed.
6386 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6387 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6388 breakpoint.
6389 (switch_back_to_stepped_thread): Step over breakpoints of all
6390 threads not the stepping thread, before switching back to the
6391 stepping thread.
6392
2adfaa28
PA
63932014-03-20 Pedro Alves <palves@redhat.com>
6394
6395 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6396 extern.
6397 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6398 * infrun.c (saved_singlestep_ptid)
6399 (stepping_past_singlestep_breakpoint): Delete.
6400 (resume): Remove stepping_past_singlestep_breakpoint handling.
6401 (proceed): Store the prev_pc of the stepping thread too.
6402 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6403 singlestep_pc.
6404 (enum infwait_states): Delete infwait_thread_hop_state.
6405 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6406 field.
6407 (handle_inferior_event): Adjust.
6408 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6409 handling and the thread-hop code. Before removing single-step
6410 breakpoints, check whether the thread hit a single-step breakpoint
6411 of another thread. If it did, the trap is not a random signal.
6412 (switch_back_to_stepped_thread): If the event thread hit a
6413 single-step breakpoint, unblock it before switching to the
6414 stepping thread. Handle the case of the stepped thread having
6415 advanced already.
6416 (keep_going): Handle the case of the current thread moving past a
6417 single-step breakpoint.
6418
31e77af2
PA
64192014-03-20 Pedro Alves <palves@redhat.com>
6420
6421 PR breakpoints/7143
6422 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6423 are being stepped over.
6424 (breakpoint_address_match): Make extern.
6425 * breakpoint.h (breakpoint_address_match): New declaration.
6426 * inferior.h (stepping_past_instruction_at): New declaration.
6427 * infrun.c (struct step_over_info): New type.
6428 (step_over_info): New global.
6429 (set_step_over_info, clear_step_over_info)
6430 (stepping_past_instruction_at): New functions.
6431 (handle_inferior_event): Clear the step-over info when
6432 trap_expected is cleared.
6433 (resume): Remove now stale comment.
6434 (clear_proceed_status): Clear step-over info.
6435 (proceed): Adjust step-over handling to set or clear the step-over
6436 info instead of removing all breakpoints.
6437 (handle_signal_stop): When setting up a thread-hop, don't remove
6438 breakpoints here.
6439 (stop_stepping): Clear step-over info.
6440 (keep_going): Adjust step-over handling to set or clear step-over
6441 info and then always inserting breakpoints, instead of removing
6442 all breakpoints when stepping over one.
6443
b9f437de
PA
64442014-03-20 Pedro Alves <palves@redhat.com>
6445
6446 * infrun.c (previous_inferior_ptid): Adjust comment.
6447 (deferred_step_ptid): Delete.
6448 (infrun_thread_ptid_changed, prepare_to_proceed)
6449 (init_wait_for_inferior): Adjust.
6450 (handle_signal_stop): Delete deferred_step_ptid handling.
6451
06c868a8
JK
64522014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6453
6454 PR gdb/15358
6455 * defs.h (sync_quit_force_run): New declaration.
6456 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6457 * event-top.c (async_sigterm_handler): New declaration.
6458 (async_sigterm_token): New variable.
6459 (async_init_signals): Create also async_sigterm_token.
6460 (async_sigterm_handler): New function.
6461 (sync_quit_force_run): New variable.
6462 (handle_sigterm): Replace quit_force call by other calls.
6463 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6464
dea80df0
MR
64652014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6466
6467 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6468 offset into SPE pseudo registers.
6469
0c7e1a46
PA
64702014-03-18 Pedro Alves <palves@redhat.com>
6471
6472 PR gdb/13860
6473 * inferior.h (print_stop_event): Declare.
6474 * infrun.c (print_stop_event): New, factored out from ...
6475 (normal_stop): ... this.
6476 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6477 of bpstat_print/print_stack_frame.
6478
9c1fcd01
TT
64792014-03-17 Tom Tromey <tromey@redhat.com>
6480
6481 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6482
11aa919a
PMR
64832014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6484
6485 * ada-lang.c (decode_constrained_packed_array): Perform a
6486 minimal coercion for reference with coerce_ref instead of
6487 ada_coerce_ref.
6488
d4ccb5e0
TG
64892014-03-17 Tristan Gingold <gingold@adacore.com>
6490
6491 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6492 (darwin_solib_create_inferior_hook): Emit a warning if version
6493 is unhandled.
6494
49840f2a
UW
64952014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6496
6497 * python/py-value.c (get_field_flag): Cast flag_name argument to
6498 PyObject_GetAttrString to support Python 2.4.
6499
ed4123e5
JK
65002014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6501
6502 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6503 (Global Maintainers): Remove Jan Kratochvil.
6504
d6b64346
PA
65052014-03-14 Pedro Alves <palves@redhat.com>
6506
6507 * inferior.h (terminal_ours_for_output): Rename to ...
6508 (child_terminal_ours_for_output): ... this.
6509 (terminal_save_ours): Rename to ...
6510 (child_terminal_save_ours): ... this.
6511 (terminal_ours): Rename to ...
6512 (child_terminal_ours): ... this.
6513 (terminal_inferior): Rename to ...
6514 (child_terminal_inferior): ... this.
6515 (terminal_init_inferior): Rename to ...
6516 (child_terminal_init_inferior): ... this.
6517 (terminal_init_inferior_with_pgrp): Rename to ...
6518 (child_terminal_init_inferior_with_pgrp): ... this.
6519 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6520 (child_terminal_init_with_pgrp): ... this.
6521 (terminal_save_ours): Rename to ...
6522 (child_terminal_save_ours): ... this.
6523 (terminal_init_inferior): Rename to ...
6524 (child_terminal_init): ... this. Adjust.
6525 (terminal_inferior): Rename to ...
6526 (child_terminal_inferior): ... this.
6527 (terminal_ours_for_output): Rename to ...
6528 (child_terminal_ours_for_output): ... this. Adjust.
6529 (terminal_ours): Rename to ...
6530 (child_terminal_ours): ... this.
6531 (terminal_ours_1): Rename to ...
6532 (child_terminal_ours_1): ... this. Adjust.
6533 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6534 * windows-nat.c (do_initial_windows_stuff): Adjust.
6535 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6536 (gnu_terminal_init): ... this. Adjust.
6537 (gnu_target): Adjust.
6538 * inf-child.c (inf_child_target): Adjust.
6539
5a1e8c7a
DE
65402014-03-13 Doug Evans <xdje42@gmail.com>
6541
6542 PR guile/16612
6543 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6544 new eq?-hashtab.
6545
350e1a76
DE
65462014-03-13 Doug Evans <xdje42@gmail.com>
6547
6548 * value.c (record_latest_value): Call release_value_or_incref
6549 instead of release_value.
6550
a69900ae
PA
65512014-03-13 Pedro Alves <palves@redhat.com>
6552
6553 * procfs.c (procfs_target): Don't override to_shortname,
6554 to_longname or to_doc.
6555
5db9f0bd
PA
65562014-03-13 Pedro Alves <palves@redhat.com>
6557
6558 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6559 Unix in user visible strings.
6560
5e3a2c38
SS
65612014-03-12 Stan Shebs <stan@codesourcery.com>
6562
6563 * gdbtypes.h: Annotate comments for Doxygen, add a page
6564 block comment with some general info.
6565
8bc2fe48
PA
65662014-03-12 Pedro Alves <palves@redhat.com>
6567
6568 * infcmd.c (prepare_execution_command): New function, factored out
6569 from several execution commands.
6570 (run_command_1, continue_command, step_1, jump_command)
6571 (signal_command, until_command, advance_command, finish_command)
6572 (attach_command): Use prepare_execution_command.
6573
638c5f49
OJ
65742014-03-12 Omair Javaid <omair.javaid@linaro.org>
6575
6576 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6577 (MAX_BPTS): Define.
6578 (MAX_WPTS): Define.
6579 (struct arm_linux_thread_points): Removed.
6580 (struct arm_linux_process_info): New.
6581 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6582 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6583 (arm_linux_find_breakpoints_by_tid): Removed.
6584 (struct arch_lwp_info): New.
6585 (arm_linux_find_process_pid): New functions.
6586 (arm_linux_add_process): New functions.
6587 (arm_linux_process_info_get): New functions.
6588 (arm_linux_forget_process): New function.
6589 (arm_linux_get_debug_reg_state): New function.
6590 (struct update_registers_data): New.
6591 (update_registers_callback): New function.
6592 (arm_linux_insert_hw_breakpoint1): Updated.
6593 (arm_linux_remove_hw_breakpoint1): Updated.
6594 (arm_linux_insert_hw_breakpoint): Updated.
6595 (arm_linux_remove_hw_breakpoint): Updated.
6596 (arm_linux_insert_watchpoint): Updated.
6597 (arm_linux_remove_watchpoint): Updated.
6598 (arm_linux_new_thread): Updated.
6599 (arm_linux_prepare_to_resume): New function.
6600 (arm_linux_new_fork): New function.
6601 (_initialize_arm_linux_nat): Updated.
6602
6d03af93
PA
66032014-03-12 Pedro Alves <palves@redhat.com>
6604
6605 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6606
b3ccfe11
TT
66072014-03-12 Tom Tromey <tromey@redhat.com>
6608
6609 * inf-child.c (return_zero): New function.
6610 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6611 * aix-thread.c (aix_thread_inferior_created): New function.
6612 (aix_thread_attach): Remove.
6613 (init_aix_thread_ops): Don't set to_attach.
6614 (_initialize_aix_thread): Register inferior_created observer.
6615 * corelow.c (init_core_ops): Don't set to_attach or
6616 to_create_inferior.
6617 * exec.c (init_exec_ops): Don't set to_attach or
6618 to_create_inferior.
6619 * infcmd.c (run_command_1): Use find_run_target. Make direct
6620 target calls.
6621 (attach_command): Use find_attach_target. Make direct target
6622 calls.
6623 * record-btrace.c (init_record_btrace_ops): Don't set
6624 to_create_inferior.
6625 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6626 Remove.
6627 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6628 set to_create_inferior.
6629 * target.c (complete_target_initialization): Add assertion.
6630 (target_create_inferior): Remove.
6631 (find_default_attach, find_default_create_inferior): Remove.
6632 (find_attach_target, find_run_target): New functions.
6633 (find_default_is_async_p, find_default_can_async_p)
6634 (target_supports_non_stop, target_attach): Remove.
6635 (init_dummy_target): Don't set to_create_inferior or
6636 to_supports_non_stop.
6637 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6638 TARGET_DEFAULT_FUNC.
6639 <to_create_inferior>: Add comment.
6640 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6641 TARGET_DEFAULT_RETURN.
6642 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6643 (find_attach_target, find_run_target): Declare.
6644 (target_create_inferior): Remove.
6645 (target_has_execution_1): Update comment.
6646 (target_supports_non_stop): Remove.
6647 * target-delegates.c: Rebuild.
6648
91f83b02
PA
66492014-03-12 Pedro Alves <palves@redhat.com>
6650
6651 * inf-child.h: Update comment to not mention Unix.
6652
f1aea813
PA
66532014-03-12 Pedro Alves <palves@redhat.com>
6654
6655 * inf-child.c: Update top comment to not mention Unix. Add
6656 generic comment describing how this target is meant to be used.
6657 (inf_child_post_attach, inf_child_post_startup_inferior)
6658 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6659 Unix in comment.
6660
ee8e9165
PA
66612014-03-12 Pedro Alves <palves@redhat.com>
6662
6663 * nto-procfs.c: Include inf-child.h.
6664 (procfs_ops): Delete global.
6665 (procfs_can_run): Delete method.
6666 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6667 target pointer instead of referencing procfs_ops.
6668 (procfs_prepare_to_store): Delete.
6669 (init_procfs_ops): Delete function.
6670 (procfs_target): New function, based on init_procfs_ops, but
6671 inherit inf_child_target.
6672 (_initialize_procfs): Use procfs_target.
6673
51a9c8c5
PA
66742014-03-12 Pedro Alves <palves@redhat.com>
6675
6676 * windows-nat.c: Include inf-child.h.
6677 (windows_ops): Delete global.
6678 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6679 methods.
6680 (init_windows_ops): Delete function.
6681 (windows_target): New function, based on init_windows_ops, but
6682 inherit inf_child_target.
6683 (_initialize_windows_nat): Use windows_target. Install x86
6684 specific target methods here.
6685
c1966e26
DE
66862014-03-10 Doug Evans <xdje42@gmail.com>
6687
6688 * guile/guile.c (call_initialize_gdb_module): New function.
6689 (initialize_guile): Replace call to scm_init_guile with call to
6690 scm_with_guile.
6691
023db19c
JB
66922014-03-10 Joel Brobecker <brobecker@adacore.com>
6693
6694 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6695 in call to TYPE_CODE macro.
6696
5ec18f2b
JG
66972014-03-10 Jerome Guitton <guitton@adacore.com>
6698
8668be63
JB
6699 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6700 Resolve tagged types to full view.
5ec18f2b 6701
7d03f2eb
HZ
67022014-03-10 Hui Zhu <hui@codesourcery.com>
6703
6704 * target.h (target_insert_breakpoint): Remove "hardware" from its
6705 comments.
6706
c5164cbc
DE
67072014-03-07 Doug Evans <dje@google.com>
6708
6709 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6710
c4a3fee2
DE
67112014-03-07 Doug Evans <dje@google.com>
6712
6713 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6714 Remove unused local comp_dir_attr. Assert exactly one of
6715 stub_comp_unit_die, stub_comp_dir is non-NULL.
6716
3156469c
JB
67172014-03-07 Joel Brobecker <brobecker@adacore.com>
6718
6719 * target.h (complete_target_initialization, add_target):
6720 Add comment.
6721
c1a7b7c6
PA
67222014-03-07 Pedro Alves <palves@redhat.com>
6723
6724 * go32-nat.c: Include inf-child.h.
6725 (go32_ops): Delete global.
6726 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6727 Delete methods.
6728 (go32_create_inferior): Push the passed in target pointer instead
6729 of referencing go32_ops.
6730 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6731 (go32_target): New function, based on init_go32_ops, but inherit
6732 inf_child_target.
6733 (_initialize_go32_nat): Use go32_target. Move parts of
6734 init_go32_ops here.
6735
d3c1a85f
JB
67362014-03-06 Joel Brobecker <brobecker@adacore.com>
6737
6738 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6739 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6740 SYMBOL_VALUE_ADDRESS.
6741 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6742
5fa1d40e
YQ
67432014-03-06 Yao Qi <yao@codesourcery.com>
6744
6745 * breakpoint.c (get_tracepoint_by_number): Remove argument
6746 optional_p. All callers updated. Adjust comments. Update
6747 output message.
6748 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6749
0c13193f
YQ
67502014-03-06 Yao Qi <yao@codesourcery.com>
6751
6752 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6753 early if get_number returns zero. Use 'p' instead of 'args'.
6754
2217da06
YQ
67552014-03-06 Yao Qi <yao@codesourcery.com>
6756
6757 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6758 message.
6759
cc3da688
YQ
67602014-03-06 Yao Qi <yao@codesourcery.com>
6761
6762 PR breakpoints/16508
6763 * tracepoint.c (check_trace_running): New function.
6764 (trace_find_command): Move code to check_trace_running and
6765 call check_trace_running.
6766 (trace_find_pc_command): Likewise.
6767 (trace_find_tracepoint_command): Likewise.
6768 (trace_find_line_command): Likewise.
6769 (trace_find_range_command): Likewise.
6770 * tracepoint.h (check_trace_running): Likewise.
6771 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6772
6a5f844b
YQ
67732014-03-06 Yao Qi <yao@codesourcery.com>
6774
6775 * target.h (struct target_ops) <to_traceframe_info>: Use
6776 TARGET_DEFAULT_NORETURN (tcomplain ()).
6777 * target-delegates.c: Regenerated.
6778
0f26cec1
PA
67792014-03-05 Pedro Alves <palves@redhat.com>
6780
6781 PR gdb/16575
6782 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6783 void. Update comment.
6784 (dcache_xfer_memory): Delete.
6785 (dcache_read_memory_partial): New, based on the read bits of
6786 dcache_xfer_memory.
6787 (dcache_update): Add status parameter. Use ULONGEST for len, and
6788 adjust. Discard cache lines if the reason for the update was
6789 error.
6790 * dcache.h (dcache_xfer_memory): Delete declaration.
6791 (dcache_read_memory_partial): New declaration.
6792 (dcache_update): Update prototype.
6793 * target.c (raw_memory_xfer_partial): Update the dcache here.
6794 (memory_xfer_partial_1): Don't handle dcache writes here.
6795
b2b255bd
MF
67962014-03-05 Mike Frysinger <vapier@gentoo.org>
6797
6798 * remote-sim.c (gdbsim_load): Add const to prog.
6799
5d9cf8a4
TT
68002014-03-03 Tom Tromey <tromey@redhat.com>
6801
6802 * elfread.c (probe_key): Change to bfd_data.
6803 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6804 now per-BFD, not per-objfile.
6805 * stap-probe.c (stap_probe_destroy): Update comment.
6806 (handle_stap_probe): Allocate on the per-BFD obstack.
6807
729662a5
TT
68082014-03-03 Tom Tromey <tromey@redhat.com>
6809
6810 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6811 * breakpoint.c (create_longjmp_master_breakpoint): Use
6812 get_probe_address.
6813 (add_location_to_breakpoint, bkpt_probe_insert_location)
6814 (bkpt_probe_remove_location): Update.
6815 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6816 * elfread.c (elf_symfile_relocate_probe): Remove.
6817 (elf_probe_fns): Update.
6818 (insert_exception_resume_breakpoint): Change type of "probe"
6819 parameter to bound_probe.
6820 (check_exception_resume): Update.
6821 * objfiles.c (objfile_relocate1): Don't relocate probes.
6822 * probe.c (bound_probe_s): New typedef.
6823 (parse_probes): Use get_probe_address. Set sal's objfile.
6824 (find_probe_by_pc): Return a bound_probe.
6825 (collect_probes): Return a VEC(bound_probe_s).
6826 (compare_probes): Update.
6827 (gen_ui_out_table_header_info): Change type of "probes"
6828 parameter. Update.
6829 (info_probes_for_ops): Update.
6830 (get_probe_address): New function.
6831 (probe_safe_evaluate_at_pc): Update.
6832 * probe.h (struct probe_ops) <get_probe_address>: New field.
6833 <set_semaphore, clear_semaphore>: Add objfile parameter.
6834 (struct probe) <objfile>: Remove field.
6835 <arch>: New field.
6836 <address>: Update comment.
6837 (struct bound_probe): New.
6838 (find_probe_by_pc): Return a bound_probe.
6839 (get_probe_address): Declare.
6840 * solib-svr4.c (struct probe_and_action) <address>: New field.
6841 (hash_probe_and_action, equal_probe_and_action): Update.
6842 (register_solib_event_probe): Add address parameter.
6843 (solib_event_probe_at): Update.
6844 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6845 get_probe_address.
6846 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6847 (stap_get_probe_address): New function.
6848 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6849 (compile_probe_arg): Update.
6850 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6851 address.
6852 (handle_stap_probe): Don't relocate the probe.
6853 (stap_relocate): Remove.
6854 (stap_gen_info_probes_table_values): Update.
6855 (stap_probe_ops): Remove stap_relocate.
6856 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6857 (debug_sym_probe_fns): Update.
6858 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6859 * symtab.c (init_sal): Use memset.
6860 * symtab.h (struct symtab_and_line) <objfile>: New field.
6861 * tracepoint.c (start_tracing, stop_tracing): Update.
6862
ff887920
TT
68632014-03-03 Tom Tromey <tromey@redhat.com>
6864
6865 * probe.h (parse_probes, find_probe_by_pc)
6866 (find_probes_in_objfile): Fix comments.
6867
f0407826
DE
68682014-03-02 Doug Evans <xdje42@gmail.com>
6869
6870 * infrun.c (handle_signal_stop): Replace test for
6871 TARGET_WAITKIND_STOPPED with an assert.
6872
35e6a711
DE
68732014-03-02 Doug Evans <xdje42@gmail.com>
6874
6875 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6876
667f9d0b
DE
68772014-03-02 Doug Evans <xdje42@gmail.com>
6878
6879 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6880
dc92ace0
MK
68812014-03-01 Mark Kettenis <kettenis@gnu.org>
6882
6883 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6884
a900370f
MK
68852014-03-01 Mark Kettenis <kettenis@gnu.org>
6886
6887 * i386obsd-nat.c: Include "obsd-nat.h".
6888 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6889 add_target.
6890 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6891
b72a7981
MK
68922014-03-01 Mark Kettenis <kettenis@gnu.org>
6893
6894 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6895
96c70aba
MK
68962014-03-01 Mark Kettenis <kettenis@gnu.org>
6897
6898 * mips64obsd-nat.c: Include "obsd-nath".
6899 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6900 add_target
6901 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6902
874a80af
MK
69032014-03-01 Mark Kettenis <kettenis@gnu.org>
6904
8fd408f1
MK
6905 * amd64obsd-nat.c: Include "obsd-nat,h.
6906 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6907 add_target.
874a80af
MK
6908 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6909
9cf95373
SC
69102014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6911
6912 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6913 (find_overload_match): Update call to find_oload_champ.
6914 (find_oload_champ_namespace_loop): Likewise
6915
863e4da4
MK
69162014-02-28 Mark Kettenis <kettenis@gnu.org>
6917
025cac40
MK
6918 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6919
1ed586ce
MK
6920 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6921 * config/sparc/obsd64.mh: New file.
6922 * sparc64obsd-nat.c: New file.
6923
863e4da4
MK
6924 * obsd-nat.h: New file.
6925 * obsd-nat.c: New file.
6926 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6927 (ALLDEPFILES): Add obsd-nat.c.
6928
89de4da4
TT
69292014-02-28 Tom Tromey <tromey@redhat.com>
6930
6931 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6932 * cli-out.h (cli_ui_out_impl): Now const.
6933 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6934 * ui-out.c (struct ui_out) <impl>: Now const.
6935 (default_ui_out_impl): Now const.
6936 (ui_out_new): Make 'impl' parameter const.
6937 * ui-out.h (ui_out_new): Update.
6938
c725e7b6
MK
69392014-02-27 Mark Kettenis <kettenis@gnu.org>
6940
6941 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6942
670b46b3
MK
69432014-02-27 Mark Kettenis <kettenis@gnu.org>
6944
6945 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6946
c91550fc
JK
69472014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6948
6949 Additional PR 8882 fix.
6950 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6951
2fa0369e
PA
69522014-02-27 Pedro Alves <palves@redhat.com>
6953
6954 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6955 isn't set.
6956
d632a097
PA
69572014-02-27 Pedro Alves <palves@redhat.com>
6958
6959 PR 12702
6960 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6961 * nat/linux-waitpid.c: Include string.h.
6962 (status_to_str): Moved here and made extern.
6963 * nat/linux-waitpid.h (status_to_str): New declaration.
6964
2ebd5a35
HZ
69652014-02-27 Hui Zhu <hui@codesourcery.com>
6966
6967 PR 12702
6968 * infrun.c (ptid_match): Move ...
6969 * common/ptid.c (ptid_match): ... here.
6970 * inferior.h (ptid_match): Move ...
6971 * common/ptid.h (ptid_match): ... here.
6972
3cdd631f
MK
69732014-02-27 Mark Kettenis <kettenis@gnu.org>
6974
6975 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6976 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6977 gdb_target_obs.
6978
bee30a64
MK
69792014-02-27 Mark Kettenis <kettenis@gnu.org>
6980
6981 * obsd-tdep.c (obsd_auxv_parse): New function.
6982 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6983
6984 * gdbarch.sh (auxv_parse): New.
6985 * gdbarch.h: Regenerated.
6986 * gdbarch.c: Regenerated.
6987 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6988
7a5a839f
LC
69892014-02-26 Ludovic Courtès <ludo@gnu.org>
6990
6991 * guile/scm-value.c (gdbscm_history_append_x): New function.
6992 (value_functions): Add it.
6993
31aa7e4e
JB
69942014-02-27 Joel Brobecker <brobecker@adacore.com>
6995
6996 * dwarf2read.c (attr_value_as_address): New function.
6997 (dwarf2_find_base_address, read_call_site_scope): Use
6998 attr_value_as_address in place of DW_ADDR.
6999 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7000 the low and high addresses. Slight rework of the handling
7001 of the high pc being a constant form, and limit it to
7002 DWARF verson 4 or higher.
7003 (dwarf2_record_block_ranges): Likewise.
7004 (read_partial_die): Likewise.
7005 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7006
9b333ba3
TT
70072014-02-26 Tom Tromey <tromey@redhat.com>
7008
7009 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7010
5f6cac40
TT
70112014-02-26 Tom Tromey <tromey@redhat.com>
7012
7013 * elfread.c (elf_read_minimal_symbols): Return early if
7014 minimal symbols have already been read. Add "ei" parameter.
7015 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7016 * minsyms.c (prim_record_minimal_symbol_full): Update.
7017 * objfiles.h (struct objstats) <n_minsyms>: Move...
7018 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7019 * symmisc.c (print_objfile_statistics): Update.
7020
2750ef27
TT
70212014-02-26 Tom Tromey <tromey@redhat.com>
7022
7023 * elfread.c (elf_read_minimal_symbols): New function, from
7024 elf_symfile_read.
7025 (elf_symfile_read): Call it.
7026
34643a32
TT
70272014-02-26 Tom Tromey <tromey@redhat.com>
7028
7029 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7030 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7031 (lookup_minimal_symbol_solib_trampoline)
7032 (lookup_minimal_symbol_by_pc_section_1)
7033 (lookup_minimal_symbol_and_objfile): Update.
7034 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7035 Don't allocate a minimal symbol if minsyms have already been read.
7036 (build_minimal_symbol_hash_tables): Update.
7037 (install_minimal_symbols): Do nothing if minsyms already read.
7038 Use the per-BFD obstack.
7039 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7040 * objfiles.c (allocate_objfile): Call
7041 terminate_minimal_symbol_table later.
7042 (have_minimal_symbols): Update.
7043 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7044 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7045 Move from struct objfile.
7046 <minsyms_read>: New field.
7047 (struct objfile) <msymbols, minimal_symbol_count,
7048 msymbol_hash, msymbol_demangled_hash>: Move.
7049 (ALL_OBJFILE_MSYMBOLS): Update.
7050 * symfile.c (read_symbols): Set minsyms_read.
7051 (reread_symbols): Update.
7052 * symmisc.c (dump_objfile, dump_msymbols): Update.
7053
2273f0ac
TT
70542014-02-26 Tom Tromey <tromey@redhat.com>
7055
7056 * minsyms.c (msymbols_sort): Remove.
7057 * minsyms.h (msymbols_sort): Remove.
7058 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7059 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7060 * elfread.c (elf_symtab_read): Don't add section offsets.
7061 * xcoffread.c (record_minimal_symbol): Don't add section offset
7062 to minimal symbol address.
7063 * somread.c (text_offset, data_offset): Remove.
7064 (som_symtab_read): Don't add section offsets to minimal symbol
7065 addresses.
7066 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7067 Don't add section offsets to minimal symbols.
7068 * coffread.c (coff_symtab_read): Don't add section offsets
7069 to minimal symbol addresses.
7070 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7071 to minimal symbol addresses.
7072 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7073 section offset to minimal symbol addresses.
7074 * mdebugread.c (parse_partial_symbols): Don't add section
7075 offset to minimal symbol addresses.
7076 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7077 offset to minimal symbol addresses.
7078
77e371c0
TT
70792014-02-26 Tom Tromey <tromey@redhat.com>
7080
7081 * ada-lang.c (ada_main_name): Update.
7082 (ada_add_standard_exceptions): Update.
7083 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7084 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7085 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7086 * auxv.c (ld_so_xfer_auxv): Update.
7087 * avr-tdep.c (avr_scan_prologue): Update.
7088 * ax-gdb.c (gen_var_ref): Update.
7089 * blockframe.c (get_pc_function_start)
7090 (find_pc_partial_function_gnu_ifunc): Update.
7091 * breakpoint.c (create_overlay_event_breakpoint)
7092 (create_longjmp_master_breakpoint)
7093 (create_std_terminate_master_breakpoint)
7094 (create_exception_master_breakpoint): Update.
7095 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7096 * c-valprint.c (c_val_print): Update.
7097 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7098 * common/agent.c (agent_look_up_symbols): Update.
7099 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7100 * dwarf2loc.c (call_site_to_target_addr): Update.
7101 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7102 * elfread.c (elf_gnu_ifunc_record_cache)
7103 (elf_gnu_ifunc_resolve_by_got): Update.
7104 * findvar.c (default_read_var_value): Update.
7105 * frame.c (inside_main_func): Update.
7106 * frv-tdep.c (frv_frame_this_id): Update.
7107 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7108 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7109 Update.
7110 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7111 (hppa_hpux_find_dummy_bpaddr): Update.
7112 * hppa-tdep.c (hppa_symbol_address): Update.
7113 * infcmd.c (until_next_command): Update.
7114 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7115 Update.
7116 * linespec.c (minsym_found, add_minsym): Update.
7117 * linux-nat.c (get_signo): Update.
7118 * linux-thread-db.c (inferior_has_bug): Update.
7119 * m32c-tdep.c (m32c_return_value)
7120 (m32c_m16c_address_to_pointer): Update.
7121 * m32r-tdep.c (m32r_frame_this_id): Update.
7122 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7123 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7124 * maint.c (maintenance_translate_address): Update.
7125 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7126 (frob_address): New function.
7127 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7128 frob_address. Rename parameter to "pc_in".
7129 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7130 addresses.
7131 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7132 Update.
7133 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7134 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7135 * objc-lang.c (find_objc_msgsend): Update.
7136 * objfiles.c (objfile_relocate1): Update.
7137 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7138 * p-valprint.c (pascal_val_print): Update.
7139 * parse.c (write_exp_msymbol): Update.
7140 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7141 (ppc_elfv2_skip_entrypoint): Update.
7142 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7143 * printcmd.c (build_address_symbolic, msym_info)
7144 (address_info): Update.
7145 * proc-service.c (ps_pglobal_lookup): Update.
7146 * psymtab.c (find_pc_sect_psymtab_closer)
7147 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7148 Change msymbol parameter to bound_minimal_symbol.
7149 * ravenscar-thread.c (get_running_thread_id): Update.
7150 * remote.c (remote_check_symbols): Update.
7151 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7152 address.
7153 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7154 * solib-dsbt.c (lm_base): Update.
7155 * solib-frv.c (lm_base, main_got): Update.
7156 * solib-irix.c (locate_base): Update.
7157 * solib-som.c (som_solib_create_inferior_hook)
7158 (link_map_start): Update.
7159 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7160 * solib-svr4.c (elf_locate_base, enable_break): Update.
7161 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7162 (flush_ea_cache): Update.
7163 * stabsread.c (define_symbol, scan_file_globals): Update.
7164 * stack.c (find_frame_funname): Update.
7165 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7166 (debug_qf_find_pc_sect_symtab): Update.
7167 * symfile.c (simple_read_overlay_table)
7168 (simple_overlay_update): Update.
7169 * symfile.h (struct quick_symbol_functions)
7170 <find_pc_sect_symtab>: Change type of msymbol to
7171 bound_minimal_symbol.
7172 * symmisc.c (dump_msymbols): Update.
7173 * symtab.c (find_pc_sect_symtab_via_partial)
7174 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7175 (search_symbols, print_msymbol_info): Update.
7176 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7177 (MSYMBOL_VALUE_ADDRESS): Redefine.
7178 (BMSYMBOL_VALUE_ADDRESS): New macro.
7179 * tracepoint.c (scope_info): Update.
7180 * tui/tui-disasm.c (tui_find_disassembly_address)
7181 (tui_get_begin_asm_address): Update.
7182 * valops.c (find_function_in_inferior): Update.
7183 * value.c (value_static_field, value_fn_field): Update.
7184
3b7344d5
TT
71852014-02-26 Tom Tromey <tromey@redhat.com>
7186
7187 * ada-lang.c (ada_update_initial_language): Update.
7188 (ada_main_name, ada_has_this_exception_support): Update.
7189 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7190 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7191 * arm-tdep.c (arm_skip_stub): Update.
7192 * auxv.c (ld_so_xfer_auxv): Update.
7193 * avr-tdep.c (avr_scan_prologue): Update.
7194 * ax-gdb.c (gen_var_ref): Update.
7195 * breakpoint.c (struct breakpoint_objfile_data)
7196 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7197 type to bound_minimal_symbol.
7198 (create_overlay_event_breakpoint)
7199 (create_longjmp_master_breakpoint)
7200 (create_std_terminate_master_breakpoint)
7201 (create_exception_master_breakpoint): Update.
7202 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7203 * c-exp.y (classify_name): Update.
7204 * coffread.c (coff_symfile_read): Update.
7205 * common/agent.c (agent_look_up_symbols): Update.
7206 * d-lang.c (d_main_name): Update.
7207 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7208 * dec-thread.c (enable_dec_thread): Update.
7209 * dwarf2loc.c (call_site_to_target_addr): Update.
7210 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7211 * eval.c (evaluate_subexp_standard): Update.
7212 * findvar.c (struct minsym_lookup_data) <result>: Change type
7213 to bound_minimal_symbol.
7214 <objfile>: Remove.
7215 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7216 * frame.c (inside_main_func): Update.
7217 * frv-tdep.c (frv_frame_this_id): Update.
7218 * gcore.c (call_target_sbrk): Update.
7219 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7220 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7221 Update.
7222 * go-lang.c (go_main_name): Update.
7223 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7224 (hppa_hpux_find_import_stub_for_addr): Update.
7225 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7226 Update. Change return type.
7227 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7228 type.
7229 * jit.c (jit_breakpoint_re_set_internal): Update.
7230 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7231 Update.
7232 * linux-nat.c (get_signo): Update.
7233 * linux-thread-db.c (inferior_has_bug): Update
7234 * m32c-tdep.c (m32c_return_value)
7235 (m32c_m16c_address_to_pointer): Update.
7236 * m32r-tdep.c (m32r_frame_this_id): Update.
7237 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7238 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7239 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7240 lookup_minimal_symbol. Change return type.
7241 (lookup_minimal_symbol): Remove.
7242 (lookup_bound_minimal_symbol): Update.
7243 (lookup_minimal_symbol_text): Change return type.
7244 (lookup_minimal_symbol_solib_trampoline): Change return type.
7245 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7246 (lookup_minimal_symbol_solib_trampoline): Change return type.
7247 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7248 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7249 (value_nsstring, find_imps): Update.
7250 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7251 * p-lang.c (pascal_main_name): Update.
7252 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7253 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7254 * proc-service.c (ps_pglobal_lookup): Update.
7255 * ravenscar-thread.c (get_running_thread_msymbol): Change
7256 return type.
7257 (has_ravenscar_runtime, get_running_thread_id): Update.
7258 * remote.c (remote_check_symbols): Update.
7259 * sol-thread.c (ps_pglobal_lookup): Update.
7260 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7261 * solib-dsbt.c (lm_base): Update.
7262 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7263 Update.
7264 * solib-irix.c (locate_base): Update.
7265 * solib-som.c (som_solib_create_inferior_hook)
7266 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7267 Update.
7268 * solib-spu.c (spu_enable_break): Update.
7269 * solib-svr4.c (elf_locate_base, enable_break): Update.
7270 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7271 (flush_ea_cache): Update.
7272 * stabsread.c (define_symbol): Update.
7273 * symfile.c (simple_read_overlay_table): Update.
7274 * symtab.c (find_pc_sect_line): Update.
7275 * tracepoint.c (scope_info): Update.
7276 * tui-disasm.c (tui_get_begin_asm_address): Update.
7277 * value.c (value_static_field): Update.
7278
40c1a007
TT
72792014-02-26 Tom Tromey <tromey@redhat.com>
7280
7281 * minsyms.c (prim_record_minimal_symbol_full): Use
7282 SET_MSYMBOL_VALUE_ADDRESS.
7283 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7284 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7285 SET_MSYMBOL_VALUE_ADDRESS.
7286 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7287 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7288
efd66ac6
TT
72892014-02-26 Tom Tromey <tromey@redhat.com>
7290
7291 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7292 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7293 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7294 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7295 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7296 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7297 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7298 * ada-lang.c (ada_main_name): Update.
7299 (ada_lookup_simple_minsym): Update.
7300 (ada_make_symbol_completion_list): Update.
7301 (ada_add_standard_exceptions): Update.
7302 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7303 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7304 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7305 * arm-tdep.c (skip_prologue_function): Update.
7306 (arm_skip_stack_protector, arm_skip_stub): Update.
7307 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7308 (arm_wince_skip_main_prologue): Update.
7309 * auxv.c (ld_so_xfer_auxv): Update.
7310 * avr-tdep.c (avr_scan_prologue): Update.
7311 * ax-gdb.c (gen_var_ref): Update.
7312 * block.c (call_site_for_pc): Update.
7313 * blockframe.c (get_pc_function_start): Update.
7314 (find_pc_partial_function_gnu_ifunc): Update.
7315 * breakpoint.c (create_overlay_event_breakpoint): Update.
7316 (create_longjmp_master_breakpoint): Update.
7317 (create_std_terminate_master_breakpoint): Update.
7318 (create_exception_master_breakpoint): Update.
7319 (resolve_sal_pc): Update.
7320 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7321 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7322 Update.
7323 * c-valprint.c (c_val_print): Update.
7324 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7325 * coffread.c (coff_symfile_read): Update.
7326 * common/agent.c (agent_look_up_symbols): Update.
7327 * dbxread.c (find_stab_function_addr): Update.
7328 (end_psymtab): Update.
7329 * dwarf2loc.c (call_site_to_target_addr): Update.
7330 (func_verify_no_selftailcall): Update.
7331 (tailcall_dump): Update.
7332 (call_site_find_chain_1): Update.
7333 (dwarf_expr_reg_to_entry_parameter): Update.
7334 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7335 (elf_gnu_ifunc_resolve_by_got): Update.
7336 * f-valprint.c (info_common_command): Update.
7337 * findvar.c (read_var_value): Update.
7338 * frame.c (get_prev_frame_1): Update.
7339 (inside_main_func): Update.
7340 * frv-tdep.c (frv_skip_main_prologue): Update.
7341 (frv_frame_this_id): Update.
7342 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7343 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7344 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7345 (gnuv3_skip_trampoline): Update.
7346 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7347 (hppa64_hpux_in_solib_call_trampoline): Update.
7348 (hppa_hpux_skip_trampoline_code): Update.
7349 (hppa64_hpux_search_dummy_call_sequence): Update.
7350 (hppa_hpux_find_import_stub_for_addr): Update.
7351 (hppa_hpux_find_dummy_bpaddr): Update.
7352 * hppa-tdep.c (hppa_symbol_address)
7353 (hppa_lookup_stub_minimal_symbol): Update.
7354 * i386-tdep.c (i386_skip_main_prologue): Update.
7355 (i386_pe_skip_trampoline_code): Update.
7356 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7357 * infcall.c (get_function_name): Update.
7358 * infcmd.c (until_next_command): Update.
7359 * jit.c (jit_breakpoint_re_set_internal): Update.
7360 (jit_inferior_init): Update.
7361 * linespec.c (minsym_found): Update.
7362 (add_minsym): Update.
7363 * linux-fork.c (info_checkpoints_command): Update.
7364 * linux-nat.c (get_signo): Update.
7365 * linux-thread-db.c (inferior_has_bug): Update.
7366 * m32c-tdep.c (m32c_return_value): Update.
7367 (m32c_m16c_address_to_pointer): Update.
7368 (m32c_m16c_pointer_to_address): Update.
7369 * m32r-tdep.c (m32r_frame_this_id): Update.
7370 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7371 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7372 * maint.c (maintenance_translate_address): Update.
7373 * minsyms.c (add_minsym_to_hash_table): Update.
7374 (add_minsym_to_demangled_hash_table): Update.
7375 (msymbol_objfile): Update.
7376 (lookup_minimal_symbol): Update.
7377 (iterate_over_minimal_symbols): Update.
7378 (lookup_minimal_symbol_text): Update.
7379 (lookup_minimal_symbol_by_pc_name): Update.
7380 (lookup_minimal_symbol_solib_trampoline): Update.
7381 (lookup_minimal_symbol_by_pc_section_1): Update.
7382 (lookup_minimal_symbol_and_objfile): Update.
7383 (prim_record_minimal_symbol_full): Update.
7384 (compare_minimal_symbols): Update.
7385 (compact_minimal_symbols): Update.
7386 (build_minimal_symbol_hash_tables): Update.
7387 (install_minimal_symbols): Update.
7388 (terminate_minimal_symbol_table): Update.
7389 (find_solib_trampoline_target): Update.
7390 (minimal_symbol_upper_bound): Update.
7391 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7392 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7393 (mips_skip_pic_trampoline_code): Update.
7394 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7395 * objc-lang.c (selectors_info): Update.
7396 (classes_info): Update.
7397 (find_methods): Update.
7398 (find_imps): Update.
7399 (find_objc_msgsend): Update.
7400 * objfiles.c (objfile_relocate1): Update.
7401 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7402 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7403 * p-valprint.c (pascal_val_print): Update.
7404 * parse.c (write_exp_msymbol): Update.
7405 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7406 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7407 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7408 * printcmd.c (build_address_symbolic): Update.
7409 (sym_info): Update.
7410 (address_info): Update.
7411 * proc-service.c (ps_pglobal_lookup): Update.
7412 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7413 (find_pc_sect_psymtab): Update.
7414 * python/py-framefilter.c (py_print_frame): Update.
7415 * ravenscar-thread.c (get_running_thread_id): Update.
7416 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7417 Update.
7418 * remote.c (remote_check_symbols): Update.
7419 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7420 (rs6000_skip_trampoline_code): Update.
7421 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7422 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7423 * solib-dsbt.c (lm_base): Update.
7424 * solib-frv.c (lm_base): Update.
7425 (main_got): Update.
7426 * solib-irix.c (locate_base): Update.
7427 * solib-som.c (som_solib_create_inferior_hook): Update.
7428 (som_solib_desire_dynamic_linker_symbols): Update.
7429 (link_map_start): Update.
7430 * solib-spu.c (spu_enable_break): Update.
7431 (ocl_enable_break): Update.
7432 * solib-svr4.c (elf_locate_base): Update.
7433 (enable_break): Update.
7434 * spu-tdep.c (spu_get_overlay_table): Update.
7435 (spu_catch_start): Update.
7436 (flush_ea_cache): Update.
7437 * stabsread.c (define_symbol): Update.
7438 (scan_file_globals): Update.
7439 * stack.c (find_frame_funname): Update.
7440 (frame_info): Update.
7441 * symfile.c (simple_read_overlay_table): Update.
7442 (simple_overlay_update): Update.
7443 * symmisc.c (dump_msymbols): Update.
7444 * symtab.c (fixup_section): Update.
7445 (find_pc_sect_line): Update.
7446 (skip_prologue_sal): Update.
7447 (search_symbols): Update.
7448 (print_msymbol_info): Update.
7449 (rbreak_command): Update.
7450 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7451 (completion_list_objc_symbol): Update.
7452 (default_make_symbol_completion_list_break_on): Update.
7453 * tracepoint.c (scope_info): Update.
7454 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7455 (tui_get_begin_asm_address): Update.
7456 * valops.c (find_function_in_inferior): Update.
7457 * value.c (value_static_field): Update.
7458 (value_fn_field): Update.
7459
50e65b17
TT
74602014-02-26 Tom Tromey <tromey@redhat.com>
7461
7462 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7463 bound minimal symbols. Move code that knows about minsym
7464 table layout...
7465 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7466 function.
7467 * minsyms.h (minimal_symbol_upper_bound): Declare.
7468 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7469 minimal_symbol_upper_bound.
7470
1b588015
JB
74712014-02-27 Joel Brobecker <brobecker@adacore.com>
7472
7473 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7474 Use the type's name if its basic type does not have a tag.
7475
dbb9c2b1
JB
74762014-02-27 Joel Brobecker <brobecker@adacore.com>
7477
7478 * dwarf2read.c (read_subrange_type): Add comment.
7479
55426c9d
JB
74802014-02-27 Joel Brobecker <brobecker@adacore.com>
7481
7482 * dwarf2read.c (update_enumeration_type_from_children): New
7483 function, mostly extracted from process_structure_scope.
7484 (read_enumeration_type): Call update_enumeration_type_from_children.
7485 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7486 and flag_flag_enum fields.
7487
f2fce0ca
PA
74882014-02-26 Pedro Alves <palves@redhat.com>
7489
7490 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7491 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7492 to_xfer_partial method.
7493
7a44e40e
PA
74942014-02-26 Pedro Alves <palves@redhat.com>
7495
7496 * target.c (complete_target_initialization): Don't install
7497 default_xfer_partial as to_xfer_partial hook.
7498 (nomemory): Delete.
7499 (update_current_target): Don't INHERIT nor de_fault
7500 deprecated_xfer_memory. Delete de_fault macro.
7501 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7502 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7503 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7504 field.
7505
bd265cd0
PA
75062014-02-26 Pedro Alves <palves@redhat.com>
7507
7508 * go32-nat.c (my_write_child): New function.
7509 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7510 (go32_xfer_partial): New function.
7511 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7512 Instead install a to_xfer_partial hook.
7513
9d46c4e5
PA
75142014-02-26 Pedro Alves <palves@redhat.com>
7515
7516 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7517 to_xfer_partial helper. Rewrite.
7518 (procfs_xfer_partial): New function.
7519 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7520 Install a to_xfer_partial hook.
7521
a1583b1f
PA
75222014-02-26 Pedro Alves <palves@redhat.com>
7523
7524 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7525 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7526 (m32r_xfer_partial): New function.
7527 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7528 Install a to_xfer_partial hook.
7529
6df1b29f
PA
75302014-02-26 Pedro Alves <palves@redhat.com>
7531
7532 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7533 helper.
7534 (mips_xfer_partial): New function.
7535 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7536 hook. Install a to_xfer_partial hook.
7537
dc53a7ad
JB
75382014-02-26 Joel Brobecker <brobecker@adacore.com>
7539
7540 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7541 * gdbtypes.c (create_array_type_with_stride): New function,
7542 renaming create_array_type, but with an added parameter
7543 called "bit_stride".
7544 (create_array_type): Re-implement using
7545 create_array_type_with_stride.
7546 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7547 and DW_AT_bit_stride attributes.
7548
12ab52e9
PA
75492014-02-26 Pedro Alves <palves@redhat.com>
7550
7551 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7552 task-specific breakpoints.
7553
d16461ae
PA
75542014-02-25 Pedro Alves <palves@redhat.com>
7555
7556 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7557 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7558
a8b16220
SS
75592014-02-25 Stan Shebs <stan@codesourcery.com>
7560
7561 * defs.h: Annotate comments for Doxygen.
7562
b9e795ee
TT
75632014-02-25 Tom Tromey <tromey@redhat.com>
7564
7565 * target.h (target_ignore): Don't declare.
7566 * target.c (target_ignore): Remove.
7567
849c862e
JK
75682014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 PR gdb/16626
7571 * auto-load.c (auto_load_objfile_script_1): Change filename to
7572 debugfile.
7573
475109d8
JB
75742014-02-25 Joel Brobecker <brobecker@adacore.com>
7575
7576 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7577 documentation. Adjust prototype to match the target_ops
7578 to_xfer_partial method. Adjust implementation accordingly.
7579
e186c3bd
HZ
75802014-02-25 Hui Zhu <hui@codesourcery.com>
7581
7582 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7583 to_traceframe_info.
7584
6d451942
KB
75852014-02-25 Kevin Buettner <kevinb@redhat.com>
7586
041ab8b4 7587 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7588 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7589 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7590 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7591 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7592 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7593 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7594 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7595 New constants.
7596 (rl78_register_type): Use a data pointer type for SP and
7597 new pseudo registers mentioned above. Use a 16 bit integer
7598 type for all other register pairs.
7599 (rl78_register_name, rl78_g10_register_name): Update for
7600 new pseudo registers.
7601 (rl78_pseudo_register_read): Likewise.
7602 (rl78_pseudo_register_write): Likewise.
7603 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7604 to the newly added pseudo registers.
7605
eddf0bae
DE
76062014-02-24 Doug Evans <dje@google.com>
7607
7608 * value.c (record_latest_value): Fix comment.
7609 * printcmd.c (print_command_1): Remove code to handle -1 return from
7610 record_latest_value.
7611
e96027e0
PA
76122014-02-24 Pedro Alves <palves@redhat.com>
7613
7614 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7615 deprecated_xfer_memory hook.
7616 (procfs_xfer_partial): Call procfs_xfer_memory instead
7617 of the deprecated_xfer_memory target hook.
7618 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7619 helper.
7620
0837c976
YZ
76212014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7622
7623 * windows-nat.c (windows_xfer_shared_libraries): Return
7624 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7625 requested object is TARGET_OBJECT_LIBRARIES.
7626
bc113b4e
YQ
76272014-02-24 Yao Qi <yao@codesourcery.com>
7628
7629 * target.h (enum target_xfer_status)
7630 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7631 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7632 explicitly. New.
7633 * corefile.c (memory_error_message): User updated.
7634 * exec.c (section_table_read_available_memory): Likewise.
7635 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7636 * target.c (target_xfer_status_to_string): Likewise.
7637 (raw_memory_xfer_partial): Likewise.
7638 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7639 * valops.c (read_value_memory): Likewise.
7640 * exec.h: Update comments.
7641
01cb8804
YQ
76422014-02-24 Yao Qi <yao@codesourcery.com>
7643
7644 * target.c (target_xfer_status_to_string): Rename argument err
7645 to status.
7646 * target.h (target_xfer_status_to_string): Update declaration.
7647 Replace target_xfer_error_to_string with
7648 target_xfer_status_to_string in comment.
7649
93063aa6
YQ
76502014-02-24 Yao Qi <yao@codesourcery.com>
7651
7652 * mips-linux-nat.c (super_close): Update its type.
7653 (mips_linux_close): Pass 'self' to super_close.
7654
5c328c05
YQ
76552014-02-24 Yao Qi <yao@codesourcery.com>
7656
7657 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7658 * corefile.c (read_memory): Adjusted.
7659 * target.c (target_write_with_progress): Adjusted.
7660
f73023dd
YQ
76612014-02-23 Yao Qi <yao@codesourcery.com>
7662
7663 Revert two patches:
7664
7665 2013-10-25 Yao Qi <yao@codesourcery.com>
7666
7667 * remote.c (remote_traceframe_info): Return early if
7668 traceframe is not selected.
7669
7670 2013-07-19 Yao Qi <yao@codesourcery.com>
7671
7672 * target.c (update_current_target): Change the default action
7673 of 'to_traceframe_info' from tcomplain to return_zero.
7674 * target.h (struct target_ops) <to_traceframe_info>: Add more
7675 comments.
7676
5a2eb0ef
YQ
76772014-02-23 Yao Qi <yao@codesourcery.com>
7678
7679 * valops.c (read_value_memory): Rewrite it. Call
7680 target_xfer_partial in a loop.
7681 * exec.h (section_table_available_memory): Remove declaration.
7682 Move comments to ...
7683 * exec.c (section_table_available_memory): ... here. Make it
7684 static.
7685
1ee79381
YQ
76862014-02-23 Yao Qi <yao@codesourcery.com>
7687
7688 * exec.c (section_table_read_available_memory): New function.
7689 * exec.h (section_table_read_available_memory): Declare.
7690 * ctf.c (ctf_xfer_partial): Call
7691 section_table_read_available_memory.
7692 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7693
1ca49d37
YQ
76942014-02-23 Yao Qi <yao@codesourcery.com>
7695
7696 * ctf.c (ctf_xfer_partial): Move code to ...
7697 * exec.c (exec_read_partial_read_only): ... it. New function.
7698 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7699 * tracefile.c: Include "exec.h".
7700 * exec.h (exec_read_partial_read_only): Declare.
7701
a283690e
YQ
77022014-02-23 Yao Qi <yao@codesourcery.com>
7703
7704 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7705 (tfile_has_memory): Remove.
7706 (init_tfile_ops): Don't set fields to_has_all_memory and
7707 to_has_memory of tfile_ops.
7708 * tracefile.c (tracefile_has_all_memory): New function.
7709 (tracefile_has_memory): New function.
7710 (init_tracefile_ops): Initialize fields to_has_all_memory and
7711 to_has_memory of 'ops'.
7712
12e03cd0
YQ
77132014-02-23 Yao Qi <yao@codesourcery.com>
7714
7715 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7716 (ctf_thread_alive, ctf_get_trace_status): Remove.
7717 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7718 init_tracefile_ops.
7719 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7720 (tfile_has_stack, tfile_has_registers): Remove.
7721 (tfile_thread_alive): Remove.
7722 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7723 init_tracefile_ops.
7724 * tracefile.c (tracefile_has_stack): New function.
7725 (tracefile_has_registers): New function.
7726 (tracefile_thread_alive): New function.
7727 (tracefile_get_trace_status): New function.
7728 (init_tracefile_ops): New function.
7729 * tracefile.h (init_tracefile_ops): Declare.
7730
11395323
YQ
77312014-02-23 Yao Qi <yao@codesourcery.com>
7732
7733 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7734 (O_LARGEFILE): Likewise.
7735 (tfile_ops): Likewise.
7736 (TRACE_HEADER_SIZE): Likewise.
7737 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7738 (cur_data_size): Likewise.
7739 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7740 (tfile_close, tfile_files_info): Likewise.
7741 (tfile_get_trace_status): Likewise.
7742 (tfile_get_tracepoint_status): Likewise.
7743 (tfile_get_traceframe_address): Likewise.
7744 (tfile_trace_find, match_blocktype): Likewise.
7745 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7746 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7747 (tfile_get_trace_state_variable_value): Likewise.
7748 (tfile_has_all_memory, tfile_has_memory): Likewise.
7749 (tfile_has_stack, tfile_has_registers): Likewise.
7750 (tfile_thread_alive, build_traceframe_info): Likewise.
7751 (tfile_traceframe_info, init_tfile_ops): Likewise.
7752 (_initialize_tracepoint): Don't call init_tfile_ops
7753 and add_target_with_completer.
7754 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7755 exec.h, completer.h and filenames.h.
7756 (_initialize_tracefile_tfile): New function.
7757
7951c4eb
YQ
77582014-02-23 Yao Qi <yao@codesourcery.com>
7759
7760 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7761 tracefile-tfile.o.
7762 (HFILES_NO_SRCDIR): Add tracefile.h.
7763 * ctf.c: Include "tracefile.h".
7764 * tracefile.h: New file.
7765 * tracefile.c: New file
7766 * tracefile-tfile.c: New file.
7767 * tracepoint.c: Include "tracefile.h".
7768 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7769 (stop_reason_names): Add const.
7770 (trace_file_writer_xfree): Move it to tracefile.c.
7771 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7772 (trace_save_ctf): Likewise.
7773 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7774 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7775 (tfile_write_header, tfile_write_regblock_type): Likewise.
7776 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7777 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7778 (tfile_write_raw_data, tfile_end): Likewise.
7779 (tfile_trace_file_writer_new): Likewise.
7780 (free_uploaded_tp): Make it extern.
7781 (free_uploaded_tsv): Make it extern.
7782 (_initialize_tracepoint): Move code to register command 'tsave'
7783 to tracefile.c.
7784 * tracepoint.h (stop_reason_names): Declare.
7785 (struct trace_frame_write_ops): Move it to tracefile.h.
7786 (struct trace_file_write_ops): Likewise.
7787 (struct trace_file_writer): Likewise.
7788 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7789
184cd072
JK
77902014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 PR gdb/16594
7793 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7794 process name.
7795 (get_cores_used_by_process): New parameter num_cores, use it.
7796 (linux_xfer_osdata_processes): Pass num_cores to it.
7797 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7798 process name.
7799
c63528fc
AK
78002014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7801
7802 * target.c (memory_xfer_partial): Fix length arg in call to
7803 breakpoint_xfer_memory.
7804
d7b30f67
SDJ
78052014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7806
7807 PR tdep/16397
7808 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7809 number comes after the + or - signs. Adjust length of register
7810 name to be extracted.
7811
8838afaf
TT
78122014-02-20 Tom Tromey <tromey@redhat.com>
7813
7814 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7815 (ada_varobj_ops): Mark "extern".
7816
05227d14
TT
78172014-02-20 Tom Tromey <tromey@redhat.com>
7818
7819 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7820
1254eefc
DE
78212014-02-20 Doug Evans <xdje42@gmail.com>
7822
7823 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7824 All callers updated.
7825 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7826 All callers updated.
7827 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7828 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7829
adde2bff
DE
78302014-02-20 lin zuojian <manjian2006@gmail.com>
7831 Joel Brobecker <brobecker@adacore.com>
7832 Doug Evans <xdje42@gmail.com>
7833
7834 PR symtab/16581
7835 * dwarf2read.c (struct die_info): New member in_process.
7836 (reset_die_in_process): New function.
7837 (process_die): Set it at the start, reset when returning.
7838 (inherit_abstract_dies): Only call process_die if origin_child_die
7839 not already being processed.
7840
3be75f87
JB
78412014-02-20 Joel Brobecker <brobecker@adacore.com>
7842
7843 * windows-nat.c (handle_unload_dll): Add function documentation.
7844 (do_initial_windows_stuff): Add comment explaining why we wait
7845 until after inferior initialization has finished before
7846 processing all DLLs.
7847
47f7ffdb
JB
78482014-02-20 Joel Brobecker <brobecker@adacore.com>
7849
7850 * windows-nat.c (get_module_name): Delete.
7851 (windows_get_exec_module_filename): New function, mostly
7852 inspired from get_module_name.
7853 (windows_pid_to_exec_file): Replace call to get_module_name
7854 by call to windows_get_exec_module_filename.
7855
1cd9feab
JB
78562014-02-20 Joel Brobecker <brobecker@adacore.com>
7857
7858 * windows-nat.c (handle_load_dll): Rewrite this function's
7859 introductory comment. Remove code using get_module_name
7860 to get the DLL's name.
7861
ea39ad35
JB
78622014-02-20 Joel Brobecker <brobecker@adacore.com>
7863
7864 * windows-nat.c (get_windows_debug_event): Ignore
7865 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7866 if windows_initialization_done == 0.
7867 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7868 Adjust implementation to always load all DLLs.
7869 (do_initial_windows_stuff): Replace call to
7870 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7871
95060284
JB
78722014-02-20 Joel Brobecker <brobecker@adacore.com>
7873
7874 * windows-nat.c (_initialize_windows_nat): Deprecate the
7875 "dll-symbols" command. Turn the "add-shared-symbol-files"
7876 and "assf" aliases into commands, and deprecate them as well.
7877 * NEWS: Add entry explaining that "dll-symbols" and its two
7878 aliases are now deprecated.
7879
8d4fdb12
JB
78802014-02-20 Joel Brobecker <brobecker@adacore.com>
7881
7882 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7883 new-line in debug string. Remove trailing spaces.
7884
1b281443
SS
78852014-02-19 Stan Shebs <stan@codesourcery.com>
7886
7887 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7888
f7bd0f78
SC
78892014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7890
7891 * NEWS: Add entry for the new feature
7892 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7893 and class values.
7894
399ebc3d
SS
78952014-02-19 Stan Shebs <stan@codesourcery.com>
7896
7897 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7898
c658158d
PA
78992014-02-19 Pedro Alves <palves@redhat.com>
7900
7901 * common/ptid.h (struct ptid): Mention that process_stratum
7902 targets should prefer ptid.lwp.
7903
ba348170
PA
79042014-02-19 Pedro Alves <palves@redhat.com>
7905
7906 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7907 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7908 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7909 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7910 store remote thread ids rather than ptid.tid.
7911 (_initialize_remote): Adjust.
7912
ac01945b
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * target.c (target_get_unwinder): Rewrite.
7916 (target_get_tailcall_unwinder): Rewrite.
7917 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7918 (record_btrace_to_get_tailcall_unwinder): New function.
7919 (init_record_btrace_ops): Update.
7920 * target.h (struct target_ops) <to_get_unwinder,
7921 to_get_tailcall_unwinder>: Now function pointers. Use
7922 TARGET_DEFAULT_RETURN.
7923
8476dc92
TT
79242014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7927 argument.
7928 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7929
c0eca49f
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7933 directly.
7934 * target-delegates.c: Rebuild.
7935 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7936 TARGET_DEFAULT_FUNC.
7937 * target.c (default_target_decr_pc_after_break): Rename from
7938 forward_target_decr_pc_after_break. Simplify.
7939 (target_decr_pc_after_break): Rely on delegation.
7940
596b6b39
TT
79412014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target.c (update_current_target): Do not INHERIT to_doc or
7944 to_magic. Do not de_fault to_open or to_close.
7945
b427c1bc
TT
79462014-02-19 Tom Tromey <tromey@redhat.com>
7947
7948 * gcore.h (objfile_find_memory_regions): Declare.
7949 * gcore.c (objfile_find_memory_regions): No longer static. Add
7950 "self" argument.
7951 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7952 * exec.c: Include gcore.h.
7953 (exec_set_find_memory_regions): Remove.
7954 (exec_find_memory_regions): Remove.
7955 (exec_do_find_memory_regions): Remove.
7956 (init_exec_ops): Update.
7957 * defs.h (exec_set_find_memory_regions): Remove.
7958
9b144037
TT
79592014-02-19 Tom Tromey <tromey@redhat.com>
7960
7961 * target-delegates.c: Rebuild.
7962 * target.h (struct target_ops) <to_extra_thread_info,
7963 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7964 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7965 not 0, in TARGET_DEFAULT_RETURN.
7966
555bbdeb
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target.c (complete_target_initialization): Remove casts. Use
7970 return_zero_has_execution.
7971 (return_zero): Add "ignore" argument.
7972 (return_zero_has_execution): New function.
7973 (init_dummy_target): Remove casts. Use
7974 return_zero_has_execution.
7975
be4ddd36
TT
79762014-02-19 Tom Tromey <tromey@redhat.com>
7977
7978 * target.c (update_current_target): Update comments. Do not
7979 INHERIT to_stratum.
7980
2117c711
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7984 needed.
7985 * corelow.c (core_read_description): Delegate when needed.
7986 * remote.c (remote_read_description): Delegate when needed.
7987 * target-delegates.c: Rebuild.
7988 * target.c (target_read_description): Rewrite.
7989 * target.h (struct target_ops) <to_read_description>: Update
7990 comment. Use TARGET_DEFAULT_RETURN.
7991
e88ef65c
TT
79922014-02-19 Tom Tromey <tromey@redhat.com>
7993
7994 * target-delegates.c: Rebuild.
7995 * target.c (update_current_target): Don't inherit or default
7996 to_can_run.
7997 (find_default_run_target): Check against delegate_can_run.
7998 * target.h (struct target_ops) <to_can_run>: Use
7999 TARGET_DEFAULT_RETURN.
8000
86a0854a
TT
80012014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (target_disconnect): Unconditionally delegate.
8005 * target.h (struct target_ops) <to_disconnect>: Use
8006 TARGET_DEFAULT_NORETURN.
8007
ee97f592
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * record.c (record_stop): Unconditionally delegate.
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_stop_recording): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_stop_recording>: Use
8014 TARGET_DEFAULT_IGNORE.
8015
6dc7fcf4
TT
80162014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target-delegates.c: Rebuild.
8019 * target.c (target_enable_btrace): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_enable_btrace>: Use
8021 TARGET_DEFAULT_NORETURN.
8022
eb5b20d4
TT
80232014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * target-delegates.c: Rebuild.
8026 * target.c (target_read_btrace): Unconditionally delegate.
8027 * target.h (struct target_ops) <to_read_btrace>: Use
8028 TARGET_DEFAULT_NORETURN.
8029
9ace480d
TT
80302014-02-19 Tom Tromey <tromey@redhat.com>
8031
8032 * target-delegates.c: Rebuild.
8033 * target.c (target_teardown_btrace): Unconditionally delegate.
8034 * target.h (struct target_ops) <to_teardown_btrace>: Use
8035 TARGET_DEFAULT_NORETURN.
8036
8dc292d3
TT
80372014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (target_disable_btrace): Unconditionally delegate.
8041 * target.h (struct target_ops) <to_disable_btrace>: Use
8042 TARGET_DEFAULT_NORETURN.
8043
58a5184e
TT
80442014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (default_search_memory): New function.
8048 (simple_search_memory): Update comment.
8049 (target_search_memory): Unconditionally delegate.
8050 * target.h (struct target_ops) <to_search_memory>: Use
8051 TARGET_DEFAULT_FUNC.
8052
8de71aab
TT
80532014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * auxv.c (default_auxv_parse): No longer static.
8056 (target_auxv_parse): Unconditionally delegate.
8057 * auxv.h (default_auxv_parse): Declare.
8058 * target-delegates.c: Rebuild.
8059 * target.c: Include auxv.h.
8060 * target.h (struct target_ops) <to_auxv_parse>: Use
8061 TARGET_DEFAULT_FUNC.
8062
6b2c5a57
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_memory_map): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_memory_map>: Use
8068 TARGET_DEFAULT_RETURN.
8069
cbffc065
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_thread_alive): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_thread_alive>: Use
8075 TARGET_DEFAULT_RETURN.
8076
f09e2107
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_save_record): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_save_record>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
07366925
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_delete_record): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_delete_record>: Use
8089 TARGET_DEFAULT_NORETURN.
8090
dd2e9d25
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_record_is_replaying): Unconditionally
8095 delegate.
8096 * target.h (struct target_ops) <to_record_is_replaying>: Use
8097 TARGET_DEFAULT_RETURN.
8098
671e76cc
TT
80992014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_goto_record_begin): Unconditionally delegate.
8103 * target.h (struct target_ops) <to_goto_record_begin>: Use
8104 TARGET_DEFAULT_NORETURN.
8105
e9179bb3
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target-delegates.c: Rebuild.
8109 * target.c (target_goto_record_end): Unconditionally delegate.
8110 * target.h (struct target_ops) <to_goto_record_end>: Use
8111 TARGET_DEFAULT_NORETURN.
8112
05969c84
TT
81132014-02-19 Tom Tromey <tromey@redhat.com>
8114
8115 * target-delegates.c: Rebuild.
8116 * target.c (target_goto_record): Unconditionally delegate.
8117 * target.h (struct target_ops) <to_goto_record>: Use
8118 TARGET_DEFAULT_NORETURN.
8119
3679abfa
TT
81202014-02-19 Tom Tromey <tromey@redhat.com>
8121
8122 * target-delegates.c: Rebuild.
8123 * target.c (target_insn_history): Unconditionally delegate.
8124 * target.h (struct target_ops) <to_insn_history>: Use
8125 TARGET_DEFAULT_NORETURN.
8126
8444ab58
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * target-delegates.c: Rebuild.
8130 * target.c (target_insn_history_from): Unconditionally delegate.
8131 * target.h (struct target_ops) <to_insn_history_from>: Use
8132 TARGET_DEFAULT_NORETURN.
8133
c29302cc
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (target_insn_history_range): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_insn_history_range>: Use
8139 TARGET_DEFAULT_NORETURN.
8140
170049d4
TT
81412014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * target-delegates.c: Rebuild.
8144 * target.c (target_call_history): Unconditionally delegate.
8145 * target.h (struct target_ops) <to_call_history>: Use
8146 TARGET_DEFAULT_NORETURN.
8147
16fc27d6
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (target_call_history_from): Unconditionally delegate.
8152 * target.h (struct target_ops) <to_call_history_from>: Use
8153 TARGET_DEFAULT_NORETURN.
8154
115d9817
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target-delegates.c: Rebuild.
8158 * target.c (target_call_history_range): Unconditionally delegate.
8159 * target.h (struct target_ops) <to_call_history_range>: Use
8160 TARGET_DEFAULT_NORETURN.
8161
eb276a6b
TT
81622014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target-delegates.c: Rebuild.
8165 * target.c (target_verify_memory): Unconditionally delegate.
8166 * target.h (struct target_ops) <to_verify_memory>: Use
8167 TARGET_DEFAULT_NORETURN.
8168
9e538d0d
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_core_of_thread): Unconditionally delegate.
8173 * target.h (struct target_ops) <to_core_of_thread>: Use
8174 TARGET_DEFAULT_RETURN.
8175
f6fb2925
TT
81762014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_flash_done): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_flash_done>: Use
8181 TARGET_DEFAULT_NORETURN.
8182
e8a6c6ac
TT
81832014-02-19 Tom Tromey <tromey@redhat.com>
8184
8185 * target-delegates.c: Rebuild.
8186 * target.c (target_flash_erase): Unconditionally delegate.
8187 * target.h (struct target_ops) <to_flash_erase>: Use
8188 TARGET_DEFAULT_NORETURN.
8189
7e35c012
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_get_section_table): Unconditionally delegate.
8194 * target.h (struct target_ops) <to_get_section_table>: Use
8195 TARGET_DEFAULT_RETURN.
8196
770234d3
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_pid_to_str): Unconditionally delegate.
8201 (init_dummy_target): Don't initialize to_pid_to_str.
8202 (default_pid_to_str): Rename from dummy_pid_to_str.
8203 * target.h (struct target_ops) <to_pid_to_str>: Use
8204 TARGET_DEFAULT_FUNC.
8205
09b0dc2b
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (target_find_new_threads): Unconditionally delegate.
8210 * target.h (struct target_ops) <to_find_new_threads>: Use
8211 TARGET_DEFAULT_RETURN.
8212
7d4f8efa
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_program_signals): Unconditionally delegate.
8217 * target.h (struct target_ops) <to_program_signals>: Use
8218 TARGET_DEFAULT_IGNORE.
8219
035cad7f
TT
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target-delegates.c: Rebuild.
8223 * target.c (target_pass_signals): Unconditionally delegate.
8224 * target.h (struct target_ops) <to_pass_signals>: Use
8225 TARGET_DEFAULT_IGNORE.
8226
8d657035
TT
82272014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target-delegates.c: Rebuild.
8230 * target.c (default_mourn_inferior): New function.
8231 (target_mourn_inferior): Unconditionally delegate.
8232 * target.h (struct target_ops) <to_mourn_inferior>: Use
8233 TARGET_DEFAULT_FUNC.
8234
098dba18
TT
82352014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (default_follow_fork): New function.
8239 (target_follow_fork): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_follow_fork>: Use
8241 TARGET_DEFAULT_FUNC.
8242
423a4807
TT
82432014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (target_kill): Unconditionally delegate.
8247 * target.h (struct target_ops) <to_kill>: Use
8248 TARGET_DEFAULT_NORETURN.
8249
6c7e5e5c
TT
82502014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target-delegates.c: Rebuild.
8253 * target.c (target_masked_watch_num_registers): Unconditionally
8254 delegate.
8255 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8256 Use TARGET_DEFAULT_RETURN.
8257
8b1c364c
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_remove_mask_watchpoint): Unconditionally
8262 delegate.
8263 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8264 TARGET_DEFAULT_RETURN.
8265
cd4ae029
TT
82662014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_insert_mask_watchpoint): Unconditionally
8270 delegate.
8271 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8272 TARGET_DEFAULT_RETURN.
8273
a134316b
TT
82742014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target-delegates.c: Rebuild.
8277 * target.c (target_ranged_break_num_registers): Unconditionally
8278 delegate.
8279 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8280 Use TARGET_DEFAULT_RETURN.
8281
ad5989bd
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_fetch_registers): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_fetch_registers>: Use
8287 TARGET_DEFAULT_NORETURN.
8288
46ee7e8d
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8293 to_stop.
8294 * target.h (struct target_ops) <to_stop>: Use
8295 TARGET_DEFAULT_IGNORE.
8296
843f59ed
TT
82972014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8301 to_can_run_breakpoint_commands.
8302 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8303 Use TARGET_DEFAULT_RETURN.
8304
ccfde2a0
TT
83052014-02-19 Tom Tromey <tromey@redhat.com>
8306
8307 * target-delegates.c: Rebuild.
8308 * target.c (update_current_target): Don't inherit or default
8309 to_supports_evaluation_of_breakpoint_conditions.
8310 * target.h (struct target_ops)
8311 <to_supports_evaluation_of_breakpoint_conditions>: Use
8312 TARGET_DEFAULT_RETURN.
8313
0de91722
TT
83142014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_augmented_libraries_svr4_read.
8319 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8320 Use TARGET_DEFAULT_RETURN.
8321
9a7d8b48
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_can_use_agent.
8327 * target.h (struct target_ops) <to_can_use_agent>: Use
8328 TARGET_DEFAULT_RETURN.
8329
d9db5b21
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_use_agent.
8335 * target.h (struct target_ops) <to_use_agent>: Use
8336 TARGET_DEFAULT_NORETURN.
8337
92155eeb
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8342 to_traceframe_info.
8343 (return_null): Remove.
8344 * target.h (struct target_ops) <to_traceframe_info>: Use
8345 TARGET_DEFAULT_RETURN.
8346
d6522a22
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_static_tracepoint_markers_by_strid.
8352 * target.h (struct target_ops)
8353 <to_static_tracepoint_markers_by_strid>: Use
8354 TARGET_DEFAULT_NORETURN.
8355
4c3e4425
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target-delegates.c: Rebuild.
8359 * target.c (update_current_target): Don't inherit or default
8360 to_static_tracepoint_marker_at.
8361 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8362 Use TARGET_DEFAULT_RETURN.
8363
dcd6917f
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_set_permissions.
8369 * target.h (struct target_ops) <to_set_permissions>: Use
8370 TARGET_DEFAULT_IGNORE.
8371
22bcceee
TT
83722014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_get_tib_address.
8377 * target.h (struct target_ops) <to_get_tib_address>: Use
8378 TARGET_DEFAULT_NORETURN.
8379
8586ccaa
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_set_trace_notes.
8385 * target.h (struct target_ops) <to_set_trace_notes>: Use
8386 TARGET_DEFAULT_RETURN.
8387
91df8d1d
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't initialize
8392 to_set_trace_buffer_size.
8393 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8394 TARGET_DEFAULT_IGNORE.
8395
8d526939
TT
83962014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_set_circular_trace_buffer.
8401 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8402 TARGET_DEFAULT_IGNORE.
8403
0bcfeddf
TT
84042014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_set_disconnected_tracing.
8409 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8410 TARGET_DEFAULT_IGNORE.
8411
9249843f
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_get_min_fast_tracepoint_insn_len.
8417 (return_minus_one): Remove.
8418 * target.h (struct target_ops)
8419 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8420
ace92e7d
TT
84212014-02-19 Tom Tromey <tromey@redhat.com>
8422
8423 * target-delegates.c: Rebuild.
8424 * target.c (update_current_target): Don't inherit or default
8425 to_get_raw_trace_data.
8426 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8427 TARGET_DEFAULT_NORETURN.
8428
08120467
TT
84292014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_upload_trace_state_variables.
8434 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8435 Use TARGET_DEFAULT_RETURN.
8436
1e949b00
TT
84372014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_upload_tracepoints.
8442 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8443 TARGET_DEFAULT_RETURN.
8444
a2e6c147
TT
84452014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8449 to_save_trace_data.
8450 * target.h (struct target_ops) <to_save_trace_data>: Use
8451 TARGET_DEFAULT_NORETURN.
8452
959bcd0b
TT
84532014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_get_trace_state_variable_value.
8458 * target.h (struct target_ops)
8459 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8460
afc94e66
TT
84612014-02-19 Tom Tromey <tromey@redhat.com>
8462
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_trace_find.
8466 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8467
e51c07ea
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_trace_stop.
8473 * target.h (struct target_ops) <to_trace_stop>: Use
8474 TARGET_DEFAULT_NORETURN.
8475
6fea14cd
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_get_tracepoint_status.
8481 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8482 TARGET_DEFAULT_NORETURN.
8483
4072d4ff
TT
84842014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8488 to_get_trace_status.
8489 * target.h (struct target_ops) <to_get_trace_status>: Use
8490 TARGET_DEFAULT_RETURN.
8491
25da2e80
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_trace_start.
8497 * target.h (struct target_ops) <to_trace_start>: Use
8498 TARGET_DEFAULT_NORETURN.
8499
86dd181d
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_trace_set_readonly_regions.
8505 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8506 Use TARGET_DEFAULT_NORETURN.
8507
05c41993
TT
85082014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_disable_tracepoint.
8513 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8514 TARGET_DEFAULT_NORETURN.
8515
151f70f1
TT
85162014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_enable_tracepoint.
8521 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8522 TARGET_DEFAULT_NORETURN.
8523
94eb98b9
TT
85242014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_download_trace_state_variable.
8529 * target.h (struct target_ops) <to_download_trace_state_variable>:
8530 Use TARGET_DEFAULT_NORETURN.
8531
719acc4a
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_can_download_tracepoint.
8537 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8538 TARGET_DEFAULT_RETURN.
8539
9a980a22
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_download_tracepoint.
8545 * target.h (struct target_ops) <to_download_tracepoint>: Use
8546 TARGET_DEFAULT_NORETURN.
8547
5536135b
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_trace_init.
8553 * target.h (struct target_ops) <to_trace_init>: Use
8554 TARGET_DEFAULT_RETURN.
8555
9409d39e
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_supports_string_tracing.
8561 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8562 TARGET_DEFAULT_RETURN.
8563
aab1b22d
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_supports_enable_disable_tracepoint.
8569 * target.h (struct target_ops)
8570 <to_supports_enable_disable_tracepoint>: Use
8571 TARGET_DEFAULT_RETURN.
8572
a7304748
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_supports_multi_process.
8578 * target.h (struct target_ops) <to_supports_multi_process>: Use
8579 TARGET_DEFAULT_RETURN.
8580
4229b31d
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_get_ada_task_ptid.
8586 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8587 TARGET_DEFAULT_FUNC.
8588
43eba180
TT
85892014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_thread_architecture.
8594 * target.h (struct target_ops) <to_thread_architecture>: Use
8595 TARGET_DEFAULT_FUNC.
8596
fe31bf5b
TT
85972014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_execution_direction.
8602 * target.h (struct target_ops) <to_execution_direction>: Use
8603 TARGET_DEFAULT_FUNC.
8604
53e1cfc7
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_can_execute_reverse.
8610 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8611 TARGET_DEFAULT_RETURN.
8612 (target_can_execute_reverse): Unconditionally delegate.
8613
9bb9d61d
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target-delegates.c: Rebuild.
8617 * target.c (update_current_target): Don't inherit or default
8618 to_goto_bookmark.
8619 (dummy_goto_bookmark): Remove.
8620 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8621 * target.h (struct target_ops) <to_goto_bookmark>: Use
8622 TARGET_DEFAULT_NORETURN.
8623
3dbafbbb
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8628 to_get_bookmark.
8629 (dummy_get_bookmark): Remove.
8630 (init_dummy_target): Don't inherit or default to_get_bookmark.
8631 * target.h (struct target_ops) <to_get_bookmark>: Use
8632 TARGET_DEFAULT_NORETURN
8633
16f796b1
TT
86342014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_make_corefile_notes.
8639 (init_dummy_target): Don't initialize to_make_corefile_notes.
8640 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8641 TARGET_DEFAULT_FUNC.
8642
0b5a2719
TT
86432014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target-delegates.c: Rebuild.
8646 * target.c (update_current_target): Don't inherit or default
8647 to_find_memory_regions.
8648 (init_dummy_target): Don't initialize to_find_memory_regions.
8649 * target.h (struct target_ops) <to_find_memory_regions>: Use
8650 TARGET_DEFAULT_FUNC.
8651
d9cb0195
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_log_command.
8657 * target.h (struct target_ops) <to_log_command>: Use
8658 TARGET_DEFAULT_IGNORE.
8659 (target_log_command): Unconditionally delegate.
8660
830ca330
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_pid_to_exec_file.
8666 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8667 TARGET_DEFAULT_RETURN.
8668
825828fc
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_thread_name.
8674 (target_thread_name): Unconditionally delegate.
8675 * target.h (struct target_ops) <to_thread_name>: Use
8676 TARGET_DEFAULT_RETURN.
8677
4a7e6dda
TT
86782014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_extra_thread_info.
8683 * target.h (struct target_ops) <to_extra_thread_info>: Use
8684 TARGET_DEFAULT_RETURN.
8685
0db88c1d
TT
86862014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_has_exited.
8691 * target.h (struct target_ops) <to_has_exited>: Use
8692 TARGET_DEFAULT_RETURN..
8693
6a9fa051
TT
86942014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_set_syscall_catchpoint.
8699 (return_one): Remove.
8700 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8701 TARGET_DEFAULT_RETURN.
8702
62f64d7a
TT
87032014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target-delegates.c: Rebuild.
8706 * target.c (update_current_target): Don't inherit or default
8707 to_insert_exec_catchpoint.
8708 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8709 TARGET_DEFAULT_RETURN.
8710
cda0f38c
TT
87112014-01-08 Tom Tromey <tromey@redhat.com>
8712
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_insert_exec_catchpoint.
8716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8717 TARGET_DEFAULT_RETURN.
8718
95c3375e
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_remove_vfork_catchpoint.
8724 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8725 TARGET_DEFAULT_RETURN.
8726
7e18a8dc
TT
87272014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_insert_vfork_catchpoint.
8732 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8733 TARGET_DEFAULT_RETURN.
8734
e1a21fb7
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_remove_fork_catchpoint.
8740 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8742
5958ebeb
TT
87432014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_insert_fork_catchpoint.
8748 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8750
340ba4bf
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_post_startup_inferior.
8756 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8757 TARGET_DEFAULT_IGNORE.
8758
7634da87
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_load.
8764 * target.h (struct target_ops) <to_load>: Use
8765 TARGET_DEFAULT_NORETURN.
8766
e19e919f
TT
87672014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_terminal_info.
8772 * target.h (struct target_ops) <to_terminal_info>: Use
8773 TARGET_DEFAULT_FUNC.
8774
c6ea8f79
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_terminal_save_ours.
8780 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8781 TARGET_DEFAULT_IGNORE.
8782
e4a733f1
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_terminal_ours.
8788 * target.h (struct target_ops) <to_terminal_ours>: Use
8789 TARGET_DEFAULT_IGNORE.
8790
74fcbef9
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_terminal_ours_for_output.
8796 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8797 TARGET_DEFAULT_IGNORE.
8798
ddeaacc9
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_terminal_inferior.
8804 * target.h (struct target_ops) <to_terminal_inferior>: Use
8805 TARGET_DEFAULT_IGNORE.
8806
0343661d
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_terminal_init.
8812 * target.h (struct target_ops) <to_terminal_init>: Use
8813 TARGET_DEFAULT_IGNORE.
8814
77cdffe9
TT
88152014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_can_accel_watchpoint_condition.
8820 * target.h (struct target_ops)
8821 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8822
d03655e4
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8827 to_region_ok_for_hw_watchpoint.
8828 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8829 Use TARGET_DEFAULT_FUNC.
8830
65f160a9
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_watchpoint_addr_within_range.
8836 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8837 Use TARGET_DEFAULT_FUNC.
8838
61dd109f
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_remove_watchpoint.
8844 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8845 TARGET_DEFAULT_NORETURN.
8846
016facd4
TT
88472014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8851 to_insert_watchpoint.
8852 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8853 TARGET_DEFAULT_RETURN.
8854
418dabac
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_remove_hw_breakpoint.
8860 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8861 TARGET_DEFAULT_RETURN.
8862
61b371f9
TT
88632014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_insert_hw_breakpoint.
8868 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8869 TARGET_DEFAULT_RETURN.
8870
52b51d06
TT
88712014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_can_use_hw_breakpoint.
8876 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8877 TARGET_DEFAULT_RETURN.
8878
f86e59b2
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_files_info.
8884 * target.h (struct target_ops) <to_files_info>: Use
8885 TARGET_DEFAULT_IGNORE.
8886
6c628163
TT
88872014-02-19 Tom Tromey <tromey@redhat.com>
8888
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_store.
8892 * target.h (struct target_ops) <to_store>: Use
8893 TARGET_DEFAULT_NORETURN.
8894
bebd3233
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_post_attach.
8900 * target.h (struct target_ops) <to_post_attach>: Use
8901 TARGET_DEFAULT_IGNORE.
8902
a53f3625
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_rcmd.
8908 (default_rcmd): New function.
8909 (do_monitor_command): Unconditionally delegate.
8910 * target.h (struct target_ops) <to_rmcd>: Use
8911 TARGET_DEFAULT_FUNC.
8912
e9a29200
TT
89132014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (init_dummy_target): Don't initialize to_attach.
8917 (target_attach): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_attach>: Use
8919 TARGET_DEFAULT_FUNC.
8920
09da0d0a
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (target_detach): Unconditionally delegate.
8925 (init_dummy_target): Don't initialize to_detach.
8926 * target.h (struct target_ops) <to_detach>: Use
8927 TARGET_DEFAULT_IGNORE.
8928
5436ff03
TT
89292014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8932 Add argument.
8933 (target_augmented_libraries_svr4_read): Add argument.
8934 * target.c (update_current_target): Update.
8935 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8936 argument.
8937
f0d960ea
TT
89382014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target.h (struct target_ops) <to_call_history_range>: Add
8941 argument.
8942 * target.c (target_call_history_range): Add argument.
8943 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8944 argument.
8945 (record_btrace_call_history_from): Update.
8946
ec0aea04
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target.h (struct target_ops) <to_call_history_from>: Add
8950 argument.
8951 * target.c (target_call_history_from): Add argument.
8952 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8953 argument.
8954
5df2fcba
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target.h (struct target_ops) <to_call_history>: Add argument.
8958 * target.c (target_call_history): Add argument.
8959 * record-btrace.c (record_btrace_call_history): Add 'self'
8960 argument.
8961
4e99c6b7
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_insn_history_range>: Add
8965 argument.
8966 * target.c (target_insn_history_range): Add argument.
8967 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8968 argument.
8969 (record_btrace_insn_history_from): Update.
8970
9abc3ff3
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_insn_history_from>: Add
8974 argument.
8975 * target.c (target_insn_history_from): Add argument.
8976 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8977 argument.
8978
7a6c5609
TT
89792014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target.h (struct target_ops) <to_insn_history>: Add argument.
8982 * target.c (target_insn_history): Add argument.
8983 * record-btrace.c (record_btrace_insn_history): Add 'self'
8984 argument.
8985
606183ac
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_goto_record>: Add argument.
8989 * target.c (target_goto_record): Add argument.
8990 * record-full.c (record_full_goto): Add 'self' argument.
8991 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8992
307a1b91
TT
89932014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8996 * target.c (target_goto_record_end): Add argument.
8997 * record-full.c (record_full_goto_end): Add 'self' argument.
8998 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8999
08475817
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_goto_record_begin>: Add
9003 argument.
9004 * target.c (target_goto_record_begin): Add argument.
9005 * record-full.c (record_full_goto_begin): Add 'self' argument.
9006 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9007 argument.
9008
1c63c994
TT
90092014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target.h (struct target_ops) <to_record_is_replaying>: Add
9012 argument.
9013 * target.c (target_record_is_replaying): Add argument.
9014 * record-full.c (record_full_is_replaying): Add 'self' argument.
9015 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9016 argument.
9017 (record_btrace_xfer_partial, record_btrace_store_registers)
9018 (record_btrace_prepare_to_store, record_btrace_resume)
9019 (record_btrace_wait, record_btrace_decr_pc_after_break)
9020 (record_btrace_find_new_threads, record_btrace_thread_alive):
9021 Update.
9022
d1b55219
TT
90232014-02-19 Tom Tromey <tromey@redhat.com>
9024
9025 * target.h (struct target_ops) <to_delete_record>: Add argument.
9026 * target.c (target_delete_record): Add argument.
9027 * record-full.c (record_full_delete): Add 'self' argument.
9028
1390f529
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops) <to_save_record>: Add argument.
9032 * target.c (target_save_record): Add argument.
9033 * record-full.c (record_full_save): Add 'self' argument.
9034 (record_full_save): Add 'self' argument.
9035
630d6a4a
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_info_record>: Add argument.
9039 * target.c (target_info_record): Add argument.
9040 * record.c (info_record_command): Add argument.
9041 * record-full.c (record_full_info): Add 'self' argument.
9042 * record-btrace.c (record_btrace_info): Add 'self' argument.
9043
c6cd7c02
TT
90442014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9047 * target.c (target_stop_recording): Add argument.
9048 * record.c (record_stop): Add argument.
9049 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9050 argument.
9051
39c49f83
TT
90522014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9055 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9056 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9057 argument.
9058 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9059 (_initialize_amd64_linux_nat): Use it.
9060 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9061 (_initialize_i386_linux_nat): Use it.
9062
1777056d
TT
90632014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9066 * target.c (target_teardown_btrace): Add argument.
9067 * remote.c (remote_teardown_btrace): Add 'self' argument.
9068 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9069 argument.
9070 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9071 argument.
9072
25e95349
TT
90732014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9076 * target.c (target_disable_btrace): Add argument.
9077 * remote.c (remote_disable_btrace): Add 'self' argument.
9078 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9079 argument.
9080 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9081 argument.
9082
e3c49f88
TT
90832014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9086 * target.c (target_enable_btrace): Add argument.
9087 * remote.c (remote_enable_btrace): Add 'self' argument.
9088 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9089 argument.
9090 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9091 argument.
9092
fe38f897
TT
90932014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9096 (target_can_use_agent): Add argument.
9097 * target.c (update_current_target): Update.
9098 * remote.c (remote_can_use_agent): Add 'self' argument.
9099 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9100
2c152180
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_use_agent>: Add argument.
9104 (target_use_agent): Add argument.
9105 * target.c (update_current_target): Update.
9106 * remote.c (remote_use_agent): Add 'self' argument.
9107 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9108
a893e81f
TT
91092014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9112 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9113 (target_traceframe_info): Add argument.
9114 * target.c (update_current_target): Update.
9115 * remote.c (remote_traceframe_info): Add 'self' argument.
9116 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9117
c686c57f
TT
91182014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (target_static_tracepoint_markers_by_strid): Add
9121 argument.
9122 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9123 'self' argument.
9124 * target.c (update_current_target): Update.
9125 * remote.c (struct target_ops)
9126 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9127 * linux-nat.c (struct target_ops)
9128 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9129
61fc905d
TT
91302014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9133 Add argument.
9134 (target_static_tracepoint_marker_at): Add argument.
9135 * target.c (update_current_target): Update.
9136 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9137 argument.
9138
c378d69d
TT
91392014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9142 (target_set_permissions): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_set_permissions): Add 'self' argument.
9145 (remote_start_remote): Update.
9146
bd7ae0f5
TT
91472014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9150 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9151 (target_get_tib_address): Add argument.
9152 * target.c (update_current_target): Update.
9153 * remote.c (remote_get_tib_address): Add 'self' argument.
9154
d9e68a2c
TT
91552014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9158 (target_set_trace_notes): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_set_trace_notes): Add 'self' argument.
9161
4da384be
TT
91622014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9165 argument.
9166 (target_set_trace_buffer_size): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9169
736d5b1f
TT
91702014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9173 argument.
9174 (target_set_circular_trace_buffer): Add argument.
9175 * target.c (update_current_target): Update.
9176 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9177 argument.
9178
37b25738
TT
91792014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9182 argument.
9183 (target_set_disconnected_tracing): Add argument.
9184 * target.c (update_current_target): Update.
9185 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9186
0e67620a
TT
91872014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target.h (struct target_ops)
9190 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9191 (target_get_min_fast_tracepoint_insn_len): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9194 argument.
9195
88ee6f45
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9199 argument.
9200 (target_get_raw_trace_data): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9203
181e3713
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9207 Add argument.
9208 (target_upload_trace_state_variables): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_upload_trace_state_variables): Add 'self'
9211 argument.
9212 (remote_start_remote): Update.
9213
ab6617cc
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9217 argument.
9218 (target_upload_tracepoints): Add argument.
9219 * target.c (update_current_target): Update.
9220 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9221 (remote_start_remote): Update.
9222
dc3decaf
TT
92232014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9226 (target_save_trace_data): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_save_trace_data): Add 'self' argument.
9229
4011015b
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9233 argument.
9234 * target.h (struct target_ops)
9235 <to_get_trace_state_variable_value>: Add argument.
9236 (target_get_trace_state_variable_value): Add argument.
9237 * target.c (update_current_target): Update.
9238 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9239 argument.
9240 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9241
bd4c6793
TT
92422014-02-19 Tom Tromey <tromey@redhat.com>
9243
9244 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9245 * target.h (struct target_ops) <to_trace_find>: Add argument.
9246 (target_trace_find): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_trace_find): Add 'self' argument.
9249 * ctf.c (ctf_trace_find): Add 'self' argument.
9250
74499f1b
TT
92512014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9254 (target_trace_stop): Add argument.
9255 * target.c (update_current_target): Update.
9256 * remote.c (remote_trace_stop): Add 'self' argument.
9257
db90e85c
TT
92582014-02-19 Tom Tromey <tromey@redhat.com>
9259
9260 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9261 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9262 argument.
9263 (target_get_tracepoint_status): Add argument.
9264 * target.c (update_current_target): Update.
9265 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9266
8bd200f1
TT
92672014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9270 * target.h (struct target_ops) <to_get_trace_status>: Add
9271 argument.
9272 (target_get_trace_status): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_get_trace_status): Add 'self' argument.
9275 (remote_start_remote, remote_can_download_tracepoint): Update.
9276 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9277
e2d1aae3
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_trace_start>: Add argument.
9281 (target_trace_start): Add argument.
9282 * target.c (update_current_target): Update.
9283 * remote.c (remote_trace_start): Add 'self' argument.
9284
583f9a86
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9288 Add argument.
9289 (target_trace_set_readonly_regions): Add argument.
9290 * target.c (update_current_target): Update.
9291 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9292 argument.
9293
780b049c
TT
92942014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9297 argument.
9298 (target_disable_tracepoint): Add argument.
9299 * target.c (update_current_target): Update.
9300 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9301
46670d57
TT
93022014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9305 argument.
9306 (target_enable_tracepoint): Add argument.
9307 * target.c (update_current_target): Update.
9308 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9309
559d2b81
TT
93102014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target.h (struct target_ops) <to_download_trace_state_variable>:
9313 Add argument.
9314 (target_download_trace_state_variable): Add argument.
9315 * target.c (update_current_target): Update.
9316 * remote.c (remote_download_trace_state_variable): Add 'self'
9317 argument.
9318
a52a8357
TT
93192014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9322 argument.
9323 (target_can_download_tracepoint): Add argument.
9324 * target.c (update_current_target): Update.
9325 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9326
548f7808
TT
93272014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target.h (struct target_ops) <to_download_tracepoint>: Add
9330 argument.
9331 (target_download_tracepoint): Add argument.
9332 * target.c (update_current_target): Update.
9333 * remote.c (remote_download_tracepoint): Add 'self' argument.
9334
ecae04e1
TT
93352014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target.h (struct target_ops) <to_trace_init>: Add argument.
9338 (target_trace_init): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_trace_init): Add 'self' argument.
9341
fab5aa7c
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9345 * target.c (target_fileio_readlink): Add argument.
9346 * remote.c (remote_hostio_readlink): Add 'self' argument.
9347 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9348
dbbca37d
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9352 * target.c (target_fileio_unlink): Add argument.
9353 * remote.c (remote_hostio_unlink): Add 'self' argument.
9354 (remote_file_delete): Update.
9355 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9356
df39ea25
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9360 * target.c (target_fileio_close): Add argument.
9361 * remote.c (remote_hostio_close): Add 'self' argument.
9362 (remote_hostio_close_cleanup): Update.
9363 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9364 Update.
9365 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9366
a3be983c
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9370 * target.c (target_fileio_pread): Add argument.
9371 * remote.c (remote_hostio_pread): Add 'self' argument.
9372 (remote_bfd_iovec_pread, remote_file_get): Update.
9373 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9374
0d866f62
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9378 * target.c (target_fileio_pwrite): Add argument.
9379 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9380 (remote_file_put): Update.
9381 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9382
cd897586
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9386 * target.c (target_fileio_open): Add argument.
9387 * remote.c (remote_hostio_open): Add 'self' argument.
9388 (remote_bfd_iovec_open): Add 'self' argument.
9389 (remote_file_put): Add 'self' argument.
9390 (remote_file_get): Add 'self' argument.
9391 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9392
78eff0ec
TT
93932014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9396 Add argument.
9397 (target_can_run_breakpoint_commands): Add argument.
9398 * target.c (update_current_target): Update.
9399 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9400 argument.
9401 (remote_insert_breakpoint): Add 'self' argument.
9402 (remote_insert_hw_breakpoint): Add 'self' argument.
9403 (remote_can_run_breakpoint_commands): Add 'self' argument.
9404
efcc2da7
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops)
9408 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9409 (target_supports_evaluation_of_breakpoint_conditions): Add
9410 argument.
9411 * target.c (update_current_target): Update.
9412 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9413 argument.
9414 (remote_insert_breakpoint): Add 'self' argument.
9415 (remote_insert_hw_breakpoint): Add 'self' argument.
9416 (remote_supports_cond_breakpoints): Add 'self' argument.
9417
6de37a3a
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9421 argument.
9422 (target_supports_string_tracing): Add argument.
9423 * target.c (update_current_target): Update.
9424 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9425
2bfc0540
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops)
9429 <to_supports_disable_randomization>: Add argument.
9430 * target.c (find_default_supports_disable_randomization): Add
9431 argument.
9432 (target_supports_disable_randomization): Add argument.
9433 (find_default_supports_disable_randomization): Add 'self'
9434 argument.
9435 * remote.c (extended_remote_supports_disable_randomization): Add
9436 'self' argument.
9437 (remote_supports_disable_randomization): Add 'self' argument.
9438 (extended_remote_create_inferior): Update.
9439 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9440 'self' argument.
9441
7d178d6a
TT
94422014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target.h (struct target_ops)
9445 <to_supports_enable_disable_tracepoint>: Add argument.
9446 (target_supports_enable_disable_tracepoint): Add argument.
9447 * target.c (update_current_target): Update.
9448 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9449 argument.
9450
86ce2668
TT
94512014-02-19 Tom Tromey <tromey@redhat.com>
9452
9453 * target.h (struct target_ops) <to_supports_multi_process>: Add
9454 argument.
9455 (target_supports_multi_process): Add argument.
9456 * target.c (update_current_target): Update.
9457 * remote.c (remote_supports_multi_process): Add 'self' argument.
9458 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9459 argument.
9460 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9461 argument.
9462
4c612759
TT
94632014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target.h (struct target_ops) <to_execution_direction>: Add
9466 argument.
9467 (target_execution_direction): Add argument.
9468 * target.c (default_execution_direction): Add 'self' argument.
9469 * record-full.c (record_full_execution_direction): Add 'self'
9470 argument.
9471
19db3e69
TT
94722014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9475 argument.
9476 (target_can_execute_reverse): Add argument.
9477 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9478 * record-full.c (record_full_can_execute_reverse): Add 'self'
9479 argument.
9480 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9481 argument.
9482
1e6b91a4
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9486 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9487 argument.
9488 (target_get_ada_task_ptid): Add argument.
9489 * target.c (update_current_target): Update.
9490 (default_get_ada_task_ptid): Add 'self' argument.
9491 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9492 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9493 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9494 argument.
9495 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9496 argument.
9497 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9498 argument.
9499 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9500 argument.
9501 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9502 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9503 argument.
9504
3c80fb48
TT
95052014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9508 (target_goto_bookmark): Add argument.
9509 * target.c (dummy_goto_bookmark): Add 'self' argument.
9510 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9511
dd0e2830
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9515 (target_get_bookmark): Add argument.
9516 * target.c (dummy_get_bookmark): Add 'self' argument.
9517 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9518
fc6691b2
TT
95192014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9522 argument.
9523 (target_make_corefile_notes): Add argument.
9524 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9525 * procfs.c (procfs_make_note_section): Add 'self' argument.
9526 (procfs_make_note_section): Add 'self' argument.
9527 (procfs_make_note_section): Add 'self' argument.
9528 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9529 argument.
9530 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9531 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9532 * exec.c (exec_make_note_section): Add 'self' argument.
9533 (exec_make_note_section): Add 'self' argument.
9534
2e73927c
TT
95352014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target.h (struct target_ops) <to_find_memory_regions>: Add
9538 argument.
9539 (target_find_memory_regions): Add argument.
9540 * target.c (dummy_find_memory_regions): Add 'self' argument.
9541 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9542 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9543 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9544 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9545 * exec. (exec_do_find_memory_regions): New global.
9546 (exec_set_find_memory_regions): Rewrite.
9547 (exec_find_memory_regions): New function.
9548 (init_exec_ops): Use exec_find_memory_regions.
9549
2a9a2795
TT
95502014-02-19 Tom Tromey <tromey@redhat.com>
9551
9552 * target.h (struct target_ops) <to_supports_non_stop>: Add
9553 argument.
9554 * target.c (find_default_supports_non_stop): Add argument.
9555 (target_supports_non_stop): Add argument.
9556 (find_default_supports_non_stop): Add 'self' argument.
9557 * remote.c (remote_supports_non_stop): Add 'self' argument.
9558 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9559
4ab76ea3
TT
95602014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_log_command>: Add argument.
9563 (target_log_command): Add argument.
9564 * serial.h (serial_log_command): Add 'self' argument.
9565 * serial.c (serial_log_command): Add 'self' argument.
9566
8dd27370
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9570 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9571 argument.
9572 (target_pid_to_exec_file): Add argument.
9573 * target.c (debug_to_pid_to_exec_file): Add argument.
9574 (update_current_target): Update.
9575 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9576 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9577 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9578 (linux_handle_extended_wait): Update.
9579 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9580 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9581 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9582 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9583
1aac633b
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target.h (struct target_ops) <to_rcmd>: Add argument.
9587 (target_rcmd): Add argument.
9588 * target.c (debug_to_rcmd): Add argument.
9589 (update_current_target, do_monitor_command): Update.
9590 * remote.c (remote_rcmd): Add 'self' argument.
9591 * monitor.c (monitor_rcmd): Add 'self' argument.
9592
1eab8a48
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * windows-nat.c (windows_stop): Add 'self' argument.
9596 * target.h (struct target_ops) <to_stop>: Add argument.
9597 * target.c (target_stop): Add argument.
9598 (debug_to_stop): Add argument.
9599 (update_current_target): Update.
9600 * remote.c (remote_stop): Add 'self' argument.
9601 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9602 (gdbsim_cntrl_c): Update.
9603 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9604 * procfs.c (procfs_stop): Add 'self' argument.
9605 * nto-procfs.c (procfs_stop): Add 'self' argument.
9606 * monitor.c (monitor_stop): Add 'self' argument.
9607 (monitor_open): Update.
9608 * linux-nat.c (linux_nat_stop): Add argument.
9609 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9610 * gnu-nat.c (gnu_stop): Add 'self' argument.
9611 * darwin-nat.c (darwin_stop): Add 'self' argument.
9612
503a628d
TT
96132014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * target.h (struct target_ops) <to_thread_name>: Add argument.
9616 * target.c (target_thread_name): Add argument.
9617 (update_current_target): Update.
9618 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9619
c15906d8
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target.h (struct target_ops) <to_extra_thread_info>: Add
9623 argument.
9624 (target_extra_thread_info): Add argument.
9625 * target.c (update_current_target): Update.
9626 * remote.c (remote_threads_extra_info): Add 'self' argument.
9627 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9628 argument.
9629 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9630 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9631 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9632 argument.
9633 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9634 argument.
9635 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9636 argument.
9637 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9638 argument.
9639
daf5e9b6
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.h (struct target_ops) <to_program_signals>: Add argument.
9643 * target.c (target_program_signals): Add argument.
9644 * remote.c (remote_program_signals): Add 'self' argument.
9645
94bedb42
TT
96462014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9649 * target.c (target_pass_signals): Add argument.
9650 * remote.c (remote_pass_signals): Add 'self' argument.
9651 (remote_start_remote): Update.
9652 * procfs.c (procfs_pass_signals): Add 'self' argument.
9653 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9654 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9655 (linux_nat_create_inferior, linux_nat_attach): Update.
9656
da82bd6b
TT
96572014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * windows-nat.c (windows_can_run): Add 'self' argument.
9660 * target.h (struct target_ops) <to_can_run>: Add argument.
9661 (target_can_run): Add argument.
9662 * target.c (debug_to_can_run): Add argument.
9663 (update_current_target): Update.
9664 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9665 * inf-child.c (inf_child_can_run): Add 'self' argument.
9666 * go32-nat.c (go32_can_run): Add 'self' argument.
9667
d796e1d6
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_has_exited>: Add argument.
9671 (target_has_exited): Add argument.
9672 * target.c (debug_to_has_exited): Add argument.
9673 (update_current_target): Update.
9674
ff214e67
TT
96752014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9678 argument.
9679 (target_set_syscall_catchpoint): Add argument.
9680 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9681 argument.
9682 * target.c (update_current_target): Update.
9683
758e29d2
TT
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9687 argument.
9688 (target_remove_exec_catchpoint): Add argument.
9689 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9690 (update_current_target): Update.
9691 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9692 argument.
9693
ba025e51
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9697 argument.
9698 (target_insert_exec_catchpoint): Add argument.
9699 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9700 (update_current_target): Update.
9701 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9702 argument.
9703
e98cf0cd
TT
97042014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9707 argument.
9708 (target_remove_vfork_catchpoint): Add argument.
9709 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9710 (update_current_target): Update.
9711 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9712 argument.
9713
3ecc7da0
TT
97142014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9717 argument.
9718 (target_insert_vfork_catchpoint): Add argument.
9719 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9720 (update_current_target): Update.
9721 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9722 argument.
9723
973fc227
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9727 argument.
9728 (target_remove_fork_catchpoint): Add argument.
9729 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9730 (update_current_target): Update.
9731 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9732 argument.
9733
a863b201
TT
97342014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9737 argument.
9738 (target_insert_fork_catchpoint): Add argument.
9739 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9740 (update_current_target): Update.
9741 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9742 argument.
9743
2e97a79e
TT
97442014-02-19 Tom Tromey <tromey@redhat.com>
9745
9746 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9747 argument.
9748 (target_post_startup_inferior): Add argument.
9749 * target.c (debug_to_post_startup_inferior): Add argument.
9750 (update_current_target): Update.
9751 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9752 argument.
9753 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9754 argument.
9755 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9756 argument.
9757 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9758 argument.
9759 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9760 'self' argument.
9761 (super_post_startup_inferior): Likewise.
9762 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9763 'self' argument.
9764 (super_post_startup_inferior): Likewise.
9765 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9766 Add 'self' argument.
9767 (super_post_startup_inferior): Likewise.
9768
71a9f134
TT
97692014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_load>: Add argument.
9772 * target.c (target_load): Add argument.
9773 (debug_to_load): Add argument.
9774 (update_current_target): Update.
9775 * remote.c (remote_load): Add 'self' argument.
9776 * remote-sim.c (gdbsim_load): Add 'self' argument.
9777 * remote-mips.c (mips_load): Add 'self' argument.
9778 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9779 * monitor.c (monitor_load): Add 'self' argument.
9780 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9781
0a4f40a2
TT
97822014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9785 (target_terminal_info): Add argument.
9786 * target.c (debug_to_terminal_info): Add argument.
9787 (default_terminal_info): Likewise.
9788 * inflow.c (child_terminal_info): Add 'self' argument.
9789 * inferior.h (child_terminal_info): Add 'self' argument.
9790 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9791
ae3bd431
TT
97922014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9795 argument.
9796 (target_terminal_save_ours): Add argument.
9797 * target.c (debug_to_terminal_save_ours): Add argument.
9798 (update_current_target): Update.
9799 * inflow.c (terminal_save_ours): Add 'self' argument.
9800 * inferior.h (terminal_save_ours): Add 'self' argument.
9801
e3594fd1
TT
98022014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9805 (target_terminal_ours): Add argument.
9806 * target.c (debug_to_terminal_ours): Add argument.
9807 (update_current_target): Update.
9808 * remote.c (remote_terminal_ours): Add 'self' argument.
9809 (remote_close): Update.
9810 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9811 * inflow.c (terminal_ours): Add 'self' argument.
9812 * inferior.h (terminal_ours): Add 'self' argument.
9813 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9814
2e1e1a19
TT
98152014-02-19 Pedro Alves <palves@redhat.com>
9816 Tom Tromey <tromey@redhat.com>
9817
9818 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9819 argument.
9820 (target_terminal_ours_for_output): Add argument.
9821 * target.c (debug_to_terminal_ours_for_output): Add argument.
9822 (update_current_target): Update.
9823 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9824 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9825 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9826
d2f640d4
TT
98272014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_terminal_inferior>: Add
9830 argument.
9831 * target.c (target_terminal_inferior): Add argument.
9832 (update_current_target): Update.
9833 * remote.c (remote_terminal_inferior): Add 'self' argument.
9834 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9835 * inflow.c (terminal_inferior): Add 'self' argument.
9836 * inferior.h (terminal_inferior): Add 'self' argument.
9837 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9838 (go32_terminal_inferior): Add 'self' argument.
9839
c42bf286
TT
98402014-02-19 Tom Tromey <tromey@redhat.com>
9841
9842 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9843 (target_terminal_init): Add argument.
9844 * target.c (debug_to_terminal_init): Add argument.
9845 (update_current_target): Update.
9846 * inflow.c (terminal_init_inferior): Add 'self' argument.
9847 * inferior.h (terminal_init_inferior): Add 'self' argument.
9848 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9849 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9850
c3a5ff89
TT
98512014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops)
9854 <to_can_accel_watchpoint_condition>: Add argument.
9855 (target_can_accel_watchpoint_condition): Add argument.
9856 * target.c (debug_to_can_accel_watchpoint_condition): Add
9857 argument.
9858 (update_current_target): Update.
9859 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9860 'self' argument.
9861
31568a15
TT
98622014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9865 Add argument.
9866 (target_region_ok_for_hw_watchpoint): Add argument.
9867 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9868 (default_region_ok_for_hw_watchpoint): Add argument.
9869 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9870 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9871 argument.
9872 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9873 argument.
9874 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9875 argument.
9876 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9877 'self' argument.
9878 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9879 'self' argument.
9880 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9881 'self' argument.
9882 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9883 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9884 'self' argument.
9885 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9886 Add 'self' argument.
9887
7bb99c53
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9891 argument.
9892 (target_insert_watchpoint): Add argument.
9893 * target.c (debug_to_insert_watchpoint): Add argument.
9894 (update_current_target): Update.
9895 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9896 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9897 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9898 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9899 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9900 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9901 argument.
9902 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9903 (procfs_insert_hw_watchpoint): Add 'self' argument.
9904 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9905 argument.
9906 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9907 argument.
9908 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9909 argument.
9910 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9911 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9912 argument.
9913 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9914 'self' argument.
9915
11b5219a
TT
99162014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9919 argument.
9920 (target_remove_watchpoint): Add argument.
9921 * target.c (debug_to_remove_watchpoint): Add argument.
9922 (update_current_target): Update.
9923 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9924 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9925 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9926 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9927 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9928 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9929 argument.
9930 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9931 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9932 argument.
9933 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9934 argument.
9935 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9936 argument.
9937 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9938 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9939 argument.
9940 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9941 'self' argument.
9942
a64dc96c
TT
99432014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9946 argument.
9947 (target_remove_hw_breakpoint): Add argument.
9948 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9949 (update_current_target): Update.
9950 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9951 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9952 argument.
9953 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9954 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9955 argument.
9956 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9957 'self' argument.
9958
23a26771
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9962 argument.
9963 (target_insert_hw_breakpoint): Add argument.
9964 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9965 (update_current_target): Update.
9966 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9967 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9968 argument.
9969 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9970 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9971 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9972 argument.
9973 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9974 'self' argument.
9975
5461485a
TT
99762014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9979 argument.
9980 (target_can_use_hardware_watchpoint): Add argument.
9981 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9982 (update_current_target): Update.
9983 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9984 argument.
9985 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9986 argument.
9987 * remote.c (remote_check_watch_resources): Add 'self' argument.
9988 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9989 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9990 argument.
9991 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9992 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9993 argument.
9994 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9995 argument.
9996 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9997 argument.
9998 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9999 argument.
10000 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10001 argument.
10002 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10003 argument.
10004 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10005 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10006 argument.
10007 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10008 'self' argument.
10009
f045800c
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target.h (struct target_ops) <to_post_attach>: Add argument.
10013 (target_post_attach): Add argument.
10014 * target.c (debug_to_post_attach): Add argument.
10015 (update_current_target): Update.
10016 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10017 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10018 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10019 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10020 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10021
de90e03d
TT
100222014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * windows-nat.c (windows_close): Add 'self' argument.
10025 * tracepoint.c (tfile_close): Add 'self' argument.
10026 * target.h (struct target_ops) <to_close>: Add argument.
10027 * target.c (target_close): Add argument.
10028 (update_current_target): Update.
10029 * remote.c (remote_close): Add 'self' argument.
10030 * remote-sim.c (gdbsim_close): Add 'self' argument.
10031 * remote-mips.c (mips_close): Add 'self' argument.
10032 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10033 * record-full.c (record_full_close): Add 'self' argument.
10034 * record-btrace.c (record_btrace_close): Add 'self' argument.
10035 * monitor.h (monitor_close): Add 'self' argument.
10036 * monitor.c (monitor_close): Add 'self' argument.
10037 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10038 * linux-nat.c (linux_nat_close): Add argument.
10039 * go32-nat.c (go32_close): Add 'self' argument.
10040 * exec.c (exec_close_1): Add 'self' argument.
10041 * ctf.c (ctf_close): Add 'self' argument.
10042 * corelow.c (core_close): Add 'self' argument.
10043 (core_close_cleanup): Update.
10044 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10045 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10046
9dd130a0
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * remote.c (remote_load): New function.
10050 (init_remote_ops): Use it.
10051
46917d26
TT
100522014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10055 argument.
10056 * common/linux-btrace.h (linux_supports_btrace): Update.
10057 * remote.c (remote_supports_btrace): Add "self" argument.
10058 * target-delegates.c: Rebuild.
10059 * target.c (target_supports_btrace): Remove.
10060 * target.h (struct target_ops) <to_supports_btrace>: Add
10061 target_ops argument.
10062 (target_supports_btrace): New define.
10063
6b84065d
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * record-full.c (record_full_beneath_to_resume_ops)
10067 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10068 (record_full_beneath_to_wait)
10069 (record_full_beneath_to_store_registers_ops)
10070 (record_full_beneath_to_store_registers)
10071 (record_full_beneath_to_xfer_partial_ops)
10072 (record_full_beneath_to_xfer_partial)
10073 (record_full_beneath_to_insert_breakpoint_ops)
10074 (record_full_beneath_to_insert_breakpoint)
10075 (record_full_beneath_to_remove_breakpoint_ops)
10076 (record_full_beneath_to_remove_breakpoint)
10077 (record_full_beneath_to_stopped_by_watchpoint)
10078 (record_full_beneath_to_stopped_data_address)
10079 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10080 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10081 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10082 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10083 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10084 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10085 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10086 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10087 (record_full_resume, record_full_wait_1)
10088 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10089 (record_full_store_registers, record_full_xfer_partial)
10090 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10091 (record_full_async, record_full_core_xfer_partial): Use target
10092 delegation.
10093 * target-delegates.c: Rebuild.
10094 * target.c (current_xfer_partial): Remove.
10095 (update_current_target): Do not INHERIT or de_fault
10096 to_insert_breakpoint, to_remove_breakpoint,
10097 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10098 to_is_async_p, to_async. Do not set to_xfer_partial field.
10099 (default_xfer_partial): Simplify.
10100 (current_xfer_partial): Remove.
10101 (target_wait, target_resume): Simplify.
10102 (find_default_can_async_p, find_default_is_async_p): Update.
10103 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10104 to_xfer_partial, to_stopped_by_watchpoint,
10105 to_stopped_data_address.
10106 (target_store_registers): Simplify.
10107 (forward_target_remove_breakpoint)
10108 (forward_target_insert_breakpoint): Remove.
10109 (target_remove_breakpoint, target_insert_breakpoint)
10110 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10111 * target.h (struct target_ops) <to_resume, to_wait,
10112 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10113 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10114 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10115 markup.
10116 (forward_target_remove_breakpoint)
10117 (forward_target_insert_breakpoint): Remove.
10118 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10119 directly.
10120 (record_btrace_insert_breakpoint): Delegate directly.
10121
1101cb7b
TT
101222014-02-19 Tom Tromey <tromey@redhat.com>
10123
10124 PR build/7701:
10125 * target-delegates.c: New file.
10126 * target.c: Include target-delegates.c.
10127 (init_dummy_target): Call install_dummy_methods.
10128 (complete_target_initialization): Call install_delegators.
10129 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10130 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10131 * make-target-delegates: New file.
10132
8b06beed
TT
101332014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * record.c (find_record_target): Use find_target_at.
10136 * target.c (find_target_at): New function.
10137 * target.h (find_target_at): Declare.
10138
6a109b6b
TT
101392014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10142 Add 'ops' argument.
10143 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10144 'ops' argument.
10145 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10146 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10147 'ops' argument.
10148 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10149 argument.
10150 * linux-nat.c (save_sigtrap): Update.
10151 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10152 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10153 (linux_nat_close): Update.
10154 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10155 argument.
10156 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10157 argument.
10158 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10159 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10160 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10161 (tmp_to_async): Add 'ops' argument.
10162 (record_full_stopped_by_watchpoint, record_full_async)
10163 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10164 argument.
10165 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10166 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10167 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10168 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10169 (remote_is_async_p, remote_async): Add 'ops' argument.
10170 (remote_stopped_data_address): Update.
10171 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10172 * target.c (update_current_target)
10173 (find_default_can_async_p, find_default_is_async_p): Update.
10174 (init_dummy_target): Update.
10175 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10176 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10177 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10178 (target_can_async_p, target_is_async_p, target_async)
10179 (target_stopped_by_watchpoint): Update.
10180
e095146b
YQ
101812014-02-19 Yao Qi <yao@codesourcery.com>
10182
10183 PR gdb/16220
10184 * gdbarch.sh: Remove startup_gdbarch.
10185 * gdbarch.c: Regenerated.
10186 * gdbarch.h: Likewise.
10187
bc3c6b36
KB
101882014-02-17 Kevin Buettner <kevinb@redhat.com>
10189
10190 * rl78-tdep.c (rl78_g10_register_name): New function.
10191 (rl78_return_value): Add g10 support.
10192 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10193 g10.
10194
98dc0167 101952014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10196
10197 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10198 (SUBDIR_GUILE_SRCS): Ditto.
10199 (scm-gsmob.o): Ditto.
10200
842c05cd
YQ
102012014-02-17 Yao Qi <yao@codesourcery.com>
10202
10203 * gnu-nat.c (ILL_RPC): Declare defined function.
10204
25c0bd04
YQ
102052014-02-17 Yao Qi <yao@codesourcery.com>
10206
10207 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10208 mach_msg_type_number_t.
10209 (gnu_write_inferior): Likewise.
10210
a9a758e3
YQ
102112014-02-17 Yao Qi <yao@codesourcery.com>
10212
10213 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10214 in format string.
10215 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10216 (inf_validate_procs, inf_signal): Likewise.
10217 (S_exception_raise_request): Likewise.
10218 (do_mach_notify_dead_name): Likewise.
10219 (steal_exc_port): Likewise.
10220 (gnu_read_inferior): Change 'copy_count''s type to
10221 mach_msg_type_number_t.
10222 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10223 format string.
10224
bae8023e
TS
102252014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10226
c82f56d9
TS
10227 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10228 flag. Adjust all users; in particular...
10229 (gnu_wait): ..., don't decrement its value in here...
10230 (gnu_create_inferior): ..., and instead set the flag in here,
10231 around the startup_inferior call, and call that one with
10232 START_INFERIOR_TRAPS_EXPECTED.
10233
3398af6a
TS
10234 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10235 (ILL_RPC): ... new macro.
10236 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10237 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10238 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10239 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10240 functions with ILL_RPC macro.
10241 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10242 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10243 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10244 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10245 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10246 (S_proc_getlogin_reply, S_proc_getsid_reply)
10247 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10248 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10249 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10250 (S_proc_getnports_reply, S_proc_is_important_reply)
10251 (S_proc_get_code_reply): New stub functions, generated with
10252 ILL_RPC macro.
10253
d47642c9
TS
10254 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10255 collected the type check structures.
10256
bae8023e
TS
10257 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10258
8a55ffb0
DE
102592014-02-14 Doug Evans <dje@google.com>
10260
10261 * target.c (target_write_partial): Fix result type.
10262
c2853f3d
JM
102632014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10264
10265 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10266 the proper offsets to access fpregset_t.
10267
ac61d2db
SA
102682014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10269
10270 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10271 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10272 * h8300-tdep.c (setmachinelist): Remove global.
10273 * hppa-tdep.c (hppa_sigtramp): Remove global.
10274 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10275 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10276 * ravenscar-thread.c (update_target_observer): Remove global.
10277 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10278
9d2d0b8b
TT
102792014-02-12 Tom Tromey <tromey@redhat.com>
10280
10281 * common/rsp-low.c: Update comments.
10282 * common/rsp-low.h: Update comments.
10283
a7191e8b
TT
102842014-02-12 Tom Tromey <tromey@redhat.com>
10285
10286 * common/rsp-low.c (convert_ascii_to_int): Remove.
10287 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10288
ff0e980e
TT
102892014-02-12 Tom Tromey <tromey@redhat.com>
10290
10291 * common/rsp-low.h (unhexify): Don't declare.
10292 * common/rsp-low.c (unhexify): Remove.
10293
e9371aff
TT
102942014-02-12 Tom Tromey <tromey@redhat.com>
10295
10296 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10297 * common/rsp-low.c (convert_int_to_ascii): Remove.
10298
971dc0b8
TT
102992014-02-12 Tom Tromey <tromey@redhat.com>
10300
10301 * common/rsp-low.h (hexify): Don't declare.
10302 * common/rsp-low.c (hexify): Remove.
10303
0a822afb
TT
103042014-02-12 Tom Tromey <tromey@redhat.com>
10305
10306 * common/rsp-low.c (hexify): Never take strlen of argument.
10307
9f1b45b0
TT
103082014-02-12 Tom Tromey <tromey@redhat.com>
10309
10310 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10311 * remote.c (extended_remote_run, remote_rcmd)
10312 (remote_download_trace_state_variable, remote_save_trace_data)
10313 (remote_set_trace_notes): Update.
10314 * tracepoint.c (encode_source_string, tfile_write_status)
10315 (tfile_write_uploaded_tsv): Update.
10316
9c3d6531
TT
103172014-02-12 Tom Tromey <tromey@redhat.com>
10318
10319 * tracepoint.c: Include rsp-low.h.
10320 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10321 * remote.c: Include rsp-low.h.
10322 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10323 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10324 (remote_unescape_input): Move to common/rsp-low.c.
10325 * common/rsp-low.h: New file.
10326 * common/rsp-low.c: New file.
10327 * Makefile.in (SFILES): Add common/rsp-low.c.
10328 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10329 (COMMON_OBS): Add rsp-low.o.
10330 (rsp-low.o): New target.
10331
01fd3ea5
TT
103322014-02-12 Tom Tromey <tromey@redhat.com>
10333
10334 * utils.h: Include print-utils.h.
10335 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10336 (int_string, core_addr_to_string, core_addr_to_string_nz)
10337 (hex_string, hex_string_custom): Don't declare.
10338 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10339 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10340 (hex_string_custom, int_string, core_addr_to_string)
10341 (core_addr_to_string_nz, host_address_to_string): Move to
10342 common/print-utils.c.
10343 * common/print-utils.h: New file.
10344 * common/print-utils.c: New file
10345 * Makefile.in (SFILES): Add common/print-utils.c.
10346 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10347 (COMMON_OBS): Add print-utils.o.
10348 (print-utils.o): New target.
10349
9fb50108
TT
103502014-02-12 Tom Tromey <tromey@redhat.com>
10351
10352 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10353
0548b5db
MK
103542014-02-12 Mark Kettenis <kettenis@gnu.org>
10355
10356 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10357
493443a4
MK
103582014-02-12 Mark Kettenis <kettenis@gnu.org>
10359
10360 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10361 if a PT_IO ptrace request returns sucessfully but indicates that 0
10362 bytes were transferred.
10363
706d0883
PA
103642014-02-12 Pedro Alves <palves@redhat.com>
10365 Kevin Buettner <kevinb@redhat.com>
10366
10367 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10368 TYPE_INSTANCE_FLAG_CODE_SPACE.
10369
5caa2f0b
PA
103702014-02-12 Pedro Alves <palves@redhat.com>
10371
10372 * h8300-tdep.c (pseudo_from_raw_register)
10373 (raw_from_pseudo_register): New functions.
10374 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10375 them.
10376
76fd5f74
PA
103772014-02-12 Pedro Alves <palves@redhat.com>
10378
10379 * h8300-tdep.c (h8300_register_sim_regno): New function.
10380 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10381 gdbarch_register_sim_regno hook.
10382
8f008406
SA
103832014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10384
10385 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10386
195abc10
SA
103872014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10388
10389 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10390
93ffa5b9
MK
103912014-02-12 Mark Kettenis <kettenis@gnu.org>
10392
10393 * obsd-tdep.h (obsd_init_abi): New prototype.
10394 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10395 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10396 (obsd_init_abi): New functions.
10397 * i386obsd-tdep.c: Include "obsd-tdep.h".
10398 (i386obsd_init_abi): Call obsd_init_abi.
10399 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10400 (amd64obsd_init_abi): Call obsd_init_abi.
10401 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10402 obsd-tdep.c to gdb_target_obs.
10403
49caec94
JM
104042014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10405
10406 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10407 double float arguments to 16-byte in the argument slots.
10408
e1402065
DE
104092014-02-11 Doug Evans <xdje42@gmail.com>
10410
10411 * configure.ac: Don't crash if pkg-config is not found and guile
10412 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10413 in guile checks.
10414 * configure: Regenerate.
10415
edcc890f
YQ
104162014-02-11 Yao Qi <yao@codesourcery.com>
10417
10418 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10419 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10420 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10421 * gnu-nat.c (gnu_xfer_memory): Likewise.
10422 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10424 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10425 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10426
9b409511
YQ
104272014-02-11 Yao Qi <yao@codesourcery.com>
10428
10429 * target.h (enum target_xfer_error): Rename to ...
10430 (enum target_xfer_status): ... it. New. All users updated.
10431 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10432 New.
10433 (TARGET_XFER_STATUS_ERROR_P): New macro.
10434 (target_xfer_error_to_string): Remove declaration.
10435 (target_xfer_status_to_string): Declare.
10436 (target_xfer_partial_ftype): Adjust it.
10437 (struct target_ops) <to_xfer_partial>: Return
10438 target_xfer_status. Add argument xfered_len. Update
10439 comments.
10440 * target.c (target_xfer_error_to_string): Rename to ...
10441 (target_xfer_status_to_string): ... it. New. All callers
10442 updated.
10443 (target_read_live_memory): Likewise. Call target_xfer_partial
10444 instead of target_read.
10445 (memory_xfer_live_readonly_partial): Return
10446 target_xfer_status. Add argument xfered_len.
10447 (raw_memory_xfer_partial): Likewise.
10448 (memory_xfer_partial_1): Likewise.
10449 (memory_xfer_partial): Likewise.
10450 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10451 properly. Update debug message.
10452 (default_xfer_partial, current_xfer_partial): Likewise.
10453 (target_write_partial): Likewise.
10454 (target_read_partial): Likewise. All callers updated.
10455 (read_whatever_is_readable): Likewise.
10456 (target_write_with_progress): Likewise.
10457 (target_read_alloc_1): Likewise.
10458
10459 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10460 * auxv.c (procfs_xfer_auxv): Likewise.
10461 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10462 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10463 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10464 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10465 * corefile.c (read_memory): Adjust.
10466 * corelow.c (core_xfer_partial): Likewise.
10467 * ctf.c (ctf_xfer_partial): Likewise.
10468 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10469 updated.
10470 (darwin_xfer_partial): Likewise.
10471 * exec.c (section_table_xfer_memory_partial): Likewise. All
10472 callers updated.
10473 (exec_xfer_partial): Likewise.
10474 * exec.h (section_table_xfer_memory_partial): Update
10475 declaration.
10476 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10477 negative.
10478 (gnu_xfer_partial): Likewise.
10479 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10480 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10481 (ia64_hpux_xfer_solib_got): Likewise.
10482 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10483 type of 'partial_len' to ULONGEST.
10484 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10485 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10486 (linux_nat_xfer_partial): Likewise.
10487 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10488 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10489 * monitor.c (monitor_xfer_memory): Likewise.
10490 (monitor_xfer_partial): Likewise.
10491 * procfs.c (procfs_xfer_partial): Likewise.
10492 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10493 * record-full.c (record_full_xfer_partial): Likewise.
10494 (record_full_core_xfer_partial): Likewise.
10495 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10496 (gdbsim_xfer_partial): Likewise.
10497 * remote.c (remote_write_bytes_aux): Likewise. All callers
10498 updated.
10499 (remote_write_bytes, remote_read_bytes): Likewise. All
10500 callers updated.
10501 (remote_flash_erase): Likewise. All callers updated.
10502 (remote_write_qxfer): Likewise. All callers updated.
10503 (remote_read_qxfer): Likewise. All callers updated.
10504 (remote_xfer_partial): Likewise.
10505 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10506 (rs6000_xfer_shared_libraries): Likewise.
10507 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10508 (sol_thread_xfer_partial): Likewise.
10509 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10510 (sparc_xfer_partial): Likewise.
10511 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10512 updated.
10513 (spu_xfer_partial): Likewise.
10514 * spu-multiarch.c (spu_xfer_partial): Likewise.
10515 * tracepoint.c (tfile_xfer_partial): Likewise.
10516 * windows-nat.c (windows_xfer_memory): Likewise.
10517 (windows_xfer_shared_libraries): Likewise.
10518 (windows_xfer_partial): Likewise.
10519 * valprint.c: Replace 'target_xfer_error' with
10520 'target_xfer_status' in comments.
10521
a8e63083
JB
105222014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10523
10524 Checked in by Joel Brobecker <brobecker@adacore.com>.
10525 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10526
e86b67d3
JB
105272014-02-11 Joel Brobecker <brobecker@adacore.com>
10528
10529 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10530 function parameters.
10531
4b7d1f7f
WN
105322014-02-10 Will Newton <will.newton@linaro.org>
10533
10534 * elfread.c (elf_rel_plt_read): Look for a .got section if
10535 looking up .got.plt fails.
10536 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10537 on address passed to elf_gnu_ifunc_record_cache.
10538 (elf_gnu_ifunc_resolve_addr): Likewise.
10539 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10540
961842b2
JM
105412014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10542
10543 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10544 (X_RETTURN): New macro.
10545 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10546
10547 * sparc64-tdep.c (sparc64_init_abi): Hook
10548 sparc_in_function_epilogue_p.
10549
3f03e7b1
GB
105502014-02-10 Gary Benson <gbenson@redhat.com>
10551
10552 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10553 Rename name_matcher to symbol_matcher.
10554
96f861ef
GB
105552014-02-10 Gary Benson <gbenson@redhat.com>
10556
10557 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10558 Use expand_symtabs_file_matcher_ftype and
10559 expand_symtabs_symbol_matcher_ftype.
10560
ee01b665
JB
105612014-02-10 Joel Brobecker <brobecker@adacore.com>
10562
10563 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10564 (struct ada_symbol_cache): New.
10565 (ada_free_symbol_cache): Forward declare.
10566 (struct ada_pspace_data): New.
10567 (ada_pspace_data_handle): New static global.
10568 (get_ada_pspace_data, ada_pspace_data_cleanup)
10569 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10570 (cache_space, cache): Delete, now folded inside struct
10571 ada_pspace_data.
10572 (ada_get_symbol_cache): New function.
10573 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10574 implementation.
10575 (_initialize_ada_language): Remove initialization of cache_space.
10576 Move call to observer_attach_inferior_exit up, grouping it
10577 with the other observer registrations inside this function.
10578 Rename command to be more general. Add call to
10579 register_program_space_data_with_cleanup.
10580
143adbbf
JB
105812014-02-10 Joel Brobecker <brobecker@adacore.com>
10582
10583 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10584 ada_new_objfile_observer.
10585 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10586 (_initialize_tasks): Update uses of ada_new_objfile_observer
10587 and ada_tasks_normal_stop_observer.
10588
aa4fb036
JB
105892014-02-10 Joel Brobecker <brobecker@adacore.com>
10590
10591 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10592 returned by the 'Length attribute to integer.
10593
9dee8cc6
JB
105942014-02-10 Joel Brobecker <brobecker@adacore.com>
10595
10596 * ada-lang.c (_initialize_ada_language): Initialize
10597 cache_space obstack.
10598
3d9434b5
JB
105992014-02-10 Joel Brobecker <brobecker@adacore.com>
10600
10601 * ada-lang.c (HASH_SIZE): New macro.
10602 (struct cache_entry): New type.
10603 (cache_space, cache): New static globals.
10604 (ada_clear_symbol_cache, find_entry): New functions.
10605 (lookup_cached_symbol, cache_symbol): Implement.
10606 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10607 (_initialize_ada_language): Attach ada_new_objfile_observer
10608 and ada_free_objfile_observer.
10609
f0c5f9b2
JB
106102014-02-10 Joel Brobecker <brobecker@adacore.com>
10611
10612 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10613 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10614 struct block * parameter.
10615 (ada_lookup_symbol_list_worker): Constify local variable "block".
10616 Remove cast which is no longer necessary.
10617
ed3ef339
DE
106182014-02-10 Doug Evans <xdje42@gmail.com>
10619
10620 Add Guile as an extension language.
10621 * NEWS: Mention Guile scripting.
10622 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10623 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10624 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10625 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10626 (CLIBS): Add GUILE_LIBS.
10627 (install-guile): New rule.
10628 (guile.o): New rule.
10629 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10630 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10631 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10632 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10633 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10634 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10635 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10636 * configure.ac: New option --with-guile.
10637 * configure: Regenerate.
10638 * config.in: Regenerate.
10639 * auto-load.c: Remove #include "python/python.h". Add #include
10640 "gdb/section-scripts.h".
10641 (source_section_scripts): Handle Guile scripts.
10642 (_initialize_auto_load): Add name of Guile objfile script to
10643 scripts-directory help text.
10644 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10645 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10646 (struct breakpoint): New member scm_bp_object.
10647 * defs.h (enum command_control_type): New value guile_control.
10648 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10649 "extension.h".
10650 (show_user): Update comment.
10651 (_initialize_cli_cmds): Update help text for "show user". Update help
10652 text for max-user-call-depth.
10653 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10654 "extension.h".
10655 (multi_line_command_p): Add guile_control.
10656 (print_command_lines): Handle guile_control.
10657 (execute_control_command, recurse_read_control_structure): Ditto.
10658 (process_next_line): Recognize "guile" commands.
10659 * disasm.c (gdb_disassemble_info): Make non-static.
10660 * disasm.h: #include "dis-asm.h".
10661 (struct gdbarch): Add forward decl.
10662 (gdb_disassemble_info): Declare.
10663 * extension.c: #include "guile/guile.h".
10664 (extension_languages): Add guile.
10665 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10666 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10667 * gdbtypes.c (get_unsigned_type_max): New function.
10668 (get_signed_type_minmax): New function.
10669 * gdbtypes.h (get_unsigned_type_max): Declare.
10670 (get_signed_type_minmax): Declare.
10671 * guile/README: New file.
10672 * guile/guile-internal.h: New file.
10673 * guile/guile.c: New file.
10674 * guile/guile.h: New file.
10675 * guile/scm-arch.c: New file.
10676 * guile/scm-auto-load.c: New file.
10677 * guile/scm-block.c: New file.
10678 * guile/scm-breakpoint.c: New file.
10679 * guile/scm-disasm.c: New file.
10680 * guile/scm-exception.c: New file.
10681 * guile/scm-frame.c: New file.
10682 * guile/scm-gsmob.c: New file.
10683 * guile/scm-iterator.c: New file.
10684 * guile/scm-lazy-string.c: New file.
10685 * guile/scm-math.c: New file.
10686 * guile/scm-objfile.c: New file.
10687 * guile/scm-ports.c: New file.
10688 * guile/scm-pretty-print.c: New file.
10689 * guile/scm-safe-call.c: New file.
10690 * guile/scm-string.c: New file.
10691 * guile/scm-symbol.c: New file.
10692 * guile/scm-symtab.c: New file.
10693 * guile/scm-type.c: New file.
10694 * guile/scm-utils.c: New file.
10695 * guile/scm-value.c: New file.
10696 * guile/lib/gdb.scm: New file.
10697 * guile/lib/gdb/boot.scm: New file.
10698 * guile/lib/gdb/experimental.scm: New file.
10699 * guile/lib/gdb/init.scm: New file.
10700 * guile/lib/gdb/iterator.scm: New file.
10701 * guile/lib/gdb/printing.scm: New file.
10702 * guile/lib/gdb/types.scm: New file.
10703 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10704 (VPATH): Add $(GUILE_SRCDIR).
10705 (GUILE_DIR): New variable.
10706 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10707 (all): Add stamp-guile dependency.
10708 (stamp-guile): New rule.
10709 (clean-guile, install-guile, uninstall-guile): New rules.
10710 (install-only): Add install-guile dependency.
10711 (uninstall): Add uninstall-guile dependency.
10712 (clean): Add clean-guile dependency.
10713
ac020ec5
DE
107142014-02-09 Doug Evans <xdje42@gmail.com>
10715
10716 Revert this patch (which I approved, mea culpa).
10717
10718 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10719
10720 * Makefile.in (all-lib): Remove.
10721 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10722
2a081c59
JK
107232014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10724
10725 Fix Python stack corruption.
10726 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10727 gdb_py_longest.
10728
0a6bd22d
MK
107292014-02-08 Mark Kettenis <kettenis@gnu.org>
10730
10731 * Makefile.in (all-lib): Remove.
10732 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10733
1a860409
DE
107342014-02-07 Doug Evans <dje@google.com>
10735
10736 * extension-priv.h (extension_language_script_ops): Add comment.
10737 (extension_language_ops): Add comment.
caf5a491 10738 (active_ext_lang_state): Fix typo in comment.
1a860409 10739
d137e6dc
PA
107402014-02-07 Pedro Alves <palves@redhat.com>
10741
0dcb32c3 10742 PR breakpoints/16292
d137e6dc
PA
10743 * infrun.c (handle_signal_stop) <signal arrives while stepping
10744 over a breakpoint>: Switch back to the stepping thread.
10745
ce6d0892
YQ
107462014-02-07 Yao Qi <yao@codesourcery.com>
10747
10748 * target.c (target_xfer_partial): Return zero if LEN is zero.
10749
2ed4b548
YQ
107502014-02-07 Yao Qi <yao@codesourcery.com>
10751
10752 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10753 (ld_so_xfer_auxv): Likewise.
10754 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10755 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10756 * corelow.c (core_xfer_partial): Likewise.
10757 * ctf.c (ctf_xfer_partial): Likewise.
10758 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10759 (darwin_xfer_partial): Likewise.
10760 * exec.c (exec_xfer_partial): Likewise.
10761 * gnu-nat.c (gnu_xfer_partial): Likewise.
10762 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10763 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10764 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10765 * linux-nat.c (linux_xfer_siginfo): Likewise.
10766 (linux_proc_xfer_spu): Likewise.
10767 * procfs.c (procfs_xfer_partial): Likewise.
10768 * record-full.c (record_full_xfer_partial): Likewise.
10769 (record_full_core_xfer_partial): Likewise.
10770 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10771 * remote.c (remote_write_qxfer): Likewise.
10772 (remote_write_qxfer, remote_read_qxfer): Likewise.
10773 (remote_xfer_partial): Likewise.
10774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10775 (rs6000_xfer_shared_libraries): Likewise.
10776 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10777 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10778 (spu_xfer_partial): Likewise.
10779 * target.c (memory_xfer_partial_1): Likewise.
10780 * tracepoint.c (tfile_xfer_partial): Likewise.
10781 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10782 (windows_xfer_partial): Likewise.
10783
c09f20e4
YQ
107842014-02-07 Yao Qi <yao@codesourcery.com>
10785
10786 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10787 comments.
10788 (core_xfer_shared_libraries_aix): Likewise.
10789 * gdbarch.c, gdbarch.h: Regenerated.
10790 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10791 ULONGEST. Change 'len_avail' type to ULONGEST.
10792 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10793 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10794 declaration.
10795 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10796
8635b3bf
YQ
107972014-02-07 Yao Qi <yao@codesourcery.com>
10798
10799 * corefile.c (memory_error): Get 'exception' from ERR and pass
10800 'exception' to throw_error.
10801
6dddc817
DE
108022014-02-06 Doug Evans <xdje42@gmail.com>
10803
10804 * configure.ac (libpython checking): Remove all but python.o from
10805 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10806 * configure: Regenerate.
10807
10808 * Makefile.in (SFILES): Add extension.c.
10809 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10810 (COMMON_OBS): Add extension.o.
10811 * extension.h: New file.
10812 * extension-priv.h: New file.
10813 * extension.c: New file.
10814
10815 * python/python-internal.h: #include "extension.h".
10816 (gdbpy_auto_load_enabled): Declare.
10817 (gdbpy_apply_val_pretty_printer): Declare.
10818 (gdbpy_apply_frame_filter): Declare.
10819 (gdbpy_preserve_values): Declare.
10820 (gdbpy_breakpoint_cond_says_stop): Declare.
10821 (gdbpy_breakpoint_has_cond): Declare.
10822 (void source_python_script_for_objfile): Delete.
10823 * python/python.c: #include "extension-priv.h".
10824 Delete inclusion of "observer.h".
10825 (extension_language_python): Moved here and renamed from
10826 script_language_python in py-auto-load.c.
10827 Redefined to be of type extension_language_defn.
10828 (python_extension_script_ops): New global.
10829 (python_extension_ops): New global.
10830 (struct python_env): New member previous_active.
10831 (restore_python_env): Call restore_active_ext_lang.
10832 (ensure_python_env): Call set_active_ext_lang.
10833 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10834 New arg extlang.
10835 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10836 New arg extlang.
10837 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10838 New arg extlang.
10839 (gdbpy_eval_from_control_command): Renamed from
10840 eval_python_from_control_command, made static. New arg extlang.
10841 (gdbpy_source_script) Renamed from source_python_script, made static.
10842 New arg extlang.
10843 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10844 result to int. New arg extlang.
10845 (gdbpy_source_objfile_script): Renamed from
10846 source_python_script_for_objfile, made static. New arg extlang.
10847 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10848 static. New args extlang, extlang_printers. Change result type to
10849 "void".
10850 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10851 static. New arg extlang. Rename arg printers to extlang_printers
10852 and change type to ext_lang_type_printers *.
10853 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10854 static. Replace argument arg with extlang, extlang_printers.
10855 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10856 (!HAVE_PYTHON, source_python_script): Delete.
10857 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10858 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10859 (!HAVE_PYTHON, start_type_printers): Delete.
10860 (!HAVE_PYTHON, apply_type_printers): Delete.
10861 (!HAVE_PYTHON, free_type_printers): Delete.
10862 (_initialize_python): Delete call to observer_attach_before_prompt.
10863 (finalize_python): Set/restore active extension language.
10864 (gdbpy_finish_initialization) Renamed from
10865 finish_python_initialization, made static. New arg extlang.
10866 (gdbpy_initialized): New function.
10867 * python/python.h: #include "extension.h". Delete #include
10868 "value.h", "mi/mi-cmds.h".
10869 (extension_language_python): Declare.
10870 (GDBPY_AUTO_FILE_NAME): Delete.
10871 (enum py_bt_status): Moved to extension.h and renamed to
10872 ext_lang_bt_status.
10873 (enum frame_filter_flags): Moved to extension.h.
10874 (enum py_frame_args): Moved to extension.h and renamed to
10875 ext_lang_frame_args.
10876 (finish_python_initialization): Delete.
10877 (eval_python_from_control_command): Delete.
10878 (source_python_script): Delete.
10879 (apply_val_pretty_printer): Delete.
10880 (apply_frame_filter): Delete.
10881 (preserve_python_values): Delete.
10882 (gdbpy_script_language_defn): Delete.
10883 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10884 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10885
10886 * auto-load.c: #include "extension.h".
10887 (GDB_AUTO_FILE_NAME): Delete.
10888 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10889 (script_language_gdb): Delete, moved to extension.c and renamed to
10890 extension_language_gdb.
10891 (source_gdb_script_for_objfile): Delete.
10892 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10893 (loaded_script): Change type of language member to
10894 struct extension_language_defn *.
10895 (init_loaded_scripts_info): Initialize
10896 unsupported_script_warning_printed.
10897 (maybe_add_script): Make static. Change type of language arg to
10898 struct extension_language_defn *.
10899 (clear_section_scripts): Reset unsupported_script_warning_printed.
10900 (auto_load_objfile_script_1): Rewrite to use extension language API.
10901 (auto_load_objfile_script): Make public. Remove support-compiled-in
10902 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10903 (source_section_scripts): Rewrite to use extension language API.
10904 (load_auto_scripts_for_objfile): Rewrite to use
10905 auto_load_scripts_for_objfile.
10906 (collect_matching_scripts_data): Change type of language member to
10907 struct extension_language_defn *.
10908 (auto_load_info_scripts): Change type of language arg to
10909 struct extension_language_defn *.
10910 (unsupported_script_warning_print): New function.
10911 (script_not_found_warning_print): Make static.
10912 (_initialize_auto_load): Rewrite construction of scripts-directory
10913 help.
10914 * auto-load.h (struct objfile): Add forward decl.
10915 (struct script_language): Delete.
10916 (struct auto_load_pspace_info): Add forward decl.
10917 (struct extension_language_defn): Add forward decl.
10918 (maybe_add_script): Delete.
10919 (auto_load_objfile_script): Declare.
10920 (script_not_found_warning_print): Delete.
10921 (auto_load_info_scripts): Update prototype.
10922 (auto_load_gdb_scripts_enabled): Declare.
10923 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10924 auto_load_python_scripts_enabled and made public.
10925 (script_language_python): Delete, moved to python.c.
10926 (gdbpy_script_language_defn): Delete.
10927 (info_auto_load_python_scripts): Update to use
10928 extension_language_python.
10929
10930 * breakpoint.c (condition_command): Replace call to
10931 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10932 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10933 with call to breakpoint_ext_lang_cond_says_stop.
10934 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10935 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10936 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10937 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10938 New arg slang.
10939 (local_setattro): Print name of extension language with existing
10940 stop condition.
10941
10942 * valprint.c (val_print, value_print): Update to call
10943 apply_ext_lang_val_pretty_printer.
10944 * cp-valprint.c (cp_print_value): Update call to
10945 apply_ext_lang_val_pretty_printer.
10946 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10947 (gdbpy_apply_val_pretty_printer): Renamed from
10948 apply_val_pretty_printer. New arg extlang.
10949 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10950
10951 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10952 extension language API.
10953 * cli/cli-script.c (execute_control_command): Update to call
10954 eval_ext_lang_from_control_command.
10955
10956 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10957 enum ext_lang_bt_status values. Update call to
10958 apply_ext_lang_frame_filter.
10959 (mi_cmd_stack_list_locals): Ditto.
10960 (mi_cmd_stack_list_args): Ditto.
10961 (mi_cmd_stack_list_variables): Ditto.
10962 * mi/mi-main.c: Delete #include "python/python-internal.h".
10963 Add #include "extension.h".
10964 (mi_cmd_list_features): Replace reference to python internal variable
10965 gdb_python_initialized with call to ext_lang_initialized_p.
10966
10967 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10968 Update to use enum ext_lang_frame_args. Update to call
10969 apply_ext_lang_frame_filter.
10970 * python/py-framefilter.c (extract_sym): Update to use enum
10971 ext_lang_bt_status.
10972 (extract_value, py_print_type, py_print_value): Ditto.
10973 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10974 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10975 (py_print_frame): Ditto.
10976 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10977 New arg extlang. Update to use enum ext_lang_bt_status.
10978
10979 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10980 finish_python_initialization. Replace with call to
10981 finish_ext_lang_initialization.
10982
10983 * typeprint.c (do_free_global_table): Update to call
10984 free_ext_lang_type_printers.
10985 (create_global_typedef_table): Update to call
10986 start_ext_lang_type_printers.
10987 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10988 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10989 (type_print_options): Change type of global_printers from "void *"
10990 to "struct ext_lang_type_printers *".
10991
10992 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10993 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10994 (gdbpy_preserve_values): Renamed from preserve_python_values.
10995 New arg extlang.
10996 (!HAVE_PYTHON, preserve_python_values): Delete.
10997
10998 * utils.c (quit_flag): Delete, moved to extension.c.
10999 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11000 extension.c.
11001
11002 * eval.c: Delete #include "python/python.h".
11003 * main.c: Delete #include "python/python.h".
11004
11005 * defs.h: Update comment.
11006
6af79985
JB
110072014-02-06 Joel Brobecker <brobecker@adacore.com>
11008
11009 GDB 7.7 released.
11010
12c5175d
MK
110112014-02-05 Mark Kettenis <kettenis@gnu.org>
11012
11013 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11014 defined.
11015
8dc5b319
YQ
110162014-02-05 Yao Qi <yao@codesourcery.com>
11017
11018 * remote.c (remote_pass_signals): Remove local 'buf' and use
11019 rs->buf.
11020 (remote_program_signals): Likewise.
11021
de7b2893
YQ
110222014-02-05 Yao Qi <yao@codesourcery.com>
11023
11024 * ctf.c: Include "inferior.h" and "gdbthread.h".
11025 (CTF_PID): A new macro.
11026 (ctf_open): Call inferior_appeared and add_thread_silent.
11027 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11028 (ctf_thread_alive): New function.
11029 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11030
66d032ac
YQ
110312014-02-05 Yao Qi <yao@codesourcery.com>
11032
11033 Revert this patch:
11034
11035 2013-05-24 Yao Qi <yao@codesourcery.com>
11036
11037 * tracepoint.c (TFILE_PID): Remove.
11038 (tfile_open): Don't add thread and inferior.
11039 (tfile_close): Don't set 'inferior_ptid'. Don't call
11040 exit_inferior_silent.
11041 (tfile_thread_alive): Remove.
11042 (init_tfile_ops): Don't set field 'to_thread_alive' of
11043 tfile_ops.
11044
f4ccffad
CE
110452014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11046
11047 * remote.c (remote_start_remote): Call remote_check_symbols even
11048 if only symbol-file (not file) has been given.
11049
591a12a1
UW
110502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11051
11052 * gdbarch.sh (skip_entrypoint): New callback.
11053 * gdbarch.c, gdbarch.h: Regenerate.
11054 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11055 * infrun.c (fill_in_stop_func): Likewise.
11056 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11057 (ppc_elfv2_elf_make_msymbol_special): New function.
11058 (ppc_elfv2_skip_entrypoint): Likewise.
11059 (ppc_linux_init_abi): Install them for ELFv2.
11060
cc0e89c5
UW
110612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11062
11063 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11064 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11065 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11066 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11067 structures returned in GPRs.
11068
52f548e4
UW
110692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11070
11071 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11072 offset to the stack parameter list for the ELFv2 ABI.
11073
d4094b6a
UW
110742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11075
11076 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11077 set_gdbarch_convert_from_func_ptr_addr and
11078 set_gdbarch_elf_make_msymbol_special for ELFv1.
11079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11080 function descriptors on ELFv1.
11081 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11082 set up r12 at function entry.
11083
cd453cd0
UW
110842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11085
11086 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11087 (struct gdbarch_tdep): New member elf_abi.
11088
11089 * rs6000-tdep.c: Include "elf/ppc64.h".
11090 (rs6000_gdbarch_init): Detect ELF ABI version.
11091
0ff3e01f
UW
110922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11093
11094 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11095 within a register pair holding a DFP 128-bit value on little-endian.
11096 (ppc64_sysv_abi_return_value_base): Likewise.
11097 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11098 (dfp_pseudo_register_write): Likewise.
11099
5b757e5d
UW
111002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11101
11102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11103 offset on little-endian when passing _Decimal32.
11104 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11105
084ee545
UW
111062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11107
11108 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11109 of the overlapped FP register within the VSX register on little-
11110 endian platforms.
11111 (efpr_pseudo_register_write): Likewise.
11112
d63167af
UW
111132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11114
11115 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11116 offset on little-endian when passing small structures.
11117
e765b44c
UW
111182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11119
11120 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11121 (struct ppc64_sysv_argpos): New data structure.
11122 (ppc64_sysv_abi_push_float): Remove.
11123 (ppc64_sysv_abi_push_val): New function.
11124 (ppc64_sysv_abi_push_integer): Likewise.
11125 (ppc64_sysv_abi_push_freg): Likewise.
11126 (ppc64_sysv_abi_push_vreg): Likewise.
11127 (ppc64_sysv_abi_push_param): Likewise.
11128 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11129 (ppc64_sysv_abi_return_value_base): New function.
11130 (ppc64_sysv_abi_return_value): Refactor to use it.
11131
36c24d95
UW
111322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11133
11134 * NEWS: Document new target powerpc64le-*-linux*.
11135
26fd9228
MK
111362014-02-04 Mark Kettenis <kettenis@gnu.org>
11137
11138 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11139 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11140 core dumps.
11141 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11142 register set used in ELF core dumps. Add floating-point register set.
11143
c5bb7362
KB
111442014-02-03 Kevin Buettner <kevinb@redhat.com>
11145
74228e77 11146 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11147 dwarf2_to_gdb[] table using symbolic constants. Adjust
11148 penultimate entry from number representing the PC register
11149 to symbolic constant representing the MDR register. Add
11150 constant for the PC register to the end of the table.
11151
af09351e
MK
111522014-02-03 Mark Kettenis <kettenis@gnu.org>
11153
11154 * bsd-kvm.c: Include <sys/param.h>
11155
8507e05d
MK
111562014-02-03 Mark Kettenis <kettenis@gnu.org>
11157
11158 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11159
ae56bfb8
JB
111602014-01-31 Joel Brobecker <brobecker@adacore.com>
11161
11162 * ada-lang.h (clear_ada_sym_cache): Delete.
11163
718ee4dc
UW
111642014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11165
11166 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11167
401e27fd
JM
111682014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11169
11170 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11171 the sigreturn register save area only if the syscall is
11172 sigreturn.
11173
a7c88acd
JB
111742014-01-29 Joel Brobecker <brobecker@adacore.com>
11175
11176 * valops.c (value_slice): Minor reformatting.
11177
fa0079ea
UW
111782014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11179
11180 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11181
c6044dd1
JB
111822014-01-28 Joel Brobecker <brobecker@adacore.com>
11183
11184 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11185 New static globals.
11186 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11187 (ada_ignore_descriptive_types_p): New static global.
11188 (find_parallel_type_by_descriptive_type): Return immediately
11189 if ada_ignore_descriptive_types_p is set.
11190 (_initialize_ada_language): Register new commands "maintenance
11191 set ada", "maintenance show ada", "maintenance set ada
11192 ignore-descriptive-types" and "maintenance show ada
11193 ignore-descriptive-types".
11194 * NEWS: Add entry for new "maint ada set/show
11195 ignore-descriptive-types" commands.
11196
568e808b
MM
111972014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11198
11199 * record-btrace.c (record_btrace_close): Call btrace_teardown
11200 for all threads.
11201
467d141b
JB
112022014-01-27 Joel Brobecker <brobecker@adacore.com>
11203
11204 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11205 "ui-out.h".
11206
fb151210
JB
112072014-01-27 Joel Brobecker <brobecker@adacore.com>
11208
11209 * ada-typeprint (type_is_full_subrange_of_target_type):
11210 New function.
11211 (print_range): Add parameter bounds_prefered_p. If not set,
11212 try printing range types using the name of their base type.
11213 (print_range_type): Add parameter bounds_prefered_p.
11214 Use it in call to print_range.
11215 (print_array_type, ada_print_type): Update calls to print_range
11216 and print_range_type.
11217
aba02109
JB
112182014-01-27 Joel Brobecker <brobecker@adacore.com>
11219
11220 * ada-typeprint.c (print_array_type, print_choices, print_range)
11221 (print_range_bound, print_dynamic_range_bound, print_range_type):
11222 Remove declaration.
11223
e62e21fd
JB
112242014-01-27 Joel Brobecker <brobecker@adacore.com>
11225
11226 * ada-typeprint.c (print_range): Add missing empty line
11227 after local declaration.
11228
859cf5d1
JB
112292014-01-27 Joel Brobecker <brobecker@adacore.com>
11230
11231 * ada-valprint.c (print_optional_low_bound): Get index_type's
11232 target type for as long as it is a TYPE_CODE_RANGE.
11233
25790f6f
JB
112342014-01-27 Joel Brobecker <brobecker@adacore.com>
11235
11236 * procfs.c (procfs_make_note_section): Remove assertion and
11237 associated comment.
11238
6b6aa828
YQ
112392014-01-24 Yao Qi <yao@codesourcery.com>
11240
11241 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11242 * corelow.c (get_core_siginfo): Likewise.
11243
5d6df423
YQ
112442014-01-24 Yao Qi <yao@codesourcery.com>
11245
11246 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11247 ULONGEST. Don't check 'len' is negative.
11248 (remote_write_bytes): Change type of 'len' to ULONGEST.
11249
83b645b8
TT
112502014-01-23 Tom Tromey <tromey@redhat.com>
11251
11252 PR python/16485:
11253 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11254 Handle exception from frame.block.
11255 (FrameVars.fetch_frame_locals): Likewise.
11256
0740f8d8
TT
112572014-01-23 Tom Tromey <tromey@redhat.com>
11258
11259 PR python/16487:
11260 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11261 on a NULL pointer. Move "goto error" to correct place.
11262
21909fa1
TT
112632014-01-23 Tom Tromey <tromey@redhat.com>
11264
11265 PR python/16491:
11266 * python/py-framefilter.c (apply_frame_filter): Call
11267 ensure_python_env after computing gdbarch.
11268
17fde6d0
YQ
112692014-01-23 Yao Qi <yao@codesourcery.com>
11270
11271 * target.c (raw_memory_xfer_partial): Change argument type
11272 from void * to gdb_byte *.
11273 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11274
87ce2a04
DE
112752014-01-22 Doug Evans <dje@google.com>
11276
11277 New gdbserver option --debug-format=timestamp.
11278 * NEWS: Mention it.
11279
237b092b
AA
112802014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11281
11282 * syscalls/s390x-linux.xml: New file.
11283 * syscalls/s390-linux.xml: New file.
11284 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11285 (XML_SYSCALL_FILENAME_S390X): Likewise.
11286 (op_svc): New enum value for SVC opcode.
11287 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11288 (s390_linux_get_syscall_number): New function.
11289 (s390_gdbarch_init): Register '*get_syscall_number' and the
11290 syscall xml file name.
11291 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11292 "s390-linux.xml" and "s390x-linux.xml".
11293 * NEWS: Announce new feature.
11294
54bff650
BS
112952014-01-22 Baruch Siach <baruch@tkos.co.il>
11296
11297 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11298
14e361d7
PA
112992014-01-22 Pedro Alves <palves@redhat.com>
11300
11301 * xtensa-config.c: Include defs.h.
11302
46bbb3ed
JB
113032014-01-22 Joel Brobecker <brobecker@adacore.com>
11304
11305 * common/common-utils.h: Add "ARI:" comment beside __func__
11306 reference.
11307
3a80edfc
JB
113082014-01-22 Joel Brobecker <brobecker@adacore.com>
11309
11310 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11311 documentation a bit.
11312
4869db5e
RM
113132014-01-21 Roland McGrath <mcgrathr@google.com>
11314
11315 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11316 * configure: Regenerate.
11317 * aclocal.m4: Regenerate.
11318 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11319 New substituted variables.
11320 (install-strip): New target.
11321 (INSTALL_SCRIPT): New substituted variable.
11322 (FLAGS_TO_PASS): Add it.
11323 (install-only): Use $(INSTALL_SCRIPT) rather than
11324 $(INSTALL_PROGRAM) for gcore.
11325
9ea4267d
TT
113262014-01-20 Tom Tromey <tromey@redhat.com>
11327
11328 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11329 together.
11330
1f2bdf09
TT
113312014-01-20 Tom Tromey <tromey@redhat.com>
11332
11333 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11334 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11335 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11336 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11337 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11338 (struct cmd_list_element) <flags>: Remove.
11339 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11340 doc_allocated>: New fields.
11341 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11342 bitfields.
11343 * maint.c (maintenance_do_deprecate): Update.
11344 * top.c (execute_command): Update.
11345
e671835b
BS
113462014-01-20 Baruch Siach <baruch@tkos.co.il>
11347
11348 * xtensa-linux-nat.c: Include asm/ptrace.h.
11349
50367cd2
IB
113502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11351
11352 * Makefile.in (SFILES): Add d-support.c.
11353 (COMMON_OBS): Add d-support.o.
11354 * d-lang.h (d_parse_symbol): Add comment, now defined in
11355 d-support.c.
11356 * d-lang.c (parse_call_convention)
11357 (parse_attributes, parse_function_types)
11358 (parse_function_args, parse_type, parse_identifier)
11359 (call_convention_p, d_parse_symbol): Move functions to ...
11360 * d-support.c: ... New file.
11361
ec9f644a
IB
113622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11363
11364 * d-lang.h (d_parse_symbol): Add declaration.
11365 * d-lang.c (extract_identifiers)
11366 (extract_type_info): Remove functions.
11367 (parse_call_convention, parse_attributes)
11368 (parse_function_types, parse_function_args)
11369 (parse_type, parse_identifier, call_convention_p)
11370 (d_parse_symbol): New functions.
11371 (d_demangle): Use d_parse_symbol to demangle D symbols.
11372
94b1b47e
IB
113732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11374
11375 * d-lang.h (struct builtin_d_type): New data type.
11376 (builtin_d_type): Add declaration.
11377 * d-lang.c (d_language_arch_info, build_d_types)
11378 (builtin_d_type): New functions.
11379 (enum d_primitive_types): New data type.
11380 (d_language_defn): Change c_language_arch_info to
11381 d_language_arch_info.
11382 (d_type_data): New static variable.
11383 (_initialize_d_language): Initialize d_type_data.
11384
63778547
IB
113852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11386
11387 * d-lang.h (d_main_name): Add declaration.
11388 * d-lang.c (d_main_name): New function.
11389 * symtab.c (find_main_name): Add call to d_main_name.
11390
3271ba66
IB
113912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11392
11393 * d-lang.c (d_language_defn): Change macro_expansion_c to
11394 macro_expansion_no.
11395
d36b3012
IB
113962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11397
11398 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11399
c90a6fb7
SDJ
114002014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11401
11402 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11403 gdb_exception" declaration.
11404 * remote.c (getpkt_or_notif_sane): Likewise.
11405
749234e5
DE
114062014-01-17 Doug Evans <dje@google.com>
11407
11408 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11409 function, contents of dirnames_to_char_ptr_vec_append moved here.
11410 (delim_string_to_char_ptr_vec): New function.
11411 (dirnames_to_char_ptr_vec_append): Rewrite.
11412 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11413
df049a58
DE
114142014-01-17 Doug Evans <dje@google.com>
11415
11416 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11417 and moved here ...
11418 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11419 #include "common-utils.h".
11420 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11421 * common/vec.h (VEC_ASSERT_PASS): Update.
11422 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11423 (MACH_CHECK_ERROR): Update.
11424
69f97648
SM
114252014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11426
11427 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11428 comments.
11429 * gdbarch.h: Regenerate.
11430
98b1cfdc
TT
114312014-01-16 Tom Tromey <tromey@redhat.com>
11432
11433 * value.c (struct value) <regnum>: Move earlier.
11434
77a19445
TT
114352014-01-16 Tom Tromey <tromey@redhat.com>
11436
11437 * remote.c (extended_remote_create_inferior): Rename from
11438 extended_remote_create_inferior_1. Add "ops" argument. Remove
11439 old implementation.
11440
62261490
PA
114412014-01-16 Pedro Alves <palves@redhat.com>
11442
11443 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11444 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11445 the backchain.
11446
4d65956b
DE
114472014-01-16 Doug Evans <dje@google.com>
11448
11449 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11450
52834460
MM
114512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * btrace.h (btrace_thread_flag): New.
11454 (struct btrace_thread_info) <flags>: New.
11455 * record-btrace.c (record_btrace_resume_thread)
11456 (record_btrace_find_thread_to_move, btrace_step_no_history)
11457 (btrace_step_stopped, record_btrace_start_replaying)
11458 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11459 (record_btrace_find_resume_thread): New.
11460 (record_btrace_resume, record_btrace_wait): Extend.
11461 (record_btrace_can_execute_reverse): New.
11462 (record_btrace_open): Fail in non-stop mode.
11463 (record_btrace_set_replay): Split into this, ...
11464 (record_btrace_stop_replaying): ... this, ...
11465 (record_btrace_clear_histories): ... and this.
11466 (init_record_btrace_ops): Init to_can_execute_reverse.
11467 * NEWS: Announce it.
11468
118e6252
MM
114692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11470
11471 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11472 (forward_target_decr_pc_after_break)
11473 (target_decr_pc_after_break): New.
11474 * target.c (forward_target_decr_pc_after_break)
11475 (target_decr_pc_after_break): New.
11476 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11477 instead of gdbarch_decr_pc_after_break.
11478 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11479 instead of gdbarch_decr_pc_after_break.
11480 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11481 instead of gdbarch_decr_pc_after_break.
11482 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11483 instead of gdbarch_decr_pc_after_break.
11484 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11485 instead of gdbarch_decr_pc_after_break.
11486 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11487 instead of gdbarch_decr_pc_after_break.
11488
6e07b1d2
MM
114892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11490
11491 * btrace.c: Include regcache.h.
11492 (btrace_add_pc): New.
11493 (btrace_enable): Call btrace_add_pc.
11494 (btrace_is_empty): New.
11495 * btrace.h (btrace_is_empty): New.
11496 * record-btrace.c (require_btrace, record_btrace_info): Call
11497 btrace_is_empty.
11498
969c39fb
MM
114992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11500
11501 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11502 Support delta reads.
11503 (linux_disable_btrace): Change return type.
11504 * common/linux-btrace.h (linux_read_btrace): Change parameters
11505 and return type to allow error reporting. Update users.
11506 (linux_disable_btrace): Change return type. Update users.
11507 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11508 New.
11509 (btrace_error): New.
11510 (btrace_block) <begin>: Comment on BEGIN == 0.
11511 * btrace.c (btrace_compute_ftrace): Start from the end of
11512 the current trace.
11513 (btrace_stitch_trace, btrace_clear_history): New.
11514 (btrace_fetch): Read delta trace, return if replaying.
11515 (btrace_clear): Move clear history code to btrace_clear_history.
11516 (parse_xml_btrace): Throw an error if parsing failed.
11517 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11518 and return type to allow error reporting.
11519 (target_read_btrace): Change parameters and return type to allow
11520 error reporting.
11521 * target.c (target_read_btrace): Update.
11522 * remote.c (remote_read_btrace): Support delta reads. Pass
11523 errors on.
11524 * NEWS: Announce it.
11525
0b722aec
MM
115262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11527
11528 * record.h (record_btrace_frame_unwind)
11529 (record_btrace_tailcall_frame_unwind): New declarations.
11530 * dwarf2-frame: Include record.h
11531 (dwarf2_frame_cfa): Throw an error for btrace frames.
11532 * record-btrace.c: Include hashtab.h.
11533 (btrace_get_bfun_name): New.
11534 (btrace_call_history): Call btrace_get_bfun_name.
11535 (struct btrace_frame_cache): New.
11536 (bfcache): New.
11537 (bfcache_hash, bfcache_eq, bfcache_new): New.
11538 (btrace_get_frame_function): New.
11539 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11540 (record_btrace_frame_this_id): Compute own id.
11541 (record_btrace_frame_prev_register): Provide PC, throw_error
11542 for all other registers.
11543 (record_btrace_frame_sniffer): Detect btrace frames.
11544 (record_btrace_tailcall_frame_sniffer): New.
11545 (record_btrace_frame_dealloc_cache): New.
11546 (record_btrace_frame_unwind): Add new functions.
11547 (record_btrace_tailcall_frame_unwind): New.
11548 (_initialize_record_btrace): Allocate cache.
11549 * btrace.c (btrace_clear): Call reinit_frame_cache.
11550 * NEWS: Announce it.
11551
066ce621
MM
115522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11553
11554 * record-btrace.c (record_btrace_set_replay)
11555 (record_btrace_goto_begin, record_btrace_goto_end)
11556 (record_btrace_goto): New.
11557 (init_record_btrace_ops): Initialize them.
11558 * NEWS: Announce it.
11559
e2887aa3
MM
115602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11561
11562 * record-btrace.c (record_btrace_find_new_threads)
11563 (record_btrace_thread_alive): New.
11564 (init_record_btrace_ops): Initialize to_find_new_threads and
11565 to_thread_alive.
11566
b2f4cfde
MM
115672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11568
11569 * record-btrace.c (record_btrace_resume): New.
11570 (record_btrace_wait): New.
11571 (init_record_btrace_ops): Initialize to_wait and to_resume.
11572
633785ff
MM
115732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11574
11575 * record-btrace.c (record_btrace_xfer_partial)
11576 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11577 (record_btrace_allow_memory_access): New.
11578 (init_record_btrace_ops): Initialize new methods.
11579 * target.c (raw_memory_xfer_partial): Bail out if target reports
11580 that this memory is not available.
11581
3db08215
MM
115822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11583
11584 * target.h (target_ops) <to_insert_breakpoint>
11585 <to_remove_breakpoint>: Add target_ops parameter.
11586 (forward_target_insert_breakpoint): New.
11587 (forward_target_remove_breakpoint): New.
11588 (memory_remove_breakpoint, memory_insert_breakpoint):
11589 Add target_ops parameter.
11590 * target.c (target_insert_breakpoint): Split into this and ...
11591 (forward_target_insert_breakpoint): ... this.
11592 (target_remove_breakpoint): Split into this and ...
11593 (forward_target_remove_breakpoint): ... this.
11594 (debug_to_insert_breakpoint): Add target_ops parameter.
11595 Call forward_target_insert_breakpoint.
11596 (debug_to_remove_breakpoint): Add target_ops parameter.
11597 Call forward_target_remove_breakpoint.
11598 (update_current_target): Do not inherit or default to_insert_breakpoint
11599 and to_remove_breakpoint.
11600 * corelow.c (ignore): Add target_ops parameter.
11601 * exec.c (ignore): Add target_ops parameter.
11602 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11603 Add target_ops parameter.
11604 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11605 Add target_ops parameter.
11606 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11607 Add target_ops parameter.
11608 * record-full.c (record_full_beneath_to_insert_breakpoint)
11609 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11610 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11611 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11612 (record_full_core_remove_breakpoint): Add target_ops parameter.
11613 Update users.
11614 (record_full_beneath_to_insert_breakpoint_ops)
11615 (record_full_beneath_to_remove_breakpoint_ops)
11616 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11617 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11618 tmp_to_remove_breakpoint_ops,
11619 record_full_beneath_to_insert_breakpoint_ops, and
11620 record_full_beneath_to_remove_breakpoint_ops.
11621 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11622 (m32r_remove_breakpoint): Add target_ops parameter.
11623 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11624 Add target_ops parameter.
11625 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11626 Add target_ops parameter.
11627
cecac1ab
MM
116282014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11629 Markus Metzger <markus.t.metzger@intel.com>
11630
11631 * record-btrace.c: Include frame-unwind.h.
11632 (record_btrace_frame_unwind_stop_reason)
11633 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11634 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11635 New.
11636 (init_record_btrace_ops): Install it.
11637
824344ca
MM
116382014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11641 get_prev_frame_1.
11642
32261e52
MM
116432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11644
11645 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11646 earlier.
11647
ea001bdc
MM
116482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11649
11650 * frame-unwind.c: Include target.h.
11651 (frame_unwind_try_unwinder): New function with code from ...
11652 (frame_unwind_find_by_frame): ... here. New variable
11653 unwinder_from_target, call also target_get_unwinder)
11654 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11655 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11656 * target.h (struct target_ops): New fields to_get_unwinder and
11657 to_get_tailcall_unwinder.
11658 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11659
1f3ef581
MM
116602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11661
11662 * record-btrace.c (record_btrace_fetch_registers)
11663 (record_btrace_store_registers)
11664 (record_btrace_to_prepare_to_store): New.
11665 (init_record_btrace_ops): Add the above.
11666
f32dbf8c
MM
116672014-01-16 Tom Tromey <tromey@redhat.com>
11668
11669 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11670 * target.h (struct target_ops) <to_prepare_to_store>: Add
11671 argument.
11672 (target_prepare_to_store): Add argument.
11673 * target.c (debug_to_prepare_to_store): Add argument.
11674 (update_current_target): Update.
11675 * remote.c (remote_prepare_to_store): Add 'self' argument.
11676 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11677 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11678 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11679 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11680 argument.
11681 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11682 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11683 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11684 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11685 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11686
07bbe694
MM
116872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11688
11689 * btrace.h (replay) <replay>: New.
11690 (btrace_is_replaying): New.
11691 * btrace.c (btrace_clear): Free replay iterator.
11692 (btrace_is_replaying): New.
11693 * record-btrace.c (record_btrace_is_replaying): New.
11694 (record_btrace_info): Print insn number if replaying.
11695 (record_btrace_insn_history): Start at replay position.
11696 (record_btrace_call_history): Start at replay position.
11697 (init_record_btrace_ops): Init to_record_is_replaying.
11698
0688d04e
MM
116992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11700
11701 * record-btrace.c (record_btrace_insn_history_range): Include
11702 end.
11703 (record_btrace_insn_history_from): Adjust range.
11704 (record_btrace_call_history_range): Include
11705 end.
11706 (record_btrace_call_history_from): Adjust range.
11707 * NEWS: Announce changes.
11708
8710b709
MM
117092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11710
11711 * record.h (enum record_print_flag)
11712 <record_print_indent_calls>: New.
11713 * record.c (get_call_history_modifiers): Recognize /c modifier.
11714 (_initialize_record): Document /c modifier.
11715 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11716 Reorder fields. Optionally indent the function name. Update
11717 all users.
11718 * NEWS: Announce changes.
11719
d0fa7535
MM
117202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11721
11722 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11723
5de9129b
MM
117242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11725
11726 * btrace.c (ftrace_new_function): Start counting at one.
11727 * record-btrace.c (record_btrace_info): Adjust number of calls
11728 and insns.
11729 * NEWS: Announce it.
11730
7acbe133
MM
117312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11732
11733 * record-btrace.c (btrace_call_history_insn_range): Print
11734 insn range as [begin, end].
11735
23a7fe75
MM
117362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11737
11738 * btrace.h (struct btrace_func_link): New.
11739 (enum btrace_function_flag): New.
11740 (struct btrace_inst): Rename to ...
11741 (struct btrace_insn): ...this. Update all users.
11742 (struct btrace_func) <ibegin, iend>: Remove.
11743 (struct btrace_func_link): New.
11744 (struct btrace_func): Rename to ...
11745 (struct btrace_function): ...this. Update all users.
11746 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11747 (number, level, flags>: New.
11748 (struct btrace_insn_iterator): Rename to ...
11749 (struct btrace_insn_history): ...this.
11750 Update all users.
11751 (struct btrace_insn_iterator, btrace_call_iterator): New.
11752 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11753 (struct btrace_target_info) <begin, end, level>
11754 <insn_history, call_history>: New.
11755 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11756 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11757 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11758 (btrace_call_number, btrace_call_begin, btrace_call_end)
11759 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11760 (btrace_find_function_by_number, btrace_set_insn_history)
11761 (btrace_set_call_history): New.
11762 * btrace.c (btrace_init_insn_iterator)
11763 (btrace_init_func_iterator, compute_itrace): Remove.
11764 (ftrace_print_function_name, ftrace_print_filename)
11765 (ftrace_skip_file): Change
11766 parameter to const.
11767 (ftrace_init_func): Remove.
11768 (ftrace_debug): Use new btrace_function fields.
11769 (ftrace_function_switched): Also consider gaining and
11770 losing symbol information).
11771 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11772 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11773 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11774 New.
11775 (ftrace_new_function): Move. Remove debug print.
11776 (ftrace_update_lines, ftrace_update_insns): New.
11777 (ftrace_update_function): Check for call, ret, and jump.
11778 (compute_ftrace): Renamed to ...
11779 (btrace_compute_ftrace): ...this. Rewritten to compute call
11780 stack.
11781 (btrace_fetch, btrace_clear): Updated.
11782 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11783 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11784 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11785 (btrace_call_number, btrace_call_begin, btrace_call_end)
11786 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11787 (btrace_find_function_by_number, btrace_set_insn_history)
11788 (btrace_set_call_history): New.
11789 * record-btrace.c (require_btrace): Use new btrace thread
11790 info fields.
11791 (record_btrace_info, btrace_insn_history)
11792 (record_btrace_insn_history, record_btrace_insn_history_range):
11793 Use new btrace thread info fields and new iterator.
11794 (btrace_func_history_src_line): Rename to ...
11795 (btrace_call_history_src_line): ...this. Use new btrace
11796 thread info fields.
11797 (btrace_func_history): Rename to ...
11798 (btrace_call_history): ...this. Use new btrace thread info
11799 fields and new iterator.
11800 (record_btrace_call_history, record_btrace_call_history_range):
11801 Use new btrace thread info fields and new iterator.
11802
8372a7cb
MM
118032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11804
11805 * frame.h (frame_id_build_unavailable_stack_special): New.
11806 * frame.c (frame_id_build_unavailable_stack_special): New.
11807
c2170eef
MM
118082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11809
11810 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11811 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11812 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11813 to gdbarch.
11814 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11815 (i386_insn_is_jump, i386_jmp_p): New.
11816 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11817 insn_is_jump to gdbarch.
11818 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11819 * gdbarch.h: Regenerated.
11820 * gdbarch.c: Regenerated.
11821 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11822 (default_insn_is_jump): New.
11823 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11824 (default_insn_is_jump): New.
11825
864089d2
MM
118262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11827
11828 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11829 Change to ...
11830 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11831 (btrace_read_type) <btrace_read_new>: Change to ...
11832 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11833
ed9edfb5
MM
118342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11835
11836 * common/linux-btrace.c (linux_read_btrace): Free trace from
11837 previous iteration.
11838
fbcbc3fd
DE
118392014-01-15 Doug Evans <dje@google.com>
11840
11841 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11842 uint32_t.
11843
3d548a53
TT
118442014-01-15 Tom Tromey <tromey@redhat.com>
11845
11846 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11847 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11848 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11849 (set_objfile_main_name): New function.
11850 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11851 language_of_main>: New fields.
11852 (set_objfile_main_name): Declare.
11853 * symtab.c (find_main_name): Loop over objfiles to find the main
11854 name and language.
11855 (set_main_name): Now static.
11856 (get_main_info): Add comment.
11857 * symtab.h (set_main_name): Don't declare.
11858
32ac0d11
TT
118592014-01-15 Tom Tromey <tromey@redhat.com>
11860
11861 * symtab.c (main_progspace_key): New global.
11862 (struct main_info): New.
11863 (name_of_main, language_of_main): Remove.
11864 (get_main_info, main_info_cleanup): New function.
11865 (set_main_name, main_name, main_language): Use get_main_info.
11866 (_initialize_symtab): Initialize main_progspace_key.
11867
9e6c82ad
TT
118682014-01-15 Tom Tromey <tromey@redhat.com>
11869
11870 * dbxread.c (process_one_symbol): Update.
11871 * dwarf2read.c (read_partial_die): Update.
11872 * symfile.c (set_initial_language): Call main_language.
11873 * symtab.c (language_of_main): Now static.
11874 (set_main_name): Add 'lang' parameter.
11875 (find_main_name): Update.
11876 (main_language): New function.
11877 (symtab_observer_executable_changed): Update.
11878 * symtab.h (set_main_name): Update.
11879 (language_of_main): Remove.
11880 (main_language): Declare.
11881
6ef55de7
TT
118822014-01-15 Tom Tromey <tromey@redhat.com>
11883
11884 * symfile.c (init_entry_point_info): Use new "initialized" field.
11885 Update.
11886 * objfiles.h (struct entry_point) <initialized>: New field.
11887 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11888 (struct objfile) <ei>: ...here. Remove.
11889 * objfiles.c (entry_point_address_query): Update.
11890
53eddfa6
TT
118912014-01-15 Tom Tromey <tromey@redhat.com>
11892
11893 * objfiles.c (entry_point_address_query): Relocate entry point
11894 address.
11895 (objfile_relocate1): Do not relocate entry point address.
11896 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11897 <the_bfd_section_index>: New field.
11898 * symfile.c (init_entry_point_info): Find the entry point's
11899 section.
11900
d56e56aa
TT
119012014-01-15 Tom Tromey <tromey@redhat.com>
11902
11903 * solib-frv.c (enable_break): Use entry_point_address_query.
11904
33a97bbe
OJ
119052014-01-15 Omair Javaid <omair.javaid@linaro.org>
11906
11907 * NEWS: Add note on improved process record-replay on
11908 arm*-linux* targets.
11909
c6ec2b30
OJ
119102014-01-15 Omair Javaid <omair.javaid@linaro.org>
11911
11912 * arm-tdep.c (enum arm_record_result): New enum.
11913 (arm_record_unsupported_insn): New function.
11914 (arm_record_coproc_data_proc): Removed.
11915 (thumb2_record_ld_st_multiple): New function.
11916 (thumb2_record_ld_st_dual_ex_tbb): New function.
11917 (thumb2_record_data_proc_sreg_mimm): New function.
11918 (thumb2_record_ps_dest_generic): New function.
11919 (thumb2_record_branch_misc_cntrl): New function.
11920 (thumb2_record_str_single_data): New function.
11921 (thumb2_record_ld_mem_hints): New function.
11922 (thumb2_record_ld_word): New function.
11923 (thumb2_record_lmul_lmla_div): New function.
11924 (thumb2_record_decode_insn_handler): New function.
11925 (decode_insn): Add thumb32 instruction handlers.
11926
97dfe206
OJ
119272014-01-15 Omair Javaid <omair.javaid@linaro.org>
11928
11929 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11930 (struct arm_linux_record_tdep): Declare.
11931 (arm_canonicalize_syscall): New function.
11932 (arm_all_but_pc_registers_record): New function.
11933 (arm_linux_syscall_record): New function.
11934 (arm_linux_init_abi): Add syscall recording constructs.
11935 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11936 decoding. (arm_record_coproc_data_proc): Update arm syscall
11937 decoding.
11938 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11939 <arm_syscall_record>: New field.
11940 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11941 gdb_target_obs.
11942
9904a494
OJ
119432014-01-15 Omair Javaid <omair.javaid@linaro.org>
11944
11945 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11946 register for push instruction recording.
11947
f969241e
OJ
119482014-01-15 Omair Javaid <omair.javaid@linaro.org>
11949
11950 * arm-tdep.c (thumb_record_misc): Update to correct logical
11951 error while recording ldm, ldmia and pop instructions.
11952
bfbbec00
OJ
119532014-01-15 Omair Javaid <omair.javaid@linaro.org>
11954
11955 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11956
e40adcc9
PA
119572014-01-15 Pedro Alves <palves@redhat.com>
11958
11959 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11960 (go32_resume, go32_fetch_registers, store_register)
11961 (go32_store_registers, go32_prepare_to_store)
11962 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11963 (go32_create_inferior, go32_can_run, go32_terminal_init)
11964 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11965 declarations.
11966
b0a16e66
TT
119672014-01-15 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (async_callback_ftype): New typedef.
11970 (struct target_ops) <to_async>: Use it.
11971
bf7105a4
JB
119722014-01-15 Joel Brobecker <brobecker@adacore.com>
11973
11974 * python/py-value.c (get_field_type): Remove unnecessary curly
11975 braces for single-statement if block.
11976
a8f35c2e
JB
119772014-01-15 Joel Brobecker <brobecker@adacore.com>
11978
11979 * python/py-type.c (convert_field): Add missing empty line
11980 after declarations.
11981
bb4142cf
DE
119822014-01-14 Doug Evans <dje@google.com>
11983
11984 * symfile.h (expand_symtabs_matching): Renamed from
11985 expand_partial_symbol_names. Update prototype.
11986 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11987 * symfile.c (expand_symtabs_matching): Renamed from
11988 expand_partial_symbol_names. New args file_matcher, kind.
11989 Rename arg fun to symbol_matcher.
11990 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11991 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11992 ada_expand_partial_symbol_name.
11993 (ada_make_symbol_completion_list): Update to call
11994 expand_symtabs_matching.
11995 (ada_add_global_exceptions): Call expand_symtabs_matching.
11996 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11997 call map_symbol_filenames.
11998 * symtab.c (sources_info): Update to call map_symbol_filenames.
11999 (search_symbols): Call expand_symtabs_matching.
12000 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12001 (default_make_symbol_completion_list_break_on): Update to call
12002 expand_symtabs_matching.
12003 (make_source_files_completion_list): Update to call
12004 map_symbol_filenames.
12005
206f2a57
DE
120062014-01-14 Doug Evans <dje@google.com>
12007
12008 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12009 (expand_symtabs_symbol_matcher_ftype): New typedef.
12010 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12011 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12012 * symfile.c (expand_partial_symbol_names): Update to use
12013 expand_symtabs_symbol_matcher_ftype.
12014 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12015 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12016 Arg name_matcher renamed to symbol_matcher.
12017 * psymtab.c (recursively_search_psymtabs): Update to use
12018 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12019 sym_matcher.
12020 (expand_symtabs_matching_via_partial): Update to use
12021 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12022 Arg name_matcher renamed to symbol_matcher.
12023
540c2971
DE
120242014-01-14 Doug Evans <dje@google.com>
12025
12026 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12027 (map_partial_symbol_filenames): Ditto.
12028 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12029 (map_partial_symbol_filenames): Ditto.
12030 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12031 (map_partial_symbol_filenames): Ditto.
12032 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12033 (map_partial_symbol_filenames): Ditto.
12034 * symtab.c: Delete #include "psymtab.h".
12035
8213266a
PA
120362014-01-14 Pedro Alves <palves@redhat.com>
12037 Tom Tromey <tromey@redhat.com>
12038
12039 * infrun.c (use_displaced_stepping): Use find_record_target
12040 instead of RECORD_IS_USED.
12041 (adjust_pc_after_break): Use record_full_is_used instead of
12042 RECORD_IS_USED.
12043 * record-btrace.c (record_btrace_open): Call record_preopen
12044 instead of checking RECORD_IS_USED.
12045 * record-full.c (record_full_shortname)
12046 (record_full_core_shortname): New globals.
12047 (record_full_is_used): New function.
12048 (find_full_open): Call record_preopen instead of checking
12049 RECORD_IS_USED.
12050 (init_record_full_ops): Set the target's shortname to
12051 record_full_shortname.
12052 (init_record_full_core_ops): Set the target's shortname to
12053 record_full_core_shortname.
12054 * record-full.h (record_full_is_used): Declare.
12055 * record.c (find_record_target): Make extern.
12056 (record_preopen): New function.
12057 * record.h (RECORD_IS_USED): Delete macro.
12058 (find_record_target, record_preopen): Declare functions.
12059
7ec1862d
YQ
120602014-01-14 Yao Qi <yao@codesourcery.com>
12061
12062 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12063 'len''s type to ULONGEST.
12064 (core_xfer_shared_libraries_aix): Likewise.
12065 * gdbarch.c, gdbarch.h: Regenerated.
12066 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12067 Change type of 'len' to ULONGEST.
12068 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12069 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12070
dea80a27
YQ
120712014-01-14 Yao Qi <yao@codesourcery.com>
12072
12073 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12074 type of 'len' to ULONGEST.
12075 (linux_xfer_osdata_processgroups): Likewise.
12076 (linux_xfer_osdata_threads): Likewise.
12077 (linux_xfer_osdata_fds): Likewise.
12078 (linux_xfer_osdata_isockets): Likewise.
12079 (linux_xfer_osdata_shm): Likewise.
12080 (linux_xfer_osdata_sem): Likewise.
12081 (linux_xfer_osdata_msg): Likewise.
12082 (linux_common_xfer_osdata): Likewise.
12083 (struct osdata_type) <getter>: Likewise.
12084 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12085 the declaration.
12086
b55e14c7
YQ
120872014-01-14 Yao Qi <yao@codesourcery.com>
12088
12089 * target.h (target_xfer_partial_ftype): Update.
12090 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12091 ULONGEST.
12092 * aix-thread.c (aix_thread_xfer_partial): Change type of
12093 argument 'len' to ULONGEST.
12094 * auxv.c (procfs_xfer_auxv): Likewise.
12095 (ld_so_xfer_auxv): Likewise.
12096 (memory_xfer_auxv): Likewise.
12097 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12098 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12099 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12100 * corelow.c (core_xfer_partial): Likewise.
12101 * ctf.c (ctf_xfer_partial): Likewise.
12102 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12103 '%u'.
12104 (darwin_read_dyld_info): Likewise.
12105 (darwin_xfer_partial): Likewise.
12106 * exec.c (section_table_xfer_memory_partial): Likewise.
12107 (exec_xfer_partial): Likewise.
12108 * exec.h (section_table_xfer_memory_partial): Update
12109 declaration.
12110 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12111 instead of plongest.
12112 (gnu_xfer_partial): Likewise.
12113 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12114 (ia64_hpux_xfer_solib_got): Likewise.
12115 (ia64_hpux_xfer_partial): Likewise.
12116 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12117 * inf-ptrace.c (inf_ptrace_xfer_partial):
12118 * inf-ttrace.c (inf_ttrace_xfer_partial):
12119 * linux-nat.c (linux_xfer_siginfo): Likewise.
12120 (linux_nat_xfer_partial): Likewise.
12121 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12122 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12123 * monitor.c (monitor_xfer_memory): Likewise.
12124 (monitor_xfer_partial): Likewise.
12125 * procfs.c (procfs_xfer_partial): Likewise.
12126 * record-full.c (record_full_xfer_partial): Likewise.
12127 (record_full_core_xfer_partial): Likewise.
12128 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12129 instead of plongest.
12130 (gdbsim_xfer_partial): Likewise.
12131 * remote.c (remote_xfer_partial): Likewise.
12132 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12133 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12134 declaration.
12135 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12136 (rs6000_xfer_shared_libraries): Likewise.
12137 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12138 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12139 (sparc_xfer_partial): Likewise.
12140 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12141 (spu_xfer_partial): Likewise.
12142 * spu-multiarch.c (spu_xfer_partial): Likewise.
12143 * target.c (target_read_live_memory): Likewise.
12144 (memory_xfer_live_readonly_partial): Likewise.
12145 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12146 (target_xfer_partial, default_xfer_partial): Likewise.
12147 (current_xfer_partial): Likewise.
12148 * tracepoint.c (tfile_xfer_partial): Likewise.
12149 * windows-nat.c (windows_xfer_memory): Likewise. Call
12150 pulongest instead of plongest.
12151 (windows_xfer_partial): Likewise.
12152 (windows_xfer_shared_libraries): Likewise.
12153
05804640
YQ
121542014-01-14 Yao Qi <yao@codesourcery.com>
12155
12156 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12157 target_xfer_partial_ftype.
12158
b5b08fb4
SC
121592014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12160
12161 PR python/15464
12162 PR python/16113
12163 * valops.c (value_struct_elt_bitpos): New function
12164 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12165 object to 'None' if the field name is an empty string ("").
12166 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12167 attribute to look for a field when 'name' is 'None'.
12168 (get_field_type): New function
12169
13aaf454
DE
121702014-01-13 Doug Evans <dje@google.com>
12171
12172 PR symtab/16426
12173 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12174 (try_open_dwop_file): Ditto.
12175 * gdb_bfd.c: #include "vec.h".
12176 (bfdp): New typedef.
12177 (struct gdb_bfd_data): New member included_bfds.
12178 (gdb_bfd_unref): Unref all included bfds.
12179 (gdb_bfd_record_inclusion): New function.
12180 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12181
c2cec97c
TT
121822014-01-13 Tom Tromey <tromey@redhat.com>
12183
12184 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12185
78e5999d
TT
121862014-01-13 Tom Tromey <tromey@redhat.com>
12187
12188 * defs.h (use_windows): Remove.
12189 * gdb.c (main): Update.
12190 * main.c (captured_main, gdb_main): Update.
12191 * main.h (struct captured_main_args) <use_windows>: Remove.
12192 * top.c (use_windows): Remove.
12193
f2052bbe
TT
121942014-01-13 Tom Tromey <tromey@redhat.com>
12195
12196 * defs.h (deprecated_flush_hook): Remove.
12197
fde4f8ed
JK
121982014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12199
12200 PR threads/16216
12201 * linux-thread-db.c (try_thread_db_load): Add parameter
12202 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12203 (try_thread_db_load_from_pdir_1): Move it there from here.
12204 (try_thread_db_load_from_sdir): Update caller.
12205 (try_thread_db_load_from_dir): Move it there from here.
12206
bdf61915
PP
122072014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12208
12209 * regformats/regdat.sh: Always rewrite the register file.
12210
f71e1a8d
PA
122112014-01-13 Pedro Alves <palves@redhat.com>
12212
12213 * Makefile.in (CHECK_HEADERS): New variable.
12214 (check-headers:): New rule.
12215
42c85435
TT
122162014-01-13 Tom Tromey <tromey@redhat.com>
12217
12218 * cli/cli-setshow.c (do_set_command): Update.
12219 * defs.h (deprecated_set_hook): Remove.
12220 * top.c (deprecated_set_hook): Remove.
12221
f8de5129
PA
122222014-01-13 Pedro Alves <palves@redhat.com>
12223
12224 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12225 the tracepoint if the PC is a pseudo-register.
12226
fc270c35
TT
122272014-01-13 Tom Tromey <tromey@redhat.com>
12228
12229 * defs.h (XCALLOC): Remove.
12230 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12231 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12232 * dwarf2loc.c (allocate_piece_closure): Likewise.
12233 * elfread.c (elf_symfile_segments): Likewise.
12234 (elf_symfile_segments): Likewise.
12235 * gdbtypes.c (copy_type_recursive): Likewise.
12236 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12237 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12238 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12239 XCALLOC.
12240 * mt-tdep.c (mt_gdbarch_init): Likewise.
12241 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12242 XCALLOC.
12243 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12244 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12245 * registry.c (registry_alloc_data): Likewise.
12246 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12247 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12248 * serial.c (serial_fdopen_ops): Likewise.
12249 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12250 XCALLOC.
12251 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12252 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12253 not XCALLOC.
12254
70ba0933
TT
122552014-01-13 Tom Tromey <tromey@redhat.com>
12256
12257 * defs.h (XMALLOC): Remove.
12258 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12259 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12260 * cli-out.c (struct ui_out *): Likewise.
12261 * cli/cli-dump.c (add_dump_command): Likewise.
12262 (add_dump_command): Likewise.
12263 * complaints.c (get_complaints): Likewise.
12264 (find_complaint): Likewise.
12265 * dwarf2-frame.c (execute_cfa_program): Likewise.
12266 * dwarf2read.c (abbrev_table_read_table): Likewise.
12267 * gdbarch.sh: Likewise.
12268 * gdbarch.c: Rebuild.
12269 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12270 * interps.c (interp_new): Likewise.
12271 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12272 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12273 * mi/mi-console.c (mi_console_file_new): Likewise.
12274 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12275 * mi/mi-out.c (mi_out_new): Likewise.
12276 * mi/mi-parse.c (mi_parse): Likewise.
12277 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12278 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12279 * observer.c (xalloc_observer_list_node): Likewise.
12280 * regcache.c (regcache_xmalloc_1): Likewise.
12281 * reggroups.c (reggroup_new): Likewise.
12282 (_initialize_reggroup): Likewise.
12283 * registry.c (register_data_with_cleanup): Likewise.
12284 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12285 * ser-base.c (serial_ttystate): Likewise.
12286 * ser-mingw.c (make_pipe_state): Likewise.
12287 * ser-pipe.c (pipe_open): Likewise.
12288 * serial.c (serial_open): Likewise.
12289 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12290 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12291 (tui_alloc_win_info): Likewise.
12292 (tui_add_content_elements): Likewise.
12293 * tui/tui-file.c (tui_file_new): Likewise.
12294 * tui/tui-out.c (tui_out_new): Likewise.
12295 * ui-file.c (mem_file_new): Likewise.
12296 * ui-out.c (push_level): Likewise.
12297 (make_cleanup_ui_out_end): Likewise.
12298 (append_header_to_list): Likewise.
12299 (ui_out_new): Likewise.
12300 * user-regs.c (user_reg_add_builtin): Likewise.
12301
41bf6aca
TT
123022014-01-13 Tom Tromey <tromey@redhat.com>
12303
12304 * defs.h (XZALLOC): Remove.
12305 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12306 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12307 (get_ada_tasks_inferior_data): Likewise.
12308 * auto-load.c (get_auto_load_pspace_data): Likewise.
12309 * auxv.c (get_auxv_inferior_data): Likewise.
12310 * bfd-target.c (target_bfd_reopen): Likewise.
12311 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12312 (deprecated_insert_raw_breakpoint): Likewise.
12313 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12314 * corelow.c (core_open): Likewise.
12315 * darwin-nat.c (darwin_check_new_threads): Likewise.
12316 (darwin_attach_pid): Likewise.
12317 * dummy-frame.c (dummy_frame_push): Likewise.
12318 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12319 * dwarf2loc.c (allocate_piece_closure): Likewise.
12320 * elfread.c (elf_symfile_segments): Likewise.
12321 * eval.c (ptrmath_type_p): Likewise.
12322 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12323 * gdbtypes.c (alloc_type_arch): Likewise.
12324 (alloc_type_instance): Likewise.
12325 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12326 * inf-child.c (inf_child_can_use_agent): Likewise.
12327 * inflow.c (get_inflow_inferior_data): Likewise.
12328 * infrun.c (save_infcall_suspend_state): Likewise.
12329 * jit.c (jit_reader_load): Likewise.
12330 (get_jit_objfile_data): Likewise.
12331 (get_jit_program_space_data): Likewise.
12332 (jit_object_open_impl): Likewise.
12333 (jit_symtab_open_impl): Likewise.
12334 (jit_block_open_impl): Likewise.
12335 (jit_frame_sniffer): Likewise.
12336 * linux-fork.c (add_fork): Likewise.
12337 * maint.c (make_command_stats_cleanup): Likewise.
12338 * objfiles.c (get_objfile_pspace_data): Likewise.
12339 * opencl-lang.c (struct lval_closure): Likewise.
12340 * osdata.c (osdata_start_osdata): Likewise.
12341 * progspace.c (new_address_space): Likewise.
12342 (add_program_space): Likewise.
12343 * remote-sim.c (get_sim_inferior_data): Likewise.
12344 * sh-tdep.c (sh_gdbarch_init): Likewise.
12345 * skip.c (Ignore): Likewise.
12346 (skip_delete_command): Likewise.
12347 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12348 (library_list_start_library): Likewise.
12349 (solib_aix_current_sos): Likewise.
12350 * solib-darwin.c (get_darwin_info): Likewise.
12351 (darwin_current_sos): Likewise.
12352 * solib-dsbt.c (get_dsbt_info): Likewise.
12353 * solib-ia64-hpux.c (new_so_list): Likewise.
12354 (ia64_hpux_get_solib_linkage_addr): Likewise.
12355 * solib-spu.c (append_ocl_sos): Likewise.
12356 (spu_current_sos): Likewise.
12357 * solib-svr4.c (get_svr4_info): Likewise.
12358 (svr4_keep_data_in_core): Likewise.
12359 (library_list_start_library): Likewise.
12360 (svr4_default_sos): Likewise.
12361 (svr4_read_so_list): Likewise.
12362 * solib-target.c (library_list_start_library): Likewise.
12363 (solib_target_current_sos): Likewise.
12364 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12365 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12366 * symfile.c (default_symfile_segments): Likewise.
12367 * target-descriptions.c (tdesc_data_init): Likewise.
12368 (tdesc_create_reg): Likewise.
12369 (struct tdesc_type *): Likewise.
12370 (tdesc_create_vector): Likewise.
12371 (tdesc_set_struct_size): Likewise.
12372 (struct tdesc_type *): Likewise.
12373 (tdesc_free_feature): Likewise.
12374 (tdesc_create_feature): Likewise.
12375 * windows-nat.c (windows_add_thread): Likewise.
12376 (windows_make_so): Likewise.
12377 * xml-support.c (gdb_xml_body_text): Likewise.
12378 (gdb_xml_create_parser_and_cleanup): Likewise.
12379 (xml_process_xincludes): Likewise.
12380 * xml-syscall.c (allocate_syscalls_info): Likewise.
12381 (syscall_create_syscall_desc): Likewise.
12382
5acfdbae
SDJ
123832014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12384
12385 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12386 function, with code from i386_stap_parse_special_token.
12387 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12388 (i386_stap_parse_special_token): Move code to the two functions
12389 above; simplify it.
12390
0000e5cc
PA
123912014-01-09 Pedro Alves <palves@redhat.com>
12392 Hui Zhu <hui@codesourcery.com>
12393
12394 PR gdb/16101
12395 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12396 bp_err_string. Don't mark the location shlib_disabled if the
12397 error thrown wasn't a generic or memory error. Catch errors
12398 thrown while inserting breakpoints in overlayed code. Output
12399 error message of software breakpoints.
12400 * remote.c (remote_insert_breakpoint): If this breakpoint has
12401 target-side commands but this stub doesn't support Z0 packets,
12402 throw NOT_SUPPORTED_ERROR error.
12403 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12404 * target.h (target_insert_breakpoint): Extend comment.
12405 (target_insert_hw_breakpoint): Add comment.
12406
b7ea362b
PA
124072014-01-08 Pedro Alves <palves@redhat.com>
12408
12409 * remote.c (remote_add_thread): Add threads silently if starting
12410 up.
12411 (remote_notice_new_inferior): If in all-stop, and starting up,
12412 don't call notice_new_inferior.
12413 (get_current_thread): New function, factored out from ...
12414 (add_current_inferior_and_thread): ... this. Adjust.
12415 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12416 found any thread, then select the remote's current thread as GDB's
12417 current thread too.
12418
b7bba001
JB
124192014-01-08 Joel Brobecker <brobecker@adacore.com>
12420
12421 * NEWS: Create a new section for the next release branch.
12422 Rename the section of the current branch, now that it has
12423 been cut.
12424
16dfbded
JB
124252014-01-08 Joel Brobecker <brobecker@adacore.com>
12426
12427 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12428 * version.in: Bump version to 7.7.50.DATE-cvs.
12429
22c90ac1
YQ
124302014-01-08 Yao Qi <yao@codesourcery.com>
12431
12432 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12433 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12434 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12435
d64ad97c
YQ
124362014-01-08 Yao Qi <yao@codesourcery.com>
12437
12438 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12439 return value of bfd_get_filename to symbol_file_add_from_bfd.
12440
f93ba80c
PM
124412014-01-08 Pierre Muller <muller@sourceware.org>
12442
12443 Fix PR16201.
12444 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12445 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12446 to prim_record_mininal_symbol_and_info.
12447 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12448 in call to prim_record_minimal_symbol_and_info.
12449 (read_pe_exported_syms): Set index field of section_data.
12450
a4d9ba85
AP
124512014-01-07 Andrew Pinski <apinski@cavium.com>
12452
12453 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12454 * features/aarch64.c: Regenerate.
12455
1b67eb02
AS
124562014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12457
12458 * target.c (return_null): Define.
12459 (update_current_target): Use it instead of return_zero for
12460 functions that return a pointer.
12461
5e3f4fab
EBM
124622014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12463
12464 * source.c (add_path): Fix check for duplicated paths in the previously
12465 included paths.
12466
e2616788
HK
124672014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12468
12469 * ada-lang.c: Remove duplicated include statements.
12470 * alphabsd-nat.c: Ditto.
12471 * amd64-darwin-tdep.c: Ditto.
12472 * amd64fbsd-nat.c: Ditto.
12473 * auto-load.c: Ditto.
12474 * ax-gdb.c: Ditto.
12475 * breakpoint.c: Ditto.
12476 * dbxread.c: Ditto.
12477 * fork-child.c: Ditto.
12478 * gdb_usleep.c: Ditto.
12479 * i386-darwin-tdep.c: Ditto.
12480 * i386fbsd-nat.c: Ditto.
12481 * infcmd.c: Ditto.
12482 * inferior.c: Ditto.
12483 * jv-lang.c: Ditto.
12484 * linux-nat.c: Ditto.
12485 * linux-tdep.c: Ditto.
12486 * m68kbsd-nat.c: Ditto.
12487 * m68klinux-nat.c: Ditto.
12488 * microblaze-tdep.c: Ditto.
12489 * mips-linux-tdep.c: Ditto.
12490 * mn10300-tdep.c: Ditto.
12491 * nto-tdep.c: Ditto.
12492 * opencl-lang.c: Ditto.
12493 * osdata.c: Ditto.
12494 * printcmd.c: Ditto.
12495 * regcache.c: Ditto.
12496 * remote-m32r-sdi.c: Ditto.
12497 * remote.c: Ditto.
12498 * symfile.c: Ditto.
12499 * symtab.c: Ditto.
12500 * tilegx-linux-nat.c: Ditto.
12501 * tilegx-tdep.c: Ditto.
12502 * tracepoint.c: Ditto.
12503 * valops.c: Ditto.
12504 * vaxbsd-nat.c: Ditto.
12505 * windows-nat.c: Ditto.
12506 * xtensa-tdep.c: Ditto.
12507
bd1f7788
YQ
125082014-01-07 Yao Qi <yao@codesourcery.com>
12509
12510 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12511
79301218
JB
125122014-01-07 Yao Qi <yao@codesourcery.com>
12513 Joel Brobecker <brobecker@adacore.com>
12514
12515 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12516 (pdc_write_regs): Likewise.
12517 (fetch_regs_kernel_thread): Likewise.
12518 (store_regs_kernel_thread): Likewise.
12519
125202014-01-07 Joel Brobecker <brobecker@adacore.com>
12521
12522 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12523 tagged type objects to their actual type.
12524
8e355c5d
JB
125252014-01-07 Joel Brobecker <brobecker@adacore.com>
12526
12527 * ada-valprint.c (print_field_values): Add "language" parameter.
12528 Update calls to print_field_values and print_variant_part.
12529 Pass new parameter "language" in call to val_print instead
12530 of "current_language". Replace call to ada_val_print by call
12531 to val_print.
12532 (print_variant_part): Add "language" parameter.
12533 (ada_val_print_struct_union): Update call to print_field_values.
12534
4fbf5aa5
JB
125352014-01-07 Joel Brobecker <brobecker@adacore.com>
12536
12537 * ada-valprint.c (ui_memcpy): Delete.
12538 (ada_print_floating): Update documentation. Add empty line
12539 between between function documentation and implementation.
12540 Delete variable "buffer". Use ui_file_xstrdup in place of
12541 ui_file_put. Minor adjustments following this change.
12542
71855601
JB
125432014-01-07 Joel Brobecker <brobecker@adacore.com>
12544
12545 * ada-valprint.c (ada_val_print_string): New function,
12546 extracted from ada_val_print_array.
12547 (ada_val_print_array): Replace extracted code by call
12548 to ada_val_print_string followed by a return. Move
12549 "else" branch to the function's top block.
12550
4eb27a30
JB
125512014-01-07 Joel Brobecker <brobecker@adacore.com>
12552
12553 * ada-valprint.c (ada_val_print_array): Move implementation
12554 down. Rename parameter "offset" and "val" into "offset_aligned"
12555 and "original_value" respectively. Add parameter "offset".
12556
34b27950
JB
125572014-01-07 Joel Brobecker <brobecker@adacore.com>
12558
12559 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12560 re-organizing the code. Change the "???" message printed
12561 when target type is a TYPE_CODE_UNDEF into
12562 "<ref to undefined type>".
12563
079e4591
JB
125642014-01-07 Joel Brobecker <brobecker@adacore.com>
12565
12566 * ada-valprint.c (print_record): Delete, implementation inlined...
12567 (ada_val_print_struct_union): ... here. Remove call to
12568 ada_check_typedef in inlined implementation.
12569
8004dfd1
JB
125702014-01-07 Joel Brobecker <brobecker@adacore.com>
12571
12572 * ada-valprint.c (ada_val_print_gnat_array): New function,
12573 extracted from ada_val_print_1;
12574 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12575 (ada_val_print_flt, ada_val_print_struct_union)
12576 (ada_val_print_ref): Likewise.
12577 (ada_val_print_1): Delete variables i and elttype.
12578 Replace extracted-out code by call to corresponding
12579 new functions.
12580
760a2db0
JB
125812014-01-07 Joel Brobecker <brobecker@adacore.com>
12582
12583 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12584
3a92c861
JB
125852014-01-07 Joel Brobecker <brobecker@adacore.com>
12586
12587 * ada-valprint.c (ada_val_print_1): Replace calls to
12588 ada_val_print_1 by calls to val_print.
12589
cd1630f9
JB
125902014-01-07 Joel Brobecker <brobecker@adacore.com>
12591
12592 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12593 Update calls to self accordingly. Replace calls to c_val_print
12594 by calls to val_print.
12595
bdf779a0
JB
125962014-01-07 Joel Brobecker <brobecker@adacore.com>
12597
12598 * ada-valprint.c (print_record): Delete declaration.
12599 (adjust_type_signedness, ada_val_print_1): Likewise.
12600 (ada_val_print): Move function implementation down.
12601 (print_variant_part, print_field_values, print_record):
12602 Move function implementation up.
12603
c0d48811
JB
126042014-01-07 Joel Brobecker <brobecker@adacore.com>
12605
12606 * python/py-type.c (typy_get_name): New function.
12607 (type_object_getset): Add entry for attribute "name".
12608 * NEWS: Add entry mentioning this new attribute.
12609
c26e9cbb
YQ
126102014-01-07 Yao Qi <yao@codesourcery.com>
12611
12612 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12613 statement.
12614
0cc6f43d
YQ
126152014-01-07 Yao Qi <yao@codesourcery.com>
12616
12617 * gnu-nat.c (info_port_rights): Add qualifier const to
12618 argument args.
12619
eec03155
YQ
126202014-01-07 Yao Qi <yao@codesourcery.com>
12621
12622 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12623
f04a82ef
YQ
126242014-01-07 Yao Qi <yao@codesourcery.com>
12625
12626 * gnu-nat.c (make_inf) Update declaration.
12627 (make_inf): Make it static.
12628 (inf_set_traced): Likewise.
12629 (inf_port_to_thread, inf_task_died_status): Likewise.
12630
d57dda0a
YQ
126312014-01-07 Yao Qi <yao@codesourcery.com>
12632
12633 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12634
3aa8c969
YQ
126352014-01-07 Yao Qi <yao@codesourcery.com>
12636
12637 * gnu-nat.c (_initialize_gnu_nat): Declare.
12638
94123b4f
YQ
126392014-01-07 Yao Qi <yao@codesourcery.com>
12640
12641 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12642 'enum bfd_endian'.
12643 (struct gdbarch_info) <byte_order>: Change type to
12644 'enum bfd_endian'.
12645 <byte_order_for_code>: Likewise.
12646 * gdbarch.c, gdbarch.h: Regenerated.
12647
dc81d70a
TT
126482014-01-06 Sasha Smundak <asmundak@google.com>
12649
12650 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12651
cc2f3c35
TT
126522014-01-06 Tom Tromey <tromey@redhat.com>
12653
12654 * doublest.c (convert_doublest_to_floatformat): Use const, not
12655 CONST.
12656 * somread.c (som_symtab_read): Likewise.
12657
adcf2eed
HZ
126582014-01-07 Hui Zhu <hui@codesourcery.com>
12659
12660 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12661 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12662 (gdb_bfd_fopen): Ditto.
12663 (gdb_bfd_openr): Ditto.
12664 (gdb_bfd_openw): Ditto.
12665 (gdb_bfd_openr_iovec): Ditto.
12666 (gdb_bfd_fdopenr): Ditto.
12667 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12668 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12669 with xstrdup.
12670 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12671 with xstrdup.
12672 * symfile-mem.c (symbol_file_add_from_memory): Removed
12673 gdb_bfd_stash_filename.
12674
50722198
DE
126752014-01-03 Doug Evans <dje@google.com>
12676
12677 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12678 output.
12679
2fa4b862
JB
126802014-01-01 Joel Brobecker <brobecker@adacore.com>
12681
12682 Update year range in copyright notice of all files.
12683
28498c42
JB
126842014-01-01 Joel Brobecker <brobecker@adacore.com>
12685
12686 * top.c (print_gdb_version): Set copyright year to 2014.
12687
7b6e1046
JB
126882014-01-01 Joel Brobecker <brobecker@adacore.com>
12689
12690 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12691
df96af55 12692For older changes see ChangeLog-2013.
c906108c
SS
12693\f
12694Local Variables:
12695mode: change-log
12696left-margin: 8
12697fill-column: 74
12698version-control: never
57da7796 12699coding: utf-8
c906108c 12700End:
This page took 2.124135 seconds and 4 git commands to generate.