Introduce show_debug_regs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c5e92cca
GB
12014-09-11 Gary Benson <gbenson@redhat.com>
2
3 * common/common-debug.h (show_debug_regs): Declare.
4 * common/common-debug.c (show_debug_regs): Define.
5 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
6 all uses with show_debug_regs. Replace all uses that considered
7 debug_hw_points as a multi-value integer with straight boolean
8 uses.
9 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
10 with show_debug_regs.
11 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
12 all uses with show_debug_regs.
13 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
14 uses with show_debug_regs.
15
eeef931a
UW
162014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
17
18 * findvar.c (address_from_register): Handle targets requiring
19 a special conversion routine even for plain pointer types.
20
8efa9855
UW
212014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
22
23 * rs6000-nat.c (exec_one_dummy_insn): Remove.
24 (store_register): Do not call exec_one_dummy_insn.
25
eb479039
JB
262014-09-10 Joel Brobecker <brobecker@adacore.com>
27
28 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
29 dereference it first. Use value_enclosing_type instead of
30 value_type.
31 (ada_array_length): Likewise.
32
deede10c
JB
332014-09-10 Joel Brobecker <brobecker@adacore.com>
34
35 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
36 Adjust function implementation and documentation accordingly.
37 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
38 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
39 Update call to ada_value_ptr_subscript.
40
7828a5f5
JB
412014-09-10 Joel Brobecker <brobecker@adacore.com>
42
43 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
44 instead of VAL's type.
45
35782f14
JB
462014-09-10 Joel Brobecker <brobecker@adacore.com>
47
48 * amd64-linux-nat.c: Add <sys/uio.h> #include.
49
d342a0da
DE
502014-09-09 Doug Evans <xdje42@gmail.com>
51
52 PR guile/17367
53 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
54 last parameter to pkg-config, not first.
55 * configure.ac: Pass --with-guile provided pkg-config path to
56 GDB_GUILE_PROGRAM_NAMES.
57 * configure: Regenerate.
58
b4a3d263
GKB
592014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
60
61 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
62 Bertazi".
63
6e466374
MR
642014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
65
66 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
67 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
68 the list of sections determining GDB_OSABI_IRIX.
69
a1ada89a
JH
702014-09-09 James Hogan <james.hogan@imgtec.com>
71
72 * MAINTAINERS (Write After Approval): Add "James Hogan".
73
86db008d
JH
742014-09-09 James Hogan <james.hogan@imgtec.com>
75
76 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
77
72fde3df
JB
782014-09-09 Joel Brobecker <brobecker@adacore.com>
79
80 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
81
92d8d229
DE
822014-09-08 Doug Evans <xdje42@gmail.com>
83
84 PR 17247
85 * guile.c: #include <signal.h>.
86 (_initialize_guile): Block SIGCHLD while initializing Guile.
87
88 Replaces the following, which is reverted.
89
90 2014-07-26 Doug Evans <xdje42@gmail.com>
91
92 PR 17185
93 * configure.ac: Add check for header gc/gc.h.
94 Add check for function setenv.
95 * configure: Regenerate.
96 * config.in: Regenerate.
97 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
98
d81412aa
DE
992014-09-08 Doug Evans <xdje42@gmail.com>
100
101 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
102 with named constant. Fix style of pointer comparison.
103 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
104
a9f116cb
GKB
1052014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
106
107 PR gdb/17035
108 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
109 decide whether we display the command on "show user".
110 * cli/cli-script.c (show_user_1): Only verify cmdlines after
111 printing command name.
112 * cli/cli-decode.h (cli_user_command_p): Declare new function.
113 * cli/cli-decode.c (cli_user_command_p): Create helper function
114 to verify whether cmd_list_element is a user-defined command.
115
c75bd3a2
JK
1162014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
117
118 PR python/17355
119 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
120 Fix goto out of TRY_CATCH.
121
faa42425 1222014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 123 Tom Tromey <tromey@redhat.com>
faa42425
DE
124
125 PR 15276
126 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
127 $_any_caller_matches.
128 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
129 * python/lib/gdb/function/caller_is.py: New file.
130
0d41ba00
DE
1312014-09-06 Doug Evans <xdje42@gmail.com>
132
133 * infcmd.c (program_info): Fix typo.
134
474ca4f6
SDJ
1352014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
136
137 PR gdb/17235
138 * stap-probe.c (stap_parse_single_operand): Delete unused variable
139 'number'. New variable 'has_digit'. Rewrite code to deal with
140 subexpressions on SDT probes.
141
ebf13736
PA
1422014-09-04 Pedro Alves <palves@redhat.com>
143
144 * c-exp.y (parse_number): Skip handling base-switching prefixes if
145 the input is only one character long.
146
eb0b0463
SDJ
1472014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
148
149 PR fortran/17237
150 * f-valprint.c (f_val_print): Specify the correct print option to
151 use when printing integer values.
152
5ee44bfa
GB
1532014-09-04 Gary Benson <gbenson@redhat.com>
154
155 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
156 Remove code to cope with LWPs wrapped as PIDs.
157 Add assertions to ensure no wrapped LWPs are passed.
158
4875ffdb
PA
1592014-09-04 Pedro Alves <palves@redhat.com>
160
161 * value.c (value_ranges_copy_adjusted): New function, factored out
162 from ...
163 (value_contents_copy_raw): ... here.
164 (unpack_value_bits_as_long_1): Rename back to ...
165 (unpack_bits_as_long): ... this. Remove 'original_value' and
166 'result' parameters. Change return type to LONGEST.
167 (unpack_value_bits_as_long): Delete.
168 (unpack_value_field_as_long_1): Delete.
169 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
170 (unpack_value_bitfield): New function.
171 (value_field_bitfield): Reimplement using unpack_value_bitfield.
172 (value_fetch_lazy): Use unpack_value_bitfield.
173 * value.h (unpack_value_bits_as_long): Delete declaration.
174
5f3b99cf
SS
1752014-09-03 Sasha Smundak <asmundak@google.com>
176
177 * python/py-frame.c (frapy_read_register): New function.
178
ac740bc7
JH
1792014-09-03 James Hogan <james.hogan@imgtec.com>
180
181 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
182 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
183
7d793aa9
SDJ
1842014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
185
186 PR python/16699
187 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
188 function.
189 (add_cmd): Set "completer_handle_brkchars" to NULL.
190 * cli/cli-decode.h (struct cmd_list_element)
191 <completer_handle_brkchars>: New field.
192 * command.h (completer_ftype_void): New typedef.
193 (set_cmd_completer_handle_brkchars): New prototype.
194 * completer.c (set_gdb_completion_word_break_characters): New
195 function.
196 (complete_line_internal): Call "completer_handle_brkchars"
197 callback from command.
198 * completer.h: Include "command.h".
199 (set_gdb_completion_word_break_characters): New prototype.
200 * python/py-cmd.c (cmdpy_completer_helper): New function.
201 (cmdpy_completer_handle_brkchars): New function.
202 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
203 (cmdpy_init): Set completer_handle_brkchars to
204 cmdpy_completer_handle_brkchars.
205
97ea6506
GB
2062014-09-03 Gary Benson <gbenson@redhat.com>
207
208 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
209 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
210 Loop conditions changed to equivalent form.
211 (struct x86_debug_reg_state): Updated dr_ref_count comment.
212 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
213 ALL_DEBUG_ADDRESS_REGISTERS.
214
d1437815
JB
2152014-09-03 Joel Brobecker <brobecker@adacore.com>
216
217 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
218 description fix.
219
9b94fcf1
DE
2202014-09-02 Doug Evans <dje@google.com>
221
222 * typeprint.c (find_global_typedef): Fix comment.
223
df7e5265
GB
2242014-09-02 Gary Benson <gbenson@redhat.com>
225
226 * i386-nat.h: Renamed as...
227 * x86-nat.h: New file. All type, function and variable name
228 prefixes changed from "i386_" to "x86_". All references updated.
229 * i386-nat.c: Renamed as...
230 * x86-nat.c: New file. All type, function and variable name
231 prefixes changed from "i386_" to "x86_". All references updated.
232 * common/i386-xstate.h: Renamed as...
233 * common/x86-xstate.h: New file. All type, function and variable
234 name prefixes changed from "i386_" to "x86_". All references
235 updated.
236 * nat/i386-cpuid.h: Renamed as...
237 * nat/x86-cpuid.h: New file. All type, function and variable name
238 prefixes changed from "i386_" to "x86_". All references updated.
239 * nat/i386-gcc-cpuid.h: Renamed as...
240 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
241 name prefixes changed from "i386_" to "x86_". All references
242 updated.
243 * nat/i386-dregs.h: Renamed as...
244 * nat/x86-dregs.h: New file. All type, function and variable name
245 prefixes changed from "i386_" to "x86_". All references updated.
246 * nat/i386-dregs.c: Renamed as...
247 * nat/x86-dregs.c: New file. All type, function and variable name
248 prefixes changed from "i386_" to "x86_". All references updated.
249
1c3569d4
MR
2502014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
251
252 * varobj.c (_initialize_varobj): Move to the end of file.
253
ff55e1b5
GB
2542014-08-29 Gary Benson <gbenson@redhat.com>
255
256 * common/common-exceptions.h: New file.
257 * common/common-exceptions.c: Likewise.
258 * Makefile.in (SFILES): Add common/common-exceptions.c.
259 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
260 (COMMON_OBS): Add common-exceptions.o.
261 (common-exceptions.o): New rule.
262 * exceptions.h (common-exceptions.h): Include.
263 (gdb_setjmp.h): Do not include.
264 (return_reason): Moved to common-exceptions.h.
265 (enum return_reason): Likewise.
266 (RETURN_MASK): Likewise.
267 (typedef return_mask): Likewise.
268 (enum errors): Likewise.
269 (struct gdb_exception): Likewise.
270 (exceptions_state_mc_init): Likewise.
271 (exceptions_state_mc_action_iter): Likewise.
272 (exceptions_state_mc_action_iter_1): Likewise.
273 (TRY_CATCH): Likewise.
274 (throw_exception): Likewise.
275 (throw_verror): Likewise.
276 (throw_vquit): Likewise.
277 (throw_error): Likewise.
278 (throw_quit): Likewise.
279 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
280 (enum catcher_action): Likewise.
281 (struct catcher): Likewise.
282 (current_catcher): Likewise.
283 (catcher_list_size): Likewise.
284 (exceptions_state_mc_init): Likewise.
285 (catcher_pop): Likewise.
286 (exceptions_state_mc): Likewise.
287 (exceptions_state_mc_action_iter): Likewise.
288 (exceptions_state_mc_action_iter_1): Likewise.
289 (throw_exception): Likewise.
290 (exception_messages): Likewise.
291 (exception_messages_size): Likewise.
292 (throw_it): Likewise.
293 (throw_verror): Likewise.
294 (throw_vquit): Likewise.
295 (throw_error): Likewise.
296 (throw_quit): Likewise.
297 (prepare_to_throw_exception): New function.
298
e9bcb658
GB
2992014-08-29 Gary Benson <gbenson@redhat.com>
300
301 * common/gdb_setjmp.h: New file.
302 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
303 * configure.ac: Move sigsetjmp check...
304 * common/common.m4: ...here.
305 * configure: Regenerate.
306 * cp-support.c (SIGJMP_BUF): Delete.
307 (SIGSETJMP): Likewise.
308 (SIGLONGJMP): Likewise.
309 * exceptions.h (gdb_setjmp.h): Include.
310 (setjmp.h): Do not include.
311 (EXCEPTIONS_SIGJMP_BUF): Delete.
312 (EXCEPTIONS_SIGSETJMP): Likewise.
313 (EXCEPTIONS_SIGLONGJMP): Likewise.
314 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
315 from gdb_setjmp.h.
316 * exceptions.c: Likewise.
317
e3180625
GB
3182014-08-29 Gary Benson <gbenson@redhat.com>
319
320 * cleanups.h: Moved to...
321 * common/cleanups.h: New file.
322 * cleanups.c: Moved to...
323 * common/cleanups.c: New file. Include common-defs.h and
324 cleanups.h. Do not include defs.h.
325 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
326 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
327 (cleanups.o): New rule.
328
e3d6ba5d
GB
3292014-08-29 Gary Benson <gbenson@redhat.com>
330
331 * common/errors.h (internal_warning): New declaration.
332 (internal_vwarning): Likewise.
333 * common/errors.c (internal_warning): New function.
334 * utils.h (internal_warning): Don't declare.
335 (internal_vwarning): Likewise.
336 * utils.c (internal_warning): Removed.
337
075c7033
GB
3382014-08-29 Gary Benson <gbenson@redhat.com>
339
340 * main.c (captured_main): Use warning during startup.
341 Prefix startup warning messages with command name.
342
91b35fd0
GB
3432014-08-29 Gary Benson <gbenson@redhat.com>
344
345 * main.c (captured_main): Handle usage errors with error.
346
b1ec390e
GB
3472014-08-29 Gary Benson <gbenson@redhat.com>
348
349 * go32-nat.c (go32_create_inferior): Replace a fprintf/
350 exit pair with a call to error. Wrap the message with _().
351
fd0ef3dd
GB
3522014-08-29 Gary Benson <gbenson@redhat.com>
353
354 * main.c (captured_main): Replace a fprintf/exit
355 pair with a call to error. Wrap the message with _().
356
e0e6bcab
GB
3572014-08-29 Gary Benson <gbenson@redhat.com>
358
359 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
360 pairs with calls to error. Wrap the message with _().
361
0d2f5c07
GB
3622014-08-29 Gary Benson <gbenson@redhat.com>
363
364 * utils.c (vwarning): Protect calls to target_terminal_ours
365 and wrap_here.
366
5df43998
GB
3672014-08-29 Gary Benson <gbenson@redhat.com>
368
369 * exceptions.c (print_flush): Protect calls to
370 target_terminal_ours and wrap_here.
371
2437fd32
GB
3722014-08-29 Gary Benson <gbenson@redhat.com>
373
374 * utils.h (filtered_printing_initialized): New declaration.
375 * utils.c (abort_with_message): New function.
376 (internal_vproblem): Use abort_with_message for first level
377 recursive internal problems, and if gdb_stderr is not set up.
378 Protect calls to target_terminal_ours, begin_line and query.
379
f1f58506
DE
3802014-08-28 Doug Evans <dje@google.com>
381
382 * symtab.c (in_prologue): Move definition to better spot.
383 (skip_prologue_using_sal): Ditto.
384
aab2f208
DE
3852014-08-28 Doug Evans <dje@google.com>
386
387 * symtab.c (find_function_start_sal): Move definition to better spot.
388
6b65d1b6
YQ
3892014-08-28 Yao Qi <yao@codesourcery.com>
390
391 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
392 found_stack_adjust in forward scan. Remove condition check
393 on found_stack_adjust which is always true. Indent the code.
394
a1b34d15
YQ
3952014-08-28 Yao Qi <yao@codesourcery.com>
396
397 * dwarf2read.c (dwarf_decode_lines): Update declaration.
398 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
399 (dwarf_decode_lines): Remove argument
400 want_line_info. Remove condition check on want_line_info.
401 Callers update.
402
d5962de5
DE
4032014-08-27 Doug Evans <dje@google.com>
404
405 * dwarf2read.c (dwarf_record_line): Fix typo.
406
9b139002
SDJ
4072014-08-27 Patrick Palka <patrick@parcs.ath.cx>
408
409 * target.h (struct target_ops::to_terminal_save_ours): Remove
410 declaration.
411 (target_terminal_save_ours): Remove macro.
412 * target-delegates.c: Regenerate.
413 * inf-child.c (inf_child_target): Don't set the nonexistent
414 field to_terminal_save_ours.
415 * inferior.h (child_terminal_save_ours): Remove declaration.
416 * terminal.h (gdb_save_tty_state): New declaration.
417 * inflow.c (child_terminal_save_ours): Rename to ...
418 (gdb_save_tty_state): ... this.
419 * tui/tui.c: Include terminal.h.
420 (tui_enable): Use gdb_save_tty_state instead of
421 target_terminal_save_ours.
422 (tui_disable): Likewise.
423
9debeba0
DE
4242014-08-25 Doug Evans <dje@google.com>
425
426 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
427 Pass NULL instead of 0 for context pointer.
428
428fc5fc
YQ
4292014-08-25 Yao Qi <yao@codesourcery.com>
430
431 * dwarf2read.c: Fix grammatical error.
432
cdc07690
YQ
4332014-08-24 Yao Qi <yao@codesourcery.com>
434
435 * dwarf2read.c (scan_partial_symbols): Update comments.
436 Rename argument 'need_pc' with 'set_addrmap'.
437 (add_partial_namespace): Rename argument 'need_pc' with
438 'set_addrmap'.
439 (add_partial_module): Likewise.
440 (add_partial_subprogram): Likewise. Update comments.
441 (dwarf2_name): Fix typo.
442
a05a36a5
DE
4432014-08-22 Doug Evans <dje@google.com>
444
445 PR 17276
446 * dwarf2read.c (dwarf_record_line_p): New function.
447 (dwarf_decode_lines_1): Ignore subsequent line number entries
448 for the same line if any entry had a non-zero discriminator.
449
252a6764
DE
4502014-08-22 Doug Evans <dje@google.com>
451
452 * buildsym.h (record_line_ftype): New typedef.
453 (record_line): Use it.
454 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
455 (dwarf_decode_lines_1): Call them.
456
510db052
YQ
4572014-08-22 Yao Qi <yao@codesourcery.com>
458
459 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
460 (ctf_end): Remove code.
461
22fd09ae
JK
4622014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
463
464 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
465 (linux_make_corefile_notes): call update_thread_list, protected against
466 exceptions.
467
656e8868
PA
4682014-08-21 Pedro Alves <palves@redhat.com>
469
470 * infcmd.c (attach_command): Remove comment.
471
de589d04
WN
4722014-08-21 Bin Cheng <bin.cheng@arm.com>
473
474 * aarch64-linux-nat.c (dr_changed_t): Change the type from
475 unsigned LONGEST to ULONGEST.
476
2a31c623
PA
4772014-08-20 Pedro Alves <palves@redhat.com>
478
479 * Makefile.in (check-read1): New rule.
480
d36430db
JB
4812014-08-20 Joel Brobecker <brobecker@adacore.com>
482
483 * value.c (value_from_contents_and_address): Strip resolved_type's
484 typedef layers before checking its TYPE_DATA_LOCATION.
485
000339af
PA
4862014-08-20 Pedro Alves <palves@redhat.com>
487
488 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
489
5f52445b
YQ
4902014-08-20 Yao Qi <yao@codesourcery.com>
491
492 * amd64-tdep.c (amd64_classify): Add a blank line after the
493 example. Move "*/" to a new line.
494 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
495 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
496 * dwarf2read.c (psymtab_include_file_name): Likewise.
497
9a0dc9e3
PA
4982014-08-19 Andrew Burgess <aburgess@broadcom.com>
499 Pedro Alves <palves@redhat.com>
500
501 PR symtab/14604
502 PR symtab/14605
503 * ada-lang.c (coerce_unspec_val_to_type): Use
504 value_contents_copy_raw.
505 * ada-valprint.c (val_print_packed_array_elements): Adjust.
506 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
507 * cp-valprint.c (cp_print_value_fields): Let the common printing
508 code handle optimized out values.
509 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
510 * d-valprint.c (dynamic_array_type): Use
511 value_bits_any_optimized_out.
512 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
513 check_any_valid fields.
514 (check_pieced_value_bits): Delete and inline ...
515 (check_pieced_synthetic_pointer): ... here.
516 (check_pieced_value_validity): Delete.
517 (check_pieced_value_invalid): Delete.
518 (pieced_value_funcs): Remove check_validity and check_any_valid
519 fields.
520 (read_pieced_value): Use mark_value_bits_optimized_out.
521 (write_pieced_value): Switch to use
522 mark_value_bytes_optimized_out.
523 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
524 of assuming the whole value is optimized out.
525 * findvar.c (read_frame_register_value): Remove special handling
526 of optimized out registers.
527 (value_from_register): Use mark_value_bytes_optimized_out.
528 * frame-unwind.c (frame_unwind_got_optimized): Use
529 mark_value_bytes_optimized_out.
530 * jv-valprint.c (java_value_print): Adjust.
531 (java_print_value_fields): Let the common printing code handle
532 optimized out values.
533 * mips-tdep.c (mips_print_register): Remove special handling of
534 optimized out registers.
535 * opencl-lang.c (lval_func_check_validity): Delete.
536 (lval_func_check_any_valid): Delete.
537 (opencl_value_funcs): Remove check_validity and check_any_valid
538 fields.
539 * p-valprint.c (pascal_object_print_value_fields): Let the common
540 printing code handle optimized out values.
541 * stack.c (read_frame_arg): Remove special handling of optimized
542 out values. Fetch both VAL and ENTRYVAL before comparing
543 contents. Adjust to value_available_contents_eq rename.
544 * valprint.c (valprint_check_validity)
545 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
546 (val_print_array_elements): Adjust.
547 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
548 (value_bits_any_optimized_out): New function.
549 (value_entirely_covered_by_range_vector): New function, factored
550 out from value_entirely_unavailable.
551 (value_entirely_unavailable): Reimplement.
552 (value_entirely_optimized_out): New function.
553 (insert_into_bit_range_vector): New function, factored out from
554 mark_value_bits_unavailable.
555 (mark_value_bits_unavailable): Reimplement.
556 (struct ranges_and_idx): New struct.
557 (find_first_range_overlap_and_match): New function, factored out
558 from value_available_contents_bits_eq.
559 (value_available_contents_bits_eq): Rename to ...
560 (value_contents_bits_eq): ... this. Check both unavailable
561 contents and optimized out contents.
562 (value_available_contents_eq): Rename to ...
563 (value_contents_eq): ... this.
564 (allocate_value_lazy): Remove reference to the old optimized_out
565 boolean.
566 (allocate_optimized_out_value): Use
567 mark_value_bytes_optimized_out.
568 (require_not_optimized_out): Adjust to check whether the
569 optimized_out vec is empty.
570 (ranges_copy_adjusted): New function, factored out from
571 value_contents_copy_raw.
572 (value_contents_copy_raw): Also copy the optimized out ranges.
573 Assert the destination ranges aren't optimized out.
574 (value_contents_copy): Update comment, remove call to
575 require_not_optimized_out.
576 (value_contents_equal): Adjust to check whether the optimized_out
577 vec is empty.
578 (set_value_optimized_out, value_optimized_out_const): Delete.
579 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
580 New functions.
581 (value_entirely_optimized_out, value_bits_valid): Delete.
582 (value_copy): Take a VEC copy of the 'optimized_out' field.
583 (value_primitive_field): Remove special handling of optimized out.
584 (value_fetch_lazy): Assert that lazy values have no unavailable
585 regions. Use value_bits_any_optimized_out. Remove some special
586 handling for optimized out values.
587 * value.h: Add intro comment about <optimized out> and
588 <unavailable>.
589 (struct lval_funcs): Remove check_validity and check_any_valid
590 fields.
591 (set_value_optimized_out, value_optimized_out_const): Remove.
592 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
593 New declarations.
594 (value_bits_any_optimized_out): New declaration.
595 (value_bits_valid): Delete declaration.
596 (value_available_contents_eq): Rename to ...
597 (value_contents_eq): ... this, and extend comments.
598
6694c411
JK
5992014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 Fix -fsanitize=address on unreadable inferior strings.
602 * valprint.c (val_print_string): Fix access before BUFFER.
603
89a1c21a
SM
6042014-08-19 Simon Marchi <simon.marchi@ericsson.com>
605
606 * target.c (target_struct_size): Remove.
607 (target_struct_allocsize): Remove.
608 (DEFAULT_ALLOCSIZE): Remove.
609 (target_ops_p): New typedef.
610 (DEF_VEC_P (target_ops_p)): New vector type.
611 (target_structs): Change type to VEC (target_ops_p).
612 (add_target_with_completer): Replace "push" code by VEC_safe_push.
613 (find_default_run_target): Rewrite for loop following changes to
614 target_structs.
615
cb417230
JB
6162014-08-19 Joel Brobecker <brobecker@adacore.com>
617
618 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
619 Adjust code accordingly. Adjust function description comment.
620
817e0957
YQ
6212014-08-19 Yao Qi <yao@codesourcery.com>
622
623 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
624 types.
625
2974be62
AM
6262014-08-19 Alan Modra <amodra@gmail.com>
627
628 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
629 * config.in: Regenerate.
630 * configure: Regenerate.
631
34abf635
GB
6322014-08-19 Tom Tromey <tromey@redhat.com>
633 Gary Benson <gbenson@redhat.com>
634
635 * common/common-debug.h: New file.
636 * common/common-debug.c: Likewise.
637 * debug.c: Likewise.
638 * Makefile.in (SFILES): Add common/common-debug.c.
639 (HFILES_NO_SRCDIR): Add common/common-debug.h.
640 (COMMON_OBS): Add common-debug.o and debug.o.
641 (common-debug.o): New rule.
642 * common/common-defs.h: Include common-debug.h.
643 * common/agent.c (debug_agent_printf): New function.
644 (DEBUG_AGENT): Redefine.
645 * nat/i386-dregs.c (debug_printf): Undefine.
646
f6e94d78
GB
6472014-08-19 Gary Benson <gbenson@redhat.com>
648
649 * common/common-defs.h: Include print-utils.h.
650 * utils.h: Do not include print-utils.h.
651
9239eeab
GB
6522014-08-19 Tom Tromey <tromey@redhat.com>
653 Gary Benson <gbenson@redhat.com>
654
655 * common/common-types.h: New file.
656 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
657 * common/common-defs.h: Include common-types.h.
658 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
659 (ULONGEST): Remove.
660
ef87c8bb
GB
6612014-08-19 Tom Tromey <tromey@redhat.com>
662 Gary Benson <gbenson@redhat.com>
663
664 * common/errors.h: New file.
665 * common/errors.c: Likewise.
666 * Makefile.in (SFILES): Add common/errors.c.
667 (HFILES_NO_SRCDIR): Add common/errors.h.
668 (COMMON_OBS): Add errors.o.
669 (errors.o): New rule.
670 * common/common-defs.h: Include errors.h.
671 * utils.h (perror_with_name, error, verror, warning, vwarning):
672 Don't declare.
673 * common/common-utils.h: (malloc_failure, internal_error):
674 Likewise.
675
196a707b
GB
6762014-08-19 Gary Benson <gbenson@redhat.com>
677
678 * utils.c (internal_vproblem): Always print the message.
679
ded4fc8f
DE
6802014-08-18 Doug Evans <dje@google.com>
681
682 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
683
950c97d8
JB
6842014-08-18 Joel Brobecker <brobecker@adacore.com>
685
686 * ada-typeprint.c (type_is_full_subrange_of_target_type):
687 Return 0 if TYPE is dynamic.
688 (print_range): Add handling of dynamic ranges.
689
3cdcd0ce
JB
6902014-08-18 Keven Boell <keven.boell@intel.com>
691 Joel Brobecker <brobecker@adacore.com>
692
693 * gdbtypes.h (struct main_type): Add field "data_location".
694 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
695 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
696 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
697 a dynamic data location.
698 (resolve_dynamic_type): Add DW_AT_data_location handling.
699 (copy_recursive, copy_type): Copy the data_location information
700 when present.
701 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
702 * value.c (value_from_contents_and_address): Add
703 DW_AT_data_location handling.
704
08412b07
JB
7052014-08-18 Keven Boell <keven.boell@intel.com>
706 Joel Brobecker <brobecker@adacore.com>
707
708 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
709 field "get_object_address".
710 * dwarf2expr.c (execute_stack_op): Add handling for
711 DW_OP_push_object_address.
712 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
713 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
714 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
715 (dwarf_expr_get_obj_addr): New function.
716 (dwarf_expr_ctx_funcs): Add get_object_address field.
717 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
718 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
719 (dwarf2_evaluate_property): Add parameter "address". Use it.
720 (needs_get_obj_addr): New function.
721 (needs_frame_ctx_funcs): Add get_object_address field.
722 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
723 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
724 (resolve_dynamic_array): Likewise.
725
84754697
JB
7262014-08-18 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
729 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
730 fixed value for records and unions for which some GNAT encodings
731 are present.
732
da5c522f
JB
7332014-08-18 Joel Brobecker <brobecker@adacore.com>
734
735 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
736 rewrite to avoid "else if" and "else" constructs. Should be
737 a no-op in practice.
738
0d72a7c3
JB
7392014-08-18 Joel Brobecker <brobecker@adacore.com>
740
741 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
742 of lexical block.
743
e66d4446
SC
7442014-08-15 Siva Chandra Reddy <sivachandra@google.com>
745
746 PR c++/17132
747 * eval.c: Update all calls to find_overload_match.
748 * valarith.c: Likewise.
749 (value_user_defined_cpp_op, value_user_defined_op): New
750 argument NOSIDE. Update all callers.
751 * valops.c (find_overload_match): New argument NOSIDE.
752 * value.h (find_overload_match): Update signature.
753
940df408
SC
7542014-08-15 Siva Chandra Reddy <sivachandra@google.com>
755
756 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
757 'items' methods instead of 'iteritems' method on dictionaries.
758
699ca60a
DE
7592014-08-15 Doug Evans <dje@google.com>
760
761 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
762 closer to use.
763
37780ee5
DE
7642014-08-15 Doug Evans <dje@google.com>
765
766 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
767
0ad93d4f
DE
7682014-08-15 Doug Evans <dje@google.com>
769
770 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
771
20d8c372
DE
7722014-08-15 Doug Evans <dje@google.com>
773
774 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
775 unused.
776
cb039ba4
EZ
7772014-08-15 Eli Zaretskii <eliz@gnu.org>
778
779 * dcache.h: Include target.h, to avoid compile time warnings.
780
eb7a547a
JB
7812014-08-15 Joel Brobecker <brobecker@adacore.com>
782
783 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
784 frame_info" partial declaration.
785 * gdbarch.h: Regenerate.
786
783cecc8
YQ
7872014-08-15 Yao Qi <yao@codesourcery.com>
788
789 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
790 Add parameter 'decode_for_pst_p'. Callers update.
791
65c749e7
YQ
7922014-08-13 Yao Qi <yao@codesourcery.com>
793
794 PR build/17104
795 * configure.ac: Use local variable 'pos'.
796 * configure: Regenerated.
797
d769e349
DE
7982014-08-11 Doug Evans <dje@google.com>
799
800 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
801 message, it is redundant with "Reading symbols from ..." message.
802
24f1235e
DE
8032014-08-10 Doug Evans <xdje42@gmail.com>
804
805 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
806
dcd2e6ef
YQ
8072014-08-09 Yao Qi <yao@codesourcery.com>
808
809 PR remote/9053
810 * remote.c (remote_xfer_partial): Remove dead code.
811
070bdf0b
AA
8122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813
814 * ia64-linux-tdep.c: Include "regset.h".
815 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
816 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
817 (ia64_linux_supply_fpregset): New function.
818 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
819 (ia64_linux_regset_from_core_section): New function.
820 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
821 method.
822
08f9f542
AA
8232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
824
825 * m68klinux-tdep.c: Include "regset.h".
826 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
827 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
828 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
829 (m68k_linux_regset_from_core_section): New function.
830 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
831 method.
832
8f1cee41
AA
8332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
834
835 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
836 function. Move logic to...
837 (tilegx_linux_regmap): ... this new register map.
838 (tilegx_linux_regset): Refer to register map, replace supply
839 method by regcache_supply_regset, and add collect method.
840 * tilegx-tdep.h (enum tilegx_regnum): New enum value
841 TILEGX_FIRST_EASY_REGNUM.
842
c5741217
AA
8432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
844
845 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
846 that calls regcache_supply_regset and handles the EPC register
847 separately. Move main logic to...
848 (score7_linux_gregmap): ... this new register map.
849 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
850 (score7_linux_gregset): Refer to register map. Add collect method.
851 (score7_linux_regset_from_core_section): Replace
852 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
853 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
854 (struct regset): Delete unused forward declaraction.
855 (struct pt_regs): Delete structure definition.
856 (elf_gregset_t): Delete typedef.
857
81580573
AA
8582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
859
860 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
861 (nios2_core_regset): Add collect method.
862
ba199d7d
AA
8632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
864
865 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
866 platform-independent and don't write to read-only input buffer.
867 (m32r_linux_collect_gregset): New function.
868 (m32r_linux_gregset): Add collect method.
869
0006a9da
AA
8702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
871
872 * hppa-linux-tdep.c (greg_map): Rename to...
873 (hppa_linux_gregmap): ... this. Also convert to
874 regcache_map_entry format.
875 (hppa_linux_supply_regset): Delete function.
876 (hppa_linux_supply_fpregset): Delete function. Move logic to...
877 (hppa_linux_fpregmap): ... this new register map.
878 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
879 register map, replace supply method by regcache_supply_regset, and
880 add collect method regcache_collect_regset.
881
901e1b23
AA
8822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
883
884 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
885 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
886 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
887 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
888 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
889 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
890 (frv_linux_supply_gregset): Replace main logic by call to
891 regcache_supply_regset, but keep clearing gr32-gr63.
892 (frv_linux_supply_fpregset): Delete function.
893 (frv_linux_gregset): Refer to appropriate register map and add
894 regcache_collect_regset as the collect method.
895 (frv_linux_fpregset): Likewise. Also exchange the supply method
896 by regcache_supply_regset.
897
1d6e7555
AA
8982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
899
900 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
901 by call to alpha_supply_int_regs.
902 (alpha_linux_collect_gregset): New function.
903 (alpha_linux_supply_fpregset): Replace logic by call to
904 alpha_supply_fp_regs.
905 (alpha_linux_collect_fpregset): New function.
906 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
907
d4d793bf
AA
9082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
909
910 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
911 by call to regcache_collect_regset.
912 (supply_gregset, supply_fpregset): Call regcache_supply_regset
913 instead of aarch64_linux_supply_gregset/_fpregset.
914 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
915 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
916 header file instead.
917 (aarch64_linux_supply_gregset, supply_gregset_from_core)
918 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
919 functions. Move logic to ...
920 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
921 register maps.
922 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
923 refer to new register maps, replace *_regset_from_core by
924 regcache_supply_regset, and also use regcache_collect_regset.
925 * aarch64-linux-tdep.h: Include "regset.h".
926 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
927 Delete prototypes.
928 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
929 macros, moved from C source file.
930 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
931 variable declarations.
932
99b7da5d
AA
9332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
934
935 * s390-linux-nat.c: Include "regset.h".
936 (regmap_gregset): Delete macro.
937 (s390_64_regmap_gregset): New register map for
938 regcache_supply/_collect_regset.
939 (s390_64_gregset): New regset.
940 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
941 (regmap_fpregset): Delete macro.
942 (s390_native_supply, s390_native_collect): Delete functions.
943 (supply_gregset, fill_gregset): Replace s390-specific regmap
944 handling by a call to regcache_supply/_collect_regset.
945 (supply_fpregset, fill_fpregset): Call regcache_supply/
946 _collect_regset instead of s390_native_supply/_collect.
947 (fetch_regset, store_regset): Likewise. Also change the last
948 parameter to a regset instead of a regmap.
949 (s390_linux_fetch_inferior_registers)
950 (390_linux_store_inferior_registers): Adjust last parameter in
951 calls to fetch_regset and store_regset.
952 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
953 (s390_gregmap): ... this. Also make static const and convert to
954 regcache_map_entry format.
955 (s390x_regmap_gregset): Delete.
956 (s390_regmap_fpregset): Rename to...
957 (s390_fpregmap): ... this. Make static const and convert to
958 regcache_map_entry format.
959 (s390_regmap_upper, s390_regmap_last_break)
960 (s390x_regmap_last_break, s390_regmap_system_call)
961 (s390_regmap_tdb): Likewise.
962 (s390_supply_regset, s390_collect_regset): Remove functions.
963 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
964 s390_supply_regset.
965 (s390_gregset, s390_fpregset, s390_upper_regset)
966 (s390_last_break_regset, s390x_last_break_regset)
967 (s390_system_call_regset, s390_tdb_regset): Make global and
968 replace s390_supply/_collect_regset by regcache_supply/
969 _collect_regset.
970 (s390x_gregset): Delete.
971 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
972 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
973 (s390_regmap_fpregset, s390_regmap_last_break)
974 (s390x_regmap_last_break, s390_regmap_system_call)
975 (s390_regmap_tdb): Delete global variable declarations.
976 (s390_gregset, s390_fpregset, s390_last_break_regset)
977 (s390x_last_break_regset, s390_system_call_regset)
978 (s390_tdb_regset): New global variable declarations.
979
0b309272
AA
9802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
981
982 * regcache.c: Include "regset.h".
983 (regcache_transfer_regset): New local function.
984 (regcache_supply_regset, regcache_collect_regset): New functions.
985 * regcache.h (struct regcache_map_entry): New structure.
986 (REGCACHE_MAP_SKIP): New enum value.
987 (regcache_supply_regset, regcache_collect_regset): New prototypes.
988
7fefa8d7
AA
9892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
990
991 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
992 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
993 (ppc_linux_collect_gregset ): Likewise.
994 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
995 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
996 (ppc_collect_vrregset): Likewise.
997 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
998 Likewise.
999
96c4f946
YQ
10002014-08-07 Yao Qi <yao@codesourcery.com>
1001
1002 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1003 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1004 * remote.c (remote_read_bytes): Likewise.
1005
fffbe6a8
YQ
10062014-08-07 Yao Qi <yao@codesourcery.com>
1007
1008 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1009
5ee8a82c
YQ
10102014-08-07 Yao Qi <yao@codesourcery.com>
1011
1012 PR remote/17230
1013 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1014 TARGET_XFER_OK instead of 0.
1015
bb974a24
GB
10162014-08-07 Gary Benson <gbenson@redhat.com>
1017
1018 * common/common-defs.h: Include errno.h.
1019 * defs.h: Do not include errno.h.
1020 * ada-typeprint.c: Likewise.
1021 * c-typeprint.c: Likewise.
1022 * core-regset.c: Likewise.
1023 * corefile.c: Likewise.
1024 * corelow.c: Likewise.
1025 * event-loop.c: Likewise.
1026 * f-typeprint.c: Likewise.
1027 * gnu-nat.c: Likewise.
1028 * go32-nat.c: Likewise.
1029 * i386gnu-nat.c: Likewise.
1030 * m2-typeprint.c: Likewise.
1031 * nat/linux-btrace.c: Likewise.
1032 * p-typeprint.c: Likewise.
1033 * procfs.c: Likewise.
1034 * remote-sim.c: Likewise.
1035 * rs6000-nat.c: Likewise.
1036 * target.c: Likewise.
1037 * typeprint.c: Likewise.
1038 * ui-file.c: Likewise.
1039 * valops.c: Likewise.
1040 * valprint.c: Likewise.
1041
6d3d12eb
GB
10422014-08-07 Gary Benson <gbenson@redhat.com>
1043
1044 * common/common-defs.h: Include string.h.
1045 * aarch64-tdep.c: Do not include string.h.
1046 * ada-exp.y: Likewise.
1047 * ada-lang.c: Likewise.
1048 * ada-lex.l: Likewise.
1049 * ada-typeprint.c: Likewise.
1050 * ada-valprint.c: Likewise.
1051 * aix-thread.c: Likewise.
1052 * alpha-linux-tdep.c: Likewise.
1053 * alpha-mdebug-tdep.c: Likewise.
1054 * alpha-nat.c: Likewise.
1055 * alpha-osf1-tdep.c: Likewise.
1056 * alpha-tdep.c: Likewise.
1057 * alphanbsd-tdep.c: Likewise.
1058 * amd64-dicos-tdep.c: Likewise.
1059 * amd64-linux-tdep.c: Likewise.
1060 * amd64-nat.c: Likewise.
1061 * amd64-sol2-tdep.c: Likewise.
1062 * amd64fbsd-tdep.c: Likewise.
1063 * amd64obsd-tdep.c: Likewise.
1064 * arch-utils.c: Likewise.
1065 * arm-linux-nat.c: Likewise.
1066 * arm-linux-tdep.c: Likewise.
1067 * arm-tdep.c: Likewise.
1068 * arm-wince-tdep.c: Likewise.
1069 * armbsd-tdep.c: Likewise.
1070 * armnbsd-nat.c: Likewise.
1071 * armnbsd-tdep.c: Likewise.
1072 * armobsd-tdep.c: Likewise.
1073 * avr-tdep.c: Likewise.
1074 * ax-gdb.c: Likewise.
1075 * ax-general.c: Likewise.
1076 * bcache.c: Likewise.
1077 * bfin-tdep.c: Likewise.
1078 * breakpoint.c: Likewise.
1079 * build-id.c: Likewise.
1080 * buildsym.c: Likewise.
1081 * c-exp.y: Likewise.
1082 * c-lang.c: Likewise.
1083 * c-typeprint.c: Likewise.
1084 * c-valprint.c: Likewise.
1085 * charset.c: Likewise.
1086 * cli-out.c: Likewise.
1087 * cli/cli-cmds.c: Likewise.
1088 * cli/cli-decode.c: Likewise.
1089 * cli/cli-dump.c: Likewise.
1090 * cli/cli-interp.c: Likewise.
1091 * cli/cli-logging.c: Likewise.
1092 * cli/cli-script.c: Likewise.
1093 * cli/cli-setshow.c: Likewise.
1094 * cli/cli-utils.c: Likewise.
1095 * coffread.c: Likewise.
1096 * common/agent.c: Likewise.
1097 * common/buffer.c: Likewise.
1098 * common/buffer.h: Likewise.
1099 * common/common-utils.c: Likewise.
1100 * common/filestuff.c: Likewise.
1101 * common/filestuff.c: Likewise.
1102 * common/format.c: Likewise.
1103 * common/print-utils.c: Likewise.
1104 * common/rsp-low.c: Likewise.
1105 * common/signals.c: Likewise.
1106 * common/vec.h: Likewise.
1107 * common/xml-utils.c: Likewise.
1108 * core-regset.c: Likewise.
1109 * corefile.c: Likewise.
1110 * corelow.c: Likewise.
1111 * cp-abi.c: Likewise.
1112 * cp-name-parser.y: Likewise.
1113 * cp-support.c: Likewise.
1114 * cp-valprint.c: Likewise.
1115 * cris-tdep.c: Likewise.
1116 * d-exp.y: Likewise.
1117 * darwin-nat.c: Likewise.
1118 * dbxread.c: Likewise.
1119 * dcache.c: Likewise.
1120 * demangle.c: Likewise.
1121 * dicos-tdep.c: Likewise.
1122 * disasm.c: Likewise.
1123 * doublest.c: Likewise.
1124 * dsrec.c: Likewise.
1125 * dummy-frame.c: Likewise.
1126 * dwarf2-frame.c: Likewise.
1127 * dwarf2loc.c: Likewise.
1128 * dwarf2read.c: Likewise.
1129 * elfread.c: Likewise.
1130 * environ.c: Likewise.
1131 * eval.c: Likewise.
1132 * event-loop.c: Likewise.
1133 * exceptions.c: Likewise.
1134 * exec.c: Likewise.
1135 * expprint.c: Likewise.
1136 * f-exp.y: Likewise.
1137 * f-lang.c: Likewise.
1138 * f-typeprint.c: Likewise.
1139 * f-valprint.c: Likewise.
1140 * fbsd-nat.c: Likewise.
1141 * findcmd.c: Likewise.
1142 * findvar.c: Likewise.
1143 * fork-child.c: Likewise.
1144 * frame.c: Likewise.
1145 * frv-linux-tdep.c: Likewise.
1146 * frv-tdep.c: Likewise.
1147 * gdb.c: Likewise.
1148 * gdb_bfd.c: Likewise.
1149 * gdbarch.c: Likewise.
1150 * gdbarch.sh: Likewise.
1151 * gdbtypes.c: Likewise.
1152 * gnu-nat.c: Likewise.
1153 * gnu-v2-abi.c: Likewise.
1154 * gnu-v3-abi.c: Likewise.
1155 * go-exp.y: Likewise.
1156 * go-lang.c: Likewise.
1157 * go32-nat.c: Likewise.
1158 * guile/guile.c: Likewise.
1159 * guile/scm-auto-load.c: Likewise.
1160 * hppa-hpux-tdep.c: Likewise.
1161 * hppa-linux-nat.c: Likewise.
1162 * hppanbsd-tdep.c: Likewise.
1163 * hppaobsd-tdep.c: Likewise.
1164 * i386-cygwin-tdep.c: Likewise.
1165 * i386-dicos-tdep.c: Likewise.
1166 * i386-linux-tdep.c: Likewise.
1167 * i386-nto-tdep.c: Likewise.
1168 * i386-sol2-tdep.c: Likewise.
1169 * i386-tdep.c: Likewise.
1170 * i386bsd-tdep.c: Likewise.
1171 * i386gnu-nat.c: Likewise.
1172 * i386nbsd-tdep.c: Likewise.
1173 * i386obsd-tdep.c: Likewise.
1174 * i387-tdep.c: Likewise.
1175 * ia64-libunwind-tdep.c: Likewise.
1176 * ia64-linux-nat.c: Likewise.
1177 * inf-child.c: Likewise.
1178 * inf-ptrace.c: Likewise.
1179 * inf-ttrace.c: Likewise.
1180 * infcall.c: Likewise.
1181 * infcmd.c: Likewise.
1182 * inflow.c: Likewise.
1183 * infrun.c: Likewise.
1184 * interps.c: Likewise.
1185 * iq2000-tdep.c: Likewise.
1186 * irix5-nat.c: Likewise.
1187 * jv-exp.y: Likewise.
1188 * jv-lang.c: Likewise.
1189 * jv-typeprint.c: Likewise.
1190 * jv-valprint.c: Likewise.
1191 * language.c: Likewise.
1192 * linux-fork.c: Likewise.
1193 * linux-nat.c: Likewise.
1194 * lm32-tdep.c: Likewise.
1195 * m2-exp.y: Likewise.
1196 * m2-typeprint.c: Likewise.
1197 * m32c-tdep.c: Likewise.
1198 * m32r-linux-nat.c: Likewise.
1199 * m32r-linux-tdep.c: Likewise.
1200 * m32r-rom.c: Likewise.
1201 * m32r-tdep.c: Likewise.
1202 * m68hc11-tdep.c: Likewise.
1203 * m68k-tdep.c: Likewise.
1204 * m68kbsd-tdep.c: Likewise.
1205 * m68klinux-nat.c: Likewise.
1206 * m68klinux-tdep.c: Likewise.
1207 * m88k-tdep.c: Likewise.
1208 * machoread.c: Likewise.
1209 * macrocmd.c: Likewise.
1210 * main.c: Likewise.
1211 * mdebugread.c: Likewise.
1212 * mem-break.c: Likewise.
1213 * memattr.c: Likewise.
1214 * memory-map.c: Likewise.
1215 * mep-tdep.c: Likewise.
1216 * mi/mi-cmd-break.c: Likewise.
1217 * mi/mi-cmd-disas.c: Likewise.
1218 * mi/mi-cmd-env.c: Likewise.
1219 * mi/mi-cmd-stack.c: Likewise.
1220 * mi/mi-cmd-var.c: Likewise.
1221 * mi/mi-cmds.c: Likewise.
1222 * mi/mi-console.c: Likewise.
1223 * mi/mi-getopt.c: Likewise.
1224 * mi/mi-interp.c: Likewise.
1225 * mi/mi-main.c: Likewise.
1226 * mi/mi-parse.c: Likewise.
1227 * microblaze-rom.c: Likewise.
1228 * microblaze-tdep.c: Likewise.
1229 * mingw-hdep.c: Likewise.
1230 * minidebug.c: Likewise.
1231 * minsyms.c: Likewise.
1232 * mips-irix-tdep.c: Likewise.
1233 * mips-linux-tdep.c: Likewise.
1234 * mips-tdep.c: Likewise.
1235 * mips64obsd-tdep.c: Likewise.
1236 * mipsnbsd-tdep.c: Likewise.
1237 * mipsread.c: Likewise.
1238 * mn10300-linux-tdep.c: Likewise.
1239 * mn10300-tdep.c: Likewise.
1240 * monitor.c: Likewise.
1241 * moxie-tdep.c: Likewise.
1242 * mt-tdep.c: Likewise.
1243 * nat/linux-btrace.c: Likewise.
1244 * nat/linux-osdata.c: Likewise.
1245 * nat/linux-procfs.c: Likewise.
1246 * nat/linux-ptrace.c: Likewise.
1247 * nat/linux-waitpid.c: Likewise.
1248 * nbsd-tdep.c: Likewise.
1249 * nios2-linux-tdep.c: Likewise.
1250 * nto-procfs.c: Likewise.
1251 * nto-tdep.c: Likewise.
1252 * objc-lang.c: Likewise.
1253 * objfiles.c: Likewise.
1254 * opencl-lang.c: Likewise.
1255 * osabi.c: Likewise.
1256 * osdata.c: Likewise.
1257 * p-exp.y: Likewise.
1258 * p-lang.c: Likewise.
1259 * p-typeprint.c: Likewise.
1260 * parse.c: Likewise.
1261 * posix-hdep.c: Likewise.
1262 * ppc-linux-nat.c: Likewise.
1263 * ppc-sysv-tdep.c: Likewise.
1264 * ppcfbsd-tdep.c: Likewise.
1265 * ppcnbsd-tdep.c: Likewise.
1266 * ppcobsd-tdep.c: Likewise.
1267 * printcmd.c: Likewise.
1268 * procfs.c: Likewise.
1269 * prologue-value.c: Likewise.
1270 * python/py-auto-load.c: Likewise.
1271 * python/py-gdb-readline.c: Likewise.
1272 * ravenscar-thread.c: Likewise.
1273 * regcache.c: Likewise.
1274 * registry.c: Likewise.
1275 * remote-fileio.c: Likewise.
1276 * remote-m32r-sdi.c: Likewise.
1277 * remote-mips.c: Likewise.
1278 * remote-notif.c: Likewise.
1279 * remote-sim.c: Likewise.
1280 * remote.c: Likewise.
1281 * reverse.c: Likewise.
1282 * rs6000-aix-tdep.c: Likewise.
1283 * ser-base.c: Likewise.
1284 * ser-go32.c: Likewise.
1285 * ser-mingw.c: Likewise.
1286 * ser-pipe.c: Likewise.
1287 * ser-tcp.c: Likewise.
1288 * ser-unix.c: Likewise.
1289 * serial.c: Likewise.
1290 * sh-tdep.c: Likewise.
1291 * sh64-tdep.c: Likewise.
1292 * shnbsd-tdep.c: Likewise.
1293 * skip.c: Likewise.
1294 * sol-thread.c: Likewise.
1295 * solib-dsbt.c: Likewise.
1296 * solib-frv.c: Likewise.
1297 * solib-osf.c: Likewise.
1298 * solib-som.c: Likewise.
1299 * solib-spu.c: Likewise.
1300 * solib-target.c: Likewise.
1301 * solib.c: Likewise.
1302 * somread.c: Likewise.
1303 * source.c: Likewise.
1304 * sparc-nat.c: Likewise.
1305 * sparc-sol2-tdep.c: Likewise.
1306 * sparc-tdep.c: Likewise.
1307 * sparc64-tdep.c: Likewise.
1308 * sparc64fbsd-tdep.c: Likewise.
1309 * sparc64nbsd-tdep.c: Likewise.
1310 * sparcnbsd-tdep.c: Likewise.
1311 * spu-linux-nat.c: Likewise.
1312 * spu-multiarch.c: Likewise.
1313 * spu-tdep.c: Likewise.
1314 * stabsread.c: Likewise.
1315 * stack.c: Likewise.
1316 * std-regs.c: Likewise.
1317 * symfile.c: Likewise.
1318 * symmisc.c: Likewise.
1319 * symtab.c: Likewise.
1320 * target.c: Likewise.
1321 * thread.c: Likewise.
1322 * tilegx-linux-nat.c: Likewise.
1323 * tilegx-tdep.c: Likewise.
1324 * top.c: Likewise.
1325 * tracepoint.c: Likewise.
1326 * tui/tui-command.c: Likewise.
1327 * tui/tui-data.c: Likewise.
1328 * tui/tui-disasm.c: Likewise.
1329 * tui/tui-file.c: Likewise.
1330 * tui/tui-layout.c: Likewise.
1331 * tui/tui-out.c: Likewise.
1332 * tui/tui-regs.c: Likewise.
1333 * tui/tui-source.c: Likewise.
1334 * tui/tui-stack.c: Likewise.
1335 * tui/tui-win.c: Likewise.
1336 * tui/tui-windata.c: Likewise.
1337 * tui/tui-winsource.c: Likewise.
1338 * typeprint.c: Likewise.
1339 * ui-file.c: Likewise.
1340 * ui-out.c: Likewise.
1341 * user-regs.c: Likewise.
1342 * utils.c: Likewise.
1343 * v850-tdep.c: Likewise.
1344 * valarith.c: Likewise.
1345 * valops.c: Likewise.
1346 * valprint.c: Likewise.
1347 * value.c: Likewise.
1348 * varobj.c: Likewise.
1349 * vax-tdep.c: Likewise.
1350 * vaxnbsd-tdep.c: Likewise.
1351 * vaxobsd-tdep.c: Likewise.
1352 * windows-nat.c: Likewise.
1353 * xcoffread.c: Likewise.
1354 * xml-support.c: Likewise.
1355 * xstormy16-tdep.c: Likewise.
1356 * xtensa-linux-nat.c: Likewise.
1357
dccbb609
GB
13582014-08-07 Gary Benson <gbenson@redhat.com>
1359
1360 * common/common-defs.h: Include gdb_assert.h.
1361 * aarch64-tdep.c: Do not include gdb_assert.h.
1362 * addrmap.c: Likewise.
1363 * aix-thread.c: Likewise.
1364 * alpha-linux-tdep.c: Likewise.
1365 * alpha-mdebug-tdep.c: Likewise.
1366 * alphanbsd-tdep.c: Likewise.
1367 * amd64-nat.c: Likewise.
1368 * amd64-tdep.c: Likewise.
1369 * amd64bsd-nat.c: Likewise.
1370 * amd64fbsd-nat.c: Likewise.
1371 * amd64fbsd-tdep.c: Likewise.
1372 * amd64nbsd-nat.c: Likewise.
1373 * amd64nbsd-tdep.c: Likewise.
1374 * amd64obsd-nat.c: Likewise.
1375 * amd64obsd-tdep.c: Likewise.
1376 * arch-utils.c: Likewise.
1377 * arm-tdep.c: Likewise.
1378 * armbsd-tdep.c: Likewise.
1379 * auxv.c: Likewise.
1380 * bcache.c: Likewise.
1381 * bfin-tdep.c: Likewise.
1382 * blockframe.c: Likewise.
1383 * breakpoint.c: Likewise.
1384 * bsd-kvm.c: Likewise.
1385 * bsd-uthread.c: Likewise.
1386 * buildsym.c: Likewise.
1387 * c-exp.y: Likewise.
1388 * c-lang.c: Likewise.
1389 * charset.c: Likewise.
1390 * cleanups.c: Likewise.
1391 * cli-out.c: Likewise.
1392 * cli/cli-decode.c: Likewise.
1393 * cli/cli-dump.c: Likewise.
1394 * cli/cli-logging.c: Likewise.
1395 * cli/cli-script.c: Likewise.
1396 * cli/cli-utils.c: Likewise.
1397 * coffread.c: Likewise.
1398 * common/common-utils.c: Likewise.
1399 * common/queue.h: Likewise.
1400 * common/signals.c: Likewise.
1401 * common/vec.h: Likewise.
1402 * complaints.c: Likewise.
1403 * completer.c: Likewise.
1404 * corelow.c: Likewise.
1405 * cp-abi.c: Likewise.
1406 * cp-name-parser.y: Likewise.
1407 * cp-namespace.c: Likewise.
1408 * cp-support.c: Likewise.
1409 * cris-tdep.c: Likewise.
1410 * dbxread.c: Likewise.
1411 * dictionary.c: Likewise.
1412 * doublest.c: Likewise.
1413 * dsrec.c: Likewise.
1414 * dummy-frame.c: Likewise.
1415 * dwarf2-frame-tailcall.c: Likewise.
1416 * dwarf2-frame.c: Likewise.
1417 * dwarf2expr.c: Likewise.
1418 * dwarf2loc.c: Likewise.
1419 * dwarf2read.c: Likewise.
1420 * eval.c: Likewise.
1421 * event-loop.c: Likewise.
1422 * exceptions.c: Likewise.
1423 * expprint.c: Likewise.
1424 * f-valprint.c: Likewise.
1425 * fbsd-nat.c: Likewise.
1426 * findvar.c: Likewise.
1427 * frame-unwind.c: Likewise.
1428 * frame.c: Likewise.
1429 * frv-tdep.c: Likewise.
1430 * gcore.c: Likewise.
1431 * gdb-dlfcn.c: Likewise.
1432 * gdb_bfd.c: Likewise.
1433 * gdbarch.c: Likewise.
1434 * gdbarch.sh: Likewise.
1435 * gdbtypes.c: Likewise.
1436 * gnu-nat.c: Likewise.
1437 * gnu-v3-abi.c: Likewise.
1438 * go-lang.c: Likewise.
1439 * guile/scm-exception.c: Likewise.
1440 * guile/scm-gsmob.c: Likewise.
1441 * guile/scm-lazy-string.c: Likewise.
1442 * guile/scm-math.c: Likewise.
1443 * guile/scm-pretty-print.c: Likewise.
1444 * guile/scm-safe-call.c: Likewise.
1445 * guile/scm-utils.c: Likewise.
1446 * guile/scm-value.c: Likewise.
1447 * h8300-tdep.c: Likewise.
1448 * hppa-hpux-nat.c: Likewise.
1449 * hppa-tdep.c: Likewise.
1450 * hppanbsd-tdep.c: Likewise.
1451 * hppaobsd-tdep.c: Likewise.
1452 * i386-darwin-nat.c: Likewise.
1453 * i386-darwin-tdep.c: Likewise.
1454 * i386-nto-tdep.c: Likewise.
1455 * i386-tdep.c: Likewise.
1456 * i386bsd-nat.c: Likewise.
1457 * i386fbsd-tdep.c: Likewise.
1458 * i386gnu-nat.c: Likewise.
1459 * i386nbsd-tdep.c: Likewise.
1460 * i386obsd-tdep.c: Likewise.
1461 * i387-tdep.c: Likewise.
1462 * ia64-libunwind-tdep.c: Likewise.
1463 * ia64-tdep.c: Likewise.
1464 * inf-ptrace.c: Likewise.
1465 * inf-ttrace.c: Likewise.
1466 * infcall.c: Likewise.
1467 * infcmd.c: Likewise.
1468 * infrun.c: Likewise.
1469 * inline-frame.c: Likewise.
1470 * interps.c: Likewise.
1471 * jv-lang.c: Likewise.
1472 * jv-typeprint.c: Likewise.
1473 * linux-fork.c: Likewise.
1474 * linux-nat.c: Likewise.
1475 * linux-thread-db.c: Likewise.
1476 * m32c-tdep.c: Likewise.
1477 * m32r-linux-nat.c: Likewise.
1478 * m32r-tdep.c: Likewise.
1479 * m68k-tdep.c: Likewise.
1480 * m68kbsd-nat.c: Likewise.
1481 * m68kbsd-tdep.c: Likewise.
1482 * m88k-tdep.c: Likewise.
1483 * machoread.c: Likewise.
1484 * macroexp.c: Likewise.
1485 * macrotab.c: Likewise.
1486 * maint.c: Likewise.
1487 * mdebugread.c: Likewise.
1488 * memory-map.c: Likewise.
1489 * mep-tdep.c: Likewise.
1490 * mi/mi-common.c: Likewise.
1491 * microblaze-tdep.c: Likewise.
1492 * mingw-hdep.c: Likewise.
1493 * mips-linux-nat.c: Likewise.
1494 * mips-linux-tdep.c: Likewise.
1495 * mips-tdep.c: Likewise.
1496 * mips64obsd-tdep.c: Likewise.
1497 * mipsnbsd-tdep.c: Likewise.
1498 * mn10300-linux-tdep.c: Likewise.
1499 * mn10300-tdep.c: Likewise.
1500 * moxie-tdep.c: Likewise.
1501 * mt-tdep.c: Likewise.
1502 * nat/linux-btrace.c: Likewise.
1503 * nat/linux-osdata.c: Likewise.
1504 * nat/linux-ptrace.c: Likewise.
1505 * nat/mips-linux-watch.c: Likewise.
1506 * nios2-linux-tdep.c: Likewise.
1507 * nios2-tdep.c: Likewise.
1508 * objc-lang.c: Likewise.
1509 * objfiles.c: Likewise.
1510 * obsd-nat.c: Likewise.
1511 * opencl-lang.c: Likewise.
1512 * osabi.c: Likewise.
1513 * parse.c: Likewise.
1514 * ppc-linux-nat.c: Likewise.
1515 * ppc-sysv-tdep.c: Likewise.
1516 * ppcfbsd-nat.c: Likewise.
1517 * ppcfbsd-tdep.c: Likewise.
1518 * ppcnbsd-nat.c: Likewise.
1519 * ppcnbsd-tdep.c: Likewise.
1520 * ppcobsd-nat.c: Likewise.
1521 * ppcobsd-tdep.c: Likewise.
1522 * printcmd.c: Likewise.
1523 * procfs.c: Likewise.
1524 * prologue-value.c: Likewise.
1525 * psymtab.c: Likewise.
1526 * python/py-lazy-string.c: Likewise.
1527 * python/py-value.c: Likewise.
1528 * regcache.c: Likewise.
1529 * reggroups.c: Likewise.
1530 * registry.c: Likewise.
1531 * remote-sim.c: Likewise.
1532 * remote.c: Likewise.
1533 * rs6000-aix-tdep.c: Likewise.
1534 * rs6000-tdep.c: Likewise.
1535 * s390-linux-tdep.c: Likewise.
1536 * score-tdep.c: Likewise.
1537 * ser-base.c: Likewise.
1538 * ser-mingw.c: Likewise.
1539 * sh-tdep.c: Likewise.
1540 * sh64-tdep.c: Likewise.
1541 * solib-darwin.c: Likewise.
1542 * solib-spu.c: Likewise.
1543 * solib-svr4.c: Likewise.
1544 * source.c: Likewise.
1545 * sparc-nat.c: Likewise.
1546 * sparc-sol2-tdep.c: Likewise.
1547 * sparc-tdep.c: Likewise.
1548 * sparc64-sol2-tdep.c: Likewise.
1549 * sparc64-tdep.c: Likewise.
1550 * sparc64fbsd-tdep.c: Likewise.
1551 * sparc64nbsd-tdep.c: Likewise.
1552 * sparc64obsd-tdep.c: Likewise.
1553 * sparcnbsd-tdep.c: Likewise.
1554 * sparcobsd-tdep.c: Likewise.
1555 * spu-multiarch.c: Likewise.
1556 * spu-tdep.c: Likewise.
1557 * stabsread.c: Likewise.
1558 * stack.c: Likewise.
1559 * symfile.c: Likewise.
1560 * symtab.c: Likewise.
1561 * target-descriptions.c: Likewise.
1562 * target-memory.c: Likewise.
1563 * target.c: Likewise.
1564 * tic6x-linux-tdep.c: Likewise.
1565 * tic6x-tdep.c: Likewise.
1566 * tilegx-linux-nat.c: Likewise.
1567 * tilegx-tdep.c: Likewise.
1568 * top.c: Likewise.
1569 * tramp-frame.c: Likewise.
1570 * tui/tui-out.c: Likewise.
1571 * tui/tui-winsource.c: Likewise.
1572 * ui-out.c: Likewise.
1573 * user-regs.c: Likewise.
1574 * utils.c: Likewise.
1575 * v850-tdep.c: Likewise.
1576 * valops.c: Likewise.
1577 * value.c: Likewise.
1578 * varobj.c: Likewise.
1579 * vax-nat.c: Likewise.
1580 * xml-syscall.c: Likewise.
1581 * xml-tdesc.c: Likewise.
1582 * xstormy16-tdep.c: Likewise.
1583 * xtensa-linux-nat.c: Likewise.
1584 * xtensa-tdep.c: Likewise.
1585
e76df0d0
GB
15862014-08-07 Gary Benson <gbenson@redhat.com>
1587
1588 * common/common-defs.h: Include common-utils.h.
1589 * defs.h: Do not include common-utils.h.
1590 * common/gdb_assert.h: Likewise.
1591 * darwin-nat.h: Likewise.
1592 * nat/linux-btrace.c: Likewise.
1593 * target/waitstatus.h: Likewise.
1594
4cb9c816
GB
15952014-08-07 Gary Benson <gbenson@redhat.com>
1596
1597 * common/common-defs.h: Include ptid.h.
1598 * defs.h: Do not include ptid.h.
1599 * inferior.h: Likewise.
1600 * infrun.h: Likewise.
1601 * nat/linux-btrace.h: Likewise.
1602 * nat/linux-osdata.h: Likewise.
1603 * target/waitstatus.h: Likewise.
1604
3995eeee
GB
16052014-08-07 Gary Benson <gbenson@redhat.com>
1606
1607 * common/common-defs.h: Include gdb_locale.h.
1608 * defs.h: Do not include gdb_locale.h.
1609
cb9f1a9b
GB
16102014-08-07 Gary Benson <gbenson@redhat.com>
1611
1612 * common/common-defs.h: Include gdb/signals.h.
1613 * defs.h: Do not include gdb/signals.h.
1614
a5fceff8
GB
16152014-08-07 Gary Benson <gbenson@redhat.com>
1616
1617 * common/common-defs.h: Include pathmax.h.
1618 * defs.h: Do not include pathmax.h.
1619
b9391142
GB
16202014-08-07 Gary Benson <gbenson@redhat.com>
1621
1622 * common/common-defs.h: Include libiberty.h.
1623 * defs.h: Do not include libiberty.h.
1624 * common/queue.h: Likewise.
1625 * cp-name-parser.y: Likewise.
1626 * mi/mi-cmd-catch.c: Likewise.
1627 * python/python.c: Likewise.
1628
0e443c87
GB
16292014-08-07 Gary Benson <gbenson@redhat.com>
1630
1631 * common/common-defs.h: Include ansidecl.h.
1632 * defs.h: Do not include ansidecl.h.
1633 * common/buffer.h: Likewise.
1634 * common/common-utils.h: Likewise.
1635
8ebb3f56
GB
16362014-08-07 Gary Benson <gbenson@redhat.com>
1637
1638 * common/common-defs.h: Include stddef.h.
1639 * defs.h: Do not include stddef.h.
1640 * common/common-utils.h: Likewise.
1641 * amd64fbsd-nat.c: Likewise.
1642 * bcache.c: Likewise.
1643 * charset.c: Likewise.
1644 * common/buffer.h: Likewise.
1645 * common/vec.h: Likewise.
1646 * i386bsd-nat.c: Likewise.
1647 * nat/linux-btrace.h: Likewise.
1648 * ppcfbsd-nat.c: Likewise.
1649 * ppcnbsd-tdep.h: Likewise.
1650 * ppcobsd-nat.c: Likewise.
1651 * ppcobsd-tdep.h: Likewise.
1652 * python/py-gdb-readline.c: Likewise.
1653
8980bdf6
GB
16542014-08-07 Gary Benson <gbenson@redhat.com>
1655
1656 * common/common-defs.h: Include stdarg.h.
1657 * defs.h: Do not include stdarg.h.
1658 * ada-lang.c: Likewise.
1659 * common/common-utils.h: Likewise.
1660 * guile/scm-string.c: Likewise.
1661 * guile/scm-utils.c: Likewise.
1662 * m32c-tdep.c: Likewise.
1663
d7096f71
GB
16642014-08-07 Gary Benson <gbenson@redhat.com>
1665
1666 * common/common-defs.h: Include stdlib.h.
1667 * defs.h: Do not include stdlib.h.
1668 * addrmap.c: Likewise.
1669 * bcache.c: Likewise.
1670 * common/buffer.c: Likewise.
1671 * common/common-utils.c: Likewise.
1672 * cp-name-parser.y: Likewise.
1673 * go32-nat.c: Likewise.
1674 * mn10300-linux-tdep.c: Likewise.
1675 * nat/linux-osdata.c: Likewise.
1676 * tui/tui.c: Likewise.
1677 * windows-nat.c: Likewise.
1678
d02f550d
GB
16792014-08-07 Gary Benson <gbenson@redhat.com>
1680
1681 * common/common-defs.h: Include stdio.h.
1682 * defs.h: Do not include stdio.h.
1683 * ada-lang.c: Likewise.
1684 * common/buffer.c: Likewise.
1685 * common/common-utils.c: Likewise.
1686 * cp-name-parser.y: Likewise.
1687 * gnu-nat.c: Likewise.
1688 * go32-nat.c: Likewise.
1689 * i386gnu-nat.c: Likewise.
1690 * proc-api.c: Likewise.
1691 * proc-events.c: Likewise.
1692 * proc-flags.c: Likewise.
1693 * proc-why.c: Likewise.
1694 * python/python-internal.h: Likewise.
1695 * target-memory.c: Likewise.
1696 * tui/tui-io.c: Likewise.
1697 * tui/tui.c: Likewise.
1698
b6d7a4bf
SM
16992014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1700
1701 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1702 (scan_dyntag_auxv): Same.
1703
af19829b
YQ
17042014-08-06 Yao Qi <yao@codesourcery.com>
1705
1706 * amd64-linux-nat.c: Remove duplicated include
1707 "x86-linux-nat.h".
1708 * i386-linux-nat.c: Likewise.
1709
8e07a239
YQ
17102014-08-06 Yao Qi <yao@codesourcery.com>
1711
1712 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1713 operand" with "Special opcode" in comments.
1714
7bfe8241
GB
17152014-08-05 Gary Benson <gbenson@redhat.com>
1716
1717 * interps.c (initialize_interps): Remove prototype.
1718 (interpreter_initialized): Remove static global.
1719 (interp_add): Do not call initialize_interps.
1720 (initialize_interps): Remove function.
1721
d6c95504
GB
17222014-08-05 Gary Benson <gbenson@redhat.com>
1723
1724 * utils.c (vwarning): Remove spurious va_end.
1725
241fd515
AM
17262014-08-05 Alan Modra <amodra@gmail.com>
1727
1728 * charset.c (convert_between_encodings): Cast result of obstack_base.
1729 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1730 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1731 (read_unwind_info): Use size_t for some locals.
1732 * jit.c (finalize_symtab): Likewise.
1733 * utils.c (hashtab_obstack_allocate): Likewise.
1734 * symmisc.c (print_objfile_statistics): Update format strings.
1735
dc304a94
JK
17362014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1739 (Changes in GDB 7.8): ... here.
1740
3cecbbbe
TT
17412014-08-04 Tom Tromey <tromey@redhat.com>
1742
1743 * target.c (set_targetdebug): New function.
1744 (initialize_targets): Pass set_targetdebug when creating "set
1745 debug target".
1746
6908c509
JB
17472014-08-01 Joel Brobecker <brobecker@adacore.com>
1748
1749 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1750 if detecting a variable-sized field that is not the last field.
1751 Fix struct type length computation.
1752
53e8f97d
JB
17532014-08-01 Joel Brobecker <brobecker@adacore.com>
1754
1755 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1756 Add debug trace.
1757
e068c55d
JB
17582014-08-01 Joel Brobecker <brobecker@adacore.com>
1759
1760 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1761 Remove "+ 8" offset in computation of CHAIN_VMA.
1762
4d4ca2a1
DE
17632014-07-31 Doug Evans <dje@google.com>
1764
1765 * inflow.c (child_terminal_inferior): Add comment.
1766 (child_terminal_ours_for_output): Add comment.
1767 (child_terminal_ours): Add comment.
1768 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1769 (linux_nat_terminal_ours): Add comment.
1770
462f517e
GB
17712014-07-31 Gary Benson <gbenson@redhat.com>
1772
1773 * common/btrace-common.h: Do not include defs.h or server.h.
1774 * nat/mips-linux-watch.h: Likewise.
1775 * gdb-dlfcn.h: Do not include defs.h.
1776 * tracefile.h: Likewise.
1777
74228e77
RM
17782014-07-30 Roland McGrath <mcgrathr@google.com>
1779
1780 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1781
014f9477
TT
17822014-07-30 Tom Tromey <tromey@redhat.com>
1783
1784 * bsd-kvm.c (bsd_kvm_open): Constify.
1785 * corelow.c (core_open): Constify.
1786 * ctf.c (ctf_open): Constify.
1787 * dbug-rom.c (dbug_open): Constify.
1788 * exec.c (exec_open): Constify.
1789 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1790 * microblaze-rom.c (picobug_open): Constify.
1791 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1792 Constify.
1793 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1794 * record-btrace.c (record_btrace_open): Constify.
1795 * record-full.c (record_full_core_open_1, record_full_open_1)
1796 (record_full_open): Constify.
1797 * remote-m32r-sdi.c (m32r_open): Constify.
1798 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1799 (rockhopper_open, lsi_open): Constify.
1800 * remote-sim.c (gdbsim_open): Constify.
1801 * remote.c (remote_open, extended_remote_open, remote_open_1):
1802 Constify.
1803 * target.h (struct target_ops) <to_open>: Make "arg" const.
1804 * tracefile-tfile.c (tfile_open): Constify.
1805
e799154c
TT
18062014-07-30 Tom Tromey <tromey@redhat.com>
1807
1808 * breakpoint.c (map_breakpoint_numbers): Update.
1809 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1810 (get_number_const): New function.
1811 (get_number): Rewrite using get_number_const.
1812 (init_number_or_range): Make "string" const.
1813 (number_is_in_list): Make "list" const.
1814 * cli/cli-utils.h (get_number_const): Declare.
1815 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1816 (init_number_or_range, number_is_in_list): Update.
1817 * printcmd.c (map_display_numbers): Update.
1818 * value.c (value_from_history_ref): Constify.
1819 * value.h (value_from_history_ref): Update.
1820
5f08566b
TT
18212014-07-30 Tom Tromey <tromey@redhat.com>
1822
1823 * corefile.c (hook_type, call_extra_exec_file_hooks)
1824 (specify_exec_file_hook): Constify.
1825 * exec.c (exec_file_attach): Make "filename" const.
1826 * gdbcore.h (deprecated_exec_file_display_hook)
1827 (specify_exec_file_hook, exec_file_attach): Constify.
1828 * main.c (captured_main): Use catch_command_errors_const.
1829
8981c758
TT
18302014-07-30 Tom Tromey <tromey@redhat.com>
1831
1832 * target.c (open_target): New function.
1833 (add_target_with_completer, add_deprecated_target_alias): Use
1834 set_cmd_sfunc, set_cmd_context.
1835 (debug_to_open): Remove.
1836 (setup_target_debug): Update.
1837
a1c7835a
YQ
18382014-07-30 Yao Qi <yao@codesourcery.com>
1839
1840 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1841 comments.
1842 * parse.c (exp_iterate): Update comments.
1843
976411d6
GB
18442014-07-30 Gary Benson <gbenson@redhat.com>
1845
1846 * common/common-defs.h: New file.
1847 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1848 * defs.h: Include common-defs.h.
1849 Do not include config.h or build-gnulib/config.h.
1850
5d4848a4
GB
18512014-07-30 Gary Benson <gbenson@redhat.com>
1852
1853 * common/common-utils.h: Do not include config.h.
1854 * nat/linux-btrace.h: Likewise.
1855
d41f6d8e
GB
18562014-07-30 Gary Benson <gbenson@redhat.com>
1857
1858 * btrace.c: Include defs.h.
1859 * common/ptid.c: Include defs.h or server.h as appropriate.
1860 * nat/mips-linux-watch.c: Likewise.
1861
84202f9c
TT
18622014-07-29 Tom Tromey <tromey@redhat.com>
1863
1864 * target.c (target_is_pushed): Simplify.
1865
2530441c
JB
18662014-07-29 Joel Brobecker <brobecker@adacore.com>
1867
1868 GDB 7.8 released.
1869
7e09a223
YQ
18702014-07-29 Yao Qi <yao@codesourcery.com>
1871
1872 PR gdb/17206
1873 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1874
7ebdbe92
DE
18752014-07-28 Doug Evans <xdje42@gmail.com>
1876
1877 PR guile/17203
1878 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1879 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1880 parameters.
1881
f347ffc9
WN
18822014-07-28 Will Newton <will.newton@linaro.org>
1883
1884 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1885 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1886 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1887 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1888 (THUMB2_EABI_SYSCALL): Likewise.
1889 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1890 struct tramp_frame.
1891 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1892 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1893
37c5f1f7
DE
18942014-07-27 Doug Evans <xdje42@gmail.com>
1895
1896 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1897
0c3abbc7
DE
18982014-07-27 Doug Evans <xdje42@gmail.com>
1899
1900 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1901
e76c5d17
DE
19022014-07-26 Ludovic Courtès <ludo@gnu.org>
1903 Doug Evans <xdje42@gmail.com>
1904
1905 PR guile/17146
1906 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1907 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1908 * configure.ac: Try to use guild to compile an scm file, if it fails
1909 then disable guile support.
1910 * configure: Regenerate.
1911 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1912 GUILE_FILE_LIST.
1913 (GUILE_COMPILED_FILES): New variable.
1914 (GUILE_FILES) Update.
1915 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1916 (stamp-guile): Compile scm files.
1917 * guile/guile.c (boot_guile_support): New function.
1918 (standard_throw_args_p): New function.
1919 (print_standard_throw_error, print_throw_error): New functions.
1920 (handle_boot_error): New function.
1921 (initialize_scheme_side): Rewrite to call boot_guile_support.
1922 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1923 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1924
186fcde0
DE
19252014-07-26 Ludovic Courtès <ludo@gnu.org>
1926 Doug Evans <xdje42@gmail.com>
1927
1928 PR guile/17146
1929 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1930 * guile/lib/gdb/support.scm: New file.
1931 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1932 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1933 All uses updated.
1934 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1935 All uses updated.
1936 (%assert-type): Ditto, and renamed to assert-type.
1937 (%exception-print-style): Delete.
1938
4df42755
DE
19392014-07-26 Doug Evans <xdje42@gmail.com>
1940
1941 PR build/17105
1942 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1943 * configure: Regenerate.
1944 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1945 PYTHON_FILES.
1946 (PYTHON_FILES): New variable.
1947 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1948 (GUILE_FILES): New variable.
1949 (stamp-python, install-python, uninstall-python): Handle empty
1950 file list.
1951 (stamp-guile, install-guile, uninstall-guile): Ditto.
1952
ee7333ae
DE
19532014-07-26 Doug Evans <xdje42@gmail.com>
1954
1955 PR guile/17177
1956 * guile/lib/gdb.scm (pretty-printers): Export.
1957 (set-pretty-printers!): Export.
1958 * guile/lib/gdb/printing.scm (gdb module): Update.
1959 (prepend-pretty-printer!, append-pretty-printer!): Update.
1960 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1961 (pretty_printer_list_var): Delete.
1962 (pretty_printer_list): New static global.
1963 (gdbscm_pretty_printers): New function.
1964 (gdbscm_set_pretty_printers_x): New function.
1965 (ppscm_find_pretty_printer_from_gdb): Update.
1966 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1967 (gdbscm_initialize_pretty_printers): Update.
1968
74edf516
DE
19692014-07-26 Doug Evans <xdje42@gmail.com>
1970
1971 PR 17185
1972 * configure.ac: Add check for header gc/gc.h.
1973 Add check for function setenv.
1974 * configure: Regenerate.
1975 * config.in: Regenerate.
1976 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1977
d54398a7
MR
19782014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1979
1980 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1981 variation in gdbarch matching.
1982
ab16fce8
TT
19832014-07-25 Tom Tromey <tromey@redhat.com>
1984
1985 * exec.c (using_exec_ops): Remove.
1986 (exec_close_1): Update. Remove extraneous block, reindent.
1987 (add_target_sections): Use target_is_pushed.
1988
88056fbb
PA
19892014-07-25 Pedro Alves <palves@redhat.com>
1990
1991 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1992 * monitor.c (monitor_create_inferior): Likewise.
1993 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1994 * remote-sim.c (gdbsim_create_inferior): Likewise.
1995 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1996 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1997 * windows-nat.c (do_initial_windows_stuff): Likewise.
1998
70509625
PA
19992014-07-25 Pedro Alves <palves@redhat.com>
2000
2001 * NEWS: Mention signal passing and "signal" command changes.
2002 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2003 comment.
2004 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2005 call.
2006 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2007 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2008 (jump_command): Adjust clear_proceed_status call.
2009 (signal_command): Warn if other thread that are resumed have
2010 signals that will be delivered. Adjust clear_proceed_status call.
2011 (until_next_command, finish_command)
2012 (proceed_after_attach_callback, attach_command_post_wait)
2013 (attach_command): Adjust clear_proceed_status call.
2014 * infrun.c (proceed_after_vfork_done): Likewise.
2015 (proceed_after_attach_callback): Adjust comment.
2016 (clear_proceed_status_thread): Clear stop_signal if not in pass
2017 state.
2018 (clear_proceed_status_callback): Delete.
2019 (clear_proceed_status): New 'step' parameter. Only clear the
2020 proceed status of threads the command being prepared is about to
2021 resume.
2022 (proceed): If passed in an explicit signal, override stop_signal
2023 with it. Don't pass the last stop signal to the thread we're
2024 resuming.
2025 (init_wait_for_inferior): Adjust clear_proceed_status call.
2026 (switch_back_to_stepped_thread): Clear the signal if it should not
2027 be passed.
2028 * infrun.h (clear_proceed_status): New 'step' parameter.
2029 (user_visible_resume_ptid): Add comment.
2030 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2031 signal is in pass state.
2032 * remote.c (append_pending_thread_resumptions): Likewise.
2033 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2034
d8be2939
TT
20352014-07-25 Tom Tromey <tromey@redhat.com>
2036
2037 * target.h (target_stopped_data_address)
2038 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2039 parentheses.
2040
7d0d9d2b
PL
20412014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2042
2043 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2044 comments.
2045 (avr_pointer_to_address): Likewise.
2046
e9e7f724
TT
20472014-07-24 Tom Tromey <tromey@redhat.com>
2048
2049 * monitor.c (compile_pattern): Update.
2050 * target.h (struct target_ops) <to_shortname, to_longname,
2051 to_doc>: Now const.
2052
1947513d
TT
20532014-07-24 Tom Tromey <tromey@redhat.com>
2054
2055 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2056 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2057 (add_info_alias, add_com): Make "doc" const.
2058 (print_doc_line): Make "str" const.
2059 (delete_cmd): Update.
2060 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2061 (print_doc_line): Update.
2062 * cli/cli-script.c (document_command): Update.
2063 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2064 (add_com, add_info, add_info_alias): Update.
2065 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2066 * python/py-cmd.c (cmdpy_destroyer): Update.
2067
64e61d29
TT
20682014-07-24 Tom Tromey <tromey@redhat.com>
2069
2070 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2071 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2072 (help_cmd_list): Constify.
2073 (lookup_cmd): Update.
2074 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2075 const.
2076 (help_cmd_list, apropos_cmd): Update.
2077 * cli/cli-script.c (show_user): Update.
2078 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2079 * cli/cli-setshow.h (cmd_show_list): Update.
2080 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2081 (cmd_show_list): Update.
2082 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2083 * python/py-cmd.c (cmdpy_destroyer): Update.
2084
429e55ea
TT
20852014-07-24 Tom Tromey <tromey@redhat.com>
2086
2087 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2088 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2089 const.
2090 * command.h (deprecate_cmd): Update.
2091 * maint.c (maintenance_do_deprecate): Add casts.
2092
64669f3b
TT
20932014-07-24 Tom Tromey <tromey@redhat.com>
2094
2095 * cli/cli-decode.c (help_cmd): Make parameter "const".
2096 * cli/cli-decode.h (help_cmd): Update.
2097
d3d3328b
TT
20982014-07-24 Tom Tromey <tromey@redhat.com>
2099
2100 * stack.c (up_silently_base, down_silently_base): Make argument
2101 const.
2102
414842dc
TT
21032014-07-24 Tom Tromey <tromey@redhat.com>
2104
2105 * solib.c (solib_add): Make "pattern" const.
2106 * solib.h (solib_add): Update.
2107
baa336ce
TT
21082014-07-24 Tom Tromey <tromey@redhat.com>
2109
2110 * remote.c (remote_serial_open, print_packet, putpkt)
2111 (putpkt_binary): Constify.
2112 * remote.h (putpkt): Update.
2113
5a19e2d0
TT
21142014-07-24 Tom Tromey <tromey@redhat.com>
2115
2116 * monitor.c (monitor_open): Make "args" const.
2117 * monitor.h (monitor_open): Update.
2118
fc4baa5e
TT
21192014-07-24 Tom Tromey <tromey@redhat.com>
2120
2121 * maint.c (match_bfd_flags): Make "string" const.
2122 (print_bfd_section_info): Remove casts.
2123 (print_objfile_section_info): Make "string" const.
2124
0d5f0dbe
TT
21252014-07-24 Tom Tromey <tromey@redhat.com>
2126
2127 * inf-child.c (inf_child_open_target): Make "arg" const.
2128 * inf-child.h (inf_child_open_target): Update.
2129
41c77899
TT
21302014-07-24 Tom Tromey <tromey@redhat.com>
2131
2132 * environ.c (unset_in_environ): Make "var" const.
2133 * environ.h (unset_in_environ): Update.
2134
93db0d79
TT
21352014-07-24 Tom Tromey <tromey@redhat.com>
2136
2137 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2138 Make "cmd" const.
2139 (scan_filename_with_cleanup): Likewise.
2140 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2141 Make arguments const.
2142 (restore_command): Update.
2143
36d6eb95
PA
21442014-07-24 Pedro Alves <palves@redhat.com>
2145
2146 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2147
8009206a
TT
21482014-07-24 Tom Tromey <tromey@redhat.com>
2149 Gary Benson <gbenson@redhat.com>
2150
2151 * nat/linux-ptrace.c (additional_flags): New global.
2152 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2153 additional_flags; don't check GDBSERVER.
2154 (linux_ptrace_set_additional_flags): New function.
2155 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2156 Declare.
2157 * linux-nat.c (_initialize_linux_nat): Call
2158 linux_ptrace_set_additional_flags.
2159
a7068b60
TT
21602014-07-24 Tom Tromey <tromey@redhat.com>
2161
2162 * make-target-delegates (munge_type, write_debugmethod): New
2163 functions.
2164 (debug_names): New global.
2165 ($TARGET_DEBUG_PRINTER): New global.
2166 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2167 name.
2168 Write debug methods. Generate init_debug_target.
2169 * target-debug.h: New file.
2170 * target-delegates.c: Rebuild.
2171 * target.c: Include target-debug.h.
2172 (debug_target): Hoist definition.
2173 (target_kill, target_get_section_table, target_memory_map)
2174 (target_flash_erase, target_flash_done, target_detach)
2175 (target_disconnect, target_wait, target_resume)
2176 (target_pass_signals, target_program_signals, target_follow_fork)
2177 (target_mourn_inferior, target_search_memory)
2178 (target_thread_address_space, target_close)
2179 (target_find_new_threads, target_core_of_thread)
2180 (target_verify_memory, target_insert_mask_watchpoint)
2181 (target_remove_mask_watchpoint): Remove targetdebug code.
2182 (debug_to_post_attach, debug_to_prepare_to_store)
2183 (debug_to_files_info, debug_to_insert_breakpoint)
2184 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2185 (debug_to_region_ok_for_hw_watchpoint)
2186 (debug_to_can_accel_watchpoint_condition)
2187 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2188 (debug_to_watchpoint_addr_within_range)
2189 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2190 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2191 (debug_to_terminal_init, debug_to_terminal_inferior)
2192 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2193 (debug_to_terminal_save_ours, debug_to_terminal_info)
2194 (debug_to_load, debug_to_post_startup_inferior)
2195 (debug_to_insert_fork_catchpoint)
2196 (debug_to_remove_fork_catchpoint)
2197 (debug_to_insert_vfork_catchpoint)
2198 (debug_to_remove_vfork_catchpoint)
2199 (debug_to_insert_exec_catchpoint)
2200 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2201 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2202 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2203 (setup_target_debug): Call init_debug_target.
2204 * target.h (TARGET_DEBUG_PRINTER): New macro.
2205 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2206 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2207
2c51604d
GB
22082014-07-24 Gary Benson <gbenson@redhat.com>
2209
2210 * exceptions.h (throw_vfatal): Renamed to...
2211 (throw_vquit): New declaration.
2212 (throw_quit): Likewise.
2213 * exceptions.c (throw_vfatal): Renamed to...
2214 (throw_vquit): New function.
2215 (throw_quit): Likewise.
2216 (throw_error): Call throw_verror rather than throw_it.
2217 * utils.h (vfatal): Removed.
2218 (fatal): Likewise.
2219 * utils.c (vfatal): Removed.
2220 (fatal): Likewise.
2221 (internal_verror): Replaced call to fatal with call to throw_quit.
2222 (quit): Replaced calls to fatal with calls to throw_quit.
2223
34211963
ME
22242014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2225
2226 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2227 target_read_code.
2228
a52b4d3e
ME
22292014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2230
2231 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2232 less than zero in conditional expression.
2233
a8bdc56b
TT
22342014-07-23 Tom Tromey <tromey@redhat.com>
2235
2236 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2237 ($INTRO_PART): Don't match whitespace.
2238 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2239 argument matching.
2240 ($METHOD): Add $METHOD_TRAILER.
2241 (trim): Rewrite.
2242 (scan_target_h): New sub.
2243 Change main loop not to collect state.
2244 * target-delegates.c: Rebuild.
2245
91b52240
GB
22462014-07-23 Gary Benson <gbenson@redhat.com>
2247
2248 * cp-support.c (gdb_demangle): Fix build on systems without
2249 sigaltstack.
2250
45326f6f
JK
22512014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2252
2253 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2254 for reference entry value target data value.
2255
e214cf6c
JK
22562014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2257
2258 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2259 value_available_contents_eq.
2260
bddbbedd
PA
22612014-07-22 Pedro Alves <palves@redhat.com>
2262
2263 * value.c (allocate_optimized_out_value): Don't mark value as
2264 non-lazy.
2265
45c71484
JW
22662014-07-22 Jiong Wang <jiong.wang@arm.com>
2267
2268 * MAINTAINERS (Write After Approval): Update my email address.
2269
9597b22a
DE
22702014-07-20 Doug Evans <dje@google.com>
2271
2272 PR server/17147
2273 * remote.c (putpkt_binary): Add text to error message.
2274
91101fe5
YQ
22752014-07-20 Yao Qi <yao@codesourcery.com>
2276
2277 * eval.c: Remove "Chill" from comments.
2278 * gdbtypes.h: Likewise.
2279 * symtab.h: Likewise.
2280
c9402c95
YQ
22812014-07-20 Yao Qi <yao@codesourcery.com>
2282
2283 * std-operator.def: Update comments to TERNOP_SLICE.
2284
ae8fddda
YQ
22852014-07-20 Yao Qi <yao@codesourcery.com>
2286
2287 * std-operator.def: Remove BINOP_RANGE.
2288 * breakpoint.c (watchpoint_exp_is_const): Update.
2289 * expprint.c (dump_subexp_body_standard): Likewise.
2290 * eval.c (init_array_element): Remove dead code.
2291 (evaluate_subexp_standard): Likewise.
2292
9c816640
YQ
22932014-07-20 Yao Qi <yao@codesourcery.com>
2294
2295 * std-operator.def: Remove BINOP_IN.
2296 * breakpoint.c (watchpoint_exp_is_const): Update.
2297 * eval.c (evaluate_subexp_standard): Likewise.
2298 * expprint.c (dump_subexp_body_standard): Likewise.
2299
164224e9
ME
23002014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2301
2302 * microblaze-tdep.c (microblaze_register_names): Add
2303 the rshr and rslr register names.
2304 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2305 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2306 Use of tdesc_numbered_register. Use of
2307 microblaze_register_g_packet_guesses. Use of
2308 tdesc_use_registers. Use of set_gdbarch_register_type.
2309 (microblaze_register_g_packet_guesses): New.
2310 * microblaze-tdep.h (microblaze_reg_num): Add
2311 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2312 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2313 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2314 * features/microblaze-core.xml: New file.
2315 * features/microblaze-stack-protect.xml: New file.
2316 * features/microblaze-with-stack-protect.c: New file.
2317 * features/microblaze-with-stack-protect.xml: New file.
2318 * features/microblaze.xml: New file.
2319 * features/microblaze.c: New file.
2320 * features/Makefile (microblaze-with-stack-protect): Add
2321 microblaze-with-stack-protect microblaze and microblaze-expedite.
2322 * regformats/microblaze-with-stack-protect.dat: New file.
2323 * regformats/microblaze.dat: New file.
2324 * doc/gdb.texinfo (MicroBlaze Features): Added.
2325
e8b2341c
TT
23262014-07-18 Tom Tromey <tromey@redhat.com>
2327
2328 * exec.c (exec_ops): Now static.
2329 * exec.h (exec_ops): Don't declare.
2330
44e89118
TT
23312014-07-18 Tom Tromey <tromey@redhat.com>
2332
2333 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2334 to find_target_beneath.
2335 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2336 find_target_beneath.
2337 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2338
b0ed115f
TT
23392014-07-18 Tom Tromey <tromey@redhat.com>
2340
2341 PR gdb/17130:
2342 * utils.c (quit): Use target_supports_terminal_ours.
2343 * target.h (target_supports_terminal_ours): Declare.
2344 * target.c (target_supports_delete_record): Don't check
2345 to_delete_record against NULL.
2346 (target_supports_terminal_ours): New function.
2347
e75fdfca
TT
23482014-07-18 Tom Tromey <tromey@redhat.com>
2349
2350 PR gdb/17130:
2351 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2352 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2353 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2354 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2355 * windows-nat.c (windows_xfer_partial): Always delegate.
2356 * record-btrace.c (record_btrace_xfer_partial): Simplify
2357 delegation.
2358 (record_btrace_fetch_registers, record_btrace_store_registers)
2359 (record_btrace_prepare_to_store, record_btrace_resume)
2360 (record_btrace_wait, record_btrace_find_new_threads)
2361 (record_btrace_thread_alive): Likewise.
2362 * procfs.c (procfs_xfer_partial): Always delegate.
2363 * corelow.c (core_xfer_partial): Always delegate.
2364 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2365
83814951
TT
23662014-07-18 Tom Tromey <tromey@redhat.com>
2367
2368 * exec.c (exec_make_note_section): Move earlier.
2369
b8b8facf
DE
23702014-07-17 Doug Evans <dje@google.com>
2371
74b49205 2372 PR gdb/17170
b8b8facf
DE
2373 * maint.c (count_symtabs_and_blocks): Handle NULL
2374 current_program_space.
2375 (report_command_stats): Check global enabled flag in addition to
2376 recorded enabled flag.
2377 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2378
69ff6be5
PA
23792014-07-16 Pedro Alves <palves@redhat.com>
2380
2381 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2382
252db1b5
TT
23832014-07-16 Tom Tromey <tromey@redhat.com>
2384
2385 * target.h (struct target_ops) <to_delete_record>: Reformat
2386 comment.
2387
a432721e
TT
23882014-07-16 Tom Tromey <tromey@redhat.com>
2389
2390 * target-delegates.c: Rebuild.
2391
487d9753
PL
23922014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2393
2394 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2395 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2396 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2397 (avr_pointer_to_address): Likewise.
2398 (avr_address_class_type_flags): New function.
2399 (avr_address_class_type_flags_to_name): Likewise.
2400 (avr_address_class_name_to_type_flags): Likewise.
2401 (avr_gdbarch_init): Set address_class_type_flags,
2402 address_class_type_flags_to_name and
2403 address_class_name_to_type_flags.
2404
57745c90
PA
24052014-07-15 Pedro Alves <palves@redhat.com>
2406
2407 * linux-nat.c (kill_callback): Save errno and work with saved
2408 copy.
2409
2d40be18
SM
24102014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2411
2412 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2413
572f6555
EBM
24142014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2415
2416 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2417 breakpoint support correctly.
2418
cc1c52ad
PA
24192014-07-14 Pedro Alves <palves@redhat.com>
2420
2421 * utils.c (prompt_for_continue): Call target_terminal_ours.
2422
1e973570
PA
24232014-07-14 Pedro Alves <palves@redhat.com>
2424
2425 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2426 catch_errors. Don't re-enable stdin or notify observers where,
2427 and rethrow error.
2428 (fetch_inferior_event_wrapper): Delete.
2429
93d6eb10
PA
24302014-07-14 Pedro Alves <palves@redhat.com>
2431
2432 PR gdb/17072
2433 * top.c: Include "inf-loop.h".
2434 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2435 field.
2436 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2437 was async before.
2438 (gdb_readline_wrapper): Store whether the target is async, and
2439 make it sync.
2440
0017922d
PA
24412014-07-14 Pedro Alves <palves@redhat.com>
2442
2443 PR gdb/17072
2444 * top.c (gdb_readline_wrapper_line): Tweak comment.
2445 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2446 the input handler callback.
2447
94696ad3
PA
24482014-07-14 Pedro Alves <palves@redhat.com>
2449
2450 PR gdb/17072
2451 * main.c: Include event-top.h.
2452 (handle_command_errors): New function.
2453 (catch_command_errors, catch_command_errors_const): Use it.
2454
9d1e69a2
PA
24552014-07-14 Pedro Alves <palves@redhat.com>
2456
2457 * exceptions.c (catch_command_errors, catch_command_errors_const):
2458 Moved to main.c.
2459 * exceptions.h (catch_command_errors_ftype)
2460 (catch_command_errors_const_ftype): Moved to main.c.
2461 (catch_command_errors, catch_command_errors_const): Delete
2462 declarations.
2463 * main.c (catch_command_errors_ftype)
2464 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2465 (catch_command_errors, catch_command_errors_const)): Moved here
2466 from exceptions.c and make static.
2467
feefc97b
PA
24682014-07-14 Pedro Alves <palves@redhat.com>
2469
2470 * exceptions.c (print_any_exception): Delete.
2471 (catch_exceptions_with_msg): Use exception_print instead of
2472 print_any_exception.
2473 (catch_errors): Use exception_fprintf instead of
2474 print_any_exception.
2475 (catch_command_errors, catch_command_errors_const): Use
2476 exception_print instead of print_any_exception.
2477
c933f875
PA
24782014-07-14 Pedro Alves <palves@redhat.com>
2479
2480 * infcall.c (run_inferior_call): Set 'sync_execution' while
2481 running the inferior call.
2482
feb6f816
PA
24832014-07-14 Pedro Alves <palves@redhat.com>
2484
2485 * value.c (value_contents_equal): Delete function.
2486 * value.h (value_contents_equal): Delete declaration.
2487
d98b7a16
TT
24882014-07-14 Tom Tromey <tromey@redhat.com>
2489
2490 PR exp/17106:
2491 * gdbtypes.c (is_dynamic_type_internal): New function, from
2492 is_dynamic_type.
2493 (is_dynamic_type): Rewrite.
2494 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2495 (resolve_dynamic_struct): Likewise.
2496 (resolve_dynamic_type_internal): New function, from
2497 resolve_dynamic_type.
2498 (resolve_dynamic_type): Rewrite.
2499
548740d6
TT
25002014-07-14 Tom Tromey <tromey@redhat.com>
2501
2502 * target.c (target_require_runnable): Also check record_stratum.
2503 Update comment.
2504
808f7ab1
YQ
25052014-07-11 Yao Qi <yao@codesourcery.com>
2506
2507 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2508 thumb_instruction_restores_sp return true.
2509
540314bd
YQ
25102014-07-11 Yao Qi <yao@codesourcery.com>
2511
2512 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2513 (thumb_in_function_epilogue_p): Call
2514 thumb_instruction_restores_sp.
2515
1db01f22
YQ
25162014-07-11 Yao Qi <yao@codesourcery.com>
2517
2518 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2519 'add sp, #imm'.
2520 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2521
3116063b
GB
25222014-07-11 Gary Benson <gbenson@redhat.com>
2523
2524 * amd64-linux-nat.c (gdbcore.h): Remove include.
2525 (regset.h): Likewise.
2526 (nat/linux-btrace.h): Likewise.
2527 (btrace.h): Likewise.
2528 (gdb_assert.h): Likewise.
2529 (string.h): Likewise.
2530 (sys/uio.h): Likewise.
2531 (sys/debugreg.h): Likewise.
2532 (sys/syscall.h): Likewise.
2533 (sys/procfs.h): Likewise.
2534 (sys/user.h): Likewise.
2535 (asm/ptrace.h): Likewise.
2536 (i386-nat.h): Likewise.
2537 * i386-linux-nat.c (i386-nat.h): Likewise.
2538 (regset.h): Likewise.
2539 (target.h): Likewise.
2540 (linux-nat.h): Likewise.
2541 (nat/linux-btrace.h): Likewise.
2542 (btrace.h): Likewise.
2543 (gdb_assert.h): Likewise.
2544 (string.h): Likewise.
2545 (sys/uio.h): Likewise.
2546 (sys/user.h): Likewise.
2547 (sys/procfs.h): Likewise.
2548 (sys/reg.h): Likewise.
2549 (sys/debugreg.h): Likewise.
2550 (ORIG_EAX): Remove definition.
2551
040baaf6
GB
25522014-07-11 Gary Benson <gbenson@redhat.com>
2553
2554 * i386-linux-nat.h: New file.
2555 * x86-linux-nat.h: Likewise.
2556 * x86-linux-nat.c: Likewise.
2557 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2558 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2559 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2560 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2561 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2562 (PTRACE_SETREGSET): Likewise.
2563 (arch_lwp_info): Now in x86-linux-nat.c.
2564 (have_ptrace_getregset): Now in x86-linux-nat.h.
2565 (x86_linux_dr_get): Now in x86-linux-nat.c.
2566 (x86_linux_dr_set): Likewise.
2567 (x86_linux_dr_get_addr): Likewise.
2568 (x86_linux_dr_get_control): Likewise.
2569 (x86_linux_dr_get_status): Likewise.
2570 (update_debug_registers_callback): Likewise.
2571 (x86_linux_dr_set_control): Likewise.
2572 (x86_linux_dr_set_addr): Likewise.
2573 (x86_linux_prepare_to_resume): Likewise.
2574 (x86_linux_new_thread): Likewise.
2575 (x86_linux_new_fork): Likewise.
2576 (x86_linux_get_thread_area): Likewise.
2577 (super_post_startup_inferior): Likewise.
2578 (x86_linux_child_post_startup_inferior): Likewise.
2579 (AMD64_LINUX_USER64_CS): Likewise.
2580 (AMD64_LINUX_X32_DS): Likewise.
2581 (x86_linux_read_description): Likewise.
2582 (x86_linux_enable_btrace): Likewise.
2583 (x86_linux_disable_btrace): Likewise.
2584 (x86_linux_teardown_btrace): Likewise.
2585 (x86_linux_read_btrace): Likewise.
2586 (x86_linux_create_target): Likewise.
2587 (x86_linux_add_target): Likewise.
2588 * i386-linux-nat.c (x86-linux-nat.h): New include.
2589 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2590 (PTRACE_SETREGSET): Likewise.
2591 (arch_lwp_info): Now in x86-linux-nat.c.
2592 (have_ptrace_getregset): Now in x86-linux-nat.h.
2593 (x86_linux_dr_get): Now in x86-linux-nat.c.
2594 (x86_linux_dr_set): Likewise.
2595 (x86_linux_dr_get_addr): Likewise.
2596 (x86_linux_dr_get_control): Likewise.
2597 (x86_linux_dr_get_status): Likewise.
2598 (update_debug_registers_callback): Likewise.
2599 (x86_linux_dr_set_control): Likewise.
2600 (x86_linux_dr_set_addr): Likewise.
2601 (x86_linux_prepare_to_resume): Likewise.
2602 (x86_linux_new_thread): Likewise.
2603 (x86_linux_new_fork): Likewise.
2604 (x86_linux_get_thread_area): Likewise.
2605 (super_post_startup_inferior): Likewise.
2606 (x86_linux_child_post_startup_inferior): Likewise.
2607 (AMD64_LINUX_USER64_CS): Likewise.
2608 (AMD64_LINUX_X32_DS): Likewise.
2609 (x86_linux_read_description): Likewise.
2610 (x86_linux_enable_btrace): Likewise.
2611 (x86_linux_disable_btrace): Likewise.
2612 (x86_linux_teardown_btrace): Likewise.
2613 (x86_linux_read_btrace): Likewise.
2614 (x86_linux_create_target): Likewise.
2615 (x86_linux_add_target): Likewise.
2616
1aa7e42c
GB
26172014-07-11 Gary Benson <gbenson@redhat.com>
2618
2619 * amd64-linux-nat.c: Comment and whitespace changes.
2620 * i386-linux-nat.c: Comment and whitespace changes.
2621
c1e246a0
GB
26222014-07-11 Gary Benson <gbenson@redhat.com>
2623
2624 * amd64-linux-nat.c (x86_linux_create_target): New function.
2625 (x86_linux_add_target): Likewise.
2626 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2627 * i386-linux-nat.c (x86_linux_create_target): New function.
2628 (x86_linux_add_target): Likewise.
2629 (_initialize_i386_linux_nat): Delegate to the above new functions.
2630
8c420b8d
GB
26312014-07-11 Gary Benson <gbenson@redhat.com>
2632
2633 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2634 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2635 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2636 (ps_get_thread_area): Delegate to the above.
2637
cb1da100
GB
26382014-07-11 Gary Benson <gbenson@redhat.com>
2639
2640 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2641 x86_linux_read_description. All uses updated. amd64-specific
2642 code conditionalized. Conditionalized i386-specific code added.
2643 Redundant cast removed.
2644 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2645 x86_linux_read_description. All uses updated. i386-specific
2646 code conditionalized. Conditionalized amd64-specific code added.
2647 One sizeof replaced with the actual type it is describing.
2648
2acf3cd0
GB
26492014-07-11 Gary Benson <gbenson@redhat.com>
2650
2651 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2652 x86_linux_dr_get. All uses updated.
2653 (amd64_linux_dr_set): Renamed to
2654 x86_linux_dr_set. All uses updated.
2655 (amd64_linux_dr_get_addr): Renamed to
2656 x86_linux_dr_get_addr. All uses updated.
2657 (amd64_linux_dr_get_control): Renamed to
2658 x86_linux_dr_get_control. All uses updated.
2659 (amd64_linux_dr_get_status): Renamed to
2660 x86_linux_dr_get_status. All uses updated.
2661 (amd64_linux_dr_set_control): Renamed to
2662 x86_linux_dr_set_control. All uses updated.
2663 (amd64_linux_dr_set_addr): Renamed to
2664 x86_linux_dr_set_addr. All uses updated.
2665 (amd64_linux_prepare_to_resume): Renamed to
2666 x86_linux_prepare_to_resume. All uses updated.
2667 (amd64_linux_new_thread): Renamed to
2668 x86_linux_new_thread. All uses updated.
2669 (amd64_linux_new_fork): Renamed to
2670 x86_linux_new_fork. All uses updated.
2671 (amd64_linux_child_post_startup_inferior): Renamed to
2672 x86_linux_child_post_startup_inferior. All uses updated.
2673 (amd64_linux_enable_btrace): Renamed to
2674 x86_linux_enable_btrace. All uses updated.
2675 (amd64_linux_disable_btrace): Renamed to
2676 x86_linux_disable_btrace. All uses updated.
2677 (amd64_linux_teardown_btrace): Renamed to
2678 x86_linux_teardown_btrace. All uses updated.
2679 (amd64_linux_read_btrace): Renamed to
2680 x86_linux_read_btrace. All uses updated.
2681 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2682 x86_linux_dr_get. All uses updated.
2683 (i386_linux_dr_set): Renamed to
2684 x86_linux_dr_set. All uses updated.
2685 (i386_linux_dr_get_addr): Renamed to
2686 x86_linux_dr_get_addr. All uses updated.
2687 (i386_linux_dr_get_control): Renamed to
2688 x86_linux_dr_get_control. All uses updated.
2689 (i386_linux_dr_get_status): Renamed to
2690 x86_linux_dr_get_status. All uses updated.
2691 (i386_linux_dr_set_control): Renamed to
2692 x86_linux_dr_set_control. All uses updated.
2693 (i386_linux_dr_set_addr): Renamed to
2694 x86_linux_dr_set_addr. All uses updated.
2695 (i386_linux_prepare_to_resume): Renamed to
2696 x86_linux_prepare_to_resume. All uses updated.
2697 (i386_linux_new_thread): Renamed to
2698 x86_linux_new_thread. All uses updated.
2699 (i386_linux_new_fork): Renamed to
2700 x86_linux_new_fork. All uses updated.
2701 (i386_linux_child_post_startup_inferior): Renamed to
2702 x86_linux_child_post_startup_inferior. All uses updated.
2703 (i386_linux_enable_btrace): Renamed to
2704 x86_linux_enable_btrace. All uses updated.
2705 (i386_linux_disable_btrace): Renamed to
2706 x86_linux_disable_btrace. All uses updated.
2707 (i386_linux_teardown_btrace): Renamed to
2708 x86_linux_teardown_btrace. All uses updated.
2709 (i386_linux_read_btrace): Renamed to
2710 x86_linux_read_btrace. All uses updated.
2711
b9c1d481
AS
27122014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2713
2714 * remote.c (extended_remote_post_attach): New function.
2715 (init_extended_remote_ops): Install it as to_post_attach method.
2716
7180e04a
PA
27172014-07-09 Pedro Alves <palves@redhat.com>
2718
2719 * infcmd.c (attach_command_post_wait): Don't call
2720 target_terminal_inferior here.
2721 (attach_command): Call it here instead.
2722
9a9a7608
AB
27232014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2726 field.
2727 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2728 from varobj.c, with additional checks.
2729 (c_varobj_ops): Fill in is_path_expr_parent field.
2730 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2731 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2732 field.
2733 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2734 ops method.
2735 (varobj_default_is_path_expr_parent): New function.
2736 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2737 (varobj_default_is_path_expr_parent): Declare new function.
2738
1f267ae3
MM
27392014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2740
2741 * infcmd.c (finish_backward): Turn internal error into normal error.
2742
b2ee242b
PA
27432014-07-07 Pedro Alves <palves@redhat.com>
2744
8a869bca 2745 PR gdb/17096
b2ee242b
PA
2746 * remote.c (async_handle_remote_sigint)
2747 (async_handle_remote_sigint_twice): Call
2748 gdb_call_async_signal_handler instead of
2749 mark_async_signal_handler.
2750
38e229b2
TT
27512014-07-07 Tom Tromey <tromey@redhat.com>
2752
2753 * target-delegates.c: Rebuild.
2754 * target.c (target_info_record): Remove.
2755 * record.c (info_record_command): Unconditionally call
2756 to_info_record.
2757 * target.h (struct target_ops) <to_info_record>: Use
2758 TARGET_DEFAULT_IGNORE.
2759 (target_info_record): Remove.
2760
f0f9ff95
TT
27612014-07-07 Tom Tromey <tromey@redhat.com>
2762
2763 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2764 TARGET_DEFAULT_NORETURN.
2765 * target.c (generic_tls_error): New function.
2766 (target_translate_tls_address): Don't search target stack.
2767 * target-delegates.c: Rebuild.
2768 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2769 stack.
2770 * linux-thread-db.c (thread_db_get_thread_local_address):
2771 Unconditionally call beneath target.
2772
4a5be5ee
MK
27732014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2774
2775 * cli/cli-logging.c (pop_output_files): Assign targerr to
2776 gdb_stdtargerr.
2777
92c3b204
AB
27782014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2779
2780 * MAINTAINERS (Write After Approval): Update my email address.
2781
9b11e3a7
GB
27822014-07-02 Gary Benson <gbenson@redhat.com>
2783
2784 * proc-service.c (ps_xfer_memory): Update comment.
2785 (ps_pstop): Remove unused function.
2786 (ps_pcontinue): Likewise.
2787 (ps_lstop): Likewise.
2788 (ps_lcontinue): Likewise.
2789 (ps_lgetxregsize): Likewise.
2790 (ps_lgetxregs): Likewise.
2791 (ps_lsetxregs): Likewise.
2792 (ps_plog): Likewise.
2793 (ps_ptread): Likewise.
2794 (ps_ptwrite): Likewise.
2795
cf363f18
MW
27962014-07-01 Mark Wielaard <mjw@redhat.com>
2797
2798 * dwarf2read.c (add_array_cv_type): New function.
2799 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2800 (read_tag_volatile_type): Likewise.
2801
82ae6c8d
TT
28022014-07-01 Tom Tromey <tromey@redhat.com>
2803
2804 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2805 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2806 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2807 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2808 * command.h (cmd_cfunc_ftype): Move earlier.
2809 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2810 (add_com, add_info): Use cmd_cfunc_ftype.
2811
96142726
TT
28122014-06-30 Tom Tromey <tromey@redhat.com>
2813
2814 * symtab.c (operator_chars): Make parameters and return type
2815 const.
2816 (file_matches): Make "files" const.
2817 (struct search_symbols_data) <files>: Now const.
2818 (search_symbols): Make "regexp" and "files" parameters const.
2819 Update.
2820 (symtab_symbol_info): Remove cast.
2821 (rbreak_command): Update.
2822 * symtab.h (search_symbols): Update.
2823
b67a2c6f
YQ
28242014-06-27 Yao Qi <yao@codesourcery.com>
2825
2826 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2827 Change parameter type to 'struct thread_info *'. Caller
2828 updated.
2829 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2830 Update declaration.
2831 * dummy-frame.c (struct dummy_frame_id): New.
2832 (dummy_frame_id_eq): New function.
2833 (struct dummy_frame) <id>: Change its type to 'struct
2834 dummy_frame_id'.
2835 (dummy_frame_push): Add parameter ptid and save it in
2836 dummy_frame_id.
2837 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2838 inferior_ptid.
2839 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2840 to inferior_ptid.
2841 (lookup_dummy_frame): Change parameter type to 'struct
2842 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2843 instead of frame_id_eq.
2844 (dummy_frame_pop): Add parameter ptid. Callers updated.
2845 Update comments. Compose dummy_frame_id and pass it to
2846 lookup_dummy_frame.
2847 (dummy_frame_discard): Add parameter ptid.
2848 (dummy_frame_sniffer): Compose dummy_frame_id and call
2849 dummy_frame_id_eq instead of frame_id_eq.
2850 (fprint_dummy_frames): Print ptid.
2851 * dummy-frame.h: Remove comments.
2852 (dummy_frame_push): Add ptid in declaration.
2853 (dummy_frame_pop, dummy_frame_discard): Likewise.
2854
5b10184c
TT
28552014-06-26 Tom Tromey <tromey@redhat.com>
2856
2857 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2858 * command.h (error_no_arg): Update.
2859
06900326
TT
28602014-06-26 Tom Tromey <tromey@redhat.com>
2861
2862 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2863 (do_show_command): Make "arg" const.
2864 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2865
c2bcbb1d
TT
28662014-06-26 Tom Tromey <tromey@redhat.com>
2867
2868 * record-full.c (record_full_get_bookmark): Make "args" const.
2869 (record_full_goto_bookmark): Make "raw_bookmark" const.
2870 * record.c (record_goto): New function.
2871 (cmd_record_goto): Use it. Now static.
2872 * record.h (record_goto): Declare.
2873 (cmd_record_goto): Remove declaration.
2874 * target-delegates.c: Rebuild.
2875 * target.h (struct target_ops) <to_get_bookmark,
2876 to_goto_bookmark>: Make parameter const.
2877
9cbe5fff
TT
28782014-06-26 Tom Tromey <tromey@redhat.com>
2879
2880 * defs.h (generic_load): Update.
2881 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2882 * monitor.c (monitor_load): Make "args" const.
2883 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2884 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2885 const.
2886 (mips_load): Make "file" const.
2887 * remote-sim.c (gdbsim_load): Make "args" const.
2888 * remote.c (remote_load): Make "name" const.
2889 * symfile.c (generic_load): Make "args" const.
2890 * target-delegates.c: Rebuild.
2891 * target.c (target_load): Make "arg" const.
2892 (debug_to_load): Make "args" const.
2893 * target.h (struct target_ops) <to_load>: Make parameter const.
2894 (target_load): Update.
2895
34a68019
TT
28962014-06-26 Tom Tromey <tromey@redhat.com>
2897
2898 PR symtab/16902:
2899 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2900 (dwarf2_physname, read_partial_die)
2901 (guess_partial_die_structure_name, fixup_partial_die)
2902 (guess_full_die_structure_name, anonymous_struct_prefix)
2903 (dwarf2_name): Use per-BFD obstack.
2904
efc889c1
YQ
29052014-06-26 Yao Qi <yao@codesourcery.com>
2906
2907 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2908 dummyframe and this_id into inner block below.
2909
4395285e
YQ
29102014-06-26 Yao Qi <yao@codesourcery.com>
2911
2912 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2913 with "signal_pass[0]" in the initialization of signal_pass.
2914
aef92902
MM
29152014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2916
2917 * record-btrace.c (record_btrace_generating_corefile)
2918 (record_btrace_prepare_to_generate_core)
2919 (record_btrace_done_generating_core): New.
2920 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2921 (record_btrace_store_registers, record_btrace_prepare_to_store):
2922 Forward request when generating a core file.
2923 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2924 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2925 to_done_generating_core.
2926
5fff78c4
MM
29272014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2928
2929 * target.h (target_ops) <to_prepare_to_generate_core>
2930 <to_done_generating_core>: New.
2931 (target_prepare_to_generate_core, target_done_generating_core): New.
2932 * target.c (target_prepare_to_generate_core)
2933 (target_done_generating_core): New.
2934 * target-delegates.c: Regenerate.
2935 * gcore.c: (write_gcore_file): Rename to ...
2936 (write_gcore_file_1): ...this.
2937 (write_gcore_file): Call target_prepare_to_generate_core
2938 and target_done_generating_core.
2939
1d1f1ccb
MM
29402014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2941
2942 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2943 * gcore.c (write_gcore_file): Free memory returned from
2944 make_corefile_notes.
2945 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2946 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2947
3343ef86
YQ
29482014-06-24 Yao Qi <yao@codesourcery.com>
2949
2950 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2951 (arm_linux_init_abi): Set skip_trampoline_code with
2952 gdbarch_skip_trampoline_code instead of
2953 find_solib_trampoline_target.
2954
18d18ac8
YQ
29552014-06-24 Yao Qi <yao@codesourcery.com>
2956
2957 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2958 arm_skip_bx_reg returns non-zero.
2959
80d8d390
YQ
29602014-06-24 Yao Qi <yao@codesourcery.com>
2961
2962 * arm-tdep.c (arm_skip_bx_reg): New function.
2963 (arm_skip_stub): Call arm_skip_bx_reg.
2964
6a18a01c
DB
29652014-06-23 Don Breazeal <donb@codesourcery.com>
2966
2967 * MAINTAINERS: Add myself as write-after-approval maintainer.
2968
8e9db26e
PA
29692014-06-23 Pedro Alves <palves@redhat.com>
2970
2971 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2972 DR_CONTROL before setting DR0..DR3.
2973 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2974 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2975 bits of DR_CONTROL related to the debug register slot being
2976 disabled. If all slots are vacant, clear local slowdown as well,
2977 and assert DR_CONTROL is 0.
2978
70afc5b7
SC
29792014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2980
2981 * python/lib/gdb/command/xmethods.py
2982 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2983 current progspace only if the string "progspace" matches LOCUS_RE.
2984
840ed64d
JK
29852014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2986
2987 Fix --with-system-readline with readline-6.3 patch 5.
2988 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2989 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2990 types.
2991
26f2dc30
TT
29922014-06-20 Tom Tromey <tromey@redhat.com>
2993
2994 * dwarf2read.c (dw2_get_real_path): Use correct type in
2995 OBSTACK_CALLOC.
2996 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2997
125f8a3d
GB
29982014-06-20 Gary Benson <gbenson@redhat.com>
2999
3000 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3001 * common/glibc_thread_db.h: Likewise.
3002 * common/i386-cpuid.h: Likewise.
3003 * common/i386-gcc-cpuid.h: Likewise.
3004 * common/linux-btrace.h: Likewise.
3005 * common/linux-osdata.h: Likewise.
3006 * common/linux-procfs.h: Likewise.
3007 * common/linux-ptrace.h: Likewise.
3008 * common/mips-linux-watch.h: Likewise.
3009 * common/linux-btrace.c: Moved to nat.
3010 * common/linux-osdata.c: Likewise.
3011 * common/linux-procfs.c: Likewise.
3012 * common/linux-ptrace.c: Likewise.
3013 * common/mips-linux-watch.c: Likewise.
3014 * nat/gdb_thread_db.h: Moved from common.
3015 * nat/glibc_thread_db.h: Likewise.
3016 * nat/i386-cpuid.h: Likewise.
3017 * nat/i386-gcc-cpuid.h: Likewise.
3018 * nat/linux-btrace.c: Likewise.
3019 * nat/linux-btrace.h: Likewise.
3020 * nat/linux-osdata.c: Likewise.
3021 * nat/linux-osdata.h: Likewise.
3022 * nat/linux-procfs.c: Likewise.
3023 * nat/linux-procfs.h: Likewise.
3024 * nat/linux-ptrace.c: Likewise.
3025 * nat/linux-ptrace.h: Likewise.
3026 * nat/mips-linux-watch.c: Likewise.
3027 * nat/mips-linux-watch.h: Likewise.
3028 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3029 (object file files): Reordered.
3030 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3031 of glibc_thread_db.h.
3032
42995dbd
GB
30332014-06-20 Gary Benson <gbenson@redhat.com>
3034
3035 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3036 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3037 (i386_dr_low): Likewise.
3038 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3039 (i386_dr_low_set_addr): Likewise.
3040 (i386_dr_low_get_addr): Likewise.
3041 (i386_dr_low_can_set_control): Likewise.
3042 (i386_dr_low_set_control): Likewise.
3043 (i386_dr_low_get_control): Likewise.
3044 (i386_dr_low_get_status): Likewise.
3045 (i386_get_debug_register_length): Likewise.
3046 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3047 (i386_dr_low): Likewise.
3048 * nat/i386-dregs.c (i386-low.h): Remove include.
3049 (i386-nat.h): Likewise.
3050 (nat/i386-dregs.h): New include.
3051 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3052 (i386_dr_low_set_addr): Likewise.
3053 (i386_dr_low_get_addr): Likewise.
3054 (i386_dr_low_can_set_control): Likewise.
3055 (i386_dr_low_set_control): Likewise.
3056 (i386_dr_low_get_control): Likewise.
3057 (i386_dr_low_get_status): Likewise.
3058 (i386_get_debug_register_length): Likewise.
3059 (debug_hw_points): Likewise.
3060
3ed9baed
IB
30612014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3062
3063 * Makefile.in (SFILES): Add d-exp.y.
3064 (YYFILES): Add d-exp.c.
3065 (YYOBJ): Add d-exp.o.
3066 (local-maintainer-clean): Delete d-exp.c.
3067 * d-exp.y: New file.
3068 * d-lang.h (d_parse): New declaration.
3069 (d_error): New declaration.
3070 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3071 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3072 PREC_ORDER operators.
3073 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3074
78c164b0
YQ
30752014-06-19 Yao Qi <yao@codesourcery.com>
3076
3077 * gdbthread.h (any_running): Remove the declaration.
3078 * thread.c (any_running): Remove.
3079
f6e29b6e
YQ
30802014-06-19 Yao Qi <yao@codesourcery.com>
3081
3082 * gdbthread.h (struct thread_info) <state>: Change its type to
3083 'enum thread_state'. Update comments.
3084
034f788c
PA
30852014-06-19 Pedro Alves <palves@redhat.com>
3086
3087 * gdbthread.h (ALL_THREADS): Delete.
3088 (ALL_NON_EXITED_THREADS): New macro.
3089 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3090 instead of ALL_THREADS.
3091 * infrun.c (find_thread_needs_step_over)
3092 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3093 instead of ALL_THREADS.
3094 * record-btrace.c (record_btrace_open)
3095 (record_btrace_stop_recording, record_btrace_close)
3096 (record_btrace_is_replaying, record_btrace_resume)
3097 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3098 * remote.c (append_pending_thread_resumptions): Likewise.
3099 * thread.c (thread_apply_all_command): Likewise.
3100
46e33252
GB
31012014-06-19 Gary Benson <gbenson@redhat.com>
3102
3103 * i386-nat.c (i386_stopped_by_watchpoint):
3104 Use i386_dr_stopped_by_watchpoint.
3105 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3106 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3107
3a8ee006
GB
31082014-06-19 Gary Benson <gbenson@redhat.com>
3109
3110 * nat/i386-dregs.c: New file.
3111 * Makefile.in (i386-dregs.o): New rule.
3112 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3113 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3114 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3115 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3116 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3117 * config/i386/go32.mh (NATDEPFILES): Likewise.
3118 * config/i386/linux.mh (NATDEPFILES): Likewise.
3119 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3120 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3121 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3122 * i386-nat.h (debug_hw_points): New declaration.
3123 * i386-nat.c (breakpoint.h): Remove include.
3124 (command.h): Likewise.
3125 (target.h): Likewise.
3126 (gdb_assert.h): Likewise.
3127 (debug_hw_points): Made nonstatic.
3128 (debug_printf): Now in i386-dregs.c.
3129 (TARGET_HAS_DR_LEN_8): Likewise.
3130 (DR_CONTROL_SHIFT): Likewise.
3131 (DR_CONTROL_SIZE): Likewise.
3132 (DR_RW_EXECUTE): Likewise.
3133 (DR_RW_WRITE): Likewise.
3134 (DR_RW_READ): Likewise.
3135 (DR_RW_IORW): Likewise.
3136 (DR_LEN_1): Likewise.
3137 (DR_LEN_2): Likewise.
3138 (DR_LEN_4): Likewise.
3139 (DR_LEN_8): Likewise.
3140 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3141 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3142 (DR_ENABLE_SIZE): Likewise.
3143 (DR_LOCAL_SLOWDOWN): Likewise.
3144 (DR_GLOBAL_SLOWDOWN): Likewise.
3145 (DR_CONTROL_RESERVED): Likewise.
3146 (I386_DR_CONTROL_MASK): Likewise.
3147 (I386_DR_VACANT): Likewise.
3148 (I386_DR_LOCAL_ENABLE): Likewise.
3149 (I386_DR_GLOBAL_ENABLE): Likewise.
3150 (I386_DR_DISABLE): Likewise.
3151 (I386_DR_SET_RW_LEN): Likewise.
3152 (I386_DR_GET_RW_LEN): Likewise.
3153 (I386_DR_WATCH_HIT): Likewise.
3154 (i386_wp_op_t): Likewise.
3155 (i386_show_dr): Likewise.
3156 (i386_length_and_rw_bits): Likewise.
3157 (i386_insert_aligned_watchpoint): Likewise.
3158 (i386_remove_aligned_watchpoint): Likewise.
3159 (i386_handle_nonaligned_watchpoint): Likewise.
3160 (i386_update_inferior_debug_regs): Likewise.
3161 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3162 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3163 (i386_region_ok_for_watchpoint):
3164 Use i386_dr_region_ok_for_watchpoint.
3165 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3166
322a8e06
GB
31672014-06-19 Gary Benson <gbenson@redhat.com>
3168
3169 * i386-nat.c (i386_insert_hw_breakpoint): Use
3170 i386_insert_watchpoint.
3171 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3172
8f26655c
GB
31732014-06-19 Gary Benson <gbenson@redhat.com>
3174
3175 * i386-nat.c (i386_dr_show): Renamed to
3176 i386_show_dr and made static. All uses updated.
3177 (i386_dr_length_and_rw_bits): Renamed to
3178 i386_length_and_rw_bits and made static.
3179 All uses updated.
3180 (i386_dr_insert_aligned_watchpoint): Renamed to
3181 i386_insert_aligned_watchpoint and made static.
3182 All uses updated.
3183 (i386_dr_remove_aligned_watchpoint): Renamed to
3184 i386_remove_aligned_watchpoint and made static.
3185 All uses updated.
3186 (i386_dr_update_inferior_debug_regs): Renamed to
3187 i386_update_inferior_debug_regs and made static.
3188 All uses updated.
3189 * nat/i386-dregs.h (i386_dr_show): Removed.
3190 (i386_dr_length_and_rw_bits): Likewise.
3191 (i386_dr_insert_aligned_watchpoint): Likewise.
3192 (i386_dr_remove_aligned_watchpoint): Likewise.
3193 (i386_dr_update_inferior_debug_regs): Likewise.
3194
992c7d70
GB
31952014-06-19 Gary Benson <gbenson@redhat.com>
3196
3197 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3198 * configure: Regenerate.
3199 * config.in: Likewise.
3200 * main.c (signal.h): New include.
3201 (setup_alternate_signal_stack): New function.
3202 (captured_main): Call the above.
3203 * cp-support.c (signal.h): New include.
3204 (catch_demangler_crashes): New flag.
3205 (SIGJMP_BUF): New define.
3206 (SIGSETJMP): Likewise.
3207 (SIGLONGJMP): Likewise.
3208 (gdb_demangle_jmp_buf): New static global.
3209 (gdb_demangle_attempt_core_dump): Likewise.
3210 (gdb_demangle_signal_handler): New function.
3211 (gdb_demangle): If catch_demangler_crashes is set, install the
3212 above signal handler before calling bfd_demangle, and restore
3213 the original signal handler afterwards. Display the offending
3214 symbol and call demangler_warning the first time a segmentation
3215 fault is caught.
3216 (_initialize_cp_support): New maint set/show command.
3217
eae7090b
GB
32182014-06-19 Gary Benson <gbenson@redhat.com>
3219
3220 * utils.h (resource_limit_kind): New enum.
3221 (can_dump_core): New declaration.
3222 (warn_cant_dump_core): Likewise.
3223 (dump_core): Likewise.
3224 * utils.c (dump_core): Made nonstatic. Added new
3225 parameter "limit_kind".
3226 (can_dump_core): Made nonstatic. Moved printing code to...
3227 (warn_cant_dump_core): New function.
3228 (can_dump_core_warn): Likewise.
3229 (internal_vproblem): Replace calls to can_dump_core with
3230 calls to can_dump_core_warn. Supply new argument to each.
3231
57fcfb1b
GB
32322014-06-19 Gary Benson <gbenson@redhat.com>
3233
3234 * utils.h (demangler_vwarning): New declaration.
3235 (demangler_warning): Likewise.
3236 * utils.c (struct internal_problem)
3237 <user_settable_should_quit>: New field.
3238 <user_settable_should_dump_core>: Likewise
3239 (internal_error_problem): Add values for above new fields.
3240 (internal_warning_problem): Likewise.
3241 (demangler_warning_problem): New static global.
3242 (demangler_vwarning): New function.
3243 (demangler_warning): Likewise.
3244 (add_internal_problem_command): Selectively add commands.
3245 (_initialize_utils): New internal problem command.
3246 * maint.c (maintenance_demangler_warning): New function.
3247 (_initialize_maint_cmds): New command.
3248
17a40b44
TT
32492014-06-18 Tom Tromey <tromey@redhat.com>
3250
3251 * f-valprint.c (info_common_command_for_block): Update.
3252 * symtab.h (struct general_symbol_info) <common_block>: Now
3253 const.
3254
346d1dfe
TT
32552014-06-18 Tom Tromey <tromey@redhat.com>
3256
3257 * symtab.h (struct symtab) <blockvector>: Now const.
3258 * ada-lang.c (ada_add_global_exceptions): Update.
3259 * buildsym.c (augment_type_symtab): Update.
3260 * dwarf2read.c (dw2_lookup_symbol): Update.
3261 * jit.c (finalize_symtab): Update.
3262 * jv-lang.c (add_class_symtab_symbol): Update.
3263 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3264 Update.
3265 * objfiles.c (objfile_relocate1): Update.
3266 * psymtab.c (lookup_symbol_aux_psymtabs)
3267 (maintenance_check_psymtabs): Update.
3268 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3269 Update.
3270 * spu-tdep.c (spu_catch_start): Update.
3271 * symmisc.c (dump_symtab_1): Update.
3272 * symtab.c (lookup_global_symbol_from_objfile)
3273 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3274 (basic_lookup_transparent_type_quick)
3275 (basic_lookup_transparent_type, find_pc_sect_symtab)
3276 (find_pc_sect_line, search_symbols): Update.
3277 * block.c (find_block_in_blockvector): Make "bl" const.
3278 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3279 const.
3280 (blockvector_contains_pc): Make "bv" const.
3281 (block_for_pc_sect): Update.
3282 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3283 (blockvector_contains_pc): Update.
3284 * breakpoint.c (resolve_sal_pc): Update.
3285 * inline-frame.c (block_starting_point_at): Update.
3286
1834676b
TT
32872014-06-18 Tom Tromey <tromey@redhat.com>
3288
3289 * completer.c (complete_line): Make "line_buffer" const.
3290 * completer.h (complete_line): Update.
3291
ac1a991b
TT
32922014-06-18 Tom Tromey <tromey@redhat.com>
3293
3294 * symtab.c (add_macro_name): Remove unneeded cast.
3295
5bc98e52
TT
32962014-06-18 Tom Tromey <tromey@redhat.com>
3297
3298 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3299 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3300
8236def8
TT
33012014-06-18 Tom Tromey <tromey@redhat.com>
3302
3303 * probe.c (info_probes_for_ops): Make "arg" const.
3304 * probe.h (info_probes_for_ops): Update.
3305
3977b71f
TT
33062014-06-18 Tom Tromey <tromey@redhat.com>
3307
3308 * varobj.c (varobj_create): Update.
3309 * valops.c (value_of_this): Update.
3310 * tracepoint.c (add_local_symbols, scope_info): Update.
3311 * symtab.h (struct general_symbol_info) <block>: Now const.
3312 * symtab.c (skip_prologue_sal)
3313 (default_make_symbol_completion_list_break_on)
3314 (skip_prologue_using_sal): Update.
3315 * stack.h (iterate_over_block_locals)
3316 (iterate_over_block_local_vars): Update.
3317 * stack.c (print_frame_args): Update.
3318 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3319 parameter const.
3320 (get_selected_block): Make return type const.
3321 * python/py-frame.c (frapy_block): Update.
3322 * python/py-block.c (gdbpy_block_for_pc): Update.
3323 * p-exp.y (%union) <bval>: Now const.
3324 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3325 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3326 * m2-exp.y (%union) <bval>: Now const.
3327 * linespec.c (get_current_search_block): Make return type const.
3328 (create_sals_line_offset, find_label_symbols): Update.
3329 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3330 Update.
3331 (block_starting_point_at): Make "block" const.
3332 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3333 (check_exception_resume): Update.
3334 * guile/scm-frame.c (gdbscm_frame_block): Update.
3335 * guile/scm-block.c (gdbscm_lookup_block): Update.
3336 * frame.h (get_frame_block): Update.
3337 (get_selected_block): Make return type const.
3338 * frame.c (frame_id_inner): Update.
3339 * f-valprint.c (info_common_command_for_block)
3340 (info_common_command): Update.
3341 * dwarf2loc.c (dwarf2_find_location_expression)
3342 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3343 (locexpr_describe_location_piece): Update.
3344 * c-exp.y (%union) <bval>: Now const.
3345 * breakpoint.c (resolve_sal_pc): Update.
3346 * blockframe.c (get_frame_block):Make return type const.
3347 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3348 (block_innermost_frame): Update.
3349 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3350 (block_for_pc, block_for_pc_sect): Update.
3351 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3352 'pblock' const.
3353 (block_for_pc_sect, block_for_pc): Make return type const.
3354 * ax-gdb.c (gen_expr): Update.
3355 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3356 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3357 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3358 (ada_read_var_value): Update.
3359 * ada-exp.y (struct name_info) <block>: Now const.
3360 (%union): Likewise.
3361 (block_lookup): Constify.
3362
b9228891
GB
33632014-06-18 Gary Benson <gbenson@redhat.com>
3364
3365 * nat/i386-dregs.h: New file.
3366 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3367 * i386-nat.h (i386-dregs.h): New include.
3368 (DR_FIRSTADDR): Now in i386-dregs.h.
3369 (DR_LASTADDR): Likewise.
3370 (DR_NADDR): Likewise.
3371 (DR_STATUS): Likewise.
3372 (DR_CONTROL): Likewise.
3373 (i386_debug_reg_state): Likewise.
3374 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3375
a1aa2221
LM
33762014-06-18 Don Breazeal <donb@codesourcery.com>
3377
3378 * breakpoint.c (set_longjmp_breakpoint): Call
3379 momentary_breakpoint_from_master with additional argument.
3380 (set_longjmp_breakpoint_for_call_dummy): Call
3381 momentary_breakpoint_from_master with additional argument.
3382 (set_std_terminate_breakpoint): Call
3383 momentary_breakpoint_from_master with additional argument.
3384 (momentary_breakpoint_from_master): Add argument to function
3385 definition and use it to initialize structure member flag.
74228e77 3386 (clone_momentary_breakpoint): Call
a1aa2221
LM
3387 momentary_breakpoint_from_master with additional argument.
3388 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3389 member flags set in momentary_breakpoint_from_master.
3390
4be83cc2
GB
33912014-06-18 Gary Benson <gbenson@redhat.com>
3392
3393 * i386-nat.c (i386_show_dr): Renamed to
3394 i386_dr_show and made nonstatic. All uses updated.
3395 (i386_length_and_rw_bits): Renamed to
3396 i386_dr_length_and_rw_bits and made nonstatic.
3397 All uses updated.
3398 (i386_insert_aligned_watchpoint): Renamed to
3399 i386_dr_insert_aligned_watchpoint and made nonstatic.
3400 All uses updated.
3401 (i386_remove_aligned_watchpoint): Renamed to
3402 i386_dr_remove_aligned_watchpoint and made nonstatic.
3403 All uses updated.
3404 (i386_update_inferior_debug_regs): Renamed to
3405 i386_dr_update_inferior_debug_regs and made nonstatic.
3406 All uses updated.
3407
131aa0d4
GB
34082014-06-18 Gary Benson <gbenson@redhat.com>
3409
3410 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3411 (i386_dr_low_can_set_control): Likewise.
3412 (i386_dr_low_set_addr): Likewise.
3413 (i386_dr_low_set_control): Likewise.
3414 (i386_dr_low_get_addr): Likewise.
3415 (i386_dr_low_get_status): Likewise.
3416 (i386_dr_low_get_control): Likewise.
3417 (i386_insert_aligned_watchpoint): Use new macros.
3418 (i386_update_inferior_debug_regs): Likewise.
3419 (i386_stopped_data_address): Likewise.
3420
d9305f7f
GB
34212014-06-18 Gary Benson <gbenson@redhat.com>
3422
3423 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3424 New parameter. All uses updated.
3425
ea008da4
GB
34262014-06-18 Gary Benson <gbenson@redhat.com>
3427
3428 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3429 All uses updated.
3430
1b6d4134
GB
34312014-06-18 Gary Benson <gbenson@redhat.com>
3432
3433 * i386-nat.c (debug_printf): New macro.
3434 (i386_get_debug_register_length): Likewise.
3435 (TARGET_HAS_DR_LEN_8): Use above macro.
3436 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3437 and printf_unfiltered. Use phex to format values.
3438
9b4550ef
GB
34392014-06-18 Gary Benson <gbenson@redhat.com>
3440
3441 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3442 Make const.
3443
6e62758f
GB
34442014-06-18 Gary Benson <gbenson@redhat.com>
3445
3446 * i386-nat.c: Comment changes.
3447
51c79e94
GB
34482014-06-18 Gary Benson <gbenson@redhat.com>
3449
3450 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3451
3e11889a
GB
34522014-06-18 Gary Benson <gbenson@redhat.com>
3453
3454 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3455 (i386_insert_aligned_watchpoint): Likewise.
3456 (i386_remove_aligned_watchpoint): Likewise.
3457 (i386_handle_nonaligned_watchpoint): Likewise.
3458
fc6e2f03
GB
34592014-06-18 Gary Benson <gbenson@redhat.com>
3460
3461 * i386-nat.c: Whitespace changes.
3462
2afe7d50
SB
34632014-06-17 Samuel Bronson <naesten@gmail.com>
3464
3465 * MAINTAINERS: Update Roland McGrath's email address.
3466 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3467 Red Hat a while ago, and giving me a current address.
2afe7d50 3468
3bca49ee
TT
34692014-06-17 Tom Tromey <tromey@redhat.com>
3470
3471 * utils.h (savestring): Remove declaration.
3472
6e366df1
TT
34732014-06-17 Tom Tromey <tromey@redhat.com>
3474
3475 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3476
6be47f0c
KS
34772014-06-16 Keith Seitz <keiths@redhat.com>
3478
3479 PR mi/15863
3480 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3481 to update the varobj if inferior_ptid is null_ptid.
3482
7bc112c1
TT
34832014-06-16 Tom Tromey <tromey@redhat.com>
3484
3485 * target.h (struct target_ops) <to_info_proc>: Make parameter
3486 const.
3487 (target_info_proc): Update.
3488 * target.c (target_info_proc): Make "args" const.
3489 * procfs.c (procfs_info_proc): Update.
3490 * linux-tdep.c (linux_info_proc): Update.
3491 (linux_core_info_proc_mappings): Make "args" const.
3492 (linux_core_info_proc): Update.
3493 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3494 * gdbarch.c: Rebuild.
3495 * gdbarch.h: Rebuild.
3496 * corelow.c (core_info_proc): Update.
3497
fee354ee
TT
34982014-06-16 Tom Tromey <tromey@redhat.com>
3499
3500 * target.h (struct target_ops) <to_disconnect>: Make parameter
3501 const.
3502 (target_disconnect): Update.
3503 * target.c (target_disconnect): Make "args" const.
3504 * target-delegates.c: Rebuild.
3505 * remote.c (remote_disconnect): Update.
3506 * record.h (record_disconnect): Update.
3507 * record.c (record_disconnect): Update.
3508 * inf-child.c (inf_child_disconnect): Update.
3509
a30bf1f1
TT
35102014-06-16 Tom Tromey <tromey@redhat.com>
3511
3512 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3513 * target.c (debug_to_rcmd, default_rcmd): Update.
3514 * target-delegates.c: Rebuild.
3515 * remote.c (remote_rcmd): Update.
3516 * monitor.c (monitor_rcmd): Update.
3517
d03de421
PA
35182014-06-16 Pedro Alves <palves@redhat.com>
3519
3520 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3521 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3522 have OBJF_SHARED set.
3523 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3524 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3525 instead of OBJF_USERLOADED.
3526 * objfiles.h (OBJF_SHARED): Update comment.
3527 (userloaded_objfile_contains_address_p): Rename to ...
3528 (shared_objfile_contains_address_p): ... this, and update
3529 comments.
3530 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3531 new objfile.
3532 (remove_symbol_file_command): Skip objfiles that don't have
3533 OBJF_SHARED set.
3534
99f4262f
TT
35352014-06-16 Tom Tromey <tromey@redhat.com>
3536
3537 * minsyms.h (prim_record_minimal_symbol)
3538 (prim_record_minimal_symbol_and_info): Update comments.
3539
97d66cc6
EZ
35402014-06-14 Eli Zaretskii <eliz@gnu.org>
3541
3542 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3543 or --without-guile, according to how GDB was built.
3544
635c7e8a
TT
35452014-06-13 Tom Tromey <tromey@redhat.com>
3546
3547 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3548 to help_list.
3549 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3550 to help_list.
3551 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3552 help_list.
3553 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3554 help_list.Pass all_commands, not -1, to help_list.
3555 * cli/cli-dump.c (dump_command, append_command)
3556 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3557 (binary_dump_command, binary_append_command): Pass all_commands,
3558 not -1, to help_list.
3559 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3560 -1, to help_list.
3561 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3562 -1, to help_list.
3563 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3564 help_list.
3565 * top.c (set_history): Pass all_commands, not -1, to help_list.
3566 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3567 all_commands, not -1, to help_list.
3568 * symfile.c (overlay_command): Pass all_commands, not -1, to
3569 help_list.
3570 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3571 help_list.
3572 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3573 help_list.
3574 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3575 -1, to help_list.
3576 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3577 not -1, to help_list.
3578 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3579 not -1, to help_list.
3580 * maint.c (maintenance_command, maintenance_info_command)
3581 (maintenance_print_command, maintenance_set_cmd): Pass
3582 all_commands, not -1, to help_list.
3583 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3584 help_list.
3585 * language.c (set_check): Pass all_commands, not -1, to help_list.
3586 * infcmd.c (unset_command): Pass all_commands, not -1, to
3587 help_list.
3588 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3589 help_list.
3590 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3591 help_list.
3592 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3593 help_list.
3594 * breakpoint.c (save_command): Pass all_commands, not -1, to
3595 help_list.
3596 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3597 all_commands, not -1, to help_list.
3598
b94ade42
PL
35992014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3600
3601 * regcache.c (struct register_to_invalidate): New structure.
3602 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3603 functions.
3604 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3605
31f628ae
YQ
36062014-06-12 Yao Qi <yao@codesourcery.com>
3607
3608 * varobj.c (varobj_get_num_children): Call
3609 varobj_is_dynamic_p.
3610 (varobj_list_children): Likewise.
3611 (varobj_update): Likewise. Update comments.
3612
cde5ef40
YQ
36132014-06-12 Yao Qi <yao@codesourcery.com>
3614
3615 * varobj.c (varobj_pretty_printed_p): Rename to ...
3616 (varobj_is_dynamic_p): ... this. New function.
3617 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3618 (varobj_is_dynamic_p): Declare.
3619 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3620 (mi_print_value_p, varobj_update_one): Likewise.
3621
576ea091
YQ
36222014-06-12 Pedro Alves <pedro@codesourcery.com>
3623 Yao Qi <yao@codesourcery.com>
3624
3625 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3626 (varobj_get_iterator): Wrap up code for pretty-printer by
3627 "#if HAVE_PYTHON" and "#endif".
3628 (update_dynamic_varobj_children): Likewise.
3629
827f100c
YQ
36302014-06-12 Pedro Alves <pedro@codesourcery.com>
3631 Yao Qi <yao@codesourcery.com>
3632
3633 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3634 gdb_python_initialized is false. Move some code from varobj.c.
3635 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3636 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3637 (struct varobj_item): Moved to varobj-iter.h".
3638 (varobj_clear_saved_item): New function.
3639 (update_dynamic_varobj_children): Move python-related code to
3640 py-varobj.c.
3641 (free_variable): Call varobj_clear_saved_item and
3642 varobj_iter_delete.
3643
e5250216
YQ
36442014-06-12 Pedro Alves <pedro@codesourcery.com>
3645 Yao Qi <yao@codesourcery.com>
3646
3647 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3648 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3649 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3650 (py-varobj.o): New rule.
3651 * python/py-varobj.c: New file.
3652 * python/python-internal.h (py_varobj_get_iterator): Declare.
3653 * varobj-iter.h: New file.
3654 * varobj.c: Include "varobj-iter.h"
3655 (struct varobj) <child_iter>: Change its type from "PyObject *"
3656 to "struct varobj_iter *".
3657 <saved_item>: Likewise.
3658 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3659 [HAVE_PYTHON] (varobj_get_iterator): New function.
3660 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3661 python-specific code to python/py-varobj.c.
3662 (install_visualizer): Call varobj_iter_delete instead of
3663 Py_XDECREF.
3664 * varobj.h (varobj_ensure_python_env): Declare.
3665
5a2e0d6e
YQ
36662014-06-12 Yao Qi <yao@codesourcery.com>
3667
3668 * varobj.c (struct varobj_item): New structure.
3669 (create_child_with_value): Update declaration.
3670 (varobj_add_child): Replace arguments 'name' and 'value' with
3671 'item'. All callers updated.
3672 (install_dynamic_child): Likewise.
3673 (update_dynamic_varobj_children): Likewise.
3674 (varobj_add_child): Likewise.
3675 (create_child_with_value): Likewise.
3676
919b9a93
JB
36772014-06-11 Joel Brobecker <brobecker@adacore.com>
3678
3679 * NEWS: Create a new section for the next release branch.
3680 Rename the section of the current branch, now that it has
3681 been cut.
3682
71a55bdf
JB
36832014-06-11 Joel Brobecker <brobecker@adacore.com>
3684
3685 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3686 * version.in: Bump version to 7.8.50.DATE-cvs.
3687
364fe1f7
PA
36882014-06-11 Pedro Alves <palves@redhat.com>
3689
3690 PR remote/17028
3691 * ser-mingw.c (net_windows_socket_check_pending): New function.
3692 (net_windows_select_thread): Ignore spurious wakeups. Use
3693 net_windows_socket_check_pending.
3694 (net_windows_wait_handle): Check for pending events with
3695 ioctlsocket, through net_windows_socket_check_pending, instead of
3696 checking the socket's event.
3697
5a6c7709
SC
36982014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3699
3700 * python/python-internal.h (gdb_PyObject_GetAttrString)
3701 (gdb_PyObject_HasAttrString): New inline function definitions.
3702 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3703 char * of the second argument to PyObject_GetAttrString.
74228e77 3704
0e58ee40
JB
37052014-06-10 Joel Brobecker <brobecker@adacore.com>
3706
3707 * serial.c (serial_write): Fix index of character to be printed
3708 in call to serial_logchar when serial debug traces are enabled.
3709
d190df30
JB
37102014-06-10 Joel Brobecker <brobecker@adacore.com>
3711
3712 * gdbtypes (resolve_dynamic_range): Add function description.
3713
b4b01d36
PA
37142014-06-09 Pedro Alves <palves@redhat.com>
3715
3716 * linux-nat.c (linux_child_follow_fork): Initialize status with
3717 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3718 inner block. Only pass the signal to PTRACE_DETACH if in pass
3719 state.
3720
3657956b
GB
37212014-06-09 Gary Benson <gbenson@redhat.com>
3722
3723 * common/signals.c (gdb_signal_from_host): Reorder to separate
3724 the always-available ANSI-standard signals from the signals that
3725 require checking.
3726 (do_gdb_signal_to_host): Likewise.
3727 * proc-events.c (signal_table): Likewise.
3728
c077881a
HZ
37292014-06-08 Hui Zhu <hui@codesourcery.com>
3730
3731 * common/linux-ptrace.c (linux_disable_event_reporting): New
3732 function.
3733 * common/linux-ptrace.h (linux_disable_event_reporting): New
3734 declaration.
3735 * linux-nat.c (linux_child_follow_fork): Do a single step before
3736 detach.
3737
4186eb54
KS
37382014-06-07 Keith Seitz <keiths@redhat.com>
3739
3740 Revert:
3741 PR c++/16253
3742 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3743 from symbol_matches_domain in symtab.c. All local callers
3744 of symbol_matches_domain updated.
3745 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3746 search STRUCT_DOMAIN.
3747 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3748 independently. standard_lookup will do that automatically.
3749 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3750 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3751 (cp_lookup_symbol_in_namespace): Likewise.
3752 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3753 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3754 may return a STRUCT_DOMAIN match.
3755 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3756 * cp-support.c: Include language.h.
3757 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3758 VAR_DOMAIN.
3759 * psymtab.c (match_partial_symbol): Compare the requested
3760 domain with the symbol's domain directly.
3761 (lookup_partial_symbol): Likewise.
3762 * symtab.c (lookup_symbol_in_language): Explain when/why
3763 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3764 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3765 appropriate languages.
3766 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3767 and moved to ada-lang.c
3768 (lookup_block_symbol): Explain that this function only returns
3769 symbol matching the requested DOMAIN.
3770 Compare the requested domain with the symbol's domain directly.
3771 (iterate_over_symbols): Compare the requested domain with the
3772 symbol's domain directly.
3773 * symtab.h (symbol_matches_domain): Remove.
3774
25326a28 37752014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3776
3777 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3778 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3779 (gdbscm_guile_version_is_at_least): Declare.
3780 (gdbscm_scm_string_to_int): Declare.
3781 * guile/guile.c (gdbscm_guile_major_version): New global.
3782 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3783 (guile_datadir): New static global.
3784 (gdbscm_guile_data_directory): New function.
3785 (initialize_scheme_side): Update.
3786 (misc_guile_functions): Add guile-data-directory.
3787 (initialize_gdb_module): Fetch guile version number.
3788 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3789 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3790 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3791 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3792 comments.
3793 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3794 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3795 * guile/scm-value.c (gdbscm_value_to_string): Only call
3796 scm_port_conversion_strategy if Guile version >= 2.0.6.
3797
0a770bb2 37982014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3799
3800 * main.c (print_gdb_help): Add -q and --silent.
3801
73ba372c
GB
38022014-06-06 Gary Benson <gbenson@redhat.com>
3803
3804 * common/signals.c: Remove preprocessor conditionals for
3805 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3806 SIGSEGV and SIGTERM.
3807 * proc-events.c: Likewise.
3808
c33b2f12
MM
38092014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3810
3811 * symfile.c (symfile_free_objfile): Remove restriction to
3812 OBJF_USERLOADED.
3813 * symfile-mem.c (symbol_file_add_from_memory): Call
3814 add_target_sections_of_objfile.
3815
fb934770
LC
38162014-06-05 Ludovic Courtès <ludo@gnu.org>
3817
3818 * guile/scm-value.c (gdbscm_history_append_x): Use
3819 'vlscm_get_value_smob_arg_unsafe' instead of
3820 'vlscm_scm_to_value'.
3821
6ef284bd
SM
38222014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3823
3824 PR mi/15806
3825 * utils.c (printchar): Don't escape at all if quoter is NUL.
3826 Update function documentation to clarify effect of parameter
3827 QUOTER.
3828 * remote.c (escape_buffer): Pass '\\' as the quoter to
3829 fputstrn_unfiltered.
3830 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3831 generate the output.
3832 (mi_solib_unloaded): Same.
3833
270c9937
JB
38342014-06-05 Joel Brobecker <brobecker@adacore.com>
3835
3836 * development.sh: Delete.
3837 * Makefile.in (config.status): Adjust dependency on development.sh.
3838 * configure.ac: Adjust development.sh source call.
3839 * configure: Regenerate.
3840
16f691fb
DE
38412014-06-04 Doug Evans <xdje42@gmail.com>
3842
3843 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3844 is_scheme_bkpt, spec.
3845 (bpscm_make_breakpoint_smob): Initialize new members.
3846 (gdbscm_create_breakpoint_x): Split into two ...
3847 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3848 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3849 (scheme_function breakpoint_functions): Update.
3850 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3851 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3852 register-breakpoint!.
3853
ef7cab6b
JB
38542014-06-04 Joel Brobecker <brobecker@adacorer.com>
3855
3856 PR server/17023
3857 * mem-break.c (z_type_supported): Return zero if
3858 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3859
012370f6
TT
38602014-06-04 Tom Tromey <tromey@redhat.com>
3861
3862 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3863 value_from_contents_and_address_unresolved.
3864 (ada_template_to_fixed_record_type_1): Likewise.
3865 (ada_which_variant_applies): Likewise.
3866 * value.h (value_from_contents_and_address_unresolved): Declare.
3867 * value.c (value_from_contents_and_address_unresolved): New
3868 function.
3869 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3870 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3871 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3872
92e2a17f
TT
38732014-06-04 Tom Tromey <tromey@redhat.com>
3874
3875 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3876
c0939df1
TT
38772014-06-04 Tom Tromey <tromey@redhat.com>
3878
3879 * procfs.c (procfs_attach): Make "args" const.
3880 * windows-nat.c (windows_attach): Make "args" const.
3881 * nto-procfs.c (procfs_attach): Make "args" const.
3882 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3883 * go32-nat.c (go32_attach): Make "args" const.
3884 * gnu-nat.c (gnu_attach): Make "args" const.
3885 * darwin-nat.c (darwin_attach): Make "args" const.
3886 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3887 * linux-nat.c (linux_nat_attach): Make "args" const.
3888 * remote.c (extended_remote_attach_1, extended_remote_attach):
3889 Make "args" const.
3890 * target.h (struct target_ops) <to_attach>: Make "args" const.
3891 (find_default_attach): Likewise.
3892 * utils.c (parse_pid_to_attach): Make "args" const.
3893 * utils.h (parse_pid_to_attach): Update.
3894
8eaff7cd
TT
38952014-06-04 Tom Tromey <tromey@redhat.com>
3896
3897 * target-delegates.c: Rebuild.
3898 * target.c (default_thread_address_space): New function.
3899 (target_thread_address_space): Simplify.
3900 * target.h (struct target_ops) <to_thread_address_space>: Add
3901 TARGET_DEFAULT_FUNC.
3902
1913f160
DE
39032014-06-04 Doug Evans <xdje42@gmail.com>
3904
3905 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3906
70ad5bff
MM
39072014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3908
3909 * record-btrace.c: Include event-loop.h and inf-loop.h.
3910 (record_btrace_resume_exec_dir)
3911 (record_btrace_async_inferior_event_handler)
3912 (record_btrace_handle_async_inferior_event): New.
3913 (record_btrace_open): Create async event handler.
3914 (record_btrace_close): Delete async event handler.
3915 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3916 Mark async event handler.
3917 (record_btrace_execution_direction): New.
3918 (init_record_btrace_ops): Initialize to_execution_direction.
3919
b6210538
DE
39202014-06-03 Doug Evans <xdje42@gmail.com>
3921
3922 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3923 (gdbscm_make_parameter): Ditto.
3924
a5b1fd27
DE
39252014-06-03 Doug Evans <dje@google.com>
3926
3927 * exec.c (exec_close_1): Call clear_section_table instead of
3928 resize_section_table.
3929 (clear_section_table): New function.
3930 (resize_section_table): Make static. Rename arg num_added to
3931 adjustment.
3932 * exec.h (clear_section_table): Declare.
3933 (resize_section_table): Delete.
3934 * progspace.c (release_program_space): Call clear_section_table
3935 instead of resize_section_table.
3936
0c6e92a5
SC
39372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3938
3939 * NEWS (Python Scripting): Add entry about the new xmethods
3940 feature.
3941
883964a7
SC
39422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3943
3944 * python/py-xmethods.c: New file.
3945 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3946 (objfpy_dealloc): XDECREF on the new xmethods field.
3947 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3948 field.
3949 (objfpy_get_xmethods): New function.
3950 (objfile_getset): New entry 'xmethods'.
3951 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3952 (pspy_dealloc): XDECREF on the new xmethods field.
3953 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3954 field.
3955 (pspy_get_xmethods): New function.
3956 (pspace_getset): New entry 'xmethods'.
3957 * python/python-internal.h: Add declarations for new functions.
3958 * python/python.c (_initialize_python): Invoke
3959 gdbpy_initialize_xmethods.
3960 * python/lib/gdb/__init__.py (xmethods): New
3961 attribute.
3962 * python/lib/gdb/xmethod.py: New file.
3963 * python/lib/gdb/command/xmethods.py: New file.
3964
58992dc5
SC
39652014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3966
3967 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3968 best match method returned by find_overload_match is an xmethod.
3969 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3970 the best matching operator returned by find_overload_match is an
3971 xmethod.
3972 * valops.c: #include "extension.h".
3973 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3974 Return void. The list of matching source methods is returned in
3975 "fn_list" and a vector of matching debug method workers is
3976 returned in "xm_worker_vec". Update all callers.
3977 (value_find_oload_method_list): Likewise.
3978 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3979 non-NULL, then the index of the best matching method in this
3980 vector is returned. Update all callers.
3981 (find_overload_match): Include xmethods while performing overload
3982 resolution.
3983
e81e7f5e
SC
39842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3985
3986 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3987 * extension-priv.h (struct extension_language_ops): Add the
3988 xmethod interface.
3989 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3990 get_matching_xmethod_workers, get_xmethod_argtypes,
3991 invoke_xmethod, free_xmethod_worker,
3992 free_xmethod_worker_vec): New functions.
3993 * extension.h: #include "common/vec.h".
3994 New function declarations.
3995 (struct xmethod_worker): New struct.
3996 (VEC (xmethod_worker_ptr)): New vector type.
3997 (xmethod_worker_ptr): New typedef.
3998 (xmethod_worker_vec): Likewise.
3999 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4000 builtin_type.
4001 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4002 (struct builtin_type): New field "xmethod".
4003 * valarith.c (value_ptradd): Assert that the value argument is not
4004 lval_xcallable.
4005 * valops.c (value_must_coerce_to_target): Return 0 for
4006 lval_xcallable values.
4007 * value.c (struct value): New field XM_WORKER in the field
4008 LOCATION.
4009 (value_address, value_raw_address): Return 0 for lval_xcallable
4010 values.
4011 (set_value_address): Assert that the value is not an
4012 lval_xcallable.
4013 (value_free): Free the associated xmethod worker when freeing
4014 lval_xcallable values.
4015 (set_value_component_location): Assert that the WHOLE value is not
4016 lval_xcallable.
4017 (value_of_xmethod, call_xmethod): New functions.
4018 * value.h: Declare "struct xmethod_worker".
4019 Declare new functions value_of_xmethod, call_xmethod.
4020
ef370185
JB
40212014-06-03 Joel Brobecker <brobecker@adacore.com>
4022 Pedro Alves <palves@redhat.com>
4023
4024 PR breakpoints/17000
4025 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4026 New function, extracted from software_breakpoint_inserted_here_p.
4027 (software_breakpoint_inserted_here_p): Replace factored out code
4028 by call to find_non_raw_software_breakpoint_inserted_here.
4029 (bp_target_info_copy_insertion_state): New function.
4030 (bkpt_insert_location): Handle the case of a single-step
4031 breakpoint already inserted at the same address.
4032 (bkpt_remove_location): Handle the case of a single-step
4033 breakpoint still inserted at the same address.
4034 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4035 breakpoint already inserted at the same address.
4036 (deprecated_remove_raw_breakpoint): Handle the case of a
4037 non-raw breakpoint still inserted at the same address.
4038 (find_single_step_breakpoint): New function, extracted from
4039 single_step_breakpoint_inserted_here_p.
4040 (find_single_step_breakpoint): New function,
4041 factored out from single_step_breakpoint_inserted_here_p.
4042 (single_step_breakpoint_inserted_here_p): Reimplement.
4043
1e2ccb61
BM
40442014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4045
4046 Pushed by Joel Brobecker <brobecker@adacore.com>
4047 * source.c (show_substitute_path_command): Fix display of matching
4048 substitution rules.
4049
d3448d85
GB
40502014-06-03 Gary Benson <gbenson@redhat.com>
4051
4052 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4053
06eb1586
DE
40542014-06-02 Doug Evans <xdje42@gmail.com>
4055
4056 Add parameter support for Guile.
4057 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4058 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4059 (scm-param.o): New rule.
4060 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4061 (gdbscm_misc_error): Declare.
4062 (gdbscm_canonicalize_command_name): Declare.
4063 (gdbscm_scm_to_host_string): Declare.
4064 (gdbscm_scm_from_host_string): Declare.
4065 (gdbscm_initialize_parameters): Declare.
4066 * guile/guile.c (initialize_gdb_module): Call
4067 gdbscm_initialize_parameters.
4068 * guile/lib/gdb.scm: Export parameter symbols.
4069 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4070 cmdscm_canonicalize_name and made public. All callers updated.
4071 * guile/scm-exception.c (gdbscm_misc_error): New function.
4072 * guile/scm-param.c: New file.
4073 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4074 (gdbscm_scm_to_host_string): New function.
4075 (gdbscm_scm_from_host_string): New function.
4076 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4077
e698b8c4
DE
40782014-06-02 Doug Evans <xdje42@gmail.com>
4079
4080 Add command support for Guile.
4081 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4082 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4083 (scm-cmd.o): New rule.
4084 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4085 (gdbscm_user_error_p): Declare.
4086 (gdbscm_parse_command_name): Declare.
4087 (gdbscm_valid_command_class_p): Declare.
4088 (gdbscm_initialize_commands): Declare.
4089 * guile/guile.c (initialize_gdb_module): Call
4090 gdbscm_initialize_commands.
4091 * guile/lib/gdb.scm: Export command symbols.
4092 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4093 (throw-user-error): New function.
4094 * guile/scm-cmd.c: New file.
4095 * guile/scm-exception.c (user_error_symbol): New static global.
4096 (gdbscm_user_error_p): New function.
4097 (gdbscm_initialize_exceptions): Set user_error_symbol.
4098 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4099
fb1f94b0
PM
41002014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4101
4102 * top.c (command_loop): Handle comments here...
4103 (command_line_input): ... not here.
4104
ded03782
DE
41052014-06-02 Doug Evans <xdje42@gmail.com>
4106
4107 Add progspace support for Guile.
4108 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4109 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4110 (scm-progspace.o): New rule.
4111 * guile/guile-internal.h (pspace_smob): New typedef.
4112 (psscm_pspace_smob_pretty_printers): Declare.
4113 (psscm_pspace_smob_from_pspace): Declare.
4114 (psscm_scm_from_pspace): Declare.
4115 * guile/guile.c (initialize_gdb_module): Call
4116 gdbscm_initialize_pspaces.
4117 * guile/lib/gdb.scm: Export progspace symbols.
4118 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4119 support.
4120 (append-pretty-printer!): Ditto.
4121 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4122 Implement.
4123 * guile/scm-progspace.c: New file.
4124
397998fc
AM
41252014-06-03 Alan Modra <amodra@gmail.com>
4126
4127 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4128 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4129
6aa5f3a6
DE
41302014-06-02 Doug Evans <dje@google.com>
4131
4132 Add support for skeletonless type units.
4133 * dwarf2read.c (struct dwarf2_per_objfile): New member
4134 n_allocated_type_units.
4135 (struct dwarf2_per_objfile) <tu_stats>: New member
4136 nr_all_type_units_reallocs.
4137 (create_signatured_type_table_from_index): Initialize
4138 n_allocated_type_units
4139 (create_all_type_units): Ditto.
4140 (add_type_unit): Move up in file. New arg slot.
4141 All callers updated. Increase space for all_type_units more
4142 efficiently.
4143 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4144 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4145 (lookup_dwp_signatured_type): Ditto.
4146 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4147 All callers updated.
4148 (build_type_psymtabs_1): Leave type_unit_groups as
4149 NULL if no TUs present.
4150 (print_tu_stats): New function.
4151 (process_skeletonless_type_unit): New function.
4152 (process_dwo_file_for_skeletonless_type_units): New
4153 function.
4154 (process_skeletonless_type_units): New function.
4155 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4156 Call print tu_stats if debugging enabled.
4157
41fac0cf
PA
41582014-06-02 Pedro Alves <palves@redhat.com>
4159
4160 * breakpoint.c (build_target_command_list): Don't build a command
4161 list if we have any duplicate location that isn't a dprintf.
4162
cd1608cc
PA
41632014-06-02 Pedro Alves <palves@redhat.com>
4164
4165 * breakpoint.c (dprintf_breakpoint_hit): New function.
4166 (initialize_breakpoint_ops): Install it as dprintf's
4167 breakpoint_hit method.
4168
486ef3b9
JB
41692014-06-02 Joel Brobecker <brobecker@adacore.com>
4170
4171 * source.c (substitute_path_rule_matches): Simplify using
4172 filename_ncmp instead of FILENAME_CMP.
4173
230cd560
JB
41742014-06-02 Joel Brobecker <brobecker@adacore.com>
4175
4176 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4177
16954d5d
LC
41782014-06-01 Ludovic Courtès <ludo@gnu.org>
4179
4180 * configure.ac: When Guile is available, check for the
4181 availability of 'scm_new_smob'.
4182 * configure, config.h.in: Regenerate.
4183 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4184 function.
4185
53e8a631
AB
41862014-05-30 Andrew Burgess <aburgess@broadcom.com>
4187
4188 * frame.c (struct frame_info): Add stop_string field.
4189 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4190 (get_prev_frame_always): Old content moved into
4191 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4192 TRY_CATCH, handle MEMORY_ERROR exceptions.
4193 (frame_stop_reason_string): New function definition.
4194 * frame.h (unwind_stop_reason_to_string): Extend comment to
4195 mention frame_stop_reason_string.
4196 (frame_stop_reason_string): New function declaration.
4197 * stack.c (frame_info): Switch to frame_stop_reason_string.
4198 (backtrace_command_1): Switch to frame_stop_reason_string.
4199 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4200 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4201 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4202
70e38b8e
AB
42032014-05-30 Andrew Burgess <aburgess@broadcom.com>
4204
4205 * frame.c (frame_stop_reason_string): Rename to ...
4206 (unwind_stop_reason_to_string): this.
4207 * frame.h (frame_stop_reason_string): Rename to ...
4208 (unwind_stop_reason_to_string): this.
4209 * stack.c (frame_info): Update call to frame_stop_reason_string.
4210 (backtrace_command_1): Likewise.
4211 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4212 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4213
938f0e2f
AB
42142014-05-30 Andrew Burgess <aburgess@broadcom.com>
4215
4216 * frame.c (remove_prev_frame): New function.
4217 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4218 remove_prev_frame.
4219
a09dd441
PA
42202014-05-29 Pedro Alves <palves@redhat.com>
4221
4222 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4223 and make it const. When a single-step decays to a continue,
4224 clear 'step', not 'hw_step'. Pass whether the caller wanted
4225 to step to user_visible_resume_ptid, not what we ask the
4226 target to do.
4227
bdc36728
PA
42282014-05-29 Pedro Alves <palves@redhat.com>
4229
4230 * infrun.c (process_event_stop_test, handle_step_into_function)
4231 (handle_step_into_function_backward): Adjust.
4232 Don't set the even thread's stop_step and call stop_waiting before
4233 calling end_stepping_range. Instead do that ...
4234 (end_stepping_range): ... here. Take an ecs pointer parameter.
4235
22bcd14b
PA
42362014-05-29 Pedro Alves <palves@redhat.com>
4237
4238 * infrun.c (stop_stepping): Rename to ...
4239 (stop_waiting): ... this.
4240 (proceed): Update comment.
4241 (process_event_stop_test, handle_inferior_event)
4242 (handle_signal_stop, handle_step_into_function)
4243 (handle_step_into_function_backward): Update.
4244
4ae57c05
PA
42452014-05-29 Pedro Alves <palves@redhat.com>
4246
4247 * infcall.c (run_inferior_call): Don't check whether the current
4248 thread is running after the proceed call.
4249
329ea579
PA
42502014-05-29 Pedro Alves <palves@redhat.com>
4251 Tom Tromey <tromey@redhat.com>
4252
4253 * NEWS: Mention "maint set target-async", "set mi-async", and that
4254 background execution commands are now always available.
4255 * target.h (target_async_permitted): Update comment.
4256 * target.c (target_async_permitted, target_async_permitted_1):
4257 Default to 1.
4258 (set_target_async_command): Rename to ...
4259 (maint_set_target_async_command): ... this.
4260 (show_target_async_command): Rename to ...
4261 (maint_show_target_async_command): ... this.
4262 (_initialize_target): Adjust.
4263 * infcmd.c (prepare_execution_command): Make extern.
4264 * inferior.h (prepare_execution_command): Declare.
4265 * infrun.c (set_observer_mode): Leave target async alone.
4266 * mi/mi-interp.c (mi_interpreter_init): Install
4267 mi_on_sync_execution_done as sync_execution_done observer.
4268 (mi_on_sync_execution_done): New function.
4269 (mi_execute_command_input_handler): Don't print the prompt if we
4270 just started a synchronous command with an async target.
4271 (mi_on_resume): Check sync_execution before printing prompt.
4272 * mi/mi-main.h (mi_async_p): Declare.
4273 * mi/mi-main.c: Include gdbcmd.h.
4274 (mi_async_p): New function.
4275 (mi_async, mi_async_1): New globals.
4276 (set_mi_async_command, show_mi_async_command, mi_async): New
4277 functions.
4278 (exec_continue): Call prepare_execution_command.
4279 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4280 (mi_execute_async_cli_command): Use mi_async_p.
4281 (_initialize_mi_main): Install "set mi-async". Make
4282 "target-async" a deprecated alias.
4283
92bcb5f9
PA
42842014-05-29 Pedro Alves <palves@redhat.com>
4285
4286 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4287 (_initialize_cli_interp): Adjust.
4288 * event-loop.c: Include "observer.h".
4289 (start_event_loop): Notify 'command_error' observers instead of
4290 calling display_gdb_prompt. Remove FIXME comment.
4291 * event-top.c (display_gdb_prompt): Remove call into the
4292 interpreters.
4293 * inf-loop.c: Include "observer.h".
4294 (inferior_event_handler): Notify 'command_error' observers instead
4295 of calling display_gdb_prompt.
4296 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4297 observers instead of calling display_gdb_prompt.
4298 * interps.c (interp_set): Don't call display_gdb_prompt.
4299 (current_interp_display_prompt_p): Delete.
4300 * interps.h (interp_prompt_p): Delete declaration.
4301 (interp_prompt_p_ftype): Delete.
4302 (struct interp_procs) <prompt_proc_p>: Delete field.
4303 (current_interp_display_prompt_p): Delete declaration.
4304 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4305 (_initialize_mi_interp): Adjust.
4306 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4307 'command_error' observers.
4308 (tui_on_sync_execution_done, tui_on_command_error): New
4309 functions.
4310 (tui_display_prompt_p): Delete.
4311 (_initialize_tui_interp): Adjust.
4312
fd664c91
PA
43132014-05-29 Pedro Alves <palves@redhat.com>
4314
4315 PR gdb/13860
4316 * cli/cli-interp.c: Include infrun.h and observer.h.
4317 (cli_uiout, cli_interp): New globals.
4318 (cli_on_signal_received, cli_on_end_stepping_range)
4319 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4320 functions.
4321 (cli_interpreter_init): Install them as 'end_stepping_range',
4322 'signal_received' 'signal_exited', 'exited' and 'no_history'
4323 observers.
4324 (_initialize_cli_interp): Remove cli_interp local.
4325 * infrun.c (handle_inferior_event): Call the several stop reason
4326 observers instead of printing the stop reason directly.
4327 (end_stepping_range): New function.
4328 (print_end_stepping_range_reason, print_signal_exited_reason)
4329 (print_exited_reason, print_signal_received_reason)
4330 (print_no_history_reason): Make static, and add an uiout
4331 parameter. Print to that instead of to CURRENT_UIOUT.
4332 * infrun.h (print_end_stepping_range_reason)
4333 (print_signal_exited_reason, print_exited_reason)
4334 (print_signal_received_reason print_no_history_reason): New
4335 declarations.
4336 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4337 'mi_uiout'.
4338 <cli_uiout>: New field.
4339 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4340 uiout for CLI output. Install 'signal_received',
4341 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4342 observers.
4343 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4344 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4345 (mi_on_no_history): New functions.
4346 (ui_out_free_cleanup): Delete function.
4347 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4348 instead use the one already stored in the MI interpreter data.
4349 (mi_ui_out): Adjust.
4350 * tui/tui-interp.c: Include infrun.h and observer.h.
4351 (tui_interp): New global.
4352 (tui_on_signal_received, tui_on_end_stepping_range)
4353 (tui_on_signal_exited, tui_on_exited)
4354 (tui_on_no_history): New functions.
4355 (tui_init): Install them as 'end_stepping_range',
4356 'signal_received' 'signal_exited', 'exited' and 'no_history'
4357 observers.
4358 (_initialize_tui_interp): Delete tui_interp local.
4359
8817a6f2
PA
43602014-05-29 Pedro Alves <palves@redhat.com>
4361
4362 PR gdb/15713
4363 * linux-nat.c (linux_nat_resume_callback): Rename the second
4364 parameter to 'except'. Skip LP if it points to EXCEPT.
4365 (linux_nat_resume): Don't mark the event lwp as not stopped
4366 before resuming sibling lwps. Instead ask
4367 linux_nat_resume_callback to skip the event lwp. Mark it as not
4368 stopped after actually resuming it.
4369 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4370 resuming it.
4371 (wait_lwp): Mark the lwp as stopped here.
4372 (stop_wait_callback): Mark the lwp as not stopped right after
4373 resuming it. Don't mark lwps as stopped here.
4374 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4375 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4376
251bde03
PA
43772014-05-29 Pedro Alves <palves@redhat.com>
4378
4379 PR PR15693
4380 * infrun.c (resume): Determine how much to resume depending on
4381 whether the caller wanted a step, not whether we can hardware step
4382 the target. Mark all threads that we intend to run as running,
4383 unless we're calling an inferior function.
4384 (normal_stop): If the thread is running an infcall, don't finish
4385 thread state.
4386 * target.c (target_resume): Don't mark threads as running here.
4387
7f3c0343
JB
43882014-05-28 Joel Brobecker <brobecker@adacore.com>
4389
4390 * serial.c (_initialize_serial): Remove support for
4391 the "set remotebaud" and "show remotebaud" commands.
4392 * NEWS: Add entry documenting the removal of that command.
4393
ee34b3f9
YQ
43942014-05-28 Yao Qi <yao@codesourcery.com>
4395
4396 * charset.c: Fix typo in comments.
4397
add6c04d
GB
43982014-05-27 Gary Benson <gbenson@redhat.com>
4399
4400 * utils.c (internal_vproblem): Prompt for a bug report.
4401
92c48fc5
AW
44022014-05-26 Andy Wingo <wingo@igalia.com>
4403
4404 * guile/scm-arch.c (arscm_mark_arch_smob):
4405 * guile/scm-block.c (bkscm_mark_block_smob)
4406 (bkscm_mark_block_syms_progress_smob):
4407 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4408 * guile/scm-exception.c (exscm_mark_exception_smob):
4409 * guile/scm-frame.c (frscm_mark_frame_smob):
4410 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4411 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4412 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4413 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4414 (ppscm_mark_pretty_printer_worker_smob):
4415 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4416 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4417 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4418 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4419 mark functions.
4420 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4421 function.
4422
b2715b27
AW
44232014-05-26 Andy Wingo <wingo@igalia.com>
4424 Doug Evans <xdje42@gmail.com>
4425
4426 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4427 empty_base_class. All uses updated.
4428 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4429 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4430 Adapt all callers.
4431 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4432 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4433 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4434 (gdbscm_gsmob_has_property_p, add_property_name)
4435 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4436 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4437 (gdb-object-has-property?, gdb-object-properties): Remove.
4438 (gdb-object-kind): Renamed from gsmob-kind.
4439
214ab2da
AW
44402014-05-26 Andy Wingo <wingo@igalia.com>
4441
4442 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4443 * configure: Regenerate.
4444
589fdceb
MM
44452014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4446
4447 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4448
67b5c0c1
MM
44492014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4450
4451 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4452 (replay_memory_access_read_only, replay_memory_access_read_write)
4453 (replay_memory_access_types, replay_memory_access)
4454 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4455 (cmd_set_record_btrace, cmd_show_record_btrace)
4456 (cmd_show_replay_memory_access): New.
4457 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4458 (record_btrace_remove_breakpoint): Replace
4459 record_btrace_allow_memory_access with replay_memory_access.
4460 (_initialize_record_btrace): Add commands.
4461 * NEWS: Announce it.
4462
036cd381
RR
44632014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4464
4465 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4466
c77c1e42
RR
44672014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4468
4469 * MAINTAINERS (Write After Approval): Move self back from
4470 paper trail.
4471
45741a9c
PA
44722014-05-22 Pedro Alves <palves@redhat.com>
4473
4474 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4475 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4476 (disable_randomization, enum exec_direction_kind)
4477 (execution_direction, stop_registers, start_remote)
4478 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4479 (wait_for_inferior, normal_stop, get_last_target_status)
4480 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4481 (insert_step_resume_breakpoint_at_sal)
4482 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4483 (set_step_info, print_stop_event, signal_stop_state)
4484 (signal_print_state, signal_pass_state, signal_stop_update)
4485 (signal_print_update, signal_pass_update)
4486 (update_signals_program_target, clear_exit_convenience_vars)
4487 (displaced_step_dump_bytes, update_observer_mode)
4488 (signal_catch_update, gdb_signal_from_command): Move
4489 declarations ...
4490 * infrun.h: ... to this new file.
4491 * amd64-tdep.c: Include infrun.h.
4492 * annotate.c: Include infrun.h.
4493 * arch-utils.c: Include infrun.h.
4494 * arm-linux-tdep.c: Include infrun.h.
4495 * arm-tdep.c: Include infrun.h.
4496 * break-catch-sig.c: Include infrun.h.
4497 * breakpoint.c: Include infrun.h.
4498 * common/agent.c: Include infrun.h instead of inferior.h.
4499 * corelow.c: Include infrun.h.
4500 * event-top.c: Include infrun.h.
4501 * go32-nat.c: Include infrun.h.
4502 * i386-tdep.c: Include infrun.h.
4503 * inf-loop.c: Include infrun.h.
4504 * infcall.c: Include infrun.h.
4505 * infcmd.c: Include infrun.h.
4506 * infrun.c: Include infrun.h.
4507 * linux-fork.c: Include infrun.h.
4508 * linux-nat.c: Include infrun.h.
4509 * linux-thread-db.c: Include infrun.h.
4510 * monitor.c: Include infrun.h.
4511 * nto-tdep.c: Include infrun.h.
4512 * procfs.c: Include infrun.h.
4513 * record-btrace.c: Include infrun.h.
4514 * record-full.c: Include infrun.h.
4515 * remote-m32r-sdi.c: Include infrun.h.
4516 * remote-mips.c: Include infrun.h.
4517 * remote-notif.c: Include infrun.h.
4518 * remote-sim.c: Include infrun.h.
4519 * remote.c: Include infrun.h.
4520 * reverse.c: Include infrun.h.
4521 * rs6000-tdep.c: Include infrun.h.
4522 * s390-linux-tdep.c: Include infrun.h.
4523 * solib-irix.c: Include infrun.h.
4524 * solib-osf.c: Include infrun.h.
4525 * solib-svr4.c: Include infrun.h.
4526 * target.c: Include infrun.h.
4527 * top.c: Include infrun.h.
4528 * windows-nat.c: Include infrun.h.
4529 * mi/mi-interp.c: Include infrun.h.
4530 * mi/mi-main.c: Include infrun.h.
4531 * python/py-threadevent.c: Include infrun.h.
4532
98eb56a4
PA
45332014-05-22 Pedro Alves <palves@redhat.com>
4534
4535 * infrun.c (handle_inferior_event): Store the exit code for
4536 --return-child-result here, instead of ...
4537 (print_exited_reason): ... here.
4538
17b2616c
PA
45392014-05-21 Pedro Alves <palves@redhat.com>
4540
4541 PR gdb/13860
4542 * gdbthread.h (struct thread_control_state): New field
4543 `command_interp'.
4544 * infrun.c (follow_fork): Copy the new thread control field to the
4545 child fork thread.
4546 (clear_proceed_status_thread): Clear the new thread control field.
4547 (proceed): Set the new thread control field.
4548 * interps.h (command_interp): Declare.
4549 * interps.c (command_interpreter): New global.
4550 (command_interp): New function.
4551 (interp_exec): Set `command_interpreter' while here.
4552 * cli-out.c (cli_uiout_dtor): New function.
4553 (cli_ui_out_impl): Install it.
4554 * mi/mi-interp.c: Include cli-out.h.
4555 (mi_cmd_interpreter_exec): Add comment.
4556 (restore_current_uiout_cleanup): New function.
4557 (ui_out_free_cleanup): New function.
4558 (mi_on_normal_stop): If finishing an execution command started by
4559 a CLI command, or any kind of breakpoint-like event triggered,
4560 print the stop event to the output (CLI) stream.
4561 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4562
5166082f
PA
45632014-05-21 Pedro Alves <palves@redhat.com>
4564
4565 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4566 current source line having changed.
4567 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4568 * infrun.c (normal_stop): Adjust call to
4569 set_current_sal_from_frame.
4570 * source.c (clear_lines_listed_range): New function.
4571 (set_current_source_symtab_and_line, identify_source_line): Clear
4572 the lines listed range.
4573 (line_info): Handle the first "info line" after the current source
4574 line having changed.
4575 * stack.c (print_stack_frame): Remove center handling.
4576 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4577 center sal.line.
4578
c1ee2fb3
PA
45792014-05-21 Pedro Alves <palves@redhat.com>
4580
4581 * inf-child.c (inf_child_mourn_inferior): New function.
4582 * inf-child.h (inf_child_mourn_inferior): New declaration.
4583 * darwin-nat.c (darwin_mourn_inferior): Use
4584 inf_child_mourn_inferior.
4585 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4586 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4587 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4588 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4589 * windows-nat.c (windows_mourn_inferior): Likewise.
4590
5c6d4fb2
DE
45912014-05-21 Doug Evans <xdje42@gmail.com>
4592
250748cb 4593 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4594
4a2722c5
DE
45952014-05-21 Doug Evans <xdje42@gmail.com>
4596
17292b30 4597 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4598 (gdbscm_out_of_range_error): Ditto.
4599 (gdbscm_memory_error): Ditto.
250748cb
DE
4600 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4601 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4602 (gdbscm_out_of_range_error): Update.
4603 (gdbscm_memory_error): Update.
4604 (gdbscm_scm_to_target_string_unsafe): Delete.
4605
6a3cb8e8
PA
46062014-05-21 Pedro Alves <palves@redhat.com>
4607
4608 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4609 globals.
4610 (inf_child_open_target): New function.
4611 (inf_child_open): Use inf_child_open_target to push the target
4612 instead of erroring out.
4613 (inf_child_disconnect, inf_child_close)
4614 (inf_child_maybe_unpush_target): New functions.
4615 (inf_child_target): Install inf_child_disconnect and
4616 inf_child_close. Store a pointer to the returned object.
4617 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4618 declarations.
4619 * target.c (auto_connect_native_target): New global.
4620 (show_default_run_target): New function.
4621 (find_default_run_target): Return NULL if automatically connecting
4622 to the native target is disabled.
4623 (_initialize_target): Install set/show auto-connect-native-target.
4624 * NEWS: Mention "set auto-connect-native-target", and "target
4625 native".
4626 * linux-nat.c (super_close): New global.
4627 (linux_nat_close): Call super_close.
4628 (linux_nat_add_target): Store a pointer to the base class's
4629 to_close method.
4630 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4631 inf_child_maybe_unpush.
4632 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4633 already pushed.
4634 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4635 the inferior. Use inf_child_maybe_unpush_target.
4636 (inf_ttrace_attach): Don't push the target if it is already
4637 pushed.
4638 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4639 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4640 after mourning the inferior. Use inf_child_maybe_unpush_target.
4641 (darwin_attach_pid): Don't push the target if it is already
4642 pushed.
4643 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4644 mourning the inferior. Use inf_child_maybe_unpush_target.
4645 (gnu_detach): Use inf_child_maybe_unpush_target.
4646 * go32-nat.c (go32_create_inferior): Don't push the target if it
4647 is already pushed.
4648 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4649 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4650 (procfs_open): Rename to ...
4651 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4652 comments. Can target_preopen before changing node. Call
4653 inf_child_open_target to push the target explicitly.
4654 (procfs_attach): Don't push the target if it is already pushed.
4655 (procfs_detach): Use inf_child_maybe_unpush_target.
4656 (procfs_create_inferior): Don't push the target if it is already
4657 pushed.
4658 (nto_native_ops): New global.
4659 (procfs_open): Reimplement.
4660 (procfs_native_open): New function.
4661 (init_procfs_targets): Install procfs_native_open as to_open of
4662 "target native". Store a pointer to the "native" target in
4663 nto_native_ops.
4664 * procfs.c (procfs_attach): Don't push the target if it is already
4665 pushed.
4666 (procfs_detach): Use inf_child_maybe_unpush_target.
4667 (procfs_mourn_inferior): Only unpush the target after mourning the
4668 inferior. Use inf_child_maybe_unpush_target.
4669 (procfs_init_inferior): Don't push the target if it is already
4670 pushed.
4671 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4672 if it is already pushed.
4673
930ee1b1
PA
46742014-05-21 Pedro Alves <palves@redhat.com>
4675
4676 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4677 and "procfs" targets are now called "native" instead.
4678
1f5d1b13
PA
46792014-05-21 Pedro Alves <palves@redhat.com>
4680
4681 * go32-nat.c (go32_open): Delete.
4682 (go32_target): Don't override the to_open method.
4683
132f8e03
PA
46842014-05-21 Pedro Alves <palves@redhat.com>
4685
4686 * nto-procfs.c (procfs_can_run): New function.
4687 (nto_procfs_ops): New global.
4688 (init_procfs_targets): New, based on procfs_target. Install
4689 "target native" in addition to "target procfs".
4690 (_initialize_procfs): Call init_procfs_targets instead of adding
4691 the target here.
4692
03c136c3
PA
46932014-05-21 Pedro Alves <palves@redhat.com>
4694
4695 * windows-nat.c (windows_target): Don't override to_shortname,
4696 to_longname or to_doc.
4697
a635d0f3
PA
46982014-05-21 Pedro Alves <palves@redhat.com>
4699
4700 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4701 to_doc.
4702
4f9b5133
PA
47032014-05-21 Pedro Alves <palves@redhat.com>
4704
4705 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4706 to_shortname, to_longname or to_doc.
4707
bc85afde
PA
47082014-05-21 Pedro Alves <palves@redhat.com>
4709
4710 * go32-nat.c (go32_target): Don't override to_shortname,
4711 to_longname or to_doc.
4712
4ebfc96e
PA
47132014-05-21 Pedro Alves <palves@redhat.com>
4714
4715 * inf-child.c (inf_child_open): Remove mention of "child".
4716 (inf_child_target): Rename target to "native" instead of "child".
4717
2648dfed
AA
47182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4719
4720 * Makefile.in (SFILES): Delete "regset.c".
4721 (COMMON_OBS): Delete "regset.o".
4722 * regset.c: Remove.
4723 * regset.h (regset_alloc): Delete prototype.
4724
b13feb94
AA
47252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4726
4727 * sparc-linux-tdep.c (sparc32_linux_gregset)
4728 (sparc32_linux_fpregset): New static regset structures.
4729 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4730 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4731 'fpregset' fields.
4732 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4733 (sparc64_linux_fpregset): New static regset structures.
4734 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4735 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4736 New static regset structures.
4737 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4738 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4739 New static regset structures.
4740 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4741 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4742 New static regset structures.
4743 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4744 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4745 New static regset structures.
4746 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4747
b4fd25c9
AA
47482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4749
4750 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4751 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4752 register maps ("regmaps") from "*regset" to "*regmap". Do this
4753 for all regmap types and variables.
4754 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4755 (sparc32_linux_supply_core_gregset)
4756 (sparc32_linux_collect_core_gregset)
4757 (sparc32_linux_supply_core_fpregset)
4758 (sparc32_linux_collect_core_fpregset): Likewise.
4759 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4760 (sparc_gregmap, sparc_fpregmap): ... these.
4761 (sparc_supply_gregset, sparc_collect_gregset)
4762 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4763 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4764 (_initialize_sparc_nat): Rename regmaps.
4765 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4766 (sparc_gregmap, sparc_fpregmap): ... these.
4767 (sparc_supply_gregset, sparc_collect_gregset)
4768 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4769 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4770 Rename macros to...
4771 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4772 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4773 Likewise.
4774 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4775 Rename to...
4776 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4777 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4778 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4779 regmaps.
4780 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4781 (sparc32_bsd_fpregset): Rename to...
4782 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4783 (sparc32_bsd_fpregmap): ... these.
4784 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4785 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4786 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4787 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4788 (struct sparc_gregmap, struct sparc_fpregmap)
4789 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4790 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4791 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4792 (sparc32_supply_regset, sparc32_collect_gregset)
4793 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4794 prototypes.
4795 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4796 (sparc64_linux_ptrace_gregmap): ... this.
4797 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4798 (_initialize_sparc64_linux_nat): Rename regmaps.
4799 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4800 (sparc64_linux_core_gregmap): ... this.
4801 (sparc64_linux_supply_core_gregset)
4802 (sparc64_linux_collect_core_gregset)
4803 (sparc64_linux_supply_core_fpregset)
4804 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4805 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4806 (sparc64_sol2_fpregset): Rename to...
4807 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4808 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4809 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4810 regmaps.
4811 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4812 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4813 (sparc64_bsd_fpregset): Rename to...
4814 (struct sparc_gregmap, sparc64_sol2_gregmap)
4815 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4816 (sparc64_bsd_fpregmap): ... these.
4817 (sparc64_supply_gregset, sparc64_collect_gregset)
4818 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4819 prototypes.
4820 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4821 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4822 (sparc64fbsd_gregmap): ... this.
4823 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4824 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4825 Rename regmaps.
4826 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4827 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4828 (sparc64nbsd_collect_fpregset): Likewise.
4829 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4830 (sparc64nbsd_gregmap): ... this.
4831 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4832 regmaps.
4833 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4834 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4835 (sparc64obsd_gregmap): ... this.
4836 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4837 regmaps.
4838 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4839 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4840 (sparc32nbsd_gregmap): ... this.
4841 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4842 regmaps.
4843
8fea3224
AA
48442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4845
4846 * score-tdep.c (score7_linux_gregset): New static regset
4847 structure.
4848 (score7_linux_regset_from_core_section): Remove dynamic regset
4849 allocation.
4850 (score_gdbarch_init): Drop allocation of tdep structure.
4851 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4852
24534243
AA
48532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4854
4855 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4856 regset structures.
4857 (am33_regset_from_core_section): Remove dynamic regset
4858 allocations.
4859
b7195f27
AA
48602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4861
4862 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4863 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4864 structures.
4865 (mips_linux_regset_from_core_section): Remove dynamic regset
4866 allocations.
4867 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4868 'gregset64', 'fpregset', and 'fpregset64'.
4869 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4870 deleted tdep fields.
4871
ecc37a5a
AA
48722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4873
4874 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4875 regset structures.
4876 (amd64_regset_from_core_section): Remove dynamic regset
4877 allocations.
4878 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4879 structure.
4880 (amd64obsd_regset_from_core_section): Remove dynamic regset
4881 allocation.
4882 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4883 Likewise.
4884 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4885 x86-common regset supply function.
4886 * i386-tdep.c (i386_collect_gregset): Make static.
4887 (i386_gregset): New global regset structure.
4888 (i386_fpregset, i386_xstateregset): New static regset structures.
4889 (i386_regset_from_core_section): Remove dynamic regset
4890 allocations.
4891 (i386_gdbarch_init): Remove initialization of tdep fields
4892 'gregset', 'fpregset', and 'xstateregset'.
4893 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4894 'fpregset', and 'xstateregset'.
4895 (i386_collect_gregset): Remove prototype.
4896 (i386_gregset): New declaration.
4897 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4898 structure.
4899 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4900 allocation.
4901
b7611c43
AA
49022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4903
4904 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4905 (arm_linux_vfpregset): New static regset structures.
4906 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4907 regset structures.
4908 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4909 and 'vfpregset' fields.
4910
a069a2bd
AA
49112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4912
4913 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4914 (aarch64_linux_fpregset): New static regset structures.
4915 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4916 of regset structures.
4917 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4918 'fpregset' fields.
4919
09424cff
AA
49202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4921
4922 * regset.h (struct regset): Remove gdbarch field.
4923 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4924 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4925 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4926 Likewise.
4927 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4928 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4929 (ppc32_linux_vsxregset): Likewise.
4930 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4931 via the regcache instead of the regset.
4932 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4933 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4934 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4935 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4936 Likewise.
4937
3ca7dae4
AA
49382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4939
4940 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4941 Constify structures.
4942 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4943 (alphanbsd_aout_gregset): Likewise.
4944 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4945 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4946 Likewise.
4947 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4948 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4949 Likewise.
4950 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4951 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4952 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4953 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4954 * m88k-tdep.c (m88k_gregset): Likewise.
4955 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4956 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4957 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4958 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4959 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4960 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4961 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4962 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4963 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4964 Likewise.
4965 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4966 * sh-tdep.h (sh_corefile_gregset): Likewise.
4967 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4968 * vax-tdep.c (vax_gregset): Likewise.
4969
5876f503
JK
49702014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4971
4972 Fix TLS access for -static -pthread.
4973 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4974 (try_thread_db_load_1): Initialize it.
4975 (thread_db_get_thread_local_address): Call it if LM is zero.
4976 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4977 * target.h (struct target_ops) (to_get_thread_local_address): Add
4978 load_module_addr comment.
4979
0256a6ac
PA
49802014-05-21 Pedro Alves <palves@redhat.com>
4981
4982 * dcache.c (dcache_read_memory_partial): If reading the cache line
4983 fails, fallback to reading just the memory the caller wanted.
4984
227533ac
DE
49852014-05-20 Doug Evans <dje@google.com>
4986
4987 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4988 instead of get_current_arch.
4989
936d2992
PA
49902014-05-20 Pedro Alves <palves@redhat.com>
4991
4992 * NEWS: Mention that compare-sections now works with all targets.
4993
4994 * remote.c (PACKET_qCRC): New enum value.
4995 (remote_verify_memory): Don't send qCRC if the target has no
4996 execution. Use packet_support/packet_ok. If the target doesn't
4997 support the qCRC packet, fallback to a deep memory copy.
4998 (compare_sections_command): Say "target image" instead of "remote
4999 executable".
5000 (_initialize_remote): Add PACKET_qCRC to the list of config
5001 packets that have no associated command. Extend comment.
5002 * target.c (simple_verify_memory, default_verify_memory): New
5003 function.
5004 * target.h (struct target_ops) <to_verify_memory>: Default to
5005 default_verify_memory.
5006 (simple_verify_memory): New declaration.
5007 * target-delegates.c: Regenerate.
5008
e59fa00f
MM
50092014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5010
5011 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5012
f2205de0
HZ
50132014-05-20 Hui Zhu <hui@codesourcery.com>
5014 Yao Qi <yao@codesourcery.com>
5015
5016 PR backtrace/16558
5017 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5018 and change address of sp and pc.
5019
c4e54771
TT
50202014-05-19 Tom Tromey <tromey@redhat.com>
5021
5022 * gdbtypes.c (rank_function): Use XNEWVEC.
5023 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5024
73051182
DE
50252014-05-19 Doug Evans <dje@google.com>
5026
5027 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5028 build_type_unit_groups and moved closer to only caller. Remove
5029 arguments. All references updated. Remove outdated .gdb_index
5030 comment.
5031 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5032 build_type_psymtabs_1.
5033
8832e7e3
DE
50342014-05-19 Doug Evans <dje@google.com>
5035
5036 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5037 n_type_unit_groups, all_type_unit_groups. All uses removed.
5038 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5039 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5040 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5041 (add_type_unit_group_to_table): Delete.
5042
cd8ae15e
DE
50432014-05-19 Doug Evans <dje@google.com>
5044
5045 * eval.c (evaluate_subexp_standard): Add some comments.
5046
08f4850b
DE
50472014-05-17 Doug Evans <xdje42@gmail.com>
5048
5049 * progspace.c (remove_program_space): Delete, unused.
5050 * progspace.h (remove_program_space): Ditto.
5051
bed8455c
DE
50522014-05-17 Doug Evans <xdje42@gmail.com>
5053
5054 * inferior.c (prune_inferiors): Fix comment.
5055 (remove_inferior_command): Call prune_program_spaces.
5056
8d551b02
DE
50572014-05-16 Doug Evans <dje@google.com>
5058
5059 New command line option -D.
5060 * NEWS: Mention it.
5061 * main.c (set_gdb_data_directory): New function.
5062 (captured_main): Recognize -D. Flag error for --data-directory "".
5063 Call set_gdb_data_directory.
5064 (print_gdb_help): Print --data-directory, -D.
5065 * main.h (set_gdb_data_directory): Declare.
5066 * top.c (staged_gdb_datadir): New static global.
5067 (set_gdb_datadir): Call set_gdb_data_directory
5068 (show_gdb_datadir): New function.
5069 (init_main): Update init of data-directory parameter.
5070
18848e28
GF
50712014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5072
5073 Import the "dirfd" gnulib module.
5074 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5075 * gnulib/aclocal.m4: Update.
5076 * gnulib/config.in: Update.
5077 * gnulib/configure: Update.
5078 * gnulib/import/Makefile.am: Update.
5079 * gnulib/import/Makefile.in: Update.
5080 * gnulib/import/dirfd.c: New.
5081 * gnulib/import/m4/dirfd.m4: New.
5082 * gnulib/import/m4/gnulib-cache.m4: Update.
5083 * gnulib/import/m4/gnulib-comp.m4: Update.
5084
95c64f92
YQ
50852014-05-16 Pierre Muller <muller@sourceware.org>
5086 Yao Qi <yao@codesourcery.com>
5087
5088 * valprint.c (print_wchar): Move the code on checking whether
5089 W is a printable wide char to the default branch of switch
5090 statement below. Call wchar_printable instead of gdb_iswprint.
5091
cac395ea
TM
50922014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5093
19679eca 5094 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5095 ldr.w and ldrd instructions.
5096
83655187
DE
50972014-05-15 Doug Evans <dje@google.com>
5098
5099 * dwarf2read.c (read_structure_type): Delete outdated comments.
5100
dd756689
TT
51012014-05-14 Tom Tromey <tromey@redhat.com>
5102
5103 * macrocmd.c (print_macro_definition): Reindent.
5104
75ddda77
DE
51052014-05-13 Doug Evans <xdje42@gmail.com>
5106
5107 * python/py-cmd.c (cmdpy_completer): Add comment.
5108 (completers): Make const.
5109
b0f16a3e
SM
51102014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5111
5112 * infrun.c (resume): Remove should_resume (unused). Move up
5113 declaration of resume_ptid.
5114
033c3379
TT
51152014-05-13 Tom Tromey <tromey@redhat.com>
5116
5117 * language.h (unop_type_check): Remove.
5118 (binop_type_check): Don't declare.
5119
9b44a3a5
AA
51202014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5121
5122 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5123 call to regcache_raw_collect.
5124
303a33fa
SM
51252014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5126
5127 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5128 mi_console->quote as the quoting character.
5129
196100a0
SM
51302014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5131
5132 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5133
f989a1c8
TT
51342014-04-29 Tom Tromey <tromey@redhat.com>
5135
5136 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5137 "show debug varobj".
5138
9404b58f
KM
51392014-05-07 Kyle McMartin <kyle@redhat.com>
5140
5141 Pushed by Joel Brobecker <brobecker@adacore.com>.
5142 * aarch64-tdep.c (aarch64_software_single_step): New function.
5143 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5144 with aarch64_software_single_step.
5145
5e49ba57
JB
51462014-05-05 Joel Brobecker <brobecker@adacore.com>
5147
5148 GDB 7.7.1 released.
5149
c888a17d
KS
51502014-05-05 Keith Seitz <keiths@redhat.com>
5151
5152 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5153 variable or history value is successfully parsed.
5154
290a839c
YQ
51552014-05-05 Yao Qi <yao@codesourcery.com>
5156 Pedro Alves <palves@redhat.com>
5157
5158 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5159 address of blocks that intersects the requested range. Trim
5160 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5161 sections.
5162 * ctf.c (ctf_xfer_partial): Likewise.
5163
91256dc2
YQ
51642014-05-05 Yao Qi <yao@codesourcery.com>
5165
5166 * printcmd.c (display_command): Remove the check to
5167 target_has_execution.
5168
07284463
MK
51692014-05-03 Mark Kettenis <kettenis@gnu.org>
5170
5171 * ppcobsd-nat.c: Include "obsd-nat.h".
5172 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5173 add_target.
5174 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5175
30a1e6cc
SDJ
51762014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5177
5178 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5179 and 16-bit signed and unsigned arguments. Update comment.
5180 (stap_parse_probe_arguments): Extend code to handle such
5181 arguments. Use warning instead of complaint to notify about
5182 unrecognized bitness.
5183
f33da99a
SDJ
51842014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5185
5186 PR breakpoints/16889
5187 * stap-probe.c (stap_parse_probe_arguments): Simplify
5188 check for non-prefixed probes (i.e., probes whose
5189 arguments do not start with "N@"). Always set the
5190 argument type to a sane value.
5191
95cf3b38
DT
51922014-05-01 David Taylor <dtaylor@emc.com>
5193
5194 * remote.c (compare_sections_command): Add -r option to compare
5195 all loadable read-only sections.
5196
1cfdf534
SC
51972014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5198
5199 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5200 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5201 Update all callers.
5202 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5203 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5204 Remove unused CORE_ADDR argument. Update all callers.
5205
ca4f7f8b
PA
52062014-04-29 Pedro Alves <palves@redhat.com>
5207
5208 * remote.c (struct packet_config) <detect>: Extend comment.
5209 (add_packet_config_cmd): Don't set the config's detect or support
5210 fields here.
5211 (init_all_packet_configs): Also initialize the config's 'detect'
5212 field.
5213 (reset_all_packet_configs_support): New function.
5214 (remote_open_1): Call reset_all_packet_configs_support instead of
5215 init_all_packet_configs.
5216 (_initialize_remote): Initialize all packet configs. Assert that
5217 all packets have an associated command, except a few known
5218 outliers.
5219
11c1ba78
JB
52202014-04-28 Joel Brobecker <brobecker@adacore.com>
5221
5222 * dwarf2read.c (read_subrange_type): Handle dynamic
5223 DW_AT_lower_bound attributes.
5224
8739bc53
JB
52252014-04-28 Joel Brobecker <brobecker@adacore.com>
5226
5227 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5228 dynamic bounds before computing its upper bound.
5229 (ada_discrete_type_low_bound): Same as above with the lower bound.
5230
6f8a3220
JB
52312014-04-28 Joel Brobecker <brobecker@adacore.com>
5232
5233 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5234 range types. Adjust the array handling implementation to
5235 take advantage of this change.
5236 (resolve_dynamic_range): New function, mostly extracted from
5237 resolve_dynamic_bounds.
5238 (resolve_dynamic_array): New function, mostly extracted from
5239 resolve_dynamic_bounds.
5240 (resolve_dynamic_bounds): Delete.
5241 (resolve_dynamic_type): Reimplement. Add handling of
5242 TYPE_CODE_RANGE types.
5243
4d072ce4
JB
52442014-04-28 Joel Brobecker <brobecker@adacore.com>
5245
5246 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5247 handling of parallel ___XA types.
5248
52865325
JB
52492014-04-28 Joel Brobecker <brobecker@adacore.com>
5250
5251 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5252 unnecessary second call to static_unwrap_type.
5253
433e77fa
HZ
52542014-04-27 Hui Zhu <hui@codesourcery.com>
5255
5256 * stack.c (print_frame_info): Call do_gdb_disassembly with
5257 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5258
b51a69ee
DE
52592014-04-26 Doug Evans <xdje42@gmail.com>
5260
5261 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5262
7ae1a6a6
PA
52632014-04-25 Pedro Alves <palves@redhat.com>
5264
5265 PR server/16255
5266 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5267 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5268 and newline from built string.
5269 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5270 (linux_ptrace_attach_fail_reason): ... this.
5271 * linux-nat.c (linux_nat_attach): Adjust to use
5272 linux_ptrace_attach_fail_reason.
5273
4082afcc
PA
52742014-04-25 Pedro Alves <palves@redhat.com>
5275
5276 * remote.c (struct remote_state): Remove multi_process_aware,
5277 non_stop_aware, cond_tracepoints, cond_breakpoints,
5278 breakpoint_commands, fast_tracepoints, static_tracepoints,
5279 install_in_trace, disconnected_tracing,
5280 enable_disable_tracepoints, string_tracing, and
5281 augmented_libraries_svr4_read fields.
5282 (remote_multi_process_p): Move further below in the file.
5283 (struct packet_config): Add comments.
5284 (update_packet_config): Delete function.
5285 (show_packet_config_cmd): Use packet_config_support.
5286 (add_packet_config_cmd): Use NULL as set callback.
5287 (packet_ok): "set remote foo-packet"-style commands no longer
5288 change config->supported -- adjust.
5289 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5290 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5291 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5292 (PACKET_QNonStop, PACKET_multiprocess_feature)
5293 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5294 (PACKET_DisconnectedTracing_feature)
5295 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5296 (set_remote_protocol_packet_cmd): Delete function.
5297 (packet_config_support, packet_support): New functions.
5298 (set_remote_protocol_Z_packet_cmd): Don't call
5299 update_packet_config.
5300 (remote_query_attached, remote_pass_signals)
5301 (remote_program_signals, remote_threads_info)
5302 (remote_threads_extra_info, remote_start_remote): Use
5303 packet_support.
5304 (remote_start_remote): Use packet_config_support and
5305 packet_support.
5306 (init_all_packet_configs): Set all packets to unknown support,
5307 instead of calling update_packet_config.
5308 (remote_check_symbols): Use packet_support.
5309 (remote_supported_packet): Unconditionally set the packet config's
5310 support status.
5311 (remote_multi_process_feature, remote_non_stop_feature)
5312 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5313 (remote_breakpoint_commands_feature)
5314 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5315 (remote_install_in_trace_feature)
5316 (remote_disconnected_tracing_feature)
5317 (remote_enable_disable_tracepoint_feature)
5318 (remote_string_tracing_feature)
5319 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5320 (remote_protocol_features): Adjust to use remote_supported_packet
5321 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5322 "ConditionalTracepoints", "ConditionalBreakpoints",
5323 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5324 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5325 "EnableDisableTracepoints", and "tracenz".
5326 (remote_query_supported): Use packet_support.
5327 (remote_open_1): Adjust.
5328 (extended_remote_attach_1): Use packet_support. Switch on the
5329 result of packet_ok instead of checking whether the packet ended
5330 up disabled.
5331 (remote_vcont_resume): Use packet_support.
5332 (remote_resume, remote_stop_ns, fetch_register_using_p)
5333 (remote_prepare_to_store, store_register_using_P)
5334 (check_binary_download, remote_write_bytes): Use packet_support.
5335 (remote_vkill): Use packet_support. Switch on the result of
5336 packet_ok instead of checking whether the packet ended up
5337 disabled.
5338 (extended_remote_supports_disable_randomization): Use
5339 packet_support.
5340 (extended_remote_run): Switch on the result of packet_ok instead
5341 of checking whether the packet ended up disabled.
5342 (remote_insert_breakpoint, remote_remove_breakpoint)
5343 (remote_insert_watchpoint, remote_remove_watchpoint)
5344 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5345 packet_support.
5346 (remote_search_memory): Use packet_config_support.
5347 (remote_get_thread_local_address, remote_get_tib_address)
5348 (remote_hostio_send_command, remote_can_execute_reverse): Use
5349 packet_support.
5350 (remote_supports_cond_tracepoints)
5351 (remote_supports_cond_breakpoints)
5352 (remote_supports_fast_tracepoints)
5353 (remote_supports_static_tracepoints)
5354 (remote_supports_install_in_trace)
5355 (remote_supports_enable_disable_tracepoint)
5356 (remote_supports_string_tracing)
5357 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5358 the packet config says the feature is enabled or disabled.
5359 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5360 (remote_get_trace_status): Use packet_support.
5361 (remote_set_disconnected_tracing): Adjust to check whether the
5362 feature is enabled with packet_support.
5363 (remote_set_trace_buffer_size, remote_use_agent)
5364 (remote_can_use_agent, remote_supports_btrace): Use
5365 packet_support.
5366 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5367 Use packet_config_support.
5368 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5369 the packet config says the feature is enabled or disabled.
5370 (set_range_stepping): Use packet_support.
5371
bdb52a22
TT
53722014-04-25 Tom Tromey <tromey@redhat.com>
5373
5374 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5375 argument.
5376
e9475ead
SA
53772014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5378
5379 * NEWS: Mention support for C99 variable length arrays.
5380
82eacd52
JB
53812014-04-24 Joel Brobecker <brobecker@adacore.com>
5382
5383 * ada-lang.c (standard_exc): Expand introductory comment.
5384
01f9f808
MS
53852014-04-24 Michael Sturm <michael.sturm@mintel.com>
5386 Walfred Tedeschi <walfred.tedeschi@intel.com>
5387
5388 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5389 AVX512 registers.
5390 (amd64_linux_read_description): Add code to handle AVX512 xstate
5391 mask and return respective tdesc.
5392 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5393 and features/i386/x32-avx512-linux.c.
5394 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5395 (amd64_linux_core_read_description): Add code to handle AVX512
5396 xstate mask and return respective tdesc.
5397 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5398 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5399 calculation.
5400 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5401 (tdesc_amd64_avx512_linux): New prototype.
5402 (tdesc_x32_avx512_linux): Likewise.
5403 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5404 features/i386/x32-avx512.c.
5405 (amd64_ymm_avx512_names): New register names for pseudo
5406 registers YMM16-31.
5407 (amd64_ymmh_avx512_names): New register names for raw registers
5408 YMMH16-31.
5409 (amd64_k_names): New register names for K registers.
5410 (amd64_zmmh_names): New register names for ZMM raw registers.
5411 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5412 (amd64_xmm_avx512_names): New register names for XMM16-31
5413 registers.
5414 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5415 registers.
5416 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5417 if feature is present.
5418 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5419 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5420 (AMD64_NUM_REGS): Adjust to new number of registers.
5421 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5422 registers supplied via XSTATE by AVX512 registers.
5423 (i386_linux_read_description): Add case for AVX512.
5424 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5425 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5426 (i386_linux_core_read_description): Add case for AVX512.
5427 (i386_linux_init_abi): Install supported register note section
5428 for AVX512.
5429 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5430 AVX512.
5431 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5432 registers to be number of zmm7h + 1.
5433 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5434 * i386-tdep.c: Include features/i386/i386-avx512.c.
5435 (i386_zmm_names): Add ZMM pseudo register names array.
5436 (i386_zmmh_names): Add ZMM raw register names array.
5437 (i386_k_names): Add K raw register names array.
5438 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5439 registers. AVX512 has 16 more ZMM registers than there are YMM
5440 registers.
5441 (i386_zmmh_regnum_p): Add function to look up register number of
5442 ZMM raw registers.
5443 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5444 (i386_k_regnum_p): Likewise for K raw registers.
5445 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5446 registers added by AVX512.
5447 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5448 registers added by AVX512.
5449 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5450 added by AVX512.
5451 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5452 (i386_pseudo_register_name): Add ZMM pseudo registers.
5453 (i386_zmm_type): Construct and return vector registers type for ZMM
5454 registers.
5455 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5456 ZMM0-31 pseudo registers and K registers.
5457 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5458 and YMM16-31 registers from register cache.
5459 (i386_pseudo_register_write): Add code to write K, ZMM and
5460 YMM16-31 registers.
5461 (i386_register_reggroup_p): Add code to include/exclude AVX512
5462 registers in/from respective register groups.
5463 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5464 registers if feature is present in xcr0.
5465 (i386_gdbarch_init): Add code to initialize AVX512 feature
5466 variables in tdep structure, wire in pseudo registers and call
5467 initialize_tdesc_i386_avx512.
5468 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5469 variables.
5470 (i386_regnum): Add AVX512 registers.
5471 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5472 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5473 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5474 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5475 512 bits wide.
5476 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5477 (i386_ymm_avx512_regnum_p): Likewise.
5478 (i386_k_regnum_p): Likewise.
5479 (i386_zmm_regnum_p): Likewise.
5480 (i386_zmmh_regnum_p): Likewise.
5481 * i387-tdep.c : Update year in copyright notice.
5482 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5483 XSAVE buffer.
5484 (XSAVE_YMM_AVX512_ADDR): New macro.
5485 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5486 XSAVE buffer.
5487 (XSAVE_XMM_AVX512_ADDR): New macro.
5488 (xsave_avx512_k_offset): New table for K register offsets in
5489 XSAVE buffer.
5490 (XSAVE_AVX512_K_ADDR): New macro.
5491 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5492 in XSAVE buffer.
5493 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5494 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5495 buffer.
5496 (i387_collect_xsave): Add code to collect AVX512 registers from
5497 XSAVE buffer.
5498 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5499 of XMM16-31 registers.
5500 (I387_NUM_K_REGS): New define for number of K registers.
5501 (I387_K0_REGNUM): New define for K0 register number.
5502 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5503 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5504 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5505 registers.
5506 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5507 (I387_XMM16_REGNUM): New define for XMM16 register number.
5508 (I387_YMM0_REGNUM): New define for YMM0 register number.
5509 (I387_KEND_REGNUM): New define for last K register number.
5510 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5511 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5512 number.
5513 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5514 number.
5515 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5516 size.
5517 * features/Makefile: Add AVX512 related files.
5518 * features/i386/32bit-avx512.xml: New file.
5519 * features/i386/64bit-avx512.xml: Likewise.
5520 * features/i386/amd64-avx512-linux.c: Likewise.
5521 * features/i386/amd64-avx512-linux.xml: Likewise.
5522 * features/i386/amd64-avx512.c: Likewise.
5523 * features/i386/amd64-avx512.xml: Likewise.
5524 * features/i386/i386-avx512-linux.c: Likewise.
5525 * features/i386/i386-avx512-linux.xml: Likewise.
5526 * features/i386/i386-avx512.c: Likewise.
5527 * features/i386/i386-avx512.xml: Likewise.
5528 * features/i386/x32-avx512-linux.c: Likewise.
5529 * features/i386/x32-avx512-linux.xml: Likewise.
5530 * features/i386/x32-avx512.c: Likewise.
5531 * features/i386/x32-avx512.xml: Likewise.
5532 * regformats/i386/amd64-avx512-linux.dat: New file.
5533 * regformats/i386/amd64-avx512.dat: Likewise.
5534 * regformats/i386/i386-avx512-linux.dat: Likewise.
5535 * regformats/i386/i386-avx512.dat: Likewise.
5536 * regformats/i386/x32-avx512-linux.dat: Likewise.
5537 * regformats/i386/x32-avx512.dat: Likewise.
5538 * NEWS: Add note about new support for AVX512.
5539
5540
08351840
PA
55412014-04-23 Pedro Alves <palves@redhat.com>
5542
5543 * breakpoint.c (insert_bp_location): Tolerate errors if the
5544 breakpoint is set in a user-loaded objfile.
5545 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5546 location is marked shlib_disabled. If the breakpoint is set in a
5547 user-loaded objfile is a GDB-side memory breakpoint, validate it
5548 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5549 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5550 flag.
5551 * mem-break.c (memory_validate_breakpoint): New function.
5552 * objfiles.c (userloaded_objfile_contains_address_p): New
5553 function.
5554 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5555 * target.h (memory_validate_breakpoint): New declaration.
5556
076855f9
PA
55572014-04-23 Pedro Alves <palves@redhat.com>
5558
5559 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5560 the breakpoint is set in a shared library, only suppress
5561 errors for software breakpoints, not hardware breakpoints.
5562
483805cf
PA
55632014-04-22 Pedro Alves <palves@redhat.com>
5564
5565 * infrun.c (schedlock_applies): New function, factored out from
5566 find_thread_needs_step_over.
5567 (find_thread_needs_step_over): Use it.
5568 (switch_back_to_stepped_thread): Always clear trap_expected if the
5569 step over is finished. Return early if scheduler locking applies.
5570 Look for the stepping thread and a potential step-over thread with
5571 a single loop.
5572 (currently_stepping_or_nexting_callback): Delete.
5573
a75fef0e
NC
55742014-04-22 Nick Clifton <nickc@redhat.com>
5575
5576 * NEWS: Mention that ARM sim now supports tracing.
5577
48b6e87e
YQ
55782014-04-22 Yao Qi <yao@codesourcery.com>
5579
5580 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5581 to ...
5582 * tracefile.c (tracefile_fetch_registers): ... it. New
5583 function.
5584 * tracefile.h (tracefile_fetch_registers): Declare.
5585 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5586 tracefile_fetch_registers.
5587
17617f2d
EZ
55882014-04-19 Eli Zaretskii <eliz@gnu.org>
5589
5590 PR gdb/14018
5591 * windows-nat.c (thread_rec): Don't display a warning when
5592 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5593 fails for any reason, set th->suspended to -1, so that we don't
5594 try to resume such a thread. Also, don't return NULL in these
5595 cases, to avoid completely ruin the session due to "PC register is
5596 not available" error.
5597 (do_windows_fetch_inferior_registers): Check errors in
5598 GetThreadContext call.
5599 (windows_continue): Accept an additional argument KILLED; if not
5600 zero, ignore errors in the SetThreadContext call, since the
5601 inferior was killed and is shutting down.
5602 (windows_resume, get_windows_debug_event)
5603 (windows_create_inferior, windows_mourn_inferior)
5604 (windows_kill_inferior): All callers of windows_continue changed
5605 to adjust to its new calling sequence.
5606
5723a6fd
YQ
56072014-04-19 Yao Qi <yao@codesourcery.com>
5608
5609 * ctf.c (ctf_open): Call post_create_inferior.
5610
614d5099
YQ
56112014-04-19 Yao Qi <yao@codesourcery.com>
5612
5613 * ctf.c (handle_id): New static variable.
5614 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5615 value. Get the declaration of event "register" and get length
5616 of field "contents".
5617
dac3e710
YQ
56182014-04-19 Yao Qi <yao@codesourcery.com>
5619
5620 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5621
2bca57ba
SC
56222014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5623
5624 * valops.c (oload_method_static): Remove unnecessary argument
5625 METHOD. Update all callers.
5626
51d48146
PA
56272014-04-18 Pedro alves <palves@redhat.com>
5628 Tom Tromey <tromey@redhat.com>
5629
5630 PR backtrace/15558
5631 * frame.c (get_prev_frame_1): Rename to ...
5632 (get_prev_frame_always): ... this, and make extern. Adjust.
5633 (skip_artificial_frames): Use get_prev_frame_always.
5634 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5635 (get_frame_unwind_stop_reason): Adjust to rename.
5636 * frame.h (get_prev_frame_always): Declare.
5637 * inline-frame.c: Include frame.h.
5638 (inline_frame_this_id): Use get_prev_frame_always.
5639
1bdad2e0
TG
56402014-04-18 Tristan Gingold <gingold@adacore.com>
5641
5642 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5643 code by using bfd_mach_o_get_base_address.
5644
7ce16bd4
UW
56452014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5646
5647 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5648 (spu_ax_pseudo_register_collect): New function.
5649 (spu_ax_pseudo_register_push_stack): Likewise.
5650 (spu_dwarf_reg_to_regnum): Likewise.
5651 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5652
2ed3c037
UW
56532014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5654
5655 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5656 Replace FRAME argument with FRAME_ID.
5657 * gdbarch.c, gdbarch.h: Regenerate.
5658 * findvar.c (default_value_from_register): Add GDBARCH argument;
5659 replace FRAME by FRAME_ID. No longer call get_frame_id.
5660 (value_from_register): Update call to gdbarch_value_from_register.
5661 * value.h (default_value_from_register): Update prototype.
5662 * s390-linux-tdep.c (s390_value_from_register): Update interface
5663 and call to default_value_from_register.
5664 * spu-tdep.c (spu_value_from_register): Likewise.
5665
5666 * findvar.c (address_from_register): Remove TYPE argument.
5667 Do not call value_from_register; use gdbarch_value_from_register
5668 with null_frame_id instead.
5669 * value.h (address_from_register): Update prototype.
5670 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5671 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5672 address_from_register interface change.
5673
71e50e83
YQ
56742014-04-17 Yao Qi <yao@codesourcery.com>
5675
5676 * gdbtypes.h: Update comments to link to types and macros'
5677 definitions.
5678
7a23c549
SC
56792014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5680
5681 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5682
22869d73
KS
56832014-04-16 Keith Seitz <keiths@redhat.com>
5684
5685 PR gdb/15827
5686 * dwarf2read.c (skip_one_die): Check that all relative-offset
5687 sibling DIEs fall within range of the current reader's buffer.
5688 (read_partial_die): Likewise.
5689
c4f87ca6
KS
56902014-04-16 Keith Seitz <keiths@redhat.com>
5691
5692 PR c++/16597
5693 * cp-namespace.c (lookup_symbol_file): If the type name of
5694 `this' is NULL, return immediately.
5695
b50c8614
KS
56962014-04-14 Keith Seitz <keiths@redhat.com>
5697
5698 PR c++/16253
5699 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5700 from symbol_matches_domain in symtab.c. All local callers
5701 of symbol_matches_domain updated.
5702 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5703 search STRUCT_DOMAIN.
5704 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5705 independently. standard_lookup will do that automatically.
5706 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5707 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5708 (cp_lookup_symbol_in_namespace): Likewise.
5709 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5710 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5711 may return a STRUCT_DOMAIN match.
5712 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5713 * cp-support.c: Include language.h.
5714 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5715 VAR_DOMAIN.
5716 * psymtab.c (match_partial_symbol): Compare the requested
5717 domain with the symbol's domain directly.
5718 (lookup_partial_symbol): Likewise.
5719 * symtab.c (lookup_symbol_in_language): Explain when/why
5720 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5721 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5722 appropriate languages.
5723 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5724 and moved to ada-lang.c
5725 (lookup_block_symbol): Explain that this function only returns
5726 symbol matching the requested DOMAIN.
5727 Compare the requested domain with the symbol's domain directly.
5728 (iterate_over_symbols): Compare the requested domain with the
5729 symbol's domain directly.
5730 * symtab.h (symbol_matches_domain): Remove.
5731
3d567982
TT
57322014-04-14 Tom Tromey <tromey@redhat.com>
5733
5734 PR c++/15246:
5735 * c-exp.y (type_aggregate_p): New function.
5736 (qualified_name, classify_inner_name): Use it.
5737 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5738 and TYPE_TARGET_TYPE of an enum type.
5739 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5740 an enum type.
5741 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5742 handle TYPE_DECLARED_CLASS.
5743 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5744 types.
5745 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5746 * valops.c (enum_constant_from_type): New function.
5747 (value_aggregate_elt): Use it.
5748 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5749 TYPE_CODE_ENUM.
5750
c848d642
TT
57512014-04-14 Tom Tromey <tromey@redhat.com>
5752
5753 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5754 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5755 const.
5756 * value.h (value_aggregate_elt): Update.
5757
0626fc76
TT
57582014-04-14 Tom Tromey <tromey@redhat.com>
5759
5760 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5761
5ecaaa66
SA
57622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5763
5764 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5765 (evaluate_subexp_standard): Pass noside argument.
5766 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5767 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5768 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5769 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5770 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5771
1612e0c0
SA
57722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5773
5774 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5775 points to a constant blob.
5776
c451ebe5
SA
57772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5778
5779 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5780 property and store it as the high bound and flag the range accordingly.
5781 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5782 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5783 * gdbtypes.h (enum range_flags): New enum.
5784 (struct range_bounds): Add flags member.
5785
1d42e4c4
SA
57862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5787
5788 * c-typeprint.c (c_type_print_varspec_suffix): Added
5789 check for not yet resolved high bound. If unresolved, print
5790 "variable length" string to the console instead of random
5791 length.
5792
9f1f738a
SA
57932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5794
5795 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5796 value.
5797 (ada_template_to_fixed_record_type_1): Likewise.
5798 (ada_to_fixed_type_1): Likewise.
5799 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5800 (cp_print_value): Likewise.
5801 * d-valprint.c (dynamic_array_type): Likewise.
5802 * findvar.c (address_of_variable): Likewise.
5803 * jv-valprint.c (java_value_print): Likewise.
5804 * valops.c (value_ind): Likewise.
5805 * value.c (coerce_ref): Likewise.
5806
3c8452d4
SA
58072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5808
5809 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5810 value and retrieve the dynamic type size.
5811
4ad88275
SA
58122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5813
5814 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5815 passed to sizeof is dynamic evaluate the argument to compute the length.
5816
80180f79
SA
58172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5818 Joel Brobecker <brobecker@adacore.com>
5819
5820 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5821 (dwarf2_evaluate_property): New function.
5822 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5823 * dwarf2read.c (attr_to_dynamic_prop): New function.
5824 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5825 attribute.
5826 * gdbtypes.c: Include dwarf2loc.h.
5827 (is_dynamic_type): New function.
5828 (resolve_dynamic_type): New function.
5829 (resolve_dynamic_bounds): New function.
5830 (get_type_length): New function.
5831 (check_typedef): Use get_type_length to compute type length.
5832 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5833 (TYPE_LOW_BOUND_KIND): New macro.
5834 (is_dynamic_type): New function prototype.
5835 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5836 to resolve dynamic properties of the type. Update comment.
5837 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5838
a1556843
RH
58392014-04-14 Richard Henderson <rth@redhat.com>
5840
5841 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5842
0be03e84
DE
58432014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5844 Doug Evans <xdje42@gmail.com>
5845
5846 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5847 dereference TYPE_CODE_REF values.
5848
6b662e19
JB
58492014-04-11 Joel Brobecker <brobecker@adacore.com>
5850
5851 Revert the following changes due to regressions:
5852
5853 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5854 (dwarf2_evaluate_property): New function.
5855 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5856 * dwarf2read.c (attr_to_dynamic_prop): New function.
5857 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5858 attribute.
5859 * gdbtypes.c: Include dwarf2loc.h.
5860 (is_dynamic_type): New function.
5861 (resolve_dynamic_type): New function.
5862 (resolve_dynamic_bounds): New function.
5863 (get_type_length): New function.
5864 (check_typedef): Use get_type_length to compute type length.
5865 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5866 (TYPE_LOW_BOUND_KIND): New macro.
5867 (is_dynamic_type): New function prototype.
5868 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5869 to resolve dynamic properties of the type. Update comment.
5870 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5871
5872 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5873 passed to sizeof is dynamic evaluate the argument to compute the length.
5874
5875 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5876 value and retrieve the dynamic type size.
5877
5878 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5879 (ada_template_to_fixed_record_type_1): Likewise.
5880 (ada_to_fixed_type_1): Likewise.
5881 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5882 (cp_print_value): Likewise.
5883 * d-valprint.c (dynamic_array_type): Likewise.
5884 * eval.c (evaluate_subexp_with_coercion): Likewise.
5885 * findvar.c (address_of_variable): Likewise.
5886 * jv-valprint.c (java_value_print): Likewise.
5887 * valops.c (value_ind): Likewise.
5888 * value.c (coerce_ref): Likewise.
5889
5890 * c-typeprint.c (c_type_print_varspec_suffix): Added
5891 check for not yet resolved high bound. If unresolved, print
5892 "variable length" string to the console instead of random
5893 length.
5894
5895 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5896 property and store it as the high bound and flag the range accordingly.
5897 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5898 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5899 * gdbtypes.h (enum range_flags): New enum.
5900 (struct range_bounds): Add flags member.
5901
5902 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5903 points to a constant blob.
5904
5905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5906 (evaluate_subexp_standard): Pass noside argument.
5907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5912
245a5f0b
KS
59132014-04-11 Keith Seitz <keiths@redhat.com>
5914
5915 PR c++/16675
5916 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5917 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5918 reference types.
5919
3bce8237
SA
59202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5921
5922 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5923 (evaluate_subexp_standard): Pass noside argument.
5924 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5925 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5926 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5927 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5928 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5929
92b09522
SA
59302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5931
5932 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5933 points to a constant blob.
5934
e1969afb
SA
59352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5936
5937 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5938 property and store it as the high bound and flag the range accordingly.
5939 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5940 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5941 * gdbtypes.h (enum range_flags): New enum.
5942 (struct range_bounds): Add flags member.
5943
b86138fb
SA
59442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5945
5946 * c-typeprint.c (c_type_print_varspec_suffix): Added
5947 check for not yet resolved high bound. If unresolved, print
5948 "variable length" string to the console instead of random
5949 length.
5950
bcd629a4
SA
59512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5952
5953 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5954 (ada_template_to_fixed_record_type_1): Likewise.
5955 (ada_to_fixed_type_1): Likewise.
5956 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5957 (cp_print_value): Likewise.
5958 * d-valprint.c (dynamic_array_type): Likewise.
5959 * eval.c (evaluate_subexp_with_coercion): Likewise.
5960 * findvar.c (address_of_variable): Likewise.
5961 * jv-valprint.c (java_value_print): Likewise.
5962 * valops.c (value_ind): Likewise.
5963 * value.c (coerce_ref): Likewise.
5964
04b19544
SA
59652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5966
5967 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5968 value and retrieve the dynamic type size.
5969
26cb189f
SA
59702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5971
5972 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5973 passed to sizeof is dynamic evaluate the argument to compute the length.
5974
37c1ab67
SA
59752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5976
5977 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5978 (dwarf2_evaluate_property): New function.
5979 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5980 * dwarf2read.c (attr_to_dynamic_prop): New function.
5981 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5982 attribute.
5983 * gdbtypes.c: Include dwarf2loc.h.
5984 (is_dynamic_type): New function.
5985 (resolve_dynamic_type): New function.
5986 (resolve_dynamic_bounds): New function.
5987 (get_type_length): New function.
5988 (check_typedef): Use get_type_length to compute type length.
5989 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5990 (TYPE_LOW_BOUND_KIND): New macro.
5991 (is_dynamic_type): New function prototype.
5992 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5993 to resolve dynamic properties of the type. Update comment.
5994 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5995
729efb13
SA
59962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5997
5998 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5999 declaring high/low bounds and change uses accordingly. Call
6000 create_range_type instead of create_static_range_type.
6001 * gdbtypes.c (create_range_type): New function.
6002 (create_range_type): Convert bounds into struct bound_prop and pass
6003 them to create_range_type.
6004 * gdbtypes.h (struct bound_prop): New struct.
6005 (create_range_type): New function prototype.
6006 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6007 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6008 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6009 part of the bound.
6010 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6011
0c9c3474
SA
60122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6013
6014 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6015 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6016 * ada-lang.c: All uses of create_range_type updated.
6017 * coffread.c: All uses of create_range_type updated.
6018 * dwarf2read.c: All uses of create_range_type updated.
6019 * f-exp.y: All uses of create_range_type updated.
6020 * m2-valprint.c: All uses of create_range_type updated.
6021 * mdebugread.c: All uses of create_range_type updated.
6022 * stabsread.c: All uses of create_range_type updated.
6023 * valops.c: All uses of create_range_type updated.
6024 * valprint.c: All uses of create_range_type updated.
6025
9d497a19
PA
60262014-04-10 Pedro Alves <palves@redhat.com>
6027
6028 * breakpoint.c (single_step_breakpoints)
6029 (single_step_gdbarch): Move up in the file.
6030 (one_breakpoint_xfer_memory): New function, factored out from ...
6031 (breakpoint_xfer_memory): ... here. Also process single-step
6032 breakpoints.
6033
15a9128a
TG
60342014-04-09 Tristan Gingold <gingold@adacore.com>
6035
6036 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6037 comments.
6038 (darwin_decode_exception_message): Free port only after use.
6039
9c97a070
PL
60402014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6041
6042 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6043 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6044 when setting the size of call_length.
6045
7af389b8
SC
60462014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6047
6048 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6049 dereference TYPE_CODE_REF values.
6050
86ad98c3
JB
60512014-04-07 Joel Brobecker <brobecker@adacore.com>
6052
6053 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6054 end of warning message.
6055
b0aeadb3
DE
60562014-04-03 Doug Evans <dje@google.com>
6057
6058 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6059 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6060
5979d6b6
AM
60612014-04-02 Alan Modra <amodra@gmail.com>
6062
6063 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6064 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6065 (struct symbol_file_add_from_memory_args): Add size field.
6066 (find_vdso_size): New function.
6067 (add_vsyscall_page): Attempt to find vdso size.
6068
0d60c288
DE
60692014-04-01 Doug Evans <dje@google.com>
6070
6071 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6072
a41f2563
TG
60732014-04-01 Tristan Gingold <gingold@adacore.com>
6074
6075 * darwin-nat.c (darwin_encode_reply): Add prototype.
6076 (darwin_decode_exception_message): Reply to unknown inferiors.
6077 (darwin_decode_message): Handle message by id. Ignore message
6078 to unknown inferior.
6079 (darwin_wait): Discard unknown messages, add debug trace.
6080
11a865c8
DE
60812014-03-31 Doug Evans <dje@google.com>
6082
6083 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6084 comp_dir_string.
6085
770e7fc7
DE
60862014-03-31 Doug Evans <dje@google.com>
6087
6088 New option "set print symbol-loading".
6089 * NEWS: Mention it.
6090 * solib.c (solib_read_symbols): Only print symbol loading messages
6091 if requested.
6092 (solib_add): If symbol loading is in "brief" mode, notify user
6093 symbols are being loaded.
6094 (reload_shared_libraries_1): Ditto.
6095 * symfile.c (print_symbol_loading_off): New static global.
6096 (print_symbol_loading_brief): New static global.
6097 (print_symbol_loading_full): New static global.
6098 (print_symbol_loading_enums): New static global.
6099 (print_symbol_loading): New static global.
6100 (print_symbol_loading_p): New function.
6101 (symbol_file_add_with_addrs): Only print symbol loading messages
6102 if requested.
6103 (_initialize_symfile): Register "print symbol-loading" set/show
6104 command.
6105 * symfile.h (print_symbol_loading_p): Declare.
6106
c32c64b7
DE
61072014-03-30 Doug Evans <xdje42@gmail.com>
6108
6109 * infrun.c (set_last_target_status): New function.
6110 (handle_inferior_event): Call it.
6111
7c0bc051
DE
61122014-03-30 Doug Evans <xdje42@gmail.com>
6113
6114 * inferior.h (enum stop_kind): Improve comment.
6115
8776cfe9
JB
61162014-03-28 Joel Brobecker <brobecker@adacore.com>
6117
6118 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6119 a reference, strip the reference layer before calling
6120 the lang_ops value_has_mutated callback.
6121
410a0ff2
SDJ
61222014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6123
6124 Remove some globals from our parser.
6125 * language.c (unk_lang_parser): Add "struct parser_state"
6126 argument.
6127 * language.h (struct language_defn) <la_parser>: Likewise.
6128 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6129 (initialize_expout): Add "struct parser_state" argument.
6130 Rewrite function to use the parser state.
6131 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6132 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6133 write_exp_elt_longcst, write_exp_elt_dblcst,
6134 write_exp_elt_decfloatcst, write_exp_elt_type,
6135 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6136 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6137 write_dollar_variable): Likewise.
6138 (parse_exp_in_context_1): Use parser state.
6139 (insert_type_address_space): Add "struct parser_state" argument.
6140 Use parser state.
6141 (increase_expout_size): New function.
6142 * parser-defs.h: Forward declare "struct language_defn" and
6143 "struct parser_state".
6144 (expout, expout_size, expout_ptr): Remove extern declarations.
6145 (parse_gdbarch, parse_language): Rewrite macro declarations to
6146 accept the parser state.
6147 (struct parser_state): New struct.
6148 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6149 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6150 write_exp_elt_decfloatcst, write_exp_elt_type,
6151 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6152 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6153 write_exp_msymbol, write_dollar_variable,
6154 mark_struct_expression, insert_type_address_space): Add "struct
6155 parser_state" argument.
6156 (increase_expout_size): New function.
6157 * utils.c (do_clear_parser_state): New function.
6158 (make_cleanup_clear_parser_state): Likewise.
6159 * utils.h (make_cleanup_clear_parser_state): New function
6160 prototype.
6161 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6162 Update calls to write_exp* in order to pass the parser state.
6163 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6164 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6165 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6166 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6167 * stap-probe.c (stap_parse_register_operand): Likewise.
6168 (stap_parse_single_operand): Likewise.
6169 (stap_parse_argument_1): Likewise.
6170 (stap_parse_argument): Use parser state.
6171 * stap-probe.h: Include "parser-defs.h".
6172 (struct stap_parse_info) <pstate>: New field.
6173 * c-exp.y (parse_type): Rewrite to use parser state.
6174 (yyparse): Redefine to c_parse_internal.
6175 (pstate): New global variable.
6176 (parse_number): Add "struct parser_state" argument.
6177 (write_destructor_name): Likewise.
6178 (type_exp): Update calls to write_exp* and similars in order to
6179 use parser state.
6180 (exp1, exp, variable, qualified_name, space_identifier,
6181 typename, typebase): Likewise.
6182 (write_destructor_name, parse_number, lex_one_token,
6183 classify_name, classify_inner_name, c_parse): Add "struct
6184 parser_state" argument. Update function to use parser state.
6185 * c-lang.h: Forward declare "struct parser_state".
6186 (c_parse): Add "struct parser_state" argument.
6187 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6188 (yyparse): Redefine macro to ada_parse_internal.
6189 (pstate): New variable.
6190 (write_int, write_object_renaming, write_var_or_type,
6191 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6192 type_int, type_long, type_long_long, type_float, type_double,
6193 type_long_double, type_char, type_boolean, type_system_address):
6194 Add "struct parser_state" argument.
6195 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6196 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6197 var_or_type, aggregate, aggregate_component_list,
6198 positional_list, others, component_group,
6199 component_associations): Update calls to write_exp* and similar
6200 functions in order to use parser state.
6201 (ada_parse, write_var_from_sym, write_int,
6202 write_exp_op_with_string, write_object_renaming,
6203 find_primitive_type, write_selectors, write_ambiguous_var,
6204 write_var_or_type, write_name_assoc, type_int, type_long,
6205 type_long_long, type_float, type_double, type_long_double,
6206 type_char, type_boolean, type_system_address): Add "struct
6207 parser_state" argument. Adjust function to use parser state.
6208 * ada-lang.c (parse): Likewise.
6209 * ada-lang.h: Forward declare "struct parser_state".
6210 (ada_parse): Add "struct parser_state" argument.
6211 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6212 calls to both functions.
6213 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6214 parser state.
6215 (yyparse): Redefine macro to f_parse_internal.
6216 (pstate): New variable.
6217 (parse_number): Add "struct parser_state" argument.
6218 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6219 and similars in order to use parser state.
6220 (parse_number): Adjust code to use parser state.
6221 (yylex): Likewise.
6222 (f_parse): New function.
6223 * f-lang.h: Forward declare "struct parser_state".
6224 (f_parse): Add "struct parser_state" argument.
6225 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6226 parser state.
6227 (yyparse): Redefine macro for java_parse_internal.
6228 (pstate): New variable.
6229 (push_expression_name, push_expression_name, insert_exp): Add
6230 "struct parser_state" argument.
6231 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6232 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6233 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6234 PostIncrementExpression, PostDecrementExpression,
6235 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6236 UnaryExpressionNotPlusMinus, CastExpression,
6237 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6238 RelationalExpression, EqualityExpression, AndExpression,
6239 ExclusiveOrExpression, InclusiveOrExpression,
6240 ConditionalAndExpression, ConditionalOrExpression,
6241 ConditionalExpression, Assignment, LeftHandSide): Update
6242 calls to write_exp* and similars in order to use parser state.
6243 (parse_number): Ajust code to use parser state.
6244 (yylex): Likewise.
6245 (java_parse): New function.
6246 (push_variable): Add "struct parser_state" argument. Adjust
6247 code to user parser state.
6248 (push_fieldnames, push_qualified_expression_name,
6249 push_expression_name, insert_exp): Likewise.
6250 * jv-lang.h: Forward declare "struct parser_state".
6251 (java_parse): Add "struct parser_state" argument.
6252 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6253 parser state.
6254 (yyparse): Redefine macro to m2_parse_internal.
6255 (pstate): New variable.
6256 (type_exp, exp, fblock, variable, type): Update calls to
6257 write_exp* and similars to use parser state.
6258 (yylex): Likewise.
6259 (m2_parse): New function.
6260 * m2-lang.h: Forward declare "struct parser_state".
6261 (m2_parse): Add "struct parser_state" argument.
6262 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6263 * objc-lang.h: Forward declare "struct parser_state".
6264 (end_msglist): Add "struct parser_state" argument.
6265 * p-exp.y (parse_type): Rewrite macro to use parser state.
6266 (yyparse): Redefine macro to pascal_parse_internal.
6267 (pstate): New variable.
6268 (parse_number): Add "struct parser_state" argument.
6269 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6270 write_exp* and similars in order to use parser state.
6271 (parse_number, yylex): Adjust code to use parser state.
6272 (pascal_parse): New function.
6273 * p-lang.h: Forward declare "struct parser_state".
6274 (pascal_parse): Add "struct parser_state" argument.
6275 * go-exp.y (parse_type): Rewrite macro to use parser state.
6276 (yyparse): Redefine macro to go_parse_internal.
6277 (pstate): New variable.
6278 (parse_number): Add "struct parser_state" argument.
6279 (type_exp, exp1, exp, variable, type): Update calls to
6280 write_exp* and similars in order to use parser state.
6281 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6282 to use parser state.
6283 (go_parse): Likewise.
6284 * go-lang.h: Forward declare "struct parser_state".
6285 (go_parse): Add "struct parser_state" argument.
6286
342587c4
DE
62872014-03-27 Doug Evans <dje@google.com>
6288
6289 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6290
33e80786
DE
62912014-03-27 Doug Evans <dje@google.com>
6292
6293 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6294 Remove argument abbrev_section. All callers updated.
6295
1dbab08b
DE
62962014-03-27 Doug Evans <dje@google.com>
6297
6298 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6299 addr_base, ranges_base.
6300
318d3177
KS
63012014-03-26 Keith Seitz <keiths@redhat.com>
6302
6303 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6304 types, not VAR_DOMAIN.
6305
1e54db15
SL
63062014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6307
6308 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6309 "ra" registers.
6310 * features/nios2-linux.c: Regenerated.
6311 * features/nios2.c: Regenerated.
6312
d3839ede
PA
63132014-03-25 Pedro Alves <palves@redhat.com>
6314
6315 * cli/cli-script.c (script_from_file): Force the interpreter to
6316 sync mode.
6317
7588d2ec
PL
63182014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6319
6320 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6321 small stack allocation.
6322
a6290449
TG
63232014-03-24 Tristan Gingold <gingold@adacore.com>
6324
6325 * darwin-nat.c (exc_server): Remove unused prototype.
6326 (darwin_dump_message): Correctly display data on x86_64.
6327 (darwin_encode_reply): Fix style.
6328 Add comments and fix indentation.
6329
31ae9d24 63302014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6331
6332 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6333
6339bfc4
DE
63342014-03-22 Doug Evans <xdje42@gmail.com>
6335
6336 * infcmd.c: Whitespace fixes.
6337 (interrupt_command): Merge two function comments into one.
6338
0a07590b
DE
63392014-03-22 Doug Evans <xdje42@gmail.com>
6340
6341 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6342 All uses updated.
6343
b55fbac4
YQ
63442014-03-22 Yao Qi <yao@codesourcery.com>
6345
6346 * remote.c (target_read_live_memory): Remove.
6347 (memory_xfer_live_readonly_partial): Rename it to
6348 remote_xfer_live_readonly_partial. Remove argument 'object'.
6349 All callers updated. Call remote_read_bytes_1
6350 instead of target_read_live_memory.
6351 * tracepoint.c (set_traceframe_number): Remove.
6352 (make_cleanup_restore_traceframe_number): Likewise .
6353 * tracepoint.h (set_traceframe_number): Remove declaration.
6354 (make_cleanup_restore_traceframe_number): Likewise.
6355
9217e74e
YQ
63562014-03-22 Yao Qi <yao@codesourcery.com>
6357
6358 * remote.c (remote_read_bytes): Move code on reading from the
6359 remote stub to ...
6360 (remote_read_bytes_1): ... here. New function.
6361
8acf9577
YQ
63622014-03-22 Yao Qi <yao@codesourcery.com>
6363
6364 * ctf.c (ctf_xfer_partial): Check the return value of
6365 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6366 return TARGET_XFER_UNAVAILABLE.
6367 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6368 * target.c (target_read_live_memory): Move it to remote.c.
6369 (memory_xfer_live_readonly_partial): Likewise.
6370 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6371 * remote.c (target_read_live_memory): Moved from target.c.
6372 (memory_xfer_live_readonly_partial): Likewise.
6373 (remote_read_bytes): Factored out from
6374 memory_xfer_partial_1.
6375
feef67ab
DE
63762014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6377
6378 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6379 NULL pointer.
6380
b65dc60b
PA
63812014-03-21 Pedro Alves <palves@redhat.com>
6382
6383 * infrun.c (normal_stop): Extend comment.
6384
b4ab256d
HZ
63852014-03-21 Hui Zhu <hui@codesourcery.com>
6386 Pedro Alves <palves@redhat.com>
6387
6388 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6389 static buffer.
6390 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6391 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6392 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6393
deba7593
MR
63942014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6395
6396 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6397 `z' formatted output modifier.
6398
1bff71c3
SDJ
63992014-03-20 Tom Tromey <tromey@redhat.com>
6400 Sergio Durigan Junior <sergiodj@redhat.com>
6401
6402 * probe.c (parse_probes): Turn assert into an ordinary error.
6403 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6404 exceptions when parsing probes. Rearrange the code for clarity.
6405
90e28950
TT
64062014-03-20 Tom Tromey <tromey@redhat.com>
6407
6408 PR gdb/14135
6409 * top.c (execute_command): Only dispatch events if the command
6410 started the target.
6411
beb460e8
PA
64122014-03-20 Tom Tromey <tromey@redhat.com>
6413
6414 PR cli/15718
6415 * infcall.c: Include event-top.h.
6416 (run_inferior_call): Call async_disable_stdin if needed.
6417
99619bea
PA
64182014-03-20 Pedro Alves <palves@redhat.com>
6419
6420 * infrun.c (prepare_to_proceed): Delete.
6421 (thread_still_needs_step_over): New function.
6422 (find_thread_needs_step_over): New function.
6423 (proceed): If the current thread needs a step-over, set its
6424 steping_over_breakpoint flag. Adjust to use
6425 find_thread_needs_step_over instead of prepare_to_proceed.
6426 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6427 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6428 breakpoint.
6429 (switch_back_to_stepped_thread): Step over breakpoints of all
6430 threads not the stepping thread, before switching back to the
6431 stepping thread.
6432
2adfaa28
PA
64332014-03-20 Pedro Alves <palves@redhat.com>
6434
6435 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6436 extern.
6437 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6438 * infrun.c (saved_singlestep_ptid)
6439 (stepping_past_singlestep_breakpoint): Delete.
6440 (resume): Remove stepping_past_singlestep_breakpoint handling.
6441 (proceed): Store the prev_pc of the stepping thread too.
6442 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6443 singlestep_pc.
6444 (enum infwait_states): Delete infwait_thread_hop_state.
6445 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6446 field.
6447 (handle_inferior_event): Adjust.
6448 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6449 handling and the thread-hop code. Before removing single-step
6450 breakpoints, check whether the thread hit a single-step breakpoint
6451 of another thread. If it did, the trap is not a random signal.
6452 (switch_back_to_stepped_thread): If the event thread hit a
6453 single-step breakpoint, unblock it before switching to the
6454 stepping thread. Handle the case of the stepped thread having
6455 advanced already.
6456 (keep_going): Handle the case of the current thread moving past a
6457 single-step breakpoint.
6458
31e77af2
PA
64592014-03-20 Pedro Alves <palves@redhat.com>
6460
6461 PR breakpoints/7143
6462 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6463 are being stepped over.
6464 (breakpoint_address_match): Make extern.
6465 * breakpoint.h (breakpoint_address_match): New declaration.
6466 * inferior.h (stepping_past_instruction_at): New declaration.
6467 * infrun.c (struct step_over_info): New type.
6468 (step_over_info): New global.
6469 (set_step_over_info, clear_step_over_info)
6470 (stepping_past_instruction_at): New functions.
6471 (handle_inferior_event): Clear the step-over info when
6472 trap_expected is cleared.
6473 (resume): Remove now stale comment.
6474 (clear_proceed_status): Clear step-over info.
6475 (proceed): Adjust step-over handling to set or clear the step-over
6476 info instead of removing all breakpoints.
6477 (handle_signal_stop): When setting up a thread-hop, don't remove
6478 breakpoints here.
6479 (stop_stepping): Clear step-over info.
6480 (keep_going): Adjust step-over handling to set or clear step-over
6481 info and then always inserting breakpoints, instead of removing
6482 all breakpoints when stepping over one.
6483
b9f437de
PA
64842014-03-20 Pedro Alves <palves@redhat.com>
6485
6486 * infrun.c (previous_inferior_ptid): Adjust comment.
6487 (deferred_step_ptid): Delete.
6488 (infrun_thread_ptid_changed, prepare_to_proceed)
6489 (init_wait_for_inferior): Adjust.
6490 (handle_signal_stop): Delete deferred_step_ptid handling.
6491
06c868a8
JK
64922014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6493
6494 PR gdb/15358
6495 * defs.h (sync_quit_force_run): New declaration.
6496 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6497 * event-top.c (async_sigterm_handler): New declaration.
6498 (async_sigterm_token): New variable.
6499 (async_init_signals): Create also async_sigterm_token.
6500 (async_sigterm_handler): New function.
6501 (sync_quit_force_run): New variable.
6502 (handle_sigterm): Replace quit_force call by other calls.
6503 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6504
dea80df0
MR
65052014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6506
6507 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6508 offset into SPE pseudo registers.
6509
0c7e1a46
PA
65102014-03-18 Pedro Alves <palves@redhat.com>
6511
6512 PR gdb/13860
6513 * inferior.h (print_stop_event): Declare.
6514 * infrun.c (print_stop_event): New, factored out from ...
6515 (normal_stop): ... this.
6516 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6517 of bpstat_print/print_stack_frame.
6518
9c1fcd01
TT
65192014-03-17 Tom Tromey <tromey@redhat.com>
6520
6521 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6522
11aa919a
PMR
65232014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6524
6525 * ada-lang.c (decode_constrained_packed_array): Perform a
6526 minimal coercion for reference with coerce_ref instead of
6527 ada_coerce_ref.
6528
d4ccb5e0
TG
65292014-03-17 Tristan Gingold <gingold@adacore.com>
6530
6531 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6532 (darwin_solib_create_inferior_hook): Emit a warning if version
6533 is unhandled.
6534
49840f2a
UW
65352014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6536
6537 * python/py-value.c (get_field_flag): Cast flag_name argument to
6538 PyObject_GetAttrString to support Python 2.4.
6539
ed4123e5
JK
65402014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6543 (Global Maintainers): Remove Jan Kratochvil.
6544
d6b64346
PA
65452014-03-14 Pedro Alves <palves@redhat.com>
6546
6547 * inferior.h (terminal_ours_for_output): Rename to ...
6548 (child_terminal_ours_for_output): ... this.
6549 (terminal_save_ours): Rename to ...
6550 (child_terminal_save_ours): ... this.
6551 (terminal_ours): Rename to ...
6552 (child_terminal_ours): ... this.
6553 (terminal_inferior): Rename to ...
6554 (child_terminal_inferior): ... this.
6555 (terminal_init_inferior): Rename to ...
6556 (child_terminal_init_inferior): ... this.
6557 (terminal_init_inferior_with_pgrp): Rename to ...
6558 (child_terminal_init_inferior_with_pgrp): ... this.
6559 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6560 (child_terminal_init_with_pgrp): ... this.
6561 (terminal_save_ours): Rename to ...
6562 (child_terminal_save_ours): ... this.
6563 (terminal_init_inferior): Rename to ...
6564 (child_terminal_init): ... this. Adjust.
6565 (terminal_inferior): Rename to ...
6566 (child_terminal_inferior): ... this.
6567 (terminal_ours_for_output): Rename to ...
6568 (child_terminal_ours_for_output): ... this. Adjust.
6569 (terminal_ours): Rename to ...
6570 (child_terminal_ours): ... this.
6571 (terminal_ours_1): Rename to ...
6572 (child_terminal_ours_1): ... this. Adjust.
6573 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6574 * windows-nat.c (do_initial_windows_stuff): Adjust.
6575 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6576 (gnu_terminal_init): ... this. Adjust.
6577 (gnu_target): Adjust.
6578 * inf-child.c (inf_child_target): Adjust.
6579
5a1e8c7a
DE
65802014-03-13 Doug Evans <xdje42@gmail.com>
6581
6582 PR guile/16612
6583 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6584 new eq?-hashtab.
6585
350e1a76
DE
65862014-03-13 Doug Evans <xdje42@gmail.com>
6587
6588 * value.c (record_latest_value): Call release_value_or_incref
6589 instead of release_value.
6590
a69900ae
PA
65912014-03-13 Pedro Alves <palves@redhat.com>
6592
6593 * procfs.c (procfs_target): Don't override to_shortname,
6594 to_longname or to_doc.
6595
5db9f0bd
PA
65962014-03-13 Pedro Alves <palves@redhat.com>
6597
6598 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6599 Unix in user visible strings.
6600
5e3a2c38
SS
66012014-03-12 Stan Shebs <stan@codesourcery.com>
6602
6603 * gdbtypes.h: Annotate comments for Doxygen, add a page
6604 block comment with some general info.
6605
8bc2fe48
PA
66062014-03-12 Pedro Alves <palves@redhat.com>
6607
6608 * infcmd.c (prepare_execution_command): New function, factored out
6609 from several execution commands.
6610 (run_command_1, continue_command, step_1, jump_command)
6611 (signal_command, until_command, advance_command, finish_command)
6612 (attach_command): Use prepare_execution_command.
6613
638c5f49
OJ
66142014-03-12 Omair Javaid <omair.javaid@linaro.org>
6615
6616 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6617 (MAX_BPTS): Define.
6618 (MAX_WPTS): Define.
6619 (struct arm_linux_thread_points): Removed.
6620 (struct arm_linux_process_info): New.
6621 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6622 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6623 (arm_linux_find_breakpoints_by_tid): Removed.
6624 (struct arch_lwp_info): New.
6625 (arm_linux_find_process_pid): New functions.
6626 (arm_linux_add_process): New functions.
6627 (arm_linux_process_info_get): New functions.
6628 (arm_linux_forget_process): New function.
6629 (arm_linux_get_debug_reg_state): New function.
6630 (struct update_registers_data): New.
6631 (update_registers_callback): New function.
6632 (arm_linux_insert_hw_breakpoint1): Updated.
6633 (arm_linux_remove_hw_breakpoint1): Updated.
6634 (arm_linux_insert_hw_breakpoint): Updated.
6635 (arm_linux_remove_hw_breakpoint): Updated.
6636 (arm_linux_insert_watchpoint): Updated.
6637 (arm_linux_remove_watchpoint): Updated.
6638 (arm_linux_new_thread): Updated.
6639 (arm_linux_prepare_to_resume): New function.
6640 (arm_linux_new_fork): New function.
6641 (_initialize_arm_linux_nat): Updated.
6642
6d03af93
PA
66432014-03-12 Pedro Alves <palves@redhat.com>
6644
6645 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6646
b3ccfe11
TT
66472014-03-12 Tom Tromey <tromey@redhat.com>
6648
6649 * inf-child.c (return_zero): New function.
6650 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6651 * aix-thread.c (aix_thread_inferior_created): New function.
6652 (aix_thread_attach): Remove.
6653 (init_aix_thread_ops): Don't set to_attach.
6654 (_initialize_aix_thread): Register inferior_created observer.
6655 * corelow.c (init_core_ops): Don't set to_attach or
6656 to_create_inferior.
6657 * exec.c (init_exec_ops): Don't set to_attach or
6658 to_create_inferior.
6659 * infcmd.c (run_command_1): Use find_run_target. Make direct
6660 target calls.
6661 (attach_command): Use find_attach_target. Make direct target
6662 calls.
6663 * record-btrace.c (init_record_btrace_ops): Don't set
6664 to_create_inferior.
6665 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6666 Remove.
6667 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6668 set to_create_inferior.
6669 * target.c (complete_target_initialization): Add assertion.
6670 (target_create_inferior): Remove.
6671 (find_default_attach, find_default_create_inferior): Remove.
6672 (find_attach_target, find_run_target): New functions.
6673 (find_default_is_async_p, find_default_can_async_p)
6674 (target_supports_non_stop, target_attach): Remove.
6675 (init_dummy_target): Don't set to_create_inferior or
6676 to_supports_non_stop.
6677 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6678 TARGET_DEFAULT_FUNC.
6679 <to_create_inferior>: Add comment.
6680 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6681 TARGET_DEFAULT_RETURN.
6682 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6683 (find_attach_target, find_run_target): Declare.
6684 (target_create_inferior): Remove.
6685 (target_has_execution_1): Update comment.
6686 (target_supports_non_stop): Remove.
6687 * target-delegates.c: Rebuild.
6688
91f83b02
PA
66892014-03-12 Pedro Alves <palves@redhat.com>
6690
6691 * inf-child.h: Update comment to not mention Unix.
6692
f1aea813
PA
66932014-03-12 Pedro Alves <palves@redhat.com>
6694
6695 * inf-child.c: Update top comment to not mention Unix. Add
6696 generic comment describing how this target is meant to be used.
6697 (inf_child_post_attach, inf_child_post_startup_inferior)
6698 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6699 Unix in comment.
6700
ee8e9165
PA
67012014-03-12 Pedro Alves <palves@redhat.com>
6702
6703 * nto-procfs.c: Include inf-child.h.
6704 (procfs_ops): Delete global.
6705 (procfs_can_run): Delete method.
6706 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6707 target pointer instead of referencing procfs_ops.
6708 (procfs_prepare_to_store): Delete.
6709 (init_procfs_ops): Delete function.
6710 (procfs_target): New function, based on init_procfs_ops, but
6711 inherit inf_child_target.
6712 (_initialize_procfs): Use procfs_target.
6713
51a9c8c5
PA
67142014-03-12 Pedro Alves <palves@redhat.com>
6715
6716 * windows-nat.c: Include inf-child.h.
6717 (windows_ops): Delete global.
6718 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6719 methods.
6720 (init_windows_ops): Delete function.
6721 (windows_target): New function, based on init_windows_ops, but
6722 inherit inf_child_target.
6723 (_initialize_windows_nat): Use windows_target. Install x86
6724 specific target methods here.
6725
c1966e26
DE
67262014-03-10 Doug Evans <xdje42@gmail.com>
6727
6728 * guile/guile.c (call_initialize_gdb_module): New function.
6729 (initialize_guile): Replace call to scm_init_guile with call to
6730 scm_with_guile.
6731
023db19c
JB
67322014-03-10 Joel Brobecker <brobecker@adacore.com>
6733
6734 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6735 in call to TYPE_CODE macro.
6736
5ec18f2b
JG
67372014-03-10 Jerome Guitton <guitton@adacore.com>
6738
8668be63
JB
6739 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6740 Resolve tagged types to full view.
5ec18f2b 6741
7d03f2eb
HZ
67422014-03-10 Hui Zhu <hui@codesourcery.com>
6743
6744 * target.h (target_insert_breakpoint): Remove "hardware" from its
6745 comments.
6746
c5164cbc
DE
67472014-03-07 Doug Evans <dje@google.com>
6748
6749 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6750
c4a3fee2
DE
67512014-03-07 Doug Evans <dje@google.com>
6752
6753 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6754 Remove unused local comp_dir_attr. Assert exactly one of
6755 stub_comp_unit_die, stub_comp_dir is non-NULL.
6756
3156469c
JB
67572014-03-07 Joel Brobecker <brobecker@adacore.com>
6758
6759 * target.h (complete_target_initialization, add_target):
6760 Add comment.
6761
c1a7b7c6
PA
67622014-03-07 Pedro Alves <palves@redhat.com>
6763
6764 * go32-nat.c: Include inf-child.h.
6765 (go32_ops): Delete global.
6766 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6767 Delete methods.
6768 (go32_create_inferior): Push the passed in target pointer instead
6769 of referencing go32_ops.
6770 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6771 (go32_target): New function, based on init_go32_ops, but inherit
6772 inf_child_target.
6773 (_initialize_go32_nat): Use go32_target. Move parts of
6774 init_go32_ops here.
6775
d3c1a85f
JB
67762014-03-06 Joel Brobecker <brobecker@adacore.com>
6777
6778 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6779 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6780 SYMBOL_VALUE_ADDRESS.
6781 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6782
5fa1d40e
YQ
67832014-03-06 Yao Qi <yao@codesourcery.com>
6784
6785 * breakpoint.c (get_tracepoint_by_number): Remove argument
6786 optional_p. All callers updated. Adjust comments. Update
6787 output message.
6788 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6789
0c13193f
YQ
67902014-03-06 Yao Qi <yao@codesourcery.com>
6791
6792 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6793 early if get_number returns zero. Use 'p' instead of 'args'.
6794
2217da06
YQ
67952014-03-06 Yao Qi <yao@codesourcery.com>
6796
6797 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6798 message.
6799
cc3da688
YQ
68002014-03-06 Yao Qi <yao@codesourcery.com>
6801
6802 PR breakpoints/16508
6803 * tracepoint.c (check_trace_running): New function.
6804 (trace_find_command): Move code to check_trace_running and
6805 call check_trace_running.
6806 (trace_find_pc_command): Likewise.
6807 (trace_find_tracepoint_command): Likewise.
6808 (trace_find_line_command): Likewise.
6809 (trace_find_range_command): Likewise.
6810 * tracepoint.h (check_trace_running): Likewise.
6811 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6812
6a5f844b
YQ
68132014-03-06 Yao Qi <yao@codesourcery.com>
6814
6815 * target.h (struct target_ops) <to_traceframe_info>: Use
6816 TARGET_DEFAULT_NORETURN (tcomplain ()).
6817 * target-delegates.c: Regenerated.
6818
0f26cec1
PA
68192014-03-05 Pedro Alves <palves@redhat.com>
6820
6821 PR gdb/16575
6822 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6823 void. Update comment.
6824 (dcache_xfer_memory): Delete.
6825 (dcache_read_memory_partial): New, based on the read bits of
6826 dcache_xfer_memory.
6827 (dcache_update): Add status parameter. Use ULONGEST for len, and
6828 adjust. Discard cache lines if the reason for the update was
6829 error.
6830 * dcache.h (dcache_xfer_memory): Delete declaration.
6831 (dcache_read_memory_partial): New declaration.
6832 (dcache_update): Update prototype.
6833 * target.c (raw_memory_xfer_partial): Update the dcache here.
6834 (memory_xfer_partial_1): Don't handle dcache writes here.
6835
b2b255bd
MF
68362014-03-05 Mike Frysinger <vapier@gentoo.org>
6837
6838 * remote-sim.c (gdbsim_load): Add const to prog.
6839
5d9cf8a4
TT
68402014-03-03 Tom Tromey <tromey@redhat.com>
6841
6842 * elfread.c (probe_key): Change to bfd_data.
6843 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6844 now per-BFD, not per-objfile.
6845 * stap-probe.c (stap_probe_destroy): Update comment.
6846 (handle_stap_probe): Allocate on the per-BFD obstack.
6847
729662a5
TT
68482014-03-03 Tom Tromey <tromey@redhat.com>
6849
6850 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6851 * breakpoint.c (create_longjmp_master_breakpoint): Use
6852 get_probe_address.
6853 (add_location_to_breakpoint, bkpt_probe_insert_location)
6854 (bkpt_probe_remove_location): Update.
6855 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6856 * elfread.c (elf_symfile_relocate_probe): Remove.
6857 (elf_probe_fns): Update.
6858 (insert_exception_resume_breakpoint): Change type of "probe"
6859 parameter to bound_probe.
6860 (check_exception_resume): Update.
6861 * objfiles.c (objfile_relocate1): Don't relocate probes.
6862 * probe.c (bound_probe_s): New typedef.
6863 (parse_probes): Use get_probe_address. Set sal's objfile.
6864 (find_probe_by_pc): Return a bound_probe.
6865 (collect_probes): Return a VEC(bound_probe_s).
6866 (compare_probes): Update.
6867 (gen_ui_out_table_header_info): Change type of "probes"
6868 parameter. Update.
6869 (info_probes_for_ops): Update.
6870 (get_probe_address): New function.
6871 (probe_safe_evaluate_at_pc): Update.
6872 * probe.h (struct probe_ops) <get_probe_address>: New field.
6873 <set_semaphore, clear_semaphore>: Add objfile parameter.
6874 (struct probe) <objfile>: Remove field.
6875 <arch>: New field.
6876 <address>: Update comment.
6877 (struct bound_probe): New.
6878 (find_probe_by_pc): Return a bound_probe.
6879 (get_probe_address): Declare.
6880 * solib-svr4.c (struct probe_and_action) <address>: New field.
6881 (hash_probe_and_action, equal_probe_and_action): Update.
6882 (register_solib_event_probe): Add address parameter.
6883 (solib_event_probe_at): Update.
6884 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6885 get_probe_address.
6886 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6887 (stap_get_probe_address): New function.
6888 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6889 (compile_probe_arg): Update.
6890 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6891 address.
6892 (handle_stap_probe): Don't relocate the probe.
6893 (stap_relocate): Remove.
6894 (stap_gen_info_probes_table_values): Update.
6895 (stap_probe_ops): Remove stap_relocate.
6896 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6897 (debug_sym_probe_fns): Update.
6898 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6899 * symtab.c (init_sal): Use memset.
6900 * symtab.h (struct symtab_and_line) <objfile>: New field.
6901 * tracepoint.c (start_tracing, stop_tracing): Update.
6902
ff887920
TT
69032014-03-03 Tom Tromey <tromey@redhat.com>
6904
6905 * probe.h (parse_probes, find_probe_by_pc)
6906 (find_probes_in_objfile): Fix comments.
6907
f0407826
DE
69082014-03-02 Doug Evans <xdje42@gmail.com>
6909
6910 * infrun.c (handle_signal_stop): Replace test for
6911 TARGET_WAITKIND_STOPPED with an assert.
6912
35e6a711
DE
69132014-03-02 Doug Evans <xdje42@gmail.com>
6914
6915 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6916
667f9d0b
DE
69172014-03-02 Doug Evans <xdje42@gmail.com>
6918
6919 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6920
dc92ace0
MK
69212014-03-01 Mark Kettenis <kettenis@gnu.org>
6922
6923 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6924
a900370f
MK
69252014-03-01 Mark Kettenis <kettenis@gnu.org>
6926
6927 * i386obsd-nat.c: Include "obsd-nat.h".
6928 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6929 add_target.
6930 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6931
b72a7981
MK
69322014-03-01 Mark Kettenis <kettenis@gnu.org>
6933
6934 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6935
96c70aba
MK
69362014-03-01 Mark Kettenis <kettenis@gnu.org>
6937
6938 * mips64obsd-nat.c: Include "obsd-nath".
6939 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6940 add_target
6941 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6942
874a80af
MK
69432014-03-01 Mark Kettenis <kettenis@gnu.org>
6944
8fd408f1
MK
6945 * amd64obsd-nat.c: Include "obsd-nat,h.
6946 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6947 add_target.
874a80af
MK
6948 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6949
9cf95373
SC
69502014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6951
6952 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6953 (find_overload_match): Update call to find_oload_champ.
6954 (find_oload_champ_namespace_loop): Likewise
6955
863e4da4
MK
69562014-02-28 Mark Kettenis <kettenis@gnu.org>
6957
025cac40
MK
6958 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6959
1ed586ce
MK
6960 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6961 * config/sparc/obsd64.mh: New file.
6962 * sparc64obsd-nat.c: New file.
6963
863e4da4
MK
6964 * obsd-nat.h: New file.
6965 * obsd-nat.c: New file.
6966 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6967 (ALLDEPFILES): Add obsd-nat.c.
6968
89de4da4
TT
69692014-02-28 Tom Tromey <tromey@redhat.com>
6970
6971 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6972 * cli-out.h (cli_ui_out_impl): Now const.
6973 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6974 * ui-out.c (struct ui_out) <impl>: Now const.
6975 (default_ui_out_impl): Now const.
6976 (ui_out_new): Make 'impl' parameter const.
6977 * ui-out.h (ui_out_new): Update.
6978
c725e7b6
MK
69792014-02-27 Mark Kettenis <kettenis@gnu.org>
6980
6981 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6982
670b46b3
MK
69832014-02-27 Mark Kettenis <kettenis@gnu.org>
6984
6985 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6986
c91550fc
JK
69872014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6988
6989 Additional PR 8882 fix.
6990 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6991
2fa0369e
PA
69922014-02-27 Pedro Alves <palves@redhat.com>
6993
6994 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6995 isn't set.
6996
d632a097
PA
69972014-02-27 Pedro Alves <palves@redhat.com>
6998
6999 PR 12702
7000 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7001 * nat/linux-waitpid.c: Include string.h.
7002 (status_to_str): Moved here and made extern.
7003 * nat/linux-waitpid.h (status_to_str): New declaration.
7004
2ebd5a35
HZ
70052014-02-27 Hui Zhu <hui@codesourcery.com>
7006
7007 PR 12702
7008 * infrun.c (ptid_match): Move ...
7009 * common/ptid.c (ptid_match): ... here.
7010 * inferior.h (ptid_match): Move ...
7011 * common/ptid.h (ptid_match): ... here.
7012
3cdd631f
MK
70132014-02-27 Mark Kettenis <kettenis@gnu.org>
7014
7015 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7016 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7017 gdb_target_obs.
7018
bee30a64
MK
70192014-02-27 Mark Kettenis <kettenis@gnu.org>
7020
7021 * obsd-tdep.c (obsd_auxv_parse): New function.
7022 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7023
7024 * gdbarch.sh (auxv_parse): New.
7025 * gdbarch.h: Regenerated.
7026 * gdbarch.c: Regenerated.
7027 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7028
7a5a839f
LC
70292014-02-26 Ludovic Courtès <ludo@gnu.org>
7030
7031 * guile/scm-value.c (gdbscm_history_append_x): New function.
7032 (value_functions): Add it.
7033
31aa7e4e
JB
70342014-02-27 Joel Brobecker <brobecker@adacore.com>
7035
7036 * dwarf2read.c (attr_value_as_address): New function.
7037 (dwarf2_find_base_address, read_call_site_scope): Use
7038 attr_value_as_address in place of DW_ADDR.
7039 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7040 the low and high addresses. Slight rework of the handling
7041 of the high pc being a constant form, and limit it to
7042 DWARF verson 4 or higher.
7043 (dwarf2_record_block_ranges): Likewise.
7044 (read_partial_die): Likewise.
7045 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7046
9b333ba3
TT
70472014-02-26 Tom Tromey <tromey@redhat.com>
7048
7049 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7050
5f6cac40
TT
70512014-02-26 Tom Tromey <tromey@redhat.com>
7052
7053 * elfread.c (elf_read_minimal_symbols): Return early if
7054 minimal symbols have already been read. Add "ei" parameter.
7055 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7056 * minsyms.c (prim_record_minimal_symbol_full): Update.
7057 * objfiles.h (struct objstats) <n_minsyms>: Move...
7058 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7059 * symmisc.c (print_objfile_statistics): Update.
7060
2750ef27
TT
70612014-02-26 Tom Tromey <tromey@redhat.com>
7062
7063 * elfread.c (elf_read_minimal_symbols): New function, from
7064 elf_symfile_read.
7065 (elf_symfile_read): Call it.
7066
34643a32
TT
70672014-02-26 Tom Tromey <tromey@redhat.com>
7068
7069 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7070 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7071 (lookup_minimal_symbol_solib_trampoline)
7072 (lookup_minimal_symbol_by_pc_section_1)
7073 (lookup_minimal_symbol_and_objfile): Update.
7074 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7075 Don't allocate a minimal symbol if minsyms have already been read.
7076 (build_minimal_symbol_hash_tables): Update.
7077 (install_minimal_symbols): Do nothing if minsyms already read.
7078 Use the per-BFD obstack.
7079 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7080 * objfiles.c (allocate_objfile): Call
7081 terminate_minimal_symbol_table later.
7082 (have_minimal_symbols): Update.
7083 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7084 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7085 Move from struct objfile.
7086 <minsyms_read>: New field.
7087 (struct objfile) <msymbols, minimal_symbol_count,
7088 msymbol_hash, msymbol_demangled_hash>: Move.
7089 (ALL_OBJFILE_MSYMBOLS): Update.
7090 * symfile.c (read_symbols): Set minsyms_read.
7091 (reread_symbols): Update.
7092 * symmisc.c (dump_objfile, dump_msymbols): Update.
7093
2273f0ac
TT
70942014-02-26 Tom Tromey <tromey@redhat.com>
7095
7096 * minsyms.c (msymbols_sort): Remove.
7097 * minsyms.h (msymbols_sort): Remove.
7098 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7099 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7100 * elfread.c (elf_symtab_read): Don't add section offsets.
7101 * xcoffread.c (record_minimal_symbol): Don't add section offset
7102 to minimal symbol address.
7103 * somread.c (text_offset, data_offset): Remove.
7104 (som_symtab_read): Don't add section offsets to minimal symbol
7105 addresses.
7106 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7107 Don't add section offsets to minimal symbols.
7108 * coffread.c (coff_symtab_read): Don't add section offsets
7109 to minimal symbol addresses.
7110 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7111 to minimal symbol addresses.
7112 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7113 section offset to minimal symbol addresses.
7114 * mdebugread.c (parse_partial_symbols): Don't add section
7115 offset to minimal symbol addresses.
7116 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7117 offset to minimal symbol addresses.
7118
77e371c0
TT
71192014-02-26 Tom Tromey <tromey@redhat.com>
7120
7121 * ada-lang.c (ada_main_name): Update.
7122 (ada_add_standard_exceptions): Update.
7123 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7124 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7125 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7126 * auxv.c (ld_so_xfer_auxv): Update.
7127 * avr-tdep.c (avr_scan_prologue): Update.
7128 * ax-gdb.c (gen_var_ref): Update.
7129 * blockframe.c (get_pc_function_start)
7130 (find_pc_partial_function_gnu_ifunc): Update.
7131 * breakpoint.c (create_overlay_event_breakpoint)
7132 (create_longjmp_master_breakpoint)
7133 (create_std_terminate_master_breakpoint)
7134 (create_exception_master_breakpoint): Update.
7135 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7136 * c-valprint.c (c_val_print): Update.
7137 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7138 * common/agent.c (agent_look_up_symbols): Update.
7139 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7140 * dwarf2loc.c (call_site_to_target_addr): Update.
7141 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7142 * elfread.c (elf_gnu_ifunc_record_cache)
7143 (elf_gnu_ifunc_resolve_by_got): Update.
7144 * findvar.c (default_read_var_value): Update.
7145 * frame.c (inside_main_func): Update.
7146 * frv-tdep.c (frv_frame_this_id): Update.
7147 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7148 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7149 Update.
7150 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7151 (hppa_hpux_find_dummy_bpaddr): Update.
7152 * hppa-tdep.c (hppa_symbol_address): Update.
7153 * infcmd.c (until_next_command): Update.
7154 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7155 Update.
7156 * linespec.c (minsym_found, add_minsym): Update.
7157 * linux-nat.c (get_signo): Update.
7158 * linux-thread-db.c (inferior_has_bug): Update.
7159 * m32c-tdep.c (m32c_return_value)
7160 (m32c_m16c_address_to_pointer): Update.
7161 * m32r-tdep.c (m32r_frame_this_id): Update.
7162 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7163 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7164 * maint.c (maintenance_translate_address): Update.
7165 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7166 (frob_address): New function.
7167 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7168 frob_address. Rename parameter to "pc_in".
7169 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7170 addresses.
7171 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7172 Update.
7173 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7174 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7175 * objc-lang.c (find_objc_msgsend): Update.
7176 * objfiles.c (objfile_relocate1): Update.
7177 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7178 * p-valprint.c (pascal_val_print): Update.
7179 * parse.c (write_exp_msymbol): Update.
7180 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7181 (ppc_elfv2_skip_entrypoint): Update.
7182 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7183 * printcmd.c (build_address_symbolic, msym_info)
7184 (address_info): Update.
7185 * proc-service.c (ps_pglobal_lookup): Update.
7186 * psymtab.c (find_pc_sect_psymtab_closer)
7187 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7188 Change msymbol parameter to bound_minimal_symbol.
7189 * ravenscar-thread.c (get_running_thread_id): Update.
7190 * remote.c (remote_check_symbols): Update.
7191 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7192 address.
7193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7194 * solib-dsbt.c (lm_base): Update.
7195 * solib-frv.c (lm_base, main_got): Update.
7196 * solib-irix.c (locate_base): Update.
7197 * solib-som.c (som_solib_create_inferior_hook)
7198 (link_map_start): Update.
7199 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7200 * solib-svr4.c (elf_locate_base, enable_break): Update.
7201 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7202 (flush_ea_cache): Update.
7203 * stabsread.c (define_symbol, scan_file_globals): Update.
7204 * stack.c (find_frame_funname): Update.
7205 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7206 (debug_qf_find_pc_sect_symtab): Update.
7207 * symfile.c (simple_read_overlay_table)
7208 (simple_overlay_update): Update.
7209 * symfile.h (struct quick_symbol_functions)
7210 <find_pc_sect_symtab>: Change type of msymbol to
7211 bound_minimal_symbol.
7212 * symmisc.c (dump_msymbols): Update.
7213 * symtab.c (find_pc_sect_symtab_via_partial)
7214 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7215 (search_symbols, print_msymbol_info): Update.
7216 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7217 (MSYMBOL_VALUE_ADDRESS): Redefine.
7218 (BMSYMBOL_VALUE_ADDRESS): New macro.
7219 * tracepoint.c (scope_info): Update.
7220 * tui/tui-disasm.c (tui_find_disassembly_address)
7221 (tui_get_begin_asm_address): Update.
7222 * valops.c (find_function_in_inferior): Update.
7223 * value.c (value_static_field, value_fn_field): Update.
7224
3b7344d5
TT
72252014-02-26 Tom Tromey <tromey@redhat.com>
7226
7227 * ada-lang.c (ada_update_initial_language): Update.
7228 (ada_main_name, ada_has_this_exception_support): Update.
7229 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7230 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7231 * arm-tdep.c (arm_skip_stub): Update.
7232 * auxv.c (ld_so_xfer_auxv): Update.
7233 * avr-tdep.c (avr_scan_prologue): Update.
7234 * ax-gdb.c (gen_var_ref): Update.
7235 * breakpoint.c (struct breakpoint_objfile_data)
7236 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7237 type to bound_minimal_symbol.
7238 (create_overlay_event_breakpoint)
7239 (create_longjmp_master_breakpoint)
7240 (create_std_terminate_master_breakpoint)
7241 (create_exception_master_breakpoint): Update.
7242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7243 * c-exp.y (classify_name): Update.
7244 * coffread.c (coff_symfile_read): Update.
7245 * common/agent.c (agent_look_up_symbols): Update.
7246 * d-lang.c (d_main_name): Update.
7247 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7248 * dec-thread.c (enable_dec_thread): Update.
7249 * dwarf2loc.c (call_site_to_target_addr): Update.
7250 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7251 * eval.c (evaluate_subexp_standard): Update.
7252 * findvar.c (struct minsym_lookup_data) <result>: Change type
7253 to bound_minimal_symbol.
7254 <objfile>: Remove.
7255 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7256 * frame.c (inside_main_func): Update.
7257 * frv-tdep.c (frv_frame_this_id): Update.
7258 * gcore.c (call_target_sbrk): Update.
7259 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7260 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7261 Update.
7262 * go-lang.c (go_main_name): Update.
7263 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7264 (hppa_hpux_find_import_stub_for_addr): Update.
7265 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7266 Update. Change return type.
7267 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7268 type.
7269 * jit.c (jit_breakpoint_re_set_internal): Update.
7270 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7271 Update.
7272 * linux-nat.c (get_signo): Update.
7273 * linux-thread-db.c (inferior_has_bug): Update
7274 * m32c-tdep.c (m32c_return_value)
7275 (m32c_m16c_address_to_pointer): Update.
7276 * m32r-tdep.c (m32r_frame_this_id): Update.
7277 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7278 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7279 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7280 lookup_minimal_symbol. Change return type.
7281 (lookup_minimal_symbol): Remove.
7282 (lookup_bound_minimal_symbol): Update.
7283 (lookup_minimal_symbol_text): Change return type.
7284 (lookup_minimal_symbol_solib_trampoline): Change return type.
7285 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7286 (lookup_minimal_symbol_solib_trampoline): Change return type.
7287 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7288 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7289 (value_nsstring, find_imps): Update.
7290 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7291 * p-lang.c (pascal_main_name): Update.
7292 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7293 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7294 * proc-service.c (ps_pglobal_lookup): Update.
7295 * ravenscar-thread.c (get_running_thread_msymbol): Change
7296 return type.
7297 (has_ravenscar_runtime, get_running_thread_id): Update.
7298 * remote.c (remote_check_symbols): Update.
7299 * sol-thread.c (ps_pglobal_lookup): Update.
7300 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7301 * solib-dsbt.c (lm_base): Update.
7302 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7303 Update.
7304 * solib-irix.c (locate_base): Update.
7305 * solib-som.c (som_solib_create_inferior_hook)
7306 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7307 Update.
7308 * solib-spu.c (spu_enable_break): Update.
7309 * solib-svr4.c (elf_locate_base, enable_break): Update.
7310 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7311 (flush_ea_cache): Update.
7312 * stabsread.c (define_symbol): Update.
7313 * symfile.c (simple_read_overlay_table): Update.
7314 * symtab.c (find_pc_sect_line): Update.
7315 * tracepoint.c (scope_info): Update.
7316 * tui-disasm.c (tui_get_begin_asm_address): Update.
7317 * value.c (value_static_field): Update.
7318
40c1a007
TT
73192014-02-26 Tom Tromey <tromey@redhat.com>
7320
7321 * minsyms.c (prim_record_minimal_symbol_full): Use
7322 SET_MSYMBOL_VALUE_ADDRESS.
7323 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7324 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7325 SET_MSYMBOL_VALUE_ADDRESS.
7326 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7327 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7328
efd66ac6
TT
73292014-02-26 Tom Tromey <tromey@redhat.com>
7330
7331 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7332 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7333 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7334 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7335 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7336 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7337 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7338 * ada-lang.c (ada_main_name): Update.
7339 (ada_lookup_simple_minsym): Update.
7340 (ada_make_symbol_completion_list): Update.
7341 (ada_add_standard_exceptions): Update.
7342 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7343 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7344 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7345 * arm-tdep.c (skip_prologue_function): Update.
7346 (arm_skip_stack_protector, arm_skip_stub): Update.
7347 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7348 (arm_wince_skip_main_prologue): Update.
7349 * auxv.c (ld_so_xfer_auxv): Update.
7350 * avr-tdep.c (avr_scan_prologue): Update.
7351 * ax-gdb.c (gen_var_ref): Update.
7352 * block.c (call_site_for_pc): Update.
7353 * blockframe.c (get_pc_function_start): Update.
7354 (find_pc_partial_function_gnu_ifunc): Update.
7355 * breakpoint.c (create_overlay_event_breakpoint): Update.
7356 (create_longjmp_master_breakpoint): Update.
7357 (create_std_terminate_master_breakpoint): Update.
7358 (create_exception_master_breakpoint): Update.
7359 (resolve_sal_pc): Update.
7360 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7361 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7362 Update.
7363 * c-valprint.c (c_val_print): Update.
7364 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7365 * coffread.c (coff_symfile_read): Update.
7366 * common/agent.c (agent_look_up_symbols): Update.
7367 * dbxread.c (find_stab_function_addr): Update.
7368 (end_psymtab): Update.
7369 * dwarf2loc.c (call_site_to_target_addr): Update.
7370 (func_verify_no_selftailcall): Update.
7371 (tailcall_dump): Update.
7372 (call_site_find_chain_1): Update.
7373 (dwarf_expr_reg_to_entry_parameter): Update.
7374 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7375 (elf_gnu_ifunc_resolve_by_got): Update.
7376 * f-valprint.c (info_common_command): Update.
7377 * findvar.c (read_var_value): Update.
7378 * frame.c (get_prev_frame_1): Update.
7379 (inside_main_func): Update.
7380 * frv-tdep.c (frv_skip_main_prologue): Update.
7381 (frv_frame_this_id): Update.
7382 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7383 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7384 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7385 (gnuv3_skip_trampoline): Update.
7386 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7387 (hppa64_hpux_in_solib_call_trampoline): Update.
7388 (hppa_hpux_skip_trampoline_code): Update.
7389 (hppa64_hpux_search_dummy_call_sequence): Update.
7390 (hppa_hpux_find_import_stub_for_addr): Update.
7391 (hppa_hpux_find_dummy_bpaddr): Update.
7392 * hppa-tdep.c (hppa_symbol_address)
7393 (hppa_lookup_stub_minimal_symbol): Update.
7394 * i386-tdep.c (i386_skip_main_prologue): Update.
7395 (i386_pe_skip_trampoline_code): Update.
7396 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7397 * infcall.c (get_function_name): Update.
7398 * infcmd.c (until_next_command): Update.
7399 * jit.c (jit_breakpoint_re_set_internal): Update.
7400 (jit_inferior_init): Update.
7401 * linespec.c (minsym_found): Update.
7402 (add_minsym): Update.
7403 * linux-fork.c (info_checkpoints_command): Update.
7404 * linux-nat.c (get_signo): Update.
7405 * linux-thread-db.c (inferior_has_bug): Update.
7406 * m32c-tdep.c (m32c_return_value): Update.
7407 (m32c_m16c_address_to_pointer): Update.
7408 (m32c_m16c_pointer_to_address): Update.
7409 * m32r-tdep.c (m32r_frame_this_id): Update.
7410 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7411 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7412 * maint.c (maintenance_translate_address): Update.
7413 * minsyms.c (add_minsym_to_hash_table): Update.
7414 (add_minsym_to_demangled_hash_table): Update.
7415 (msymbol_objfile): Update.
7416 (lookup_minimal_symbol): Update.
7417 (iterate_over_minimal_symbols): Update.
7418 (lookup_minimal_symbol_text): Update.
7419 (lookup_minimal_symbol_by_pc_name): Update.
7420 (lookup_minimal_symbol_solib_trampoline): Update.
7421 (lookup_minimal_symbol_by_pc_section_1): Update.
7422 (lookup_minimal_symbol_and_objfile): Update.
7423 (prim_record_minimal_symbol_full): Update.
7424 (compare_minimal_symbols): Update.
7425 (compact_minimal_symbols): Update.
7426 (build_minimal_symbol_hash_tables): Update.
7427 (install_minimal_symbols): Update.
7428 (terminate_minimal_symbol_table): Update.
7429 (find_solib_trampoline_target): Update.
7430 (minimal_symbol_upper_bound): Update.
7431 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7432 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7433 (mips_skip_pic_trampoline_code): Update.
7434 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7435 * objc-lang.c (selectors_info): Update.
7436 (classes_info): Update.
7437 (find_methods): Update.
7438 (find_imps): Update.
7439 (find_objc_msgsend): Update.
7440 * objfiles.c (objfile_relocate1): Update.
7441 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7442 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7443 * p-valprint.c (pascal_val_print): Update.
7444 * parse.c (write_exp_msymbol): Update.
7445 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7446 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7447 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7448 * printcmd.c (build_address_symbolic): Update.
7449 (sym_info): Update.
7450 (address_info): Update.
7451 * proc-service.c (ps_pglobal_lookup): Update.
7452 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7453 (find_pc_sect_psymtab): Update.
7454 * python/py-framefilter.c (py_print_frame): Update.
7455 * ravenscar-thread.c (get_running_thread_id): Update.
7456 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7457 Update.
7458 * remote.c (remote_check_symbols): Update.
7459 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7460 (rs6000_skip_trampoline_code): Update.
7461 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7462 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7463 * solib-dsbt.c (lm_base): Update.
7464 * solib-frv.c (lm_base): Update.
7465 (main_got): Update.
7466 * solib-irix.c (locate_base): Update.
7467 * solib-som.c (som_solib_create_inferior_hook): Update.
7468 (som_solib_desire_dynamic_linker_symbols): Update.
7469 (link_map_start): Update.
7470 * solib-spu.c (spu_enable_break): Update.
7471 (ocl_enable_break): Update.
7472 * solib-svr4.c (elf_locate_base): Update.
7473 (enable_break): Update.
7474 * spu-tdep.c (spu_get_overlay_table): Update.
7475 (spu_catch_start): Update.
7476 (flush_ea_cache): Update.
7477 * stabsread.c (define_symbol): Update.
7478 (scan_file_globals): Update.
7479 * stack.c (find_frame_funname): Update.
7480 (frame_info): Update.
7481 * symfile.c (simple_read_overlay_table): Update.
7482 (simple_overlay_update): Update.
7483 * symmisc.c (dump_msymbols): Update.
7484 * symtab.c (fixup_section): Update.
7485 (find_pc_sect_line): Update.
7486 (skip_prologue_sal): Update.
7487 (search_symbols): Update.
7488 (print_msymbol_info): Update.
7489 (rbreak_command): Update.
7490 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7491 (completion_list_objc_symbol): Update.
7492 (default_make_symbol_completion_list_break_on): Update.
7493 * tracepoint.c (scope_info): Update.
7494 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7495 (tui_get_begin_asm_address): Update.
7496 * valops.c (find_function_in_inferior): Update.
7497 * value.c (value_static_field): Update.
7498 (value_fn_field): Update.
7499
50e65b17
TT
75002014-02-26 Tom Tromey <tromey@redhat.com>
7501
7502 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7503 bound minimal symbols. Move code that knows about minsym
7504 table layout...
7505 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7506 function.
7507 * minsyms.h (minimal_symbol_upper_bound): Declare.
7508 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7509 minimal_symbol_upper_bound.
7510
1b588015
JB
75112014-02-27 Joel Brobecker <brobecker@adacore.com>
7512
7513 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7514 Use the type's name if its basic type does not have a tag.
7515
dbb9c2b1
JB
75162014-02-27 Joel Brobecker <brobecker@adacore.com>
7517
7518 * dwarf2read.c (read_subrange_type): Add comment.
7519
55426c9d
JB
75202014-02-27 Joel Brobecker <brobecker@adacore.com>
7521
7522 * dwarf2read.c (update_enumeration_type_from_children): New
7523 function, mostly extracted from process_structure_scope.
7524 (read_enumeration_type): Call update_enumeration_type_from_children.
7525 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7526 and flag_flag_enum fields.
7527
f2fce0ca
PA
75282014-02-26 Pedro Alves <palves@redhat.com>
7529
7530 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7531 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7532 to_xfer_partial method.
7533
7a44e40e
PA
75342014-02-26 Pedro Alves <palves@redhat.com>
7535
7536 * target.c (complete_target_initialization): Don't install
7537 default_xfer_partial as to_xfer_partial hook.
7538 (nomemory): Delete.
7539 (update_current_target): Don't INHERIT nor de_fault
7540 deprecated_xfer_memory. Delete de_fault macro.
7541 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7542 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7543 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7544 field.
7545
bd265cd0
PA
75462014-02-26 Pedro Alves <palves@redhat.com>
7547
7548 * go32-nat.c (my_write_child): New function.
7549 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7550 (go32_xfer_partial): New function.
7551 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7552 Instead install a to_xfer_partial hook.
7553
9d46c4e5
PA
75542014-02-26 Pedro Alves <palves@redhat.com>
7555
7556 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7557 to_xfer_partial helper. Rewrite.
7558 (procfs_xfer_partial): New function.
7559 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7560 Install a to_xfer_partial hook.
7561
a1583b1f
PA
75622014-02-26 Pedro Alves <palves@redhat.com>
7563
7564 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7565 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7566 (m32r_xfer_partial): New function.
7567 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7568 Install a to_xfer_partial hook.
7569
6df1b29f
PA
75702014-02-26 Pedro Alves <palves@redhat.com>
7571
7572 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7573 helper.
7574 (mips_xfer_partial): New function.
7575 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7576 hook. Install a to_xfer_partial hook.
7577
dc53a7ad
JB
75782014-02-26 Joel Brobecker <brobecker@adacore.com>
7579
7580 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7581 * gdbtypes.c (create_array_type_with_stride): New function,
7582 renaming create_array_type, but with an added parameter
7583 called "bit_stride".
7584 (create_array_type): Re-implement using
7585 create_array_type_with_stride.
7586 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7587 and DW_AT_bit_stride attributes.
7588
12ab52e9
PA
75892014-02-26 Pedro Alves <palves@redhat.com>
7590
7591 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7592 task-specific breakpoints.
7593
d16461ae
PA
75942014-02-25 Pedro Alves <palves@redhat.com>
7595
7596 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7597 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7598
a8b16220
SS
75992014-02-25 Stan Shebs <stan@codesourcery.com>
7600
7601 * defs.h: Annotate comments for Doxygen.
7602
b9e795ee
TT
76032014-02-25 Tom Tromey <tromey@redhat.com>
7604
7605 * target.h (target_ignore): Don't declare.
7606 * target.c (target_ignore): Remove.
7607
849c862e
JK
76082014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7609
7610 PR gdb/16626
7611 * auto-load.c (auto_load_objfile_script_1): Change filename to
7612 debugfile.
7613
475109d8
JB
76142014-02-25 Joel Brobecker <brobecker@adacore.com>
7615
7616 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7617 documentation. Adjust prototype to match the target_ops
7618 to_xfer_partial method. Adjust implementation accordingly.
7619
e186c3bd
HZ
76202014-02-25 Hui Zhu <hui@codesourcery.com>
7621
7622 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7623 to_traceframe_info.
7624
6d451942
KB
76252014-02-25 Kevin Buettner <kevinb@redhat.com>
7626
041ab8b4 7627 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7628 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7629 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7630 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7631 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7632 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7633 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7634 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7635 New constants.
7636 (rl78_register_type): Use a data pointer type for SP and
7637 new pseudo registers mentioned above. Use a 16 bit integer
7638 type for all other register pairs.
7639 (rl78_register_name, rl78_g10_register_name): Update for
7640 new pseudo registers.
7641 (rl78_pseudo_register_read): Likewise.
7642 (rl78_pseudo_register_write): Likewise.
7643 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7644 to the newly added pseudo registers.
7645
eddf0bae
DE
76462014-02-24 Doug Evans <dje@google.com>
7647
7648 * value.c (record_latest_value): Fix comment.
7649 * printcmd.c (print_command_1): Remove code to handle -1 return from
7650 record_latest_value.
7651
e96027e0
PA
76522014-02-24 Pedro Alves <palves@redhat.com>
7653
7654 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7655 deprecated_xfer_memory hook.
7656 (procfs_xfer_partial): Call procfs_xfer_memory instead
7657 of the deprecated_xfer_memory target hook.
7658 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7659 helper.
7660
0837c976
YZ
76612014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7662
7663 * windows-nat.c (windows_xfer_shared_libraries): Return
7664 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7665 requested object is TARGET_OBJECT_LIBRARIES.
7666
bc113b4e
YQ
76672014-02-24 Yao Qi <yao@codesourcery.com>
7668
7669 * target.h (enum target_xfer_status)
7670 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7671 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7672 explicitly. New.
7673 * corefile.c (memory_error_message): User updated.
7674 * exec.c (section_table_read_available_memory): Likewise.
7675 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7676 * target.c (target_xfer_status_to_string): Likewise.
7677 (raw_memory_xfer_partial): Likewise.
7678 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7679 * valops.c (read_value_memory): Likewise.
7680 * exec.h: Update comments.
7681
01cb8804
YQ
76822014-02-24 Yao Qi <yao@codesourcery.com>
7683
7684 * target.c (target_xfer_status_to_string): Rename argument err
7685 to status.
7686 * target.h (target_xfer_status_to_string): Update declaration.
7687 Replace target_xfer_error_to_string with
7688 target_xfer_status_to_string in comment.
7689
93063aa6
YQ
76902014-02-24 Yao Qi <yao@codesourcery.com>
7691
7692 * mips-linux-nat.c (super_close): Update its type.
7693 (mips_linux_close): Pass 'self' to super_close.
7694
5c328c05
YQ
76952014-02-24 Yao Qi <yao@codesourcery.com>
7696
7697 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7698 * corefile.c (read_memory): Adjusted.
7699 * target.c (target_write_with_progress): Adjusted.
7700
f73023dd
YQ
77012014-02-23 Yao Qi <yao@codesourcery.com>
7702
7703 Revert two patches:
7704
7705 2013-10-25 Yao Qi <yao@codesourcery.com>
7706
7707 * remote.c (remote_traceframe_info): Return early if
7708 traceframe is not selected.
7709
7710 2013-07-19 Yao Qi <yao@codesourcery.com>
7711
7712 * target.c (update_current_target): Change the default action
7713 of 'to_traceframe_info' from tcomplain to return_zero.
7714 * target.h (struct target_ops) <to_traceframe_info>: Add more
7715 comments.
7716
5a2eb0ef
YQ
77172014-02-23 Yao Qi <yao@codesourcery.com>
7718
7719 * valops.c (read_value_memory): Rewrite it. Call
7720 target_xfer_partial in a loop.
7721 * exec.h (section_table_available_memory): Remove declaration.
7722 Move comments to ...
7723 * exec.c (section_table_available_memory): ... here. Make it
7724 static.
7725
1ee79381
YQ
77262014-02-23 Yao Qi <yao@codesourcery.com>
7727
7728 * exec.c (section_table_read_available_memory): New function.
7729 * exec.h (section_table_read_available_memory): Declare.
7730 * ctf.c (ctf_xfer_partial): Call
7731 section_table_read_available_memory.
7732 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7733
1ca49d37
YQ
77342014-02-23 Yao Qi <yao@codesourcery.com>
7735
7736 * ctf.c (ctf_xfer_partial): Move code to ...
7737 * exec.c (exec_read_partial_read_only): ... it. New function.
7738 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7739 * tracefile.c: Include "exec.h".
7740 * exec.h (exec_read_partial_read_only): Declare.
7741
a283690e
YQ
77422014-02-23 Yao Qi <yao@codesourcery.com>
7743
7744 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7745 (tfile_has_memory): Remove.
7746 (init_tfile_ops): Don't set fields to_has_all_memory and
7747 to_has_memory of tfile_ops.
7748 * tracefile.c (tracefile_has_all_memory): New function.
7749 (tracefile_has_memory): New function.
7750 (init_tracefile_ops): Initialize fields to_has_all_memory and
7751 to_has_memory of 'ops'.
7752
12e03cd0
YQ
77532014-02-23 Yao Qi <yao@codesourcery.com>
7754
7755 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7756 (ctf_thread_alive, ctf_get_trace_status): Remove.
7757 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7758 init_tracefile_ops.
7759 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7760 (tfile_has_stack, tfile_has_registers): Remove.
7761 (tfile_thread_alive): Remove.
7762 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7763 init_tracefile_ops.
7764 * tracefile.c (tracefile_has_stack): New function.
7765 (tracefile_has_registers): New function.
7766 (tracefile_thread_alive): New function.
7767 (tracefile_get_trace_status): New function.
7768 (init_tracefile_ops): New function.
7769 * tracefile.h (init_tracefile_ops): Declare.
7770
11395323
YQ
77712014-02-23 Yao Qi <yao@codesourcery.com>
7772
7773 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7774 (O_LARGEFILE): Likewise.
7775 (tfile_ops): Likewise.
7776 (TRACE_HEADER_SIZE): Likewise.
7777 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7778 (cur_data_size): Likewise.
7779 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7780 (tfile_close, tfile_files_info): Likewise.
7781 (tfile_get_trace_status): Likewise.
7782 (tfile_get_tracepoint_status): Likewise.
7783 (tfile_get_traceframe_address): Likewise.
7784 (tfile_trace_find, match_blocktype): Likewise.
7785 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7786 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7787 (tfile_get_trace_state_variable_value): Likewise.
7788 (tfile_has_all_memory, tfile_has_memory): Likewise.
7789 (tfile_has_stack, tfile_has_registers): Likewise.
7790 (tfile_thread_alive, build_traceframe_info): Likewise.
7791 (tfile_traceframe_info, init_tfile_ops): Likewise.
7792 (_initialize_tracepoint): Don't call init_tfile_ops
7793 and add_target_with_completer.
7794 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7795 exec.h, completer.h and filenames.h.
7796 (_initialize_tracefile_tfile): New function.
7797
7951c4eb
YQ
77982014-02-23 Yao Qi <yao@codesourcery.com>
7799
7800 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7801 tracefile-tfile.o.
7802 (HFILES_NO_SRCDIR): Add tracefile.h.
7803 * ctf.c: Include "tracefile.h".
7804 * tracefile.h: New file.
7805 * tracefile.c: New file
7806 * tracefile-tfile.c: New file.
7807 * tracepoint.c: Include "tracefile.h".
7808 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7809 (stop_reason_names): Add const.
7810 (trace_file_writer_xfree): Move it to tracefile.c.
7811 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7812 (trace_save_ctf): Likewise.
7813 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7814 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7815 (tfile_write_header, tfile_write_regblock_type): Likewise.
7816 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7817 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7818 (tfile_write_raw_data, tfile_end): Likewise.
7819 (tfile_trace_file_writer_new): Likewise.
7820 (free_uploaded_tp): Make it extern.
7821 (free_uploaded_tsv): Make it extern.
7822 (_initialize_tracepoint): Move code to register command 'tsave'
7823 to tracefile.c.
7824 * tracepoint.h (stop_reason_names): Declare.
7825 (struct trace_frame_write_ops): Move it to tracefile.h.
7826 (struct trace_file_write_ops): Likewise.
7827 (struct trace_file_writer): Likewise.
7828 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7829
184cd072
JK
78302014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 PR gdb/16594
7833 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7834 process name.
7835 (get_cores_used_by_process): New parameter num_cores, use it.
7836 (linux_xfer_osdata_processes): Pass num_cores to it.
7837 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7838 process name.
7839
c63528fc
AK
78402014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7841
7842 * target.c (memory_xfer_partial): Fix length arg in call to
7843 breakpoint_xfer_memory.
7844
d7b30f67
SDJ
78452014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7846
7847 PR tdep/16397
7848 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7849 number comes after the + or - signs. Adjust length of register
7850 name to be extracted.
7851
8838afaf
TT
78522014-02-20 Tom Tromey <tromey@redhat.com>
7853
7854 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7855 (ada_varobj_ops): Mark "extern".
7856
05227d14
TT
78572014-02-20 Tom Tromey <tromey@redhat.com>
7858
7859 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7860
1254eefc
DE
78612014-02-20 Doug Evans <xdje42@gmail.com>
7862
7863 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7864 All callers updated.
7865 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7866 All callers updated.
7867 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7868 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7869
adde2bff
DE
78702014-02-20 lin zuojian <manjian2006@gmail.com>
7871 Joel Brobecker <brobecker@adacore.com>
7872 Doug Evans <xdje42@gmail.com>
7873
7874 PR symtab/16581
7875 * dwarf2read.c (struct die_info): New member in_process.
7876 (reset_die_in_process): New function.
7877 (process_die): Set it at the start, reset when returning.
7878 (inherit_abstract_dies): Only call process_die if origin_child_die
7879 not already being processed.
7880
3be75f87
JB
78812014-02-20 Joel Brobecker <brobecker@adacore.com>
7882
7883 * windows-nat.c (handle_unload_dll): Add function documentation.
7884 (do_initial_windows_stuff): Add comment explaining why we wait
7885 until after inferior initialization has finished before
7886 processing all DLLs.
7887
47f7ffdb
JB
78882014-02-20 Joel Brobecker <brobecker@adacore.com>
7889
7890 * windows-nat.c (get_module_name): Delete.
7891 (windows_get_exec_module_filename): New function, mostly
7892 inspired from get_module_name.
7893 (windows_pid_to_exec_file): Replace call to get_module_name
7894 by call to windows_get_exec_module_filename.
7895
1cd9feab
JB
78962014-02-20 Joel Brobecker <brobecker@adacore.com>
7897
7898 * windows-nat.c (handle_load_dll): Rewrite this function's
7899 introductory comment. Remove code using get_module_name
7900 to get the DLL's name.
7901
ea39ad35
JB
79022014-02-20 Joel Brobecker <brobecker@adacore.com>
7903
7904 * windows-nat.c (get_windows_debug_event): Ignore
7905 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7906 if windows_initialization_done == 0.
7907 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7908 Adjust implementation to always load all DLLs.
7909 (do_initial_windows_stuff): Replace call to
7910 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7911
95060284
JB
79122014-02-20 Joel Brobecker <brobecker@adacore.com>
7913
7914 * windows-nat.c (_initialize_windows_nat): Deprecate the
7915 "dll-symbols" command. Turn the "add-shared-symbol-files"
7916 and "assf" aliases into commands, and deprecate them as well.
7917 * NEWS: Add entry explaining that "dll-symbols" and its two
7918 aliases are now deprecated.
7919
8d4fdb12
JB
79202014-02-20 Joel Brobecker <brobecker@adacore.com>
7921
7922 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7923 new-line in debug string. Remove trailing spaces.
7924
1b281443
SS
79252014-02-19 Stan Shebs <stan@codesourcery.com>
7926
7927 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7928
f7bd0f78
SC
79292014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7930
7931 * NEWS: Add entry for the new feature
7932 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7933 and class values.
7934
399ebc3d
SS
79352014-02-19 Stan Shebs <stan@codesourcery.com>
7936
7937 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7938
c658158d
PA
79392014-02-19 Pedro Alves <palves@redhat.com>
7940
7941 * common/ptid.h (struct ptid): Mention that process_stratum
7942 targets should prefer ptid.lwp.
7943
ba348170
PA
79442014-02-19 Pedro Alves <palves@redhat.com>
7945
7946 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7947 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7948 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7949 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7950 store remote thread ids rather than ptid.tid.
7951 (_initialize_remote): Adjust.
7952
ac01945b
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target.c (target_get_unwinder): Rewrite.
7956 (target_get_tailcall_unwinder): Rewrite.
7957 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7958 (record_btrace_to_get_tailcall_unwinder): New function.
7959 (init_record_btrace_ops): Update.
7960 * target.h (struct target_ops) <to_get_unwinder,
7961 to_get_tailcall_unwinder>: Now function pointers. Use
7962 TARGET_DEFAULT_RETURN.
7963
8476dc92
TT
79642014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7967 argument.
7968 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7969
c0eca49f
TT
79702014-02-19 Tom Tromey <tromey@redhat.com>
7971
7972 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7973 directly.
7974 * target-delegates.c: Rebuild.
7975 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7976 TARGET_DEFAULT_FUNC.
7977 * target.c (default_target_decr_pc_after_break): Rename from
7978 forward_target_decr_pc_after_break. Simplify.
7979 (target_decr_pc_after_break): Rely on delegation.
7980
596b6b39
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target.c (update_current_target): Do not INHERIT to_doc or
7984 to_magic. Do not de_fault to_open or to_close.
7985
b427c1bc
TT
79862014-02-19 Tom Tromey <tromey@redhat.com>
7987
7988 * gcore.h (objfile_find_memory_regions): Declare.
7989 * gcore.c (objfile_find_memory_regions): No longer static. Add
7990 "self" argument.
7991 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7992 * exec.c: Include gcore.h.
7993 (exec_set_find_memory_regions): Remove.
7994 (exec_find_memory_regions): Remove.
7995 (exec_do_find_memory_regions): Remove.
7996 (init_exec_ops): Update.
7997 * defs.h (exec_set_find_memory_regions): Remove.
7998
9b144037
TT
79992014-02-19 Tom Tromey <tromey@redhat.com>
8000
8001 * target-delegates.c: Rebuild.
8002 * target.h (struct target_ops) <to_extra_thread_info,
8003 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8004 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8005 not 0, in TARGET_DEFAULT_RETURN.
8006
555bbdeb
TT
80072014-02-19 Tom Tromey <tromey@redhat.com>
8008
8009 * target.c (complete_target_initialization): Remove casts. Use
8010 return_zero_has_execution.
8011 (return_zero): Add "ignore" argument.
8012 (return_zero_has_execution): New function.
8013 (init_dummy_target): Remove casts. Use
8014 return_zero_has_execution.
8015
be4ddd36
TT
80162014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target.c (update_current_target): Update comments. Do not
8019 INHERIT to_stratum.
8020
2117c711
TT
80212014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8024 needed.
8025 * corelow.c (core_read_description): Delegate when needed.
8026 * remote.c (remote_read_description): Delegate when needed.
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_read_description): Rewrite.
8029 * target.h (struct target_ops) <to_read_description>: Update
8030 comment. Use TARGET_DEFAULT_RETURN.
8031
e88ef65c
TT
80322014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target-delegates.c: Rebuild.
8035 * target.c (update_current_target): Don't inherit or default
8036 to_can_run.
8037 (find_default_run_target): Check against delegate_can_run.
8038 * target.h (struct target_ops) <to_can_run>: Use
8039 TARGET_DEFAULT_RETURN.
8040
86a0854a
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_disconnect): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_disconnect>: Use
8046 TARGET_DEFAULT_NORETURN.
8047
ee97f592
TT
80482014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * record.c (record_stop): Unconditionally delegate.
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_stop_recording): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_stop_recording>: Use
8054 TARGET_DEFAULT_IGNORE.
8055
6dc7fcf4
TT
80562014-02-19 Tom Tromey <tromey@redhat.com>
8057
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_enable_btrace): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_enable_btrace>: Use
8061 TARGET_DEFAULT_NORETURN.
8062
eb5b20d4
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_read_btrace): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_read_btrace>: Use
8068 TARGET_DEFAULT_NORETURN.
8069
9ace480d
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_teardown_btrace): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_teardown_btrace>: Use
8075 TARGET_DEFAULT_NORETURN.
8076
8dc292d3
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_disable_btrace): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_disable_btrace>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
58a5184e
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (default_search_memory): New function.
8088 (simple_search_memory): Update comment.
8089 (target_search_memory): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_search_memory>: Use
8091 TARGET_DEFAULT_FUNC.
8092
8de71aab
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * auxv.c (default_auxv_parse): No longer static.
8096 (target_auxv_parse): Unconditionally delegate.
8097 * auxv.h (default_auxv_parse): Declare.
8098 * target-delegates.c: Rebuild.
8099 * target.c: Include auxv.h.
8100 * target.h (struct target_ops) <to_auxv_parse>: Use
8101 TARGET_DEFAULT_FUNC.
8102
6b2c5a57
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * target-delegates.c: Rebuild.
8106 * target.c (target_memory_map): Unconditionally delegate.
8107 * target.h (struct target_ops) <to_memory_map>: Use
8108 TARGET_DEFAULT_RETURN.
8109
cbffc065
TT
81102014-02-19 Tom Tromey <tromey@redhat.com>
8111
8112 * target-delegates.c: Rebuild.
8113 * target.c (target_thread_alive): Unconditionally delegate.
8114 * target.h (struct target_ops) <to_thread_alive>: Use
8115 TARGET_DEFAULT_RETURN.
8116
f09e2107
TT
81172014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (target_save_record): Unconditionally delegate.
8121 * target.h (struct target_ops) <to_save_record>: Use
8122 TARGET_DEFAULT_NORETURN.
8123
07366925
TT
81242014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (target_delete_record): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_delete_record>: Use
8129 TARGET_DEFAULT_NORETURN.
8130
dd2e9d25
TT
81312014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (target_record_is_replaying): Unconditionally
8135 delegate.
8136 * target.h (struct target_ops) <to_record_is_replaying>: Use
8137 TARGET_DEFAULT_RETURN.
8138
671e76cc
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_goto_record_begin): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_goto_record_begin>: Use
8144 TARGET_DEFAULT_NORETURN.
8145
e9179bb3
TT
81462014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target-delegates.c: Rebuild.
8149 * target.c (target_goto_record_end): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_goto_record_end>: Use
8151 TARGET_DEFAULT_NORETURN.
8152
05969c84
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_goto_record): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_goto_record>: Use
8158 TARGET_DEFAULT_NORETURN.
8159
3679abfa
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_insn_history): Unconditionally delegate.
8164 * target.h (struct target_ops) <to_insn_history>: Use
8165 TARGET_DEFAULT_NORETURN.
8166
8444ab58
TT
81672014-02-19 Tom Tromey <tromey@redhat.com>
8168
8169 * target-delegates.c: Rebuild.
8170 * target.c (target_insn_history_from): Unconditionally delegate.
8171 * target.h (struct target_ops) <to_insn_history_from>: Use
8172 TARGET_DEFAULT_NORETURN.
8173
c29302cc
TT
81742014-02-19 Tom Tromey <tromey@redhat.com>
8175
8176 * target-delegates.c: Rebuild.
8177 * target.c (target_insn_history_range): Unconditionally delegate.
8178 * target.h (struct target_ops) <to_insn_history_range>: Use
8179 TARGET_DEFAULT_NORETURN.
8180
170049d4
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (target_call_history): Unconditionally delegate.
8185 * target.h (struct target_ops) <to_call_history>: Use
8186 TARGET_DEFAULT_NORETURN.
8187
16fc27d6
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (target_call_history_from): Unconditionally delegate.
8192 * target.h (struct target_ops) <to_call_history_from>: Use
8193 TARGET_DEFAULT_NORETURN.
8194
115d9817
TT
81952014-02-19 Tom Tromey <tromey@redhat.com>
8196
8197 * target-delegates.c: Rebuild.
8198 * target.c (target_call_history_range): Unconditionally delegate.
8199 * target.h (struct target_ops) <to_call_history_range>: Use
8200 TARGET_DEFAULT_NORETURN.
8201
eb276a6b
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_verify_memory): Unconditionally delegate.
8206 * target.h (struct target_ops) <to_verify_memory>: Use
8207 TARGET_DEFAULT_NORETURN.
8208
9e538d0d
TT
82092014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target-delegates.c: Rebuild.
8212 * target.c (target_core_of_thread): Unconditionally delegate.
8213 * target.h (struct target_ops) <to_core_of_thread>: Use
8214 TARGET_DEFAULT_RETURN.
8215
f6fb2925
TT
82162014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (target_flash_done): Unconditionally delegate.
8220 * target.h (struct target_ops) <to_flash_done>: Use
8221 TARGET_DEFAULT_NORETURN.
8222
e8a6c6ac
TT
82232014-02-19 Tom Tromey <tromey@redhat.com>
8224
8225 * target-delegates.c: Rebuild.
8226 * target.c (target_flash_erase): Unconditionally delegate.
8227 * target.h (struct target_ops) <to_flash_erase>: Use
8228 TARGET_DEFAULT_NORETURN.
8229
7e35c012
TT
82302014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target-delegates.c: Rebuild.
8233 * target.c (target_get_section_table): Unconditionally delegate.
8234 * target.h (struct target_ops) <to_get_section_table>: Use
8235 TARGET_DEFAULT_RETURN.
8236
770234d3
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (target_pid_to_str): Unconditionally delegate.
8241 (init_dummy_target): Don't initialize to_pid_to_str.
8242 (default_pid_to_str): Rename from dummy_pid_to_str.
8243 * target.h (struct target_ops) <to_pid_to_str>: Use
8244 TARGET_DEFAULT_FUNC.
8245
09b0dc2b
TT
82462014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_find_new_threads): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_find_new_threads>: Use
8251 TARGET_DEFAULT_RETURN.
8252
7d4f8efa
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_program_signals): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_program_signals>: Use
8258 TARGET_DEFAULT_IGNORE.
8259
035cad7f
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_pass_signals): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_pass_signals>: Use
8265 TARGET_DEFAULT_IGNORE.
8266
8d657035
TT
82672014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target-delegates.c: Rebuild.
8270 * target.c (default_mourn_inferior): New function.
8271 (target_mourn_inferior): Unconditionally delegate.
8272 * target.h (struct target_ops) <to_mourn_inferior>: Use
8273 TARGET_DEFAULT_FUNC.
8274
098dba18
TT
82752014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (default_follow_fork): New function.
8279 (target_follow_fork): Unconditionally delegate.
8280 * target.h (struct target_ops) <to_follow_fork>: Use
8281 TARGET_DEFAULT_FUNC.
8282
423a4807
TT
82832014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * target-delegates.c: Rebuild.
8286 * target.c (target_kill): Unconditionally delegate.
8287 * target.h (struct target_ops) <to_kill>: Use
8288 TARGET_DEFAULT_NORETURN.
8289
6c7e5e5c
TT
82902014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (target_masked_watch_num_registers): Unconditionally
8294 delegate.
8295 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8296 Use TARGET_DEFAULT_RETURN.
8297
8b1c364c
TT
82982014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (target_remove_mask_watchpoint): Unconditionally
8302 delegate.
8303 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8304 TARGET_DEFAULT_RETURN.
8305
cd4ae029
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (target_insert_mask_watchpoint): Unconditionally
8310 delegate.
8311 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8312 TARGET_DEFAULT_RETURN.
8313
a134316b
TT
83142014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (target_ranged_break_num_registers): Unconditionally
8318 delegate.
8319 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8320 Use TARGET_DEFAULT_RETURN.
8321
ad5989bd
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (target_fetch_registers): Unconditionally delegate.
8326 * target.h (struct target_ops) <to_fetch_registers>: Use
8327 TARGET_DEFAULT_NORETURN.
8328
46ee7e8d
TT
83292014-02-19 Tom Tromey <tromey@redhat.com>
8330
8331 * target-delegates.c: Rebuild.
8332 * target.c (update_current_target): Don't inherit or default
8333 to_stop.
8334 * target.h (struct target_ops) <to_stop>: Use
8335 TARGET_DEFAULT_IGNORE.
8336
843f59ed
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_can_run_breakpoint_commands.
8342 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8343 Use TARGET_DEFAULT_RETURN.
8344
ccfde2a0
TT
83452014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_supports_evaluation_of_breakpoint_conditions.
8350 * target.h (struct target_ops)
8351 <to_supports_evaluation_of_breakpoint_conditions>: Use
8352 TARGET_DEFAULT_RETURN.
8353
0de91722
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8358 to_augmented_libraries_svr4_read.
8359 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8360 Use TARGET_DEFAULT_RETURN.
8361
9a7d8b48
TT
83622014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_can_use_agent.
8367 * target.h (struct target_ops) <to_can_use_agent>: Use
8368 TARGET_DEFAULT_RETURN.
8369
d9db5b21
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_use_agent.
8375 * target.h (struct target_ops) <to_use_agent>: Use
8376 TARGET_DEFAULT_NORETURN.
8377
92155eeb
TT
83782014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_traceframe_info.
8383 (return_null): Remove.
8384 * target.h (struct target_ops) <to_traceframe_info>: Use
8385 TARGET_DEFAULT_RETURN.
8386
d6522a22
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_static_tracepoint_markers_by_strid.
8392 * target.h (struct target_ops)
8393 <to_static_tracepoint_markers_by_strid>: Use
8394 TARGET_DEFAULT_NORETURN.
8395
4c3e4425
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_static_tracepoint_marker_at.
8401 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8402 Use TARGET_DEFAULT_RETURN.
8403
dcd6917f
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_permissions.
8409 * target.h (struct target_ops) <to_set_permissions>: Use
8410 TARGET_DEFAULT_IGNORE.
8411
22bcceee
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_tib_address.
8417 * target.h (struct target_ops) <to_get_tib_address>: Use
8418 TARGET_DEFAULT_NORETURN.
8419
8586ccaa
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_set_trace_notes.
8425 * target.h (struct target_ops) <to_set_trace_notes>: Use
8426 TARGET_DEFAULT_RETURN.
8427
91df8d1d
TT
84282014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't initialize
8432 to_set_trace_buffer_size.
8433 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8434 TARGET_DEFAULT_IGNORE.
8435
8d526939
TT
84362014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_set_circular_trace_buffer.
8441 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8442 TARGET_DEFAULT_IGNORE.
8443
0bcfeddf
TT
84442014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_set_disconnected_tracing.
8449 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8450 TARGET_DEFAULT_IGNORE.
8451
9249843f
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_get_min_fast_tracepoint_insn_len.
8457 (return_minus_one): Remove.
8458 * target.h (struct target_ops)
8459 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8460
ace92e7d
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_get_raw_trace_data.
8466 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8467 TARGET_DEFAULT_NORETURN.
8468
08120467
TT
84692014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_upload_trace_state_variables.
8474 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8475 Use TARGET_DEFAULT_RETURN.
8476
1e949b00
TT
84772014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8481 to_upload_tracepoints.
8482 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8483 TARGET_DEFAULT_RETURN.
8484
a2e6c147
TT
84852014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8489 to_save_trace_data.
8490 * target.h (struct target_ops) <to_save_trace_data>: Use
8491 TARGET_DEFAULT_NORETURN.
8492
959bcd0b
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target-delegates.c: Rebuild.
8496 * target.c (update_current_target): Don't inherit or default
8497 to_get_trace_state_variable_value.
8498 * target.h (struct target_ops)
8499 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8500
afc94e66
TT
85012014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target-delegates.c: Rebuild.
8504 * target.c (update_current_target): Don't inherit or default
8505 to_trace_find.
8506 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8507
e51c07ea
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_trace_stop.
8513 * target.h (struct target_ops) <to_trace_stop>: Use
8514 TARGET_DEFAULT_NORETURN.
8515
6fea14cd
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_get_tracepoint_status.
8521 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8522 TARGET_DEFAULT_NORETURN.
8523
4072d4ff
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_get_trace_status.
8529 * target.h (struct target_ops) <to_get_trace_status>: Use
8530 TARGET_DEFAULT_RETURN.
8531
25da2e80
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_trace_start.
8537 * target.h (struct target_ops) <to_trace_start>: Use
8538 TARGET_DEFAULT_NORETURN.
8539
86dd181d
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_trace_set_readonly_regions.
8545 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8546 Use TARGET_DEFAULT_NORETURN.
8547
05c41993
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_disable_tracepoint.
8553 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
151f70f1
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_enable_tracepoint.
8561 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8562 TARGET_DEFAULT_NORETURN.
8563
94eb98b9
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_download_trace_state_variable.
8569 * target.h (struct target_ops) <to_download_trace_state_variable>:
8570 Use TARGET_DEFAULT_NORETURN.
8571
719acc4a
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_can_download_tracepoint.
8577 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8578 TARGET_DEFAULT_RETURN.
8579
9a980a22
TT
85802014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_download_tracepoint.
8585 * target.h (struct target_ops) <to_download_tracepoint>: Use
8586 TARGET_DEFAULT_NORETURN.
8587
5536135b
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_trace_init.
8593 * target.h (struct target_ops) <to_trace_init>: Use
8594 TARGET_DEFAULT_RETURN.
8595
9409d39e
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_supports_string_tracing.
8601 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8602 TARGET_DEFAULT_RETURN.
8603
aab1b22d
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_supports_enable_disable_tracepoint.
8609 * target.h (struct target_ops)
8610 <to_supports_enable_disable_tracepoint>: Use
8611 TARGET_DEFAULT_RETURN.
8612
a7304748
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_supports_multi_process.
8618 * target.h (struct target_ops) <to_supports_multi_process>: Use
8619 TARGET_DEFAULT_RETURN.
8620
4229b31d
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_get_ada_task_ptid.
8626 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8627 TARGET_DEFAULT_FUNC.
8628
43eba180
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_thread_architecture.
8634 * target.h (struct target_ops) <to_thread_architecture>: Use
8635 TARGET_DEFAULT_FUNC.
8636
fe31bf5b
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_execution_direction.
8642 * target.h (struct target_ops) <to_execution_direction>: Use
8643 TARGET_DEFAULT_FUNC.
8644
53e1cfc7
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_can_execute_reverse.
8650 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8651 TARGET_DEFAULT_RETURN.
8652 (target_can_execute_reverse): Unconditionally delegate.
8653
9bb9d61d
TT
86542014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_goto_bookmark.
8659 (dummy_goto_bookmark): Remove.
8660 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8661 * target.h (struct target_ops) <to_goto_bookmark>: Use
8662 TARGET_DEFAULT_NORETURN.
8663
3dbafbbb
TT
86642014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (update_current_target): Don't inherit or default
8668 to_get_bookmark.
8669 (dummy_get_bookmark): Remove.
8670 (init_dummy_target): Don't inherit or default to_get_bookmark.
8671 * target.h (struct target_ops) <to_get_bookmark>: Use
8672 TARGET_DEFAULT_NORETURN
8673
16f796b1
TT
86742014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_make_corefile_notes.
8679 (init_dummy_target): Don't initialize to_make_corefile_notes.
8680 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8681 TARGET_DEFAULT_FUNC.
8682
0b5a2719
TT
86832014-02-19 Tom Tromey <tromey@redhat.com>
8684
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_find_memory_regions.
8688 (init_dummy_target): Don't initialize to_find_memory_regions.
8689 * target.h (struct target_ops) <to_find_memory_regions>: Use
8690 TARGET_DEFAULT_FUNC.
8691
d9cb0195
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_log_command.
8697 * target.h (struct target_ops) <to_log_command>: Use
8698 TARGET_DEFAULT_IGNORE.
8699 (target_log_command): Unconditionally delegate.
8700
830ca330
TT
87012014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_pid_to_exec_file.
8706 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8707 TARGET_DEFAULT_RETURN.
8708
825828fc
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_thread_name.
8714 (target_thread_name): Unconditionally delegate.
8715 * target.h (struct target_ops) <to_thread_name>: Use
8716 TARGET_DEFAULT_RETURN.
8717
4a7e6dda
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_extra_thread_info.
8723 * target.h (struct target_ops) <to_extra_thread_info>: Use
8724 TARGET_DEFAULT_RETURN.
8725
0db88c1d
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_has_exited.
8731 * target.h (struct target_ops) <to_has_exited>: Use
8732 TARGET_DEFAULT_RETURN..
8733
6a9fa051
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_set_syscall_catchpoint.
8739 (return_one): Remove.
8740 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8742
62f64d7a
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_exec_catchpoint.
8748 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8750
cda0f38c
TT
87512014-01-08 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_insert_exec_catchpoint.
8756 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8757 TARGET_DEFAULT_RETURN.
8758
95c3375e
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_remove_vfork_catchpoint.
8764 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8765 TARGET_DEFAULT_RETURN.
8766
7e18a8dc
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_insert_vfork_catchpoint.
8772 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8773 TARGET_DEFAULT_RETURN.
8774
e1a21fb7
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_remove_fork_catchpoint.
8780 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8781 TARGET_DEFAULT_RETURN.
8782
5958ebeb
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_insert_fork_catchpoint.
8788 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8789 TARGET_DEFAULT_RETURN.
8790
340ba4bf
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_post_startup_inferior.
8796 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8797 TARGET_DEFAULT_IGNORE.
8798
7634da87
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_load.
8804 * target.h (struct target_ops) <to_load>: Use
8805 TARGET_DEFAULT_NORETURN.
8806
e19e919f
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_info.
8812 * target.h (struct target_ops) <to_terminal_info>: Use
8813 TARGET_DEFAULT_FUNC.
8814
c6ea8f79
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_terminal_save_ours.
8820 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8821 TARGET_DEFAULT_IGNORE.
8822
e4a733f1
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_terminal_ours.
8828 * target.h (struct target_ops) <to_terminal_ours>: Use
8829 TARGET_DEFAULT_IGNORE.
8830
74fcbef9
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_terminal_ours_for_output.
8836 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8837 TARGET_DEFAULT_IGNORE.
8838
ddeaacc9
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_terminal_inferior.
8844 * target.h (struct target_ops) <to_terminal_inferior>: Use
8845 TARGET_DEFAULT_IGNORE.
8846
0343661d
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_terminal_init.
8852 * target.h (struct target_ops) <to_terminal_init>: Use
8853 TARGET_DEFAULT_IGNORE.
8854
77cdffe9
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_can_accel_watchpoint_condition.
8860 * target.h (struct target_ops)
8861 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8862
d03655e4
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_region_ok_for_hw_watchpoint.
8868 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8869 Use TARGET_DEFAULT_FUNC.
8870
65f160a9
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_watchpoint_addr_within_range.
8876 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8877 Use TARGET_DEFAULT_FUNC.
8878
61dd109f
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_remove_watchpoint.
8884 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8885 TARGET_DEFAULT_NORETURN.
8886
016facd4
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_insert_watchpoint.
8892 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8893 TARGET_DEFAULT_RETURN.
8894
418dabac
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_remove_hw_breakpoint.
8900 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8901 TARGET_DEFAULT_RETURN.
8902
61b371f9
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_insert_hw_breakpoint.
8908 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8909 TARGET_DEFAULT_RETURN.
8910
52b51d06
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_can_use_hw_breakpoint.
8916 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8917 TARGET_DEFAULT_RETURN.
8918
f86e59b2
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_files_info.
8924 * target.h (struct target_ops) <to_files_info>: Use
8925 TARGET_DEFAULT_IGNORE.
8926
6c628163
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_store.
8932 * target.h (struct target_ops) <to_store>: Use
8933 TARGET_DEFAULT_NORETURN.
8934
bebd3233
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_post_attach.
8940 * target.h (struct target_ops) <to_post_attach>: Use
8941 TARGET_DEFAULT_IGNORE.
8942
a53f3625
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_rcmd.
8948 (default_rcmd): New function.
8949 (do_monitor_command): Unconditionally delegate.
8950 * target.h (struct target_ops) <to_rmcd>: Use
8951 TARGET_DEFAULT_FUNC.
8952
e9a29200
TT
89532014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target-delegates.c: Rebuild.
8956 * target.c (init_dummy_target): Don't initialize to_attach.
8957 (target_attach): Unconditionally delegate.
8958 * target.h (struct target_ops) <to_attach>: Use
8959 TARGET_DEFAULT_FUNC.
8960
09da0d0a
TT
89612014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * target-delegates.c: Rebuild.
8964 * target.c (target_detach): Unconditionally delegate.
8965 (init_dummy_target): Don't initialize to_detach.
8966 * target.h (struct target_ops) <to_detach>: Use
8967 TARGET_DEFAULT_IGNORE.
8968
5436ff03
TT
89692014-02-19 Tom Tromey <tromey@redhat.com>
8970
8971 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8972 Add argument.
8973 (target_augmented_libraries_svr4_read): Add argument.
8974 * target.c (update_current_target): Update.
8975 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8976 argument.
8977
f0d960ea
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target.h (struct target_ops) <to_call_history_range>: Add
8981 argument.
8982 * target.c (target_call_history_range): Add argument.
8983 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8984 argument.
8985 (record_btrace_call_history_from): Update.
8986
ec0aea04
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_call_history_from>: Add
8990 argument.
8991 * target.c (target_call_history_from): Add argument.
8992 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8993 argument.
8994
5df2fcba
TT
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_call_history>: Add argument.
8998 * target.c (target_call_history): Add argument.
8999 * record-btrace.c (record_btrace_call_history): Add 'self'
9000 argument.
9001
4e99c6b7
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target.h (struct target_ops) <to_insn_history_range>: Add
9005 argument.
9006 * target.c (target_insn_history_range): Add argument.
9007 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9008 argument.
9009 (record_btrace_insn_history_from): Update.
9010
9abc3ff3
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_insn_history_from>: Add
9014 argument.
9015 * target.c (target_insn_history_from): Add argument.
9016 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9017 argument.
9018
7a6c5609
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_insn_history>: Add argument.
9022 * target.c (target_insn_history): Add argument.
9023 * record-btrace.c (record_btrace_insn_history): Add 'self'
9024 argument.
9025
606183ac
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_goto_record>: Add argument.
9029 * target.c (target_goto_record): Add argument.
9030 * record-full.c (record_full_goto): Add 'self' argument.
9031 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9032
307a1b91
TT
90332014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9036 * target.c (target_goto_record_end): Add argument.
9037 * record-full.c (record_full_goto_end): Add 'self' argument.
9038 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9039
08475817
TT
90402014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_goto_record_begin>: Add
9043 argument.
9044 * target.c (target_goto_record_begin): Add argument.
9045 * record-full.c (record_full_goto_begin): Add 'self' argument.
9046 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9047 argument.
9048
1c63c994
TT
90492014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_record_is_replaying>: Add
9052 argument.
9053 * target.c (target_record_is_replaying): Add argument.
9054 * record-full.c (record_full_is_replaying): Add 'self' argument.
9055 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9056 argument.
9057 (record_btrace_xfer_partial, record_btrace_store_registers)
9058 (record_btrace_prepare_to_store, record_btrace_resume)
9059 (record_btrace_wait, record_btrace_decr_pc_after_break)
9060 (record_btrace_find_new_threads, record_btrace_thread_alive):
9061 Update.
9062
d1b55219
TT
90632014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target.h (struct target_ops) <to_delete_record>: Add argument.
9066 * target.c (target_delete_record): Add argument.
9067 * record-full.c (record_full_delete): Add 'self' argument.
9068
1390f529
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops) <to_save_record>: Add argument.
9072 * target.c (target_save_record): Add argument.
9073 * record-full.c (record_full_save): Add 'self' argument.
9074 (record_full_save): Add 'self' argument.
9075
630d6a4a
TT
90762014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target.h (struct target_ops) <to_info_record>: Add argument.
9079 * target.c (target_info_record): Add argument.
9080 * record.c (info_record_command): Add argument.
9081 * record-full.c (record_full_info): Add 'self' argument.
9082 * record-btrace.c (record_btrace_info): Add 'self' argument.
9083
c6cd7c02
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9087 * target.c (target_stop_recording): Add argument.
9088 * record.c (record_stop): Add argument.
9089 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9090 argument.
9091
39c49f83
TT
90922014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9095 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9096 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9097 argument.
9098 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9099 (_initialize_amd64_linux_nat): Use it.
9100 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9101 (_initialize_i386_linux_nat): Use it.
9102
1777056d
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9106 * target.c (target_teardown_btrace): Add argument.
9107 * remote.c (remote_teardown_btrace): Add 'self' argument.
9108 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9109 argument.
9110 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9111 argument.
9112
25e95349
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9116 * target.c (target_disable_btrace): Add argument.
9117 * remote.c (remote_disable_btrace): Add 'self' argument.
9118 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9119 argument.
9120 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9121 argument.
9122
e3c49f88
TT
91232014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9126 * target.c (target_enable_btrace): Add argument.
9127 * remote.c (remote_enable_btrace): Add 'self' argument.
9128 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9129 argument.
9130 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9131 argument.
9132
fe38f897
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9136 (target_can_use_agent): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_can_use_agent): Add 'self' argument.
9139 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9140
2c152180
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_use_agent>: Add argument.
9144 (target_use_agent): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_use_agent): Add 'self' argument.
9147 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9148
a893e81f
TT
91492014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9152 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9153 (target_traceframe_info): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_traceframe_info): Add 'self' argument.
9156 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9157
c686c57f
TT
91582014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target.h (target_static_tracepoint_markers_by_strid): Add
9161 argument.
9162 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9163 'self' argument.
9164 * target.c (update_current_target): Update.
9165 * remote.c (struct target_ops)
9166 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9167 * linux-nat.c (struct target_ops)
9168 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9169
61fc905d
TT
91702014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9173 Add argument.
9174 (target_static_tracepoint_marker_at): Add argument.
9175 * target.c (update_current_target): Update.
9176 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9177 argument.
9178
c378d69d
TT
91792014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9182 (target_set_permissions): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_set_permissions): Add 'self' argument.
9185 (remote_start_remote): Update.
9186
bd7ae0f5
TT
91872014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9190 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9191 (target_get_tib_address): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_get_tib_address): Add 'self' argument.
9194
d9e68a2c
TT
91952014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9198 (target_set_trace_notes): Add argument.
9199 * target.c (update_current_target): Update.
9200 * remote.c (remote_set_trace_notes): Add 'self' argument.
9201
4da384be
TT
92022014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9205 argument.
9206 (target_set_trace_buffer_size): Add argument.
9207 * target.c (update_current_target): Update.
9208 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9209
736d5b1f
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9213 argument.
9214 (target_set_circular_trace_buffer): Add argument.
9215 * target.c (update_current_target): Update.
9216 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9217 argument.
9218
37b25738
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9222 argument.
9223 (target_set_disconnected_tracing): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9226
0e67620a
TT
92272014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target.h (struct target_ops)
9230 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9231 (target_get_min_fast_tracepoint_insn_len): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9234 argument.
9235
88ee6f45
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9239 argument.
9240 (target_get_raw_trace_data): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9243
181e3713
TT
92442014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9247 Add argument.
9248 (target_upload_trace_state_variables): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_upload_trace_state_variables): Add 'self'
9251 argument.
9252 (remote_start_remote): Update.
9253
ab6617cc
TT
92542014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9257 argument.
9258 (target_upload_tracepoints): Add argument.
9259 * target.c (update_current_target): Update.
9260 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9261 (remote_start_remote): Update.
9262
dc3decaf
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9266 (target_save_trace_data): Add argument.
9267 * target.c (update_current_target): Update.
9268 * remote.c (remote_save_trace_data): Add 'self' argument.
9269
4011015b
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9273 argument.
9274 * target.h (struct target_ops)
9275 <to_get_trace_state_variable_value>: Add argument.
9276 (target_get_trace_state_variable_value): Add argument.
9277 * target.c (update_current_target): Update.
9278 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9279 argument.
9280 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9281
bd4c6793
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9285 * target.h (struct target_ops) <to_trace_find>: Add argument.
9286 (target_trace_find): Add argument.
9287 * target.c (update_current_target): Update.
9288 * remote.c (remote_trace_find): Add 'self' argument.
9289 * ctf.c (ctf_trace_find): Add 'self' argument.
9290
74499f1b
TT
92912014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9294 (target_trace_stop): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_trace_stop): Add 'self' argument.
9297
db90e85c
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9301 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9302 argument.
9303 (target_get_tracepoint_status): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9306
8bd200f1
TT
93072014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9310 * target.h (struct target_ops) <to_get_trace_status>: Add
9311 argument.
9312 (target_get_trace_status): Add argument.
9313 * target.c (update_current_target): Update.
9314 * remote.c (remote_get_trace_status): Add 'self' argument.
9315 (remote_start_remote, remote_can_download_tracepoint): Update.
9316 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9317
e2d1aae3
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target.h (struct target_ops) <to_trace_start>: Add argument.
9321 (target_trace_start): Add argument.
9322 * target.c (update_current_target): Update.
9323 * remote.c (remote_trace_start): Add 'self' argument.
9324
583f9a86
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9328 Add argument.
9329 (target_trace_set_readonly_regions): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9332 argument.
9333
780b049c
TT
93342014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9337 argument.
9338 (target_disable_tracepoint): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9341
46670d57
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9345 argument.
9346 (target_enable_tracepoint): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9349
559d2b81
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_download_trace_state_variable>:
9353 Add argument.
9354 (target_download_trace_state_variable): Add argument.
9355 * target.c (update_current_target): Update.
9356 * remote.c (remote_download_trace_state_variable): Add 'self'
9357 argument.
9358
a52a8357
TT
93592014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9362 argument.
9363 (target_can_download_tracepoint): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9366
548f7808
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target.h (struct target_ops) <to_download_tracepoint>: Add
9370 argument.
9371 (target_download_tracepoint): Add argument.
9372 * target.c (update_current_target): Update.
9373 * remote.c (remote_download_tracepoint): Add 'self' argument.
9374
ecae04e1
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_trace_init>: Add argument.
9378 (target_trace_init): Add argument.
9379 * target.c (update_current_target): Update.
9380 * remote.c (remote_trace_init): Add 'self' argument.
9381
fab5aa7c
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9385 * target.c (target_fileio_readlink): Add argument.
9386 * remote.c (remote_hostio_readlink): Add 'self' argument.
9387 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9388
dbbca37d
TT
93892014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9392 * target.c (target_fileio_unlink): Add argument.
9393 * remote.c (remote_hostio_unlink): Add 'self' argument.
9394 (remote_file_delete): Update.
9395 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9396
df39ea25
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9400 * target.c (target_fileio_close): Add argument.
9401 * remote.c (remote_hostio_close): Add 'self' argument.
9402 (remote_hostio_close_cleanup): Update.
9403 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9404 Update.
9405 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9406
a3be983c
TT
94072014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9410 * target.c (target_fileio_pread): Add argument.
9411 * remote.c (remote_hostio_pread): Add 'self' argument.
9412 (remote_bfd_iovec_pread, remote_file_get): Update.
9413 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9414
0d866f62
TT
94152014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9418 * target.c (target_fileio_pwrite): Add argument.
9419 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9420 (remote_file_put): Update.
9421 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9422
cd897586
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9426 * target.c (target_fileio_open): Add argument.
9427 * remote.c (remote_hostio_open): Add 'self' argument.
9428 (remote_bfd_iovec_open): Add 'self' argument.
9429 (remote_file_put): Add 'self' argument.
9430 (remote_file_get): Add 'self' argument.
9431 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9432
78eff0ec
TT
94332014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9436 Add argument.
9437 (target_can_run_breakpoint_commands): Add argument.
9438 * target.c (update_current_target): Update.
9439 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9440 argument.
9441 (remote_insert_breakpoint): Add 'self' argument.
9442 (remote_insert_hw_breakpoint): Add 'self' argument.
9443 (remote_can_run_breakpoint_commands): Add 'self' argument.
9444
efcc2da7
TT
94452014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops)
9448 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9449 (target_supports_evaluation_of_breakpoint_conditions): Add
9450 argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9453 argument.
9454 (remote_insert_breakpoint): Add 'self' argument.
9455 (remote_insert_hw_breakpoint): Add 'self' argument.
9456 (remote_supports_cond_breakpoints): Add 'self' argument.
9457
6de37a3a
TT
94582014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9461 argument.
9462 (target_supports_string_tracing): Add argument.
9463 * target.c (update_current_target): Update.
9464 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9465
2bfc0540
TT
94662014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops)
9469 <to_supports_disable_randomization>: Add argument.
9470 * target.c (find_default_supports_disable_randomization): Add
9471 argument.
9472 (target_supports_disable_randomization): Add argument.
9473 (find_default_supports_disable_randomization): Add 'self'
9474 argument.
9475 * remote.c (extended_remote_supports_disable_randomization): Add
9476 'self' argument.
9477 (remote_supports_disable_randomization): Add 'self' argument.
9478 (extended_remote_create_inferior): Update.
9479 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9480 'self' argument.
9481
7d178d6a
TT
94822014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target.h (struct target_ops)
9485 <to_supports_enable_disable_tracepoint>: Add argument.
9486 (target_supports_enable_disable_tracepoint): Add argument.
9487 * target.c (update_current_target): Update.
9488 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9489 argument.
9490
86ce2668
TT
94912014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target.h (struct target_ops) <to_supports_multi_process>: Add
9494 argument.
9495 (target_supports_multi_process): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_supports_multi_process): Add 'self' argument.
9498 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9499 argument.
9500 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9501 argument.
9502
4c612759
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target.h (struct target_ops) <to_execution_direction>: Add
9506 argument.
9507 (target_execution_direction): Add argument.
9508 * target.c (default_execution_direction): Add 'self' argument.
9509 * record-full.c (record_full_execution_direction): Add 'self'
9510 argument.
9511
19db3e69
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9515 argument.
9516 (target_can_execute_reverse): Add argument.
9517 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9518 * record-full.c (record_full_can_execute_reverse): Add 'self'
9519 argument.
9520 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9521 argument.
9522
1e6b91a4
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9526 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9527 argument.
9528 (target_get_ada_task_ptid): Add argument.
9529 * target.c (update_current_target): Update.
9530 (default_get_ada_task_ptid): Add 'self' argument.
9531 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9532 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9533 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9534 argument.
9535 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9536 argument.
9537 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9538 argument.
9539 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9540 argument.
9541 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9542 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9543 argument.
9544
3c80fb48
TT
95452014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9548 (target_goto_bookmark): Add argument.
9549 * target.c (dummy_goto_bookmark): Add 'self' argument.
9550 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9551
dd0e2830
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9555 (target_get_bookmark): Add argument.
9556 * target.c (dummy_get_bookmark): Add 'self' argument.
9557 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9558
fc6691b2
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9562 argument.
9563 (target_make_corefile_notes): Add argument.
9564 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9565 * procfs.c (procfs_make_note_section): Add 'self' argument.
9566 (procfs_make_note_section): Add 'self' argument.
9567 (procfs_make_note_section): Add 'self' argument.
9568 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9569 argument.
9570 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9571 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9572 * exec.c (exec_make_note_section): Add 'self' argument.
9573 (exec_make_note_section): Add 'self' argument.
9574
2e73927c
TT
95752014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target.h (struct target_ops) <to_find_memory_regions>: Add
9578 argument.
9579 (target_find_memory_regions): Add argument.
9580 * target.c (dummy_find_memory_regions): Add 'self' argument.
9581 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9582 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9583 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9584 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9585 * exec. (exec_do_find_memory_regions): New global.
9586 (exec_set_find_memory_regions): Rewrite.
9587 (exec_find_memory_regions): New function.
9588 (init_exec_ops): Use exec_find_memory_regions.
9589
2a9a2795
TT
95902014-02-19 Tom Tromey <tromey@redhat.com>
9591
9592 * target.h (struct target_ops) <to_supports_non_stop>: Add
9593 argument.
9594 * target.c (find_default_supports_non_stop): Add argument.
9595 (target_supports_non_stop): Add argument.
9596 (find_default_supports_non_stop): Add 'self' argument.
9597 * remote.c (remote_supports_non_stop): Add 'self' argument.
9598 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9599
4ab76ea3
TT
96002014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target.h (struct target_ops) <to_log_command>: Add argument.
9603 (target_log_command): Add argument.
9604 * serial.h (serial_log_command): Add 'self' argument.
9605 * serial.c (serial_log_command): Add 'self' argument.
9606
8dd27370
TT
96072014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9610 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9611 argument.
9612 (target_pid_to_exec_file): Add argument.
9613 * target.c (debug_to_pid_to_exec_file): Add argument.
9614 (update_current_target): Update.
9615 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9616 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9617 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9618 (linux_handle_extended_wait): Update.
9619 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9620 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9621 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9622 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9623
1aac633b
TT
96242014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_rcmd>: Add argument.
9627 (target_rcmd): Add argument.
9628 * target.c (debug_to_rcmd): Add argument.
9629 (update_current_target, do_monitor_command): Update.
9630 * remote.c (remote_rcmd): Add 'self' argument.
9631 * monitor.c (monitor_rcmd): Add 'self' argument.
9632
1eab8a48
TT
96332014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * windows-nat.c (windows_stop): Add 'self' argument.
9636 * target.h (struct target_ops) <to_stop>: Add argument.
9637 * target.c (target_stop): Add argument.
9638 (debug_to_stop): Add argument.
9639 (update_current_target): Update.
9640 * remote.c (remote_stop): Add 'self' argument.
9641 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9642 (gdbsim_cntrl_c): Update.
9643 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9644 * procfs.c (procfs_stop): Add 'self' argument.
9645 * nto-procfs.c (procfs_stop): Add 'self' argument.
9646 * monitor.c (monitor_stop): Add 'self' argument.
9647 (monitor_open): Update.
9648 * linux-nat.c (linux_nat_stop): Add argument.
9649 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9650 * gnu-nat.c (gnu_stop): Add 'self' argument.
9651 * darwin-nat.c (darwin_stop): Add 'self' argument.
9652
503a628d
TT
96532014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_thread_name>: Add argument.
9656 * target.c (target_thread_name): Add argument.
9657 (update_current_target): Update.
9658 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9659
c15906d8
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_extra_thread_info>: Add
9663 argument.
9664 (target_extra_thread_info): Add argument.
9665 * target.c (update_current_target): Update.
9666 * remote.c (remote_threads_extra_info): Add 'self' argument.
9667 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9668 argument.
9669 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9670 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9671 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9672 argument.
9673 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9674 argument.
9675 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9676 argument.
9677 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9678 argument.
9679
daf5e9b6
TT
96802014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target.h (struct target_ops) <to_program_signals>: Add argument.
9683 * target.c (target_program_signals): Add argument.
9684 * remote.c (remote_program_signals): Add 'self' argument.
9685
94bedb42
TT
96862014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9689 * target.c (target_pass_signals): Add argument.
9690 * remote.c (remote_pass_signals): Add 'self' argument.
9691 (remote_start_remote): Update.
9692 * procfs.c (procfs_pass_signals): Add 'self' argument.
9693 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9694 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9695 (linux_nat_create_inferior, linux_nat_attach): Update.
9696
da82bd6b
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * windows-nat.c (windows_can_run): Add 'self' argument.
9700 * target.h (struct target_ops) <to_can_run>: Add argument.
9701 (target_can_run): Add argument.
9702 * target.c (debug_to_can_run): Add argument.
9703 (update_current_target): Update.
9704 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9705 * inf-child.c (inf_child_can_run): Add 'self' argument.
9706 * go32-nat.c (go32_can_run): Add 'self' argument.
9707
d796e1d6
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target.h (struct target_ops) <to_has_exited>: Add argument.
9711 (target_has_exited): Add argument.
9712 * target.c (debug_to_has_exited): Add argument.
9713 (update_current_target): Update.
9714
ff214e67
TT
97152014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9718 argument.
9719 (target_set_syscall_catchpoint): Add argument.
9720 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9721 argument.
9722 * target.c (update_current_target): Update.
9723
758e29d2
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9727 argument.
9728 (target_remove_exec_catchpoint): Add argument.
9729 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9730 (update_current_target): Update.
9731 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9732 argument.
9733
ba025e51
TT
97342014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9737 argument.
9738 (target_insert_exec_catchpoint): Add argument.
9739 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9740 (update_current_target): Update.
9741 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9742 argument.
9743
e98cf0cd
TT
97442014-02-19 Tom Tromey <tromey@redhat.com>
9745
9746 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9747 argument.
9748 (target_remove_vfork_catchpoint): Add argument.
9749 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9750 (update_current_target): Update.
9751 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9752 argument.
9753
3ecc7da0
TT
97542014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9757 argument.
9758 (target_insert_vfork_catchpoint): Add argument.
9759 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9760 (update_current_target): Update.
9761 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9762 argument.
9763
973fc227
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9767 argument.
9768 (target_remove_fork_catchpoint): Add argument.
9769 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9770 (update_current_target): Update.
9771 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9772 argument.
9773
a863b201
TT
97742014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9777 argument.
9778 (target_insert_fork_catchpoint): Add argument.
9779 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9780 (update_current_target): Update.
9781 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9782 argument.
9783
2e97a79e
TT
97842014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9787 argument.
9788 (target_post_startup_inferior): Add argument.
9789 * target.c (debug_to_post_startup_inferior): Add argument.
9790 (update_current_target): Update.
9791 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9792 argument.
9793 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9794 argument.
9795 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9796 argument.
9797 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9798 argument.
9799 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9800 'self' argument.
9801 (super_post_startup_inferior): Likewise.
9802 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9803 'self' argument.
9804 (super_post_startup_inferior): Likewise.
9805 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9806 Add 'self' argument.
9807 (super_post_startup_inferior): Likewise.
9808
71a9f134
TT
98092014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * target.h (struct target_ops) <to_load>: Add argument.
9812 * target.c (target_load): Add argument.
9813 (debug_to_load): Add argument.
9814 (update_current_target): Update.
9815 * remote.c (remote_load): Add 'self' argument.
9816 * remote-sim.c (gdbsim_load): Add 'self' argument.
9817 * remote-mips.c (mips_load): Add 'self' argument.
9818 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9819 * monitor.c (monitor_load): Add 'self' argument.
9820 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9821
0a4f40a2
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9825 (target_terminal_info): Add argument.
9826 * target.c (debug_to_terminal_info): Add argument.
9827 (default_terminal_info): Likewise.
9828 * inflow.c (child_terminal_info): Add 'self' argument.
9829 * inferior.h (child_terminal_info): Add 'self' argument.
9830 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9831
ae3bd431
TT
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9835 argument.
9836 (target_terminal_save_ours): Add argument.
9837 * target.c (debug_to_terminal_save_ours): Add argument.
9838 (update_current_target): Update.
9839 * inflow.c (terminal_save_ours): Add 'self' argument.
9840 * inferior.h (terminal_save_ours): Add 'self' argument.
9841
e3594fd1
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9845 (target_terminal_ours): Add argument.
9846 * target.c (debug_to_terminal_ours): Add argument.
9847 (update_current_target): Update.
9848 * remote.c (remote_terminal_ours): Add 'self' argument.
9849 (remote_close): Update.
9850 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9851 * inflow.c (terminal_ours): Add 'self' argument.
9852 * inferior.h (terminal_ours): Add 'self' argument.
9853 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9854
2e1e1a19
TT
98552014-02-19 Pedro Alves <palves@redhat.com>
9856 Tom Tromey <tromey@redhat.com>
9857
9858 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9859 argument.
9860 (target_terminal_ours_for_output): Add argument.
9861 * target.c (debug_to_terminal_ours_for_output): Add argument.
9862 (update_current_target): Update.
9863 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9864 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9865 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9866
d2f640d4
TT
98672014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target.h (struct target_ops) <to_terminal_inferior>: Add
9870 argument.
9871 * target.c (target_terminal_inferior): Add argument.
9872 (update_current_target): Update.
9873 * remote.c (remote_terminal_inferior): Add 'self' argument.
9874 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9875 * inflow.c (terminal_inferior): Add 'self' argument.
9876 * inferior.h (terminal_inferior): Add 'self' argument.
9877 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9878 (go32_terminal_inferior): Add 'self' argument.
9879
c42bf286
TT
98802014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9883 (target_terminal_init): Add argument.
9884 * target.c (debug_to_terminal_init): Add argument.
9885 (update_current_target): Update.
9886 * inflow.c (terminal_init_inferior): Add 'self' argument.
9887 * inferior.h (terminal_init_inferior): Add 'self' argument.
9888 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9889 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9890
c3a5ff89
TT
98912014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target.h (struct target_ops)
9894 <to_can_accel_watchpoint_condition>: Add argument.
9895 (target_can_accel_watchpoint_condition): Add argument.
9896 * target.c (debug_to_can_accel_watchpoint_condition): Add
9897 argument.
9898 (update_current_target): Update.
9899 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9900 'self' argument.
9901
31568a15
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9905 Add argument.
9906 (target_region_ok_for_hw_watchpoint): Add argument.
9907 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9908 (default_region_ok_for_hw_watchpoint): Add argument.
9909 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9910 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9911 argument.
9912 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9913 argument.
9914 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9915 argument.
9916 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9917 'self' argument.
9918 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9919 'self' argument.
9920 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9921 'self' argument.
9922 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9923 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9924 'self' argument.
9925 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9926 Add 'self' argument.
9927
7bb99c53
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9931 argument.
9932 (target_insert_watchpoint): Add argument.
9933 * target.c (debug_to_insert_watchpoint): Add argument.
9934 (update_current_target): Update.
9935 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9936 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9937 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9938 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9939 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9940 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9941 argument.
9942 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9943 (procfs_insert_hw_watchpoint): Add 'self' argument.
9944 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9945 argument.
9946 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9947 argument.
9948 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9949 argument.
9950 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9951 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9952 argument.
9953 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9954 'self' argument.
9955
11b5219a
TT
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9959 argument.
9960 (target_remove_watchpoint): Add argument.
9961 * target.c (debug_to_remove_watchpoint): Add argument.
9962 (update_current_target): Update.
9963 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9964 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9965 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9966 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9967 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9968 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9969 argument.
9970 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9971 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9972 argument.
9973 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9974 argument.
9975 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9976 argument.
9977 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9978 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9979 argument.
9980 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9981 'self' argument.
9982
a64dc96c
TT
99832014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9986 argument.
9987 (target_remove_hw_breakpoint): Add argument.
9988 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9989 (update_current_target): Update.
9990 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9991 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9992 argument.
9993 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9994 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9995 argument.
9996 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9997 'self' argument.
9998
23a26771
TT
99992014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10002 argument.
10003 (target_insert_hw_breakpoint): Add argument.
10004 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10005 (update_current_target): Update.
10006 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10007 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10008 argument.
10009 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10010 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10011 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10012 argument.
10013 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10014 'self' argument.
10015
5461485a
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10019 argument.
10020 (target_can_use_hardware_watchpoint): Add argument.
10021 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10022 (update_current_target): Update.
10023 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10024 argument.
10025 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10026 argument.
10027 * remote.c (remote_check_watch_resources): Add 'self' argument.
10028 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10029 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10030 argument.
10031 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10032 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10033 argument.
10034 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10035 argument.
10036 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10037 argument.
10038 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10039 argument.
10040 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10041 argument.
10042 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10043 argument.
10044 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10045 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10046 argument.
10047 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10048 'self' argument.
10049
f045800c
TT
100502014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.h (struct target_ops) <to_post_attach>: Add argument.
10053 (target_post_attach): Add argument.
10054 * target.c (debug_to_post_attach): Add argument.
10055 (update_current_target): Update.
10056 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10057 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10058 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10059 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10060 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10061
de90e03d
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * windows-nat.c (windows_close): Add 'self' argument.
10065 * tracepoint.c (tfile_close): Add 'self' argument.
10066 * target.h (struct target_ops) <to_close>: Add argument.
10067 * target.c (target_close): Add argument.
10068 (update_current_target): Update.
10069 * remote.c (remote_close): Add 'self' argument.
10070 * remote-sim.c (gdbsim_close): Add 'self' argument.
10071 * remote-mips.c (mips_close): Add 'self' argument.
10072 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10073 * record-full.c (record_full_close): Add 'self' argument.
10074 * record-btrace.c (record_btrace_close): Add 'self' argument.
10075 * monitor.h (monitor_close): Add 'self' argument.
10076 * monitor.c (monitor_close): Add 'self' argument.
10077 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10078 * linux-nat.c (linux_nat_close): Add argument.
10079 * go32-nat.c (go32_close): Add 'self' argument.
10080 * exec.c (exec_close_1): Add 'self' argument.
10081 * ctf.c (ctf_close): Add 'self' argument.
10082 * corelow.c (core_close): Add 'self' argument.
10083 (core_close_cleanup): Update.
10084 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10085 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10086
9dd130a0
TT
100872014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * remote.c (remote_load): New function.
10090 (init_remote_ops): Use it.
10091
46917d26
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10095 argument.
10096 * common/linux-btrace.h (linux_supports_btrace): Update.
10097 * remote.c (remote_supports_btrace): Add "self" argument.
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_supports_btrace): Remove.
10100 * target.h (struct target_ops) <to_supports_btrace>: Add
10101 target_ops argument.
10102 (target_supports_btrace): New define.
10103
6b84065d
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * record-full.c (record_full_beneath_to_resume_ops)
10107 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10108 (record_full_beneath_to_wait)
10109 (record_full_beneath_to_store_registers_ops)
10110 (record_full_beneath_to_store_registers)
10111 (record_full_beneath_to_xfer_partial_ops)
10112 (record_full_beneath_to_xfer_partial)
10113 (record_full_beneath_to_insert_breakpoint_ops)
10114 (record_full_beneath_to_insert_breakpoint)
10115 (record_full_beneath_to_remove_breakpoint_ops)
10116 (record_full_beneath_to_remove_breakpoint)
10117 (record_full_beneath_to_stopped_by_watchpoint)
10118 (record_full_beneath_to_stopped_data_address)
10119 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10120 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10121 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10122 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10123 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10124 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10125 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10126 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10127 (record_full_resume, record_full_wait_1)
10128 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10129 (record_full_store_registers, record_full_xfer_partial)
10130 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10131 (record_full_async, record_full_core_xfer_partial): Use target
10132 delegation.
10133 * target-delegates.c: Rebuild.
10134 * target.c (current_xfer_partial): Remove.
10135 (update_current_target): Do not INHERIT or de_fault
10136 to_insert_breakpoint, to_remove_breakpoint,
10137 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10138 to_is_async_p, to_async. Do not set to_xfer_partial field.
10139 (default_xfer_partial): Simplify.
10140 (current_xfer_partial): Remove.
10141 (target_wait, target_resume): Simplify.
10142 (find_default_can_async_p, find_default_is_async_p): Update.
10143 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10144 to_xfer_partial, to_stopped_by_watchpoint,
10145 to_stopped_data_address.
10146 (target_store_registers): Simplify.
10147 (forward_target_remove_breakpoint)
10148 (forward_target_insert_breakpoint): Remove.
10149 (target_remove_breakpoint, target_insert_breakpoint)
10150 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10151 * target.h (struct target_ops) <to_resume, to_wait,
10152 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10153 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10154 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10155 markup.
10156 (forward_target_remove_breakpoint)
10157 (forward_target_insert_breakpoint): Remove.
10158 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10159 directly.
10160 (record_btrace_insert_breakpoint): Delegate directly.
10161
1101cb7b
TT
101622014-02-19 Tom Tromey <tromey@redhat.com>
10163
10164 PR build/7701:
10165 * target-delegates.c: New file.
10166 * target.c: Include target-delegates.c.
10167 (init_dummy_target): Call install_dummy_methods.
10168 (complete_target_initialization): Call install_delegators.
10169 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10170 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10171 * make-target-delegates: New file.
10172
8b06beed
TT
101732014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * record.c (find_record_target): Use find_target_at.
10176 * target.c (find_target_at): New function.
10177 * target.h (find_target_at): Declare.
10178
6a109b6b
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10182 Add 'ops' argument.
10183 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10184 'ops' argument.
10185 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10186 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10187 'ops' argument.
10188 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10189 argument.
10190 * linux-nat.c (save_sigtrap): Update.
10191 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10192 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10193 (linux_nat_close): Update.
10194 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10195 argument.
10196 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10197 argument.
10198 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10199 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10200 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10201 (tmp_to_async): Add 'ops' argument.
10202 (record_full_stopped_by_watchpoint, record_full_async)
10203 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10204 argument.
10205 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10206 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10207 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10208 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10209 (remote_is_async_p, remote_async): Add 'ops' argument.
10210 (remote_stopped_data_address): Update.
10211 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10212 * target.c (update_current_target)
10213 (find_default_can_async_p, find_default_is_async_p): Update.
10214 (init_dummy_target): Update.
10215 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10216 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10217 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10218 (target_can_async_p, target_is_async_p, target_async)
10219 (target_stopped_by_watchpoint): Update.
10220
e095146b
YQ
102212014-02-19 Yao Qi <yao@codesourcery.com>
10222
10223 PR gdb/16220
10224 * gdbarch.sh: Remove startup_gdbarch.
10225 * gdbarch.c: Regenerated.
10226 * gdbarch.h: Likewise.
10227
bc3c6b36
KB
102282014-02-17 Kevin Buettner <kevinb@redhat.com>
10229
10230 * rl78-tdep.c (rl78_g10_register_name): New function.
10231 (rl78_return_value): Add g10 support.
10232 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10233 g10.
10234
98dc0167 102352014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10236
10237 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10238 (SUBDIR_GUILE_SRCS): Ditto.
10239 (scm-gsmob.o): Ditto.
10240
842c05cd
YQ
102412014-02-17 Yao Qi <yao@codesourcery.com>
10242
10243 * gnu-nat.c (ILL_RPC): Declare defined function.
10244
25c0bd04
YQ
102452014-02-17 Yao Qi <yao@codesourcery.com>
10246
10247 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10248 mach_msg_type_number_t.
10249 (gnu_write_inferior): Likewise.
10250
a9a758e3
YQ
102512014-02-17 Yao Qi <yao@codesourcery.com>
10252
10253 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10254 in format string.
10255 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10256 (inf_validate_procs, inf_signal): Likewise.
10257 (S_exception_raise_request): Likewise.
10258 (do_mach_notify_dead_name): Likewise.
10259 (steal_exc_port): Likewise.
10260 (gnu_read_inferior): Change 'copy_count''s type to
10261 mach_msg_type_number_t.
10262 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10263 format string.
10264
bae8023e
TS
102652014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10266
c82f56d9
TS
10267 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10268 flag. Adjust all users; in particular...
10269 (gnu_wait): ..., don't decrement its value in here...
10270 (gnu_create_inferior): ..., and instead set the flag in here,
10271 around the startup_inferior call, and call that one with
10272 START_INFERIOR_TRAPS_EXPECTED.
10273
3398af6a
TS
10274 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10275 (ILL_RPC): ... new macro.
10276 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10277 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10278 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10279 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10280 functions with ILL_RPC macro.
10281 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10282 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10283 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10284 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10285 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10286 (S_proc_getlogin_reply, S_proc_getsid_reply)
10287 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10288 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10289 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10290 (S_proc_getnports_reply, S_proc_is_important_reply)
10291 (S_proc_get_code_reply): New stub functions, generated with
10292 ILL_RPC macro.
10293
d47642c9
TS
10294 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10295 collected the type check structures.
10296
bae8023e
TS
10297 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10298
8a55ffb0
DE
102992014-02-14 Doug Evans <dje@google.com>
10300
10301 * target.c (target_write_partial): Fix result type.
10302
c2853f3d
JM
103032014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10304
10305 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10306 the proper offsets to access fpregset_t.
10307
ac61d2db
SA
103082014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10309
10310 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10311 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10312 * h8300-tdep.c (setmachinelist): Remove global.
10313 * hppa-tdep.c (hppa_sigtramp): Remove global.
10314 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10315 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10316 * ravenscar-thread.c (update_target_observer): Remove global.
10317 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10318
9d2d0b8b
TT
103192014-02-12 Tom Tromey <tromey@redhat.com>
10320
10321 * common/rsp-low.c: Update comments.
10322 * common/rsp-low.h: Update comments.
10323
a7191e8b
TT
103242014-02-12 Tom Tromey <tromey@redhat.com>
10325
10326 * common/rsp-low.c (convert_ascii_to_int): Remove.
10327 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10328
ff0e980e
TT
103292014-02-12 Tom Tromey <tromey@redhat.com>
10330
10331 * common/rsp-low.h (unhexify): Don't declare.
10332 * common/rsp-low.c (unhexify): Remove.
10333
e9371aff
TT
103342014-02-12 Tom Tromey <tromey@redhat.com>
10335
10336 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10337 * common/rsp-low.c (convert_int_to_ascii): Remove.
10338
971dc0b8
TT
103392014-02-12 Tom Tromey <tromey@redhat.com>
10340
10341 * common/rsp-low.h (hexify): Don't declare.
10342 * common/rsp-low.c (hexify): Remove.
10343
0a822afb
TT
103442014-02-12 Tom Tromey <tromey@redhat.com>
10345
10346 * common/rsp-low.c (hexify): Never take strlen of argument.
10347
9f1b45b0
TT
103482014-02-12 Tom Tromey <tromey@redhat.com>
10349
10350 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10351 * remote.c (extended_remote_run, remote_rcmd)
10352 (remote_download_trace_state_variable, remote_save_trace_data)
10353 (remote_set_trace_notes): Update.
10354 * tracepoint.c (encode_source_string, tfile_write_status)
10355 (tfile_write_uploaded_tsv): Update.
10356
9c3d6531
TT
103572014-02-12 Tom Tromey <tromey@redhat.com>
10358
10359 * tracepoint.c: Include rsp-low.h.
10360 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10361 * remote.c: Include rsp-low.h.
10362 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10363 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10364 (remote_unescape_input): Move to common/rsp-low.c.
10365 * common/rsp-low.h: New file.
10366 * common/rsp-low.c: New file.
10367 * Makefile.in (SFILES): Add common/rsp-low.c.
10368 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10369 (COMMON_OBS): Add rsp-low.o.
10370 (rsp-low.o): New target.
10371
01fd3ea5
TT
103722014-02-12 Tom Tromey <tromey@redhat.com>
10373
10374 * utils.h: Include print-utils.h.
10375 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10376 (int_string, core_addr_to_string, core_addr_to_string_nz)
10377 (hex_string, hex_string_custom): Don't declare.
10378 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10379 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10380 (hex_string_custom, int_string, core_addr_to_string)
10381 (core_addr_to_string_nz, host_address_to_string): Move to
10382 common/print-utils.c.
10383 * common/print-utils.h: New file.
10384 * common/print-utils.c: New file
10385 * Makefile.in (SFILES): Add common/print-utils.c.
10386 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10387 (COMMON_OBS): Add print-utils.o.
10388 (print-utils.o): New target.
10389
9fb50108
TT
103902014-02-12 Tom Tromey <tromey@redhat.com>
10391
10392 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10393
0548b5db
MK
103942014-02-12 Mark Kettenis <kettenis@gnu.org>
10395
10396 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10397
493443a4
MK
103982014-02-12 Mark Kettenis <kettenis@gnu.org>
10399
10400 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10401 if a PT_IO ptrace request returns sucessfully but indicates that 0
10402 bytes were transferred.
10403
706d0883
PA
104042014-02-12 Pedro Alves <palves@redhat.com>
10405 Kevin Buettner <kevinb@redhat.com>
10406
10407 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10408 TYPE_INSTANCE_FLAG_CODE_SPACE.
10409
5caa2f0b
PA
104102014-02-12 Pedro Alves <palves@redhat.com>
10411
10412 * h8300-tdep.c (pseudo_from_raw_register)
10413 (raw_from_pseudo_register): New functions.
10414 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10415 them.
10416
76fd5f74
PA
104172014-02-12 Pedro Alves <palves@redhat.com>
10418
10419 * h8300-tdep.c (h8300_register_sim_regno): New function.
10420 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10421 gdbarch_register_sim_regno hook.
10422
8f008406
SA
104232014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10424
10425 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10426
195abc10
SA
104272014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10428
10429 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10430
93ffa5b9
MK
104312014-02-12 Mark Kettenis <kettenis@gnu.org>
10432
10433 * obsd-tdep.h (obsd_init_abi): New prototype.
10434 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10435 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10436 (obsd_init_abi): New functions.
10437 * i386obsd-tdep.c: Include "obsd-tdep.h".
10438 (i386obsd_init_abi): Call obsd_init_abi.
10439 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10440 (amd64obsd_init_abi): Call obsd_init_abi.
10441 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10442 obsd-tdep.c to gdb_target_obs.
10443
49caec94
JM
104442014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10445
10446 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10447 double float arguments to 16-byte in the argument slots.
10448
e1402065
DE
104492014-02-11 Doug Evans <xdje42@gmail.com>
10450
10451 * configure.ac: Don't crash if pkg-config is not found and guile
10452 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10453 in guile checks.
10454 * configure: Regenerate.
10455
edcc890f
YQ
104562014-02-11 Yao Qi <yao@codesourcery.com>
10457
10458 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10459 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10460 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10461 * gnu-nat.c (gnu_xfer_memory): Likewise.
10462 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10464 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10465 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10466
9b409511
YQ
104672014-02-11 Yao Qi <yao@codesourcery.com>
10468
10469 * target.h (enum target_xfer_error): Rename to ...
10470 (enum target_xfer_status): ... it. New. All users updated.
10471 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10472 New.
10473 (TARGET_XFER_STATUS_ERROR_P): New macro.
10474 (target_xfer_error_to_string): Remove declaration.
10475 (target_xfer_status_to_string): Declare.
10476 (target_xfer_partial_ftype): Adjust it.
10477 (struct target_ops) <to_xfer_partial>: Return
10478 target_xfer_status. Add argument xfered_len. Update
10479 comments.
10480 * target.c (target_xfer_error_to_string): Rename to ...
10481 (target_xfer_status_to_string): ... it. New. All callers
10482 updated.
10483 (target_read_live_memory): Likewise. Call target_xfer_partial
10484 instead of target_read.
10485 (memory_xfer_live_readonly_partial): Return
10486 target_xfer_status. Add argument xfered_len.
10487 (raw_memory_xfer_partial): Likewise.
10488 (memory_xfer_partial_1): Likewise.
10489 (memory_xfer_partial): Likewise.
10490 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10491 properly. Update debug message.
10492 (default_xfer_partial, current_xfer_partial): Likewise.
10493 (target_write_partial): Likewise.
10494 (target_read_partial): Likewise. All callers updated.
10495 (read_whatever_is_readable): Likewise.
10496 (target_write_with_progress): Likewise.
10497 (target_read_alloc_1): Likewise.
10498
10499 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10500 * auxv.c (procfs_xfer_auxv): Likewise.
10501 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10502 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10503 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10504 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10505 * corefile.c (read_memory): Adjust.
10506 * corelow.c (core_xfer_partial): Likewise.
10507 * ctf.c (ctf_xfer_partial): Likewise.
10508 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10509 updated.
10510 (darwin_xfer_partial): Likewise.
10511 * exec.c (section_table_xfer_memory_partial): Likewise. All
10512 callers updated.
10513 (exec_xfer_partial): Likewise.
10514 * exec.h (section_table_xfer_memory_partial): Update
10515 declaration.
10516 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10517 negative.
10518 (gnu_xfer_partial): Likewise.
10519 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10520 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10521 (ia64_hpux_xfer_solib_got): Likewise.
10522 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10523 type of 'partial_len' to ULONGEST.
10524 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10525 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10526 (linux_nat_xfer_partial): Likewise.
10527 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10528 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10529 * monitor.c (monitor_xfer_memory): Likewise.
10530 (monitor_xfer_partial): Likewise.
10531 * procfs.c (procfs_xfer_partial): Likewise.
10532 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10533 * record-full.c (record_full_xfer_partial): Likewise.
10534 (record_full_core_xfer_partial): Likewise.
10535 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10536 (gdbsim_xfer_partial): Likewise.
10537 * remote.c (remote_write_bytes_aux): Likewise. All callers
10538 updated.
10539 (remote_write_bytes, remote_read_bytes): Likewise. All
10540 callers updated.
10541 (remote_flash_erase): Likewise. All callers updated.
10542 (remote_write_qxfer): Likewise. All callers updated.
10543 (remote_read_qxfer): Likewise. All callers updated.
10544 (remote_xfer_partial): Likewise.
10545 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10546 (rs6000_xfer_shared_libraries): Likewise.
10547 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10548 (sol_thread_xfer_partial): Likewise.
10549 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10550 (sparc_xfer_partial): Likewise.
10551 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10552 updated.
10553 (spu_xfer_partial): Likewise.
10554 * spu-multiarch.c (spu_xfer_partial): Likewise.
10555 * tracepoint.c (tfile_xfer_partial): Likewise.
10556 * windows-nat.c (windows_xfer_memory): Likewise.
10557 (windows_xfer_shared_libraries): Likewise.
10558 (windows_xfer_partial): Likewise.
10559 * valprint.c: Replace 'target_xfer_error' with
10560 'target_xfer_status' in comments.
10561
a8e63083
JB
105622014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10563
10564 Checked in by Joel Brobecker <brobecker@adacore.com>.
10565 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10566
e86b67d3
JB
105672014-02-11 Joel Brobecker <brobecker@adacore.com>
10568
10569 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10570 function parameters.
10571
4b7d1f7f
WN
105722014-02-10 Will Newton <will.newton@linaro.org>
10573
10574 * elfread.c (elf_rel_plt_read): Look for a .got section if
10575 looking up .got.plt fails.
10576 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10577 on address passed to elf_gnu_ifunc_record_cache.
10578 (elf_gnu_ifunc_resolve_addr): Likewise.
10579 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10580
961842b2
JM
105812014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10582
10583 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10584 (X_RETTURN): New macro.
10585 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10586
10587 * sparc64-tdep.c (sparc64_init_abi): Hook
10588 sparc_in_function_epilogue_p.
10589
3f03e7b1
GB
105902014-02-10 Gary Benson <gbenson@redhat.com>
10591
10592 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10593 Rename name_matcher to symbol_matcher.
10594
96f861ef
GB
105952014-02-10 Gary Benson <gbenson@redhat.com>
10596
10597 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10598 Use expand_symtabs_file_matcher_ftype and
10599 expand_symtabs_symbol_matcher_ftype.
10600
ee01b665
JB
106012014-02-10 Joel Brobecker <brobecker@adacore.com>
10602
10603 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10604 (struct ada_symbol_cache): New.
10605 (ada_free_symbol_cache): Forward declare.
10606 (struct ada_pspace_data): New.
10607 (ada_pspace_data_handle): New static global.
10608 (get_ada_pspace_data, ada_pspace_data_cleanup)
10609 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10610 (cache_space, cache): Delete, now folded inside struct
10611 ada_pspace_data.
10612 (ada_get_symbol_cache): New function.
10613 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10614 implementation.
10615 (_initialize_ada_language): Remove initialization of cache_space.
10616 Move call to observer_attach_inferior_exit up, grouping it
10617 with the other observer registrations inside this function.
10618 Rename command to be more general. Add call to
10619 register_program_space_data_with_cleanup.
10620
143adbbf
JB
106212014-02-10 Joel Brobecker <brobecker@adacore.com>
10622
10623 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10624 ada_new_objfile_observer.
10625 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10626 (_initialize_tasks): Update uses of ada_new_objfile_observer
10627 and ada_tasks_normal_stop_observer.
10628
aa4fb036
JB
106292014-02-10 Joel Brobecker <brobecker@adacore.com>
10630
10631 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10632 returned by the 'Length attribute to integer.
10633
9dee8cc6
JB
106342014-02-10 Joel Brobecker <brobecker@adacore.com>
10635
10636 * ada-lang.c (_initialize_ada_language): Initialize
10637 cache_space obstack.
10638
3d9434b5
JB
106392014-02-10 Joel Brobecker <brobecker@adacore.com>
10640
10641 * ada-lang.c (HASH_SIZE): New macro.
10642 (struct cache_entry): New type.
10643 (cache_space, cache): New static globals.
10644 (ada_clear_symbol_cache, find_entry): New functions.
10645 (lookup_cached_symbol, cache_symbol): Implement.
10646 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10647 (_initialize_ada_language): Attach ada_new_objfile_observer
10648 and ada_free_objfile_observer.
10649
f0c5f9b2
JB
106502014-02-10 Joel Brobecker <brobecker@adacore.com>
10651
10652 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10653 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10654 struct block * parameter.
10655 (ada_lookup_symbol_list_worker): Constify local variable "block".
10656 Remove cast which is no longer necessary.
10657
ed3ef339
DE
106582014-02-10 Doug Evans <xdje42@gmail.com>
10659
10660 Add Guile as an extension language.
10661 * NEWS: Mention Guile scripting.
10662 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10663 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10664 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10665 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10666 (CLIBS): Add GUILE_LIBS.
10667 (install-guile): New rule.
10668 (guile.o): New rule.
10669 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10670 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10671 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10672 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10673 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10674 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10675 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10676 * configure.ac: New option --with-guile.
10677 * configure: Regenerate.
10678 * config.in: Regenerate.
10679 * auto-load.c: Remove #include "python/python.h". Add #include
10680 "gdb/section-scripts.h".
10681 (source_section_scripts): Handle Guile scripts.
10682 (_initialize_auto_load): Add name of Guile objfile script to
10683 scripts-directory help text.
10684 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10685 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10686 (struct breakpoint): New member scm_bp_object.
10687 * defs.h (enum command_control_type): New value guile_control.
10688 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10689 "extension.h".
10690 (show_user): Update comment.
10691 (_initialize_cli_cmds): Update help text for "show user". Update help
10692 text for max-user-call-depth.
10693 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10694 "extension.h".
10695 (multi_line_command_p): Add guile_control.
10696 (print_command_lines): Handle guile_control.
10697 (execute_control_command, recurse_read_control_structure): Ditto.
10698 (process_next_line): Recognize "guile" commands.
10699 * disasm.c (gdb_disassemble_info): Make non-static.
10700 * disasm.h: #include "dis-asm.h".
10701 (struct gdbarch): Add forward decl.
10702 (gdb_disassemble_info): Declare.
10703 * extension.c: #include "guile/guile.h".
10704 (extension_languages): Add guile.
10705 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10706 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10707 * gdbtypes.c (get_unsigned_type_max): New function.
10708 (get_signed_type_minmax): New function.
10709 * gdbtypes.h (get_unsigned_type_max): Declare.
10710 (get_signed_type_minmax): Declare.
10711 * guile/README: New file.
10712 * guile/guile-internal.h: New file.
10713 * guile/guile.c: New file.
10714 * guile/guile.h: New file.
10715 * guile/scm-arch.c: New file.
10716 * guile/scm-auto-load.c: New file.
10717 * guile/scm-block.c: New file.
10718 * guile/scm-breakpoint.c: New file.
10719 * guile/scm-disasm.c: New file.
10720 * guile/scm-exception.c: New file.
10721 * guile/scm-frame.c: New file.
10722 * guile/scm-gsmob.c: New file.
10723 * guile/scm-iterator.c: New file.
10724 * guile/scm-lazy-string.c: New file.
10725 * guile/scm-math.c: New file.
10726 * guile/scm-objfile.c: New file.
10727 * guile/scm-ports.c: New file.
10728 * guile/scm-pretty-print.c: New file.
10729 * guile/scm-safe-call.c: New file.
10730 * guile/scm-string.c: New file.
10731 * guile/scm-symbol.c: New file.
10732 * guile/scm-symtab.c: New file.
10733 * guile/scm-type.c: New file.
10734 * guile/scm-utils.c: New file.
10735 * guile/scm-value.c: New file.
10736 * guile/lib/gdb.scm: New file.
10737 * guile/lib/gdb/boot.scm: New file.
10738 * guile/lib/gdb/experimental.scm: New file.
10739 * guile/lib/gdb/init.scm: New file.
10740 * guile/lib/gdb/iterator.scm: New file.
10741 * guile/lib/gdb/printing.scm: New file.
10742 * guile/lib/gdb/types.scm: New file.
10743 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10744 (VPATH): Add $(GUILE_SRCDIR).
10745 (GUILE_DIR): New variable.
10746 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10747 (all): Add stamp-guile dependency.
10748 (stamp-guile): New rule.
10749 (clean-guile, install-guile, uninstall-guile): New rules.
10750 (install-only): Add install-guile dependency.
10751 (uninstall): Add uninstall-guile dependency.
10752 (clean): Add clean-guile dependency.
10753
ac020ec5
DE
107542014-02-09 Doug Evans <xdje42@gmail.com>
10755
10756 Revert this patch (which I approved, mea culpa).
10757
10758 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10759
10760 * Makefile.in (all-lib): Remove.
10761 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10762
2a081c59
JK
107632014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10764
10765 Fix Python stack corruption.
10766 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10767 gdb_py_longest.
10768
0a6bd22d
MK
107692014-02-08 Mark Kettenis <kettenis@gnu.org>
10770
10771 * Makefile.in (all-lib): Remove.
10772 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10773
1a860409
DE
107742014-02-07 Doug Evans <dje@google.com>
10775
10776 * extension-priv.h (extension_language_script_ops): Add comment.
10777 (extension_language_ops): Add comment.
caf5a491 10778 (active_ext_lang_state): Fix typo in comment.
1a860409 10779
d137e6dc
PA
107802014-02-07 Pedro Alves <palves@redhat.com>
10781
0dcb32c3 10782 PR breakpoints/16292
d137e6dc
PA
10783 * infrun.c (handle_signal_stop) <signal arrives while stepping
10784 over a breakpoint>: Switch back to the stepping thread.
10785
ce6d0892
YQ
107862014-02-07 Yao Qi <yao@codesourcery.com>
10787
10788 * target.c (target_xfer_partial): Return zero if LEN is zero.
10789
2ed4b548
YQ
107902014-02-07 Yao Qi <yao@codesourcery.com>
10791
10792 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10793 (ld_so_xfer_auxv): Likewise.
10794 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10795 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10796 * corelow.c (core_xfer_partial): Likewise.
10797 * ctf.c (ctf_xfer_partial): Likewise.
10798 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10799 (darwin_xfer_partial): Likewise.
10800 * exec.c (exec_xfer_partial): Likewise.
10801 * gnu-nat.c (gnu_xfer_partial): Likewise.
10802 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10803 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10804 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10805 * linux-nat.c (linux_xfer_siginfo): Likewise.
10806 (linux_proc_xfer_spu): Likewise.
10807 * procfs.c (procfs_xfer_partial): Likewise.
10808 * record-full.c (record_full_xfer_partial): Likewise.
10809 (record_full_core_xfer_partial): Likewise.
10810 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10811 * remote.c (remote_write_qxfer): Likewise.
10812 (remote_write_qxfer, remote_read_qxfer): Likewise.
10813 (remote_xfer_partial): Likewise.
10814 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10815 (rs6000_xfer_shared_libraries): Likewise.
10816 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10817 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10818 (spu_xfer_partial): Likewise.
10819 * target.c (memory_xfer_partial_1): Likewise.
10820 * tracepoint.c (tfile_xfer_partial): Likewise.
10821 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10822 (windows_xfer_partial): Likewise.
10823
c09f20e4
YQ
108242014-02-07 Yao Qi <yao@codesourcery.com>
10825
10826 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10827 comments.
10828 (core_xfer_shared_libraries_aix): Likewise.
10829 * gdbarch.c, gdbarch.h: Regenerated.
10830 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10831 ULONGEST. Change 'len_avail' type to ULONGEST.
10832 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10833 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10834 declaration.
10835 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10836
8635b3bf
YQ
108372014-02-07 Yao Qi <yao@codesourcery.com>
10838
10839 * corefile.c (memory_error): Get 'exception' from ERR and pass
10840 'exception' to throw_error.
10841
6dddc817
DE
108422014-02-06 Doug Evans <xdje42@gmail.com>
10843
10844 * configure.ac (libpython checking): Remove all but python.o from
10845 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10846 * configure: Regenerate.
10847
10848 * Makefile.in (SFILES): Add extension.c.
10849 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10850 (COMMON_OBS): Add extension.o.
10851 * extension.h: New file.
10852 * extension-priv.h: New file.
10853 * extension.c: New file.
10854
10855 * python/python-internal.h: #include "extension.h".
10856 (gdbpy_auto_load_enabled): Declare.
10857 (gdbpy_apply_val_pretty_printer): Declare.
10858 (gdbpy_apply_frame_filter): Declare.
10859 (gdbpy_preserve_values): Declare.
10860 (gdbpy_breakpoint_cond_says_stop): Declare.
10861 (gdbpy_breakpoint_has_cond): Declare.
10862 (void source_python_script_for_objfile): Delete.
10863 * python/python.c: #include "extension-priv.h".
10864 Delete inclusion of "observer.h".
10865 (extension_language_python): Moved here and renamed from
10866 script_language_python in py-auto-load.c.
10867 Redefined to be of type extension_language_defn.
10868 (python_extension_script_ops): New global.
10869 (python_extension_ops): New global.
10870 (struct python_env): New member previous_active.
10871 (restore_python_env): Call restore_active_ext_lang.
10872 (ensure_python_env): Call set_active_ext_lang.
10873 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10874 New arg extlang.
10875 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10876 New arg extlang.
10877 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10878 New arg extlang.
10879 (gdbpy_eval_from_control_command): Renamed from
10880 eval_python_from_control_command, made static. New arg extlang.
10881 (gdbpy_source_script) Renamed from source_python_script, made static.
10882 New arg extlang.
10883 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10884 result to int. New arg extlang.
10885 (gdbpy_source_objfile_script): Renamed from
10886 source_python_script_for_objfile, made static. New arg extlang.
10887 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10888 static. New args extlang, extlang_printers. Change result type to
10889 "void".
10890 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10891 static. New arg extlang. Rename arg printers to extlang_printers
10892 and change type to ext_lang_type_printers *.
10893 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10894 static. Replace argument arg with extlang, extlang_printers.
10895 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10896 (!HAVE_PYTHON, source_python_script): Delete.
10897 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10898 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10899 (!HAVE_PYTHON, start_type_printers): Delete.
10900 (!HAVE_PYTHON, apply_type_printers): Delete.
10901 (!HAVE_PYTHON, free_type_printers): Delete.
10902 (_initialize_python): Delete call to observer_attach_before_prompt.
10903 (finalize_python): Set/restore active extension language.
10904 (gdbpy_finish_initialization) Renamed from
10905 finish_python_initialization, made static. New arg extlang.
10906 (gdbpy_initialized): New function.
10907 * python/python.h: #include "extension.h". Delete #include
10908 "value.h", "mi/mi-cmds.h".
10909 (extension_language_python): Declare.
10910 (GDBPY_AUTO_FILE_NAME): Delete.
10911 (enum py_bt_status): Moved to extension.h and renamed to
10912 ext_lang_bt_status.
10913 (enum frame_filter_flags): Moved to extension.h.
10914 (enum py_frame_args): Moved to extension.h and renamed to
10915 ext_lang_frame_args.
10916 (finish_python_initialization): Delete.
10917 (eval_python_from_control_command): Delete.
10918 (source_python_script): Delete.
10919 (apply_val_pretty_printer): Delete.
10920 (apply_frame_filter): Delete.
10921 (preserve_python_values): Delete.
10922 (gdbpy_script_language_defn): Delete.
10923 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10924 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10925
10926 * auto-load.c: #include "extension.h".
10927 (GDB_AUTO_FILE_NAME): Delete.
10928 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10929 (script_language_gdb): Delete, moved to extension.c and renamed to
10930 extension_language_gdb.
10931 (source_gdb_script_for_objfile): Delete.
10932 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10933 (loaded_script): Change type of language member to
10934 struct extension_language_defn *.
10935 (init_loaded_scripts_info): Initialize
10936 unsupported_script_warning_printed.
10937 (maybe_add_script): Make static. Change type of language arg to
10938 struct extension_language_defn *.
10939 (clear_section_scripts): Reset unsupported_script_warning_printed.
10940 (auto_load_objfile_script_1): Rewrite to use extension language API.
10941 (auto_load_objfile_script): Make public. Remove support-compiled-in
10942 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10943 (source_section_scripts): Rewrite to use extension language API.
10944 (load_auto_scripts_for_objfile): Rewrite to use
10945 auto_load_scripts_for_objfile.
10946 (collect_matching_scripts_data): Change type of language member to
10947 struct extension_language_defn *.
10948 (auto_load_info_scripts): Change type of language arg to
10949 struct extension_language_defn *.
10950 (unsupported_script_warning_print): New function.
10951 (script_not_found_warning_print): Make static.
10952 (_initialize_auto_load): Rewrite construction of scripts-directory
10953 help.
10954 * auto-load.h (struct objfile): Add forward decl.
10955 (struct script_language): Delete.
10956 (struct auto_load_pspace_info): Add forward decl.
10957 (struct extension_language_defn): Add forward decl.
10958 (maybe_add_script): Delete.
10959 (auto_load_objfile_script): Declare.
10960 (script_not_found_warning_print): Delete.
10961 (auto_load_info_scripts): Update prototype.
10962 (auto_load_gdb_scripts_enabled): Declare.
10963 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10964 auto_load_python_scripts_enabled and made public.
10965 (script_language_python): Delete, moved to python.c.
10966 (gdbpy_script_language_defn): Delete.
10967 (info_auto_load_python_scripts): Update to use
10968 extension_language_python.
10969
10970 * breakpoint.c (condition_command): Replace call to
10971 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10972 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10973 with call to breakpoint_ext_lang_cond_says_stop.
10974 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10975 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10976 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10977 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10978 New arg slang.
10979 (local_setattro): Print name of extension language with existing
10980 stop condition.
10981
10982 * valprint.c (val_print, value_print): Update to call
10983 apply_ext_lang_val_pretty_printer.
10984 * cp-valprint.c (cp_print_value): Update call to
10985 apply_ext_lang_val_pretty_printer.
10986 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10987 (gdbpy_apply_val_pretty_printer): Renamed from
10988 apply_val_pretty_printer. New arg extlang.
10989 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10990
10991 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10992 extension language API.
10993 * cli/cli-script.c (execute_control_command): Update to call
10994 eval_ext_lang_from_control_command.
10995
10996 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10997 enum ext_lang_bt_status values. Update call to
10998 apply_ext_lang_frame_filter.
10999 (mi_cmd_stack_list_locals): Ditto.
11000 (mi_cmd_stack_list_args): Ditto.
11001 (mi_cmd_stack_list_variables): Ditto.
11002 * mi/mi-main.c: Delete #include "python/python-internal.h".
11003 Add #include "extension.h".
11004 (mi_cmd_list_features): Replace reference to python internal variable
11005 gdb_python_initialized with call to ext_lang_initialized_p.
11006
11007 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11008 Update to use enum ext_lang_frame_args. Update to call
11009 apply_ext_lang_frame_filter.
11010 * python/py-framefilter.c (extract_sym): Update to use enum
11011 ext_lang_bt_status.
11012 (extract_value, py_print_type, py_print_value): Ditto.
11013 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11014 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11015 (py_print_frame): Ditto.
11016 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11017 New arg extlang. Update to use enum ext_lang_bt_status.
11018
11019 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11020 finish_python_initialization. Replace with call to
11021 finish_ext_lang_initialization.
11022
11023 * typeprint.c (do_free_global_table): Update to call
11024 free_ext_lang_type_printers.
11025 (create_global_typedef_table): Update to call
11026 start_ext_lang_type_printers.
11027 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11028 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11029 (type_print_options): Change type of global_printers from "void *"
11030 to "struct ext_lang_type_printers *".
11031
11032 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11033 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11034 (gdbpy_preserve_values): Renamed from preserve_python_values.
11035 New arg extlang.
11036 (!HAVE_PYTHON, preserve_python_values): Delete.
11037
11038 * utils.c (quit_flag): Delete, moved to extension.c.
11039 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11040 extension.c.
11041
11042 * eval.c: Delete #include "python/python.h".
11043 * main.c: Delete #include "python/python.h".
11044
11045 * defs.h: Update comment.
11046
6af79985
JB
110472014-02-06 Joel Brobecker <brobecker@adacore.com>
11048
11049 GDB 7.7 released.
11050
12c5175d
MK
110512014-02-05 Mark Kettenis <kettenis@gnu.org>
11052
11053 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11054 defined.
11055
8dc5b319
YQ
110562014-02-05 Yao Qi <yao@codesourcery.com>
11057
11058 * remote.c (remote_pass_signals): Remove local 'buf' and use
11059 rs->buf.
11060 (remote_program_signals): Likewise.
11061
de7b2893
YQ
110622014-02-05 Yao Qi <yao@codesourcery.com>
11063
11064 * ctf.c: Include "inferior.h" and "gdbthread.h".
11065 (CTF_PID): A new macro.
11066 (ctf_open): Call inferior_appeared and add_thread_silent.
11067 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11068 (ctf_thread_alive): New function.
11069 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11070
66d032ac
YQ
110712014-02-05 Yao Qi <yao@codesourcery.com>
11072
11073 Revert this patch:
11074
11075 2013-05-24 Yao Qi <yao@codesourcery.com>
11076
11077 * tracepoint.c (TFILE_PID): Remove.
11078 (tfile_open): Don't add thread and inferior.
11079 (tfile_close): Don't set 'inferior_ptid'. Don't call
11080 exit_inferior_silent.
11081 (tfile_thread_alive): Remove.
11082 (init_tfile_ops): Don't set field 'to_thread_alive' of
11083 tfile_ops.
11084
f4ccffad
CE
110852014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11086
11087 * remote.c (remote_start_remote): Call remote_check_symbols even
11088 if only symbol-file (not file) has been given.
11089
591a12a1
UW
110902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11091
11092 * gdbarch.sh (skip_entrypoint): New callback.
11093 * gdbarch.c, gdbarch.h: Regenerate.
11094 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11095 * infrun.c (fill_in_stop_func): Likewise.
11096 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11097 (ppc_elfv2_elf_make_msymbol_special): New function.
11098 (ppc_elfv2_skip_entrypoint): Likewise.
11099 (ppc_linux_init_abi): Install them for ELFv2.
11100
cc0e89c5
UW
111012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11102
11103 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11104 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11105 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11106 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11107 structures returned in GPRs.
11108
52f548e4
UW
111092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11110
11111 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11112 offset to the stack parameter list for the ELFv2 ABI.
11113
d4094b6a
UW
111142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11115
11116 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11117 set_gdbarch_convert_from_func_ptr_addr and
11118 set_gdbarch_elf_make_msymbol_special for ELFv1.
11119 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11120 function descriptors on ELFv1.
11121 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11122 set up r12 at function entry.
11123
cd453cd0
UW
111242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11125
11126 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11127 (struct gdbarch_tdep): New member elf_abi.
11128
11129 * rs6000-tdep.c: Include "elf/ppc64.h".
11130 (rs6000_gdbarch_init): Detect ELF ABI version.
11131
0ff3e01f
UW
111322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11133
11134 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11135 within a register pair holding a DFP 128-bit value on little-endian.
11136 (ppc64_sysv_abi_return_value_base): Likewise.
11137 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11138 (dfp_pseudo_register_write): Likewise.
11139
5b757e5d
UW
111402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11141
11142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11143 offset on little-endian when passing _Decimal32.
11144 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11145
084ee545
UW
111462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11147
11148 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11149 of the overlapped FP register within the VSX register on little-
11150 endian platforms.
11151 (efpr_pseudo_register_write): Likewise.
11152
d63167af
UW
111532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11154
11155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11156 offset on little-endian when passing small structures.
11157
e765b44c
UW
111582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11159
11160 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11161 (struct ppc64_sysv_argpos): New data structure.
11162 (ppc64_sysv_abi_push_float): Remove.
11163 (ppc64_sysv_abi_push_val): New function.
11164 (ppc64_sysv_abi_push_integer): Likewise.
11165 (ppc64_sysv_abi_push_freg): Likewise.
11166 (ppc64_sysv_abi_push_vreg): Likewise.
11167 (ppc64_sysv_abi_push_param): Likewise.
11168 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11169 (ppc64_sysv_abi_return_value_base): New function.
11170 (ppc64_sysv_abi_return_value): Refactor to use it.
11171
36c24d95
UW
111722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11173
11174 * NEWS: Document new target powerpc64le-*-linux*.
11175
26fd9228
MK
111762014-02-04 Mark Kettenis <kettenis@gnu.org>
11177
11178 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11179 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11180 core dumps.
11181 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11182 register set used in ELF core dumps. Add floating-point register set.
11183
c5bb7362
KB
111842014-02-03 Kevin Buettner <kevinb@redhat.com>
11185
74228e77 11186 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11187 dwarf2_to_gdb[] table using symbolic constants. Adjust
11188 penultimate entry from number representing the PC register
11189 to symbolic constant representing the MDR register. Add
11190 constant for the PC register to the end of the table.
11191
af09351e
MK
111922014-02-03 Mark Kettenis <kettenis@gnu.org>
11193
11194 * bsd-kvm.c: Include <sys/param.h>
11195
8507e05d
MK
111962014-02-03 Mark Kettenis <kettenis@gnu.org>
11197
11198 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11199
ae56bfb8
JB
112002014-01-31 Joel Brobecker <brobecker@adacore.com>
11201
11202 * ada-lang.h (clear_ada_sym_cache): Delete.
11203
718ee4dc
UW
112042014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11205
11206 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11207
401e27fd
JM
112082014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11209
11210 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11211 the sigreturn register save area only if the syscall is
11212 sigreturn.
11213
a7c88acd
JB
112142014-01-29 Joel Brobecker <brobecker@adacore.com>
11215
11216 * valops.c (value_slice): Minor reformatting.
11217
fa0079ea
UW
112182014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11219
11220 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11221
c6044dd1
JB
112222014-01-28 Joel Brobecker <brobecker@adacore.com>
11223
11224 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11225 New static globals.
11226 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11227 (ada_ignore_descriptive_types_p): New static global.
11228 (find_parallel_type_by_descriptive_type): Return immediately
11229 if ada_ignore_descriptive_types_p is set.
11230 (_initialize_ada_language): Register new commands "maintenance
11231 set ada", "maintenance show ada", "maintenance set ada
11232 ignore-descriptive-types" and "maintenance show ada
11233 ignore-descriptive-types".
11234 * NEWS: Add entry for new "maint ada set/show
11235 ignore-descriptive-types" commands.
11236
568e808b
MM
112372014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11238
11239 * record-btrace.c (record_btrace_close): Call btrace_teardown
11240 for all threads.
11241
467d141b
JB
112422014-01-27 Joel Brobecker <brobecker@adacore.com>
11243
11244 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11245 "ui-out.h".
11246
fb151210
JB
112472014-01-27 Joel Brobecker <brobecker@adacore.com>
11248
11249 * ada-typeprint (type_is_full_subrange_of_target_type):
11250 New function.
11251 (print_range): Add parameter bounds_prefered_p. If not set,
11252 try printing range types using the name of their base type.
11253 (print_range_type): Add parameter bounds_prefered_p.
11254 Use it in call to print_range.
11255 (print_array_type, ada_print_type): Update calls to print_range
11256 and print_range_type.
11257
aba02109
JB
112582014-01-27 Joel Brobecker <brobecker@adacore.com>
11259
11260 * ada-typeprint.c (print_array_type, print_choices, print_range)
11261 (print_range_bound, print_dynamic_range_bound, print_range_type):
11262 Remove declaration.
11263
e62e21fd
JB
112642014-01-27 Joel Brobecker <brobecker@adacore.com>
11265
11266 * ada-typeprint.c (print_range): Add missing empty line
11267 after local declaration.
11268
859cf5d1
JB
112692014-01-27 Joel Brobecker <brobecker@adacore.com>
11270
11271 * ada-valprint.c (print_optional_low_bound): Get index_type's
11272 target type for as long as it is a TYPE_CODE_RANGE.
11273
25790f6f
JB
112742014-01-27 Joel Brobecker <brobecker@adacore.com>
11275
11276 * procfs.c (procfs_make_note_section): Remove assertion and
11277 associated comment.
11278
6b6aa828
YQ
112792014-01-24 Yao Qi <yao@codesourcery.com>
11280
11281 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11282 * corelow.c (get_core_siginfo): Likewise.
11283
5d6df423
YQ
112842014-01-24 Yao Qi <yao@codesourcery.com>
11285
11286 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11287 ULONGEST. Don't check 'len' is negative.
11288 (remote_write_bytes): Change type of 'len' to ULONGEST.
11289
83b645b8
TT
112902014-01-23 Tom Tromey <tromey@redhat.com>
11291
11292 PR python/16485:
11293 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11294 Handle exception from frame.block.
11295 (FrameVars.fetch_frame_locals): Likewise.
11296
0740f8d8
TT
112972014-01-23 Tom Tromey <tromey@redhat.com>
11298
11299 PR python/16487:
11300 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11301 on a NULL pointer. Move "goto error" to correct place.
11302
21909fa1
TT
113032014-01-23 Tom Tromey <tromey@redhat.com>
11304
11305 PR python/16491:
11306 * python/py-framefilter.c (apply_frame_filter): Call
11307 ensure_python_env after computing gdbarch.
11308
17fde6d0
YQ
113092014-01-23 Yao Qi <yao@codesourcery.com>
11310
11311 * target.c (raw_memory_xfer_partial): Change argument type
11312 from void * to gdb_byte *.
11313 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11314
87ce2a04
DE
113152014-01-22 Doug Evans <dje@google.com>
11316
11317 New gdbserver option --debug-format=timestamp.
11318 * NEWS: Mention it.
11319
237b092b
AA
113202014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11321
11322 * syscalls/s390x-linux.xml: New file.
11323 * syscalls/s390-linux.xml: New file.
11324 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11325 (XML_SYSCALL_FILENAME_S390X): Likewise.
11326 (op_svc): New enum value for SVC opcode.
11327 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11328 (s390_linux_get_syscall_number): New function.
11329 (s390_gdbarch_init): Register '*get_syscall_number' and the
11330 syscall xml file name.
11331 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11332 "s390-linux.xml" and "s390x-linux.xml".
11333 * NEWS: Announce new feature.
11334
54bff650
BS
113352014-01-22 Baruch Siach <baruch@tkos.co.il>
11336
11337 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11338
14e361d7
PA
113392014-01-22 Pedro Alves <palves@redhat.com>
11340
11341 * xtensa-config.c: Include defs.h.
11342
46bbb3ed
JB
113432014-01-22 Joel Brobecker <brobecker@adacore.com>
11344
11345 * common/common-utils.h: Add "ARI:" comment beside __func__
11346 reference.
11347
3a80edfc
JB
113482014-01-22 Joel Brobecker <brobecker@adacore.com>
11349
11350 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11351 documentation a bit.
11352
4869db5e
RM
113532014-01-21 Roland McGrath <mcgrathr@google.com>
11354
11355 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11356 * configure: Regenerate.
11357 * aclocal.m4: Regenerate.
11358 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11359 New substituted variables.
11360 (install-strip): New target.
11361 (INSTALL_SCRIPT): New substituted variable.
11362 (FLAGS_TO_PASS): Add it.
11363 (install-only): Use $(INSTALL_SCRIPT) rather than
11364 $(INSTALL_PROGRAM) for gcore.
11365
9ea4267d
TT
113662014-01-20 Tom Tromey <tromey@redhat.com>
11367
11368 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11369 together.
11370
1f2bdf09
TT
113712014-01-20 Tom Tromey <tromey@redhat.com>
11372
11373 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11374 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11375 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11376 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11377 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11378 (struct cmd_list_element) <flags>: Remove.
11379 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11380 doc_allocated>: New fields.
11381 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11382 bitfields.
11383 * maint.c (maintenance_do_deprecate): Update.
11384 * top.c (execute_command): Update.
11385
e671835b
BS
113862014-01-20 Baruch Siach <baruch@tkos.co.il>
11387
11388 * xtensa-linux-nat.c: Include asm/ptrace.h.
11389
50367cd2
IB
113902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11391
11392 * Makefile.in (SFILES): Add d-support.c.
11393 (COMMON_OBS): Add d-support.o.
11394 * d-lang.h (d_parse_symbol): Add comment, now defined in
11395 d-support.c.
11396 * d-lang.c (parse_call_convention)
11397 (parse_attributes, parse_function_types)
11398 (parse_function_args, parse_type, parse_identifier)
11399 (call_convention_p, d_parse_symbol): Move functions to ...
11400 * d-support.c: ... New file.
11401
ec9f644a
IB
114022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11403
11404 * d-lang.h (d_parse_symbol): Add declaration.
11405 * d-lang.c (extract_identifiers)
11406 (extract_type_info): Remove functions.
11407 (parse_call_convention, parse_attributes)
11408 (parse_function_types, parse_function_args)
11409 (parse_type, parse_identifier, call_convention_p)
11410 (d_parse_symbol): New functions.
11411 (d_demangle): Use d_parse_symbol to demangle D symbols.
11412
94b1b47e
IB
114132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11414
11415 * d-lang.h (struct builtin_d_type): New data type.
11416 (builtin_d_type): Add declaration.
11417 * d-lang.c (d_language_arch_info, build_d_types)
11418 (builtin_d_type): New functions.
11419 (enum d_primitive_types): New data type.
11420 (d_language_defn): Change c_language_arch_info to
11421 d_language_arch_info.
11422 (d_type_data): New static variable.
11423 (_initialize_d_language): Initialize d_type_data.
11424
63778547
IB
114252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11426
11427 * d-lang.h (d_main_name): Add declaration.
11428 * d-lang.c (d_main_name): New function.
11429 * symtab.c (find_main_name): Add call to d_main_name.
11430
3271ba66
IB
114312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11432
11433 * d-lang.c (d_language_defn): Change macro_expansion_c to
11434 macro_expansion_no.
11435
d36b3012
IB
114362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11437
11438 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11439
c90a6fb7
SDJ
114402014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11441
11442 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11443 gdb_exception" declaration.
11444 * remote.c (getpkt_or_notif_sane): Likewise.
11445
749234e5
DE
114462014-01-17 Doug Evans <dje@google.com>
11447
11448 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11449 function, contents of dirnames_to_char_ptr_vec_append moved here.
11450 (delim_string_to_char_ptr_vec): New function.
11451 (dirnames_to_char_ptr_vec_append): Rewrite.
11452 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11453
df049a58
DE
114542014-01-17 Doug Evans <dje@google.com>
11455
11456 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11457 and moved here ...
11458 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11459 #include "common-utils.h".
11460 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11461 * common/vec.h (VEC_ASSERT_PASS): Update.
11462 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11463 (MACH_CHECK_ERROR): Update.
11464
69f97648
SM
114652014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11466
11467 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11468 comments.
11469 * gdbarch.h: Regenerate.
11470
98b1cfdc
TT
114712014-01-16 Tom Tromey <tromey@redhat.com>
11472
11473 * value.c (struct value) <regnum>: Move earlier.
11474
77a19445
TT
114752014-01-16 Tom Tromey <tromey@redhat.com>
11476
11477 * remote.c (extended_remote_create_inferior): Rename from
11478 extended_remote_create_inferior_1. Add "ops" argument. Remove
11479 old implementation.
11480
62261490
PA
114812014-01-16 Pedro Alves <palves@redhat.com>
11482
11483 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11484 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11485 the backchain.
11486
4d65956b
DE
114872014-01-16 Doug Evans <dje@google.com>
11488
11489 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11490
52834460
MM
114912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11492
11493 * btrace.h (btrace_thread_flag): New.
11494 (struct btrace_thread_info) <flags>: New.
11495 * record-btrace.c (record_btrace_resume_thread)
11496 (record_btrace_find_thread_to_move, btrace_step_no_history)
11497 (btrace_step_stopped, record_btrace_start_replaying)
11498 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11499 (record_btrace_find_resume_thread): New.
11500 (record_btrace_resume, record_btrace_wait): Extend.
11501 (record_btrace_can_execute_reverse): New.
11502 (record_btrace_open): Fail in non-stop mode.
11503 (record_btrace_set_replay): Split into this, ...
11504 (record_btrace_stop_replaying): ... this, ...
11505 (record_btrace_clear_histories): ... and this.
11506 (init_record_btrace_ops): Init to_can_execute_reverse.
11507 * NEWS: Announce it.
11508
118e6252
MM
115092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11510
11511 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11512 (forward_target_decr_pc_after_break)
11513 (target_decr_pc_after_break): New.
11514 * target.c (forward_target_decr_pc_after_break)
11515 (target_decr_pc_after_break): New.
11516 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11517 instead of gdbarch_decr_pc_after_break.
11518 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11519 instead of gdbarch_decr_pc_after_break.
11520 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11521 instead of gdbarch_decr_pc_after_break.
11522 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11523 instead of gdbarch_decr_pc_after_break.
11524 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11525 instead of gdbarch_decr_pc_after_break.
11526 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11527 instead of gdbarch_decr_pc_after_break.
11528
6e07b1d2
MM
115292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11530
11531 * btrace.c: Include regcache.h.
11532 (btrace_add_pc): New.
11533 (btrace_enable): Call btrace_add_pc.
11534 (btrace_is_empty): New.
11535 * btrace.h (btrace_is_empty): New.
11536 * record-btrace.c (require_btrace, record_btrace_info): Call
11537 btrace_is_empty.
11538
969c39fb
MM
115392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11540
11541 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11542 Support delta reads.
11543 (linux_disable_btrace): Change return type.
11544 * common/linux-btrace.h (linux_read_btrace): Change parameters
11545 and return type to allow error reporting. Update users.
11546 (linux_disable_btrace): Change return type. Update users.
11547 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11548 New.
11549 (btrace_error): New.
11550 (btrace_block) <begin>: Comment on BEGIN == 0.
11551 * btrace.c (btrace_compute_ftrace): Start from the end of
11552 the current trace.
11553 (btrace_stitch_trace, btrace_clear_history): New.
11554 (btrace_fetch): Read delta trace, return if replaying.
11555 (btrace_clear): Move clear history code to btrace_clear_history.
11556 (parse_xml_btrace): Throw an error if parsing failed.
11557 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11558 and return type to allow error reporting.
11559 (target_read_btrace): Change parameters and return type to allow
11560 error reporting.
11561 * target.c (target_read_btrace): Update.
11562 * remote.c (remote_read_btrace): Support delta reads. Pass
11563 errors on.
11564 * NEWS: Announce it.
11565
0b722aec
MM
115662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11567
11568 * record.h (record_btrace_frame_unwind)
11569 (record_btrace_tailcall_frame_unwind): New declarations.
11570 * dwarf2-frame: Include record.h
11571 (dwarf2_frame_cfa): Throw an error for btrace frames.
11572 * record-btrace.c: Include hashtab.h.
11573 (btrace_get_bfun_name): New.
11574 (btrace_call_history): Call btrace_get_bfun_name.
11575 (struct btrace_frame_cache): New.
11576 (bfcache): New.
11577 (bfcache_hash, bfcache_eq, bfcache_new): New.
11578 (btrace_get_frame_function): New.
11579 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11580 (record_btrace_frame_this_id): Compute own id.
11581 (record_btrace_frame_prev_register): Provide PC, throw_error
11582 for all other registers.
11583 (record_btrace_frame_sniffer): Detect btrace frames.
11584 (record_btrace_tailcall_frame_sniffer): New.
11585 (record_btrace_frame_dealloc_cache): New.
11586 (record_btrace_frame_unwind): Add new functions.
11587 (record_btrace_tailcall_frame_unwind): New.
11588 (_initialize_record_btrace): Allocate cache.
11589 * btrace.c (btrace_clear): Call reinit_frame_cache.
11590 * NEWS: Announce it.
11591
066ce621
MM
115922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11593
11594 * record-btrace.c (record_btrace_set_replay)
11595 (record_btrace_goto_begin, record_btrace_goto_end)
11596 (record_btrace_goto): New.
11597 (init_record_btrace_ops): Initialize them.
11598 * NEWS: Announce it.
11599
e2887aa3
MM
116002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11601
11602 * record-btrace.c (record_btrace_find_new_threads)
11603 (record_btrace_thread_alive): New.
11604 (init_record_btrace_ops): Initialize to_find_new_threads and
11605 to_thread_alive.
11606
b2f4cfde
MM
116072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11608
11609 * record-btrace.c (record_btrace_resume): New.
11610 (record_btrace_wait): New.
11611 (init_record_btrace_ops): Initialize to_wait and to_resume.
11612
633785ff
MM
116132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11614
11615 * record-btrace.c (record_btrace_xfer_partial)
11616 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11617 (record_btrace_allow_memory_access): New.
11618 (init_record_btrace_ops): Initialize new methods.
11619 * target.c (raw_memory_xfer_partial): Bail out if target reports
11620 that this memory is not available.
11621
3db08215
MM
116222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11623
11624 * target.h (target_ops) <to_insert_breakpoint>
11625 <to_remove_breakpoint>: Add target_ops parameter.
11626 (forward_target_insert_breakpoint): New.
11627 (forward_target_remove_breakpoint): New.
11628 (memory_remove_breakpoint, memory_insert_breakpoint):
11629 Add target_ops parameter.
11630 * target.c (target_insert_breakpoint): Split into this and ...
11631 (forward_target_insert_breakpoint): ... this.
11632 (target_remove_breakpoint): Split into this and ...
11633 (forward_target_remove_breakpoint): ... this.
11634 (debug_to_insert_breakpoint): Add target_ops parameter.
11635 Call forward_target_insert_breakpoint.
11636 (debug_to_remove_breakpoint): Add target_ops parameter.
11637 Call forward_target_remove_breakpoint.
11638 (update_current_target): Do not inherit or default to_insert_breakpoint
11639 and to_remove_breakpoint.
11640 * corelow.c (ignore): Add target_ops parameter.
11641 * exec.c (ignore): Add target_ops parameter.
11642 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11643 Add target_ops parameter.
11644 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11645 Add target_ops parameter.
11646 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11647 Add target_ops parameter.
11648 * record-full.c (record_full_beneath_to_insert_breakpoint)
11649 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11650 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11651 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11652 (record_full_core_remove_breakpoint): Add target_ops parameter.
11653 Update users.
11654 (record_full_beneath_to_insert_breakpoint_ops)
11655 (record_full_beneath_to_remove_breakpoint_ops)
11656 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11657 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11658 tmp_to_remove_breakpoint_ops,
11659 record_full_beneath_to_insert_breakpoint_ops, and
11660 record_full_beneath_to_remove_breakpoint_ops.
11661 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11662 (m32r_remove_breakpoint): Add target_ops parameter.
11663 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11664 Add target_ops parameter.
11665 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11666 Add target_ops parameter.
11667
cecac1ab
MM
116682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11669 Markus Metzger <markus.t.metzger@intel.com>
11670
11671 * record-btrace.c: Include frame-unwind.h.
11672 (record_btrace_frame_unwind_stop_reason)
11673 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11674 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11675 New.
11676 (init_record_btrace_ops): Install it.
11677
824344ca
MM
116782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11681 get_prev_frame_1.
11682
32261e52
MM
116832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11684
11685 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11686 earlier.
11687
ea001bdc
MM
116882014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11689
11690 * frame-unwind.c: Include target.h.
11691 (frame_unwind_try_unwinder): New function with code from ...
11692 (frame_unwind_find_by_frame): ... here. New variable
11693 unwinder_from_target, call also target_get_unwinder)
11694 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11695 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11696 * target.h (struct target_ops): New fields to_get_unwinder and
11697 to_get_tailcall_unwinder.
11698 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11699
1f3ef581
MM
117002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11701
11702 * record-btrace.c (record_btrace_fetch_registers)
11703 (record_btrace_store_registers)
11704 (record_btrace_to_prepare_to_store): New.
11705 (init_record_btrace_ops): Add the above.
11706
f32dbf8c
MM
117072014-01-16 Tom Tromey <tromey@redhat.com>
11708
11709 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11710 * target.h (struct target_ops) <to_prepare_to_store>: Add
11711 argument.
11712 (target_prepare_to_store): Add argument.
11713 * target.c (debug_to_prepare_to_store): Add argument.
11714 (update_current_target): Update.
11715 * remote.c (remote_prepare_to_store): Add 'self' argument.
11716 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11717 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11718 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11719 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11720 argument.
11721 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11722 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11723 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11724 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11725 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11726
07bbe694
MM
117272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11728
11729 * btrace.h (replay) <replay>: New.
11730 (btrace_is_replaying): New.
11731 * btrace.c (btrace_clear): Free replay iterator.
11732 (btrace_is_replaying): New.
11733 * record-btrace.c (record_btrace_is_replaying): New.
11734 (record_btrace_info): Print insn number if replaying.
11735 (record_btrace_insn_history): Start at replay position.
11736 (record_btrace_call_history): Start at replay position.
11737 (init_record_btrace_ops): Init to_record_is_replaying.
11738
0688d04e
MM
117392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11740
11741 * record-btrace.c (record_btrace_insn_history_range): Include
11742 end.
11743 (record_btrace_insn_history_from): Adjust range.
11744 (record_btrace_call_history_range): Include
11745 end.
11746 (record_btrace_call_history_from): Adjust range.
11747 * NEWS: Announce changes.
11748
8710b709
MM
117492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11750
11751 * record.h (enum record_print_flag)
11752 <record_print_indent_calls>: New.
11753 * record.c (get_call_history_modifiers): Recognize /c modifier.
11754 (_initialize_record): Document /c modifier.
11755 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11756 Reorder fields. Optionally indent the function name. Update
11757 all users.
11758 * NEWS: Announce changes.
11759
d0fa7535
MM
117602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11761
11762 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11763
5de9129b
MM
117642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11765
11766 * btrace.c (ftrace_new_function): Start counting at one.
11767 * record-btrace.c (record_btrace_info): Adjust number of calls
11768 and insns.
11769 * NEWS: Announce it.
11770
7acbe133
MM
117712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11772
11773 * record-btrace.c (btrace_call_history_insn_range): Print
11774 insn range as [begin, end].
11775
23a7fe75
MM
117762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11777
11778 * btrace.h (struct btrace_func_link): New.
11779 (enum btrace_function_flag): New.
11780 (struct btrace_inst): Rename to ...
11781 (struct btrace_insn): ...this. Update all users.
11782 (struct btrace_func) <ibegin, iend>: Remove.
11783 (struct btrace_func_link): New.
11784 (struct btrace_func): Rename to ...
11785 (struct btrace_function): ...this. Update all users.
11786 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11787 (number, level, flags>: New.
11788 (struct btrace_insn_iterator): Rename to ...
11789 (struct btrace_insn_history): ...this.
11790 Update all users.
11791 (struct btrace_insn_iterator, btrace_call_iterator): New.
11792 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11793 (struct btrace_target_info) <begin, end, level>
11794 <insn_history, call_history>: New.
11795 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11796 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11797 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11798 (btrace_call_number, btrace_call_begin, btrace_call_end)
11799 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11800 (btrace_find_function_by_number, btrace_set_insn_history)
11801 (btrace_set_call_history): New.
11802 * btrace.c (btrace_init_insn_iterator)
11803 (btrace_init_func_iterator, compute_itrace): Remove.
11804 (ftrace_print_function_name, ftrace_print_filename)
11805 (ftrace_skip_file): Change
11806 parameter to const.
11807 (ftrace_init_func): Remove.
11808 (ftrace_debug): Use new btrace_function fields.
11809 (ftrace_function_switched): Also consider gaining and
11810 losing symbol information).
11811 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11812 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11813 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11814 New.
11815 (ftrace_new_function): Move. Remove debug print.
11816 (ftrace_update_lines, ftrace_update_insns): New.
11817 (ftrace_update_function): Check for call, ret, and jump.
11818 (compute_ftrace): Renamed to ...
11819 (btrace_compute_ftrace): ...this. Rewritten to compute call
11820 stack.
11821 (btrace_fetch, btrace_clear): Updated.
11822 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11823 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11824 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11825 (btrace_call_number, btrace_call_begin, btrace_call_end)
11826 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11827 (btrace_find_function_by_number, btrace_set_insn_history)
11828 (btrace_set_call_history): New.
11829 * record-btrace.c (require_btrace): Use new btrace thread
11830 info fields.
11831 (record_btrace_info, btrace_insn_history)
11832 (record_btrace_insn_history, record_btrace_insn_history_range):
11833 Use new btrace thread info fields and new iterator.
11834 (btrace_func_history_src_line): Rename to ...
11835 (btrace_call_history_src_line): ...this. Use new btrace
11836 thread info fields.
11837 (btrace_func_history): Rename to ...
11838 (btrace_call_history): ...this. Use new btrace thread info
11839 fields and new iterator.
11840 (record_btrace_call_history, record_btrace_call_history_range):
11841 Use new btrace thread info fields and new iterator.
11842
8372a7cb
MM
118432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11844
11845 * frame.h (frame_id_build_unavailable_stack_special): New.
11846 * frame.c (frame_id_build_unavailable_stack_special): New.
11847
c2170eef
MM
118482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11849
11850 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11851 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11852 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11853 to gdbarch.
11854 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11855 (i386_insn_is_jump, i386_jmp_p): New.
11856 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11857 insn_is_jump to gdbarch.
11858 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11859 * gdbarch.h: Regenerated.
11860 * gdbarch.c: Regenerated.
11861 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11862 (default_insn_is_jump): New.
11863 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11864 (default_insn_is_jump): New.
11865
864089d2
MM
118662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11867
11868 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11869 Change to ...
11870 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11871 (btrace_read_type) <btrace_read_new>: Change to ...
11872 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11873
ed9edfb5
MM
118742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11875
11876 * common/linux-btrace.c (linux_read_btrace): Free trace from
11877 previous iteration.
11878
fbcbc3fd
DE
118792014-01-15 Doug Evans <dje@google.com>
11880
11881 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11882 uint32_t.
11883
3d548a53
TT
118842014-01-15 Tom Tromey <tromey@redhat.com>
11885
11886 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11887 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11888 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11889 (set_objfile_main_name): New function.
11890 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11891 language_of_main>: New fields.
11892 (set_objfile_main_name): Declare.
11893 * symtab.c (find_main_name): Loop over objfiles to find the main
11894 name and language.
11895 (set_main_name): Now static.
11896 (get_main_info): Add comment.
11897 * symtab.h (set_main_name): Don't declare.
11898
32ac0d11
TT
118992014-01-15 Tom Tromey <tromey@redhat.com>
11900
11901 * symtab.c (main_progspace_key): New global.
11902 (struct main_info): New.
11903 (name_of_main, language_of_main): Remove.
11904 (get_main_info, main_info_cleanup): New function.
11905 (set_main_name, main_name, main_language): Use get_main_info.
11906 (_initialize_symtab): Initialize main_progspace_key.
11907
9e6c82ad
TT
119082014-01-15 Tom Tromey <tromey@redhat.com>
11909
11910 * dbxread.c (process_one_symbol): Update.
11911 * dwarf2read.c (read_partial_die): Update.
11912 * symfile.c (set_initial_language): Call main_language.
11913 * symtab.c (language_of_main): Now static.
11914 (set_main_name): Add 'lang' parameter.
11915 (find_main_name): Update.
11916 (main_language): New function.
11917 (symtab_observer_executable_changed): Update.
11918 * symtab.h (set_main_name): Update.
11919 (language_of_main): Remove.
11920 (main_language): Declare.
11921
6ef55de7
TT
119222014-01-15 Tom Tromey <tromey@redhat.com>
11923
11924 * symfile.c (init_entry_point_info): Use new "initialized" field.
11925 Update.
11926 * objfiles.h (struct entry_point) <initialized>: New field.
11927 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11928 (struct objfile) <ei>: ...here. Remove.
11929 * objfiles.c (entry_point_address_query): Update.
11930
53eddfa6
TT
119312014-01-15 Tom Tromey <tromey@redhat.com>
11932
11933 * objfiles.c (entry_point_address_query): Relocate entry point
11934 address.
11935 (objfile_relocate1): Do not relocate entry point address.
11936 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11937 <the_bfd_section_index>: New field.
11938 * symfile.c (init_entry_point_info): Find the entry point's
11939 section.
11940
d56e56aa
TT
119412014-01-15 Tom Tromey <tromey@redhat.com>
11942
11943 * solib-frv.c (enable_break): Use entry_point_address_query.
11944
33a97bbe
OJ
119452014-01-15 Omair Javaid <omair.javaid@linaro.org>
11946
11947 * NEWS: Add note on improved process record-replay on
11948 arm*-linux* targets.
11949
c6ec2b30
OJ
119502014-01-15 Omair Javaid <omair.javaid@linaro.org>
11951
11952 * arm-tdep.c (enum arm_record_result): New enum.
11953 (arm_record_unsupported_insn): New function.
11954 (arm_record_coproc_data_proc): Removed.
11955 (thumb2_record_ld_st_multiple): New function.
11956 (thumb2_record_ld_st_dual_ex_tbb): New function.
11957 (thumb2_record_data_proc_sreg_mimm): New function.
11958 (thumb2_record_ps_dest_generic): New function.
11959 (thumb2_record_branch_misc_cntrl): New function.
11960 (thumb2_record_str_single_data): New function.
11961 (thumb2_record_ld_mem_hints): New function.
11962 (thumb2_record_ld_word): New function.
11963 (thumb2_record_lmul_lmla_div): New function.
11964 (thumb2_record_decode_insn_handler): New function.
11965 (decode_insn): Add thumb32 instruction handlers.
11966
97dfe206
OJ
119672014-01-15 Omair Javaid <omair.javaid@linaro.org>
11968
11969 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11970 (struct arm_linux_record_tdep): Declare.
11971 (arm_canonicalize_syscall): New function.
11972 (arm_all_but_pc_registers_record): New function.
11973 (arm_linux_syscall_record): New function.
11974 (arm_linux_init_abi): Add syscall recording constructs.
11975 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11976 decoding. (arm_record_coproc_data_proc): Update arm syscall
11977 decoding.
11978 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11979 <arm_syscall_record>: New field.
11980 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11981 gdb_target_obs.
11982
9904a494
OJ
119832014-01-15 Omair Javaid <omair.javaid@linaro.org>
11984
11985 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11986 register for push instruction recording.
11987
f969241e
OJ
119882014-01-15 Omair Javaid <omair.javaid@linaro.org>
11989
11990 * arm-tdep.c (thumb_record_misc): Update to correct logical
11991 error while recording ldm, ldmia and pop instructions.
11992
bfbbec00
OJ
119932014-01-15 Omair Javaid <omair.javaid@linaro.org>
11994
11995 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11996
e40adcc9
PA
119972014-01-15 Pedro Alves <palves@redhat.com>
11998
11999 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12000 (go32_resume, go32_fetch_registers, store_register)
12001 (go32_store_registers, go32_prepare_to_store)
12002 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12003 (go32_create_inferior, go32_can_run, go32_terminal_init)
12004 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12005 declarations.
12006
b0a16e66
TT
120072014-01-15 Tom Tromey <tromey@redhat.com>
12008
12009 * target.h (async_callback_ftype): New typedef.
12010 (struct target_ops) <to_async>: Use it.
12011
bf7105a4
JB
120122014-01-15 Joel Brobecker <brobecker@adacore.com>
12013
12014 * python/py-value.c (get_field_type): Remove unnecessary curly
12015 braces for single-statement if block.
12016
a8f35c2e
JB
120172014-01-15 Joel Brobecker <brobecker@adacore.com>
12018
12019 * python/py-type.c (convert_field): Add missing empty line
12020 after declarations.
12021
bb4142cf
DE
120222014-01-14 Doug Evans <dje@google.com>
12023
12024 * symfile.h (expand_symtabs_matching): Renamed from
12025 expand_partial_symbol_names. Update prototype.
12026 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12027 * symfile.c (expand_symtabs_matching): Renamed from
12028 expand_partial_symbol_names. New args file_matcher, kind.
12029 Rename arg fun to symbol_matcher.
12030 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12031 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12032 ada_expand_partial_symbol_name.
12033 (ada_make_symbol_completion_list): Update to call
12034 expand_symtabs_matching.
12035 (ada_add_global_exceptions): Call expand_symtabs_matching.
12036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12037 call map_symbol_filenames.
12038 * symtab.c (sources_info): Update to call map_symbol_filenames.
12039 (search_symbols): Call expand_symtabs_matching.
12040 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12041 (default_make_symbol_completion_list_break_on): Update to call
12042 expand_symtabs_matching.
12043 (make_source_files_completion_list): Update to call
12044 map_symbol_filenames.
12045
206f2a57
DE
120462014-01-14 Doug Evans <dje@google.com>
12047
12048 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12049 (expand_symtabs_symbol_matcher_ftype): New typedef.
12050 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12051 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12052 * symfile.c (expand_partial_symbol_names): Update to use
12053 expand_symtabs_symbol_matcher_ftype.
12054 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12055 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12056 Arg name_matcher renamed to symbol_matcher.
12057 * psymtab.c (recursively_search_psymtabs): Update to use
12058 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12059 sym_matcher.
12060 (expand_symtabs_matching_via_partial): Update to use
12061 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12062 Arg name_matcher renamed to symbol_matcher.
12063
540c2971
DE
120642014-01-14 Doug Evans <dje@google.com>
12065
12066 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12067 (map_partial_symbol_filenames): Ditto.
12068 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12069 (map_partial_symbol_filenames): Ditto.
12070 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12071 (map_partial_symbol_filenames): Ditto.
12072 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12073 (map_partial_symbol_filenames): Ditto.
12074 * symtab.c: Delete #include "psymtab.h".
12075
8213266a
PA
120762014-01-14 Pedro Alves <palves@redhat.com>
12077 Tom Tromey <tromey@redhat.com>
12078
12079 * infrun.c (use_displaced_stepping): Use find_record_target
12080 instead of RECORD_IS_USED.
12081 (adjust_pc_after_break): Use record_full_is_used instead of
12082 RECORD_IS_USED.
12083 * record-btrace.c (record_btrace_open): Call record_preopen
12084 instead of checking RECORD_IS_USED.
12085 * record-full.c (record_full_shortname)
12086 (record_full_core_shortname): New globals.
12087 (record_full_is_used): New function.
12088 (find_full_open): Call record_preopen instead of checking
12089 RECORD_IS_USED.
12090 (init_record_full_ops): Set the target's shortname to
12091 record_full_shortname.
12092 (init_record_full_core_ops): Set the target's shortname to
12093 record_full_core_shortname.
12094 * record-full.h (record_full_is_used): Declare.
12095 * record.c (find_record_target): Make extern.
12096 (record_preopen): New function.
12097 * record.h (RECORD_IS_USED): Delete macro.
12098 (find_record_target, record_preopen): Declare functions.
12099
7ec1862d
YQ
121002014-01-14 Yao Qi <yao@codesourcery.com>
12101
12102 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12103 'len''s type to ULONGEST.
12104 (core_xfer_shared_libraries_aix): Likewise.
12105 * gdbarch.c, gdbarch.h: Regenerated.
12106 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12107 Change type of 'len' to ULONGEST.
12108 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12109 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12110
dea80a27
YQ
121112014-01-14 Yao Qi <yao@codesourcery.com>
12112
12113 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12114 type of 'len' to ULONGEST.
12115 (linux_xfer_osdata_processgroups): Likewise.
12116 (linux_xfer_osdata_threads): Likewise.
12117 (linux_xfer_osdata_fds): Likewise.
12118 (linux_xfer_osdata_isockets): Likewise.
12119 (linux_xfer_osdata_shm): Likewise.
12120 (linux_xfer_osdata_sem): Likewise.
12121 (linux_xfer_osdata_msg): Likewise.
12122 (linux_common_xfer_osdata): Likewise.
12123 (struct osdata_type) <getter>: Likewise.
12124 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12125 the declaration.
12126
b55e14c7
YQ
121272014-01-14 Yao Qi <yao@codesourcery.com>
12128
12129 * target.h (target_xfer_partial_ftype): Update.
12130 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12131 ULONGEST.
12132 * aix-thread.c (aix_thread_xfer_partial): Change type of
12133 argument 'len' to ULONGEST.
12134 * auxv.c (procfs_xfer_auxv): Likewise.
12135 (ld_so_xfer_auxv): Likewise.
12136 (memory_xfer_auxv): Likewise.
12137 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12138 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12139 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12140 * corelow.c (core_xfer_partial): Likewise.
12141 * ctf.c (ctf_xfer_partial): Likewise.
12142 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12143 '%u'.
12144 (darwin_read_dyld_info): Likewise.
12145 (darwin_xfer_partial): Likewise.
12146 * exec.c (section_table_xfer_memory_partial): Likewise.
12147 (exec_xfer_partial): Likewise.
12148 * exec.h (section_table_xfer_memory_partial): Update
12149 declaration.
12150 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12151 instead of plongest.
12152 (gnu_xfer_partial): Likewise.
12153 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12154 (ia64_hpux_xfer_solib_got): Likewise.
12155 (ia64_hpux_xfer_partial): Likewise.
12156 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12157 * inf-ptrace.c (inf_ptrace_xfer_partial):
12158 * inf-ttrace.c (inf_ttrace_xfer_partial):
12159 * linux-nat.c (linux_xfer_siginfo): Likewise.
12160 (linux_nat_xfer_partial): Likewise.
12161 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12162 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12163 * monitor.c (monitor_xfer_memory): Likewise.
12164 (monitor_xfer_partial): Likewise.
12165 * procfs.c (procfs_xfer_partial): Likewise.
12166 * record-full.c (record_full_xfer_partial): Likewise.
12167 (record_full_core_xfer_partial): Likewise.
12168 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12169 instead of plongest.
12170 (gdbsim_xfer_partial): Likewise.
12171 * remote.c (remote_xfer_partial): Likewise.
12172 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12173 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12174 declaration.
12175 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12176 (rs6000_xfer_shared_libraries): Likewise.
12177 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12178 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12179 (sparc_xfer_partial): Likewise.
12180 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12181 (spu_xfer_partial): Likewise.
12182 * spu-multiarch.c (spu_xfer_partial): Likewise.
12183 * target.c (target_read_live_memory): Likewise.
12184 (memory_xfer_live_readonly_partial): Likewise.
12185 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12186 (target_xfer_partial, default_xfer_partial): Likewise.
12187 (current_xfer_partial): Likewise.
12188 * tracepoint.c (tfile_xfer_partial): Likewise.
12189 * windows-nat.c (windows_xfer_memory): Likewise. Call
12190 pulongest instead of plongest.
12191 (windows_xfer_partial): Likewise.
12192 (windows_xfer_shared_libraries): Likewise.
12193
05804640
YQ
121942014-01-14 Yao Qi <yao@codesourcery.com>
12195
12196 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12197 target_xfer_partial_ftype.
12198
b5b08fb4
SC
121992014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12200
12201 PR python/15464
12202 PR python/16113
12203 * valops.c (value_struct_elt_bitpos): New function
12204 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12205 object to 'None' if the field name is an empty string ("").
12206 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12207 attribute to look for a field when 'name' is 'None'.
12208 (get_field_type): New function
12209
13aaf454
DE
122102014-01-13 Doug Evans <dje@google.com>
12211
12212 PR symtab/16426
12213 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12214 (try_open_dwop_file): Ditto.
12215 * gdb_bfd.c: #include "vec.h".
12216 (bfdp): New typedef.
12217 (struct gdb_bfd_data): New member included_bfds.
12218 (gdb_bfd_unref): Unref all included bfds.
12219 (gdb_bfd_record_inclusion): New function.
12220 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12221
c2cec97c
TT
122222014-01-13 Tom Tromey <tromey@redhat.com>
12223
12224 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12225
78e5999d
TT
122262014-01-13 Tom Tromey <tromey@redhat.com>
12227
12228 * defs.h (use_windows): Remove.
12229 * gdb.c (main): Update.
12230 * main.c (captured_main, gdb_main): Update.
12231 * main.h (struct captured_main_args) <use_windows>: Remove.
12232 * top.c (use_windows): Remove.
12233
f2052bbe
TT
122342014-01-13 Tom Tromey <tromey@redhat.com>
12235
12236 * defs.h (deprecated_flush_hook): Remove.
12237
fde4f8ed
JK
122382014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12239
12240 PR threads/16216
12241 * linux-thread-db.c (try_thread_db_load): Add parameter
12242 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12243 (try_thread_db_load_from_pdir_1): Move it there from here.
12244 (try_thread_db_load_from_sdir): Update caller.
12245 (try_thread_db_load_from_dir): Move it there from here.
12246
bdf61915
PP
122472014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12248
12249 * regformats/regdat.sh: Always rewrite the register file.
12250
f71e1a8d
PA
122512014-01-13 Pedro Alves <palves@redhat.com>
12252
12253 * Makefile.in (CHECK_HEADERS): New variable.
12254 (check-headers:): New rule.
12255
42c85435
TT
122562014-01-13 Tom Tromey <tromey@redhat.com>
12257
12258 * cli/cli-setshow.c (do_set_command): Update.
12259 * defs.h (deprecated_set_hook): Remove.
12260 * top.c (deprecated_set_hook): Remove.
12261
f8de5129
PA
122622014-01-13 Pedro Alves <palves@redhat.com>
12263
12264 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12265 the tracepoint if the PC is a pseudo-register.
12266
fc270c35
TT
122672014-01-13 Tom Tromey <tromey@redhat.com>
12268
12269 * defs.h (XCALLOC): Remove.
12270 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12271 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12272 * dwarf2loc.c (allocate_piece_closure): Likewise.
12273 * elfread.c (elf_symfile_segments): Likewise.
12274 (elf_symfile_segments): Likewise.
12275 * gdbtypes.c (copy_type_recursive): Likewise.
12276 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12277 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12278 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12279 XCALLOC.
12280 * mt-tdep.c (mt_gdbarch_init): Likewise.
12281 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12282 XCALLOC.
12283 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12284 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12285 * registry.c (registry_alloc_data): Likewise.
12286 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12287 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12288 * serial.c (serial_fdopen_ops): Likewise.
12289 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12290 XCALLOC.
12291 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12292 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12293 not XCALLOC.
12294
70ba0933
TT
122952014-01-13 Tom Tromey <tromey@redhat.com>
12296
12297 * defs.h (XMALLOC): Remove.
12298 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12299 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12300 * cli-out.c (struct ui_out *): Likewise.
12301 * cli/cli-dump.c (add_dump_command): Likewise.
12302 (add_dump_command): Likewise.
12303 * complaints.c (get_complaints): Likewise.
12304 (find_complaint): Likewise.
12305 * dwarf2-frame.c (execute_cfa_program): Likewise.
12306 * dwarf2read.c (abbrev_table_read_table): Likewise.
12307 * gdbarch.sh: Likewise.
12308 * gdbarch.c: Rebuild.
12309 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12310 * interps.c (interp_new): Likewise.
12311 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12312 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12313 * mi/mi-console.c (mi_console_file_new): Likewise.
12314 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12315 * mi/mi-out.c (mi_out_new): Likewise.
12316 * mi/mi-parse.c (mi_parse): Likewise.
12317 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12318 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12319 * observer.c (xalloc_observer_list_node): Likewise.
12320 * regcache.c (regcache_xmalloc_1): Likewise.
12321 * reggroups.c (reggroup_new): Likewise.
12322 (_initialize_reggroup): Likewise.
12323 * registry.c (register_data_with_cleanup): Likewise.
12324 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12325 * ser-base.c (serial_ttystate): Likewise.
12326 * ser-mingw.c (make_pipe_state): Likewise.
12327 * ser-pipe.c (pipe_open): Likewise.
12328 * serial.c (serial_open): Likewise.
12329 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12330 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12331 (tui_alloc_win_info): Likewise.
12332 (tui_add_content_elements): Likewise.
12333 * tui/tui-file.c (tui_file_new): Likewise.
12334 * tui/tui-out.c (tui_out_new): Likewise.
12335 * ui-file.c (mem_file_new): Likewise.
12336 * ui-out.c (push_level): Likewise.
12337 (make_cleanup_ui_out_end): Likewise.
12338 (append_header_to_list): Likewise.
12339 (ui_out_new): Likewise.
12340 * user-regs.c (user_reg_add_builtin): Likewise.
12341
41bf6aca
TT
123422014-01-13 Tom Tromey <tromey@redhat.com>
12343
12344 * defs.h (XZALLOC): Remove.
12345 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12346 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12347 (get_ada_tasks_inferior_data): Likewise.
12348 * auto-load.c (get_auto_load_pspace_data): Likewise.
12349 * auxv.c (get_auxv_inferior_data): Likewise.
12350 * bfd-target.c (target_bfd_reopen): Likewise.
12351 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12352 (deprecated_insert_raw_breakpoint): Likewise.
12353 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12354 * corelow.c (core_open): Likewise.
12355 * darwin-nat.c (darwin_check_new_threads): Likewise.
12356 (darwin_attach_pid): Likewise.
12357 * dummy-frame.c (dummy_frame_push): Likewise.
12358 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12359 * dwarf2loc.c (allocate_piece_closure): Likewise.
12360 * elfread.c (elf_symfile_segments): Likewise.
12361 * eval.c (ptrmath_type_p): Likewise.
12362 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12363 * gdbtypes.c (alloc_type_arch): Likewise.
12364 (alloc_type_instance): Likewise.
12365 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12366 * inf-child.c (inf_child_can_use_agent): Likewise.
12367 * inflow.c (get_inflow_inferior_data): Likewise.
12368 * infrun.c (save_infcall_suspend_state): Likewise.
12369 * jit.c (jit_reader_load): Likewise.
12370 (get_jit_objfile_data): Likewise.
12371 (get_jit_program_space_data): Likewise.
12372 (jit_object_open_impl): Likewise.
12373 (jit_symtab_open_impl): Likewise.
12374 (jit_block_open_impl): Likewise.
12375 (jit_frame_sniffer): Likewise.
12376 * linux-fork.c (add_fork): Likewise.
12377 * maint.c (make_command_stats_cleanup): Likewise.
12378 * objfiles.c (get_objfile_pspace_data): Likewise.
12379 * opencl-lang.c (struct lval_closure): Likewise.
12380 * osdata.c (osdata_start_osdata): Likewise.
12381 * progspace.c (new_address_space): Likewise.
12382 (add_program_space): Likewise.
12383 * remote-sim.c (get_sim_inferior_data): Likewise.
12384 * sh-tdep.c (sh_gdbarch_init): Likewise.
12385 * skip.c (Ignore): Likewise.
12386 (skip_delete_command): Likewise.
12387 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12388 (library_list_start_library): Likewise.
12389 (solib_aix_current_sos): Likewise.
12390 * solib-darwin.c (get_darwin_info): Likewise.
12391 (darwin_current_sos): Likewise.
12392 * solib-dsbt.c (get_dsbt_info): Likewise.
12393 * solib-ia64-hpux.c (new_so_list): Likewise.
12394 (ia64_hpux_get_solib_linkage_addr): Likewise.
12395 * solib-spu.c (append_ocl_sos): Likewise.
12396 (spu_current_sos): Likewise.
12397 * solib-svr4.c (get_svr4_info): Likewise.
12398 (svr4_keep_data_in_core): Likewise.
12399 (library_list_start_library): Likewise.
12400 (svr4_default_sos): Likewise.
12401 (svr4_read_so_list): Likewise.
12402 * solib-target.c (library_list_start_library): Likewise.
12403 (solib_target_current_sos): Likewise.
12404 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12405 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12406 * symfile.c (default_symfile_segments): Likewise.
12407 * target-descriptions.c (tdesc_data_init): Likewise.
12408 (tdesc_create_reg): Likewise.
12409 (struct tdesc_type *): Likewise.
12410 (tdesc_create_vector): Likewise.
12411 (tdesc_set_struct_size): Likewise.
12412 (struct tdesc_type *): Likewise.
12413 (tdesc_free_feature): Likewise.
12414 (tdesc_create_feature): Likewise.
12415 * windows-nat.c (windows_add_thread): Likewise.
12416 (windows_make_so): Likewise.
12417 * xml-support.c (gdb_xml_body_text): Likewise.
12418 (gdb_xml_create_parser_and_cleanup): Likewise.
12419 (xml_process_xincludes): Likewise.
12420 * xml-syscall.c (allocate_syscalls_info): Likewise.
12421 (syscall_create_syscall_desc): Likewise.
12422
5acfdbae
SDJ
124232014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12424
12425 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12426 function, with code from i386_stap_parse_special_token.
12427 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12428 (i386_stap_parse_special_token): Move code to the two functions
12429 above; simplify it.
12430
0000e5cc
PA
124312014-01-09 Pedro Alves <palves@redhat.com>
12432 Hui Zhu <hui@codesourcery.com>
12433
12434 PR gdb/16101
12435 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12436 bp_err_string. Don't mark the location shlib_disabled if the
12437 error thrown wasn't a generic or memory error. Catch errors
12438 thrown while inserting breakpoints in overlayed code. Output
12439 error message of software breakpoints.
12440 * remote.c (remote_insert_breakpoint): If this breakpoint has
12441 target-side commands but this stub doesn't support Z0 packets,
12442 throw NOT_SUPPORTED_ERROR error.
12443 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12444 * target.h (target_insert_breakpoint): Extend comment.
12445 (target_insert_hw_breakpoint): Add comment.
12446
b7ea362b
PA
124472014-01-08 Pedro Alves <palves@redhat.com>
12448
12449 * remote.c (remote_add_thread): Add threads silently if starting
12450 up.
12451 (remote_notice_new_inferior): If in all-stop, and starting up,
12452 don't call notice_new_inferior.
12453 (get_current_thread): New function, factored out from ...
12454 (add_current_inferior_and_thread): ... this. Adjust.
12455 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12456 found any thread, then select the remote's current thread as GDB's
12457 current thread too.
12458
b7bba001
JB
124592014-01-08 Joel Brobecker <brobecker@adacore.com>
12460
12461 * NEWS: Create a new section for the next release branch.
12462 Rename the section of the current branch, now that it has
12463 been cut.
12464
16dfbded
JB
124652014-01-08 Joel Brobecker <brobecker@adacore.com>
12466
12467 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12468 * version.in: Bump version to 7.7.50.DATE-cvs.
12469
22c90ac1
YQ
124702014-01-08 Yao Qi <yao@codesourcery.com>
12471
12472 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12473 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12474 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12475
d64ad97c
YQ
124762014-01-08 Yao Qi <yao@codesourcery.com>
12477
12478 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12479 return value of bfd_get_filename to symbol_file_add_from_bfd.
12480
f93ba80c
PM
124812014-01-08 Pierre Muller <muller@sourceware.org>
12482
12483 Fix PR16201.
12484 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12485 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12486 to prim_record_mininal_symbol_and_info.
12487 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12488 in call to prim_record_minimal_symbol_and_info.
12489 (read_pe_exported_syms): Set index field of section_data.
12490
a4d9ba85
AP
124912014-01-07 Andrew Pinski <apinski@cavium.com>
12492
12493 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12494 * features/aarch64.c: Regenerate.
12495
1b67eb02
AS
124962014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12497
12498 * target.c (return_null): Define.
12499 (update_current_target): Use it instead of return_zero for
12500 functions that return a pointer.
12501
5e3f4fab
EBM
125022014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12503
12504 * source.c (add_path): Fix check for duplicated paths in the previously
12505 included paths.
12506
e2616788
HK
125072014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12508
12509 * ada-lang.c: Remove duplicated include statements.
12510 * alphabsd-nat.c: Ditto.
12511 * amd64-darwin-tdep.c: Ditto.
12512 * amd64fbsd-nat.c: Ditto.
12513 * auto-load.c: Ditto.
12514 * ax-gdb.c: Ditto.
12515 * breakpoint.c: Ditto.
12516 * dbxread.c: Ditto.
12517 * fork-child.c: Ditto.
12518 * gdb_usleep.c: Ditto.
12519 * i386-darwin-tdep.c: Ditto.
12520 * i386fbsd-nat.c: Ditto.
12521 * infcmd.c: Ditto.
12522 * inferior.c: Ditto.
12523 * jv-lang.c: Ditto.
12524 * linux-nat.c: Ditto.
12525 * linux-tdep.c: Ditto.
12526 * m68kbsd-nat.c: Ditto.
12527 * m68klinux-nat.c: Ditto.
12528 * microblaze-tdep.c: Ditto.
12529 * mips-linux-tdep.c: Ditto.
12530 * mn10300-tdep.c: Ditto.
12531 * nto-tdep.c: Ditto.
12532 * opencl-lang.c: Ditto.
12533 * osdata.c: Ditto.
12534 * printcmd.c: Ditto.
12535 * regcache.c: Ditto.
12536 * remote-m32r-sdi.c: Ditto.
12537 * remote.c: Ditto.
12538 * symfile.c: Ditto.
12539 * symtab.c: Ditto.
12540 * tilegx-linux-nat.c: Ditto.
12541 * tilegx-tdep.c: Ditto.
12542 * tracepoint.c: Ditto.
12543 * valops.c: Ditto.
12544 * vaxbsd-nat.c: Ditto.
12545 * windows-nat.c: Ditto.
12546 * xtensa-tdep.c: Ditto.
12547
bd1f7788
YQ
125482014-01-07 Yao Qi <yao@codesourcery.com>
12549
12550 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12551
79301218
JB
125522014-01-07 Yao Qi <yao@codesourcery.com>
12553 Joel Brobecker <brobecker@adacore.com>
12554
12555 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12556 (pdc_write_regs): Likewise.
12557 (fetch_regs_kernel_thread): Likewise.
12558 (store_regs_kernel_thread): Likewise.
12559
125602014-01-07 Joel Brobecker <brobecker@adacore.com>
12561
12562 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12563 tagged type objects to their actual type.
12564
8e355c5d
JB
125652014-01-07 Joel Brobecker <brobecker@adacore.com>
12566
12567 * ada-valprint.c (print_field_values): Add "language" parameter.
12568 Update calls to print_field_values and print_variant_part.
12569 Pass new parameter "language" in call to val_print instead
12570 of "current_language". Replace call to ada_val_print by call
12571 to val_print.
12572 (print_variant_part): Add "language" parameter.
12573 (ada_val_print_struct_union): Update call to print_field_values.
12574
4fbf5aa5
JB
125752014-01-07 Joel Brobecker <brobecker@adacore.com>
12576
12577 * ada-valprint.c (ui_memcpy): Delete.
12578 (ada_print_floating): Update documentation. Add empty line
12579 between between function documentation and implementation.
12580 Delete variable "buffer". Use ui_file_xstrdup in place of
12581 ui_file_put. Minor adjustments following this change.
12582
71855601
JB
125832014-01-07 Joel Brobecker <brobecker@adacore.com>
12584
12585 * ada-valprint.c (ada_val_print_string): New function,
12586 extracted from ada_val_print_array.
12587 (ada_val_print_array): Replace extracted code by call
12588 to ada_val_print_string followed by a return. Move
12589 "else" branch to the function's top block.
12590
4eb27a30
JB
125912014-01-07 Joel Brobecker <brobecker@adacore.com>
12592
12593 * ada-valprint.c (ada_val_print_array): Move implementation
12594 down. Rename parameter "offset" and "val" into "offset_aligned"
12595 and "original_value" respectively. Add parameter "offset".
12596
34b27950
JB
125972014-01-07 Joel Brobecker <brobecker@adacore.com>
12598
12599 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12600 re-organizing the code. Change the "???" message printed
12601 when target type is a TYPE_CODE_UNDEF into
12602 "<ref to undefined type>".
12603
079e4591
JB
126042014-01-07 Joel Brobecker <brobecker@adacore.com>
12605
12606 * ada-valprint.c (print_record): Delete, implementation inlined...
12607 (ada_val_print_struct_union): ... here. Remove call to
12608 ada_check_typedef in inlined implementation.
12609
8004dfd1
JB
126102014-01-07 Joel Brobecker <brobecker@adacore.com>
12611
12612 * ada-valprint.c (ada_val_print_gnat_array): New function,
12613 extracted from ada_val_print_1;
12614 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12615 (ada_val_print_flt, ada_val_print_struct_union)
12616 (ada_val_print_ref): Likewise.
12617 (ada_val_print_1): Delete variables i and elttype.
12618 Replace extracted-out code by call to corresponding
12619 new functions.
12620
760a2db0
JB
126212014-01-07 Joel Brobecker <brobecker@adacore.com>
12622
12623 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12624
3a92c861
JB
126252014-01-07 Joel Brobecker <brobecker@adacore.com>
12626
12627 * ada-valprint.c (ada_val_print_1): Replace calls to
12628 ada_val_print_1 by calls to val_print.
12629
cd1630f9
JB
126302014-01-07 Joel Brobecker <brobecker@adacore.com>
12631
12632 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12633 Update calls to self accordingly. Replace calls to c_val_print
12634 by calls to val_print.
12635
bdf779a0
JB
126362014-01-07 Joel Brobecker <brobecker@adacore.com>
12637
12638 * ada-valprint.c (print_record): Delete declaration.
12639 (adjust_type_signedness, ada_val_print_1): Likewise.
12640 (ada_val_print): Move function implementation down.
12641 (print_variant_part, print_field_values, print_record):
12642 Move function implementation up.
12643
c0d48811
JB
126442014-01-07 Joel Brobecker <brobecker@adacore.com>
12645
12646 * python/py-type.c (typy_get_name): New function.
12647 (type_object_getset): Add entry for attribute "name".
12648 * NEWS: Add entry mentioning this new attribute.
12649
c26e9cbb
YQ
126502014-01-07 Yao Qi <yao@codesourcery.com>
12651
12652 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12653 statement.
12654
0cc6f43d
YQ
126552014-01-07 Yao Qi <yao@codesourcery.com>
12656
12657 * gnu-nat.c (info_port_rights): Add qualifier const to
12658 argument args.
12659
eec03155
YQ
126602014-01-07 Yao Qi <yao@codesourcery.com>
12661
12662 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12663
f04a82ef
YQ
126642014-01-07 Yao Qi <yao@codesourcery.com>
12665
12666 * gnu-nat.c (make_inf) Update declaration.
12667 (make_inf): Make it static.
12668 (inf_set_traced): Likewise.
12669 (inf_port_to_thread, inf_task_died_status): Likewise.
12670
d57dda0a
YQ
126712014-01-07 Yao Qi <yao@codesourcery.com>
12672
12673 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12674
3aa8c969
YQ
126752014-01-07 Yao Qi <yao@codesourcery.com>
12676
12677 * gnu-nat.c (_initialize_gnu_nat): Declare.
12678
94123b4f
YQ
126792014-01-07 Yao Qi <yao@codesourcery.com>
12680
12681 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12682 'enum bfd_endian'.
12683 (struct gdbarch_info) <byte_order>: Change type to
12684 'enum bfd_endian'.
12685 <byte_order_for_code>: Likewise.
12686 * gdbarch.c, gdbarch.h: Regenerated.
12687
dc81d70a
TT
126882014-01-06 Sasha Smundak <asmundak@google.com>
12689
12690 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12691
cc2f3c35
TT
126922014-01-06 Tom Tromey <tromey@redhat.com>
12693
12694 * doublest.c (convert_doublest_to_floatformat): Use const, not
12695 CONST.
12696 * somread.c (som_symtab_read): Likewise.
12697
adcf2eed
HZ
126982014-01-07 Hui Zhu <hui@codesourcery.com>
12699
12700 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12701 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12702 (gdb_bfd_fopen): Ditto.
12703 (gdb_bfd_openr): Ditto.
12704 (gdb_bfd_openw): Ditto.
12705 (gdb_bfd_openr_iovec): Ditto.
12706 (gdb_bfd_fdopenr): Ditto.
12707 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12708 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12709 with xstrdup.
12710 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12711 with xstrdup.
12712 * symfile-mem.c (symbol_file_add_from_memory): Removed
12713 gdb_bfd_stash_filename.
12714
50722198
DE
127152014-01-03 Doug Evans <dje@google.com>
12716
12717 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12718 output.
12719
2fa4b862
JB
127202014-01-01 Joel Brobecker <brobecker@adacore.com>
12721
12722 Update year range in copyright notice of all files.
12723
28498c42
JB
127242014-01-01 Joel Brobecker <brobecker@adacore.com>
12725
12726 * top.c (print_gdb_version): Set copyright year to 2014.
12727
7b6e1046
JB
127282014-01-01 Joel Brobecker <brobecker@adacore.com>
12729
12730 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12731
df96af55 12732For older changes see ChangeLog-2013.
c906108c
SS
12733\f
12734Local Variables:
12735mode: change-log
12736left-margin: 8
12737fill-column: 74
12738version-control: never
57da7796 12739coding: utf-8
c906108c 12740End:
This page took 2.131747 seconds and 4 git commands to generate.